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.

534 lines
17 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 ddstream.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 __ddstream_h__
  27. #define __ddstream_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IDirectDrawMediaStream_FWD_DEFINED__
  33. #define __IDirectDrawMediaStream_FWD_DEFINED__
  34. typedef interface IDirectDrawMediaStream IDirectDrawMediaStream;
  35. #endif /* __IDirectDrawMediaStream_FWD_DEFINED__ */
  36. #ifndef __IDirectDrawStreamSample_FWD_DEFINED__
  37. #define __IDirectDrawStreamSample_FWD_DEFINED__
  38. typedef interface IDirectDrawStreamSample IDirectDrawStreamSample;
  39. #endif /* __IDirectDrawStreamSample_FWD_DEFINED__ */
  40. /* header files for imported files */
  41. #include "unknwn.h"
  42. #include "mmstream.h"
  43. #ifdef __cplusplus
  44. extern "C"{
  45. #endif
  46. void * __RPC_USER MIDL_user_allocate(size_t);
  47. void __RPC_USER MIDL_user_free( void * );
  48. /* interface __MIDL_itf_ddstream_0000 */
  49. /* [local] */
  50. //
  51. // The following declarations within the 'if 0' block are dummy typedefs used to make
  52. // the ddstream.idl file build. The actual definitions are contained in DDRAW.H
  53. //
  54. #if 0
  55. typedef void *LPDDSURFACEDESC;
  56. typedef struct tDDSURFACEDESC DDSURFACEDESC;
  57. #endif
  58. #include <ddraw.h>
  59. enum __MIDL___MIDL_itf_ddstream_0000_0001
  60. { DDSFF_PROGRESSIVERENDER = 0x1
  61. } ;
  62. extern RPC_IF_HANDLE __MIDL_itf_ddstream_0000_v0_0_c_ifspec;
  63. extern RPC_IF_HANDLE __MIDL_itf_ddstream_0000_v0_0_s_ifspec;
  64. #ifndef __IDirectDrawMediaStream_INTERFACE_DEFINED__
  65. #define __IDirectDrawMediaStream_INTERFACE_DEFINED__
  66. /* interface IDirectDrawMediaStream */
  67. /* [unique][uuid][local][object] */
  68. EXTERN_C const IID IID_IDirectDrawMediaStream;
  69. #if defined(__cplusplus) && !defined(CINTERFACE)
  70. MIDL_INTERFACE("F4104FCE-9A70-11d0-8FDE-00C04FD9189D")
  71. IDirectDrawMediaStream : public IMediaStream
  72. {
  73. public:
  74. virtual HRESULT STDMETHODCALLTYPE GetFormat(
  75. /* [out] */ DDSURFACEDESC *pDDSDCurrent,
  76. /* [out] */ IDirectDrawPalette **ppDirectDrawPalette,
  77. /* [out] */ DDSURFACEDESC *pDDSDDesired,
  78. /* [out] */ DWORD *pdwFlags) = 0;
  79. virtual HRESULT STDMETHODCALLTYPE SetFormat(
  80. /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
  81. /* [in] */ IDirectDrawPalette *pDirectDrawPalette) = 0;
  82. virtual HRESULT STDMETHODCALLTYPE GetDirectDraw(
  83. /* [out] */ IDirectDraw **ppDirectDraw) = 0;
  84. virtual HRESULT STDMETHODCALLTYPE SetDirectDraw(
  85. /* [in] */ IDirectDraw *pDirectDraw) = 0;
  86. virtual HRESULT STDMETHODCALLTYPE CreateSample(
  87. /* [in] */ IDirectDrawSurface *pSurface,
  88. /* [in] */ const RECT *pRect,
  89. /* [in] */ DWORD dwFlags,
  90. /* [out] */ IDirectDrawStreamSample **ppSample) = 0;
  91. virtual HRESULT STDMETHODCALLTYPE GetTimePerFrame(
  92. /* [out] */ STREAM_TIME *pFrameTime) = 0;
  93. };
  94. #else /* C style interface */
  95. typedef struct IDirectDrawMediaStreamVtbl
  96. {
  97. BEGIN_INTERFACE
  98. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  99. IDirectDrawMediaStream * This,
  100. /* [in] */ REFIID riid,
  101. /* [iid_is][out] */ void **ppvObject);
  102. ULONG ( STDMETHODCALLTYPE *AddRef )(
  103. IDirectDrawMediaStream * This);
  104. ULONG ( STDMETHODCALLTYPE *Release )(
  105. IDirectDrawMediaStream * This);
  106. HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )(
  107. IDirectDrawMediaStream * This,
  108. /* [out] */ IMultiMediaStream **ppMultiMediaStream);
  109. HRESULT ( STDMETHODCALLTYPE *GetInformation )(
  110. IDirectDrawMediaStream * This,
  111. /* [out] */ MSPID *pPurposeId,
  112. /* [out] */ STREAM_TYPE *pType);
  113. HRESULT ( STDMETHODCALLTYPE *SetSameFormat )(
  114. IDirectDrawMediaStream * This,
  115. /* [in] */ IMediaStream *pStreamThatHasDesiredFormat,
  116. /* [in] */ DWORD dwFlags);
  117. HRESULT ( STDMETHODCALLTYPE *AllocateSample )(
  118. IDirectDrawMediaStream * This,
  119. /* [in] */ DWORD dwFlags,
  120. /* [out] */ IStreamSample **ppSample);
  121. HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )(
  122. IDirectDrawMediaStream * This,
  123. /* [in] */ IStreamSample *pExistingSample,
  124. /* [in] */ DWORD dwFlags,
  125. /* [out] */ IStreamSample **ppNewSample);
  126. HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )(
  127. IDirectDrawMediaStream * This,
  128. DWORD dwFlags);
  129. HRESULT ( STDMETHODCALLTYPE *GetFormat )(
  130. IDirectDrawMediaStream * This,
  131. /* [out] */ DDSURFACEDESC *pDDSDCurrent,
  132. /* [out] */ IDirectDrawPalette **ppDirectDrawPalette,
  133. /* [out] */ DDSURFACEDESC *pDDSDDesired,
  134. /* [out] */ DWORD *pdwFlags);
  135. HRESULT ( STDMETHODCALLTYPE *SetFormat )(
  136. IDirectDrawMediaStream * This,
  137. /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
  138. /* [in] */ IDirectDrawPalette *pDirectDrawPalette);
  139. HRESULT ( STDMETHODCALLTYPE *GetDirectDraw )(
  140. IDirectDrawMediaStream * This,
  141. /* [out] */ IDirectDraw **ppDirectDraw);
  142. HRESULT ( STDMETHODCALLTYPE *SetDirectDraw )(
  143. IDirectDrawMediaStream * This,
  144. /* [in] */ IDirectDraw *pDirectDraw);
  145. HRESULT ( STDMETHODCALLTYPE *CreateSample )(
  146. IDirectDrawMediaStream * This,
  147. /* [in] */ IDirectDrawSurface *pSurface,
  148. /* [in] */ const RECT *pRect,
  149. /* [in] */ DWORD dwFlags,
  150. /* [out] */ IDirectDrawStreamSample **ppSample);
  151. HRESULT ( STDMETHODCALLTYPE *GetTimePerFrame )(
  152. IDirectDrawMediaStream * This,
  153. /* [out] */ STREAM_TIME *pFrameTime);
  154. END_INTERFACE
  155. } IDirectDrawMediaStreamVtbl;
  156. interface IDirectDrawMediaStream
  157. {
  158. CONST_VTBL struct IDirectDrawMediaStreamVtbl *lpVtbl;
  159. };
  160. #ifdef COBJMACROS
  161. #define IDirectDrawMediaStream_QueryInterface(This,riid,ppvObject) \
  162. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  163. #define IDirectDrawMediaStream_AddRef(This) \
  164. (This)->lpVtbl -> AddRef(This)
  165. #define IDirectDrawMediaStream_Release(This) \
  166. (This)->lpVtbl -> Release(This)
  167. #define IDirectDrawMediaStream_GetMultiMediaStream(This,ppMultiMediaStream) \
  168. (This)->lpVtbl -> GetMultiMediaStream(This,ppMultiMediaStream)
  169. #define IDirectDrawMediaStream_GetInformation(This,pPurposeId,pType) \
  170. (This)->lpVtbl -> GetInformation(This,pPurposeId,pType)
  171. #define IDirectDrawMediaStream_SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags) \
  172. (This)->lpVtbl -> SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags)
  173. #define IDirectDrawMediaStream_AllocateSample(This,dwFlags,ppSample) \
  174. (This)->lpVtbl -> AllocateSample(This,dwFlags,ppSample)
  175. #define IDirectDrawMediaStream_CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample) \
  176. (This)->lpVtbl -> CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample)
  177. #define IDirectDrawMediaStream_SendEndOfStream(This,dwFlags) \
  178. (This)->lpVtbl -> SendEndOfStream(This,dwFlags)
  179. #define IDirectDrawMediaStream_GetFormat(This,pDDSDCurrent,ppDirectDrawPalette,pDDSDDesired,pdwFlags) \
  180. (This)->lpVtbl -> GetFormat(This,pDDSDCurrent,ppDirectDrawPalette,pDDSDDesired,pdwFlags)
  181. #define IDirectDrawMediaStream_SetFormat(This,pDDSurfaceDesc,pDirectDrawPalette) \
  182. (This)->lpVtbl -> SetFormat(This,pDDSurfaceDesc,pDirectDrawPalette)
  183. #define IDirectDrawMediaStream_GetDirectDraw(This,ppDirectDraw) \
  184. (This)->lpVtbl -> GetDirectDraw(This,ppDirectDraw)
  185. #define IDirectDrawMediaStream_SetDirectDraw(This,pDirectDraw) \
  186. (This)->lpVtbl -> SetDirectDraw(This,pDirectDraw)
  187. #define IDirectDrawMediaStream_CreateSample(This,pSurface,pRect,dwFlags,ppSample) \
  188. (This)->lpVtbl -> CreateSample(This,pSurface,pRect,dwFlags,ppSample)
  189. #define IDirectDrawMediaStream_GetTimePerFrame(This,pFrameTime) \
  190. (This)->lpVtbl -> GetTimePerFrame(This,pFrameTime)
  191. #endif /* COBJMACROS */
  192. #endif /* C style interface */
  193. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetFormat_Proxy(
  194. IDirectDrawMediaStream * This,
  195. /* [out] */ DDSURFACEDESC *pDDSDCurrent,
  196. /* [out] */ IDirectDrawPalette **ppDirectDrawPalette,
  197. /* [out] */ DDSURFACEDESC *pDDSDDesired,
  198. /* [out] */ DWORD *pdwFlags);
  199. void __RPC_STUB IDirectDrawMediaStream_GetFormat_Stub(
  200. IRpcStubBuffer *This,
  201. IRpcChannelBuffer *_pRpcChannelBuffer,
  202. PRPC_MESSAGE _pRpcMessage,
  203. DWORD *_pdwStubPhase);
  204. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_SetFormat_Proxy(
  205. IDirectDrawMediaStream * This,
  206. /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
  207. /* [in] */ IDirectDrawPalette *pDirectDrawPalette);
  208. void __RPC_STUB IDirectDrawMediaStream_SetFormat_Stub(
  209. IRpcStubBuffer *This,
  210. IRpcChannelBuffer *_pRpcChannelBuffer,
  211. PRPC_MESSAGE _pRpcMessage,
  212. DWORD *_pdwStubPhase);
  213. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetDirectDraw_Proxy(
  214. IDirectDrawMediaStream * This,
  215. /* [out] */ IDirectDraw **ppDirectDraw);
  216. void __RPC_STUB IDirectDrawMediaStream_GetDirectDraw_Stub(
  217. IRpcStubBuffer *This,
  218. IRpcChannelBuffer *_pRpcChannelBuffer,
  219. PRPC_MESSAGE _pRpcMessage,
  220. DWORD *_pdwStubPhase);
  221. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_SetDirectDraw_Proxy(
  222. IDirectDrawMediaStream * This,
  223. /* [in] */ IDirectDraw *pDirectDraw);
  224. void __RPC_STUB IDirectDrawMediaStream_SetDirectDraw_Stub(
  225. IRpcStubBuffer *This,
  226. IRpcChannelBuffer *_pRpcChannelBuffer,
  227. PRPC_MESSAGE _pRpcMessage,
  228. DWORD *_pdwStubPhase);
  229. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_CreateSample_Proxy(
  230. IDirectDrawMediaStream * This,
  231. /* [in] */ IDirectDrawSurface *pSurface,
  232. /* [in] */ const RECT *pRect,
  233. /* [in] */ DWORD dwFlags,
  234. /* [out] */ IDirectDrawStreamSample **ppSample);
  235. void __RPC_STUB IDirectDrawMediaStream_CreateSample_Stub(
  236. IRpcStubBuffer *This,
  237. IRpcChannelBuffer *_pRpcChannelBuffer,
  238. PRPC_MESSAGE _pRpcMessage,
  239. DWORD *_pdwStubPhase);
  240. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetTimePerFrame_Proxy(
  241. IDirectDrawMediaStream * This,
  242. /* [out] */ STREAM_TIME *pFrameTime);
  243. void __RPC_STUB IDirectDrawMediaStream_GetTimePerFrame_Stub(
  244. IRpcStubBuffer *This,
  245. IRpcChannelBuffer *_pRpcChannelBuffer,
  246. PRPC_MESSAGE _pRpcMessage,
  247. DWORD *_pdwStubPhase);
  248. #endif /* __IDirectDrawMediaStream_INTERFACE_DEFINED__ */
  249. #ifndef __IDirectDrawStreamSample_INTERFACE_DEFINED__
  250. #define __IDirectDrawStreamSample_INTERFACE_DEFINED__
  251. /* interface IDirectDrawStreamSample */
  252. /* [unique][uuid][local][object] */
  253. EXTERN_C const IID IID_IDirectDrawStreamSample;
  254. #if defined(__cplusplus) && !defined(CINTERFACE)
  255. MIDL_INTERFACE("F4104FCF-9A70-11d0-8FDE-00C04FD9189D")
  256. IDirectDrawStreamSample : public IStreamSample
  257. {
  258. public:
  259. virtual HRESULT STDMETHODCALLTYPE GetSurface(
  260. /* [out] */ IDirectDrawSurface **ppDirectDrawSurface,
  261. /* [out] */ RECT *pRect) = 0;
  262. virtual HRESULT STDMETHODCALLTYPE SetRect(
  263. /* [in] */ const RECT *pRect) = 0;
  264. };
  265. #else /* C style interface */
  266. typedef struct IDirectDrawStreamSampleVtbl
  267. {
  268. BEGIN_INTERFACE
  269. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  270. IDirectDrawStreamSample * This,
  271. /* [in] */ REFIID riid,
  272. /* [iid_is][out] */ void **ppvObject);
  273. ULONG ( STDMETHODCALLTYPE *AddRef )(
  274. IDirectDrawStreamSample * This);
  275. ULONG ( STDMETHODCALLTYPE *Release )(
  276. IDirectDrawStreamSample * This);
  277. HRESULT ( STDMETHODCALLTYPE *GetMediaStream )(
  278. IDirectDrawStreamSample * This,
  279. /* [in] */ IMediaStream **ppMediaStream);
  280. HRESULT ( STDMETHODCALLTYPE *GetSampleTimes )(
  281. IDirectDrawStreamSample * This,
  282. /* [out] */ STREAM_TIME *pStartTime,
  283. /* [out] */ STREAM_TIME *pEndTime,
  284. /* [out] */ STREAM_TIME *pCurrentTime);
  285. HRESULT ( STDMETHODCALLTYPE *SetSampleTimes )(
  286. IDirectDrawStreamSample * This,
  287. /* [in] */ const STREAM_TIME *pStartTime,
  288. /* [in] */ const STREAM_TIME *pEndTime);
  289. HRESULT ( STDMETHODCALLTYPE *Update )(
  290. IDirectDrawStreamSample * This,
  291. /* [in] */ DWORD dwFlags,
  292. /* [in] */ HANDLE hEvent,
  293. /* [in] */ PAPCFUNC pfnAPC,
  294. /* [in] */ DWORD_PTR dwAPCData);
  295. HRESULT ( STDMETHODCALLTYPE *CompletionStatus )(
  296. IDirectDrawStreamSample * This,
  297. /* [in] */ DWORD dwFlags,
  298. /* [in] */ DWORD dwMilliseconds);
  299. HRESULT ( STDMETHODCALLTYPE *GetSurface )(
  300. IDirectDrawStreamSample * This,
  301. /* [out] */ IDirectDrawSurface **ppDirectDrawSurface,
  302. /* [out] */ RECT *pRect);
  303. HRESULT ( STDMETHODCALLTYPE *SetRect )(
  304. IDirectDrawStreamSample * This,
  305. /* [in] */ const RECT *pRect);
  306. END_INTERFACE
  307. } IDirectDrawStreamSampleVtbl;
  308. interface IDirectDrawStreamSample
  309. {
  310. CONST_VTBL struct IDirectDrawStreamSampleVtbl *lpVtbl;
  311. };
  312. #ifdef COBJMACROS
  313. #define IDirectDrawStreamSample_QueryInterface(This,riid,ppvObject) \
  314. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  315. #define IDirectDrawStreamSample_AddRef(This) \
  316. (This)->lpVtbl -> AddRef(This)
  317. #define IDirectDrawStreamSample_Release(This) \
  318. (This)->lpVtbl -> Release(This)
  319. #define IDirectDrawStreamSample_GetMediaStream(This,ppMediaStream) \
  320. (This)->lpVtbl -> GetMediaStream(This,ppMediaStream)
  321. #define IDirectDrawStreamSample_GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime) \
  322. (This)->lpVtbl -> GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime)
  323. #define IDirectDrawStreamSample_SetSampleTimes(This,pStartTime,pEndTime) \
  324. (This)->lpVtbl -> SetSampleTimes(This,pStartTime,pEndTime)
  325. #define IDirectDrawStreamSample_Update(This,dwFlags,hEvent,pfnAPC,dwAPCData) \
  326. (This)->lpVtbl -> Update(This,dwFlags,hEvent,pfnAPC,dwAPCData)
  327. #define IDirectDrawStreamSample_CompletionStatus(This,dwFlags,dwMilliseconds) \
  328. (This)->lpVtbl -> CompletionStatus(This,dwFlags,dwMilliseconds)
  329. #define IDirectDrawStreamSample_GetSurface(This,ppDirectDrawSurface,pRect) \
  330. (This)->lpVtbl -> GetSurface(This,ppDirectDrawSurface,pRect)
  331. #define IDirectDrawStreamSample_SetRect(This,pRect) \
  332. (This)->lpVtbl -> SetRect(This,pRect)
  333. #endif /* COBJMACROS */
  334. #endif /* C style interface */
  335. HRESULT STDMETHODCALLTYPE IDirectDrawStreamSample_GetSurface_Proxy(
  336. IDirectDrawStreamSample * This,
  337. /* [out] */ IDirectDrawSurface **ppDirectDrawSurface,
  338. /* [out] */ RECT *pRect);
  339. void __RPC_STUB IDirectDrawStreamSample_GetSurface_Stub(
  340. IRpcStubBuffer *This,
  341. IRpcChannelBuffer *_pRpcChannelBuffer,
  342. PRPC_MESSAGE _pRpcMessage,
  343. DWORD *_pdwStubPhase);
  344. HRESULT STDMETHODCALLTYPE IDirectDrawStreamSample_SetRect_Proxy(
  345. IDirectDrawStreamSample * This,
  346. /* [in] */ const RECT *pRect);
  347. void __RPC_STUB IDirectDrawStreamSample_SetRect_Stub(
  348. IRpcStubBuffer *This,
  349. IRpcChannelBuffer *_pRpcChannelBuffer,
  350. PRPC_MESSAGE _pRpcMessage,
  351. DWORD *_pdwStubPhase);
  352. #endif /* __IDirectDrawStreamSample_INTERFACE_DEFINED__ */
  353. /* Additional Prototypes for ALL interfaces */
  354. /* end of Additional Prototypes */
  355. #ifdef __cplusplus
  356. }
  357. #endif
  358. #endif