Re: How to suspend Windows?




"Jack" <replyto@it> wrote in message
news:eJMzwIgeHHA.2332@xxxxxxxxxxxxxxxxxxxxxxx
When >Start>Turn Off Computer is clicked Windows go into 'suspension' mode
until the next button is pressed.
How to do that programmatically?
Thanks,
Jack


On some computers.

First, get the API guide here: http://allapi.mentalis.org/agnet/apiguide.shtml


In the Power Management section, you will find a set of APIs, with examples,
including
GetPwrCapabilities
IsPwrHibernateAllowed
IsPwrShutdownAllowed
IsPwrSuspendAllowed
SetSuspendedState
SetSystemPowerState


.


Loading