Mobile API Reference  MicroStrategy 2019
Msi_objidl.h
Go to the documentation of this file.
1 // File: objidl.h
2 // Date: August 27, 2001
3 // Author: Liqun Jin
4 //
5 // Copyright (C) 2001 MicroStrategy Incorporated
6 // All rights reserved
7 
8 // This header file stands in for the standard 'objidl.h' header file used in VC++
9 #ifndef __OBJIDL_H__
10 #define __OBJIDL_H__
11 
12 #include "Msi_oaidl.h"
13 
14 #ifdef WIN64
15  #include "../../../../3rdParty/BaseTsd.h"
16 #else
17  typedef unsigned long SIZE_T;
18 #endif
19 
20 // ============================================================================
21 // ISequentialStream
23 
25 {
26 public:
27  virtual /* [local] */ HRESULT STDMETHODCALLTYPE Read(
28  /* [length_is][size_is][out] */ void __RPC_FAR *pv,
29  /* [in] */ ULONG cb,
30  /* [out] */ ULONG __RPC_FAR *pcbRead) = 0;
31 
32  virtual /* [local] */ HRESULT STDMETHODCALLTYPE Write(
33  /* [size_is][in] */ const void __RPC_FAR *pv,
34  /* [in] */ ULONG cb,
35  /* [out] */ ULONG __RPC_FAR *pcbWritten) = 0;
36 
37 };
38 
39 // ============================================================================
40 // IStream
41 typedef struct tagSTATSTG
42 {
54 } STATSTG;
55 
56 typedef enum tagSTGTY
57 {
62 } STGTY;
63 
64 typedef enum tagSTREAM_SEEK
65 {
69 } STREAM_SEEK;
70 
71 typedef enum tagLOCKTYPE
72 {
76 } LOCKTYPE;
77 
79 
80 struct IStream : public ISequentialStream
81 {
82 public:
83  virtual /* [local] */ HRESULT STDMETHODCALLTYPE Seek(
84  /* [in] */ LARGE_INTEGER dlibMove,
85  /* [in] */ DWORD dwOrigin,
86  /* [out] */ ULARGE_INTEGER __RPC_FAR *plibNewPosition) = 0;
87 
89  /* [in] */ ULARGE_INTEGER libNewSize) = 0;
90 
91  virtual /* [local] */ HRESULT STDMETHODCALLTYPE CopyTo(
92  /* [unique][in] */ IStream __RPC_FAR *pstm,
93  /* [in] */ ULARGE_INTEGER cb,
94  /* [out] */ ULARGE_INTEGER __RPC_FAR *pcbRead,
95  /* [out] */ ULARGE_INTEGER __RPC_FAR *pcbWritten) = 0;
96 
98  /* [in] */ DWORD grfCommitFlags) = 0;
99 
100  virtual HRESULT STDMETHODCALLTYPE Revert( void) = 0;
101 
103  /* [in] */ ULARGE_INTEGER libOffset,
104  /* [in] */ ULARGE_INTEGER cb,
105  /* [in] */ DWORD dwLockType) = 0;
106 
108  /* [in] */ ULARGE_INTEGER libOffset,
109  /* [in] */ ULARGE_INTEGER cb,
110  /* [in] */ DWORD dwLockType) = 0;
111 
112  virtual HRESULT STDMETHODCALLTYPE Stat(
113  /* [out] */ STATSTG __RPC_FAR *pstatstg,
114  /* [in] */ DWORD grfStatFlag) = 0;
115 
117  /* [out] */ IStream __RPC_FAR *__RPC_FAR *ppstm) = 0;
118 
119 };
120 
121 typedef /* [unique] */ IStream __RPC_FAR *LPSTREAM;
122 
123 
124 // ============================================================================
125 // IMarshal
127 
128 struct IMarshal : public IUnknown
129 {
130 public:
132  /* [in] */ REFIID riid,
133  /* [unique][in] */ void __RPC_FAR *pv,
134  /* [in] */ DWORD dwDestContext,
135  /* [unique][in] */ void __RPC_FAR *pvDestContext,
136  /* [in] */ DWORD mshlflags,
137  /* [out] */ CLSID __RPC_FAR *pCid) = 0;
138 
140  /* [in] */ REFIID riid,
141  /* [unique][in] */ void __RPC_FAR *pv,
142  /* [in] */ DWORD dwDestContext,
143  /* [unique][in] */ void __RPC_FAR *pvDestContext,
144  /* [in] */ DWORD mshlflags,
145  /* [out] */ DWORD __RPC_FAR *pSize) = 0;
146 
148  /* [unique][in] */ IStream __RPC_FAR *pStm,
149  /* [in] */ REFIID riid,
150  /* [unique][in] */ void __RPC_FAR *pv,
151  /* [in] */ DWORD dwDestContext,
152  /* [unique][in] */ void __RPC_FAR *pvDestContext,
153  /* [in] */ DWORD mshlflags) = 0;
154 
156  /* [unique][in] */ IStream __RPC_FAR *pStm,
157  /* [in] */ REFIID riid,
158  /* [out] */ void __RPC_FAR *__RPC_FAR *ppv) = 0;
159 
161  /* [unique][in] */ IStream __RPC_FAR *pStm) = 0;
162 
164  /* [in] */ DWORD dwReserved) = 0;
165 
166 };
167 
168 typedef /* [unique] */ IMarshal __RPC_FAR *LPMARSHAL;
169 
170 //==================================================================
171 // added by yma, 8/28/01
172 
173 #ifndef __IPersist_FWD_DEFINED__
174 #define __IPersist_FWD_DEFINED__
175 typedef struct IPersist IPersist;
176 #endif /* __IPersist_FWD_DEFINED__ */
177 
178 #ifndef __IPersistStream_FWD_DEFINED__
179 #define __IPersistStream_FWD_DEFINED__
181 #endif /* __IPersistStream_FWD_DEFINED__ */
182 
183 //===================================================================
184 //IPersist
185 
187 
188 struct IPersist : public IUnknown
189  {
190  public:
192  /* [out] */ CLSID __RPC_FAR *pClassID) = 0;
193 
194  };
195 
196 //=================================================================
197 // IPersistStream
199 
200 struct IPersistStream : public IPersist
201 {
202 public:
203  virtual HRESULT STDMETHODCALLTYPE IsDirty( void) = 0;
204 
205  virtual HRESULT STDMETHODCALLTYPE Load(
206  /* [unique][in] */ IStream __RPC_FAR *pStm) = 0;
207 
208  virtual HRESULT STDMETHODCALLTYPE Save(
209  /* [unique][in] */ IStream __RPC_FAR *pStm,
210  /* [in] */ BOOL fClearDirty) = 0;
211 
213  /* [out] */ ULARGE_INTEGER __RPC_FAR *pcbSize) = 0;
214 
215 };
216 
217 //=================================================================
218 // IMallocSpy
220 
221 struct IMallocSpy : public IUnknown
222 {
223 public:
225  /* [in] */ SIZE_T cbRequest) = 0;
226 
227  virtual void __RPC_FAR *STDMETHODCALLTYPE PostAlloc(
228  /* [in] */ void __RPC_FAR *pActual) = 0;
229 
230  virtual void __RPC_FAR *STDMETHODCALLTYPE PreFree(
231  /* [in] */ void __RPC_FAR *pRequest,
232  /* [in] */ BOOL fSpyed) = 0;
233 
234  virtual void STDMETHODCALLTYPE PostFree(
235  /* [in] */ BOOL fSpyed) = 0;
236 
238  /* [in] */ void __RPC_FAR *pRequest,
239  /* [in] */ SIZE_T cbRequest,
240  /* [out] */ void __RPC_FAR *__RPC_FAR *ppNewRequest,
241  /* [in] */ BOOL fSpyed) = 0;
242 
243  virtual void __RPC_FAR *STDMETHODCALLTYPE PostRealloc(
244  /* [in] */ void __RPC_FAR *pActual,
245  /* [in] */ BOOL fSpyed) = 0;
246 
247  virtual void __RPC_FAR *STDMETHODCALLTYPE PreGetSize(
248  /* [in] */ void __RPC_FAR *pRequest,
249  /* [in] */ BOOL fSpyed) = 0;
250 
252  /* [in] */ SIZE_T cbActual,
253  /* [in] */ BOOL fSpyed) = 0;
254 
255  virtual void __RPC_FAR *STDMETHODCALLTYPE PreDidAlloc(
256  /* [in] */ void __RPC_FAR *pRequest,
257  /* [in] */ BOOL fSpyed) = 0;
258 
259  virtual int STDMETHODCALLTYPE PostDidAlloc(
260  /* [in] */ void __RPC_FAR *pRequest,
261  /* [in] */ BOOL fSpyed,
262  /* [in] */ int fActual) = 0;
263 
264  virtual void STDMETHODCALLTYPE PreHeapMinimize( void) = 0;
265 
266  virtual void STDMETHODCALLTYPE PostHeapMinimize( void) = 0;
267 
268 };
269 
270 #endif // __OBJIDL_H__
virtual void __RPC_FAR *STDMETHODCALLTYPE PostAlloc(void __RPC_FAR *pActual)=0
virtual HRESULT STDMETHODCALLTYPE Write(const void __RPC_FAR *pv, ULONG cb, ULONG __RPC_FAR *pcbWritten)=0
signed char BOOL
Definition: PDCwtypes.h:101
Definition: Msi_objidl.h:67
Definition: Msi_objidl.h:61
FILETIME mtime
Definition: Msi_objidl.h:46
IStream __RPC_FAR * LPSTREAM
Definition: Msi_objidl.h:121
enum tagSTREAM_SEEK STREAM_SEEK
Definition: Msi_objidl.h:74
Definition: Msi_objidl.h:73
IMarshal __RPC_FAR * LPMARSHAL
Definition: Msi_objidl.h:168
Definition: PDCwtypes.h:225
#define STDMETHODCALLTYPE
Definition: PDCwtypes.h:76
virtual HRESULT STDMETHODCALLTYPE MarshalInterface(IStream __RPC_FAR *pStm, REFIID riid, void __RPC_FAR *pv, DWORD dwDestContext, void __RPC_FAR *pvDestContext, DWORD mshlflags)=0
virtual HRESULT STDMETHODCALLTYPE GetMarshalSizeMax(REFIID riid, void __RPC_FAR *pv, DWORD dwDestContext, void __RPC_FAR *pvDestContext, DWORD mshlflags, DWORD __RPC_FAR *pSize)=0
EXTERN_C const IID IID_IStream
Definition: Msi_objidl.h:78
DWORD reserved
Definition: Msi_objidl.h:53
virtual HRESULT STDMETHODCALLTYPE DisconnectObject(DWORD dwReserved)=0
Definition: Msi_objidl.h:66
virtual HRESULT STDMETHODCALLTYPE Load(IStream __RPC_FAR *pStm)=0
DWORD grfLocksSupported
Definition: Msi_objidl.h:50
long HRESULT
Definition: FragmentedString.h:20
Definition: Msi_objidl.h:59
unsigned long SIZE_T
Definition: Msi_objidl.h:17
virtual HRESULT STDMETHODCALLTYPE LockRegion(ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType)=0
Definition: Msi_objidl.h:200
tagSTGTY
Definition: Msi_objidl.h:56
Definition: Msi_objidl.h:188
Definition: Msi_objidl.h:80
DWORD grfMode
Definition: Msi_objidl.h:49
Definition: Msi_objidl.h:60
virtual SIZE_T STDMETHODCALLTYPE PostGetSize(SIZE_T cbActual, BOOL fSpyed)=0
virtual HRESULT STDMETHODCALLTYPE GetUnmarshalClass(REFIID riid, void __RPC_FAR *pv, DWORD dwDestContext, void __RPC_FAR *pvDestContext, DWORD mshlflags, CLSID __RPC_FAR *pCid)=0
virtual SIZE_T STDMETHODCALLTYPE PreAlloc(SIZE_T cbRequest)=0
virtual HRESULT STDMETHODCALLTYPE Save(IStream __RPC_FAR *pStm, BOOL fClearDirty)=0
virtual void __RPC_FAR *STDMETHODCALLTYPE PreFree(void __RPC_FAR *pRequest, BOOL fSpyed)=0
Definition: PDCwtypes.h:249
FILETIME atime
Definition: Msi_objidl.h:48
REFIID LPVOID * ppv
Definition: Msi_atlbase.h:90
virtual HRESULT STDMETHODCALLTYPE GetSizeMax(ULARGE_INTEGER __RPC_FAR *pcbSize)=0
virtual void STDMETHODCALLTYPE PreHeapMinimize(void)=0
Definition: Msi_objidl.h:75
virtual void __RPC_FAR *STDMETHODCALLTYPE PostRealloc(void __RPC_FAR *pActual, BOOL fSpyed)=0
DWORD grfStateBits
Definition: Msi_objidl.h:52
virtual void STDMETHODCALLTYPE PostHeapMinimize(void)=0
virtual HRESULT STDMETHODCALLTYPE Clone(IStream __RPC_FAR *__RPC_FAR *ppstm)=0
virtual HRESULT STDMETHODCALLTYPE Revert(void)=0
virtual HRESULT STDMETHODCALLTYPE CopyTo(IStream __RPC_FAR *pstm, ULARGE_INTEGER cb, ULARGE_INTEGER __RPC_FAR *pcbRead, ULARGE_INTEGER __RPC_FAR *pcbWritten)=0
tagSTREAM_SEEK
Definition: Msi_objidl.h:64
ULARGE_INTEGER cbSize
Definition: Msi_objidl.h:45
enum tagSTGTY STGTY
EXTERN_C const IID IID_IPersistStream
Definition: Msi_objidl.h:198
virtual HRESULT STDMETHODCALLTYPE SetSize(ULARGE_INTEGER libNewSize)=0
virtual void __RPC_FAR *STDMETHODCALLTYPE PreGetSize(void __RPC_FAR *pRequest, BOOL fSpyed)=0
LPOLESTR pwcsName
Definition: Msi_objidl.h:43
virtual int STDMETHODCALLTYPE PostDidAlloc(void __RPC_FAR *pRequest, BOOL fSpyed, int fActual)=0
EXTERN_C const IID IID_ISequentialStream
Definition: Msi_objidl.h:22
virtual HRESULT STDMETHODCALLTYPE UnlockRegion(ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType)=0
virtual void STDMETHODCALLTYPE PostFree(BOOL fSpyed)=0
REFIID riid
Definition: Msi_atlbase.h:90
virtual SIZE_T STDMETHODCALLTYPE PreRealloc(void __RPC_FAR *pRequest, SIZE_T cbRequest, void __RPC_FAR *__RPC_FAR *ppNewRequest, BOOL fSpyed)=0
Definition: Msi_oaidl.h:41
DWORD type
Definition: Msi_objidl.h:44
#define __RPC_FAR
Definition: PDCrpc.h:38
ULONG cb
Definition: Msi_objbase.h:25
Definition: Msi_objidl.h:24
EXTERN_C const IID IID_IMarshal
Definition: Msi_objidl.h:126
virtual HRESULT STDMETHODCALLTYPE IsDirty(void)=0
Definition: PDCwtypes.h:202
CLSID clsid
Definition: Msi_objidl.h:51
virtual void __RPC_FAR *STDMETHODCALLTYPE PreDidAlloc(void __RPC_FAR *pRequest, BOOL fSpyed)=0
Definition: Msi_objidl.h:128
virtual HRESULT STDMETHODCALLTYPE GetClassID(CLSID __RPC_FAR *pClassID)=0
EXTERN_C const IID IID_IPersist
Definition: Msi_objidl.h:186
virtual HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER __RPC_FAR *plibNewPosition)=0
#define EXTERN_C
Definition: PDCwtypes.h:62
virtual HRESULT STDMETHODCALLTYPE Read(void __RPC_FAR *pv, ULONG cb, ULONG __RPC_FAR *pcbRead)=0
OLECHAR __RPC_FAR * LPOLESTR
Definition: PDCwtypes.h:392
tagLOCKTYPE
Definition: Msi_objidl.h:71
virtual HRESULT STDMETHODCALLTYPE UnmarshalInterface(IStream __RPC_FAR *pStm, REFIID riid, void __RPC_FAR *__RPC_FAR *ppv)=0
Definition: Msi_objidl.h:221
Definition: Msi_objidl.h:68
Definition: Msi_objidl.h:58
DWORD ULONG
Definition: PDCwtypes.h:127
virtual HRESULT STDMETHODCALLTYPE Commit(DWORD grfCommitFlags)=0
unsigned long DWORD
Definition: PDCwtypes.h:121
virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG __RPC_FAR *pstatstg, DWORD grfStatFlag)=0
virtual HRESULT STDMETHODCALLTYPE ReleaseMarshalData(IStream __RPC_FAR *pStm)=0
#define REFIID
Definition: PDCwtypes.h:321
Definition: Base/Base/GUID.h:32
enum tagLOCKTYPE LOCKTYPE
Definition: Msi_objidl.h:41
struct tagSTATSTG STATSTG
FILETIME ctime
Definition: Msi_objidl.h:47
EXTERN_C const IID IID_IMallocSpy
Definition: Msi_objidl.h:219