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