ifc_ombrowserclass.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_CLASS_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_CLASS_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <bfc/dispatch.h>
  7. // {1B06FE2B-A1E7-43b5-B470-573CDF5D54F9}
  8. static const GUID IFC_OmBrowserClass =
  9. { 0x1b06fe2b, 0xa1e7, 0x43b5, { 0xb4, 0x70, 0x57, 0x3c, 0xdf, 0x5d, 0x54, 0xf9 } };
  10. class ifc_omconfig;
  11. class ifc_ombrowserregistry;
  12. class __declspec(novtable) ifc_ombrowserclass : public Dispatchable
  13. {
  14. protected:
  15. ifc_ombrowserclass() {}
  16. ~ifc_ombrowserclass() {}
  17. public:
  18. HRESULT GetName(wchar_t *pszBuffer, int cchBufferLen);
  19. HRESULT IsEqual(const wchar_t *pszName);
  20. HRESULT GetConfig(ifc_omconfig **instance);
  21. HRESULT GetRegistry(ifc_ombrowserregistry **instance);
  22. HRESULT UpdateRegColors(void);
  23. public:
  24. DISPATCH_CODES
  25. {
  26. API_GETNAME = 10,
  27. API_ISEQUAL = 20,
  28. API_GETCONFIG = 30,
  29. API_GETREGISTRY = 40,
  30. API_UPDATEREGCOLORS = 50,
  31. };
  32. };
  33. inline HRESULT ifc_ombrowserclass::GetName(wchar_t *pszBuffer, int cchBufferLen)
  34. {
  35. return _call(API_GETNAME, (HRESULT)E_NOTIMPL, pszBuffer, cchBufferLen);
  36. }
  37. inline HRESULT ifc_ombrowserclass::IsEqual(const wchar_t *pszName)
  38. {
  39. return _call(API_ISEQUAL, (HRESULT)E_NOTIMPL, pszName);
  40. }
  41. inline HRESULT ifc_ombrowserclass::GetConfig(ifc_omconfig **instance)
  42. {
  43. return _call(API_GETCONFIG, (HRESULT)E_NOTIMPL, instance);
  44. }
  45. inline HRESULT ifc_ombrowserclass::GetRegistry(ifc_ombrowserregistry **instance)
  46. {
  47. return _call(API_GETREGISTRY, (HRESULT)E_NOTIMPL, instance);
  48. }
  49. inline HRESULT ifc_ombrowserclass::UpdateRegColors(void)
  50. {
  51. return _call(API_UPDATEREGCOLORS, (HRESULT)E_NOTIMPL);
  52. }
  53. #endif //NULLSOFT_WINAMP_OMBROWSER_CLASS_INTERFACE_HEADER