diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/devices/ifc_devicecommand.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/devices/ifc_devicecommand.h')
-rw-r--r-- | Src/devices/ifc_devicecommand.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Src/devices/ifc_devicecommand.h b/Src/devices/ifc_devicecommand.h new file mode 100644 index 00000000..810f40b2 --- /dev/null +++ b/Src/devices/ifc_devicecommand.h @@ -0,0 +1,58 @@ +#ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_INTERFACE_HEADER +#define _NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_INTERFACE_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include <bfc/platform/guid.h> + +// {52C5C581-65DC-435e-AEFA-1616CB81B283} +static const GUID IFC_DeviceCommand = +{ 0x52c5c581, 0x65dc, 0x435e, { 0xae, 0xfa, 0x16, 0x16, 0xcb, 0x81, 0xb2, 0x83 } }; + + +#include "ifc_deviceobject.h" + +typedef enum DeviceCommandFlags +{ + DeviceCommandFlag_None = 0, + DeviceCommandFlag_Primary = (1 << 0), + DeviceCommandFlag_Disabled = (1 << 1), + DeviceCommandFlag_Active = (1 << 2), + DeviceCommandFlag_Hidden = (1 << 3), + DeviceCommandFlag_Group = (1 << 4), +}DeviceCommandFlags; +DEFINE_ENUM_FLAG_OPERATORS(DeviceCommandFlags); + +typedef enum DeviceCommandContext +{ + DeviceCommandContext_Unknown = 0, + DeviceCommandContext_NavigationMenu = 1, + DeviceCommandContext_ViewMenu = 2, + DeviceCommandContext_View = 3, + +} DeviceCommandContext; + +class __declspec(novtable) ifc_devicecommand : public ifc_deviceobject +{ +protected: + ifc_devicecommand() {} + ~ifc_devicecommand() {} + +public: + HRESULT GetDescription(wchar_t *buffer, size_t bufferSize); + +public: + DISPATCH_CODES + { + API_GETDESCRIPTION = 10, + }; +}; + +inline HRESULT ifc_devicecommand::GetDescription(wchar_t *buffer, size_t bufferSize) +{ + return _call(API_GETDESCRIPTION, (HRESULT)E_NOTIMPL, buffer, bufferSize); +} + +#endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_INTERFACE_HEADER
\ No newline at end of file |