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_devicecommandeditor.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/devices/ifc_devicecommandeditor.h')
-rw-r--r-- | Src/devices/ifc_devicecommandeditor.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Src/devices/ifc_devicecommandeditor.h b/Src/devices/ifc_devicecommandeditor.h new file mode 100644 index 00000000..678610bd --- /dev/null +++ b/Src/devices/ifc_devicecommandeditor.h @@ -0,0 +1,55 @@ +#ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_EDITOR_INTERFACE_HEADER +#define _NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_EDITOR_INTERFACE_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include <bfc/platform/guid.h> + +// {94A35125-3AD5-4339-870E-4ACB24F00FE8} +static const GUID IFC_DeviceCommandEditor = +{ 0x94a35125, 0x3ad5, 0x4339, { 0x87, 0xe, 0x4a, 0xcb, 0x24, 0xf0, 0xf, 0xe8 } }; + + +#include <bfc/dispatch.h> + +class ifc_deviceiconstore; + +class __declspec(novtable) ifc_devicecommandeditor : public Dispatchable +{ +protected: + ifc_devicecommandeditor() {} + ~ifc_devicecommandeditor() {} + +public: + HRESULT GetIconStore(ifc_deviceiconstore **iconStore); + HRESULT SetDisplayName(const wchar_t *displayName); + HRESULT SetDescription(const wchar_t *description); + +public: + DISPATCH_CODES + { + API_GETICONSTORE = 10, + API_SETDISPLAYNAME = 20, + API_SETDESCRIPTION = 30, + }; +}; + +inline HRESULT ifc_devicecommandeditor::GetIconStore(ifc_deviceiconstore **iconStore) +{ + return _call(API_GETICONSTORE, (HRESULT)E_NOTIMPL, iconStore); +} + +inline HRESULT ifc_devicecommandeditor::SetDisplayName(const wchar_t *displayName) +{ + return _call(API_SETDISPLAYNAME, (HRESULT)E_NOTIMPL, displayName); +} + +inline HRESULT ifc_devicecommandeditor::SetDescription(const wchar_t *description) +{ + return _call(API_SETDESCRIPTION, (HRESULT)E_NOTIMPL, description); +} + + +#endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_EDITOR_INTERFACE_HEADER
\ No newline at end of file |