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

模拟服务器

开发平台:

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 wiavideo.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 __wiavideo_h__
  27. #define __wiavideo_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */ 
  32. #ifndef __IWiaVideo_FWD_DEFINED__
  33. #define __IWiaVideo_FWD_DEFINED__
  34. typedef interface IWiaVideo IWiaVideo;
  35. #endif  /* __IWiaVideo_FWD_DEFINED__ */
  36. #ifndef __WiaVideo_FWD_DEFINED__
  37. #define __WiaVideo_FWD_DEFINED__
  38. #ifdef __cplusplus
  39. typedef class WiaVideo WiaVideo;
  40. #else
  41. typedef struct WiaVideo WiaVideo;
  42. #endif /* __cplusplus */
  43. #endif  /* __WiaVideo_FWD_DEFINED__ */
  44. /* header files for imported files */
  45. #include "oaidl.h"
  46. #include "ocidl.h"
  47. #ifdef __cplusplus
  48. extern "C"{
  49. #endif 
  50. void * __RPC_USER MIDL_user_allocate(size_t);
  51. void __RPC_USER MIDL_user_free( void * ); 
  52. /* interface __MIDL_itf_wiavideo_0000 */
  53. /* [local] */ 
  54. typedef /* [public][public] */ 
  55. enum __MIDL___MIDL_itf_wiavideo_0000_0001
  56.     { WIAVIDEO_NO_VIDEO = 1,
  57. WIAVIDEO_CREATING_VIDEO = 2,
  58. WIAVIDEO_VIDEO_CREATED = 3,
  59. WIAVIDEO_VIDEO_PLAYING = 4,
  60. WIAVIDEO_VIDEO_PAUSED = 5,
  61. WIAVIDEO_DESTROYING_VIDEO = 6
  62.     }  WIAVIDEO_STATE;
  63. extern RPC_IF_HANDLE __MIDL_itf_wiavideo_0000_v0_0_c_ifspec;
  64. extern RPC_IF_HANDLE __MIDL_itf_wiavideo_0000_v0_0_s_ifspec;
  65. #ifndef __IWiaVideo_INTERFACE_DEFINED__
  66. #define __IWiaVideo_INTERFACE_DEFINED__
  67. /* interface IWiaVideo */
  68. /* [unique][helpstring][uuid][object] */ 
  69. EXTERN_C const IID IID_IWiaVideo;
  70. #if defined(__cplusplus) && !defined(CINTERFACE)
  71.     
  72.     MIDL_INTERFACE("D52920AA-DB88-41F0-946C-E00DC0A19CFA")
  73.     IWiaVideo : public IUnknown
  74.     {
  75.     public:
  76.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PreviewVisible( 
  77.             /* [retval][out] */ BOOL *pbPreviewVisible) = 0;
  78.         
  79.         virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PreviewVisible( 
  80.             /* [in] */ BOOL bPreviewVisible) = 0;
  81.         
  82.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ImagesDirectory( 
  83.             /* [retval][out] */ BSTR *pbstrImageDirectory) = 0;
  84.         
  85.         virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ImagesDirectory( 
  86.             /* [in] */ BSTR bstrImageDirectory) = 0;
  87.         
  88.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateVideoByWiaDevID( 
  89.             /* [in] */ BSTR bstrWiaDeviceID,
  90.             /* [in] */ HWND hwndParent,
  91.             /* [in] */ BOOL bStretchToFitParent,
  92.             /* [in] */ BOOL bAutoBeginPlayback) = 0;
  93.         
  94.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateVideoByDevNum( 
  95.             /* [in] */ UINT uiDeviceNumber,
  96.             /* [in] */ HWND hwndParent,
  97.             /* [in] */ BOOL bStretchToFitParent,
  98.             /* [in] */ BOOL bAutoBeginPlayback) = 0;
  99.         
  100.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateVideoByName( 
  101.             /* [in] */ BSTR bstrFriendlyName,
  102.             /* [in] */ HWND hwndParent,
  103.             /* [in] */ BOOL bStretchToFitParent,
  104.             /* [in] */ BOOL bAutoBeginPlayback) = 0;
  105.         
  106.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DestroyVideo( void) = 0;
  107.         
  108.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Play( void) = 0;
  109.         
  110.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0;
  111.         
  112.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TakePicture( 
  113.             /* [out] */ BSTR *pbstrNewImageFilename) = 0;
  114.         
  115.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ResizeVideo( 
  116.             /* [in] */ BOOL bStretchToFitParent) = 0;
  117.         
  118.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrentState( 
  119.             /* [retval][out] */ WIAVIDEO_STATE *pState) = 0;
  120.         
  121.     };
  122.     
  123. #else  /* C style interface */
  124.     typedef struct IWiaVideoVtbl
  125.     {
  126.         BEGIN_INTERFACE
  127.         
  128.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  129.             IWiaVideo * This,
  130.             /* [in] */ REFIID riid,
  131.             /* [iid_is][out] */ void **ppvObject);
  132.         
  133.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  134.             IWiaVideo * This);
  135.         
  136.         ULONG ( STDMETHODCALLTYPE *Release )( 
  137.             IWiaVideo * This);
  138.         
  139.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PreviewVisible )( 
  140.             IWiaVideo * This,
  141.             /* [retval][out] */ BOOL *pbPreviewVisible);
  142.         
  143.         /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PreviewVisible )( 
  144.             IWiaVideo * This,
  145.             /* [in] */ BOOL bPreviewVisible);
  146.         
  147.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImagesDirectory )( 
  148.             IWiaVideo * This,
  149.             /* [retval][out] */ BSTR *pbstrImageDirectory);
  150.         
  151.         /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ImagesDirectory )( 
  152.             IWiaVideo * This,
  153.             /* [in] */ BSTR bstrImageDirectory);
  154.         
  155.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateVideoByWiaDevID )( 
  156.             IWiaVideo * This,
  157.             /* [in] */ BSTR bstrWiaDeviceID,
  158.             /* [in] */ HWND hwndParent,
  159.             /* [in] */ BOOL bStretchToFitParent,
  160.             /* [in] */ BOOL bAutoBeginPlayback);
  161.         
  162.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateVideoByDevNum )( 
  163.             IWiaVideo * This,
  164.             /* [in] */ UINT uiDeviceNumber,
  165.             /* [in] */ HWND hwndParent,
  166.             /* [in] */ BOOL bStretchToFitParent,
  167.             /* [in] */ BOOL bAutoBeginPlayback);
  168.         
  169.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateVideoByName )( 
  170.             IWiaVideo * This,
  171.             /* [in] */ BSTR bstrFriendlyName,
  172.             /* [in] */ HWND hwndParent,
  173.             /* [in] */ BOOL bStretchToFitParent,
  174.             /* [in] */ BOOL bAutoBeginPlayback);
  175.         
  176.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DestroyVideo )( 
  177.             IWiaVideo * This);
  178.         
  179.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Play )( 
  180.             IWiaVideo * This);
  181.         
  182.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Pause )( 
  183.             IWiaVideo * This);
  184.         
  185.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TakePicture )( 
  186.             IWiaVideo * This,
  187.             /* [out] */ BSTR *pbstrNewImageFilename);
  188.         
  189.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ResizeVideo )( 
  190.             IWiaVideo * This,
  191.             /* [in] */ BOOL bStretchToFitParent);
  192.         
  193.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrentState )( 
  194.             IWiaVideo * This,
  195.             /* [retval][out] */ WIAVIDEO_STATE *pState);
  196.         
  197.         END_INTERFACE
  198.     } IWiaVideoVtbl;
  199.     interface IWiaVideo
  200.     {
  201.         CONST_VTBL struct IWiaVideoVtbl *lpVtbl;
  202.     };
  203.     
  204. #ifdef COBJMACROS
  205. #define IWiaVideo_QueryInterface(This,riid,ppvObject)
  206.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  207. #define IWiaVideo_AddRef(This)
  208.     (This)->lpVtbl -> AddRef(This)
  209. #define IWiaVideo_Release(This)
  210.     (This)->lpVtbl -> Release(This)
  211. #define IWiaVideo_get_PreviewVisible(This,pbPreviewVisible)
  212.     (This)->lpVtbl -> get_PreviewVisible(This,pbPreviewVisible)
  213. #define IWiaVideo_put_PreviewVisible(This,bPreviewVisible)
  214.     (This)->lpVtbl -> put_PreviewVisible(This,bPreviewVisible)
  215. #define IWiaVideo_get_ImagesDirectory(This,pbstrImageDirectory)
  216.     (This)->lpVtbl -> get_ImagesDirectory(This,pbstrImageDirectory)
  217. #define IWiaVideo_put_ImagesDirectory(This,bstrImageDirectory)
  218.     (This)->lpVtbl -> put_ImagesDirectory(This,bstrImageDirectory)
  219. #define IWiaVideo_CreateVideoByWiaDevID(This,bstrWiaDeviceID,hwndParent,bStretchToFitParent,bAutoBeginPlayback)
  220.     (This)->lpVtbl -> CreateVideoByWiaDevID(This,bstrWiaDeviceID,hwndParent,bStretchToFitParent,bAutoBeginPlayback)
  221. #define IWiaVideo_CreateVideoByDevNum(This,uiDeviceNumber,hwndParent,bStretchToFitParent,bAutoBeginPlayback)
  222.     (This)->lpVtbl -> CreateVideoByDevNum(This,uiDeviceNumber,hwndParent,bStretchToFitParent,bAutoBeginPlayback)
  223. #define IWiaVideo_CreateVideoByName(This,bstrFriendlyName,hwndParent,bStretchToFitParent,bAutoBeginPlayback)
  224.     (This)->lpVtbl -> CreateVideoByName(This,bstrFriendlyName,hwndParent,bStretchToFitParent,bAutoBeginPlayback)
  225. #define IWiaVideo_DestroyVideo(This)
  226.     (This)->lpVtbl -> DestroyVideo(This)
  227. #define IWiaVideo_Play(This)
  228.     (This)->lpVtbl -> Play(This)
  229. #define IWiaVideo_Pause(This)
  230.     (This)->lpVtbl -> Pause(This)
  231. #define IWiaVideo_TakePicture(This,pbstrNewImageFilename)
  232.     (This)->lpVtbl -> TakePicture(This,pbstrNewImageFilename)
  233. #define IWiaVideo_ResizeVideo(This,bStretchToFitParent)
  234.     (This)->lpVtbl -> ResizeVideo(This,bStretchToFitParent)
  235. #define IWiaVideo_GetCurrentState(This,pState)
  236.     (This)->lpVtbl -> GetCurrentState(This,pState)
  237. #endif /* COBJMACROS */
  238. #endif  /* C style interface */
  239. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IWiaVideo_get_PreviewVisible_Proxy( 
  240.     IWiaVideo * This,
  241.     /* [retval][out] */ BOOL *pbPreviewVisible);
  242. void __RPC_STUB IWiaVideo_get_PreviewVisible_Stub(
  243.     IRpcStubBuffer *This,
  244.     IRpcChannelBuffer *_pRpcChannelBuffer,
  245.     PRPC_MESSAGE _pRpcMessage,
  246.     DWORD *_pdwStubPhase);
  247. /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IWiaVideo_put_PreviewVisible_Proxy( 
  248.     IWiaVideo * This,
  249.     /* [in] */ BOOL bPreviewVisible);
  250. void __RPC_STUB IWiaVideo_put_PreviewVisible_Stub(
  251.     IRpcStubBuffer *This,
  252.     IRpcChannelBuffer *_pRpcChannelBuffer,
  253.     PRPC_MESSAGE _pRpcMessage,
  254.     DWORD *_pdwStubPhase);
  255. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IWiaVideo_get_ImagesDirectory_Proxy( 
  256.     IWiaVideo * This,
  257.     /* [retval][out] */ BSTR *pbstrImageDirectory);
  258. void __RPC_STUB IWiaVideo_get_ImagesDirectory_Stub(
  259.     IRpcStubBuffer *This,
  260.     IRpcChannelBuffer *_pRpcChannelBuffer,
  261.     PRPC_MESSAGE _pRpcMessage,
  262.     DWORD *_pdwStubPhase);
  263. /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IWiaVideo_put_ImagesDirectory_Proxy( 
  264.     IWiaVideo * This,
  265.     /* [in] */ BSTR bstrImageDirectory);
  266. void __RPC_STUB IWiaVideo_put_ImagesDirectory_Stub(
  267.     IRpcStubBuffer *This,
  268.     IRpcChannelBuffer *_pRpcChannelBuffer,
  269.     PRPC_MESSAGE _pRpcMessage,
  270.     DWORD *_pdwStubPhase);
  271. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_CreateVideoByWiaDevID_Proxy( 
  272.     IWiaVideo * This,
  273.     /* [in] */ BSTR bstrWiaDeviceID,
  274.     /* [in] */ HWND hwndParent,
  275.     /* [in] */ BOOL bStretchToFitParent,
  276.     /* [in] */ BOOL bAutoBeginPlayback);
  277. void __RPC_STUB IWiaVideo_CreateVideoByWiaDevID_Stub(
  278.     IRpcStubBuffer *This,
  279.     IRpcChannelBuffer *_pRpcChannelBuffer,
  280.     PRPC_MESSAGE _pRpcMessage,
  281.     DWORD *_pdwStubPhase);
  282. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_CreateVideoByDevNum_Proxy( 
  283.     IWiaVideo * This,
  284.     /* [in] */ UINT uiDeviceNumber,
  285.     /* [in] */ HWND hwndParent,
  286.     /* [in] */ BOOL bStretchToFitParent,
  287.     /* [in] */ BOOL bAutoBeginPlayback);
  288. void __RPC_STUB IWiaVideo_CreateVideoByDevNum_Stub(
  289.     IRpcStubBuffer *This,
  290.     IRpcChannelBuffer *_pRpcChannelBuffer,
  291.     PRPC_MESSAGE _pRpcMessage,
  292.     DWORD *_pdwStubPhase);
  293. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_CreateVideoByName_Proxy( 
  294.     IWiaVideo * This,
  295.     /* [in] */ BSTR bstrFriendlyName,
  296.     /* [in] */ HWND hwndParent,
  297.     /* [in] */ BOOL bStretchToFitParent,
  298.     /* [in] */ BOOL bAutoBeginPlayback);
  299. void __RPC_STUB IWiaVideo_CreateVideoByName_Stub(
  300.     IRpcStubBuffer *This,
  301.     IRpcChannelBuffer *_pRpcChannelBuffer,
  302.     PRPC_MESSAGE _pRpcMessage,
  303.     DWORD *_pdwStubPhase);
  304. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_DestroyVideo_Proxy( 
  305.     IWiaVideo * This);
  306. void __RPC_STUB IWiaVideo_DestroyVideo_Stub(
  307.     IRpcStubBuffer *This,
  308.     IRpcChannelBuffer *_pRpcChannelBuffer,
  309.     PRPC_MESSAGE _pRpcMessage,
  310.     DWORD *_pdwStubPhase);
  311. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_Play_Proxy( 
  312.     IWiaVideo * This);
  313. void __RPC_STUB IWiaVideo_Play_Stub(
  314.     IRpcStubBuffer *This,
  315.     IRpcChannelBuffer *_pRpcChannelBuffer,
  316.     PRPC_MESSAGE _pRpcMessage,
  317.     DWORD *_pdwStubPhase);
  318. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_Pause_Proxy( 
  319.     IWiaVideo * This);
  320. void __RPC_STUB IWiaVideo_Pause_Stub(
  321.     IRpcStubBuffer *This,
  322.     IRpcChannelBuffer *_pRpcChannelBuffer,
  323.     PRPC_MESSAGE _pRpcMessage,
  324.     DWORD *_pdwStubPhase);
  325. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_TakePicture_Proxy( 
  326.     IWiaVideo * This,
  327.     /* [out] */ BSTR *pbstrNewImageFilename);
  328. void __RPC_STUB IWiaVideo_TakePicture_Stub(
  329.     IRpcStubBuffer *This,
  330.     IRpcChannelBuffer *_pRpcChannelBuffer,
  331.     PRPC_MESSAGE _pRpcMessage,
  332.     DWORD *_pdwStubPhase);
  333. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_ResizeVideo_Proxy( 
  334.     IWiaVideo * This,
  335.     /* [in] */ BOOL bStretchToFitParent);
  336. void __RPC_STUB IWiaVideo_ResizeVideo_Stub(
  337.     IRpcStubBuffer *This,
  338.     IRpcChannelBuffer *_pRpcChannelBuffer,
  339.     PRPC_MESSAGE _pRpcMessage,
  340.     DWORD *_pdwStubPhase);
  341. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_GetCurrentState_Proxy( 
  342.     IWiaVideo * This,
  343.     /* [retval][out] */ WIAVIDEO_STATE *pState);
  344. void __RPC_STUB IWiaVideo_GetCurrentState_Stub(
  345.     IRpcStubBuffer *This,
  346.     IRpcChannelBuffer *_pRpcChannelBuffer,
  347.     PRPC_MESSAGE _pRpcMessage,
  348.     DWORD *_pdwStubPhase);
  349. #endif  /* __IWiaVideo_INTERFACE_DEFINED__ */
  350. #ifndef __WIAVIDEOLib_LIBRARY_DEFINED__
  351. #define __WIAVIDEOLib_LIBRARY_DEFINED__
  352. /* library WIAVIDEOLib */
  353. /* [helpstring][version][uuid] */ 
  354. EXTERN_C const IID LIBID_WIAVIDEOLib;
  355. EXTERN_C const CLSID CLSID_WiaVideo;
  356. #ifdef __cplusplus
  357. class DECLSPEC_UUID("3908C3CD-4478-4536-AF2F-10C25D4EF89A")
  358. WiaVideo;
  359. #endif
  360. #endif /* __WIAVIDEOLib_LIBRARY_DEFINED__ */
  361. /* Additional Prototypes for ALL interfaces */
  362. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
  363. unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
  364. unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
  365. void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 
  366. unsigned long             __RPC_USER  HWND_UserSize(     unsigned long *, unsigned long            , HWND * ); 
  367. unsigned char * __RPC_USER  HWND_UserMarshal(  unsigned long *, unsigned char *, HWND * ); 
  368. unsigned char * __RPC_USER  HWND_UserUnmarshal(unsigned long *, unsigned char *, HWND * ); 
  369. void                      __RPC_USER  HWND_UserFree(     unsigned long *, HWND * ); 
  370. /* end of Additional Prototypes */
  371. #ifdef __cplusplus
  372. }
  373. #endif
  374. #endif