Windows2003-3790/inetsrv/pop3/setup/oc/serviceutil.h
2020-09-30 16:53:55 +02:00

32 lines
828 B
C++

// ServiceUtil.h: interface for the CServiceUtil class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SERVICEUTIL_H__DA56425C_95C0_478B_A193_34C4758AAD23__INCLUDED_)
#define AFX_SERVICEUTIL_H__DA56425C_95C0_478B_A193_34C4758AAD23__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CServiceUtil
{
public:
CServiceUtil();
virtual ~CServiceUtil();
// Implementation
public:
HRESULT StopService( LPCTSTR szServiceName );
HRESULT RestoreServiceState( LPCTSTR szServiceName );
// Attributes
protected:
ENUM_SERVICE_STATUS *m_pstServiceStatus;
DWORD m_dwNumServices;
DWORD m_dwCurrentState;
};
#endif // !defined(AFX_SERVICEUTIL_H__DA56425C_95C0_478B_A193_34C4758AAD23__INCLUDED_)