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.

73 lines
2.5 KiB

  1. // P3Service.h : Declaration of the CP3Service
  2. #ifndef __P3SERVICE_H_
  3. #define __P3SERVICE_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CP3Service
  7. class ATL_NO_VTABLE CP3Service :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CP3Service, &CLSID_P3Service>,
  10. public IDispatchImpl<IP3Service, &IID_IP3Service, &LIBID_P3ADMINLib>
  11. {
  12. public:
  13. CP3Service();
  14. virtual ~CP3Service();
  15. DECLARE_REGISTRY_RESOURCEID(IDR_P3SERVICE)
  16. DECLARE_PROTECT_FINAL_CONSTRUCT()
  17. BEGIN_COM_MAP(CP3Service)
  18. COM_INTERFACE_ENTRY(IP3Service)
  19. COM_INTERFACE_ENTRY(IDispatch)
  20. END_COM_MAP()
  21. // IP3Service
  22. public:
  23. STDMETHOD(get_Port)(/*[out, retval]*/ long *pVal);
  24. STDMETHOD(put_Port)(/*[in]*/ long newVal);
  25. STDMETHOD(get_SocketsBacklog)(/*[out, retval]*/ long *pVal);
  26. STDMETHOD(SetSockets)(/*[in]*/ long lMax, /*[in]*/ long lMin, /*[in]*/ long lThreshold, /*[in]*/ long lBacklog);
  27. STDMETHOD(get_SocketsThreshold)(/*[out, retval]*/ long *pVal);
  28. STDMETHOD(get_SocketsMin)(/*[out, retval]*/ long *pVal);
  29. STDMETHOD(get_SocketsMax)(/*[out, retval]*/ long *pVal);
  30. STDMETHOD(get_ThreadCountPerCPU)(/*[out, retval]*/ long *pVal);
  31. STDMETHOD(put_ThreadCountPerCPU)(/*[in]*/ long newVal);
  32. STDMETHOD(get_SPARequired)(/*[out, retval]*/ BOOL *pVal);
  33. STDMETHOD(put_SPARequired)(/*[in]*/ BOOL newVal);
  34. STDMETHOD(get_POP3ServiceStatus)(/*[out, retval]*/ long *pVal);
  35. STDMETHOD(StartPOP3Service)();
  36. STDMETHOD(StopPOP3Service)();
  37. STDMETHOD(PausePOP3Service)();
  38. STDMETHOD(ResumePOP3Service)();
  39. STDMETHOD(get_SMTPServiceStatus)(/*[out, retval]*/ long *pVal);
  40. STDMETHOD(StartSMTPService)();
  41. STDMETHOD(StopSMTPService)();
  42. STDMETHOD(PauseSMTPService)();
  43. STDMETHOD(ResumeSMTPService)();
  44. STDMETHOD(get_IISAdminServiceStatus)(/*[out, retval]*/ long *pVal);
  45. STDMETHOD(StartIISAdminService)();
  46. STDMETHOD(StopIISAdminService)();
  47. STDMETHOD(PauseIISAdminService)();
  48. STDMETHOD(ResumeIISAdminService)();
  49. STDMETHOD(get_W3ServiceStatus)(/*[out, retval]*/ long *pVal);
  50. STDMETHOD(StartW3Service)();
  51. STDMETHOD(StopW3Service)();
  52. STDMETHOD(PauseW3Service)();
  53. STDMETHOD(ResumeW3Service)();
  54. // Implementation
  55. public:
  56. HRESULT Init( IUnknown *pIUnk, CP3AdminWorker *pAdminX);
  57. // Attributes
  58. protected:
  59. IUnknown *m_pIUnk;
  60. CP3AdminWorker *m_pAdminX; // This is the object that actually does all the work.
  61. };
  62. #endif //__P3SERVICE_H_