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.

48 lines
1.4 KiB

  1. // P3Domains.h : Declaration of the CP3Domains
  2. #ifndef __P3DOMAINS_H_
  3. #define __P3DOMAINS_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CP3Domains
  7. class ATL_NO_VTABLE CP3Domains :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CP3Domains, &CLSID_P3Domains>,
  10. public IDispatchImpl<IP3Domains, &IID_IP3Domains, &LIBID_P3ADMINLib>
  11. {
  12. public:
  13. CP3Domains();
  14. virtual ~CP3Domains();
  15. DECLARE_REGISTRY_RESOURCEID(IDR_P3DOMAINS)
  16. DECLARE_PROTECT_FINAL_CONSTRUCT()
  17. BEGIN_COM_MAP(CP3Domains)
  18. COM_INTERFACE_ENTRY(IP3Domains)
  19. COM_INTERFACE_ENTRY(IDispatch)
  20. END_COM_MAP()
  21. // IP3Domains
  22. public:
  23. STDMETHOD(SearchForMailbox)(/*[in]*/ BSTR bstrUserName, /*[out]*/ BSTR *pbstrDomainName);
  24. STDMETHOD(Remove)(/*[in]*/ BSTR bstrDomainName);
  25. STDMETHOD(Add)(/*[in]*/ BSTR bstrDomainName);
  26. STDMETHOD(get_Item)(/*[in]*/ VARIANT vIndex, /*[out, retval]*/ IP3Domain* *ppIP3Domain);
  27. STDMETHOD(get_Count)(/*[out, retval]*/ long *pVal);
  28. STDMETHOD(get__NewEnum)(/*[out, retval]*/ IEnumVARIANT* *ppIEnumVARIANT);
  29. // Implementation
  30. public:
  31. HRESULT Init( IUnknown *pIUnk, CP3AdminWorker *pAdminX);
  32. // Attributes
  33. protected:
  34. IUnknown *m_pIUnk;
  35. CP3AdminWorker *m_pAdminX; // This is the object that actually does all the work.
  36. };
  37. #endif //__P3DOMAINS_H_