2002-03-10 00:29:33 +01: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 16:57:24 +01:00
|
|
|
#ifndef __WINE_OLE_IFS_H
|
|
|
|
#define __WINE_OLE_IFS_H
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
2002-12-23 02:39:35 +01:00
|
|
|
#include "objbase.h"
|
2001-07-24 01:50:18 +02:00
|
|
|
|
2004-01-23 23:51:41 +01:00
|
|
|
typedef CHAR OLECHAR16;
|
|
|
|
typedef LPSTR LPOLESTR16;
|
|
|
|
typedef LPCSTR LPCOLESTR16;
|
|
|
|
|
2005-07-22 11:03:29 +02:00
|
|
|
#define STDMETHOD16CALLTYPE __cdecl
|
|
|
|
#define STDMETHOD16(m) HRESULT (STDMETHOD16CALLTYPE *m)
|
|
|
|
#define STDMETHOD16_(t,m) t (STDMETHOD16CALLTYPE *m)
|
|
|
|
|
|
|
|
|
2001-07-24 01:50:18 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* IMalloc16 interface
|
|
|
|
*/
|
|
|
|
|
2005-07-26 20:32:53 +02:00
|
|
|
typedef struct IMalloc16 *LPMALLOC16;
|
2001-07-24 01:50:18 +02:00
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IMalloc16
|
2004-10-05 06:16:21 +02:00
|
|
|
DECLARE_INTERFACE_(IMalloc16,IUnknown)
|
|
|
|
{
|
|
|
|
/*** IUnknown methods ***/
|
2005-07-22 11:03:29 +02:00
|
|
|
STDMETHOD16_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
STDMETHOD16_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD16_(ULONG,Release)(THIS) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
/*** IMalloc16 methods ***/
|
2005-07-22 11:03:29 +02:00
|
|
|
STDMETHOD16_(LPVOID,Alloc)(THIS_ DWORD cb) PURE;
|
|
|
|
STDMETHOD16_(LPVOID,Realloc)(THIS_ LPVOID pv, DWORD cb) PURE;
|
|
|
|
STDMETHOD16_(void,Free)(THIS_ LPVOID pv) PURE;
|
|
|
|
STDMETHOD16_(DWORD,GetSize)(THIS_ LPVOID pv) PURE;
|
|
|
|
STDMETHOD16_(INT16,DidAlloc)(THIS_ LPVOID pv) PURE;
|
|
|
|
STDMETHOD16_(LPVOID,HeapMinimize)(THIS) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
};
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
2001-07-24 01:50:18 +02:00
|
|
|
|
|
|
|
/**********************************************************************/
|
|
|
|
|
2004-12-13 22:19:01 +01:00
|
|
|
extern LPMALLOC16 IMalloc16_Constructor(void);
|
1999-02-17 16:57:24 +01:00
|
|
|
|
2003-01-05 02:04:34 +01:00
|
|
|
/**********************************************************************/
|
|
|
|
|
2005-07-26 20:32:53 +02:00
|
|
|
typedef struct ILockBytes16 *LPLOCKBYTES16;
|
2003-01-05 02:04:34 +01:00
|
|
|
|
2004-10-05 06:16:21 +02:00
|
|
|
#define INTERFACE ILockBytes16
|
|
|
|
DECLARE_INTERFACE_(ILockBytes16,IUnknown)
|
|
|
|
{
|
|
|
|
/*** IUnknown methods ***/
|
2005-07-22 11:03:29 +02:00
|
|
|
STDMETHOD16_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
STDMETHOD16_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD16_(ULONG,Release)(THIS) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
/*** ILockBytes16 methods ***/
|
2005-07-22 11:03:29 +02:00
|
|
|
STDMETHOD16(ReadAt)(THIS_ ULARGE_INTEGER ulOffset, void *pv, ULONG cb, ULONG *pcbRead) PURE;
|
|
|
|
STDMETHOD16(WriteAt)(THIS_ ULARGE_INTEGER ulOffset, const void *pv, ULONG cb, ULONG *pcbWritten) PURE;
|
|
|
|
STDMETHOD16(Flush)(THIS) PURE;
|
|
|
|
STDMETHOD16(SetSize)(THIS_ ULARGE_INTEGER cb) PURE;
|
|
|
|
STDMETHOD16(LockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE;
|
|
|
|
STDMETHOD16(UnlockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE;
|
|
|
|
STDMETHOD16(Stat)(THIS_ STATSTG *pstatstg, DWORD grfStatFlag) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
};
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
2003-01-05 02:04:34 +01:00
|
|
|
|
2003-10-14 22:23:01 +02:00
|
|
|
/**********************************************************************/
|
|
|
|
|
|
|
|
typedef struct tagSTATSTG16
|
|
|
|
{
|
|
|
|
LPOLESTR16 pwcsName;
|
|
|
|
DWORD type;
|
|
|
|
ULARGE_INTEGER cbSize;
|
|
|
|
FILETIME mtime;
|
|
|
|
FILETIME ctime;
|
|
|
|
FILETIME atime;
|
|
|
|
DWORD grfMode;
|
|
|
|
DWORD grfLocksSupported;
|
|
|
|
CLSID clsid;
|
|
|
|
DWORD grfStateBits;
|
|
|
|
DWORD reserved;
|
|
|
|
} STATSTG16;
|
|
|
|
|
2005-07-26 20:32:53 +02:00
|
|
|
typedef struct IStream16 *LPSTREAM16;
|
2003-10-14 22:23:01 +02:00
|
|
|
|
|
|
|
#define INTERFACE IStream16
|
2004-10-05 06:16:21 +02:00
|
|
|
DECLARE_INTERFACE_(IStream16,ISequentialStream)
|
|
|
|
{
|
|
|
|
/*** IUnknown methods ***/
|
2005-07-22 11:03:29 +02:00
|
|
|
STDMETHOD16_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
STDMETHOD16_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD16_(ULONG,Release)(THIS) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
/*** ISequentialStream methods ***/
|
2005-07-22 11:03:29 +02:00
|
|
|
STDMETHOD16_(HRESULT,Read)(THIS_ void* pv, ULONG cb, ULONG* pcbRead) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,Write)(THIS_ const void* pv, ULONG cb, ULONG* pcbWritten) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
/*** IStream16 methods ***/
|
2005-07-22 11:03:29 +02:00
|
|
|
STDMETHOD16(Seek)(THIS_ LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER* plibNewPosition) PURE;
|
|
|
|
STDMETHOD16(SetSize)(THIS_ ULARGE_INTEGER libNewSize) PURE;
|
|
|
|
STDMETHOD16(CopyTo)(THIS_ IStream16* pstm, ULARGE_INTEGER cb, ULARGE_INTEGER* pcbRead, ULARGE_INTEGER* pcbWritten) PURE;
|
|
|
|
STDMETHOD16(Commit)(THIS_ DWORD grfCommitFlags) PURE;
|
|
|
|
STDMETHOD16(Revert)(THIS) PURE;
|
|
|
|
STDMETHOD16(LockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE;
|
|
|
|
STDMETHOD16(UnlockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE;
|
|
|
|
STDMETHOD16(Stat)(THIS_ STATSTG* pstatstg, DWORD grfStatFlag) PURE;
|
|
|
|
STDMETHOD16(Clone)(THIS_ IStream16** ppstm) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
};
|
2003-10-14 22:23:01 +02:00
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
/**********************************************************************/
|
|
|
|
|
|
|
|
typedef OLECHAR16 **SNB16;
|
|
|
|
|
2005-07-26 20:32:53 +02:00
|
|
|
typedef struct IStorage16 *LPSTORAGE16;
|
2003-10-14 22:23:01 +02:00
|
|
|
|
|
|
|
#define INTERFACE IStorage16
|
2004-10-05 06:16:21 +02:00
|
|
|
DECLARE_INTERFACE_(IStorage16,IUnknown)
|
|
|
|
{
|
|
|
|
/*** IUnknown methods ***/
|
2005-07-22 11:03:29 +02:00
|
|
|
STDMETHOD16_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
STDMETHOD16_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD16_(ULONG,Release)(THIS) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
/*** IStorage16 methods ***/
|
2005-07-22 11:03:29 +02:00
|
|
|
STDMETHOD16_(HRESULT,CreateStream)(THIS_ LPCOLESTR16 pwcsName, DWORD grfMode, DWORD reserved1, DWORD reserved2, IStream16** ppstm) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,OpenStream)(THIS_ LPCOLESTR16 pwcsName, void* reserved1, DWORD grfMode, DWORD reserved2, IStream16** ppstm) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,CreateStorage)(THIS_ LPCOLESTR16 pwcsName, DWORD grfMode, DWORD dwStgFmt, DWORD reserved2, IStorage16** ppstg) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,OpenStorage)(THIS_ LPCOLESTR16 pwcsName, IStorage16* pstgPriority, DWORD grfMode, SNB16 snbExclude, DWORD reserved, IStorage16** ppstg) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,CopyTo)(THIS_ DWORD ciidExclude, const IID* rgiidExclude, SNB16 snbExclude, IStorage16* pstgDest) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,MoveElementTo)(THIS_ LPCOLESTR16 pwcsName, IStorage16* pstgDest, LPCOLESTR16 pwcsNewName, DWORD grfFlags) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,Commit)(THIS_ DWORD grfCommitFlags) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,Revert)(THIS) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,EnumElements)(THIS_ DWORD reserved1, void* reserved2, DWORD reserved3, IEnumSTATSTG** ppenum) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,DestroyElement)(THIS_ LPCOLESTR16 pwcsName) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,RenameElement)(THIS_ LPCOLESTR16 pwcsOldName, LPCOLESTR16 pwcsNewName) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,SetElementTimes)(THIS_ LPCOLESTR16 pwcsName, const FILETIME* pctime, const FILETIME* patime, const FILETIME* pmtime) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,SetClass)(THIS_ REFCLSID clsid) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,SetStateBits)(THIS_ DWORD grfStateBits, DWORD grfMask) PURE;
|
|
|
|
STDMETHOD16_(HRESULT,Stat)(THIS_ STATSTG* pstatstg, DWORD grfStatFlag) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
};
|
2003-10-14 22:23:01 +02:00
|
|
|
#undef INTERFACE
|
2003-01-05 02:04:34 +01:00
|
|
|
|
1999-02-17 16:57:24 +01:00
|
|
|
#endif /* __WINE_OLE_IFS_H */
|