IRAPIStream.h 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* at Fri Sep 17 22:09:50 2004
  4. */
  5. /* Compiler settings for ..\IRAPIStream.idl:
  6. Oicf, W1, Zp8, env=Win32 (32b run)
  7. protocol : dce , ms_ext, c_ext, robust
  8. error checks: allocation ref bounds_check enum stub_data
  9. VC __declspec() decoration level:
  10. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  11. DECLSPEC_UUID(), MIDL_INTERFACE()
  12. */
  13. //@@MIDL_FILE_HEADING( )
  14. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  15. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  16. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  17. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  18. #endif
  19. #include "rpc.h"
  20. #include "rpcndr.h"
  21. #ifndef __RPCNDR_H_VERSION__
  22. #error this stub requires an updated version of <rpcndr.h>
  23. #endif // __RPCNDR_H_VERSION__
  24. #ifndef COM_NO_WINDOWS_H
  25. #include "windows.h"
  26. #include "ole2.h"
  27. #endif /*COM_NO_WINDOWS_H*/
  28. #ifndef __IRAPIStream_h__
  29. #define __IRAPIStream_h__
  30. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  31. #pragma once
  32. #endif
  33. /* Forward Declarations */
  34. #ifndef __IRAPIStream_FWD_DEFINED__
  35. #define __IRAPIStream_FWD_DEFINED__
  36. typedef interface IRAPIStream IRAPIStream;
  37. #endif /* __IRAPIStream_FWD_DEFINED__ */
  38. /* header files for imported files */
  39. #include "oaidl.h"
  40. #include "ocidl.h"
  41. #include "rapitypes.h"
  42. #ifdef __cplusplus
  43. extern "C"{
  44. #endif
  45. void * __RPC_USER MIDL_user_allocate(size_t);
  46. void __RPC_USER MIDL_user_free( void * );
  47. #ifndef __IRAPIStream_INTERFACE_DEFINED__
  48. #define __IRAPIStream_INTERFACE_DEFINED__
  49. /* interface IRAPIStream */
  50. /* [object][uuid] */
  51. EXTERN_C const IID IID_IRAPIStream;
  52. #if defined(__cplusplus) && !defined(CINTERFACE)
  53. MIDL_INTERFACE("449FE623-24B0-454b-A889-129BB05DDBED")
  54. IRAPIStream : public IStream
  55. {
  56. public:
  57. virtual HRESULT STDMETHODCALLTYPE SetRapiStat(
  58. /* [in] */ RAPISTREAMFLAG Flag,
  59. /* [in] */ DWORD dwValue) = 0;
  60. virtual HRESULT STDMETHODCALLTYPE GetRapiStat(
  61. /* [in] */ RAPISTREAMFLAG Flag,
  62. /* [out] */ DWORD *pdwValue) = 0;
  63. };
  64. #else /* C style interface */
  65. typedef struct IRAPIStreamVtbl
  66. {
  67. BEGIN_INTERFACE
  68. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  69. IRAPIStream * This,
  70. /* [in] */ REFIID riid,
  71. /* [iid_is][out] */ void **ppvObject);
  72. ULONG ( STDMETHODCALLTYPE *AddRef )(
  73. IRAPIStream * This);
  74. ULONG ( STDMETHODCALLTYPE *Release )(
  75. IRAPIStream * This);
  76. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Read )(
  77. IRAPIStream * This,
  78. /* [length_is][size_is][out] */ void *pv,
  79. /* [in] */ ULONG cb,
  80. /* [out] */ ULONG *pcbRead);
  81. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Write )(
  82. IRAPIStream * This,
  83. /* [size_is][in] */ const void *pv,
  84. /* [in] */ ULONG cb,
  85. /* [out] */ ULONG *pcbWritten);
  86. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Seek )(
  87. IRAPIStream * This,
  88. /* [in] */ LARGE_INTEGER dlibMove,
  89. /* [in] */ DWORD dwOrigin,
  90. /* [out] */ ULARGE_INTEGER *plibNewPosition);
  91. HRESULT ( STDMETHODCALLTYPE *SetSize )(
  92. IRAPIStream * This,
  93. /* [in] */ ULARGE_INTEGER libNewSize);
  94. /* [local] */ HRESULT ( STDMETHODCALLTYPE *CopyTo )(
  95. IRAPIStream * This,
  96. /* [unique][in] */ IStream *pstm,
  97. /* [in] */ ULARGE_INTEGER cb,
  98. /* [out] */ ULARGE_INTEGER *pcbRead,
  99. /* [out] */ ULARGE_INTEGER *pcbWritten);
  100. HRESULT ( STDMETHODCALLTYPE *Commit )(
  101. IRAPIStream * This,
  102. /* [in] */ DWORD grfCommitFlags);
  103. HRESULT ( STDMETHODCALLTYPE *Revert )(
  104. IRAPIStream * This);
  105. HRESULT ( STDMETHODCALLTYPE *LockRegion )(
  106. IRAPIStream * This,
  107. /* [in] */ ULARGE_INTEGER libOffset,
  108. /* [in] */ ULARGE_INTEGER cb,
  109. /* [in] */ DWORD dwLockType);
  110. HRESULT ( STDMETHODCALLTYPE *UnlockRegion )(
  111. IRAPIStream * This,
  112. /* [in] */ ULARGE_INTEGER libOffset,
  113. /* [in] */ ULARGE_INTEGER cb,
  114. /* [in] */ DWORD dwLockType);
  115. HRESULT ( STDMETHODCALLTYPE *Stat )(
  116. IRAPIStream * This,
  117. /* [out] */ STATSTG *pstatstg,
  118. /* [in] */ DWORD grfStatFlag);
  119. HRESULT ( STDMETHODCALLTYPE *Clone )(
  120. IRAPIStream * This,
  121. /* [out] */ IStream **ppstm);
  122. HRESULT ( STDMETHODCALLTYPE *SetRapiStat )(
  123. IRAPIStream * This,
  124. /* [in] */ RAPISTREAMFLAG Flag,
  125. /* [in] */ DWORD dwValue);
  126. HRESULT ( STDMETHODCALLTYPE *GetRapiStat )(
  127. IRAPIStream * This,
  128. /* [in] */ RAPISTREAMFLAG Flag,
  129. /* [out] */ DWORD *pdwValue);
  130. END_INTERFACE
  131. } IRAPIStreamVtbl;
  132. interface IRAPIStream
  133. {
  134. CONST_VTBL struct IRAPIStreamVtbl *lpVtbl;
  135. };
  136. #ifdef COBJMACROS
  137. #define IRAPIStream_QueryInterface(This,riid,ppvObject) \
  138. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  139. #define IRAPIStream_AddRef(This) \
  140. (This)->lpVtbl -> AddRef(This)
  141. #define IRAPIStream_Release(This) \
  142. (This)->lpVtbl -> Release(This)
  143. #define IRAPIStream_Read(This,pv,cb,pcbRead) \
  144. (This)->lpVtbl -> Read(This,pv,cb,pcbRead)
  145. #define IRAPIStream_Write(This,pv,cb,pcbWritten) \
  146. (This)->lpVtbl -> Write(This,pv,cb,pcbWritten)
  147. #define IRAPIStream_Seek(This,dlibMove,dwOrigin,plibNewPosition) \
  148. (This)->lpVtbl -> Seek(This,dlibMove,dwOrigin,plibNewPosition)
  149. #define IRAPIStream_SetSize(This,libNewSize) \
  150. (This)->lpVtbl -> SetSize(This,libNewSize)
  151. #define IRAPIStream_CopyTo(This,pstm,cb,pcbRead,pcbWritten) \
  152. (This)->lpVtbl -> CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  153. #define IRAPIStream_Commit(This,grfCommitFlags) \
  154. (This)->lpVtbl -> Commit(This,grfCommitFlags)
  155. #define IRAPIStream_Revert(This) \
  156. (This)->lpVtbl -> Revert(This)
  157. #define IRAPIStream_LockRegion(This,libOffset,cb,dwLockType) \
  158. (This)->lpVtbl -> LockRegion(This,libOffset,cb,dwLockType)
  159. #define IRAPIStream_UnlockRegion(This,libOffset,cb,dwLockType) \
  160. (This)->lpVtbl -> UnlockRegion(This,libOffset,cb,dwLockType)
  161. #define IRAPIStream_Stat(This,pstatstg,grfStatFlag) \
  162. (This)->lpVtbl -> Stat(This,pstatstg,grfStatFlag)
  163. #define IRAPIStream_Clone(This,ppstm) \
  164. (This)->lpVtbl -> Clone(This,ppstm)
  165. #define IRAPIStream_SetRapiStat(This,Flag,dwValue) \
  166. (This)->lpVtbl -> SetRapiStat(This,Flag,dwValue)
  167. #define IRAPIStream_GetRapiStat(This,Flag,pdwValue) \
  168. (This)->lpVtbl -> GetRapiStat(This,Flag,pdwValue)
  169. #endif /* COBJMACROS */
  170. #endif /* C style interface */
  171. HRESULT STDMETHODCALLTYPE IRAPIStream_SetRapiStat_Proxy(
  172. IRAPIStream * This,
  173. /* [in] */ RAPISTREAMFLAG Flag,
  174. /* [in] */ DWORD dwValue);
  175. void __RPC_STUB IRAPIStream_SetRapiStat_Stub(
  176. IRpcStubBuffer *This,
  177. IRpcChannelBuffer *_pRpcChannelBuffer,
  178. PRPC_MESSAGE _pRpcMessage,
  179. DWORD *_pdwStubPhase);
  180. HRESULT STDMETHODCALLTYPE IRAPIStream_GetRapiStat_Proxy(
  181. IRAPIStream * This,
  182. /* [in] */ RAPISTREAMFLAG Flag,
  183. /* [out] */ DWORD *pdwValue);
  184. void __RPC_STUB IRAPIStream_GetRapiStat_Stub(
  185. IRpcStubBuffer *This,
  186. IRpcChannelBuffer *_pRpcChannelBuffer,
  187. PRPC_MESSAGE _pRpcMessage,
  188. DWORD *_pdwStubPhase);
  189. #endif /* __IRAPIStream_INTERFACE_DEFINED__ */
  190. /* Additional Prototypes for ALL interfaces */
  191. /* end of Additional Prototypes */
  192. #ifdef __cplusplus
  193. }
  194. #endif
  195. #endif