ifc_ombrowserregistry.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_REGISTRY_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_REGISTRY_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. // {F6415954-AB16-4283-B530-EE94AB29E968}
  7. static const GUID IFC_OmBrowserRegistry =
  8. { 0xf6415954, 0xab16, 0x4283, { 0xb5, 0x30, 0xee, 0x94, 0xab, 0x29, 0xe9, 0x68 } };
  9. #include <bfc/dispatch.h>
  10. class __declspec(novtable) ifc_ombrowserregistry : public Dispatchable
  11. {
  12. protected:
  13. ifc_ombrowserregistry() {}
  14. ~ifc_ombrowserregistry() {}
  15. public:
  16. HRESULT GetPath(LPWSTR pszBuffer, INT cchBufferMax);
  17. HRESULT Write(void);
  18. HRESULT Delete(void);
  19. HRESULT UpdateColors(void);
  20. public:
  21. DISPATCH_CODES
  22. {
  23. API_GETPATH = 10,
  24. API_WRITE = 20,
  25. API_DELETE = 30,
  26. API_UPDATECOLORS = 40,
  27. };
  28. };
  29. inline HRESULT ifc_ombrowserregistry::GetPath(LPWSTR pszBuffer, INT cchBufferMax)
  30. {
  31. return _call(API_GETPATH, (HRESULT)E_NOTIMPL, pszBuffer, cchBufferMax);
  32. }
  33. inline HRESULT ifc_ombrowserregistry::Write(void)
  34. {
  35. return _call(API_WRITE, (HRESULT)E_NOTIMPL);
  36. }
  37. inline HRESULT ifc_ombrowserregistry::Delete(void)
  38. {
  39. return _call(API_DELETE, (HRESULT)E_NOTIMPL);
  40. }
  41. inline HRESULT ifc_ombrowserregistry::UpdateColors(void)
  42. {
  43. return _call(API_UPDATECOLORS, (HRESULT)E_NOTIMPL);
  44. }
  45. #endif // NULLSOFT_WINAMP_OMBROWSER_CONFIG_INTERFACE_HEADER