Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

496 lines
15 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for storext.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext, robust
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __storext_h__
  27. #define __storext_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IOverlappedCompletion_FWD_DEFINED__
  33. #define __IOverlappedCompletion_FWD_DEFINED__
  34. typedef interface IOverlappedCompletion IOverlappedCompletion;
  35. #endif /* __IOverlappedCompletion_FWD_DEFINED__ */
  36. #ifndef __IOverlappedStream_FWD_DEFINED__
  37. #define __IOverlappedStream_FWD_DEFINED__
  38. typedef interface IOverlappedStream IOverlappedStream;
  39. #endif /* __IOverlappedStream_FWD_DEFINED__ */
  40. /* header files for imported files */
  41. #include "wtypes.h"
  42. #include "unknwn.h"
  43. #include "objidl.h"
  44. #ifdef __cplusplus
  45. extern "C"{
  46. #endif
  47. void * __RPC_USER MIDL_user_allocate(size_t);
  48. void __RPC_USER MIDL_user_free( void * );
  49. /* interface __MIDL_itf_storext_0000 */
  50. /* [local] */
  51. //+-------------------------------------------------------------------------
  52. //
  53. // Microsoft Windows
  54. // Copyright (c) Microsoft Corporation. All rights reserved.
  55. //
  56. //--------------------------------------------------------------------------
  57. #if ( _MSC_VER >= 1020 )
  58. #pragma once
  59. #endif
  60. typedef /* [wire_marshal] */ void *HEVENT;
  61. typedef struct _STGOVERLAPPED
  62. {
  63. DWORD Internal;
  64. DWORD InternalHigh;
  65. DWORD Offset;
  66. DWORD OffsetHigh;
  67. HEVENT hEvent;
  68. IOverlappedCompletion *lpCompletion;
  69. DWORD reserved;
  70. } STGOVERLAPPED;
  71. typedef struct _STGOVERLAPPED *LPSTGOVERLAPPED;
  72. extern RPC_IF_HANDLE __MIDL_itf_storext_0000_v0_0_c_ifspec;
  73. extern RPC_IF_HANDLE __MIDL_itf_storext_0000_v0_0_s_ifspec;
  74. #ifndef __IOverlappedCompletion_INTERFACE_DEFINED__
  75. #define __IOverlappedCompletion_INTERFACE_DEFINED__
  76. /* interface IOverlappedCompletion */
  77. /* [unique][uuid][object] */
  78. EXTERN_C const IID IID_IOverlappedCompletion;
  79. #if defined(__cplusplus) && !defined(CINTERFACE)
  80. MIDL_INTERFACE("521a28f0-e40b-11ce-b2c9-00aa00680937")
  81. IOverlappedCompletion : public IUnknown
  82. {
  83. public:
  84. virtual HRESULT STDMETHODCALLTYPE OnComplete(
  85. /* [in] */ HRESULT hr,
  86. /* [in] */ DWORD pcbTransferred,
  87. /* [in] */ STGOVERLAPPED *lpOverlapped) = 0;
  88. };
  89. #else /* C style interface */
  90. typedef struct IOverlappedCompletionVtbl
  91. {
  92. BEGIN_INTERFACE
  93. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  94. IOverlappedCompletion * This,
  95. /* [in] */ REFIID riid,
  96. /* [iid_is][out] */ void **ppvObject);
  97. ULONG ( STDMETHODCALLTYPE *AddRef )(
  98. IOverlappedCompletion * This);
  99. ULONG ( STDMETHODCALLTYPE *Release )(
  100. IOverlappedCompletion * This);
  101. HRESULT ( STDMETHODCALLTYPE *OnComplete )(
  102. IOverlappedCompletion * This,
  103. /* [in] */ HRESULT hr,
  104. /* [in] */ DWORD pcbTransferred,
  105. /* [in] */ STGOVERLAPPED *lpOverlapped);
  106. END_INTERFACE
  107. } IOverlappedCompletionVtbl;
  108. interface IOverlappedCompletion
  109. {
  110. CONST_VTBL struct IOverlappedCompletionVtbl *lpVtbl;
  111. };
  112. #ifdef COBJMACROS
  113. #define IOverlappedCompletion_QueryInterface(This,riid,ppvObject) \
  114. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  115. #define IOverlappedCompletion_AddRef(This) \
  116. (This)->lpVtbl -> AddRef(This)
  117. #define IOverlappedCompletion_Release(This) \
  118. (This)->lpVtbl -> Release(This)
  119. #define IOverlappedCompletion_OnComplete(This,hr,pcbTransferred,lpOverlapped) \
  120. (This)->lpVtbl -> OnComplete(This,hr,pcbTransferred,lpOverlapped)
  121. #endif /* COBJMACROS */
  122. #endif /* C style interface */
  123. HRESULT STDMETHODCALLTYPE IOverlappedCompletion_OnComplete_Proxy(
  124. IOverlappedCompletion * This,
  125. /* [in] */ HRESULT hr,
  126. /* [in] */ DWORD pcbTransferred,
  127. /* [in] */ STGOVERLAPPED *lpOverlapped);
  128. void __RPC_STUB IOverlappedCompletion_OnComplete_Stub(
  129. IRpcStubBuffer *This,
  130. IRpcChannelBuffer *_pRpcChannelBuffer,
  131. PRPC_MESSAGE _pRpcMessage,
  132. DWORD *_pdwStubPhase);
  133. #endif /* __IOverlappedCompletion_INTERFACE_DEFINED__ */
  134. #ifndef __IOverlappedStream_INTERFACE_DEFINED__
  135. #define __IOverlappedStream_INTERFACE_DEFINED__
  136. /* interface IOverlappedStream */
  137. /* [unique][uuid][object] */
  138. EXTERN_C const IID IID_IOverlappedStream;
  139. #if defined(__cplusplus) && !defined(CINTERFACE)
  140. MIDL_INTERFACE("49384070-e40a-11ce-b2c9-00aa00680937")
  141. IOverlappedStream : public IStream
  142. {
  143. public:
  144. virtual /* [local] */ HRESULT STDMETHODCALLTYPE ReadOverlapped(
  145. /* [size_is][in] */ void *pv,
  146. /* [in] */ ULONG cb,
  147. /* [out] */ ULONG *pcbRead,
  148. /* [in] */ STGOVERLAPPED *lpOverlapped) = 0;
  149. virtual /* [local] */ HRESULT __stdcall WriteOverlapped(
  150. /* [size_is][in] */ void *pv,
  151. /* [in] */ ULONG cb,
  152. /* [out] */ ULONG *pcbWritten,
  153. /* [in] */ STGOVERLAPPED *lpOverlapped) = 0;
  154. virtual HRESULT STDMETHODCALLTYPE GetOverlappedResult(
  155. /* [out][in] */ STGOVERLAPPED *lpOverlapped,
  156. /* [out] */ DWORD *plcbTransfer,
  157. /* [in] */ BOOL fWait) = 0;
  158. };
  159. #else /* C style interface */
  160. typedef struct IOverlappedStreamVtbl
  161. {
  162. BEGIN_INTERFACE
  163. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  164. IOverlappedStream * This,
  165. /* [in] */ REFIID riid,
  166. /* [iid_is][out] */ void **ppvObject);
  167. ULONG ( STDMETHODCALLTYPE *AddRef )(
  168. IOverlappedStream * This);
  169. ULONG ( STDMETHODCALLTYPE *Release )(
  170. IOverlappedStream * This);
  171. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  172. IOverlappedStream * This,
  173. /* [length_is][size_is][out] */ void *pv,
  174. /* [in] */ ULONG cb,
  175. /* [out] */ ULONG *pcbRead);
  176. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  177. IOverlappedStream * This,
  178. /* [size_is][in] */ const void *pv,
  179. /* [in] */ ULONG cb,
  180. /* [out] */ ULONG *pcbWritten);
  181. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  182. IOverlappedStream * This,
  183. /* [in] */ LARGE_INTEGER dlibMove,
  184. /* [in] */ DWORD dwOrigin,
  185. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  186. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  187. IOverlappedStream * This,
  188. /* [in] */ ULARGE_INTEGER libNewSize);
  189. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  190. IOverlappedStream * This,
  191. /* [unique][in] */ IStream *pstm,
  192. /* [in] */ ULARGE_INTEGER cb,
  193. /* [out] */ ULARGE_INTEGER *pcbRead,
  194. /* [out] */ ULARGE_INTEGER *pcbWritten);
  195. HRESULT ( STDMETHODCALLTYPE *Commit )(
  196. IOverlappedStream * This,
  197. /* [in] */ DWORD grfCommitFlags);
  198. HRESULT ( STDMETHODCALLTYPE *Revert )(
  199. IOverlappedStream * This);
  200. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  201. IOverlappedStream * This,
  202. /* [in] */ ULARGE_INTEGER libOffset,
  203. /* [in] */ ULARGE_INTEGER cb,
  204. /* [in] */ DWORD dwLockType);
  205. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  206. IOverlappedStream * This,
  207. /* [in] */ ULARGE_INTEGER libOffset,
  208. /* [in] */ ULARGE_INTEGER cb,
  209. /* [in] */ DWORD dwLockType);
  210. HRESULT ( STDMETHODCALLTYPE *Stat )(
  211. IOverlappedStream * This,
  212. /* [out] */ STATSTG *pstatstg,
  213. /* [in] */ DWORD grfStatFlag);
  214. HRESULT ( STDMETHODCALLTYPE *Clone )(
  215. IOverlappedStream * This,
  216. /* [out] */ IStream **ppstm);
  217. /* [local] */ HRESULT ( STDMETHODCALLTYPE *ReadOverlapped )(
  218. IOverlappedStream * This,
  219. /* [size_is][in] */ void *pv,
  220. /* [in] */ ULONG cb,
  221. /* [out] */ ULONG *pcbRead,
  222. /* [in] */ STGOVERLAPPED *lpOverlapped);
  223. /* [local] */ HRESULT ( __stdcall *WriteOverlapped )(
  224. IOverlappedStream * This,
  225. /* [size_is][in] */ void *pv,
  226. /* [in] */ ULONG cb,
  227. /* [out] */ ULONG *pcbWritten,
  228. /* [in] */ STGOVERLAPPED *lpOverlapped);
  229. HRESULT ( STDMETHODCALLTYPE *GetOverlappedResult )(
  230. IOverlappedStream * This,
  231. /* [out][in] */ STGOVERLAPPED *lpOverlapped,
  232. /* [out] */ DWORD *plcbTransfer,
  233. /* [in] */ BOOL fWait);
  234. END_INTERFACE
  235. } IOverlappedStreamVtbl;
  236. interface IOverlappedStream
  237. {
  238. CONST_VTBL struct IOverlappedStreamVtbl *lpVtbl;
  239. };
  240. #ifdef COBJMACROS
  241. #define IOverlappedStream_QueryInterface(This,riid,ppvObject) \
  242. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  243. #define IOverlappedStream_AddRef(This) \
  244. (This)->lpVtbl -> AddRef(This)
  245. #define IOverlappedStream_Release(This) \
  246. (This)->lpVtbl -> Release(This)
  247. #define IOverlappedStream_Read(This,pv,cb,pcbRead) \
  248. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  249. #define IOverlappedStream_Write(This,pv,cb,pcbWritten) \
  250. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  251. #define IOverlappedStream_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  252. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  253. #define IOverlappedStream_SetSize(This,libNewSize) \
  254. (This)->lpVtbl -> SetSize(This,libNewSize)
  255. #define IOverlappedStream_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  256. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  257. #define IOverlappedStream_Commit(This,grfCommitFlags) \
  258. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  259. #define IOverlappedStream_Revert(This) \
  260. (This)->lpVtbl -> Revert(This)
  261. #define IOverlappedStream_LockRegion(This,libOffset,cb,dwLockType) \
  262. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  263. #define IOverlappedStream_UnlockRegion(This,libOffset,cb,dwLockType) \
  264. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  265. #define IOverlappedStream_Stat(This,pstatstg,grfStatFlag) \
  266. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  267. #define IOverlappedStream_Clone(This,ppstm) \
  268. (This)->lpVtbl -> Clone(This,ppstm)
  269. #define IOverlappedStream_ReadOverlapped(This,pv,cb,pcbRead,lpOverlapped) \
  270. (This)->lpVtbl -> ReadOverlapped(This,pv,cb,pcbRead,lpOverlapped)
  271. #define IOverlappedStream_WriteOverlapped(This,pv,cb,pcbWritten,lpOverlapped) \
  272. (This)->lpVtbl -> WriteOverlapped(This,pv,cb,pcbWritten,lpOverlapped)
  273. #define IOverlappedStream_GetOverlappedResult(This,lpOverlapped,plcbTransfer,fWait) \
  274. (This)->lpVtbl -> GetOverlappedResult(This,lpOverlapped,plcbTransfer,fWait)
  275. #endif /* COBJMACROS */
  276. #endif /* C style interface */
  277. /* [call_as] */ HRESULT STDMETHODCALLTYPE IOverlappedStream_RemoteReadOverlapped_Proxy(
  278. IOverlappedStream * This,
  279. /* [size_is][in] */ byte *pv,
  280. /* [in] */ ULONG cb,
  281. /* [out] */ ULONG *pcbRead,
  282. /* [in] */ STGOVERLAPPED *lpOverlapped);
  283. void __RPC_STUB IOverlappedStream_RemoteReadOverlapped_Stub(
  284. IRpcStubBuffer *This,
  285. IRpcChannelBuffer *_pRpcChannelBuffer,
  286. PRPC_MESSAGE _pRpcMessage,
  287. DWORD *_pdwStubPhase);
  288. /* [call_as] */ HRESULT __stdcall IOverlappedStream_RemoteWriteOverlapped_Proxy(
  289. IOverlappedStream * This,
  290. /* [size_is][in] */ byte *pv,
  291. /* [in] */ ULONG cb,
  292. /* [out] */ ULONG *pcbWritten,
  293. /* [in] */ STGOVERLAPPED *lpOverlapped);
  294. void __RPC_STUB IOverlappedStream_RemoteWriteOverlapped_Stub(
  295. IRpcStubBuffer *This,
  296. IRpcChannelBuffer *_pRpcChannelBuffer,
  297. PRPC_MESSAGE _pRpcMessage,
  298. DWORD *_pdwStubPhase);
  299. HRESULT STDMETHODCALLTYPE IOverlappedStream_GetOverlappedResult_Proxy(
  300. IOverlappedStream * This,
  301. /* [out][in] */ STGOVERLAPPED *lpOverlapped,
  302. /* [out] */ DWORD *plcbTransfer,
  303. /* [in] */ BOOL fWait);
  304. void __RPC_STUB IOverlappedStream_GetOverlappedResult_Stub(
  305. IRpcStubBuffer *This,
  306. IRpcChannelBuffer *_pRpcChannelBuffer,
  307. PRPC_MESSAGE _pRpcMessage,
  308. DWORD *_pdwStubPhase);
  309. #endif /* __IOverlappedStream_INTERFACE_DEFINED__ */
  310. /* Additional Prototypes for ALL interfaces */
  311. unsigned long __RPC_USER HEVENT_UserSize( unsigned long *, unsigned long , HEVENT * );
  312. unsigned char * __RPC_USER HEVENT_UserMarshal( unsigned long *, unsigned char *, HEVENT * );
  313. unsigned char * __RPC_USER HEVENT_UserUnmarshal(unsigned long *, unsigned char *, HEVENT * );
  314. void __RPC_USER HEVENT_UserFree( unsigned long *, HEVENT * );
  315. /* [local] */ HRESULT STDMETHODCALLTYPE IOverlappedStream_ReadOverlapped_Proxy(
  316. IOverlappedStream * This,
  317. /* [size_is][in] */ void *pv,
  318. /* [in] */ ULONG cb,
  319. /* [out] */ ULONG *pcbRead,
  320. /* [in] */ STGOVERLAPPED *lpOverlapped);
  321. /* [call_as] */ HRESULT STDMETHODCALLTYPE IOverlappedStream_ReadOverlapped_Stub(
  322. IOverlappedStream * This,
  323. /* [size_is][in] */ byte *pv,
  324. /* [in] */ ULONG cb,
  325. /* [out] */ ULONG *pcbRead,
  326. /* [in] */ STGOVERLAPPED *lpOverlapped);
  327. /* [local] */ HRESULT __stdcall IOverlappedStream_WriteOverlapped_Proxy(
  328. IOverlappedStream * This,
  329. /* [size_is][in] */ void *pv,
  330. /* [in] */ ULONG cb,
  331. /* [out] */ ULONG *pcbWritten,
  332. /* [in] */ STGOVERLAPPED *lpOverlapped);
  333. /* [call_as] */ HRESULT __stdcall IOverlappedStream_WriteOverlapped_Stub(
  334. IOverlappedStream * This,
  335. /* [size_is][in] */ byte *pv,
  336. /* [in] */ ULONG cb,
  337. /* [out] */ ULONG *pcbWritten,
  338. /* [in] */ STGOVERLAPPED *lpOverlapped);
  339. /* end of Additional Prototypes */
  340. #ifdef __cplusplus
  341. }
  342. #endif
  343. #endif