Enabling disabiling Hibernate support programatically.
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello!! We can enable or disable Hibernate support by using the setting in the control panel-> Power options-> hibernate tab. when this check box is checked the system makes a file hiberfile.sys in the operating system root dir and reserves memory. if the check box is unchecked the system deletes the file. I want to do this programatically. I have used the function NtCallPowerInformation() using SystemReserveHiberFile, but this is not working. Can anyone tell me if it is working at their end and if I am missing something or there is some other method to do this. Thanks in advance.