1
0

JSAPI2_PodcastsAPI.h 1.0 KB

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