JSAPI2_Downloader.h 1020 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <ocidl.h>
  3. #include "JSAPI_Info.h"
  4. namespace JSAPI2
  5. {
  6. class DownloaderAPI : public IDispatch
  7. {
  8. public:
  9. DownloaderAPI(const wchar_t *_key, JSAPI::ifc_info *info);
  10. STDMETHOD(QueryInterface)(REFIID riid, PVOID *ppvObject);
  11. STDMETHOD_(ULONG, AddRef)(void);
  12. STDMETHOD_(ULONG, Release)(void);
  13. // *** IDispatch Methods ***
  14. STDMETHOD (GetIDsOfNames)(REFIID riid, OLECHAR FAR* FAR* rgszNames, unsigned int cNames, LCID lcid, DISPID FAR* rgdispid);
  15. STDMETHOD (GetTypeInfo)(unsigned int itinfo, LCID lcid, ITypeInfo FAR* FAR* pptinfo);
  16. STDMETHOD (GetTypeInfoCount)(unsigned int FAR * pctinfo);
  17. STDMETHOD (Invoke)(DISPID dispid, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, EXCEPINFO FAR * pexecinfo, unsigned int FAR *puArgErr);
  18. private:
  19. const wchar_t *key;
  20. volatile LONG refCount;
  21. JSAPI::ifc_info *info;
  22. STDMETHOD (DownloadMedia)(WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, unsigned int FAR *puArgErr);
  23. };
  24. }