aboutsummaryrefslogtreecommitdiff
path: root/Src/devices/deviceSupportedCommandEnum.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/deviceSupportedCommandEnum.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/devices/deviceSupportedCommandEnum.h')
-rw-r--r--Src/devices/deviceSupportedCommandEnum.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/Src/devices/deviceSupportedCommandEnum.h b/Src/devices/deviceSupportedCommandEnum.h
new file mode 100644
index 00000000..976595ee
--- /dev/null
+++ b/Src/devices/deviceSupportedCommandEnum.h
@@ -0,0 +1,48 @@
+#ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_ENUM_HEADER
+#define _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_ENUM_HEADER
+
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+#pragma once
+#endif
+
+#include "./ifc_devicesupportedcommandenum.h"
+#include "./ifC_devicesupportedcommand.h"
+
+class DeviceSupportedCommandEnum : public ifc_devicesupportedcommandenum
+{
+
+protected:
+ DeviceSupportedCommandEnum();
+ ~DeviceSupportedCommandEnum();
+
+public:
+ static HRESULT CreateInstance(ifc_devicesupportedcommand **commands,
+ size_t count,
+ DeviceSupportedCommandEnum **instance);
+
+public:
+ /* Dispatchable */
+ size_t AddRef();
+ size_t Release();
+ int QueryInterface(GUID interface_guid, void **object);
+
+ /* ifc_devicesupportedcommandenum*/
+ HRESULT Next(ifc_devicesupportedcommand **buffer, size_t bufferMax, size_t *count);
+ HRESULT Reset(void);
+ HRESULT Skip(size_t count);
+ HRESULT GetCount(size_t *count);
+
+protected:
+ size_t ref;
+ ifc_devicesupportedcommand **commands;
+ size_t count;
+ size_t cursor;
+
+protected:
+ RECVS_DISPATCH;
+
+
+
+};
+
+#endif // _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_ENUM_HEADER \ No newline at end of file