expdsprt.cpp
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. #include "priv.h"
  2. #include "expdsprt.h"
  3. HRESULT CImpIExpDispSupport::FindCIE4ConnectionPoint(REFIID riid, CIE4ConnectionPoint **ppccp)
  4. {
  5.     CConnectionPoint* pccp = _FindCConnectionPointNoRef(FALSE, riid);
  6.     if (pccp)
  7.     {
  8.         pccp->AddRef();
  9.         *ppccp = pccp;
  10.         return S_OK;
  11.     }
  12.     else
  13.     {
  14.         *ppccp = NULL;
  15.         return E_NOINTERFACE;
  16.     }
  17. }
  18. HRESULT CImpIExpDispSupport::OnTranslateAccelerator(MSG __RPC_FAR *pMsg,DWORD grfModifiers)
  19. {
  20.     return E_NOTIMPL;
  21. }
  22. HRESULT CImpIExpDispSupport::OnInvoke(DISPID dispidMember, REFIID iid, LCID lcid, WORD wFlags, DISPPARAMS FAR* pdispparams,
  23.                  VARIANT FAR* pVarResult,EXCEPINFO FAR* pexcepinfo,UINT FAR* puArgErr)
  24. {
  25.     return E_NOTIMPL;
  26. }
  27. HRESULT CImpIConnectionPointContainer::FindConnectionPoint(REFIID iid, LPCONNECTIONPOINT *ppCP)
  28. {
  29.     if (NULL == ppCP)
  30.         return E_POINTER;
  31.     CConnectionPoint *pccp = _FindCConnectionPointNoRef(TRUE, iid);
  32.     if (pccp)
  33.     {
  34.         pccp->AddRef();
  35.         *ppCP = pccp->CastToIConnectionPoint();
  36.         return S_OK;
  37.     }
  38.     else
  39.     {
  40.         *ppCP = NULL;
  41.         return E_NOINTERFACE;
  42.     }
  43. }