2 * Copyright 1997 Marcus Meissner
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_OLE_IFS_H
20 #define __WINE_OLE_IFS_H
22 #include "wine/obj_base.h"
24 /***********************************************************************
28 typedef struct IMalloc16 IMalloc16, *LPMALLOC16;
30 #define ICOM_INTERFACE IMalloc16
31 #define IMalloc16_METHODS \
32 ICOM_METHOD1 (LPVOID, Alloc, DWORD, cb) \
33 ICOM_METHOD2 (LPVOID, Realloc, LPVOID, pv, DWORD, cb) \
34 ICOM_VMETHOD1( Free, LPVOID, pv) \
35 ICOM_METHOD1 (DWORD, GetSize, LPVOID, pv) \
36 ICOM_METHOD1 (INT16, DidAlloc, LPVOID, pv) \
37 ICOM_METHOD (LPVOID, HeapMinimize)
38 #define IMalloc16_IMETHODS \
41 ICOM_DEFINE(IMalloc16,IUnknown)
44 /*** IUnknown methods ***/
45 #define IMalloc16_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
46 #define IMalloc16_AddRef(p) ICOM_CALL (AddRef,p)
47 #define IMalloc16_Release(p) ICOM_CALL (Release,p)
48 /*** IMalloc16 methods ***/
49 #define IMalloc16_Alloc(p,a) ICOM_CALL1(Alloc,p,a)
50 #define IMalloc16_Realloc(p,a,b) ICOM_CALL2(Realloc,p,a,b)
51 #define IMalloc16_Free(p,a) ICOM_CALL1(Free,p,a)
52 #define IMalloc16_GetSize(p,a) ICOM_CALL1(GetSize,p,a)
53 #define IMalloc16_DidAlloc(p,a) ICOM_CALL1(DidAlloc,p,a)
54 #define IMalloc16_HeapMinimize(p) ICOM_CALL (HeapMinimize,p)
56 /**********************************************************************/
58 extern LPMALLOC16 IMalloc16_Constructor();
60 #endif /* __WINE_OLE_IFS_H */