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.
 
 
 
 
 
 

38 lines
1.1 KiB

// IisRestart.h : Declaration of the CIisRestart
#ifndef __IISRESTART_H_
#define __IISRESTART_H_
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CIisRestart
class ATL_NO_VTABLE CIisRestart :
public CComObjectRootEx<CComMultiThreadModel>,
public CComCoClass<CIisRestart, &CLSID_IisServiceControl>,
public IDispatchImpl<IIisServiceControl, &IID_IIisServiceControl, &LIBID_IISRSTALib>
{
public:
CIisRestart()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_IISRESTART)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CIisRestart)
COM_INTERFACE_ENTRY(IIisServiceControl)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
// IIisRestart
public:
STDMETHOD(Status)(/*[IN]*/ DWORD dwBufferSize, /*[out, size_is(dwBufferSize)]*/ unsigned char *pbBuffer, /*[out]*/ DWORD *pdwMDRequiredBufferSize, /*[out]*/ DWORD *pdwNumServices);
STDMETHOD(Reboot)( DWORD dwTimeoutMsecs, DWORD dwForceAppsClosed );
STDMETHOD(Start)(DWORD dwTimeoutMsecs);
STDMETHOD(Stop)(DWORD dwTimeoutMsecs, DWORD dwForce);
STDMETHOD(Kill)();
};
#endif //__IISRESTART_H_