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.

65 lines
1.7 KiB

  1. /*******************************************************************************
  2. *
  3. * Copyright 1999 American Power Conversion, All Rights Reserved
  4. *
  5. * TITLE: UPSCOMMON.H
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: SteveT
  10. *
  11. * DATE: 07 June, 1999
  12. *
  13. * DESCRIPTION: This file contains common decls and defs used by the UPS dialogs.
  14. ********************************************************************************/
  15. #ifndef _UPS_COMMON_H_
  16. #define _UPS_COMMON_H_
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #define PWRMANHLP TEXT("PWRMN.HLP")
  21. #define UPS_EXE_FILE _T("upsapplet.dll") // the executable
  22. #define UPS_SERVICE_NAME _T("UPS")
  23. #define DATA_NO_CHANGE 0x00
  24. #define SERVICE_DATA_CHANGE 0x01
  25. #define CONFIG_DATA_CHANGE 0x02
  26. //////////////////////////////////////////////////////////////////////////_/_//
  27. // HMODULE GetUPSModuleHandle (void);
  28. //
  29. // Description: This function gets the HMODULE of the module that created
  30. // the UPS tab dialog.
  31. //
  32. // Additional Information:
  33. //
  34. // Parameters: None
  35. //
  36. // Return Value: Returns the HMODULE of the module that created the dialog.
  37. //
  38. HMODULE GetUPSModuleHandle (void);
  39. void InitializeApplyButton (HWND hDlg);
  40. void EnableApplyButton (void);
  41. BOOL RestartService (LPCTSTR aServiceName, BOOL bWait);
  42. BOOL StartOffService (LPCTSTR aServiceName, BOOL bWaitForService);
  43. void StopService (LPCTSTR aServiceName);
  44. BOOL IsServiceRunning (LPCTSTR aServiceName);
  45. DWORD GetActiveDataState (void);
  46. void SetActiveDataState (DWORD aNewValue);
  47. void AddActiveDataState (DWORD aBitToSet);
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif // _UPS_COMMON_H_