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.

46 lines
1006 B

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