1
0

ifc_omstoragehandler.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef NULLSOFT_WINAMP_OMSTORAGE_HANDLER_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMSTORAGE_HANDLER_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. // {9B37B560-CF31-41c6-BB35-14F16E290AFB}
  7. static const GUID IFC_OmStorageHandler =
  8. { 0x9b37b560, 0xcf31, 0x41c6, { 0xbb, 0x35, 0x14, 0xf1, 0x6e, 0x29, 0xa, 0xfb } };
  9. #include <bfc/dispatch.h>
  10. class ifc_omstorage;
  11. class ifc_omservice;
  12. class __declspec(novtable) ifc_omstoragehandler : public Dispatchable
  13. {
  14. protected:
  15. ifc_omstoragehandler() {}
  16. ~ifc_omstoragehandler() {}
  17. public:
  18. HRESULT GetKey(const wchar_t **ppKey);
  19. void Invoke(ifc_omservice *service, const wchar_t *key, const wchar_t * value);
  20. public:
  21. DISPATCH_CODES
  22. {
  23. API_GETKEY = 10,
  24. API_INVOKE = 20,
  25. };
  26. };
  27. inline HRESULT ifc_omstoragehandler::GetKey(const wchar_t **ppKey)
  28. {
  29. return _call(API_GETKEY, (HRESULT)E_NOTIMPL, ppKey);
  30. }
  31. inline void ifc_omstoragehandler::Invoke(ifc_omservice *service, const wchar_t *key, const wchar_t *value)
  32. {
  33. _voidcall(API_INVOKE, service, key, value);
  34. }
  35. #endif //NULLSOFT_WINAMP_OMSTORAGE_HANDLER_INTERFACE_HEADER