Click to See Complete Forum and Search --> : Help Required Related To Hibernate


jehanzeb_bs
April 15th, 2003, 08:12 AM
hi,
I've designed an application that provides the hibernate option. It is working properly and when one select to hibernate, it successfully restores the user session.

Now what i want is that I want to enable/disable this option based the what user has set in the 'Control Panel->Power Options'. If he has unchecked the 'Enable Hibernate Mode' option inside the 'Hibenate' tab of 'Power Options', the my application should disable it's 'Hibernate' option automatically.

Is there any API function to programatically detect whether the user has enabled/disabled the 'Hibernate Option' of 'Poeer Option'.

Looking forward to youyr replies.
Thanking in advance

Bye
Jehanzeb Musani

shelly73
April 29th, 2003, 04:43 AM
Hi,
you can check for a registry key for checking whether the user has turned the option as on/off. i dont know the exact registry key but there's one application called regmon available on sysinternals.com which can help you with that.
i am working on a similar application. i am sending the system to hibernation and coming back again. the monitor does not start when the system comes up. how have you implemented that? can you send me the code? my email address is fd98073@yahoo.com.
Regards,
Shelly.