CurrentSongCOM.h 1012 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef NULLSOFT_CURRENTSONGCOM
  2. #define NULLSOFT_CURRENTSONGCOM
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./dispatchCallback.h"
  7. //#include <ocidl.h>
  8. class CurrentSongCOM : public IDispatch
  9. {
  10. public:
  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. void MetadataChanged(char *metadataString);
  20. void TitleChanged();
  21. DispatchCallbackStore metadataCallbacks;
  22. DispatchCallbackStore titleChangeCallbacks;
  23. };
  24. #endif