JSAPI2_HistoryAPI.h 1018 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <ocidl.h>
  3. #include "../Winamp/JSAPI_Info.h"
  4. namespace JSAPI2
  5. {
  6. class HistoryAPI : public IDispatch
  7. {
  8. public:
  9. HistoryAPI(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 (Query)(WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, unsigned int FAR *puArgErr);
  23. };
  24. }