1
0

ifc_omcachemanager.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef NULLSOFT_WINAMP_OMCACHE_MANAGER_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMCACHE_MANAGER_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <bfc/dispatch.h>
  7. // {95673D91-A7D3-4797-A599-2CE0E4CD2A20}
  8. static const GUID IFC_OmCacheManager =
  9. { 0x95673d91, 0xa7d3, 0x4797, { 0xa5, 0x99, 0x2c, 0xe0, 0xe4, 0xcd, 0x2a, 0x20 } };
  10. class ifc_omcachegroup;
  11. class __declspec(novtable) ifc_omcachemanager: public Dispatchable
  12. {
  13. protected:
  14. ifc_omcachemanager() {}
  15. ~ifc_omcachemanager() {}
  16. public:
  17. HRESULT Find(const wchar_t *group, BOOL registerMissing, ifc_omcachegroup **groupOut, BOOL *created);
  18. HRESULT Delete(const wchar_t *group);
  19. HRESULT Clear();
  20. public:
  21. DISPATCH_CODES
  22. {
  23. API_FIND = 10,
  24. API_DELETE = 20,
  25. API_CLEAR = 30,
  26. };
  27. };
  28. inline HRESULT ifc_omcachemanager::Find(const wchar_t *group, BOOL registerMissing, ifc_omcachegroup **groupOut, BOOL *created)
  29. {
  30. return _call(API_FIND, (HRESULT)E_NOTIMPL, group, registerMissing, groupOut, created);
  31. }
  32. inline HRESULT ifc_omcachemanager::Delete(const wchar_t *group)
  33. {
  34. return _call(API_DELETE, (HRESULT)E_NOTIMPL, group);
  35. }
  36. inline HRESULT ifc_omcachemanager::Clear()
  37. {
  38. return _call(API_CLEAR, (HRESULT)E_NOTIMPL);
  39. }
  40. #endif //NULLSOFT_WINAMP_OMCACHE_MANAGER_INTERFACE_HEADER