Added two printer error codes.
[wine/multimedia.git] / dlls / ole32 / ifs.h
blob8faf2a54140b2c7b847b85552f155c4e525f1f9b
1 /*
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 "objbase.h"
24 /***********************************************************************
25 * IMalloc16 interface
28 typedef struct IMalloc16 IMalloc16, *LPMALLOC16;
30 #define INTERFACE IMalloc16
31 #define IMalloc16_METHODS \
32 IUnknown_METHODS \
33 STDMETHOD_(LPVOID,Alloc)(THIS_ DWORD cb) PURE; \
34 STDMETHOD_(LPVOID,Realloc)(THIS_ LPVOID pv, DWORD cb) PURE; \
35 STDMETHOD_(void,Free)(THIS_ LPVOID pv) PURE; \
36 STDMETHOD_(DWORD,GetSize)(THIS_ LPVOID pv) PURE; \
37 STDMETHOD_(INT16,DidAlloc)(THIS_ LPVOID pv) PURE; \
38 STDMETHOD_(LPVOID,HeapMinimize)(THIS) PURE;
39 ICOM_DEFINE(IMalloc16,IUnknown)
40 #undef INTERFACE
42 /**********************************************************************/
44 extern LPMALLOC16 IMalloc16_Constructor();
46 /**********************************************************************/
48 typedef struct ILockBytes16 *LPLOCKBYTES16, ILockBytes16;
50 #define INTERFACE ILockBytes
51 #define ILockBytes16_METHODS \
52 IUnknown_METHODS \
53 STDMETHOD(ReadAt)(THIS_ ULARGE_INTEGER ulOffset, void *pv, ULONG cb, ULONG *pcbRead) PURE; \
54 STDMETHOD(WriteAt)(THIS_ ULARGE_INTEGER ulOffset, const void *pv, ULONG cb, ULONG *pcbWritten) PURE; \
55 STDMETHOD(Flush)(THIS) PURE; \
56 STDMETHOD(SetSize)(THIS_ ULARGE_INTEGER cb) PURE; \
57 STDMETHOD(LockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE; \
58 STDMETHOD(UnlockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE; \
59 STDMETHOD(Stat)(THIS_ STATSTG *pstatstg, DWORD grfStatFlag) PURE;
60 ICOM_DEFINE(ILockBytes16,IUnknown)
61 #undef INTERFACE
64 #endif /* __WINE_OLE_IFS_H */