Source code of Windows XP (NT5)
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.

37 lines
932 B

  1. // MapiUtil.h : Declaration of the CMapiUtil
  2. #ifndef __MAPIUTIL_H_
  3. #define __MAPIUTIL_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CMapiUtil
  7. class ATL_NO_VTABLE CMapiUtil :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CMapiUtil, &CLSID_MapiUtil>,
  10. public IDispatchImpl<IMapiUtil, &IID_IMapiUtil, &LIBID_MCSMAPIUTILLib>
  11. {
  12. public:
  13. CMapiUtil()
  14. {
  15. }
  16. DECLARE_REGISTRY_RESOURCEID(IDR_MAPIUTIL)
  17. DECLARE_NOT_AGGREGATABLE(CMapiUtil)
  18. DECLARE_PROTECT_FINAL_CONSTRUCT()
  19. BEGIN_COM_MAP(CMapiUtil)
  20. COM_INTERFACE_ENTRY(IMapiUtil)
  21. COM_INTERFACE_ENTRY(IDispatch)
  22. END_COM_MAP()
  23. // IMapiUtil
  24. public:
  25. STDMETHOD(ProfileGetServer)(BSTR profile,/*[out]*/ BSTR * exchangeServer);
  26. STDMETHOD(ListProfiles)(/*[out]*/ IUnknown ** pUnkOut);
  27. STDMETHOD(ListContainers)(BSTR profile, /*[out]*/ IUnknown ** pUnkOut);
  28. };
  29. #endif //__MAPIUTIL_H_