mirror of https://github.com/tongzx/nt5src
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
62 lines
1.4 KiB
/*++
|
|
|
|
Copyright (c) 1998-1999 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
dispmap.cpp
|
|
|
|
Abstract:
|
|
|
|
Implements all the methods on DispatchMapper interfaces
|
|
|
|
Author:
|
|
|
|
mquinton 03-31-98
|
|
|
|
Notes:
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef __DISPMAP_H__
|
|
#define __DISPMAP_H__
|
|
|
|
#include "resource.h"
|
|
//#include "objsafe.h"
|
|
#include "atlctl.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDispatchMapper
|
|
class CDispatchMapper :
|
|
public CTAPIComObjectRoot<CDispatchMapper>,
|
|
public CComCoClass<CDispatchMapper, &CLSID_DispatchMapper>,
|
|
public CComDualImpl<ITDispatchMapper, &IID_ITDispatchMapper, &LIBID_TAPI3Lib>,
|
|
public IObjectSafetyImpl<CDispatchMapper>
|
|
{
|
|
public:
|
|
CDispatchMapper()
|
|
{
|
|
}
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_DISPATCHMAPPER)
|
|
DECLARE_QI()
|
|
DECLARE_MARSHALQI(CDispatchMapper)
|
|
DECLARE_TRACELOG_CLASS(CDispatchMapper)
|
|
|
|
BEGIN_COM_MAP(CDispatchMapper)
|
|
COM_INTERFACE_ENTRY2(IDispatch, ITDispatchMapper)
|
|
COM_INTERFACE_ENTRY(ITDispatchMapper)
|
|
COM_INTERFACE_ENTRY_IMPL(IObjectSafety)
|
|
COM_INTERFACE_ENTRY_FUNC(IID_IMarshal, 0, IMarshalQI)
|
|
END_COM_MAP()
|
|
|
|
STDMETHOD(QueryDispatchInterface)(
|
|
BSTR pIID,
|
|
IDispatch * pDispIn,
|
|
IDispatch ** ppDispIn
|
|
);
|
|
};
|
|
|
|
#endif
|