ifc_deviceprovider.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_PROVIDER_INTERFACE_HEADER
  2. #define _NULLSOFT_WINAMP_DEVICES_DEVICE_PROVIDER_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <bfc/platform/guid.h>
  7. // {FAC6EBEE-107A-4133-A620-856A281EC704}
  8. static const GUID IFC_DeviceProvider =
  9. { 0xfac6ebee, 0x107a, 0x4133, { 0xa6, 0x20, 0x85, 0x6a, 0x28, 0x1e, 0xc7, 0x4 } };
  10. #include <bfc/dispatch.h>
  11. class api_devicemanager;
  12. class __declspec(novtable) ifc_deviceprovider : public Dispatchable
  13. {
  14. protected:
  15. ifc_deviceprovider() {}
  16. ~ifc_deviceprovider() {}
  17. public:
  18. HRESULT BeginDiscovery(api_devicemanager *manager);
  19. HRESULT CancelDiscovery();
  20. HRESULT GetActive();
  21. public:
  22. DISPATCH_CODES
  23. {
  24. API_BEGINDISCOVERY = 10,
  25. API_CANCELDISCOVERY = 20,
  26. API_GETACTIVE = 30,
  27. };
  28. };
  29. inline HRESULT ifc_deviceprovider::BeginDiscovery(api_devicemanager *manager)
  30. {
  31. return _call(API_BEGINDISCOVERY, (HRESULT)E_NOTIMPL, manager);
  32. }
  33. inline HRESULT ifc_deviceprovider::CancelDiscovery()
  34. {
  35. return _call(API_CANCELDISCOVERY, (HRESULT)E_NOTIMPL);
  36. }
  37. inline HRESULT ifc_deviceprovider::GetActive()
  38. {
  39. return _call(API_GETACTIVE, (HRESULT)E_NOTIMPL);
  40. }
  41. #endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_PROVIDER_INTERFACE_HEADER