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.

42 lines
972 B

  1. /* Copyright 1999 American Power Conversion, All Rights Reserved
  2. *
  3. * Description:
  4. * The file implements the main portion of the native NT UPS
  5. * service for Windows 2000. It implements all of the functions
  6. * required by all Windows NT services.
  7. *
  8. *
  9. * Revision History:
  10. * sberard 25Mar1999 initial revision.
  11. *
  12. */
  13. #include <windows.h>
  14. #include <winsvc.h>
  15. #include <lmsname.h>
  16. #ifndef _SERVICE_H
  17. #define _SERVICE_H
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. // name of the executable
  22. #define SZAPPNAME "ups.exe"
  23. // internal name of the service
  24. #define SZSERVICENAME SERVICE_UPS
  25. // displayed name of the service
  26. #define SZSERVICEDISPLAYNAME "Uninterruptable Power Supply"
  27. // no dependencies
  28. #define SZDEPENDENCIES ""
  29. // amount of time (in milliseconds) for the SCM to wait for start, stop, ...
  30. #define UPS_SERVICE_WAIT_TIME 15000 // 15 seconds
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif