aboutsummaryrefslogtreecommitdiff
path: root/Src/devices/ifc_devicesupportedcommand.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/devices/ifc_devicesupportedcommand.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/devices/ifc_devicesupportedcommand.h')
-rw-r--r--Src/devices/ifc_devicesupportedcommand.h46
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