I've worked it out, I need to capture the WM_POWERBROADCAST message,
which tells me the info I need.
Dan wrote:
> Hi everyone,
>
> I am trying to work out how to detect when Windows (2000/XP/Vista) goes
> into suspend mode, and then wakes from suspend mode. Does anyone know
> how to do this? I am using Delphi 7.
>
> thanks
> Dan