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.

31 lines
828 B

  1. // ServiceUtil.h: interface for the CServiceUtil class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SERVICEUTIL_H__DA56425C_95C0_478B_A193_34C4758AAD23__INCLUDED_)
  5. #define AFX_SERVICEUTIL_H__DA56425C_95C0_478B_A193_34C4758AAD23__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CServiceUtil
  10. {
  11. public:
  12. CServiceUtil();
  13. virtual ~CServiceUtil();
  14. // Implementation
  15. public:
  16. HRESULT StopService( LPCTSTR szServiceName );
  17. HRESULT RestoreServiceState( LPCTSTR szServiceName );
  18. // Attributes
  19. protected:
  20. ENUM_SERVICE_STATUS *m_pstServiceStatus;
  21. DWORD m_dwNumServices;
  22. DWORD m_dwCurrentState;
  23. };
  24. #endif // !defined(AFX_SERVICEUTIL_H__DA56425C_95C0_478B_A193_34C4758AAD23__INCLUDED_)