home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the 3D Game Programming Gurus / gurus.iso / DirectX / dx9sdkcp.exe / SDK (C++) / Include / mixerocx.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-12-04  |  13.4 KB  |  489 lines

  1.  
  2. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  3.  
  4. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  5.  
  6.  
  7.  /* File created by MIDL compiler version 6.00.0357 */
  8. /* Compiler settings for mixerocx.idl:
  9.     Oicf, W1, Zp8, env=Win32 (32b run)
  10.     protocol : dce , ms_ext, c_ext, robust
  11.     error checks: allocation ref bounds_check enum stub_data 
  12.     VC __declspec() decoration level: 
  13.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  14.          DECLSPEC_UUID(), MIDL_INTERFACE()
  15. */
  16. //@@MIDL_FILE_HEADING(  )
  17.  
  18.  
  19. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  20. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  21. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  22. #endif
  23.  
  24. #include "rpc.h"
  25. #include "rpcndr.h"
  26.  
  27. #ifndef __RPCNDR_H_VERSION__
  28. #error this stub requires an updated version of <rpcndr.h>
  29. #endif // __RPCNDR_H_VERSION__
  30.  
  31. #ifndef COM_NO_WINDOWS_H
  32. #include "windows.h"
  33. #include "ole2.h"
  34. #endif /*COM_NO_WINDOWS_H*/
  35.  
  36. #ifndef __mixerocx_h__
  37. #define __mixerocx_h__
  38.  
  39. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  40. #pragma once
  41. #endif
  42.  
  43. /* Forward Declarations */ 
  44.  
  45. #ifndef __IMixerOCXNotify_FWD_DEFINED__
  46. #define __IMixerOCXNotify_FWD_DEFINED__
  47. typedef interface IMixerOCXNotify IMixerOCXNotify;
  48. #endif     /* __IMixerOCXNotify_FWD_DEFINED__ */
  49.  
  50.  
  51. #ifndef __IMixerOCX_FWD_DEFINED__
  52. #define __IMixerOCX_FWD_DEFINED__
  53. typedef interface IMixerOCX IMixerOCX;
  54. #endif     /* __IMixerOCX_FWD_DEFINED__ */
  55.  
  56.  
  57. /* header files for imported files */
  58. #include "unknwn.h"
  59.  
  60. #ifdef __cplusplus
  61. extern "C"{
  62. #endif 
  63.  
  64. void * __RPC_USER MIDL_user_allocate(size_t);
  65. void __RPC_USER MIDL_user_free( void * ); 
  66.  
  67. /* interface __MIDL_itf_mixerocx_0000 */
  68. /* [local] */ 
  69.  
  70.  
  71.  
  72.  
  73.  
  74. extern RPC_IF_HANDLE __MIDL_itf_mixerocx_0000_v0_0_c_ifspec;
  75. extern RPC_IF_HANDLE __MIDL_itf_mixerocx_0000_v0_0_s_ifspec;
  76.  
  77. #ifndef __IMixerOCXNotify_INTERFACE_DEFINED__
  78. #define __IMixerOCXNotify_INTERFACE_DEFINED__
  79.  
  80. /* interface IMixerOCXNotify */
  81. /* [unique][helpstring][uuid][object] */ 
  82.  
  83.  
  84. EXTERN_C const IID IID_IMixerOCXNotify;
  85.  
  86. #if defined(__cplusplus) && !defined(CINTERFACE)
  87.     
  88.     MIDL_INTERFACE("81A3BD31-DEE1-11d1-8508-00A0C91F9CA0")
  89.     IMixerOCXNotify : public IUnknown
  90.     {
  91.     public:
  92.         virtual HRESULT STDMETHODCALLTYPE OnInvalidateRect( 
  93.             /* [in] */ LPCRECT lpcRect) = 0;
  94.         
  95.         virtual HRESULT STDMETHODCALLTYPE OnStatusChange( 
  96.             /* [in] */ ULONG ulStatusFlags) = 0;
  97.         
  98.         virtual HRESULT STDMETHODCALLTYPE OnDataChange( 
  99.             /* [in] */ ULONG ulDataFlags) = 0;
  100.         
  101.     };
  102.     
  103. #else     /* C style interface */
  104.  
  105.     typedef struct IMixerOCXNotifyVtbl
  106.     {
  107.         BEGIN_INTERFACE
  108.         
  109.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  110.             IMixerOCXNotify * This,
  111.             /* [in] */ REFIID riid,
  112.             /* [iid_is][out] */ void **ppvObject);
  113.         
  114.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  115.             IMixerOCXNotify * This);
  116.         
  117.         ULONG ( STDMETHODCALLTYPE *Release )( 
  118.             IMixerOCXNotify * This);
  119.         
  120.         HRESULT ( STDMETHODCALLTYPE *OnInvalidateRect )( 
  121.             IMixerOCXNotify * This,
  122.             /* [in] */ LPCRECT lpcRect);
  123.         
  124.         HRESULT ( STDMETHODCALLTYPE *OnStatusChange )( 
  125.             IMixerOCXNotify * This,
  126.             /* [in] */ ULONG ulStatusFlags);
  127.         
  128.         HRESULT ( STDMETHODCALLTYPE *OnDataChange )( 
  129.             IMixerOCXNotify * This,
  130.             /* [in] */ ULONG ulDataFlags);
  131.         
  132.         END_INTERFACE
  133.     } IMixerOCXNotifyVtbl;
  134.  
  135.     interface IMixerOCXNotify
  136.     {
  137.         CONST_VTBL struct IMixerOCXNotifyVtbl *lpVtbl;
  138.     };
  139.  
  140.     
  141.  
  142. #ifdef COBJMACROS
  143.  
  144.  
  145. #define IMixerOCXNotify_QueryInterface(This,riid,ppvObject)    \
  146.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  147.  
  148. #define IMixerOCXNotify_AddRef(This)    \
  149.     (This)->lpVtbl -> AddRef(This)
  150.  
  151. #define IMixerOCXNotify_Release(This)    \
  152.     (This)->lpVtbl -> Release(This)
  153.  
  154.  
  155. #define IMixerOCXNotify_OnInvalidateRect(This,lpcRect)    \
  156.     (This)->lpVtbl -> OnInvalidateRect(This,lpcRect)
  157.  
  158. #define IMixerOCXNotify_OnStatusChange(This,ulStatusFlags)    \
  159.     (This)->lpVtbl -> OnStatusChange(This,ulStatusFlags)
  160.  
  161. #define IMixerOCXNotify_OnDataChange(This,ulDataFlags)    \
  162.     (This)->lpVtbl -> OnDataChange(This,ulDataFlags)
  163.  
  164. #endif /* COBJMACROS */
  165.  
  166.  
  167. #endif     /* C style interface */
  168.  
  169.  
  170.  
  171. HRESULT STDMETHODCALLTYPE IMixerOCXNotify_OnInvalidateRect_Proxy( 
  172.     IMixerOCXNotify * This,
  173.     /* [in] */ LPCRECT lpcRect);
  174.  
  175.  
  176. void __RPC_STUB IMixerOCXNotify_OnInvalidateRect_Stub(
  177.     IRpcStubBuffer *This,
  178.     IRpcChannelBuffer *_pRpcChannelBuffer,
  179.     PRPC_MESSAGE _pRpcMessage,
  180.     DWORD *_pdwStubPhase);
  181.  
  182.  
  183. HRESULT STDMETHODCALLTYPE IMixerOCXNotify_OnStatusChange_Proxy( 
  184.     IMixerOCXNotify * This,
  185.     /* [in] */ ULONG ulStatusFlags);
  186.  
  187.  
  188. void __RPC_STUB IMixerOCXNotify_OnStatusChange_Stub(
  189.     IRpcStubBuffer *This,
  190.     IRpcChannelBuffer *_pRpcChannelBuffer,
  191.     PRPC_MESSAGE _pRpcMessage,
  192.     DWORD *_pdwStubPhase);
  193.  
  194.  
  195. HRESULT STDMETHODCALLTYPE IMixerOCXNotify_OnDataChange_Proxy( 
  196.     IMixerOCXNotify * This,
  197.     /* [in] */ ULONG ulDataFlags);
  198.  
  199.  
  200. void __RPC_STUB IMixerOCXNotify_OnDataChange_Stub(
  201.     IRpcStubBuffer *This,
  202.     IRpcChannelBuffer *_pRpcChannelBuffer,
  203.     PRPC_MESSAGE _pRpcMessage,
  204.     DWORD *_pdwStubPhase);
  205.  
  206.  
  207.  
  208. #endif     /* __IMixerOCXNotify_INTERFACE_DEFINED__ */
  209.  
  210.  
  211. #ifndef __IMixerOCX_INTERFACE_DEFINED__
  212. #define __IMixerOCX_INTERFACE_DEFINED__
  213.  
  214. /* interface IMixerOCX */
  215. /* [unique][helpstring][uuid][object] */ 
  216.  
  217.  
  218. EXTERN_C const IID IID_IMixerOCX;
  219.  
  220. #if defined(__cplusplus) && !defined(CINTERFACE)
  221.     
  222.     MIDL_INTERFACE("81A3BD32-DEE1-11d1-8508-00A0C91F9CA0")
  223.     IMixerOCX : public IUnknown
  224.     {
  225.     public:
  226.         virtual HRESULT STDMETHODCALLTYPE OnDisplayChange( 
  227.             /* [in] */ ULONG ulBitsPerPixel,
  228.             /* [in] */ ULONG ulScreenWidth,
  229.             /* [in] */ ULONG ulScreenHeight) = 0;
  230.         
  231.         virtual HRESULT STDMETHODCALLTYPE GetAspectRatio( 
  232.             /* [out] */ LPDWORD pdwPictAspectRatioX,
  233.             /* [out] */ LPDWORD pdwPictAspectRatioY) = 0;
  234.         
  235.         virtual HRESULT STDMETHODCALLTYPE GetVideoSize( 
  236.             /* [out] */ LPDWORD pdwVideoWidth,
  237.             /* [out] */ LPDWORD pdwVideoHeight) = 0;
  238.         
  239.         virtual HRESULT STDMETHODCALLTYPE GetStatus( 
  240.             /* [out] */ LPDWORD *pdwStatus) = 0;
  241.         
  242.         virtual HRESULT STDMETHODCALLTYPE OnDraw( 
  243.             /* [in] */ HDC hdcDraw,
  244.             /* [in] */ LPCRECT prcDraw) = 0;
  245.         
  246.         virtual HRESULT STDMETHODCALLTYPE SetDrawRegion( 
  247.             /* [in] */ LPPOINT lpptTopLeftSC,
  248.             /* [in] */ LPCRECT prcDrawCC,
  249.             /* [in] */ LPCRECT lprcClip) = 0;
  250.         
  251.         virtual HRESULT STDMETHODCALLTYPE Advise( 
  252.             /* [in] */ IMixerOCXNotify *pmdns) = 0;
  253.         
  254.         virtual HRESULT STDMETHODCALLTYPE UnAdvise( void) = 0;
  255.         
  256.     };
  257.     
  258. #else     /* C style interface */
  259.  
  260.     typedef struct IMixerOCXVtbl
  261.     {
  262.         BEGIN_INTERFACE
  263.         
  264.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  265.             IMixerOCX * This,
  266.             /* [in] */ REFIID riid,
  267.             /* [iid_is][out] */ void **ppvObject);
  268.         
  269.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  270.             IMixerOCX * This);
  271.         
  272.         ULONG ( STDMETHODCALLTYPE *Release )( 
  273.             IMixerOCX * This);
  274.         
  275.         HRESULT ( STDMETHODCALLTYPE *OnDisplayChange )( 
  276.             IMixerOCX * This,
  277.             /* [in] */ ULONG ulBitsPerPixel,
  278.             /* [in] */ ULONG ulScreenWidth,
  279.             /* [in] */ ULONG ulScreenHeight);
  280.         
  281.         HRESULT ( STDMETHODCALLTYPE *GetAspectRatio )( 
  282.             IMixerOCX * This,
  283.             /* [out] */ LPDWORD pdwPictAspectRatioX,
  284.             /* [out] */ LPDWORD pdwPictAspectRatioY);
  285.         
  286.         HRESULT ( STDMETHODCALLTYPE *GetVideoSize )( 
  287.             IMixerOCX * This,
  288.             /* [out] */ LPDWORD pdwVideoWidth,
  289.             /* [out] */ LPDWORD pdwVideoHeight);
  290.         
  291.         HRESULT ( STDMETHODCALLTYPE *GetStatus )( 
  292.             IMixerOCX * This,
  293.             /* [out] */ LPDWORD *pdwStatus);
  294.         
  295.         HRESULT ( STDMETHODCALLTYPE *OnDraw )( 
  296.             IMixerOCX * This,
  297.             /* [in] */ HDC hdcDraw,
  298.             /* [in] */ LPCRECT prcDraw);
  299.         
  300.         HRESULT ( STDMETHODCALLTYPE *SetDrawRegion )( 
  301.             IMixerOCX * This,
  302.             /* [in] */ LPPOINT lpptTopLeftSC,
  303.             /* [in] */ LPCRECT prcDrawCC,
  304.             /* [in] */ LPCRECT lprcClip);
  305.         
  306.         HRESULT ( STDMETHODCALLTYPE *Advise )( 
  307.             IMixerOCX * This,
  308.             /* [in] */ IMixerOCXNotify *pmdns);
  309.         
  310.         HRESULT ( STDMETHODCALLTYPE *UnAdvise )( 
  311.             IMixerOCX * This);
  312.         
  313.         END_INTERFACE
  314.     } IMixerOCXVtbl;
  315.  
  316.     interface IMixerOCX
  317.     {
  318.         CONST_VTBL struct IMixerOCXVtbl *lpVtbl;
  319.     };
  320.  
  321.     
  322.  
  323. #ifdef COBJMACROS
  324.  
  325.  
  326. #define IMixerOCX_QueryInterface(This,riid,ppvObject)    \
  327.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  328.  
  329. #define IMixerOCX_AddRef(This)    \
  330.     (This)->lpVtbl -> AddRef(This)
  331.  
  332. #define IMixerOCX_Release(This)    \
  333.     (This)->lpVtbl -> Release(This)
  334.  
  335.  
  336. #define IMixerOCX_OnDisplayChange(This,ulBitsPerPixel,ulScreenWidth,ulScreenHeight)    \
  337.     (This)->lpVtbl -> OnDisplayChange(This,ulBitsPerPixel,ulScreenWidth,ulScreenHeight)
  338.  
  339. #define IMixerOCX_GetAspectRatio(This,pdwPictAspectRatioX,pdwPictAspectRatioY)    \
  340.     (This)->lpVtbl -> GetAspectRatio(This,pdwPictAspectRatioX,pdwPictAspectRatioY)
  341.  
  342. #define IMixerOCX_GetVideoSize(This,pdwVideoWidth,pdwVideoHeight)    \
  343.     (This)->lpVtbl -> GetVideoSize(This,pdwVideoWidth,pdwVideoHeight)
  344.  
  345. #define IMixerOCX_GetStatus(This,pdwStatus)    \
  346.     (This)->lpVtbl -> GetStatus(This,pdwStatus)
  347.  
  348. #define IMixerOCX_OnDraw(This,hdcDraw,prcDraw)    \
  349.     (This)->lpVtbl -> OnDraw(This,hdcDraw,prcDraw)
  350.  
  351. #define IMixerOCX_SetDrawRegion(This,lpptTopLeftSC,prcDrawCC,lprcClip)    \
  352.     (This)->lpVtbl -> SetDrawRegion(This,lpptTopLeftSC,prcDrawCC,lprcClip)
  353.  
  354. #define IMixerOCX_Advise(This,pmdns)    \
  355.     (This)->lpVtbl -> Advise(This,pmdns)
  356.  
  357. #define IMixerOCX_UnAdvise(This)    \
  358.     (This)->lpVtbl -> UnAdvise(This)
  359.  
  360. #endif /* COBJMACROS */
  361.  
  362.  
  363. #endif     /* C style interface */
  364.  
  365.  
  366.  
  367. HRESULT STDMETHODCALLTYPE IMixerOCX_OnDisplayChange_Proxy( 
  368.     IMixerOCX * This,
  369.     /* [in] */ ULONG ulBitsPerPixel,
  370.     /* [in] */ ULONG ulScreenWidth,
  371.     /* [in] */ ULONG ulScreenHeight);
  372.  
  373.  
  374. void __RPC_STUB IMixerOCX_OnDisplayChange_Stub(
  375.     IRpcStubBuffer *This,
  376.     IRpcChannelBuffer *_pRpcChannelBuffer,
  377.     PRPC_MESSAGE _pRpcMessage,
  378.     DWORD *_pdwStubPhase);
  379.  
  380.  
  381. HRESULT STDMETHODCALLTYPE IMixerOCX_GetAspectRatio_Proxy( 
  382.     IMixerOCX * This,
  383.     /* [out] */ LPDWORD pdwPictAspectRatioX,
  384.     /* [out] */ LPDWORD pdwPictAspectRatioY);
  385.  
  386.  
  387. void __RPC_STUB IMixerOCX_GetAspectRatio_Stub(
  388.     IRpcStubBuffer *This,
  389.     IRpcChannelBuffer *_pRpcChannelBuffer,
  390.     PRPC_MESSAGE _pRpcMessage,
  391.     DWORD *_pdwStubPhase);
  392.  
  393.  
  394. HRESULT STDMETHODCALLTYPE IMixerOCX_GetVideoSize_Proxy( 
  395.     IMixerOCX * This,
  396.     /* [out] */ LPDWORD pdwVideoWidth,
  397.     /* [out] */ LPDWORD pdwVideoHeight);
  398.  
  399.  
  400. void __RPC_STUB IMixerOCX_GetVideoSize_Stub(
  401.     IRpcStubBuffer *This,
  402.     IRpcChannelBuffer *_pRpcChannelBuffer,
  403.     PRPC_MESSAGE _pRpcMessage,
  404.     DWORD *_pdwStubPhase);
  405.  
  406.  
  407. HRESULT STDMETHODCALLTYPE IMixerOCX_GetStatus_Proxy( 
  408.     IMixerOCX * This,
  409.     /* [out] */ LPDWORD *pdwStatus);
  410.  
  411.  
  412. void __RPC_STUB IMixerOCX_GetStatus_Stub(
  413.     IRpcStubBuffer *This,
  414.     IRpcChannelBuffer *_pRpcChannelBuffer,
  415.     PRPC_MESSAGE _pRpcMessage,
  416.     DWORD *_pdwStubPhase);
  417.  
  418.  
  419. HRESULT STDMETHODCALLTYPE IMixerOCX_OnDraw_Proxy( 
  420.     IMixerOCX * This,
  421.     /* [in] */ HDC hdcDraw,
  422.     /* [in] */ LPCRECT prcDraw);
  423.  
  424.  
  425. void __RPC_STUB IMixerOCX_OnDraw_Stub(
  426.     IRpcStubBuffer *This,
  427.     IRpcChannelBuffer *_pRpcChannelBuffer,
  428.     PRPC_MESSAGE _pRpcMessage,
  429.     DWORD *_pdwStubPhase);
  430.  
  431.  
  432. HRESULT STDMETHODCALLTYPE IMixerOCX_SetDrawRegion_Proxy( 
  433.     IMixerOCX * This,
  434.     /* [in] */ LPPOINT lpptTopLeftSC,
  435.     /* [in] */ LPCRECT prcDrawCC,
  436.     /* [in] */ LPCRECT lprcClip);
  437.  
  438.  
  439. void __RPC_STUB IMixerOCX_SetDrawRegion_Stub(
  440.     IRpcStubBuffer *This,
  441.     IRpcChannelBuffer *_pRpcChannelBuffer,
  442.     PRPC_MESSAGE _pRpcMessage,
  443.     DWORD *_pdwStubPhase);
  444.  
  445.  
  446. HRESULT STDMETHODCALLTYPE IMixerOCX_Advise_Proxy( 
  447.     IMixerOCX * This,
  448.     /* [in] */ IMixerOCXNotify *pmdns);
  449.  
  450.  
  451. void __RPC_STUB IMixerOCX_Advise_Stub(
  452.     IRpcStubBuffer *This,
  453.     IRpcChannelBuffer *_pRpcChannelBuffer,
  454.     PRPC_MESSAGE _pRpcMessage,
  455.     DWORD *_pdwStubPhase);
  456.  
  457.  
  458. HRESULT STDMETHODCALLTYPE IMixerOCX_UnAdvise_Proxy( 
  459.     IMixerOCX * This);
  460.  
  461.  
  462. void __RPC_STUB IMixerOCX_UnAdvise_Stub(
  463.     IRpcStubBuffer *This,
  464.     IRpcChannelBuffer *_pRpcChannelBuffer,
  465.     PRPC_MESSAGE _pRpcMessage,
  466.     DWORD *_pdwStubPhase);
  467.  
  468.  
  469.  
  470. #endif     /* __IMixerOCX_INTERFACE_DEFINED__ */
  471.  
  472.  
  473. /* Additional Prototypes for ALL interfaces */
  474.  
  475. unsigned long             __RPC_USER  HDC_UserSize(     unsigned long *, unsigned long            , HDC * ); 
  476. unsigned char * __RPC_USER  HDC_UserMarshal(  unsigned long *, unsigned char *, HDC * ); 
  477. unsigned char * __RPC_USER  HDC_UserUnmarshal(unsigned long *, unsigned char *, HDC * ); 
  478. void                      __RPC_USER  HDC_UserFree(     unsigned long *, HDC * ); 
  479.  
  480. /* end of Additional Prototypes */
  481.  
  482. #ifdef __cplusplus
  483. }
  484. #endif
  485.  
  486. #endif
  487.  
  488.  
  489.