Added wine_dbg_sprintf function that allocates a temporary buffer in
[wine] / include / wine / obj_enumguid.h
1 /*
2  * Defines the COM interfaces and APIs related to EnumGUID
3  *
4  * Depends on 'obj_base.h'.
5  *
6  * Copyright (C) 2002 John K. Hohm
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_ENUMGUID_H
24 #define __WINE_WINE_OBJ_ENUMGUID_H
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* defined(__cplusplus) */
29
30 /*****************************************************************************
31  * Predeclare the interfaces
32  */
33 DEFINE_OLEGUID(IID_IEnumGUID, 0x0002E000L, 0, 0);
34 typedef struct IEnumGUID IEnumGUID, *LPENUMGUID;
35
36 /*****************************************************************************
37  * IEnumGUID
38  */
39 #define ICOM_INTERFACE IEnumGUID
40 #define IEnumGUID_METHODS \
41     ICOM_METHOD3(HRESULT, Next, ULONG, celt, GUID*, rgelt, ULONG*, pceltFetched) \
42     ICOM_METHOD1(HRESULT, Skip, ULONG, celt) \
43     ICOM_METHOD (HRESULT, Reset) \
44     ICOM_METHOD1(HRESULT, Clone, IEnumGUID**, ppenum)
45 #define IEnumGUID_IMETHODS \
46     IUnknown_IMETHODS \
47     IEnumGUID_METHODS
48 ICOM_DEFINE(IEnumGUID,IUnknown)
49 #undef ICOM_INTERFACE
50
51 #ifdef ICOM_CINTERFACE
52 /*** IUnknown methods ***/
53 #define IEnumGUID_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
54 #define IEnumGUID_AddRef(p)             ICOM_CALL (AddRef,p)
55 #define IEnumGUID_Release(p)            ICOM_CALL (Release,p)
56 /*** IEnumGUID methods ***/
57 #define IEnumGUID_Next(p,a,b,c)         ICOM_CALL3(Next,p,a,b,c)
58 #define IEnumGUID_Skip(p,a)             ICOM_CALL1(Skip,p,a)
59 #define IEnumGUID_Reset(p)              ICOM_CALL(Reset,p)
60 #define IEnumGUID_Clone(p,a)            ICOM_CALL1(Clone,p,a)
61 #endif
62
63 #ifdef __cplusplus
64 } /* extern "C" */
65 #endif /* defined(__cplusplus) */
66
67 #endif /* __WINE_WINE_OBJ_ENUMGUID_H */