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/omBrowser/ifc_omstoragehandlerenum.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/omBrowser/ifc_omstoragehandlerenum.h')
-rw-r--r-- | Src/omBrowser/ifc_omstoragehandlerenum.h | 50 |
1 files changed, 50 insertions, 0 deletions
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 <bfc/dispatch.h> +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 |