Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.1 KiB

  1. /* Copyright 1999 American Power Conversion, All Rights Reserved
  2. *
  3. * Description:
  4. * The file defines the interface for the Hibernation funcationality.
  5. * It is responsible for performing a hibernation of the operating system.
  6. *
  7. *
  8. * Revision History:
  9. * sberard 14May1999 initial revision.
  10. *
  11. */
  12. #include <windows.h>
  13. #include "upsreg.h"
  14. #ifndef _HIBERNATE_H
  15. #define _HIBERNATE_H
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /**
  20. * HibernateSystem
  21. *
  22. * Description:
  23. * This function initiates hibernation of the operating system. This is
  24. * performed through a call to the Win32 function SetSystemPowerStae(..).
  25. * When called hibernation is initated immediately and, if successful, the
  26. * function will return TRUE when the system returns from hibernation.
  27. * Otherwise, FALSE is retuned to indicate the the system did not hibernate.
  28. *
  29. * Parameters:
  30. * none
  31. *
  32. * Returns:
  33. * TRUE - if hibernation was initiated successfully and subsequently restored
  34. * FALSE - if errors occur while initiating hibernation
  35. */
  36. BOOL HibernateSystem();
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif