Leaked source code of windows server 2003
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.

33 lines
922 B

  1. /* Copyright 1999 American Power Conversion, All Rights Reserved
  2. *
  3. * Description:
  4. * Interface to the RUNNING states (ON_LINE, ON_BATTERY and NO_COMM)
  5. *
  6. * Revision History:
  7. * dsmith 31Mar1999 Created
  8. *
  9. */
  10. #ifndef _INC_RUNSTATES_H_
  11. #define _INC_RUNSTATES_H_
  12. #include <windows.h>
  13. // Definitions for the RUNNING sub-states
  14. // Each state has three methods associated with it: Enter, DoWork and Exit
  15. // DoWork is where all of the major state work is performed. Enter and Exit
  16. // is where one time processing tasks associated with the state is
  17. // done.
  18. void OnLine_Enter(DWORD anEvent, int aLogPowerRestoredEvent);
  19. DWORD OnLine_DoWork(void);
  20. void OnLine_Exit(DWORD anEvent);
  21. void OnBattery_Enter(DWORD anEvent);
  22. DWORD OnBattery_DoWork(void);
  23. void OnBattery_Exit(DWORD anEvent);
  24. void NoComm_Enter(DWORD anEvent);
  25. DWORD NoComm_DoWork(void);
  26. void NoComm_Exit(DWORD anEvent);
  27. #endif