expdsprt.cpp
资源名称:shell.rar [点击查看]
上传用户:xhy777
上传日期:2007-02-14
资源大小:24088k
文件大小:1k
源码类别:
系统编程
开发平台:
Visual C++
- #include "priv.h"
- #include "expdsprt.h"
- HRESULT CImpIExpDispSupport::FindCIE4ConnectionPoint(REFIID riid, CIE4ConnectionPoint **ppccp)
- {
- CConnectionPoint* pccp = _FindCConnectionPointNoRef(FALSE, riid);
- if (pccp)
- {
- pccp->AddRef();
- *ppccp = pccp;
- return S_OK;
- }
- else
- {
- *ppccp = NULL;
- return E_NOINTERFACE;
- }
- }
- HRESULT CImpIExpDispSupport::OnTranslateAccelerator(MSG __RPC_FAR *pMsg,DWORD grfModifiers)
- {
- return E_NOTIMPL;
- }
- HRESULT CImpIExpDispSupport::OnInvoke(DISPID dispidMember, REFIID iid, LCID lcid, WORD wFlags, DISPPARAMS FAR* pdispparams,
- VARIANT FAR* pVarResult,EXCEPINFO FAR* pexcepinfo,UINT FAR* puArgErr)
- {
- return E_NOTIMPL;
- }
- HRESULT CImpIConnectionPointContainer::FindConnectionPoint(REFIID iid, LPCONNECTIONPOINT *ppCP)
- {
- if (NULL == ppCP)
- return E_POINTER;
- CConnectionPoint *pccp = _FindCConnectionPointNoRef(TRUE, iid);
- if (pccp)
- {
- pccp->AddRef();
- *ppCP = pccp->CastToIConnectionPoint();
- return S_OK;
- }
- else
- {
- *ppCP = NULL;
- return E_NOINTERFACE;
- }
- }
English
