diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/devices/ifc_devicesupportedcommand.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/devices/ifc_devicesupportedcommand.h')
-rw-r--r-- | Src/devices/ifc_devicesupportedcommand.h | 46 |
1 files changed, 46 insertions, 0 deletions
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 <bfc/platform/guid.h> + +// {EFFB983B-D087-4021-8894-BA795626048B} +static const GUID IFC_DeviceSupportedCommand = +{ 0xeffb983b, 0xd087, 0x4021, { 0x88, 0x94, 0xba, 0x79, 0x56, 0x26, 0x4, 0x8b } }; + + +#include <bfc/dispatch.h> + +// 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 |