5 #ifndef _INC_cOleFlashHelper_H
6 #define _INC_cOleFlashHelper_H
12 #if defined(_WIN32) && defined(_MSC_VER) && defined(USE_FLASH)
13 #include "../WinAPI/cComConnectionPoint.h"
19 #import "Flash.tlb" raw_interfaces_only
20 #define LIBID_ShockwaveFlashObjects __uuidof(__ShockwaveFlashObjects)
30 :
public cComConnectionPoint
39 typedef cComConnectionPoint SUPER_t;
42 cOleFlash* m_pFlashControlParent;
45 HRESULT FlashCallXML(cOleFlashCall& flashcall, VARIANT __RPC_FAR *pVarResult);
46 HRESULT FlashCallRet(BSTR request, VARIANT __RPC_FAR *pVarResult);
49 cOleFlashHelper(cOleFlash* pFlashControlParent)
51 , m_pFlashControlParent(pFlashControlParent)
53 ASSERT(pFlashControlParent);
55 virtual ~cOleFlashHelper()
60 IDISPATCH_DISAMBIG_R(cComDispatch);
62 virtual bool isDisposed()
const
64 return m_pFlashControlParent ==
nullptr;
68 m_pFlashControlParent =
nullptr;
69 HRESULT hRes = SUPER_t::DisposeThis();
73 STDMETHOD(QueryInterface)(REFIID riid, LPVOID* ppv);
77 virtual HRESULT STDMETHODCALLTYPE Invoke(DISPID dispIdMember, REFIID riid, LCID lcid,
78 WORD wFlags, ::DISPPARAMS __RPC_FAR *pDispParams, VARIANT __RPC_FAR *pVarResult,
79 ::EXCEPINFO __RPC_FAR *pExcepInfo, UINT __RPC_FAR *puArgErr)
override;
83 virtual void STDMETHODCALLTYPE OnReadyStateChange(
long newState);
84 virtual void STDMETHODCALLTYPE OnProgress(
long percentDone);
85 virtual void STDMETHODCALLTYPE FSCommand(BSTR pwCommand, BSTR pwArgs);
86 virtual void STDMETHODCALLTYPE FlashCall(BSTR request);
89 STDMETHOD(CanHandleException)( ::EXCEPINFO * pExcepInfo, VARIANT * pvar)
override;
EXTERN_C const IID LIBID_ShockwaveFlashObjects
Definition: Flash_h.h:156
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define IUNKNOWN_DISAMBIG_R(TYPE)
Definition: IUnknown.h:85
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
#define ASSERT(exp)
Definition: cDebugAssert.h:87
Definition: Flash.IDL:286
Definition: Flash.IDL:297