News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

How to force the system to hibernate?

Started by BBalazs, January 05, 2007, 12:10:26 PM

Previous topic - Next topic

BBalazs

Hi,

How is it possible to force the w98 (or even more the XP) to step in hibernation?
Until now I used the ExitWindowsEx under w98.

Thanks in advance:
BBalazs

Tedd

No snowflake in an avalanche feels responsible.

BBalazs

Tedd,

thanks, but I am uncertain how to handle the token privileges, etc, because I have no experience with XP or other network platforms.
My application is going to run on a solo EPIA M10000 in my car.

Tedd

If you have the 'privilege' to shutdown/hibernate then it should work, otherwise it won't.
(I think the general policy is that either everyone can, or only admin can - 'everyone' is usually the default.)
No snowflake in an avalanche feels responsible.

BBalazs


gabor

Hello!

On Iczelion's home page http://win32assembly.online.fr/source.html there is a little usefull app called "Time Shut Down". Its source is included. It also handles NT with that token and privilage stuff. However there is no hybernation :(

Greets, Gábor

BBalazs

Gabor and Tedd,

by means of these aids I was finally able to do that.

I have merged the AdjustToken routine from Itzelion's page and added the SetSystemPowerState,FALSE, TRUE and wow! the system went hibernate under XP!

Thank you, folks!