1
0

JSAPI2_SkinAPI.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <ocidl.h>
  3. #include "JSAPI_Info.h"
  4. namespace JSAPI2
  5. {
  6. class SkinAPI : public IDispatch
  7. {
  8. public:
  9. SkinAPI(const wchar_t *_key, JSAPI::ifc_info *info);
  10. ~SkinAPI();
  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. JSAPI::ifc_info *info;
  22. volatile LONG refCount;
  23. STDMETHOD (GetClassicColor)(WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, unsigned int FAR *puArgErr);
  24. STDMETHOD (GetPlaylistColor)(WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, unsigned int FAR *puArgErr);
  25. STDMETHOD (GetSkinColor)(WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, unsigned int FAR *puArgErr);
  26. STDMETHOD (name)(WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, unsigned int FAR *puArgErr);
  27. STDMETHOD (font)(WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, unsigned int FAR *puArgErr);
  28. STDMETHOD (fontsize)(WORD wFlags, DISPPARAMS FAR *pdispparams, VARIANT FAR *pvarResult, unsigned int FAR *puArgErr);
  29. };
  30. }