ifc_omservicehostext.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef NULLSOFT_WINAMP_OMSERVICE_HOST_EXTENSION_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMSERVICE_HOST_EXTENSION_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <bfc/dispatch.h>
  7. // {0DBA9261-79B5-4803-BB29-6246DE6C92C9}
  8. static const GUID IFC_OmServiceHostExt =
  9. { 0xdba9261, 0x79b5, 0x4803, { 0xbb, 0x29, 0x62, 0x46, 0xde, 0x6c, 0x92, 0xc9 } };
  10. // supports AddRef(), Release(), QueryInterface()
  11. class __declspec(novtable) ifc_omservicehostext : public Dispatchable
  12. {
  13. protected:
  14. ifc_omservicehostext() {}
  15. ~ifc_omservicehostext() {}
  16. public:
  17. HRESULT GetHost(ifc_omservicehost **ppHost);
  18. HRESULT SetHost(ifc_omservicehost *host);
  19. public:
  20. DISPATCH_CODES
  21. {
  22. API_GETHOST = 10,
  23. API_SETHOST = 20,
  24. };
  25. };
  26. inline HRESULT ifc_omservicehostext::GetHost(ifc_omservicehost **ppHost)
  27. {
  28. return _call(API_GETHOST, (HRESULT)E_NOTIMPL, ppHost);
  29. }
  30. inline HRESULT ifc_omservicehostext::SetHost(ifc_omservicehost *host)
  31. {
  32. return _call(API_SETHOST, (HRESULT)E_NOTIMPL, host);
  33. }
  34. #endif //NULLSOFT_WINAMP_OMSERVICE_HOST_EXTENSION_INTERFACE_HEADER