template<
class T,
const IID* piid= &__uuidof(T),
const GUID* plibid = &CAtlModule::m_libid,
WORD wMajor = 1,
WORD wMinor = 0,
class tihclass = CComTypeInfoHolder
>
class CDispatchDummy
: public IDispatchImpl<T,piid,plibid,wMajor,wMinor,tihclass>
{
public:
STDMETHOD(GetIDsOfNamesDummy)(REFIID riid,LPOLESTR* rgszNames,
UINT cNames,LCID lcid,DISPID* rgdispid)
{
return IDispatchImpl<T,piid,plibid,wMajor,wMinor,tihclass>::GetIDsOfNames(
riid,rgszNames,cNames,lcid,rgdispid);
}
STDMETHOD(InvokeDummy)(DISPID dispidMember, REFIID riid, LCID lcid,
WORD wFlags, DISPPARAMS* pdispparams, VARIANT* pvarResult,
EXCEPINFO* pexcepinfo, UINT* puArgErr)
{
return IDispatchImpl<T,piid,plibid,wMajor,wMinor,tihclass>::Invoke(dispidMember,
riid, lcid, wFlags, pdispparams, pvarResult, pexcepinfo, puArgErr);
}
STDMETHOD(GetIDsOfNames)(REFIID riid,LPOLESTR* rgszNames,UINT cNames,
LCID lcid,DISPID* rgdispid)
{
return GetIDsOfNamesDummy(riid,rgszNames,cNames,lcid,rgdispid);
}
STDMETHOD(Invoke)(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags,
DISPPARAMS* pdispparams, VARIANT* pvarResult,
EXCEPINFO* pexcepinfo, UINT* puArgErr)
{
return InvokeDummy(dispidMember, riid, lcid, wFlags, pdispparams, pvarResult,
pexcepinfo, puArgErr);
}
};