xref: /reactos/dll/win32/ole32/enumx.h (revision fb5d5ecd)
1 /*
2  * Copyright 2006 Mike McCormack
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 #ifndef __OLE_ENUM_H__
20 #define __OLE_ENUM_H__
21 
22 typedef struct tagEnumSTATPROPSETSTG_impl enumx_impl;
23 
24 typedef void (*enumx_copy_cb)(IUnknown *parent, void *orig, void *dest);
25 
26 extern HRESULT WINAPI enumx_QueryInterface(enumx_impl *, REFIID, void**) DECLSPEC_HIDDEN;
27 extern ULONG WINAPI enumx_AddRef(enumx_impl *) DECLSPEC_HIDDEN;
28 extern ULONG WINAPI enumx_Release(enumx_impl *) DECLSPEC_HIDDEN;
29 extern HRESULT WINAPI enumx_Next(enumx_impl *, ULONG, void *, ULONG *) DECLSPEC_HIDDEN;
30 extern HRESULT WINAPI enumx_Skip(enumx_impl *, ULONG) DECLSPEC_HIDDEN;
31 extern HRESULT WINAPI enumx_Reset(enumx_impl *) DECLSPEC_HIDDEN;
32 extern HRESULT WINAPI enumx_Clone(enumx_impl *, enumx_impl **) DECLSPEC_HIDDEN;
33 extern enumx_impl *enumx_allocate(REFIID, const void *, ULONG,
34                                   IUnknown *, enumx_copy_cb) DECLSPEC_HIDDEN;
35 extern void *enumx_add_element(enumx_impl *, const void *) DECLSPEC_HIDDEN;
36 
37 #endif
38