- beginning of vertex matrix blending using extensions (currently
[wine] / dlls / ole32 / ifs.h
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 "objbase.h"
23
24 /***********************************************************************
25  * IMalloc16 interface
26  */
27
28 typedef struct IMalloc16 IMalloc16, *LPMALLOC16;
29
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 \
39     IUnknown_IMETHODS \
40     IMalloc16_METHODS
41 ICOM_DEFINE(IMalloc16,IUnknown)
42 #undef ICOM_INTERFACE
43
44 /**********************************************************************/
45
46 extern LPMALLOC16 IMalloc16_Constructor();
47
48 /**********************************************************************/
49
50 typedef struct ILockBytes16 *LPLOCKBYTES16, ILockBytes16;
51
52 #define ICOM_INTERFACE ILockBytes
53 #define ILockBytes16_METHODS \
54         ICOM_METHOD4(HRESULT,ReadAt,       ULARGE_INTEGER,ulOffset, void*,pv, ULONG, cb, ULONG*,pcbRead) \
55         ICOM_METHOD4(HRESULT,WriteAt,      ULARGE_INTEGER,ulOffset, const void*,pv, ULONG,cb, ULONG*,pcbWritten) \
56         ICOM_METHOD (HRESULT,Flush) \
57         ICOM_METHOD1(HRESULT,SetSize,      ULARGE_INTEGER,cb) \
58         ICOM_METHOD3(HRESULT,LockRegion,   ULARGE_INTEGER,libOffset, ULARGE_INTEGER, cb, DWORD,dwLockType) \
59         ICOM_METHOD3(HRESULT,UnlockRegion, ULARGE_INTEGER,libOffset, ULARGE_INTEGER, cb, DWORD,dwLockType) \
60         ICOM_METHOD2(HRESULT,Stat,         STATSTG*,pstatstg, DWORD,grfStatFlag)
61
62 #define ILockBytes16_IMETHODS \
63         IUnknown_IMETHODS \
64         ILockBytes16_METHODS
65
66 ICOM_DEFINE(ILockBytes16,IUnknown)
67 #undef ICOM_INTERFACE
68
69
70 #endif /* __WINE_OLE_IFS_H */