kernel32/tests: Add a test to check some fields in fake dlls.
[wine.git] / dlls / storage.dll16 / ifs.h
blobbda03e4122277d9da5402ad151f266232e803f10
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_OLE_IFS_H
20 #define __WINE_OLE_IFS_H
22 #include <stdarg.h>
24 #include "windef.h"
25 #include "winbase.h"
26 #include "objbase.h"
28 typedef CHAR OLECHAR16;
29 typedef LPSTR LPOLESTR16;
30 typedef LPCSTR LPCOLESTR16;
32 #define STDMETHOD16CALLTYPE __cdecl
33 #define STDMETHOD16(m) HRESULT (STDMETHOD16CALLTYPE *m)
34 #define STDMETHOD16_(t,m) t (STDMETHOD16CALLTYPE *m)
37 /**********************************************************************/
39 typedef struct ILockBytes16 *LPLOCKBYTES16;
41 #define INTERFACE ILockBytes16
42 DECLARE_INTERFACE_(ILockBytes16,IUnknown)
44 /*** IUnknown methods ***/
45 STDMETHOD16_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
46 STDMETHOD16_(ULONG,AddRef)(THIS) PURE;
47 STDMETHOD16_(ULONG,Release)(THIS) PURE;
48 /*** ILockBytes16 methods ***/
49 STDMETHOD16(ReadAt)(THIS_ ULARGE_INTEGER ulOffset, void *pv, ULONG cb, ULONG *pcbRead) PURE;
50 STDMETHOD16(WriteAt)(THIS_ ULARGE_INTEGER ulOffset, const void *pv, ULONG cb, ULONG *pcbWritten) PURE;
51 STDMETHOD16(Flush)(THIS) PURE;
52 STDMETHOD16(SetSize)(THIS_ ULARGE_INTEGER cb) PURE;
53 STDMETHOD16(LockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE;
54 STDMETHOD16(UnlockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE;
55 STDMETHOD16(Stat)(THIS_ STATSTG *pstatstg, DWORD grfStatFlag) PURE;
57 #undef INTERFACE
59 /**********************************************************************/
61 typedef struct tagSTATSTG16
63 LPOLESTR16 pwcsName;
64 DWORD type;
65 ULARGE_INTEGER cbSize;
66 FILETIME mtime;
67 FILETIME ctime;
68 FILETIME atime;
69 DWORD grfMode;
70 DWORD grfLocksSupported;
71 CLSID clsid;
72 DWORD grfStateBits;
73 DWORD reserved;
74 } STATSTG16;
76 typedef struct IStream16 *LPSTREAM16;
78 #define INTERFACE IStream16
79 DECLARE_INTERFACE_(IStream16,ISequentialStream)
81 /*** IUnknown methods ***/
82 STDMETHOD16_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
83 STDMETHOD16_(ULONG,AddRef)(THIS) PURE;
84 STDMETHOD16_(ULONG,Release)(THIS) PURE;
85 /*** ISequentialStream methods ***/
86 STDMETHOD16_(HRESULT,Read)(THIS_ void* pv, ULONG cb, ULONG* pcbRead) PURE;
87 STDMETHOD16_(HRESULT,Write)(THIS_ const void* pv, ULONG cb, ULONG* pcbWritten) PURE;
88 /*** IStream16 methods ***/
89 STDMETHOD16(Seek)(THIS_ LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER* plibNewPosition) PURE;
90 STDMETHOD16(SetSize)(THIS_ ULARGE_INTEGER libNewSize) PURE;
91 STDMETHOD16(CopyTo)(THIS_ IStream16* pstm, ULARGE_INTEGER cb, ULARGE_INTEGER* pcbRead, ULARGE_INTEGER* pcbWritten) PURE;
92 STDMETHOD16(Commit)(THIS_ DWORD grfCommitFlags) PURE;
93 STDMETHOD16(Revert)(THIS) PURE;
94 STDMETHOD16(LockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE;
95 STDMETHOD16(UnlockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE;
96 STDMETHOD16(Stat)(THIS_ STATSTG* pstatstg, DWORD grfStatFlag) PURE;
97 STDMETHOD16(Clone)(THIS_ IStream16** ppstm) PURE;
99 #undef INTERFACE
101 /**********************************************************************/
103 typedef OLECHAR16 **SNB16;
105 typedef struct IStorage16 *LPSTORAGE16;
107 #define INTERFACE IStorage16
108 DECLARE_INTERFACE_(IStorage16,IUnknown)
110 /*** IUnknown methods ***/
111 STDMETHOD16_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
112 STDMETHOD16_(ULONG,AddRef)(THIS) PURE;
113 STDMETHOD16_(ULONG,Release)(THIS) PURE;
114 /*** IStorage16 methods ***/
115 STDMETHOD16_(HRESULT,CreateStream)(THIS_ LPCOLESTR16 pwcsName, DWORD grfMode, DWORD reserved1, DWORD reserved2, IStream16** ppstm) PURE;
116 STDMETHOD16_(HRESULT,OpenStream)(THIS_ LPCOLESTR16 pwcsName, void* reserved1, DWORD grfMode, DWORD reserved2, IStream16** ppstm) PURE;
117 STDMETHOD16_(HRESULT,CreateStorage)(THIS_ LPCOLESTR16 pwcsName, DWORD grfMode, DWORD dwStgFmt, DWORD reserved2, IStorage16** ppstg) PURE;
118 STDMETHOD16_(HRESULT,OpenStorage)(THIS_ LPCOLESTR16 pwcsName, IStorage16* pstgPriority, DWORD grfMode, SNB16 snbExclude, DWORD reserved, IStorage16** ppstg) PURE;
119 STDMETHOD16_(HRESULT,CopyTo)(THIS_ DWORD ciidExclude, const IID* rgiidExclude, SNB16 snbExclude, IStorage16* pstgDest) PURE;
120 STDMETHOD16_(HRESULT,MoveElementTo)(THIS_ LPCOLESTR16 pwcsName, IStorage16* pstgDest, LPCOLESTR16 pwcsNewName, DWORD grfFlags) PURE;
121 STDMETHOD16_(HRESULT,Commit)(THIS_ DWORD grfCommitFlags) PURE;
122 STDMETHOD16_(HRESULT,Revert)(THIS) PURE;
123 STDMETHOD16_(HRESULT,EnumElements)(THIS_ DWORD reserved1, void* reserved2, DWORD reserved3, IEnumSTATSTG** ppenum) PURE;
124 STDMETHOD16_(HRESULT,DestroyElement)(THIS_ LPCOLESTR16 pwcsName) PURE;
125 STDMETHOD16_(HRESULT,RenameElement)(THIS_ LPCOLESTR16 pwcsOldName, LPCOLESTR16 pwcsNewName) PURE;
126 STDMETHOD16_(HRESULT,SetElementTimes)(THIS_ LPCOLESTR16 pwcsName, const FILETIME* pctime, const FILETIME* patime, const FILETIME* pmtime) PURE;
127 STDMETHOD16_(HRESULT,SetClass)(THIS_ REFCLSID clsid) PURE;
128 STDMETHOD16_(HRESULT,SetStateBits)(THIS_ DWORD grfStateBits, DWORD grfMask) PURE;
129 STDMETHOD16_(HRESULT,Stat)(THIS_ STATSTG* pstatstg, DWORD grfStatFlag) PURE;
131 #undef INTERFACE
133 #endif /* __WINE_OLE_IFS_H */