ifc_devicesupportedcommand.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_INTERFACE_HEADER
  2. #define _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <bfc/platform/guid.h>
  7. // {EFFB983B-D087-4021-8894-BA795626048B}
  8. static const GUID IFC_DeviceSupportedCommand =
  9. { 0xeffb983b, 0xd087, 0x4021, { 0x88, 0x94, 0xba, 0x79, 0x56, 0x26, 0x4, 0x8b } };
  10. #include <bfc/dispatch.h>
  11. // supports AddRef(), Release(), QueryInterface()
  12. class __declspec(novtable) ifc_devicesupportedcommand : public Dispatchable
  13. {
  14. protected:
  15. ifc_devicesupportedcommand() {}
  16. ~ifc_devicesupportedcommand() {}
  17. public:
  18. const char *GetName();
  19. HRESULT GetFlags(DeviceCommandFlags *flags);
  20. public:
  21. DISPATCH_CODES
  22. {
  23. API_GETNAME = 10,
  24. API_GETFLAGS = 20,
  25. };
  26. };
  27. inline const char *ifc_devicesupportedcommand::GetName()
  28. {
  29. return _call(API_GETNAME, (const char *)NULL);
  30. }
  31. inline HRESULT ifc_devicesupportedcommand::GetFlags(DeviceCommandFlags *flags)
  32. {
  33. return _call(API_GETFLAGS, (HRESULT)E_NOTIMPL, flags);
  34. }
  35. #endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_INTERFACE_HEADER