Use the right buffer size in SYSPARAMS_Load instead of some random
[wine] / include / wine / obj_enumidlist.h
1 /*
2  * Defines the COM interfaces and APIs related to EnumIDList
3  *
4  * Depends on 'obj_base.h'.
5  *
6  * Copyright (C) 1999 Juergen Schmied
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #ifndef __WINE_WINE_OBJ_ENUMIDLIST_H
24 #define __WINE_WINE_OBJ_ENUMIDLIST_H
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* defined(__cplusplus) */
29
30 /*****************************************************************************
31  * Predeclare the interfaces
32  */
33 typedef struct IEnumIDList IEnumIDList, *LPENUMIDLIST;
34
35 #define ICOM_INTERFACE IEnumIDList
36 #define IEnumIDList_METHODS \
37     ICOM_METHOD3(HRESULT, Next, ULONG, celt, LPITEMIDLIST*, rgelt, ULONG*, pceltFetched) \
38     ICOM_METHOD1(HRESULT, Skip, ULONG, celt) \
39     ICOM_METHOD (HRESULT, Reset) \
40     ICOM_METHOD1(HRESULT, Clone, IEnumIDList**, ppenum)
41 #define IEnumIDList_IMETHODS \
42     IUnknown_IMETHODS \
43     IEnumIDList_METHODS
44 ICOM_DEFINE(IEnumIDList,IUnknown)
45 #undef ICOM_INTERFACE
46
47 /*** IUnknown methods ***/
48 #define IEnumIDList_QueryInterface(p,a,b)       ICOM_CALL2(QueryInterface,p,a,b)
49 #define IEnumIDList_AddRef(p)                   ICOM_CALL (AddRef,p)
50 #define IEnumIDList_Release(p)                  ICOM_CALL (Release,p)
51 /*** IEnumIDList methods ***/
52 #define IEnumIDList_Next(p,a,b,c)               ICOM_CALL3(Next,p,a,b,c)
53 #define IEnumIDList_Skip(p,a)                   ICOM_CALL1(Skip,p,a)
54 #define IEnumIDList_Reset(p)                    ICOM_CALL(Reset,p)
55 #define IEnumIDList_Clone(p,a)                  ICOM_CALL1(Clone,p,a)
56
57 #ifdef __cplusplus
58 } /* extern "C" */
59 #endif /* defined(__cplusplus) */
60
61 #endif /* __WINE_WINE_OBJ_ENUMIDLIST_H */