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.

62 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. dispmap.cpp
  5. Abstract:
  6. Implements all the methods on DispatchMapper interfaces
  7. Author:
  8. mquinton 03-31-98
  9. Notes:
  10. Revision History:
  11. --*/
  12. #ifndef __DISPMAP_H__
  13. #define __DISPMAP_H__
  14. #include "resource.h"
  15. //#include "objsafe.h"
  16. #include "atlctl.h"
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CDispatchMapper
  19. class CDispatchMapper :
  20. public CTAPIComObjectRoot<CDispatchMapper>,
  21. public CComCoClass<CDispatchMapper, &CLSID_DispatchMapper>,
  22. public CComDualImpl<ITDispatchMapper, &IID_ITDispatchMapper, &LIBID_TAPI3Lib>,
  23. public IObjectSafetyImpl<CDispatchMapper>
  24. {
  25. public:
  26. CDispatchMapper()
  27. {
  28. }
  29. DECLARE_REGISTRY_RESOURCEID(IDR_DISPATCHMAPPER)
  30. DECLARE_QI()
  31. DECLARE_MARSHALQI(CDispatchMapper)
  32. DECLARE_TRACELOG_CLASS(CDispatchMapper)
  33. BEGIN_COM_MAP(CDispatchMapper)
  34. COM_INTERFACE_ENTRY2(IDispatch, ITDispatchMapper)
  35. COM_INTERFACE_ENTRY(ITDispatchMapper)
  36. COM_INTERFACE_ENTRY_IMPL(IObjectSafety)
  37. COM_INTERFACE_ENTRY_FUNC(IID_IMarshal, 0, IMarshalQI)
  38. END_COM_MAP()
  39. STDMETHOD(QueryDispatchInterface)(
  40. BSTR pIID,
  41. IDispatch * pDispIn,
  42. IDispatch ** ppDispIn
  43. );
  44. };
  45. #endif