AMFDispatch.h 928 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. /*
  3. Ben Allison
  4. April 30, 2008
  5. This class implements an IDispatch interface around an AMFObject
  6. */
  7. #include <oaidl.h>
  8. #include "AMFObject.h"
  9. class AMFDispatch : public IDispatch
  10. {
  11. public:
  12. AMFDispatch(AMFMixedArray *array);
  13. ~AMFDispatch();
  14. STDMETHOD(QueryInterface)(REFIID riid, PVOID *ppvObject);
  15. STDMETHOD_(ULONG, AddRef)(void);
  16. STDMETHOD_(ULONG, Release)(void);
  17. private:
  18. // *** IDispatch Methods ***
  19. STDMETHOD (GetIDsOfNames)(REFIID riid, OLECHAR FAR* FAR* rgszNames, unsigned int cNames, LCID lcid, DISPID FAR* rgdispid);
  20. STDMETHOD (GetTypeInfo)(unsigned int itinfo, LCID lcid, ITypeInfo FAR* FAR* pptinfo);
  21. STDMETHOD (GetTypeInfoCount)(unsigned int FAR * pctinfo);
  22. STDMETHOD (Invoke)(DISPID dispid, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, EXCEPINFO FAR * pexecinfo, unsigned int FAR *puArgErr);
  23. volatile ULONG refCount;
  24. AMFMixedArray *object;
  25. };