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/omBrowser/ifc_omstoragehandlerenum.h | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Src/omBrowser/ifc_omstoragehandlerenum.h (limited to 'Src/omBrowser/ifc_omstoragehandlerenum.h') diff --git a/Src/omBrowser/ifc_omstoragehandlerenum.h b/Src/omBrowser/ifc_omstoragehandlerenum.h new file mode 100644 index 00000000..780d9e40 --- /dev/null +++ b/Src/omBrowser/ifc_omstoragehandlerenum.h @@ -0,0 +1,50 @@ +#ifndef NULLSOFT_WINAMP_OMSTORAGE_HANDLER_ENUMERATOR_INTERFACE_HEADER +#define NULLSOFT_WINAMP_OMSTORAGE_HANDLER_ENUMERATOR_INTERFACE_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +// {412877D7-0482-423d-87B9-975137588F6E} +static const GUID IFC_OmStorageHandlerEnum = +{ 0x412877d7, 0x482, 0x423d, { 0x87, 0xb9, 0x97, 0x51, 0x37, 0x58, 0x8f, 0x6e } }; + +#include +class ifc_omstoragehandler; + +class __declspec(novtable) ifc_omstoragehandlerenum : public Dispatchable +{ +protected: + ifc_omstoragehandlerenum() {} + ~ifc_omstoragehandlerenum() {} + +public: + HRESULT Next(unsigned long listSize, ifc_omstoragehandler **elementList, unsigned long *elementCount); + HRESULT Reset(void); + HRESULT Skip(unsigned long elementCount); + +public: + DISPATCH_CODES + { + API_NEXT = 10, + API_RESET = 20, + API_SKIP = 30, + }; +}; + +inline HRESULT ifc_omstoragehandlerenum::Next(unsigned long listSize, ifc_omstoragehandler **elementList, unsigned long *elementCount) +{ + return _call(API_NEXT, (HRESULT)E_NOTIMPL, listSize, elementList, elementCount); +} + +inline HRESULT ifc_omstoragehandlerenum::Reset(void) +{ + return _call(API_RESET, (HRESULT)E_NOTIMPL); +} + +inline HRESULT ifc_omstoragehandlerenum::Skip(unsigned long elementCount) +{ + return _call(API_SKIP, (HRESULT)E_NOTIMPL, elementCount); +} + +#endif //NULLSOFT_WINAMP_OMSTORAGE_HANDLER_ENUMERATOR_INTERFACE_HEADER \ No newline at end of file -- cgit