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.

46 lines
1.4 KiB

  1. // P3DomainEnum.h : Declaration of the CP3DomainEnum
  2. #ifndef __P3DOMAINENUM_H_
  3. #define __P3DOMAINENUM_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CP3DomainEnum
  7. class ATL_NO_VTABLE CP3DomainEnum :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CP3DomainEnum, &CLSID_P3DomainEnum>,
  10. public IEnumVARIANT
  11. {
  12. public:
  13. CP3DomainEnum();
  14. virtual ~CP3DomainEnum();
  15. DECLARE_REGISTRY_RESOURCEID(IDR_P3DOMAINENUM)
  16. DECLARE_PROTECT_FINAL_CONSTRUCT()
  17. BEGIN_COM_MAP(CP3DomainEnum)
  18. COM_INTERFACE_ENTRY(IEnumVARIANT)
  19. END_COM_MAP()
  20. // IEnumVARIANT
  21. public:
  22. HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ VARIANT __RPC_FAR *rgVar, /* [out] */ ULONG __RPC_FAR *pCeltFetched);
  23. HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt);
  24. HRESULT STDMETHODCALLTYPE Reset( void);
  25. HRESULT STDMETHODCALLTYPE Clone( /* [out] */ IEnumVARIANT __RPC_FAR *__RPC_FAR *ppEnum);
  26. // Implementation
  27. public:
  28. HRESULT Init( IUnknown *pIUnk, CP3AdminWorker *pAdminX, IEnumVARIANT *pIEnumVARIANT );
  29. // Attributes
  30. protected:
  31. IUnknown *m_pIUnk;
  32. CP3AdminWorker *m_pAdminX; // This is the object that actually does all the work.
  33. IEnumVARIANT *m_pIEnumVARIANT;// IADsContainer::get__NewEnum for L"IIS://LocalHost/SMTPSVC/1/Domain"
  34. };
  35. #endif //__P3DOMAINENUM_H_