Change suspend mode S1 to S3 and vice versa programmatically

I need to programmatically change the system suspend mode from S1 to S3 and vise-versa.

It will be OK if the new configuration will take place after next restart.

I have Microsoft DDK which I guess will take part of the code need to be written.

Can you write down a code sample or point me to the main functions to use?

Thanks

[983 byte] By [assafg6] at [2007-12-18]

Software Development for Windows Vista

Site Classified