Putting computer into hibernate MSVC++.net

Hi.
Can someone please tell me what method is used to make a computer hibernate

Thanks,

The Digital Pioneer


Answer this question

Putting computer into hibernate MSVC++.net

  • Naman

    You can use the power management function:

    BOOLEAN SetSuspendState(
      BOOL Hibernate,
      BOOL ForceCritical,
      BOOL DisableWakeEvent
    );


    Before you must call BOOLEAN IsPwrHibernateAllowed(void) to check if HIBERFIL.SYS exists etc.
    Please refer to Windows power managements function which are declared in MSDN.

    Bye
    Martin

  • Putting computer into hibernate MSVC++.net