DdStream.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:17k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3.  /* File created by MIDL compiler version 6.00.0347 */
  4. /* Compiler settings for ddstream.idl:
  5.     Oicf, W1, Zp8, env=Win32 (32b run)
  6.     protocol : dce , ms_ext, c_ext, robust
  7.     error checks: allocation ref bounds_check enum stub_data 
  8.     VC __declspec() decoration level: 
  9.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10.          DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING(  )
  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.     
  71.     MIDL_INTERFACE("F4104FCE-9A70-11d0-8FDE-00C04FD9189D")
  72.     IDirectDrawMediaStream : public IMediaStream
  73.     {
  74.     public:
  75.         virtual HRESULT STDMETHODCALLTYPE GetFormat( 
  76.             /* [out] */ DDSURFACEDESC *pDDSDCurrent,
  77.             /* [out] */ IDirectDrawPalette **ppDirectDrawPalette,
  78.             /* [out] */ DDSURFACEDESC *pDDSDDesired,
  79.             /* [out] */ DWORD *pdwFlags) = 0;
  80.         
  81.         virtual HRESULT STDMETHODCALLTYPE SetFormat( 
  82.             /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
  83.             /* [in] */ IDirectDrawPalette *pDirectDrawPalette) = 0;
  84.         
  85.         virtual HRESULT STDMETHODCALLTYPE GetDirectDraw( 
  86.             /* [out] */ IDirectDraw **ppDirectDraw) = 0;
  87.         
  88.         virtual HRESULT STDMETHODCALLTYPE SetDirectDraw( 
  89.             /* [in] */ IDirectDraw *pDirectDraw) = 0;
  90.         
  91.         virtual HRESULT STDMETHODCALLTYPE CreateSample( 
  92.             /* [in] */ IDirectDrawSurface *pSurface,
  93.             /* [in] */ const RECT *pRect,
  94.             /* [in] */ DWORD dwFlags,
  95.             /* [out] */ IDirectDrawStreamSample **ppSample) = 0;
  96.         
  97.         virtual HRESULT STDMETHODCALLTYPE GetTimePerFrame( 
  98.             /* [out] */ STREAM_TIME *pFrameTime) = 0;
  99.         
  100.     };
  101.     
  102. #else  /* C style interface */
  103.     typedef struct IDirectDrawMediaStreamVtbl
  104.     {
  105.         BEGIN_INTERFACE
  106.         
  107.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  108.             IDirectDrawMediaStream * This,
  109.             /* [in] */ REFIID riid,
  110.             /* [iid_is][out] */ void **ppvObject);
  111.         
  112.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  113.             IDirectDrawMediaStream * This);
  114.         
  115.         ULONG ( STDMETHODCALLTYPE *Release )( 
  116.             IDirectDrawMediaStream * This);
  117.         
  118.         HRESULT ( STDMETHODCALLTYPE *GetMultiMediaStream )( 
  119.             IDirectDrawMediaStream * This,
  120.             /* [out] */ IMultiMediaStream **ppMultiMediaStream);
  121.         
  122.         HRESULT ( STDMETHODCALLTYPE *GetInformation )( 
  123.             IDirectDrawMediaStream * This,
  124.             /* [out] */ MSPID *pPurposeId,
  125.             /* [out] */ STREAM_TYPE *pType);
  126.         
  127.         HRESULT ( STDMETHODCALLTYPE *SetSameFormat )( 
  128.             IDirectDrawMediaStream * This,
  129.             /* [in] */ IMediaStream *pStreamThatHasDesiredFormat,
  130.             /* [in] */ DWORD dwFlags);
  131.         
  132.         HRESULT ( STDMETHODCALLTYPE *AllocateSample )( 
  133.             IDirectDrawMediaStream * This,
  134.             /* [in] */ DWORD dwFlags,
  135.             /* [out] */ IStreamSample **ppSample);
  136.         
  137.         HRESULT ( STDMETHODCALLTYPE *CreateSharedSample )( 
  138.             IDirectDrawMediaStream * This,
  139.             /* [in] */ IStreamSample *pExistingSample,
  140.             /* [in] */ DWORD dwFlags,
  141.             /* [out] */ IStreamSample **ppNewSample);
  142.         
  143.         HRESULT ( STDMETHODCALLTYPE *SendEndOfStream )( 
  144.             IDirectDrawMediaStream * This,
  145.             DWORD dwFlags);
  146.         
  147.         HRESULT ( STDMETHODCALLTYPE *GetFormat )( 
  148.             IDirectDrawMediaStream * This,
  149.             /* [out] */ DDSURFACEDESC *pDDSDCurrent,
  150.             /* [out] */ IDirectDrawPalette **ppDirectDrawPalette,
  151.             /* [out] */ DDSURFACEDESC *pDDSDDesired,
  152.             /* [out] */ DWORD *pdwFlags);
  153.         
  154.         HRESULT ( STDMETHODCALLTYPE *SetFormat )( 
  155.             IDirectDrawMediaStream * This,
  156.             /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
  157.             /* [in] */ IDirectDrawPalette *pDirectDrawPalette);
  158.         
  159.         HRESULT ( STDMETHODCALLTYPE *GetDirectDraw )( 
  160.             IDirectDrawMediaStream * This,
  161.             /* [out] */ IDirectDraw **ppDirectDraw);
  162.         
  163.         HRESULT ( STDMETHODCALLTYPE *SetDirectDraw )( 
  164.             IDirectDrawMediaStream * This,
  165.             /* [in] */ IDirectDraw *pDirectDraw);
  166.         
  167.         HRESULT ( STDMETHODCALLTYPE *CreateSample )( 
  168.             IDirectDrawMediaStream * This,
  169.             /* [in] */ IDirectDrawSurface *pSurface,
  170.             /* [in] */ const RECT *pRect,
  171.             /* [in] */ DWORD dwFlags,
  172.             /* [out] */ IDirectDrawStreamSample **ppSample);
  173.         
  174.         HRESULT ( STDMETHODCALLTYPE *GetTimePerFrame )( 
  175.             IDirectDrawMediaStream * This,
  176.             /* [out] */ STREAM_TIME *pFrameTime);
  177.         
  178.         END_INTERFACE
  179.     } IDirectDrawMediaStreamVtbl;
  180.     interface IDirectDrawMediaStream
  181.     {
  182.         CONST_VTBL struct IDirectDrawMediaStreamVtbl *lpVtbl;
  183.     };
  184.     
  185. #ifdef COBJMACROS
  186. #define IDirectDrawMediaStream_QueryInterface(This,riid,ppvObject)
  187.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  188. #define IDirectDrawMediaStream_AddRef(This)
  189.     (This)->lpVtbl -> AddRef(This)
  190. #define IDirectDrawMediaStream_Release(This)
  191.     (This)->lpVtbl -> Release(This)
  192. #define IDirectDrawMediaStream_GetMultiMediaStream(This,ppMultiMediaStream)
  193.     (This)->lpVtbl -> GetMultiMediaStream(This,ppMultiMediaStream)
  194. #define IDirectDrawMediaStream_GetInformation(This,pPurposeId,pType)
  195.     (This)->lpVtbl -> GetInformation(This,pPurposeId,pType)
  196. #define IDirectDrawMediaStream_SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags)
  197.     (This)->lpVtbl -> SetSameFormat(This,pStreamThatHasDesiredFormat,dwFlags)
  198. #define IDirectDrawMediaStream_AllocateSample(This,dwFlags,ppSample)
  199.     (This)->lpVtbl -> AllocateSample(This,dwFlags,ppSample)
  200. #define IDirectDrawMediaStream_CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample)
  201.     (This)->lpVtbl -> CreateSharedSample(This,pExistingSample,dwFlags,ppNewSample)
  202. #define IDirectDrawMediaStream_SendEndOfStream(This,dwFlags)
  203.     (This)->lpVtbl -> SendEndOfStream(This,dwFlags)
  204. #define IDirectDrawMediaStream_GetFormat(This,pDDSDCurrent,ppDirectDrawPalette,pDDSDDesired,pdwFlags)
  205.     (This)->lpVtbl -> GetFormat(This,pDDSDCurrent,ppDirectDrawPalette,pDDSDDesired,pdwFlags)
  206. #define IDirectDrawMediaStream_SetFormat(This,pDDSurfaceDesc,pDirectDrawPalette)
  207.     (This)->lpVtbl -> SetFormat(This,pDDSurfaceDesc,pDirectDrawPalette)
  208. #define IDirectDrawMediaStream_GetDirectDraw(This,ppDirectDraw)
  209.     (This)->lpVtbl -> GetDirectDraw(This,ppDirectDraw)
  210. #define IDirectDrawMediaStream_SetDirectDraw(This,pDirectDraw)
  211.     (This)->lpVtbl -> SetDirectDraw(This,pDirectDraw)
  212. #define IDirectDrawMediaStream_CreateSample(This,pSurface,pRect,dwFlags,ppSample)
  213.     (This)->lpVtbl -> CreateSample(This,pSurface,pRect,dwFlags,ppSample)
  214. #define IDirectDrawMediaStream_GetTimePerFrame(This,pFrameTime)
  215.     (This)->lpVtbl -> GetTimePerFrame(This,pFrameTime)
  216. #endif /* COBJMACROS */
  217. #endif  /* C style interface */
  218. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetFormat_Proxy( 
  219.     IDirectDrawMediaStream * This,
  220.     /* [out] */ DDSURFACEDESC *pDDSDCurrent,
  221.     /* [out] */ IDirectDrawPalette **ppDirectDrawPalette,
  222.     /* [out] */ DDSURFACEDESC *pDDSDDesired,
  223.     /* [out] */ DWORD *pdwFlags);
  224. void __RPC_STUB IDirectDrawMediaStream_GetFormat_Stub(
  225.     IRpcStubBuffer *This,
  226.     IRpcChannelBuffer *_pRpcChannelBuffer,
  227.     PRPC_MESSAGE _pRpcMessage,
  228.     DWORD *_pdwStubPhase);
  229. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_SetFormat_Proxy( 
  230.     IDirectDrawMediaStream * This,
  231.     /* [in] */ const DDSURFACEDESC *pDDSurfaceDesc,
  232.     /* [in] */ IDirectDrawPalette *pDirectDrawPalette);
  233. void __RPC_STUB IDirectDrawMediaStream_SetFormat_Stub(
  234.     IRpcStubBuffer *This,
  235.     IRpcChannelBuffer *_pRpcChannelBuffer,
  236.     PRPC_MESSAGE _pRpcMessage,
  237.     DWORD *_pdwStubPhase);
  238. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetDirectDraw_Proxy( 
  239.     IDirectDrawMediaStream * This,
  240.     /* [out] */ IDirectDraw **ppDirectDraw);
  241. void __RPC_STUB IDirectDrawMediaStream_GetDirectDraw_Stub(
  242.     IRpcStubBuffer *This,
  243.     IRpcChannelBuffer *_pRpcChannelBuffer,
  244.     PRPC_MESSAGE _pRpcMessage,
  245.     DWORD *_pdwStubPhase);
  246. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_SetDirectDraw_Proxy( 
  247.     IDirectDrawMediaStream * This,
  248.     /* [in] */ IDirectDraw *pDirectDraw);
  249. void __RPC_STUB IDirectDrawMediaStream_SetDirectDraw_Stub(
  250.     IRpcStubBuffer *This,
  251.     IRpcChannelBuffer *_pRpcChannelBuffer,
  252.     PRPC_MESSAGE _pRpcMessage,
  253.     DWORD *_pdwStubPhase);
  254. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_CreateSample_Proxy( 
  255.     IDirectDrawMediaStream * This,
  256.     /* [in] */ IDirectDrawSurface *pSurface,
  257.     /* [in] */ const RECT *pRect,
  258.     /* [in] */ DWORD dwFlags,
  259.     /* [out] */ IDirectDrawStreamSample **ppSample);
  260. void __RPC_STUB IDirectDrawMediaStream_CreateSample_Stub(
  261.     IRpcStubBuffer *This,
  262.     IRpcChannelBuffer *_pRpcChannelBuffer,
  263.     PRPC_MESSAGE _pRpcMessage,
  264.     DWORD *_pdwStubPhase);
  265. HRESULT STDMETHODCALLTYPE IDirectDrawMediaStream_GetTimePerFrame_Proxy( 
  266.     IDirectDrawMediaStream * This,
  267.     /* [out] */ STREAM_TIME *pFrameTime);
  268. void __RPC_STUB IDirectDrawMediaStream_GetTimePerFrame_Stub(
  269.     IRpcStubBuffer *This,
  270.     IRpcChannelBuffer *_pRpcChannelBuffer,
  271.     PRPC_MESSAGE _pRpcMessage,
  272.     DWORD *_pdwStubPhase);
  273. #endif  /* __IDirectDrawMediaStream_INTERFACE_DEFINED__ */
  274. #ifndef __IDirectDrawStreamSample_INTERFACE_DEFINED__
  275. #define __IDirectDrawStreamSample_INTERFACE_DEFINED__
  276. /* interface IDirectDrawStreamSample */
  277. /* [unique][uuid][local][object] */ 
  278. EXTERN_C const IID IID_IDirectDrawStreamSample;
  279. #if defined(__cplusplus) && !defined(CINTERFACE)
  280.     
  281.     MIDL_INTERFACE("F4104FCF-9A70-11d0-8FDE-00C04FD9189D")
  282.     IDirectDrawStreamSample : public IStreamSample
  283.     {
  284.     public:
  285.         virtual HRESULT STDMETHODCALLTYPE GetSurface( 
  286.             /* [out] */ IDirectDrawSurface **ppDirectDrawSurface,
  287.             /* [out] */ RECT *pRect) = 0;
  288.         
  289.         virtual HRESULT STDMETHODCALLTYPE SetRect( 
  290.             /* [in] */ const RECT *pRect) = 0;
  291.         
  292.     };
  293.     
  294. #else  /* C style interface */
  295.     typedef struct IDirectDrawStreamSampleVtbl
  296.     {
  297.         BEGIN_INTERFACE
  298.         
  299.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  300.             IDirectDrawStreamSample * This,
  301.             /* [in] */ REFIID riid,
  302.             /* [iid_is][out] */ void **ppvObject);
  303.         
  304.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  305.             IDirectDrawStreamSample * This);
  306.         
  307.         ULONG ( STDMETHODCALLTYPE *Release )( 
  308.             IDirectDrawStreamSample * This);
  309.         
  310.         HRESULT ( STDMETHODCALLTYPE *GetMediaStream )( 
  311.             IDirectDrawStreamSample * This,
  312.             /* [in] */ IMediaStream **ppMediaStream);
  313.         
  314.         HRESULT ( STDMETHODCALLTYPE *GetSampleTimes )( 
  315.             IDirectDrawStreamSample * This,
  316.             /* [out] */ STREAM_TIME *pStartTime,
  317.             /* [out] */ STREAM_TIME *pEndTime,
  318.             /* [out] */ STREAM_TIME *pCurrentTime);
  319.         
  320.         HRESULT ( STDMETHODCALLTYPE *SetSampleTimes )( 
  321.             IDirectDrawStreamSample * This,
  322.             /* [in] */ const STREAM_TIME *pStartTime,
  323.             /* [in] */ const STREAM_TIME *pEndTime);
  324.         
  325.         HRESULT ( STDMETHODCALLTYPE *Update )( 
  326.             IDirectDrawStreamSample * This,
  327.             /* [in] */ DWORD dwFlags,
  328.             /* [in] */ HANDLE hEvent,
  329.             /* [in] */ PAPCFUNC pfnAPC,
  330.             /* [in] */ DWORD_PTR dwAPCData);
  331.         
  332.         HRESULT ( STDMETHODCALLTYPE *CompletionStatus )( 
  333.             IDirectDrawStreamSample * This,
  334.             /* [in] */ DWORD dwFlags,
  335.             /* [in] */ DWORD dwMilliseconds);
  336.         
  337.         HRESULT ( STDMETHODCALLTYPE *GetSurface )( 
  338.             IDirectDrawStreamSample * This,
  339.             /* [out] */ IDirectDrawSurface **ppDirectDrawSurface,
  340.             /* [out] */ RECT *pRect);
  341.         
  342.         HRESULT ( STDMETHODCALLTYPE *SetRect )( 
  343.             IDirectDrawStreamSample * This,
  344.             /* [in] */ const RECT *pRect);
  345.         
  346.         END_INTERFACE
  347.     } IDirectDrawStreamSampleVtbl;
  348.     interface IDirectDrawStreamSample
  349.     {
  350.         CONST_VTBL struct IDirectDrawStreamSampleVtbl *lpVtbl;
  351.     };
  352.     
  353. #ifdef COBJMACROS
  354. #define IDirectDrawStreamSample_QueryInterface(This,riid,ppvObject)
  355.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  356. #define IDirectDrawStreamSample_AddRef(This)
  357.     (This)->lpVtbl -> AddRef(This)
  358. #define IDirectDrawStreamSample_Release(This)
  359.     (This)->lpVtbl -> Release(This)
  360. #define IDirectDrawStreamSample_GetMediaStream(This,ppMediaStream)
  361.     (This)->lpVtbl -> GetMediaStream(This,ppMediaStream)
  362. #define IDirectDrawStreamSample_GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime)
  363.     (This)->lpVtbl -> GetSampleTimes(This,pStartTime,pEndTime,pCurrentTime)
  364. #define IDirectDrawStreamSample_SetSampleTimes(This,pStartTime,pEndTime)
  365.     (This)->lpVtbl -> SetSampleTimes(This,pStartTime,pEndTime)
  366. #define IDirectDrawStreamSample_Update(This,dwFlags,hEvent,pfnAPC,dwAPCData)
  367.     (This)->lpVtbl -> Update(This,dwFlags,hEvent,pfnAPC,dwAPCData)
  368. #define IDirectDrawStreamSample_CompletionStatus(This,dwFlags,dwMilliseconds)
  369.     (This)->lpVtbl -> CompletionStatus(This,dwFlags,dwMilliseconds)
  370. #define IDirectDrawStreamSample_GetSurface(This,ppDirectDrawSurface,pRect)
  371.     (This)->lpVtbl -> GetSurface(This,ppDirectDrawSurface,pRect)
  372. #define IDirectDrawStreamSample_SetRect(This,pRect)
  373.     (This)->lpVtbl -> SetRect(This,pRect)
  374. #endif /* COBJMACROS */
  375. #endif  /* C style interface */
  376. HRESULT STDMETHODCALLTYPE IDirectDrawStreamSample_GetSurface_Proxy( 
  377.     IDirectDrawStreamSample * This,
  378.     /* [out] */ IDirectDrawSurface **ppDirectDrawSurface,
  379.     /* [out] */ RECT *pRect);
  380. void __RPC_STUB IDirectDrawStreamSample_GetSurface_Stub(
  381.     IRpcStubBuffer *This,
  382.     IRpcChannelBuffer *_pRpcChannelBuffer,
  383.     PRPC_MESSAGE _pRpcMessage,
  384.     DWORD *_pdwStubPhase);
  385. HRESULT STDMETHODCALLTYPE IDirectDrawStreamSample_SetRect_Proxy( 
  386.     IDirectDrawStreamSample * This,
  387.     /* [in] */ const RECT *pRect);
  388. void __RPC_STUB IDirectDrawStreamSample_SetRect_Stub(
  389.     IRpcStubBuffer *This,
  390.     IRpcChannelBuffer *_pRpcChannelBuffer,
  391.     PRPC_MESSAGE _pRpcMessage,
  392.     DWORD *_pdwStubPhase);
  393. #endif  /* __IDirectDrawStreamSample_INTERFACE_DEFINED__ */
  394. /* Additional Prototypes for ALL interfaces */
  395. /* end of Additional Prototypes */
  396. #ifdef __cplusplus
  397. }
  398. #endif
  399. #endif