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.

504 lines
16 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 wiavideo.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 __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. MIDL_INTERFACE("D52920AA-DB88-41F0-946C-E00DC0A19CFA")
  72. IWiaVideo : public IUnknown
  73. {
  74. public:
  75. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_PreviewVisible(
  76. /* [retval][out] */ BOOL *pbPreviewVisible) = 0;
  77. virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_PreviewVisible(
  78. /* [in] */ BOOL bPreviewVisible) = 0;
  79. virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ImagesDirectory(
  80. /* [retval][out] */ BSTR *pbstrImageDirectory) = 0;
  81. virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ImagesDirectory(
  82. /* [in] */ BSTR bstrImageDirectory) = 0;
  83. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateVideoByWiaDevID(
  84. /* [in] */ BSTR bstrWiaDeviceID,
  85. /* [in] */ HWND hwndParent,
  86. /* [in] */ BOOL bStretchToFitParent,
  87. /* [in] */ BOOL bAutoBeginPlayback) = 0;
  88. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateVideoByDevNum(
  89. /* [in] */ UINT uiDeviceNumber,
  90. /* [in] */ HWND hwndParent,
  91. /* [in] */ BOOL bStretchToFitParent,
  92. /* [in] */ BOOL bAutoBeginPlayback) = 0;
  93. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateVideoByName(
  94. /* [in] */ BSTR bstrFriendlyName,
  95. /* [in] */ HWND hwndParent,
  96. /* [in] */ BOOL bStretchToFitParent,
  97. /* [in] */ BOOL bAutoBeginPlayback) = 0;
  98. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE DestroyVideo( void) = 0;
  99. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Play( void) = 0;
  100. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Pause( void) = 0;
  101. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE TakePicture(
  102. /* [out] */ BSTR *pbstrNewImageFilename) = 0;
  103. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ResizeVideo(
  104. /* [in] */ BOOL bStretchToFitParent) = 0;
  105. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrentState(
  106. /* [retval][out] */ WIAVIDEO_STATE *pState) = 0;
  107. };
  108. #else /* C style interface */
  109. typedef struct IWiaVideoVtbl
  110. {
  111. BEGIN_INTERFACE
  112. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  113. IWiaVideo * This,
  114. /* [in] */ REFIID riid,
  115. /* [iid_is][out] */ void **ppvObject);
  116. ULONG ( STDMETHODCALLTYPE *AddRef )(
  117. IWiaVideo * This);
  118. ULONG ( STDMETHODCALLTYPE *Release )(
  119. IWiaVideo * This);
  120. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_PreviewVisible )(
  121. IWiaVideo * This,
  122. /* [retval][out] */ BOOL *pbPreviewVisible);
  123. /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_PreviewVisible )(
  124. IWiaVideo * This,
  125. /* [in] */ BOOL bPreviewVisible);
  126. /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ImagesDirectory )(
  127. IWiaVideo * This,
  128. /* [retval][out] */ BSTR *pbstrImageDirectory);
  129. /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ImagesDirectory )(
  130. IWiaVideo * This,
  131. /* [in] */ BSTR bstrImageDirectory);
  132. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateVideoByWiaDevID )(
  133. IWiaVideo * This,
  134. /* [in] */ BSTR bstrWiaDeviceID,
  135. /* [in] */ HWND hwndParent,
  136. /* [in] */ BOOL bStretchToFitParent,
  137. /* [in] */ BOOL bAutoBeginPlayback);
  138. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateVideoByDevNum )(
  139. IWiaVideo * This,
  140. /* [in] */ UINT uiDeviceNumber,
  141. /* [in] */ HWND hwndParent,
  142. /* [in] */ BOOL bStretchToFitParent,
  143. /* [in] */ BOOL bAutoBeginPlayback);
  144. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateVideoByName )(
  145. IWiaVideo * This,
  146. /* [in] */ BSTR bstrFriendlyName,
  147. /* [in] */ HWND hwndParent,
  148. /* [in] */ BOOL bStretchToFitParent,
  149. /* [in] */ BOOL bAutoBeginPlayback);
  150. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *DestroyVideo )(
  151. IWiaVideo * This);
  152. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Play )(
  153. IWiaVideo * This);
  154. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *Pause )(
  155. IWiaVideo * This);
  156. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *TakePicture )(
  157. IWiaVideo * This,
  158. /* [out] */ BSTR *pbstrNewImageFilename);
  159. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ResizeVideo )(
  160. IWiaVideo * This,
  161. /* [in] */ BOOL bStretchToFitParent);
  162. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrentState )(
  163. IWiaVideo * This,
  164. /* [retval][out] */ WIAVIDEO_STATE *pState);
  165. END_INTERFACE
  166. } IWiaVideoVtbl;
  167. interface IWiaVideo
  168. {
  169. CONST_VTBL struct IWiaVideoVtbl *lpVtbl;
  170. };
  171. #ifdef COBJMACROS
  172. #define IWiaVideo_QueryInterface(This,riid,ppvObject) \
  173. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  174. #define IWiaVideo_AddRef(This) \
  175. (This)->lpVtbl -> AddRef(This)
  176. #define IWiaVideo_Release(This) \
  177. (This)->lpVtbl -> Release(This)
  178. #define IWiaVideo_get_PreviewVisible(This,pbPreviewVisible) \
  179. (This)->lpVtbl -> get_PreviewVisible(This,pbPreviewVisible)
  180. #define IWiaVideo_put_PreviewVisible(This,bPreviewVisible) \
  181. (This)->lpVtbl -> put_PreviewVisible(This,bPreviewVisible)
  182. #define IWiaVideo_get_ImagesDirectory(This,pbstrImageDirectory) \
  183. (This)->lpVtbl -> get_ImagesDirectory(This,pbstrImageDirectory)
  184. #define IWiaVideo_put_ImagesDirectory(This,bstrImageDirectory) \
  185. (This)->lpVtbl -> put_ImagesDirectory(This,bstrImageDirectory)
  186. #define IWiaVideo_CreateVideoByWiaDevID(This,bstrWiaDeviceID,hwndParent,bStretchToFitParent,bAutoBeginPlayback) \
  187. (This)->lpVtbl -> CreateVideoByWiaDevID(This,bstrWiaDeviceID,hwndParent,bStretchToFitParent,bAutoBeginPlayback)
  188. #define IWiaVideo_CreateVideoByDevNum(This,uiDeviceNumber,hwndParent,bStretchToFitParent,bAutoBeginPlayback) \
  189. (This)->lpVtbl -> CreateVideoByDevNum(This,uiDeviceNumber,hwndParent,bStretchToFitParent,bAutoBeginPlayback)
  190. #define IWiaVideo_CreateVideoByName(This,bstrFriendlyName,hwndParent,bStretchToFitParent,bAutoBeginPlayback) \
  191. (This)->lpVtbl -> CreateVideoByName(This,bstrFriendlyName,hwndParent,bStretchToFitParent,bAutoBeginPlayback)
  192. #define IWiaVideo_DestroyVideo(This) \
  193. (This)->lpVtbl -> DestroyVideo(This)
  194. #define IWiaVideo_Play(This) \
  195. (This)->lpVtbl -> Play(This)
  196. #define IWiaVideo_Pause(This) \
  197. (This)->lpVtbl -> Pause(This)
  198. #define IWiaVideo_TakePicture(This,pbstrNewImageFilename) \
  199. (This)->lpVtbl -> TakePicture(This,pbstrNewImageFilename)
  200. #define IWiaVideo_ResizeVideo(This,bStretchToFitParent) \
  201. (This)->lpVtbl -> ResizeVideo(This,bStretchToFitParent)
  202. #define IWiaVideo_GetCurrentState(This,pState) \
  203. (This)->lpVtbl -> GetCurrentState(This,pState)
  204. #endif /* COBJMACROS */
  205. #endif /* C style interface */
  206. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IWiaVideo_get_PreviewVisible_Proxy(
  207. IWiaVideo * This,
  208. /* [retval][out] */ BOOL *pbPreviewVisible);
  209. void __RPC_STUB IWiaVideo_get_PreviewVisible_Stub(
  210. IRpcStubBuffer *This,
  211. IRpcChannelBuffer *_pRpcChannelBuffer,
  212. PRPC_MESSAGE _pRpcMessage,
  213. DWORD *_pdwStubPhase);
  214. /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IWiaVideo_put_PreviewVisible_Proxy(
  215. IWiaVideo * This,
  216. /* [in] */ BOOL bPreviewVisible);
  217. void __RPC_STUB IWiaVideo_put_PreviewVisible_Stub(
  218. IRpcStubBuffer *This,
  219. IRpcChannelBuffer *_pRpcChannelBuffer,
  220. PRPC_MESSAGE _pRpcMessage,
  221. DWORD *_pdwStubPhase);
  222. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IWiaVideo_get_ImagesDirectory_Proxy(
  223. IWiaVideo * This,
  224. /* [retval][out] */ BSTR *pbstrImageDirectory);
  225. void __RPC_STUB IWiaVideo_get_ImagesDirectory_Stub(
  226. IRpcStubBuffer *This,
  227. IRpcChannelBuffer *_pRpcChannelBuffer,
  228. PRPC_MESSAGE _pRpcMessage,
  229. DWORD *_pdwStubPhase);
  230. /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IWiaVideo_put_ImagesDirectory_Proxy(
  231. IWiaVideo * This,
  232. /* [in] */ BSTR bstrImageDirectory);
  233. void __RPC_STUB IWiaVideo_put_ImagesDirectory_Stub(
  234. IRpcStubBuffer *This,
  235. IRpcChannelBuffer *_pRpcChannelBuffer,
  236. PRPC_MESSAGE _pRpcMessage,
  237. DWORD *_pdwStubPhase);
  238. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_CreateVideoByWiaDevID_Proxy(
  239. IWiaVideo * This,
  240. /* [in] */ BSTR bstrWiaDeviceID,
  241. /* [in] */ HWND hwndParent,
  242. /* [in] */ BOOL bStretchToFitParent,
  243. /* [in] */ BOOL bAutoBeginPlayback);
  244. void __RPC_STUB IWiaVideo_CreateVideoByWiaDevID_Stub(
  245. IRpcStubBuffer *This,
  246. IRpcChannelBuffer *_pRpcChannelBuffer,
  247. PRPC_MESSAGE _pRpcMessage,
  248. DWORD *_pdwStubPhase);
  249. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_CreateVideoByDevNum_Proxy(
  250. IWiaVideo * This,
  251. /* [in] */ UINT uiDeviceNumber,
  252. /* [in] */ HWND hwndParent,
  253. /* [in] */ BOOL bStretchToFitParent,
  254. /* [in] */ BOOL bAutoBeginPlayback);
  255. void __RPC_STUB IWiaVideo_CreateVideoByDevNum_Stub(
  256. IRpcStubBuffer *This,
  257. IRpcChannelBuffer *_pRpcChannelBuffer,
  258. PRPC_MESSAGE _pRpcMessage,
  259. DWORD *_pdwStubPhase);
  260. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_CreateVideoByName_Proxy(
  261. IWiaVideo * This,
  262. /* [in] */ BSTR bstrFriendlyName,
  263. /* [in] */ HWND hwndParent,
  264. /* [in] */ BOOL bStretchToFitParent,
  265. /* [in] */ BOOL bAutoBeginPlayback);
  266. void __RPC_STUB IWiaVideo_CreateVideoByName_Stub(
  267. IRpcStubBuffer *This,
  268. IRpcChannelBuffer *_pRpcChannelBuffer,
  269. PRPC_MESSAGE _pRpcMessage,
  270. DWORD *_pdwStubPhase);
  271. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_DestroyVideo_Proxy(
  272. IWiaVideo * This);
  273. void __RPC_STUB IWiaVideo_DestroyVideo_Stub(
  274. IRpcStubBuffer *This,
  275. IRpcChannelBuffer *_pRpcChannelBuffer,
  276. PRPC_MESSAGE _pRpcMessage,
  277. DWORD *_pdwStubPhase);
  278. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_Play_Proxy(
  279. IWiaVideo * This);
  280. void __RPC_STUB IWiaVideo_Play_Stub(
  281. IRpcStubBuffer *This,
  282. IRpcChannelBuffer *_pRpcChannelBuffer,
  283. PRPC_MESSAGE _pRpcMessage,
  284. DWORD *_pdwStubPhase);
  285. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_Pause_Proxy(
  286. IWiaVideo * This);
  287. void __RPC_STUB IWiaVideo_Pause_Stub(
  288. IRpcStubBuffer *This,
  289. IRpcChannelBuffer *_pRpcChannelBuffer,
  290. PRPC_MESSAGE _pRpcMessage,
  291. DWORD *_pdwStubPhase);
  292. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_TakePicture_Proxy(
  293. IWiaVideo * This,
  294. /* [out] */ BSTR *pbstrNewImageFilename);
  295. void __RPC_STUB IWiaVideo_TakePicture_Stub(
  296. IRpcStubBuffer *This,
  297. IRpcChannelBuffer *_pRpcChannelBuffer,
  298. PRPC_MESSAGE _pRpcMessage,
  299. DWORD *_pdwStubPhase);
  300. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_ResizeVideo_Proxy(
  301. IWiaVideo * This,
  302. /* [in] */ BOOL bStretchToFitParent);
  303. void __RPC_STUB IWiaVideo_ResizeVideo_Stub(
  304. IRpcStubBuffer *This,
  305. IRpcChannelBuffer *_pRpcChannelBuffer,
  306. PRPC_MESSAGE _pRpcMessage,
  307. DWORD *_pdwStubPhase);
  308. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWiaVideo_GetCurrentState_Proxy(
  309. IWiaVideo * This,
  310. /* [retval][out] */ WIAVIDEO_STATE *pState);
  311. void __RPC_STUB IWiaVideo_GetCurrentState_Stub(
  312. IRpcStubBuffer *This,
  313. IRpcChannelBuffer *_pRpcChannelBuffer,
  314. PRPC_MESSAGE _pRpcMessage,
  315. DWORD *_pdwStubPhase);
  316. #endif /* __IWiaVideo_INTERFACE_DEFINED__ */
  317. #ifndef __WIAVIDEOLib_LIBRARY_DEFINED__
  318. #define __WIAVIDEOLib_LIBRARY_DEFINED__
  319. /* library WIAVIDEOLib */
  320. /* [helpstring][version][uuid] */
  321. EXTERN_C const IID LIBID_WIAVIDEOLib;
  322. EXTERN_C const CLSID CLSID_WiaVideo;
  323. #ifdef __cplusplus
  324. class DECLSPEC_UUID("3908C3CD-4478-4536-AF2F-10C25D4EF89A")
  325. WiaVideo;
  326. #endif
  327. #endif /* __WIAVIDEOLib_LIBRARY_DEFINED__ */
  328. /* Additional Prototypes for ALL interfaces */
  329. unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * );
  330. unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * );
  331. unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * );
  332. void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * );
  333. unsigned long __RPC_USER HWND_UserSize( unsigned long *, unsigned long , HWND * );
  334. unsigned char * __RPC_USER HWND_UserMarshal( unsigned long *, unsigned char *, HWND * );
  335. unsigned char * __RPC_USER HWND_UserUnmarshal(unsigned long *, unsigned char *, HWND * );
  336. void __RPC_USER HWND_UserFree( unsigned long *, HWND * );
  337. /* end of Additional Prototypes */
  338. #ifdef __cplusplus
  339. }
  340. #endif
  341. #endif