diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/omBrowser/ifc_omstorageenum.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/omBrowser/ifc_omstorageenum.h')
-rw-r--r-- | Src/omBrowser/ifc_omstorageenum.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Src/omBrowser/ifc_omstorageenum.h b/Src/omBrowser/ifc_omstorageenum.h new file mode 100644 index 00000000..0c2661d1 --- /dev/null +++ b/Src/omBrowser/ifc_omstorageenum.h @@ -0,0 +1,50 @@ +#ifndef NULLSOFT_WINAMP_OMSTORAGE_ENUMERATOR_INTERFACE_HEADER +#define NULLSOFT_WINAMP_OMSTORAGE_ENUMERATOR_INTERFACE_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +// {31BF2BEF-4362-4277-A4E1-0589336BC55C} +static const GUID IFC_OmStorageEnumerator = +{ 0x31bf2bef, 0x4362, 0x4277, { 0xa4, 0xe1, 0x5, 0x89, 0x33, 0x6b, 0xc5, 0x5c } }; + +#include <bfc/dispatch.h> +class ifc_omstorage; + +class __declspec(novtable) ifc_omstorageenumerator : public Dispatchable +{ +protected: + ifc_omstorageenumerator() {} + ~ifc_omstorageenumerator() {} + +public: + HRESULT Next(unsigned long listSize, ifc_omstorage **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_omstorageenumerator::Next(unsigned long listSize, ifc_omstorage **elementList, unsigned long *elementCount) +{ + return _call(API_NEXT, (HRESULT)E_NOTIMPL, listSize, elementList, elementCount); +} + +inline HRESULT ifc_omstorageenumerator::Reset(void) +{ + return _call(API_RESET, (HRESULT)E_NOTIMPL); +} + +inline HRESULT ifc_omstorageenumerator::Skip(unsigned long elementCount) +{ + return _call(API_SKIP, (HRESULT)E_NOTIMPL, elementCount); +} + +#endif //NULLSOFT_WINAMP_OMSTORAGE_ENUMERATOR_INTERFACE_HEADER
\ No newline at end of file |