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.

51 lines
1.5 KiB

  1. // P3Domain.h : Declaration of the CP3Domain
  2. #ifndef __P3DOMAIN_H_
  3. #define __P3DOMAIN_H_
  4. #include "resource.h" // main symbols
  5. #include <POP3Server.h>
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CP3Domain
  8. class ATL_NO_VTABLE CP3Domain :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CP3Domain, &CLSID_P3Domain>,
  11. public IDispatchImpl<IP3Domain, &IID_IP3Domain, &LIBID_P3ADMINLib>
  12. {
  13. public:
  14. CP3Domain();
  15. virtual ~CP3Domain();
  16. DECLARE_REGISTRY_RESOURCEID(IDR_P3DOMAIN)
  17. DECLARE_PROTECT_FINAL_CONSTRUCT()
  18. BEGIN_COM_MAP(CP3Domain)
  19. COM_INTERFACE_ENTRY(IP3Domain)
  20. COM_INTERFACE_ENTRY(IDispatch)
  21. END_COM_MAP()
  22. // IP3Domain
  23. public:
  24. STDMETHOD(GetMessageDiskUsage)(/*[out]*/ VARIANT *pvFactor, /*[out]*/ VARIANT *pvValue);
  25. STDMETHOD(get_Lock)(/*[out, retval]*/ BOOL *pVal);
  26. STDMETHOD(put_Lock)(/*[in]*/ BOOL newVal);
  27. STDMETHOD(get_MessageDiskUsage)(/*[out]*/ long *plFactor, /*[out]*/ long *pVal);
  28. STDMETHOD(get_MessageCount)(/*[out, retval]*/ long *pVal);
  29. STDMETHOD(get_Name)(/*[out, retval]*/ BSTR *pVal);
  30. STDMETHOD(get_Users)(/*[out, retval]*/ IP3Users* *ppIP3Users);
  31. // Implementation
  32. public:
  33. HRESULT Init( IUnknown *pIUnk, CP3AdminWorker *pAdminX, LPWSTR psDomainName );
  34. // Attributes
  35. protected:
  36. IUnknown *m_pIUnk;
  37. CP3AdminWorker *m_pAdminX; // This is the object that actually does all the work.
  38. WCHAR m_sDomainName[POP3_MAX_DOMAIN_LENGTH];
  39. };
  40. #endif //__P3DOMAIN_H_