Hibernate API function?

O

obaqueiro

Hello, I am looking for some information on how to put Windows XP in
hibernating mode using an API function. I suppose there is a Win32 API
function to do this but dont know which one is it.

I have googled a bit but i have not find anyting (all I read is user
related hibernating information), what I want to do is to make my
application able to send the system to hibernation mode.

On another related question, is there information about hiberfil.sys
file and or the process/structure of the hibernation available ? this
is because I would like to "play" with the hiberfil.sys file or at
least know its structure (I know the file has some kind of signature
but, thats all myknowledge).

Any information and links would be appreciated.
 
C

Carey Frisch [MVP]

ACPI overview
http://www.microsoft.com/resources/...p/all/proddocs/en-us/pwrmn_acpi_overview.mspx

To manually put your computer into hibernation
http://www.microsoft.com/resources/...oddocs/en-us/pwrmn_automatic_hibernation.mspx

--
Carey Frisch
Microsoft MVP
Windows - Shell/User

Enjoy all the benefits of genuine Microsoft software:
http://www.microsoft.com/genuine/default.mspx

---------------------------------------------------------------------------­---------------------------------

:

| Hello, I am looking for some information on how to put Windows XP in
| hibernating mode using an API function. I suppose there is a Win32 API
| function to do this but dont know which one is it.
|
| I have googled a bit but i have not find anyting (all I read is user
| related hibernating information), what I want to do is to make my
| application able to send the system to hibernation mode.
|
| On another related question, is there information about hiberfil.sys
| file and or the process/structure of the hibernation available ? this
| is because I would like to "play" with the hiberfil.sys file or at
| least know its structure (I know the file has some kind of signature
| but, thats all myknowledge).
|
| Any information and links would be appreciated.
|
 
3

3c273

I believe SetSuspendState or SetSystemPowerState are what you are looking
for. Check MSDN.
Louis
 
N

Nevermind

Hello, I am looking for some information on how to put Windows XP in
hibernating mode using an API function. I suppose there is a Win32 API
function to do this but dont know which one is it.

I have googled a bit but i have not find anyting (all I read is user
related hibernating information), what I want to do is to make my
application able to send the system to hibernation mode.

On another related question, is there information about hiberfil.sys
file and or the process/structure of the hibernation available ? this
is because I would like to "play" with the hiberfil.sys file or at
least know its structure (I know the file has some kind of signature
but, thats all myknowledge).

Any information and links would be appreciated.
I know that the size of the hibernation file on the hard drive is the
same as the amount of RAM in the computer. If the system goes into
hibernation, it has to be able to dump the content of RAM onto the hard
drive, so that size cannot be reduced. There would be no point in
making it larger.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top