From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/devices/ifc_devicesupportedcommand.h | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Src/devices/ifc_devicesupportedcommand.h (limited to 'Src/devices/ifc_devicesupportedcommand.h') diff --git a/Src/devices/ifc_devicesupportedcommand.h b/Src/devices/ifc_devicesupportedcommand.h new file mode 100644 index 00000000..f7dc4c7d --- /dev/null +++ b/Src/devices/ifc_devicesupportedcommand.h @@ -0,0 +1,46 @@ +#ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_INTERFACE_HEADER +#define _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_INTERFACE_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include + +// {EFFB983B-D087-4021-8894-BA795626048B} +static const GUID IFC_DeviceSupportedCommand = +{ 0xeffb983b, 0xd087, 0x4021, { 0x88, 0x94, 0xba, 0x79, 0x56, 0x26, 0x4, 0x8b } }; + + +#include + +// supports AddRef(), Release(), QueryInterface() +class __declspec(novtable) ifc_devicesupportedcommand : public Dispatchable +{ +protected: + ifc_devicesupportedcommand() {} + ~ifc_devicesupportedcommand() {} + +public: + const char *GetName(); + HRESULT GetFlags(DeviceCommandFlags *flags); + +public: + DISPATCH_CODES + { + API_GETNAME = 10, + API_GETFLAGS = 20, + }; +}; + +inline const char *ifc_devicesupportedcommand::GetName() +{ + return _call(API_GETNAME, (const char *)NULL); +} + +inline HRESULT ifc_devicesupportedcommand::GetFlags(DeviceCommandFlags *flags) +{ + return _call(API_GETFLAGS, (HRESULT)E_NOTIMPL, flags); +} + +#endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_INTERFACE_HEADER \ No newline at end of file -- cgit