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

  1. // IisRestart.h : Declaration of the CIisRestart
  2. #ifndef __IISRESTART_H_
  3. #define __IISRESTART_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CIisRestart
  7. class ATL_NO_VTABLE CIisRestart :
  8. public CComObjectRootEx<CComMultiThreadModel>,
  9. public CComCoClass<CIisRestart, &CLSID_IisServiceControl>,
  10. public IDispatchImpl<IIisServiceControl, &IID_IIisServiceControl, &LIBID_IISRSTALib>
  11. {
  12. public:
  13. CIisRestart()
  14. {
  15. }
  16. DECLARE_REGISTRY_RESOURCEID(IDR_IISRESTART)
  17. DECLARE_PROTECT_FINAL_CONSTRUCT()
  18. BEGIN_COM_MAP(CIisRestart)
  19. COM_INTERFACE_ENTRY(IIisServiceControl)
  20. COM_INTERFACE_ENTRY(IDispatch)
  21. END_COM_MAP()
  22. // IIisRestart
  23. public:
  24. STDMETHOD(Status)(/*[IN]*/ DWORD dwBufferSize, /*[out, size_is(dwBufferSize)]*/ unsigned char *pbBuffer, /*[out]*/ DWORD *pdwMDRequiredBufferSize, /*[out]*/ DWORD *pdwNumServices);
  25. STDMETHOD(Reboot)( DWORD dwTimeoutMsecs, DWORD dwForceAppsClosed );
  26. STDMETHOD(Start)(DWORD dwTimeoutMsecs);
  27. STDMETHOD(Stop)(DWORD dwTimeoutMsecs, DWORD dwForce);
  28. STDMETHOD(Kill)();
  29. };
  30. #endif //__IISRESTART_H_