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.

37 lines
1007 B

  1. /* Copyright 1999 American Power Conversion, All Rights Reserved
  2. *
  3. * Description:
  4. * Interface between the Windows 2000 service mechanism and the UPS monitoring and
  5. * control code.
  6. *
  7. * Revision History:
  8. * dsmith 31Mar1999 Created
  9. *
  10. */
  11. #ifndef _INC_POLICYMGR_H_
  12. #define _INC_POLICYMGR_H_
  13. // Initializes the UPS service state machine and returns one of the following
  14. // error codes:
  15. // NERR_Success
  16. // NERR_UPSDriverNotStarted
  17. // NERR_UPSInvalidConfig
  18. // NERR_UPSInvalidConfig
  19. // NERR_UPSInvalidCommPort
  20. // NERR_UPSInvalidCommPort
  21. // NERR_UPSInvalidConfig
  22. DWORD PolicyManagerInit();
  23. // Starts the UPS service state machine and does not return until the service is
  24. // stopped.
  25. void PolicyManagerRun();
  26. // Signals the policy manager that the OS has completed a shutdown
  27. void OperatingSystemHasShutdown();
  28. // Stops the UPS service state machine if the service is not in the middle of a
  29. // shutdown sequence.
  30. void PolicyManagerStop();
  31. #endif