2002-03-09 23:29:33 +00:00
|
|
|
/*
|
|
|
|
* Copyright 1997 Marcus Meissner
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
1999-02-17 15:57:24 +00:00
|
|
|
#ifndef __WINE_OLE_IFS_H
|
|
|
|
#define __WINE_OLE_IFS_H
|
|
|
|
|
2002-12-23 01:39:35 +00:00
|
|
|
#include "objbase.h"
|
2001-07-23 23:50:18 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* IMalloc16 interface
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct IMalloc16 IMalloc16, *LPMALLOC16;
|
|
|
|
|
2003-04-10 00:19:24 +00:00
|
|
|
#define INTERFACE IMalloc16
|
2001-07-23 23:50:18 +00:00
|
|
|
#define IMalloc16_METHODS \
|
2003-04-10 00:19:24 +00:00
|
|
|
STDMETHOD_(LPVOID,Alloc)(THIS_ DWORD cb) PURE; \
|
|
|
|
STDMETHOD_(LPVOID,Realloc)(THIS_ LPVOID pv, DWORD cb) PURE; \
|
|
|
|
STDMETHOD_(void,Free)(THIS_ LPVOID pv) PURE; \
|
|
|
|
STDMETHOD_(DWORD,GetSize)(THIS_ LPVOID pv) PURE; \
|
|
|
|
STDMETHOD_(INT16,DidAlloc)(THIS_ LPVOID pv) PURE; \
|
|
|
|
STDMETHOD_(LPVOID,HeapMinimize)(THIS) PURE;
|
2001-07-23 23:50:18 +00:00
|
|
|
#define IMalloc16_IMETHODS \
|
|
|
|
IUnknown_IMETHODS \
|
|
|
|
IMalloc16_METHODS
|
|
|
|
ICOM_DEFINE(IMalloc16,IUnknown)
|
2003-04-10 00:19:24 +00:00
|
|
|
#undef INTERFACE
|
2001-07-23 23:50:18 +00:00
|
|
|
|
|
|
|
/**********************************************************************/
|
|
|
|
|
1999-02-17 15:57:24 +00:00
|
|
|
extern LPMALLOC16 IMalloc16_Constructor();
|
|
|
|
|
2003-01-05 01:04:34 +00:00
|
|
|
/**********************************************************************/
|
|
|
|
|
|
|
|
typedef struct ILockBytes16 *LPLOCKBYTES16, ILockBytes16;
|
|
|
|
|
2003-04-10 00:19:24 +00:00
|
|
|
#define INTERFACE ILockBytes
|
2003-01-05 01:04:34 +00:00
|
|
|
#define ILockBytes16_METHODS \
|
2003-04-10 00:19:24 +00:00
|
|
|
STDMETHOD(ReadAt)(THIS_ ULARGE_INTEGER ulOffset, void *pv, ULONG cb, ULONG *pcbRead) PURE; \
|
|
|
|
STDMETHOD(WriteAt)(THIS_ ULARGE_INTEGER ulOffset, const void *pv, ULONG cb, ULONG *pcbWritten) PURE; \
|
|
|
|
STDMETHOD(Flush)(THIS) PURE; \
|
|
|
|
STDMETHOD(SetSize)(THIS_ ULARGE_INTEGER cb) PURE; \
|
|
|
|
STDMETHOD(LockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE; \
|
|
|
|
STDMETHOD(UnlockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE; \
|
|
|
|
STDMETHOD(Stat)(THIS_ STATSTG *pstatstg, DWORD grfStatFlag) PURE;
|
2003-01-05 01:04:34 +00:00
|
|
|
|
|
|
|
#define ILockBytes16_IMETHODS \
|
|
|
|
IUnknown_IMETHODS \
|
|
|
|
ILockBytes16_METHODS
|
|
|
|
|
|
|
|
ICOM_DEFINE(ILockBytes16,IUnknown)
|
2003-04-10 00:19:24 +00:00
|
|
|
#undef INTERFACE
|
2003-01-05 01:04:34 +00:00
|
|
|
|
|
|
|
|
1999-02-17 15:57:24 +00:00
|
|
|
#endif /* __WINE_OLE_IFS_H */
|