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.

53 lines
1.1 KiB

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