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_deviceconnectioneditor.h | 49 ++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Src/devices/ifc_deviceconnectioneditor.h (limited to 'Src/devices/ifc_deviceconnectioneditor.h') diff --git a/Src/devices/ifc_deviceconnectioneditor.h b/Src/devices/ifc_deviceconnectioneditor.h new file mode 100644 index 00000000..6d9c5a09 --- /dev/null +++ b/Src/devices/ifc_deviceconnectioneditor.h @@ -0,0 +1,49 @@ +#ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_CONNECTION_EDITOR_INTERFACE_HEADER +#define _NULLSOFT_WINAMP_DEVICES_DEVICE_CONNECTION_EDITOR_INTERFACE_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include + +// {B4CAEAF3-4488-4313-8A66-DEA916DEFCCC} +static const GUID IFC_DeviceConnectionEditor = +{ 0xb4caeaf3, 0x4488, 0x4313, { 0x8a, 0x66, 0xde, 0xa9, 0x16, 0xde, 0xfc, 0xcc } }; + + + +#include + +class ifc_deviceiconstore; + +class __declspec(novtable) ifc_deviceconnectioneditor : public Dispatchable +{ +protected: + ifc_deviceconnectioneditor() {} + ~ifc_deviceconnectioneditor() {} + +public: + HRESULT GetIconStore(ifc_deviceiconstore **iconStore); + HRESULT SetDisplayName(const wchar_t *displayName); + +public: + DISPATCH_CODES + { + API_GETICONSTORE = 10, + API_SETDISPLAYNAME = 20, + }; +}; + +inline HRESULT ifc_deviceconnectioneditor::GetIconStore(ifc_deviceiconstore **iconStore) +{ + return _call(API_GETICONSTORE, (HRESULT)E_NOTIMPL, iconStore); +} + +inline HRESULT ifc_deviceconnectioneditor::SetDisplayName(const wchar_t *displayName) +{ + return _call(API_SETDISPLAYNAME, (HRESULT)E_NOTIMPL, displayName); +} + + +#endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_CONNECTION_EDITOR_INTERFACE_HEADER \ No newline at end of file -- cgit