Source code of Windows XP (NT5)
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.

870 lines
30 KiB

  1. /****************************************************************************/
  2. /* */
  3. /* DIGITALV.H - Include file for the MCI Digital Video Command Set */
  4. /* */
  5. /* Version 1.0 */
  6. /* */
  7. /* Copyright (c) 1995-1998, Microsoft Corp. All rights reserved. */
  8. /* */
  9. /* Date Modification */
  10. /* ------------ ------------ */
  11. /* Aug 19, 1992 -Version 1.0 Release */
  12. /* */
  13. /****************************************************************************/
  14. #ifndef _INC_DIGITALV
  15. #define _INC_DIGITALV 100
  16. #ifdef _WIN32
  17. #include <pshpack1.h>
  18. #else
  19. #ifndef RC_INVOKED
  20. #pragma pack(1)
  21. #endif
  22. #endif
  23. #ifdef __cplusplus
  24. extern "C" { /* Assume C declarations for C++ */
  25. #endif /* __cplusplus */
  26. #define MCI_TEST 0x00000020L
  27. /* Message values */
  28. #define MCI_CAPTURE 0x0870
  29. #define MCI_MONITOR 0x0871
  30. #define MCI_RESERVE 0x0872
  31. #define MCI_SETAUDIO 0x0873
  32. #define MCI_SIGNAL 0x0875
  33. #define MCI_SETVIDEO 0x0876
  34. #define MCI_QUALITY 0x0877
  35. #define MCI_LIST 0x0878
  36. #define MCI_UNDO 0x0879
  37. #define MCI_CONFIGURE 0x087a
  38. #define MCI_RESTORE 0x087b
  39. /* Return and string constant values */
  40. #define MCI_ON 1
  41. #define MCI_OFF 0
  42. #define MCI_DGV_FILE_MODE_SAVING 0x0001
  43. #define MCI_DGV_FILE_MODE_LOADING 0x0002
  44. #define MCI_DGV_FILE_MODE_EDITING 0x0003
  45. #define MCI_DGV_FILE_MODE_IDLE 0x0004
  46. /* These identifiers are used only by device drivers */
  47. #define MCI_ON_S 0x00008000L
  48. #define MCI_OFF_S 0x00008001L
  49. #define MCI_DGV_FILE_S 0x00008002L
  50. #define MCI_DGV_INPUT_S 0x00008003L
  51. #define MCI_DGV_FILE_MODE_SAVING_S 0x00008004L
  52. #define MCI_DGV_FILE_MODE_LOADING_S 0x00008005L
  53. #define MCI_DGV_FILE_MODE_EDITING_S 0x00008006L
  54. #define MCI_DGV_FILE_MODE_IDLE_S 0x00008007L
  55. #define MCI_DGV_SETVIDEO_SRC_NTSC_S 0x00008010L
  56. #define MCI_DGV_SETVIDEO_SRC_RGB_S 0x00008011L
  57. #define MCI_DGV_SETVIDEO_SRC_SVIDEO_S 0x00008012L
  58. #define MCI_DGV_SETVIDEO_SRC_PAL_S 0x00008013L
  59. #define MCI_DGV_SETVIDEO_SRC_SECAM_S 0x00008014L
  60. #define MCI_DGV_SETVIDEO_SRC_GENERIC_S 0x00008015L
  61. #define MCI_DGV_SETAUDIO_SRC_LEFT_S 0x00008020L
  62. #define MCI_DGV_SETAUDIO_SRC_RIGHT_S 0x00008021L
  63. #define MCI_DGV_SETAUDIO_SRC_AVERAGE_S 0x00008022L
  64. #define MCI_DGV_SETAUDIO_SRC_STEREO_S 0x00008023L
  65. /* Window message for signal notification */
  66. #define MM_MCISIGNAL 0x3CB
  67. /* error values */
  68. #define MCIERR_DGV_DEVICE_LIMIT (MCIERR_CUSTOM_DRIVER_BASE+0)
  69. #define MCIERR_DGV_IOERR (MCIERR_CUSTOM_DRIVER_BASE+1)
  70. #define MCIERR_DGV_WORKSPACE_EMPTY (MCIERR_CUSTOM_DRIVER_BASE+2)
  71. #define MCIERR_DGV_DISK_FULL (MCIERR_CUSTOM_DRIVER_BASE+3)
  72. #define MCIERR_DGV_DEVICE_MEMORY_FULL (MCIERR_CUSTOM_DRIVER_BASE+4)
  73. #define MCIERR_DGV_BAD_CLIPBOARD_RANGE (MCIERR_CUSTOM_DRIVER_BASE+5)
  74. /* defines for monitor methods */
  75. #define MCI_DGV_METHOD_PRE 0x0000a000L
  76. #define MCI_DGV_METHOD_POST 0x0000a001L
  77. #define MCI_DGV_METHOD_DIRECT 0x0000a002L
  78. /* defines for known file formats */
  79. #define MCI_DGV_FF_AVSS 0x00004000L
  80. #define MCI_DGV_FF_AVI 0x00004001L
  81. #define MCI_DGV_FF_DIB 0x00004002L
  82. #define MCI_DGV_FF_RDIB 0x00004003L
  83. #define MCI_DGV_FF_JPEG 0x00004004L
  84. #define MCI_DGV_FF_RJPEG 0x00004005L
  85. #define MCI_DGV_FF_JFIF 0x00004006L
  86. #define MCI_DGV_FF_MPEG 0x00004007L
  87. /* values for dwItem field of MCI_CAPABILITY_PARMS structure */
  88. #define MCI_DGV_GETDEVCAPS_CAN_LOCK 0x00004000L
  89. #define MCI_DGV_GETDEVCAPS_CAN_STRETCH 0x00004001L
  90. #define MCI_DGV_GETDEVCAPS_CAN_FREEZE 0x00004002L
  91. #define MCI_DGV_GETDEVCAPS_MAX_WINDOWS 0x00004003L
  92. #define MCI_DGV_GETDEVCAPS_CAN_REVERSE 0x00004004L
  93. #define MCI_DGV_GETDEVCAPS_HAS_STILL 0x00004005L
  94. #define MCI_DGV_GETDEVCAPS_PALETTES 0x00004006L
  95. #define MCI_DGV_GETDEVCAPS_CAN_STR_IN 0x00004008L
  96. #define MCI_DGV_GETDEVCAPS_CAN_TEST 0x00004009L
  97. #define MCI_DGV_GETDEVCAPS_MAXIMUM_RATE 0x0000400aL
  98. #define MCI_DGV_GETDEVCAPS_MINIMUM_RATE 0x0000400bL
  99. /* flags for dwFlags parameter of MCI_CAPTURE command message */
  100. #define MCI_DGV_CAPTURE_AS 0x00010000L
  101. #define MCI_DGV_CAPTURE_AT 0x00020000L
  102. /* flags for dwFlags parameter of MCI_COPY command message */
  103. #define MCI_DGV_COPY_AT 0x00010000L
  104. #define MCI_DGV_COPY_AUDIO_STREAM 0x00020000L
  105. #define MCI_DGV_COPY_VIDEO_STREAM 0x00040000L
  106. /* flags for dwFlags parameter of MCI_CUE command message */
  107. #define MCI_DGV_CUE_INPUT 0x00010000L
  108. #define MCI_DGV_CUE_OUTPUT 0x00020000L
  109. #define MCI_DGV_CUE_NOSHOW 0x00040000L
  110. /* flags for dwFlags parameter of MCI_CUT command message */
  111. #define MCI_DGV_CUT_AT 0x00010000L
  112. #define MCI_DGV_CUT_AUDIO_STREAM 0x00020000L
  113. #define MCI_DGV_CUT_VIDEO_STREAM 0x00040000L
  114. /* flags for dwFlags parameter of MCI_DELETE command message */
  115. #define MCI_DGV_DELETE_AT 0x00010000L
  116. #define MCI_DGV_DELETE_AUDIO_STREAM 0x00020000L
  117. #define MCI_DGV_DELETE_VIDEO_STREAM 0x00040000L
  118. /* flags for dwFlags parameter of MCI_FREEZE command message */
  119. #define MCI_DGV_FREEZE_AT 0x00010000L
  120. #define MCI_DGV_FREEZE_OUTSIDE 0x00020000L
  121. /* flags for dwFlags parameter of MCI_INFO command message */
  122. #define MCI_DGV_INFO_TEXT 0x00010000L
  123. #define MCI_DGV_INFO_ITEM 0X00020000L
  124. /* values for dwItem field of MCI_DGV_INFO_PARMS structure */
  125. #define MCI_INFO_VERSION 0x00000400L
  126. #define MCI_DGV_INFO_USAGE 0x00004000L
  127. #define MCI_DGV_INFO_AUDIO_QUALITY 0x00004001L
  128. #define MCI_DGV_INFO_STILL_QUALITY 0x00004002L
  129. #define MCI_DGV_INFO_VIDEO_QUALITY 0x00004003L
  130. #define MCI_DGV_INFO_AUDIO_ALG 0x00004004L
  131. #define MCI_DGV_INFO_STILL_ALG 0x00004005L
  132. #define MCI_DGV_INFO_VIDEO_ALG 0x00004006L
  133. /* flags for dwFlags parameter of MCI_LIST command message */
  134. #define MCI_DGV_LIST_ITEM 0x00010000L
  135. #define MCI_DGV_LIST_COUNT 0x00020000L
  136. #define MCI_DGV_LIST_NUMBER 0x00040000L
  137. #define MCI_DGV_LIST_ALG 0x00080000L
  138. /* values for dwItem field of MCI_DGV_LIST_PARMS structure */
  139. #define MCI_DGV_LIST_AUDIO_ALG 0x00004000L
  140. #define MCI_DGV_LIST_AUDIO_QUALITY 0x00004001L
  141. #define MCI_DGV_LIST_AUDIO_STREAM 0x00004002L
  142. #define MCI_DGV_LIST_STILL_ALG 0x00004003L
  143. #define MCI_DGV_LIST_STILL_QUALITY 0x00004004L
  144. #define MCI_DGV_LIST_VIDEO_ALG 0x00004005L
  145. #define MCI_DGV_LIST_VIDEO_QUALITY 0x00004006L
  146. #define MCI_DGV_LIST_VIDEO_STREAM 0x00004007L
  147. #define MCI_DGV_LIST_VIDEO_SOURCE 0x00004008L
  148. /* flags for dwFlags parameter of MCI_MONITOR command message */
  149. #define MCI_DGV_MONITOR_METHOD 0x00010000L
  150. #define MCI_DGV_MONITOR_SOURCE 0x00020000L
  151. /* values for dwSource parameter of the MCI_DGV_MONITOR_PARMS struture */
  152. #define MCI_DGV_MONITOR_INPUT 0x00004000L
  153. #define MCI_DGV_MONITOR_FILE 0x00004001L
  154. /* flags for dwFlags parameter of MCI_OPEN command message */
  155. #define MCI_DGV_OPEN_WS 0x00010000L
  156. #define MCI_DGV_OPEN_PARENT 0x00020000L
  157. #define MCI_DGV_OPEN_NOSTATIC 0x00040000L
  158. #define MCI_DGV_OPEN_16BIT 0x00080000L
  159. #define MCI_DGV_OPEN_32BIT 0x00100000L
  160. /* flags for dwFlags parameter of MCI_PASTE command message */
  161. #define MCI_DGV_PASTE_AT 0x00010000L
  162. #define MCI_DGV_PASTE_AUDIO_STREAM 0x00020000L
  163. #define MCI_DGV_PASTE_VIDEO_STREAM 0x00040000L
  164. #define MCI_DGV_PASTE_INSERT 0x00080000L
  165. #define MCI_DGV_PASTE_OVERWRITE 0x00100000L
  166. /* flags for dwFlags parameter of MCI_PLAY command message */
  167. #define MCI_DGV_PLAY_REPEAT 0x00010000L
  168. #define MCI_DGV_PLAY_REVERSE 0x00020000L
  169. /* flags for dwFlags parameter of MCI_PUT command message */
  170. #define MCI_DGV_RECT 0x00010000L
  171. #define MCI_DGV_PUT_SOURCE 0x00020000L
  172. #define MCI_DGV_PUT_DESTINATION 0x00040000L
  173. #define MCI_DGV_PUT_FRAME 0x00080000L
  174. #define MCI_DGV_PUT_VIDEO 0x00100000L
  175. #define MCI_DGV_PUT_WINDOW 0x00200000L
  176. #define MCI_DGV_PUT_CLIENT 0x00400000L
  177. /* flags for dwFlags parameter of MCI_QUALITY command message */
  178. #define MCI_QUALITY_ITEM 0x00010000L
  179. #define MCI_QUALITY_NAME 0x00020000L
  180. #define MCI_QUALITY_ALG 0x00040000L
  181. #define MCI_QUALITY_DIALOG 0x00080000L
  182. #define MCI_QUALITY_HANDLE 0x00100000L
  183. /* values for dwItem field of MCI_QUALITY_PARMS structure */
  184. #define MCI_QUALITY_ITEM_AUDIO 0x00004000L
  185. #define MCI_QUALITY_ITEM_STILL 0x00004001L
  186. #define MCI_QUALITY_ITEM_VIDEO 0x00004002L
  187. /* flags for dwFlags parameter of MCI_REALIZE command message */
  188. #define MCI_DGV_REALIZE_NORM 0x00010000L
  189. #define MCI_DGV_REALIZE_BKGD 0x00020000L
  190. /* flags for dwFlags parameter of MCI_RECORD command message */
  191. #define MCI_DGV_RECORD_HOLD 0x00020000L
  192. #define MCI_DGV_RECORD_AUDIO_STREAM 0x00040000L
  193. #define MCI_DGV_RECORD_VIDEO_STREAM 0x00080000L
  194. /* flags for dwFlags parameters of MCI_RESERVE command message */
  195. #define MCI_DGV_RESERVE_IN 0x00010000L
  196. #define MCI_DGV_RESERVE_SIZE 0x00020000L
  197. /* flags for dwFlags parameter of MCI_RESTORE command message */
  198. #define MCI_DGV_RESTORE_FROM 0x00010000L
  199. #define MCI_DGV_RESTORE_AT 0x00020000L
  200. /* flags for dwFlags parameters of MCI_SAVE command message */
  201. #define MCI_DGV_SAVE_ABORT 0x00020000L
  202. #define MCI_DGV_SAVE_KEEPRESERVE 0x00040000L
  203. /* flags for dwFlags parameters of MCI_SET command message */
  204. #define MCI_DGV_SET_SEEK_EXACTLY 0x00010000L
  205. #define MCI_DGV_SET_SPEED 0x00020000L
  206. #define MCI_DGV_SET_STILL 0x00040000L
  207. #define MCI_DGV_SET_FILEFORMAT 0x00080000L
  208. /* flags for the dwFlags parameter of MCI_SETAUDIO command message */
  209. #define MCI_DGV_SETAUDIO_OVER 0x00010000L
  210. #define MCI_DGV_SETAUDIO_CLOCKTIME 0x00020000L
  211. #define MCI_DGV_SETAUDIO_ALG 0x00040000L
  212. #define MCI_DGV_SETAUDIO_QUALITY 0x00080000L
  213. #define MCI_DGV_SETAUDIO_RECORD 0x00100000L
  214. #define MCI_DGV_SETAUDIO_LEFT 0x00200000L
  215. #define MCI_DGV_SETAUDIO_RIGHT 0x00400000L
  216. #define MCI_DGV_SETAUDIO_ITEM 0x00800000L
  217. #define MCI_DGV_SETAUDIO_VALUE 0x01000000L
  218. #define MCI_DGV_SETAUDIO_INPUT 0x02000000L
  219. #define MCI_DGV_SETAUDIO_OUTPUT 0x04000000L
  220. /* values for the dwItem parameter of MCI_DGV_SETAUDIO_PARMS */
  221. #define MCI_DGV_SETAUDIO_TREBLE 0x00004000L
  222. #define MCI_DGV_SETAUDIO_BASS 0x00004001L
  223. #define MCI_DGV_SETAUDIO_VOLUME 0x00004002L
  224. #define MCI_DGV_SETAUDIO_STREAM 0x00004003L
  225. #define MCI_DGV_SETAUDIO_SOURCE 0x00004004L
  226. #define MCI_DGV_SETAUDIO_SAMPLESPERSEC 0x00004005L
  227. #define MCI_DGV_SETAUDIO_AVGBYTESPERSEC 0x00004006L
  228. #define MCI_DGV_SETAUDIO_BLOCKALIGN 0x00004007L
  229. #define MCI_DGV_SETAUDIO_BITSPERSAMPLE 0x00004008L
  230. /* values for the dwValue parameter of MCI_DGV_SETAUDIO_PARMS
  231. used with MCI_DGV_SETAUDIO_SOURCE */
  232. #define MCI_DGV_SETAUDIO_SOURCE_STEREO 0x00000000L
  233. #define MCI_DGV_SETAUDIO_SOURCE_LEFT 0x00000001L
  234. #define MCI_DGV_SETAUDIO_SOURCE_RIGHT 0x00000002L
  235. #define MCI_DGV_SETAUDIO_SOURCE_AVERAGE 0x00004000L
  236. /* flags for the dwFlags parameter of MCI_SETVIDEO command */
  237. #define MCI_DGV_SETVIDEO_QUALITY 0x00010000L
  238. #define MCI_DGV_SETVIDEO_ALG 0x00020000L
  239. #define MCI_DGV_SETVIDEO_CLOCKTIME 0x00040000L
  240. #define MCI_DGV_SETVIDEO_SRC_NUMBER 0x00080000L
  241. #define MCI_DGV_SETVIDEO_ITEM 0x00100000L
  242. #define MCI_DGV_SETVIDEO_OVER 0x00200000L
  243. #define MCI_DGV_SETVIDEO_RECORD 0x00400000L
  244. #define MCI_DGV_SETVIDEO_STILL 0x00800000L
  245. #define MCI_DGV_SETVIDEO_VALUE 0x01000000L
  246. #define MCI_DGV_SETVIDEO_INPUT 0x02000000L
  247. #define MCI_DGV_SETVIDEO_OUTPUT 0x04000000L
  248. /* values for the dwTo field of MCI_SETVIDEO_PARMS
  249. used with MCI_DGV_SETVIDEO_SOURCE */
  250. #define MCI_DGV_SETVIDEO_SRC_NTSC 0x00004000L
  251. #define MCI_DGV_SETVIDEO_SRC_RGB 0x00004001L
  252. #define MCI_DGV_SETVIDEO_SRC_SVIDEO 0x00004002L
  253. #define MCI_DGV_SETVIDEO_SRC_PAL 0x00004003L
  254. #define MCI_DGV_SETVIDEO_SRC_SECAM 0x00004004L
  255. #define MCI_DGV_SETVIDEO_SRC_GENERIC 0x00004005L
  256. /* values for the dwItem field of MCI_SETVIDEO_PARMS */
  257. #define MCI_DGV_SETVIDEO_BRIGHTNESS 0x00004000L
  258. #define MCI_DGV_SETVIDEO_COLOR 0x00004001L
  259. #define MCI_DGV_SETVIDEO_CONTRAST 0x00004002L
  260. #define MCI_DGV_SETVIDEO_TINT 0x00004003L
  261. #define MCI_DGV_SETVIDEO_SHARPNESS 0x00004004L
  262. #define MCI_DGV_SETVIDEO_GAMMA 0x00004005L
  263. #define MCI_DGV_SETVIDEO_STREAM 0x00004006L
  264. #define MCI_DGV_SETVIDEO_PALHANDLE 0x00004007L
  265. #define MCI_DGV_SETVIDEO_FRAME_RATE 0x00004008L
  266. #define MCI_DGV_SETVIDEO_SOURCE 0x00004009L
  267. #define MCI_DGV_SETVIDEO_KEY_INDEX 0x0000400aL
  268. #define MCI_DGV_SETVIDEO_KEY_COLOR 0x0000400bL
  269. #define MCI_DGV_SETVIDEO_BITSPERPEL 0x0000400cL
  270. /* flags for the dwFlags parameter of MCI_SIGNAL */
  271. #define MCI_DGV_SIGNAL_AT 0x00010000L
  272. #define MCI_DGV_SIGNAL_EVERY 0x00020000L
  273. #define MCI_DGV_SIGNAL_USERVAL 0x00040000L
  274. #define MCI_DGV_SIGNAL_CANCEL 0x00080000L
  275. #define MCI_DGV_SIGNAL_POSITION 0x00100000L
  276. /* The following is the function digitalvideo drivers must use
  277. * to signal when a frame marked by the SIGNAL command has been rendered:
  278. *
  279. * SEND_DGVSIGNAL(dwFlags, dwCallback, hDriver, wDeviceID, dwUser, dwPos )
  280. *
  281. * The following is a description of the parameters:
  282. *
  283. * dwFlags - the dwFlags parameter passed when the signal was set
  284. * dwCallback - the dwCallback value from the MCI_DGV_SIGNAL_PARMS struct
  285. * used to set the signal
  286. * hDriver - the handle assigned to the driver by MMSYSTEM when the
  287. * device was opened
  288. * wDeviceID - the device ID
  289. * dwUser - the dwUserParm value from the MCI_DGV_SIGNAL_PARMS struct
  290. * used to set the signal
  291. * dwPos - the position at which the signal was sent, in the current
  292. * time format.
  293. *
  294. * The window indicated by the handle in the dwCallback field is notified
  295. * by means of a Windows message with the following form:
  296. *
  297. * msg = MM_MCISIGNAL
  298. * wParam = wDeviceID of the sending driver
  299. * lParam = the uservalue specified or the position the signal was sent
  300. * at; the latter if the MCI_DGV_SIGNAL_POSITION flag was set
  301. * in the dwFlags parameter when the signal was created.
  302. */
  303. #define SEND_DGVSIGNAL(dwFlags, dwCallback, hDriver, wDeviceID, dwUser, dwPos ) \
  304. DriverCallback( (dwCallback), DCB_WINDOW, (HANDLE)(wDeviceID), MM_MCISIGNAL,\
  305. hDriver, ((dwFlags) & MCI_DGV_SIGNAL_POSITION) ? (dwPos):(dwUser),\
  306. ((dwFlags) & MCI_DGV_SIGNAL_POSITION) ? (dwUser):(dwPos))
  307. /* flags for the dwFlags parameter of MCI_STATUS command */
  308. #define MCI_DGV_STATUS_NOMINAL 0x00020000L
  309. #define MCI_DGV_STATUS_REFERENCE 0x00040000L
  310. #define MCI_DGV_STATUS_LEFT 0x00080000L
  311. #define MCI_DGV_STATUS_RIGHT 0x00100000L
  312. #define MCI_DGV_STATUS_DISKSPACE 0x00200000L
  313. #define MCI_DGV_STATUS_INPUT 0x00400000L
  314. #define MCI_DGV_STATUS_OUTPUT 0x00800000L
  315. #define MCI_DGV_STATUS_RECORD 0x01000000L
  316. /* values for dwItem field of MCI_STATUS_PARMS structure */
  317. #define MCI_DGV_STATUS_AUDIO_INPUT 0x00004000L
  318. #define MCI_DGV_STATUS_HWND 0x00004001L
  319. #define MCI_DGV_STATUS_SPEED 0x00004003L
  320. #define MCI_DGV_STATUS_HPAL 0x00004004L
  321. #define MCI_DGV_STATUS_BRIGHTNESS 0x00004005L
  322. #define MCI_DGV_STATUS_COLOR 0x00004006L
  323. #define MCI_DGV_STATUS_CONTRAST 0x00004007L
  324. #define MCI_DGV_STATUS_FILEFORMAT 0x00004008L
  325. #define MCI_DGV_STATUS_AUDIO_SOURCE 0x00004009L
  326. #define MCI_DGV_STATUS_GAMMA 0x0000400aL
  327. #define MCI_DGV_STATUS_MONITOR 0x0000400bL
  328. #define MCI_DGV_STATUS_MONITOR_METHOD 0x0000400cL
  329. #define MCI_DGV_STATUS_FRAME_RATE 0x0000400eL
  330. #define MCI_DGV_STATUS_BASS 0x0000400fL
  331. #define MCI_DGV_STATUS_SIZE 0x00004010L
  332. #define MCI_DGV_STATUS_SEEK_EXACTLY 0x00004011L
  333. #define MCI_DGV_STATUS_SHARPNESS 0x00004012L
  334. #define MCI_DGV_STATUS_SMPTE 0x00004013L
  335. #define MCI_DGV_STATUS_AUDIO 0x00004014L
  336. #define MCI_DGV_STATUS_TINT 0x00004015L
  337. #define MCI_DGV_STATUS_TREBLE 0x00004016L
  338. #define MCI_DGV_STATUS_UNSAVED 0x00004017L
  339. #define MCI_DGV_STATUS_VIDEO 0x00004018L
  340. #define MCI_DGV_STATUS_VOLUME 0x00004019L
  341. #define MCI_DGV_STATUS_AUDIO_RECORD 0x0000401aL
  342. #define MCI_DGV_STATUS_VIDEO_SOURCE 0x0000401bL
  343. #define MCI_DGV_STATUS_VIDEO_RECORD 0x0000401cL
  344. #define MCI_DGV_STATUS_STILL_FILEFORMAT 0x0000401dL
  345. #define MCI_DGV_STATUS_VIDEO_SRC_NUM 0x0000401eL
  346. #define MCI_DGV_STATUS_FILE_MODE 0x0000401fL
  347. #define MCI_DGV_STATUS_FILE_COMPLETION 0x00004020L
  348. #define MCI_DGV_STATUS_WINDOW_VISIBLE 0x00004021L
  349. #define MCI_DGV_STATUS_WINDOW_MINIMIZED 0x00004022L
  350. #define MCI_DGV_STATUS_WINDOW_MAXIMIZED 0x00004023L
  351. #define MCI_DGV_STATUS_KEY_INDEX 0x00004024L
  352. #define MCI_DGV_STATUS_KEY_COLOR 0x00004025L
  353. #define MCI_DGV_STATUS_PAUSE_MODE 0x00004026L
  354. #define MCI_DGV_STATUS_SAMPLESPERSEC 0x00004027L
  355. #define MCI_DGV_STATUS_AVGBYTESPERSEC 0x00004028L
  356. #define MCI_DGV_STATUS_BLOCKALIGN 0x00004029L
  357. #define MCI_DGV_STATUS_BITSPERSAMPLE 0x0000402aL
  358. #define MCI_DGV_STATUS_BITSPERPEL 0x0000402bL
  359. #define MCI_DGV_STATUS_FORWARD 0x0000402cL
  360. #define MCI_DGV_STATUS_AUDIO_STREAM 0x0000402dL
  361. #define MCI_DGV_STATUS_VIDEO_STREAM 0x0000402eL
  362. /* flags for dwFlags parameter of MCI_STEP command message */
  363. #define MCI_DGV_STEP_REVERSE 0x00010000L
  364. #define MCI_DGV_STEP_FRAMES 0x00020000L
  365. /* flags for dwFlags parameter of MCI_STOP command message */
  366. #define MCI_DGV_STOP_HOLD 0x00010000L
  367. /* flags for dwFlags parameter of MCI_UPDATE command message */
  368. #define MCI_DGV_UPDATE_HDC 0x00020000L
  369. #define MCI_DGV_UPDATE_PAINT 0x00040000L
  370. /* flags for dwFlags parameter of MCI_WHERE command message */
  371. #define MCI_DGV_WHERE_SOURCE 0x00020000L
  372. #define MCI_DGV_WHERE_DESTINATION 0x00040000L
  373. #define MCI_DGV_WHERE_FRAME 0x00080000L
  374. #define MCI_DGV_WHERE_VIDEO 0x00100000L
  375. #define MCI_DGV_WHERE_WINDOW 0x00200000L
  376. #define MCI_DGV_WHERE_MAX 0x00400000L
  377. /* flags for dwFlags parameter of MCI_WINDOW command message */
  378. #define MCI_DGV_WINDOW_HWND 0x00010000L
  379. #define MCI_DGV_WINDOW_STATE 0x00040000L
  380. #define MCI_DGV_WINDOW_TEXT 0x00080000L
  381. /* flags for hWnd parameter of MCI_DGV_WINDOW_PARMS parameter block */
  382. #define MCI_DGV_WINDOW_DEFAULT 0x00000000L
  383. /* parameter block for MCI_WHERE, MCI_PUT, MCI_FREEZE, MCI_UNFREEZE cmds */
  384. typedef struct {
  385. DWORD_PTR dwCallback;
  386. #ifdef MCI_USE_OFFEXT
  387. POINT ptOffset;
  388. POINT ptExtent;
  389. #else
  390. RECT rc;
  391. #endif
  392. } MCI_DGV_RECT_PARMS;
  393. typedef MCI_DGV_RECT_PARMS FAR * LPMCI_DGV_RECT_PARMS;
  394. /* parameter block for MCI_CAPTURE command message */
  395. typedef struct {
  396. DWORD_PTR dwCallback;
  397. LPTSTR% lpstrFileName;
  398. #ifdef MCI_USE_OFFEXT
  399. POINT ptOffset;
  400. POINT ptExtent;
  401. #else
  402. RECT rc;
  403. #endif
  404. } MCI_DGV_CAPTURE_PARMS%;
  405. typedef MCI_DGV_CAPTURE_PARMS% FAR * LPMCI_DGV_CAPTURE_PARMS%;
  406. /* parameter block for MCI_CLOSE command message */
  407. typedef MCI_GENERIC_PARMS MCI_CLOSE_PARMS;
  408. typedef MCI_CLOSE_PARMS FAR * LPMCI_CLOSE_PARMS;
  409. /* parameter block for MCI_COPY command message */
  410. typedef struct {
  411. DWORD_PTR dwCallback;
  412. DWORD dwFrom;
  413. DWORD dwTo;
  414. #ifdef MCI_USE_OFFEXT
  415. POINT ptOffset;
  416. POINT ptExtent;
  417. #else
  418. RECT rc;
  419. #endif
  420. DWORD dwAudioStream;
  421. DWORD dwVideoStream;
  422. } MCI_DGV_COPY_PARMS;
  423. typedef MCI_DGV_COPY_PARMS FAR * LPMCI_DGV_COPY_PARMS;
  424. /* parameter block for MCI_CUE command message */
  425. typedef struct {
  426. DWORD_PTR dwCallback;
  427. DWORD dwTo;
  428. } MCI_DGV_CUE_PARMS;
  429. typedef MCI_DGV_CUE_PARMS FAR * LPMCI_DGV_CUE_PARMS;
  430. /* parameter block for MCI_CUT command message */
  431. typedef struct {
  432. DWORD_PTR dwCallback;
  433. DWORD dwFrom;
  434. DWORD dwTo;
  435. #ifdef MCI_USE_OFFEXT
  436. POINT ptOffset;
  437. POINT ptExtent;
  438. #else
  439. RECT rc;
  440. #endif
  441. DWORD dwAudioStream;
  442. DWORD dwVideoStream;
  443. } MCI_DGV_CUT_PARMS;
  444. typedef MCI_DGV_CUT_PARMS FAR * LPMCI_DGV_CUT_PARMS;
  445. /* parameter block for MCI_DELETE command message */
  446. typedef struct {
  447. DWORD_PTR dwCallback;
  448. DWORD dwFrom;
  449. DWORD dwTo;
  450. #ifdef MCI_USE_OFFEXT
  451. POINT ptOffset;
  452. POINT ptExtent;
  453. #else
  454. RECT rc;
  455. #endif
  456. DWORD dwAudioStream;
  457. DWORD dwVideoStream;
  458. } MCI_DGV_DELETE_PARMS;
  459. typedef MCI_DGV_DELETE_PARMS FAR * LPMCI_DGV_DELETE_PARMS;
  460. /* parameter block for MCI_FREEZE command message */
  461. typedef MCI_DGV_RECT_PARMS MCI_DGV_FREEZE_PARMS;
  462. typedef MCI_DGV_FREEZE_PARMS FAR * LPMCI_DGV_FREEZE_PARMS;
  463. /* parameter block for MCI_INFO command message */
  464. typedef struct {
  465. DWORD_PTR dwCallback;
  466. LPTSTR% lpstrReturn;
  467. DWORD dwRetSize;
  468. DWORD dwItem;
  469. } MCI_DGV_INFO_PARMS%;
  470. //? already typedef'd? //typedef MCI_INFO_PARMS FAR * LPMCI_INFO_PARMS;
  471. typedef MCI_DGV_INFO_PARMS% FAR * LPMCI_DGV_INFO_PARMS%;
  472. /* parameter block for MCI_LIST command message */
  473. typedef struct {
  474. DWORD_PTR dwCallback;
  475. LPTSTR% lpstrReturn;
  476. DWORD dwLength;
  477. DWORD dwNumber;
  478. DWORD dwItem;
  479. LPTSTR% lpstrAlgorithm;
  480. } MCI_DGV_LIST_PARMS%;
  481. typedef MCI_DGV_LIST_PARMS% FAR * LPMCI_DGV_LIST_PARMS%;
  482. /* parameter block for MCI_LOAD command message */
  483. typedef MCI_LOAD_PARMS MCI_DGV_LOAD_PARMS;
  484. typedef MCI_DGV_LOAD_PARMS FAR * LPMCI_DGV_LOAD_PARMS;
  485. /* parameter block for MCI_MONITOR command message */
  486. typedef struct {
  487. DWORD_PTR dwCallback;
  488. DWORD dwSource;
  489. DWORD dwMethod;
  490. } MCI_DGV_MONITOR_PARMS;
  491. typedef MCI_DGV_MONITOR_PARMS FAR * LPMCI_DGV_MONITOR_PARMS;
  492. /* parameter block for MCI_OPEN command message */
  493. typedef struct {
  494. DWORD_PTR dwCallback;
  495. UINT wDeviceID;
  496. #ifndef _WIN32
  497. WORD wReserved0;
  498. #endif
  499. LPTSTR% lpstrDeviceType;
  500. LPTSTR% lpstrElementName;
  501. LPTSTR% lpstrAlias;
  502. DWORD dwStyle;
  503. HWND hWndParent;
  504. #ifndef _WIN32
  505. WORD wReserved1;
  506. #endif
  507. } MCI_DGV_OPEN_PARMS%;
  508. typedef MCI_DGV_OPEN_PARMS% FAR * LPMCI_DGV_OPEN_PARMS%;
  509. /* parameter block for MCI_PAUSE command message */
  510. typedef MCI_GENERIC_PARMS MCI_DGV_PAUSE_PARMS;
  511. typedef MCI_DGV_PAUSE_PARMS FAR * LPMCI_DGV_PAUSE_PARMS;
  512. /* parameter block for MCI_PASTE command message */
  513. typedef struct {
  514. DWORD_PTR dwCallback;
  515. DWORD dwTo;
  516. #ifdef MCI_USE_OFFEXT
  517. POINT ptOffset;
  518. POINT ptExtent;
  519. #else
  520. RECT rc;
  521. #endif
  522. DWORD dwAudioStream;
  523. DWORD dwVideoStream;
  524. } MCI_DGV_PASTE_PARMS;
  525. typedef MCI_DGV_PASTE_PARMS FAR * LPMCI_DGV_PASTE_PARMS;
  526. /* parameter block for MCI_PLAY command message */
  527. typedef MCI_PLAY_PARMS MCI_DGV_PLAY_PARMS;
  528. typedef MCI_DGV_PLAY_PARMS FAR * LPMCI_DGV_PLAY_PARMS;
  529. /* parameter block for MCI_PUT command message */
  530. typedef MCI_DGV_RECT_PARMS MCI_DGV_PUT_PARMS;
  531. typedef MCI_DGV_PUT_PARMS FAR * LPMCI_DGV_PUT_PARMS;
  532. /* parameter block for MCI_QUALITY command message */
  533. typedef struct {
  534. DWORD_PTR dwCallback;
  535. DWORD dwItem;
  536. LPTSTR% lpstrName;
  537. DWORD lpstrAlgorithm;
  538. DWORD dwHandle;
  539. } MCI_DGV_QUALITY_PARMS%;
  540. typedef MCI_DGV_QUALITY_PARMS% FAR * LPMCI_DGV_QUALITY_PARMS%;
  541. /* parameter block for MCI_REALIZE command message */
  542. typedef MCI_GENERIC_PARMS MCI_REALIZE_PARMS;
  543. typedef MCI_REALIZE_PARMS FAR * LPMCI_REALIZE_PARMS;
  544. /* parameter block for MCI_RECORD command message */
  545. typedef struct {
  546. DWORD_PTR dwCallback;
  547. DWORD dwFrom;
  548. DWORD dwTo;
  549. #ifdef MCI_USE_OFFEXT
  550. POINT ptOffset;
  551. POINT ptExtent;
  552. #else
  553. RECT rc;
  554. #endif
  555. DWORD dwAudioStream;
  556. DWORD dwVideoStream;
  557. } MCI_DGV_RECORD_PARMS;
  558. typedef MCI_DGV_RECORD_PARMS FAR * LPMCI_DGV_RECORD_PARMS;
  559. /* parameter block for MCI_RESERVE command message */
  560. typedef struct {
  561. DWORD_PTR dwCallback;
  562. LPTSTR% lpstrPath;
  563. DWORD dwSize;
  564. } MCI_DGV_RESERVE_PARMS%;
  565. typedef MCI_DGV_RESERVE_PARMS% FAR * LPMCI_DGV_RESERVE_PARMS%;
  566. /* parameter block for MCI_RESTORE command message */
  567. typedef struct {
  568. DWORD_PTR dwCallback;
  569. LPTSTR% lpstrFileName;
  570. #ifdef MCI_USE_OFFEXT
  571. POINT ptOffset;
  572. POINT ptExtent;
  573. #else
  574. RECT rc;
  575. #endif
  576. } MCI_DGV_RESTORE_PARMS%;
  577. typedef MCI_DGV_RESTORE_PARMS% FAR * LPMCI_DGV_RESTORE_PARMS%;
  578. /* parameter block for MCI_RESUME command message */
  579. typedef MCI_GENERIC_PARMS MCI_DGV_RESUME_PARMS;
  580. typedef MCI_DGV_RESUME_PARMS FAR * LPMCI_DGV_RESUME_PARMS;
  581. /* parameter block for MCI_SAVE command message */
  582. typedef struct {
  583. DWORD_PTR dwCallback;
  584. LPTSTR% lpstrFileName;
  585. RECT rc;
  586. } MCI_DGV_SAVE_PARMS%;
  587. typedef MCI_DGV_SAVE_PARMS% FAR * LPMCI_DGV_SAVE_PARMS%;
  588. /* parameter block for MCI_SET command message */
  589. typedef struct {
  590. DWORD_PTR dwCallback;
  591. DWORD dwTimeFormat;
  592. DWORD dwAudio;
  593. DWORD dwFileFormat;
  594. DWORD dwSpeed;
  595. } MCI_DGV_SET_PARMS;
  596. typedef MCI_DGV_SET_PARMS FAR * LPMCI_DGV_SET_PARMS;
  597. /* parameter block for MCI_SETAUDIO command message */
  598. typedef struct {
  599. DWORD_PTR dwCallback;
  600. DWORD dwItem;
  601. DWORD dwValue;
  602. DWORD dwOver;
  603. LPTSTR% lpstrAlgorithm;
  604. LPTSTR% lpstrQuality;
  605. } MCI_DGV_SETAUDIO_PARMS%;
  606. typedef MCI_DGV_SETAUDIO_PARMS% FAR * LPMCI_DGV_SETAUDIO_PARMS%;
  607. /* parameter block for MCI_SIGNAL command message */
  608. typedef struct {
  609. DWORD_PTR dwCallback;
  610. DWORD dwPosition;
  611. DWORD dwPeriod;
  612. DWORD dwUserParm;
  613. } MCI_DGV_SIGNAL_PARMS;
  614. typedef MCI_DGV_SIGNAL_PARMS FAR * LPMCI_DGV_SIGNAL_PARMS;
  615. /* parameter block for MCI_SETVIDEO command message */
  616. typedef struct {
  617. DWORD_PTR dwCallback;
  618. DWORD dwItem;
  619. DWORD dwValue;
  620. DWORD dwOver;
  621. LPTSTR% lpstrAlgorithm;
  622. LPTSTR% lpstrQuality;
  623. DWORD dwSourceNumber;
  624. } MCI_DGV_SETVIDEO_PARMS%;
  625. typedef MCI_DGV_SETVIDEO_PARMS% FAR * LPMCI_DGV_SETVIDEO_PARMS%;
  626. /* parameter block for MCI_STATUS command message */
  627. typedef struct {
  628. DWORD_PTR dwCallback;
  629. DWORD_PTR dwReturn;
  630. DWORD dwItem;
  631. DWORD dwTrack;
  632. LPTSTR% lpstrDrive;
  633. DWORD dwReference;
  634. } MCI_DGV_STATUS_PARMS%;
  635. typedef MCI_DGV_STATUS_PARMS% FAR * LPMCI_DGV_STATUS_PARMS%;
  636. /* parameter block for MCI_STEP command message */
  637. typedef struct {
  638. DWORD_PTR dwCallback;
  639. DWORD dwFrames;
  640. } MCI_DGV_STEP_PARMS;
  641. typedef MCI_DGV_STEP_PARMS FAR *LPMCI_DGV_STEP_PARMS;
  642. /* parameter block for MCI_STOP command message */
  643. typedef MCI_GENERIC_PARMS MCI_DGV_STOP_PARMS;
  644. typedef MCI_DGV_STOP_PARMS FAR * LPMCI_DGV_STOP_PARMS;
  645. /* parameter block for MCI_UNFREEZE command message */
  646. typedef MCI_DGV_RECT_PARMS MCI_DGV_UNFREEZE_PARMS;
  647. typedef MCI_DGV_UNFREEZE_PARMS FAR * LPMCI_DGV_UNFREEZE_PARMS;
  648. /* parameter block for MCI_UPDATE command message */
  649. typedef struct {
  650. DWORD_PTR dwCallback;
  651. #ifdef MCI_USE_OFFEXT
  652. POINT ptOffset;
  653. POINT ptExtent;
  654. #else
  655. RECT rc;
  656. #endif
  657. HDC hDC;
  658. #ifndef _WIN32
  659. WORD wReserved0;
  660. #endif
  661. } MCI_DGV_UPDATE_PARMS;
  662. typedef MCI_DGV_UPDATE_PARMS FAR * LPMCI_DGV_UPDATE_PARMS;
  663. /* parameter block for MCI_WHERE command message */
  664. typedef MCI_DGV_RECT_PARMS MCI_DGV_WHERE_PARMS;
  665. typedef MCI_DGV_WHERE_PARMS FAR * LPMCI_DGV_WHERE_PARMS;
  666. /* parameter block for MCI_WINDOW command message */
  667. typedef struct {
  668. DWORD_PTR dwCallback;
  669. HWND hWnd;
  670. #ifndef _WIN32
  671. WORD wReserved1;
  672. #endif
  673. UINT nCmdShow;
  674. #ifndef _WIN32
  675. WORD wReserved2;
  676. #endif
  677. LPTSTR% lpstrText;
  678. } MCI_DGV_WINDOW_PARMS%;
  679. typedef MCI_DGV_WINDOW_PARMS% FAR * LPMCI_DGV_WINDOW_PARMS%;
  680. #ifdef __cplusplus
  681. } /* End of extern "C" { */
  682. #endif /* __cplusplus */
  683. #ifdef _WIN32
  684. #include <poppack.h>
  685. #else
  686. #ifndef RC_INVOKED
  687. #pragma pack()
  688. #endif
  689. #endif
  690. #endif /* !_INC_DIGITALV */