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.

632 lines
41 KiB

  1. #include <windows.h>
  2. #include <mmsystem.h>
  3. #include <mmddk.h>
  4. #include <aviver.h>
  5. #include "graphic.h"
  6. #include "mciavi.rcv"
  7. #include "cnfgdlg.h"
  8. #include "cnfgdlg.dlg"
  9. STRINGTABLE
  10. begin
  11. MCIAVI_PRODUCTNAME, L"Video"
  12. MCIAVI_VERSION, MMSYSVERSIONSTR
  13. MCIERR_AVI_OLDAVIFORMAT, L"This AVI file is of an obsolete format."
  14. MCIERR_AVI_NOTINTERLEAVED, L"This AVI file is not interleaved."
  15. MCIERR_AVI_NODISPDIB, L"256 color VGA mode not available."
  16. MCIERR_AVI_CANTPLAYFULLSCREEN, L"This AVI file cannot be played in full screen mode."
  17. MCIERR_AVI_TOOBIGFORVGA, L"This AVI file is too big to be played in the selected VGA mode."
  18. MCIERR_AVI_NOCOMPRESSOR L"Can't locate installable compressor needed to play this file."
  19. MCIERR_AVI_DISPLAYERROR L"Unknown error while attempting to display video."
  20. MCIERR_AVI_AUDIOERROR L"Unknown error while attempting to play audio."
  21. MCIERR_AVI_BADPALETTE L"Unable to switch to new palette."
  22. #ifdef EXPIRE
  23. MCIERR_AVI_EXPIRED L"Your pre-release copy of Microsoft Video for Windows has expired."
  24. #endif
  25. end
  26. mciavi RCDATA
  27. BEGIN
  28. L"play\0", MCI_PLAY, 0, MCI_COMMAND_HEAD,
  29. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  30. L"wait\0", MCI_WAIT, MCI_FLAG,
  31. L"test\0", MCI_TEST, MCI_FLAG,
  32. L"from\0", MCI_FROM, MCI_INTEGER,
  33. L"to\0", MCI_TO, MCI_INTEGER,
  34. L"repeat\0", MCI_DGV_PLAY_REPEAT, MCI_FLAG,
  35. L"reverse\0", MCI_DGV_PLAY_REVERSE, MCI_FLAG,
  36. L"window\0", MCI_MCIAVI_PLAY_WINDOW, MCI_FLAG,
  37. L"fullscreen\0", MCI_MCIAVI_PLAY_FULLSCREEN, MCI_FLAG,
  38. L"\0", 0L, MCI_END_COMMAND,
  39. /* Digital Video commands, except play... */
  40. L"capability\0", MCI_GETDEVCAPS, 0, MCI_COMMAND_HEAD,
  41. L"\0", MCI_INTEGER, 0, MCI_RETURN,
  42. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  43. L"wait\0", MCI_WAIT, MCI_FLAG,
  44. L"test\0", MCI_TEST, MCI_FLAG,
  45. L"\0", MCI_GETDEVCAPS_ITEM, MCI_CONSTANT
  46. L"can record\0", MCI_GETDEVCAPS_CAN_RECORD, MCI_INTEGER,
  47. L"has audio\0", MCI_GETDEVCAPS_HAS_AUDIO, MCI_INTEGER,
  48. L"has video\0", MCI_GETDEVCAPS_HAS_VIDEO, MCI_INTEGER,
  49. L"uses files\0", MCI_GETDEVCAPS_USES_FILES, MCI_INTEGER,
  50. L"compound device\0", MCI_GETDEVCAPS_COMPOUND_DEVICE, MCI_INTEGER,
  51. L"device type\0", MCI_GETDEVCAPS_DEVICE_TYPE, MCI_INTEGER,
  52. L"can eject\0", MCI_GETDEVCAPS_CAN_EJECT, MCI_INTEGER,
  53. L"can play\0", MCI_GETDEVCAPS_CAN_PLAY, MCI_INTEGER,
  54. L"can save\0", MCI_GETDEVCAPS_CAN_SAVE, MCI_INTEGER,
  55. L"can lock\0", MCI_DGV_GETDEVCAPS_CAN_LOCK, MCI_INTEGER,
  56. L"can reverse\0", MCI_DGV_GETDEVCAPS_CAN_REVERSE, MCI_INTEGER,
  57. L"can stretch input\0", MCI_DGV_GETDEVCAPS_CAN_STR_IN, MCI_INTEGER,
  58. L"can stretch\0", MCI_DGV_GETDEVCAPS_CAN_STRETCH, MCI_INTEGER,
  59. L"can test\0", MCI_DGV_GETDEVCAPS_CAN_TEST, MCI_INTEGER,
  60. L"has still\0", MCI_DGV_GETDEVCAPS_HAS_STILL, MCI_INTEGER,
  61. L"can freeze\0", MCI_DGV_GETDEVCAPS_CAN_FREEZE, MCI_INTEGER,
  62. L"uses palettes\0", MCI_DGV_GETDEVCAPS_PALETTES, MCI_INTEGER,
  63. L"windows\0", MCI_DGV_GETDEVCAPS_MAX_WINDOWS, MCI_INTEGER,
  64. L"maximum play rate\0", MCI_DGV_GETDEVCAPS_MAXIMUM_RATE,MCI_INTEGER,
  65. L"minimum play rate\0", MCI_DGV_GETDEVCAPS_MINIMUM_RATE,MCI_INTEGER,
  66. L"\0", 0L, MCI_END_CONSTANT,
  67. L"\0", 0L, MCI_END_COMMAND,
  68. L"capture\0", MCI_CAPTURE,0, MCI_COMMAND_HEAD,
  69. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  70. L"wait\0", MCI_WAIT, MCI_FLAG,
  71. L"test\0", MCI_TEST, MCI_FLAG,
  72. L"as\0", MCI_DGV_CAPTURE_AS, MCI_STRING,
  73. L"at\0", MCI_DGV_CAPTURE_AT, MCI_RECT,
  74. L"\0", 0L, MCI_END_COMMAND,
  75. L"close\0", MCI_CLOSE, 0, MCI_COMMAND_HEAD,
  76. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  77. L"wait\0", MCI_WAIT, MCI_FLAG ,
  78. L"\0", 0L, MCI_END_COMMAND,
  79. L"configure\0", MCI_CONFIGURE, 0, MCI_COMMAND_HEAD,
  80. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  81. L"wait\0", MCI_WAIT, MCI_FLAG ,
  82. L"\0", 0L, MCI_END_COMMAND,
  83. L"copy\0", MCI_COPY, 0, MCI_COMMAND_HEAD,
  84. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  85. L"wait\0", MCI_WAIT, MCI_FLAG,
  86. L"test\0", MCI_TEST, MCI_FLAG,
  87. L"from\0", MCI_FROM, MCI_INTEGER,
  88. L"to\0", MCI_TO, MCI_INTEGER,
  89. L"at\0", MCI_DGV_COPY_AT, MCI_RECT,
  90. L"audio stream\0", MCI_DGV_COPY_AUDIO_STREAM, MCI_INTEGER,
  91. L"video stream\0", MCI_DGV_COPY_VIDEO_STREAM, MCI_INTEGER,
  92. L"\0", 0L, MCI_END_COMMAND,
  93. L"cue\0", MCI_CUE, 0, MCI_COMMAND_HEAD,
  94. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  95. L"wait\0", MCI_WAIT, MCI_FLAG,
  96. L"test\0", MCI_TEST, MCI_FLAG,
  97. L"input\0", MCI_DGV_CUE_INPUT, MCI_FLAG,
  98. L"output\0", MCI_DGV_CUE_OUTPUT, MCI_FLAG,
  99. L"to\0", MCI_TO, MCI_INTEGER,
  100. L"noshow\0", MCI_DGV_CUE_NOSHOW, MCI_FLAG,
  101. L"\0", 0L, MCI_END_COMMAND,
  102. L"cut\0", MCI_CUT, 0, MCI_COMMAND_HEAD,
  103. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  104. L"wait\0", MCI_WAIT, MCI_FLAG,
  105. L"test\0", MCI_TEST, MCI_FLAG,
  106. L"from\0", MCI_FROM, MCI_INTEGER,
  107. L"to\0", MCI_TO, MCI_INTEGER,
  108. L"at\0", MCI_DGV_CUT_AT, MCI_RECT,
  109. L"audio stream\0", MCI_DGV_CUT_AUDIO_STREAM, MCI_INTEGER,
  110. L"video stream\0", MCI_DGV_CUT_VIDEO_STREAM, MCI_INTEGER,
  111. L"\0", 0L, MCI_END_COMMAND,
  112. L"delete\0", MCI_DELETE, 0, MCI_COMMAND_HEAD,
  113. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  114. L"wait\0", MCI_WAIT, MCI_FLAG,
  115. L"test\0", MCI_TEST, MCI_FLAG,
  116. L"from\0", MCI_FROM, MCI_INTEGER,
  117. L"to\0", MCI_TO, MCI_INTEGER,
  118. L"at\0", MCI_DGV_DELETE_AT, MCI_RECT,
  119. L"audio stream\0", MCI_DGV_DELETE_AUDIO_STREAM, MCI_INTEGER,
  120. L"video stream\0", MCI_DGV_DELETE_VIDEO_STREAM, MCI_INTEGER,
  121. L"\0", 0L, MCI_END_COMMAND,
  122. L"freeze\0", MCI_FREEZE, 0, MCI_COMMAND_HEAD,
  123. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  124. L"wait\0", MCI_WAIT, MCI_FLAG,
  125. L"test\0", MCI_TEST, MCI_FLAG,
  126. L"at\0", MCI_DGV_FREEZE_AT, MCI_RECT,
  127. L"outside\0", MCI_DGV_FREEZE_OUTSIDE, MCI_FLAG,
  128. L"\0", 0L, MCI_END_COMMAND,
  129. L"info\0", MCI_INFO, 0, MCI_COMMAND_HEAD,
  130. L"\0", MCI_STRING, 0, MCI_RETURN,
  131. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  132. L"wait\0", MCI_WAIT, MCI_FLAG,
  133. L"test\0", MCI_TEST, MCI_FLAG,
  134. L"file\0", MCI_INFO_FILE, MCI_FLAG,
  135. L"product\0", MCI_INFO_PRODUCT, MCI_FLAG,
  136. L"window text\0", MCI_DGV_INFO_TEXT, MCI_FLAG,
  137. L"usage\0", MCI_DGV_INFO_USAGE, MCI_FLAG,
  138. L"version\0", MCI_INFO_VERSION, MCI_FLAG,
  139. L"\0", MCI_DGV_INFO_ITEM, MCI_CONSTANT,
  140. L"audio algorithm\0", MCI_DGV_INFO_AUDIO_ALG, MCI_INTEGER,
  141. L"audio quality\0", MCI_DGV_INFO_AUDIO_QUALITY, MCI_INTEGER,
  142. L"still algorithm\0", MCI_DGV_INFO_STILL_ALG, MCI_INTEGER,
  143. L"still quality\0", MCI_DGV_INFO_STILL_QUALITY, MCI_INTEGER,
  144. L"video algorithm\0", MCI_DGV_INFO_VIDEO_ALG, MCI_INTEGER,
  145. L"video quality\0", MCI_DGV_INFO_VIDEO_QUALITY, MCI_INTEGER,
  146. L"\0", 0L, MCI_END_CONSTANT,
  147. L"\0", 0L, MCI_END_COMMAND,
  148. L"list\0", MCI_LIST, 0, MCI_COMMAND_HEAD,
  149. L"\0", MCI_STRING, 0, MCI_RETURN,
  150. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  151. L"wait\0", MCI_WAIT, MCI_FLAG,
  152. L"test\0", MCI_TEST, MCI_FLAG,
  153. L"count\0", MCI_DGV_LIST_COUNT, MCI_FLAG,
  154. L"number\0", MCI_DGV_LIST_NUMBER, MCI_INTEGER,
  155. L"\0", MCI_DGV_LIST_ITEM, MCI_CONSTANT
  156. L"audio algorithm\0", MCI_DGV_LIST_AUDIO_ALG, MCI_INTEGER,
  157. L"audio quality\0", MCI_DGV_LIST_AUDIO_QUALITY, MCI_INTEGER,
  158. L"audio stream\0", MCI_DGV_LIST_AUDIO_STREAM, MCI_INTEGER,
  159. L"still algorithm\0", MCI_DGV_LIST_STILL_ALG, MCI_INTEGER,
  160. L"still quality\0", MCI_DGV_LIST_STILL_QUALITY, MCI_INTEGER,
  161. L"video algorithm\0", MCI_DGV_LIST_VIDEO_ALG, MCI_INTEGER,
  162. L"video quality\0", MCI_DGV_LIST_VIDEO_QUALITY, MCI_INTEGER,
  163. L"video source\0", MCI_DGV_LIST_VIDEO_SOURCE, MCI_INTEGER,
  164. L"video stream\0", MCI_DGV_LIST_VIDEO_STREAM, MCI_INTEGER,
  165. L"\0", 0L, MCI_END_CONSTANT,
  166. L"algorithm\0", MCI_DGV_LIST_ALG, MCI_STRING,
  167. L"\0", 0L, MCI_END_COMMAND,
  168. L"load\0", MCI_LOAD, 0, MCI_COMMAND_HEAD,
  169. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  170. L"wait\0", MCI_WAIT, MCI_FLAG,
  171. L"test\0", MCI_TEST, MCI_FLAG,
  172. L"\0", MCI_LOAD_FILE, MCI_STRING,
  173. L"\0", 0L, MCI_END_COMMAND,
  174. L"monitor\0", MCI_MONITOR,0, MCI_COMMAND_HEAD,
  175. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  176. L"wait\0", MCI_WAIT, MCI_FLAG,
  177. L"test\0", MCI_TEST, MCI_FLAG,
  178. L"\0", MCI_DGV_MONITOR_SOURCE, MCI_CONSTANT,
  179. L"input\0", MCI_DGV_MONITOR_INPUT, MCI_INTEGER,
  180. L"file\0", MCI_DGV_MONITOR_FILE, MCI_INTEGER,
  181. L"\0", 0L, MCI_END_CONSTANT,
  182. L"method\0", MCI_DGV_MONITOR_METHOD, MCI_CONSTANT,
  183. L"pre\0", MCI_DGV_METHOD_PRE, MCI_INTEGER,
  184. L"post\0", MCI_DGV_METHOD_POST, MCI_INTEGER,
  185. L"direct\0", MCI_DGV_METHOD_DIRECT, MCI_INTEGER,
  186. L"\0", 0L, MCI_END_CONSTANT,
  187. L"\0", 0L, MCI_END_COMMAND,
  188. L"open\0", MCI_OPEN, 0, MCI_COMMAND_HEAD,
  189. L"\0", MCI_INTEGER, 0, MCI_RETURN,
  190. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  191. L"wait\0", MCI_WAIT, MCI_FLAG,
  192. L"type\0", MCI_OPEN_TYPE, MCI_STRING,
  193. L"element\0", MCI_OPEN_ELEMENT, MCI_STRING,
  194. L"alias\0", MCI_OPEN_ALIAS, MCI_STRING,
  195. L"shareable\0", MCI_OPEN_SHAREABLE, MCI_FLAG,
  196. L"style\0", MCI_DGV_OPEN_WS, MCI_CONSTANT,
  197. L"overlapped\0", 0x00CF0000L/*WS_OVERLAPPEDWINDOW*/, MCI_INTEGER,
  198. L"popup\0", 0x80880000L/*WS_POPUPWINDOW*/, MCI_INTEGER,
  199. L"child\0", WS_CHILD, MCI_INTEGER,
  200. L"\0", 0L, MCI_END_CONSTANT,
  201. L"parent\0", MCI_DGV_OPEN_PARENT, MCI_HWND,
  202. L"nostatic\0", MCI_DGV_OPEN_NOSTATIC, MCI_FLAG,
  203. L"\0", 0L, MCI_END_COMMAND,
  204. L"paste\0", MCI_PASTE, 0, MCI_COMMAND_HEAD,
  205. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  206. L"wait\0", MCI_WAIT, MCI_FLAG,
  207. L"test\0", MCI_TEST, MCI_FLAG,
  208. L"to\0", MCI_TO, MCI_INTEGER,
  209. L"at\0", MCI_DGV_PASTE_AT, MCI_RECT,
  210. L"insert\0", MCI_DGV_PASTE_INSERT, MCI_FLAG,
  211. L"overwrite\0", MCI_DGV_PASTE_OVERWRITE, MCI_FLAG,
  212. L"audio stream\0", MCI_DGV_PASTE_AUDIO_STREAM, MCI_INTEGER,
  213. L"video stream\0", MCI_DGV_PASTE_VIDEO_STREAM, MCI_INTEGER,
  214. L"\0", 0L, MCI_END_COMMAND,
  215. L"pause\0", MCI_PAUSE, 0, MCI_COMMAND_HEAD,
  216. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  217. L"wait\0", MCI_WAIT, MCI_FLAG ,
  218. L"test\0", MCI_TEST, MCI_FLAG,
  219. L"\0", 0L, MCI_END_COMMAND,
  220. L"put\0", MCI_PUT, 0, MCI_COMMAND_HEAD,
  221. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  222. L"wait\0", MCI_WAIT, MCI_FLAG,
  223. L"test\0", MCI_TEST, MCI_FLAG,
  224. L"at\0", MCI_DGV_RECT, MCI_RECT,
  225. L"source\0", MCI_DGV_PUT_SOURCE, MCI_FLAG,
  226. L"destination\0", MCI_DGV_PUT_DESTINATION, MCI_FLAG,
  227. L"frame\0", MCI_DGV_PUT_FRAME, MCI_FLAG,
  228. L"video\0", MCI_DGV_PUT_VIDEO, MCI_FLAG,
  229. L"window\0", MCI_DGV_PUT_WINDOW, MCI_FLAG,
  230. L"client\0", MCI_DGV_PUT_CLIENT, MCI_FLAG,
  231. L"\0", 0L, MCI_END_COMMAND,
  232. L"quality\0", MCI_QUALITY, 0, MCI_COMMAND_HEAD,
  233. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  234. L"wait\0", MCI_WAIT, MCI_FLAG,
  235. L"test\0", MCI_TEST, MCI_FLAG,
  236. L"\0", MCI_QUALITY_ITEM, MCI_CONSTANT,
  237. L"audio\0", MCI_QUALITY_ITEM_AUDIO, MCI_INTEGER,
  238. L"still\0", MCI_QUALITY_ITEM_STILL, MCI_INTEGER,
  239. L"video\0", MCI_QUALITY_ITEM_VIDEO, MCI_INTEGER,
  240. L"\0", 0L, MCI_END_CONSTANT,
  241. L"name\0", MCI_QUALITY_NAME, MCI_STRING,
  242. L"algorithm\0", MCI_QUALITY_ALG, MCI_STRING,
  243. L"dialog\0", MCI_QUALITY_DIALOG, MCI_FLAG,
  244. L"handle\0", MCI_QUALITY_HANDLE, MCI_INTEGER,
  245. L"\0", 0L, MCI_END_COMMAND,
  246. L"realize\0", MCI_REALIZE, 0, MCI_COMMAND_HEAD,
  247. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  248. L"wait\0", MCI_WAIT, MCI_FLAG,
  249. L"test\0", MCI_TEST, MCI_FLAG,
  250. L"normal\0", MCI_DGV_REALIZE_NORM, MCI_FLAG,
  251. L"background\0", MCI_DGV_REALIZE_BKGD, MCI_FLAG,
  252. L"\0", 0L, MCI_END_COMMAND,
  253. L"record\0", MCI_RECORD, 0, MCI_COMMAND_HEAD,
  254. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  255. L"wait\0", MCI_WAIT, MCI_FLAG,
  256. L"test\0", MCI_TEST, MCI_FLAG,
  257. L"from\0", MCI_FROM, MCI_INTEGER,
  258. L"to\0", MCI_TO, MCI_INTEGER,
  259. L"insert\0", MCI_RECORD_INSERT, MCI_FLAG,
  260. L"overwrite\0", MCI_RECORD_OVERWRITE, MCI_FLAG,
  261. L"at\0", MCI_DGV_RECT, MCI_RECT,
  262. L"hold\0", MCI_DGV_RECORD_HOLD, MCI_FLAG,
  263. L"audio stream\0", MCI_DGV_RECORD_AUDIO_STREAM, MCI_INTEGER,
  264. L"video stream\0", MCI_DGV_RECORD_VIDEO_STREAM, MCI_INTEGER,
  265. L"\0", 0L, MCI_END_COMMAND,
  266. L"reserve\0", MCI_RESERVE, 0, MCI_COMMAND_HEAD,
  267. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  268. L"wait\0", MCI_WAIT, MCI_FLAG,
  269. L"test\0", MCI_TEST, MCI_FLAG,
  270. L"in\0", MCI_DGV_RESERVE_IN, MCI_STRING,
  271. L"size\0", MCI_DGV_RESERVE_SIZE, MCI_INTEGER,
  272. L"\0", 0L, MCI_END_COMMAND,
  273. L"restore\0", MCI_RESTORE,0, MCI_COMMAND_HEAD,
  274. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  275. L"wait\0", MCI_WAIT, MCI_FLAG,
  276. L"test\0", MCI_TEST, MCI_FLAG,
  277. L"from\0", MCI_DGV_RESTORE_FROM, MCI_STRING,
  278. L"at\0", MCI_DGV_RESTORE_AT, MCI_RECT,
  279. L"\0", 0L, MCI_END_COMMAND,
  280. L"resume\0", MCI_RESUME, 0, MCI_COMMAND_HEAD,
  281. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  282. L"wait\0", MCI_WAIT, MCI_FLAG,
  283. L"test\0", MCI_TEST, MCI_FLAG,
  284. L"\0", 0L, MCI_END_COMMAND,
  285. L"save\0", MCI_SAVE, 0, MCI_COMMAND_HEAD,
  286. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  287. L"wait\0", MCI_WAIT, MCI_FLAG,
  288. L"test\0", MCI_TEST, MCI_FLAG,
  289. L"\0", MCI_SAVE_FILE, MCI_STRING,
  290. L"at\0", MCI_DGV_RECT, MCI_RECT,
  291. L"abort\0", MCI_DGV_SAVE_ABORT, MCI_FLAG,
  292. L"keepreserve\0", MCI_DGV_SAVE_KEEPRESERVE, MCI_FLAG,
  293. L"\0", 0L, MCI_END_COMMAND,
  294. L"seek\0", MCI_SEEK, 0, MCI_COMMAND_HEAD,
  295. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  296. L"wait\0", MCI_WAIT, MCI_FLAG ,
  297. L"test\0", MCI_TEST, MCI_FLAG,
  298. L"to start\0", MCI_SEEK_TO_START, MCI_FLAG,
  299. L"to end\0", MCI_SEEK_TO_END, MCI_FLAG,
  300. L"to\0", MCI_TO, MCI_INTEGER,
  301. L"\0", 0L, MCI_END_COMMAND,
  302. L"set\0", MCI_SET, 0, MCI_COMMAND_HEAD,
  303. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  304. L"wait\0", MCI_WAIT, MCI_FLAG,
  305. L"test\0", MCI_TEST, MCI_FLAG,
  306. L"time format\0", MCI_SET_TIME_FORMAT, MCI_CONSTANT,
  307. L"frames\0", MCI_FORMAT_FRAMES,0, MCI_INTEGER,
  308. L"milliseconds\0", MCI_FORMAT_MILLISECONDS, 0, MCI_INTEGER,
  309. L"ms\0", MCI_FORMAT_MILLISECONDS, 0, MCI_INTEGER,
  310. L"\0", 0L, MCI_END_CONSTANT,
  311. L"door open\0", MCI_SET_DOOR_OPEN, MCI_FLAG,
  312. L"door closed\0", MCI_SET_DOOR_CLOSED, MCI_FLAG,
  313. L"audio\0", MCI_SET_AUDIO, MCI_CONSTANT,
  314. L"all\0", MCI_SET_AUDIO_ALL, MCI_INTEGER,
  315. L"left\0", MCI_SET_AUDIO_LEFT, MCI_INTEGER,
  316. L"right\0", MCI_SET_AUDIO_RIGHT, MCI_INTEGER,
  317. L"\0", 0L, MCI_END_CONSTANT,
  318. L"video\0", MCI_SET_VIDEO, MCI_FLAG,
  319. L"seek exactly\0", MCI_DGV_SET_SEEK_EXACTLY, MCI_FLAG,
  320. L"file format\0", MCI_DGV_SET_FILEFORMAT, MCI_CONSTANT,
  321. L"avss\0", MCI_DGV_FF_AVSS, MCI_INTEGER,
  322. L"avi\0", MCI_DGV_FF_AVI, MCI_INTEGER,
  323. L"dib\0", MCI_DGV_FF_DIB, MCI_INTEGER,
  324. L"rdib\0", MCI_DGV_FF_RDIB, MCI_INTEGER,
  325. L"jpeg\0", MCI_DGV_FF_JPEG, MCI_INTEGER,
  326. L"rjpeg\0", MCI_DGV_FF_RJPEG, MCI_INTEGER,
  327. L"jfif\0", MCI_DGV_FF_JFIF, MCI_INTEGER,
  328. L"mpeg\0", MCI_DGV_FF_MPEG, MCI_INTEGER,
  329. L"\0", 0L, MCI_END_CONSTANT,
  330. L"still\0", MCI_DGV_SET_STILL, MCI_FLAG,
  331. L"on\0", MCI_SET_ON, MCI_FLAG,
  332. L"off\0", MCI_SET_OFF, MCI_FLAG,
  333. L"speed\0", MCI_DGV_SET_SPEED, MCI_INTEGER,
  334. L"\0", 0L, MCI_END_COMMAND,
  335. L"setaudio\0", MCI_SETAUDIO,0, MCI_COMMAND_HEAD,
  336. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  337. L"wait\0", MCI_WAIT, MCI_FLAG ,
  338. L"test\0", MCI_TEST, MCI_FLAG,
  339. L"\0", MCI_DGV_SETAUDIO_ITEM, MCI_CONSTANT,
  340. L"bass\0", MCI_DGV_SETAUDIO_BASS, MCI_INTEGER,
  341. L"treble\0", MCI_DGV_SETAUDIO_TREBLE, MCI_INTEGER,
  342. L"volume\0", MCI_DGV_SETAUDIO_VOLUME, MCI_INTEGER,
  343. L"stream\0", MCI_DGV_SETAUDIO_STREAM, MCI_INTEGER,
  344. L"source\0", MCI_DGV_SETAUDIO_SOURCE, MCI_INTEGER,
  345. L"samplespersec\0", MCI_DGV_SETAUDIO_SAMPLESPERSEC, MCI_INTEGER,
  346. L"bytespersec\0", MCI_DGV_SETAUDIO_AVGBYTESPERSEC,MCI_INTEGER,
  347. L"alignment\0", MCI_DGV_SETAUDIO_BLOCKALIGN, MCI_INTEGER,
  348. L"bitspersample\0", MCI_DGV_SETAUDIO_BITSPERSAMPLE, MCI_INTEGER,
  349. L"\0", 0L, MCI_END_CONSTANT,
  350. L"to\0", MCI_DGV_SETAUDIO_VALUE, MCI_CONSTANT
  351. L"left\0", MCI_DGV_SETAUDIO_SOURCE_LEFT, MCI_INTEGER,
  352. L"right\0", MCI_DGV_SETAUDIO_SOURCE_RIGHT, MCI_INTEGER,
  353. L"average\0", MCI_DGV_SETAUDIO_SOURCE_AVERAGE,MCI_INTEGER,
  354. L"stereo\0", MCI_DGV_SETAUDIO_SOURCE_STEREO, MCI_INTEGER,
  355. L"\0", 0L, MCI_END_CONSTANT
  356. L"over\0", MCI_DGV_SETAUDIO_OVER, MCI_INTEGER,
  357. L"algorithm\0", MCI_DGV_SETAUDIO_ALG, MCI_STRING,
  358. L"quality\0", MCI_DGV_SETAUDIO_QUALITY, MCI_STRING,
  359. L"record\0", MCI_DGV_SETAUDIO_RECORD, MCI_FLAG,
  360. L"left\0", MCI_DGV_SETAUDIO_LEFT, MCI_FLAG,
  361. L"clocktime\0", MCI_DGV_SETAUDIO_CLOCKTIME, MCI_FLAG,
  362. L"right\0", MCI_DGV_SETAUDIO_RIGHT, MCI_FLAG,
  363. L"on\0", MCI_SET_ON, MCI_FLAG,
  364. L"off\0", MCI_SET_OFF, MCI_FLAG,
  365. L"input\0", MCI_DGV_SETAUDIO_INPUT MCI_FLAG,
  366. L"output\0", MCI_DGV_SETAUDIO_OUTPUT, MCI_FLAG,
  367. L"\0", 0L, MCI_END_COMMAND,
  368. L"setvideo\0", MCI_SETVIDEO,0, MCI_COMMAND_HEAD,
  369. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  370. L"wait\0", MCI_WAIT, MCI_FLAG ,
  371. L"test\0", MCI_TEST, MCI_FLAG,
  372. L"\0", MCI_DGV_SETVIDEO_ITEM, MCI_CONSTANT,
  373. L"frame rate\0", MCI_DGV_SETVIDEO_FRAME_RATE, MCI_INTEGER,
  374. L"brightness\0", MCI_DGV_SETVIDEO_BRIGHTNESS, MCI_INTEGER,
  375. L"color\0", MCI_DGV_SETVIDEO_COLOR, MCI_INTEGER,
  376. L"contrast\0", MCI_DGV_SETVIDEO_CONTRAST, MCI_INTEGER,
  377. L"tint\0", MCI_DGV_SETVIDEO_TINT, MCI_INTEGER,
  378. L"sharpness\0", MCI_DGV_SETVIDEO_SHARPNESS, MCI_INTEGER,
  379. L"gamma\0", MCI_DGV_SETVIDEO_GAMMA, MCI_INTEGER,
  380. L"palette handle\0", MCI_DGV_SETVIDEO_PALHANDLE, MCI_HPAL,
  381. L"stream\0", MCI_DGV_SETVIDEO_STREAM, MCI_INTEGER,
  382. L"source\0", MCI_DGV_SETVIDEO_SOURCE, MCI_INTEGER,
  383. L"key index\0", MCI_DGV_SETVIDEO_KEY_INDEX MCI_INTEGER,
  384. L"key color\0", MCI_DGV_SETVIDEO_KEY_COLOR MCI_INTEGER,
  385. L"\0", 0L, MCI_END_CONSTANT,
  386. L"to\0", MCI_DGV_SETVIDEO_VALUE, MCI_CONSTANT,
  387. L"halftone\0", MCI_AVI_SETVIDEO_PALETTE_HALFTONE, MCI_INTEGER,
  388. L"ntsc\0", MCI_DGV_SETVIDEO_SRC_NTSC, MCI_INTEGER,
  389. L"rgb\0", MCI_DGV_SETVIDEO_SRC_RGB, MCI_INTEGER,
  390. L"svideo\0", MCI_DGV_SETVIDEO_SRC_SVIDEO, MCI_INTEGER,
  391. L"pal\0", MCI_DGV_SETVIDEO_SRC_PAL, MCI_HPAL,
  392. L"secam\0", MCI_DGV_SETVIDEO_SRC_SECAM, MCI_INTEGER,
  393. L"\0", 0L, MCI_END_CONSTANT,
  394. L"over\0", MCI_DGV_SETVIDEO_OVER, MCI_INTEGER,
  395. L"algorithm\0", MCI_DGV_SETVIDEO_ALG, MCI_STRING,
  396. L"number\0", MCI_DGV_SETVIDEO_SRC_NUMBER, MCI_INTEGER,
  397. L"quality\0", MCI_DGV_SETVIDEO_QUALITY, MCI_STRING,
  398. L"record\0", MCI_DGV_SETVIDEO_RECORD, MCI_FLAG,
  399. L"still\0", MCI_DGV_SETVIDEO_STILL, MCI_FLAG,
  400. L"clocktime\0", MCI_DGV_SETVIDEO_CLOCKTIME, MCI_FLAG,
  401. L"on\0", MCI_SET_ON, MCI_FLAG,
  402. L"off\0", MCI_SET_OFF, MCI_FLAG,
  403. L"input\0", MCI_DGV_SETVIDEO_INPUT, MCI_FLAG,
  404. L"output\0", MCI_DGV_SETVIDEO_OUTPUT, MCI_FLAG,
  405. L"\0", 0L, MCI_END_COMMAND,
  406. L"signal\0", MCI_SIGNAL,0, MCI_COMMAND_HEAD,
  407. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  408. L"wait\0", MCI_WAIT, MCI_FLAG ,
  409. L"test\0", MCI_TEST, MCI_FLAG,
  410. L"at\0", MCI_DGV_SIGNAL_AT, MCI_INTEGER,
  411. L"every\0", MCI_DGV_SIGNAL_EVERY, MCI_INTEGER,
  412. L"uservalue\0", MCI_DGV_SIGNAL_USERVAL, MCI_INTEGER,
  413. L"cancel\0", MCI_DGV_SIGNAL_CANCEL, MCI_FLAG,
  414. L"return position\0", MCI_DGV_SIGNAL_POSITION, MCI_FLAG,
  415. L"\0", 0L, MCI_END_COMMAND,
  416. L"status\0", MCI_STATUS, 0, MCI_COMMAND_HEAD,
  417. L"\0", MCI_INTEGER, 0, MCI_RETURN,
  418. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  419. L"wait\0", MCI_WAIT, MCI_FLAG ,
  420. L"test\0", MCI_TEST, MCI_FLAG,
  421. L"\0", MCI_STATUS_ITEM, MCI_CONSTANT,
  422. L"alignment\0", MCI_DGV_STATUS_BLOCKALIGN, MCI_INTEGER,
  423. L"audio input\0", MCI_DGV_STATUS_AUDIO_INPUT, MCI_INTEGER,
  424. L"audio record\0", MCI_DGV_STATUS_AUDIO_RECORD, MCI_INTEGER,
  425. L"audio source\0", MCI_DGV_STATUS_AUDIO_SOURCE, MCI_INTEGER,
  426. L"audio stream\0", MCI_DGV_STATUS_AUDIO_STREAM, MCI_INTEGER,
  427. L"audio\0", MCI_DGV_STATUS_AUDIO, MCI_INTEGER,
  428. L"bass\0", MCI_DGV_STATUS_BASS, MCI_INTEGER,
  429. L"bitsperpel\0", MCI_DGV_STATUS_BITSPERPEL, MCI_INTEGER,
  430. L"bitspersample\0", MCI_DGV_STATUS_BITSPERSAMPLE, MCI_INTEGER,
  431. L"brightness\0", MCI_DGV_STATUS_BRIGHTNESS, MCI_INTEGER,
  432. L"bytespersec\0", MCI_DGV_STATUS_AVGBYTESPERSEC, MCI_INTEGER,
  433. L"color\0", MCI_DGV_STATUS_COLOR, MCI_INTEGER,
  434. L"contrast\0", MCI_DGV_STATUS_CONTRAST, MCI_INTEGER,
  435. L"current track\0", MCI_STATUS_CURRENT_TRACK, MCI_INTEGER,
  436. L"file format\0", MCI_DGV_STATUS_FILEFORMAT, MCI_INTEGER,
  437. L"still file format\0", MCI_DGV_STATUS_STILL_FILEFORMAT,MCI_INTEGER,
  438. L"file mode\0", MCI_DGV_STATUS_FILE_MODE, MCI_INTEGER,
  439. L"file completion\0", MCI_DGV_STATUS_FILE_COMPLETION, MCI_INTEGER,
  440. L"forward\0", MCI_DGV_STATUS_FORWARD, MCI_INTEGER,
  441. L"gamma\0", MCI_DGV_STATUS_GAMMA, MCI_INTEGER,
  442. L"key index\0", MCI_DGV_STATUS_KEY_INDEX, MCI_INTEGER,
  443. L"key color\0", MCI_DGV_STATUS_KEY_COLOR, MCI_INTEGER,
  444. L"length\0", MCI_STATUS_LENGTH, MCI_INTEGER,
  445. L"media present\0", MCI_STATUS_MEDIA_PRESENT, MCI_INTEGER,
  446. L"mode\0", MCI_STATUS_MODE, MCI_INTEGER,
  447. L"monitor method\0", MCI_DGV_STATUS_MONITOR_METHOD, MCI_INTEGER,
  448. L"monitor\0", MCI_DGV_STATUS_MONITOR, MCI_INTEGER,
  449. L"number of tracks\0", MCI_STATUS_NUMBER_OF_TRACKS, MCI_INTEGER,
  450. L"palette handle\0", MCI_DGV_STATUS_HPAL, MCI_HPAL,
  451. L"pause mode\0", MCI_DGV_STATUS_PAUSE_MODE, MCI_INTEGER,
  452. L"position\0", MCI_STATUS_POSITION, MCI_INTEGER,
  453. L"ready\0", MCI_STATUS_READY, MCI_INTEGER,
  454. L"frame rate\0", MCI_DGV_STATUS_FRAME_RATE, MCI_INTEGER,
  455. L"reserved size\0", MCI_DGV_STATUS_SIZE, MCI_INTEGER,
  456. L"samplespersec\0", MCI_DGV_STATUS_SAMPLESPERSEC, MCI_INTEGER,
  457. L"seek exactly\0", MCI_DGV_STATUS_SEEK_EXACTLY, MCI_INTEGER,
  458. L"sharpness\0", MCI_DGV_STATUS_SHARPNESS, MCI_INTEGER,
  459. L"smpte\0", MCI_DGV_STATUS_SMPTE, MCI_INTEGER,
  460. L"speed\0", MCI_DGV_STATUS_SPEED, MCI_INTEGER,
  461. L"time format\0", MCI_STATUS_TIME_FORMAT, MCI_INTEGER,
  462. L"tint\0", MCI_DGV_STATUS_TINT, MCI_INTEGER,
  463. L"treble\0", MCI_DGV_STATUS_TREBLE, MCI_INTEGER,
  464. L"unsaved\0", MCI_DGV_STATUS_UNSAVED, MCI_INTEGER,
  465. L"video\0", MCI_DGV_STATUS_VIDEO, MCI_INTEGER,
  466. L"video source\0", MCI_DGV_STATUS_VIDEO_SOURCE, MCI_INTEGER,
  467. L"video source number\0",MCI_DGV_STATUS_VIDEO_SRC_NUM, MCI_INTEGER,
  468. L"video record\0", MCI_DGV_STATUS_VIDEO_RECORD, MCI_INTEGER,
  469. L"volume\0", MCI_DGV_STATUS_VOLUME, MCI_INTEGER,
  470. L"window handle\0", MCI_DGV_STATUS_HWND, MCI_HWND,
  471. L"window visible\0", MCI_DGV_STATUS_WINDOW_VISIBLE, MCI_INTEGER,
  472. L"window minimized\0", MCI_DGV_STATUS_WINDOW_MINIMIZED,MCI_INTEGER,
  473. L"window maximized\0", MCI_DGV_STATUS_WINDOW_MAXIMIZED,MCI_INTEGER,
  474. /*
  475. ** Debugging constants for AVI diagnostics
  476. */
  477. L"frames skipped\0", MCI_AVI_STATUS_FRAMES_SKIPPED, MCI_INTEGER
  478. L"play speed\0", MCI_AVI_STATUS_LAST_PLAY_SPEED, MCI_INTEGER
  479. L"audio breaks\0", MCI_AVI_STATUS_AUDIO_BREAKS, MCI_INTEGER
  480. /**/
  481. L"\0", 0L, MCI_END_CONSTANT,
  482. L"track\0", MCI_TRACK, MCI_INTEGER,
  483. L"start\0", MCI_STATUS_START, MCI_FLAG,
  484. L"left\0", MCI_DGV_STATUS_LEFT, MCI_FLAG,
  485. L"right\0", MCI_DGV_STATUS_RIGHT, MCI_FLAG,
  486. L"nominal\0", MCI_DGV_STATUS_NOMINAL, MCI_FLAG,
  487. L"record\0", MCI_DGV_STATUS_RECORD, MCI_FLAG
  488. L"input\0", MCI_DGV_STATUS_INPUT, MCI_FLAG,
  489. L"output\0", MCI_DGV_STATUS_OUTPUT, MCI_FLAG,
  490. L"disk space\0", MCI_DGV_STATUS_DISKSPACE, MCI_STRING,
  491. L"reference\0", MCI_DGV_STATUS_REFERENCE, MCI_INTEGER,
  492. L"\0", 0L, MCI_END_COMMAND,
  493. L"step\0", MCI_STEP, 0, MCI_COMMAND_HEAD,
  494. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  495. L"wait\0", MCI_WAIT, MCI_FLAG,
  496. L"test\0", MCI_TEST, MCI_FLAG,
  497. L"reverse\0", MCI_DGV_STEP_REVERSE, MCI_FLAG,
  498. L"by\0", MCI_DGV_STEP_FRAMES, MCI_INTEGER,
  499. L"\0", 0L, MCI_END_COMMAND,
  500. L"stop\0", MCI_STOP, 0, MCI_COMMAND_HEAD,
  501. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  502. L"wait\0", MCI_WAIT, MCI_FLAG,
  503. L"test\0", MCI_TEST, MCI_FLAG,
  504. L"hold\0", MCI_DGV_STOP_HOLD, MCI_FLAG,
  505. L"\0", 0L, MCI_END_COMMAND,
  506. L"undo\0", MCI_UNDO, 0, MCI_COMMAND_HEAD,
  507. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  508. L"wait\0", MCI_WAIT, MCI_FLAG,
  509. L"test\0", MCI_TEST, MCI_FLAG,
  510. L"\0", 0L, MCI_END_COMMAND,
  511. L"unfreeze\0", MCI_UNFREEZE, 0, MCI_COMMAND_HEAD,
  512. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  513. L"wait\0", MCI_WAIT, MCI_FLAG,
  514. L"test\0", MCI_TEST, MCI_FLAG,
  515. L"at\0", MCI_DGV_RECT, MCI_RECT,
  516. L"\0", 0L, MCI_END_COMMAND,
  517. L"update\0", MCI_UPDATE, 0, MCI_COMMAND_HEAD,
  518. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  519. L"wait\0", MCI_WAIT, MCI_FLAG,
  520. L"test\0", MCI_TEST, MCI_FLAG,
  521. L"at\0", MCI_DGV_RECT, MCI_RECT,
  522. L"hdc\0", MCI_DGV_UPDATE_HDC, MCI_HDC,
  523. L"paint\0", MCI_DGV_UPDATE_PAINT, MCI_FLAG,
  524. L"\0", 0L, MCI_END_COMMAND,
  525. L"where\0", MCI_WHERE, 0, MCI_COMMAND_HEAD,
  526. L"\0", MCI_RECT, 0, MCI_RETURN,
  527. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  528. L"wait\0", MCI_WAIT, MCI_FLAG,
  529. L"test\0", MCI_TEST, MCI_FLAG,
  530. L"source\0", MCI_DGV_WHERE_SOURCE, MCI_FLAG,
  531. L"destination\0", MCI_DGV_WHERE_DESTINATION, MCI_FLAG,
  532. L"frame\0", MCI_DGV_WHERE_FRAME, MCI_FLAG,
  533. L"video\0", MCI_DGV_WHERE_VIDEO, MCI_FLAG,
  534. L"window\0", MCI_DGV_WHERE_WINDOW, MCI_FLAG,
  535. L"max\0", MCI_DGV_WHERE_MAX, MCI_FLAG,
  536. L"\0", 0L, MCI_END_COMMAND,
  537. L"window\0", MCI_WINDOW, 0, MCI_COMMAND_HEAD,
  538. L"notify\0", MCI_NOTIFY, MCI_FLAG,
  539. L"wait\0", MCI_WAIT, MCI_FLAG,
  540. L"test\0", MCI_TEST, MCI_FLAG,
  541. L"handle\0", MCI_DGV_WINDOW_HWND, MCI_CONSTANT,
  542. L"default\0", 0L, MCI_HWND,
  543. L"\0", 0L, MCI_END_CONSTANT,
  544. L"state\0", MCI_DGV_WINDOW_STATE, MCI_CONSTANT,
  545. L"hide\0", SW_HIDE, 0, MCI_INTEGER,
  546. L"minimize\0", SW_MINIMIZE, 0, MCI_INTEGER,
  547. L"restore\0", SW_RESTORE, 0, MCI_INTEGER,
  548. L"show maximized\0", SW_SHOWMAXIMIZED, 0, MCI_INTEGER,
  549. L"show min noactive\0", SW_SHOWMINNOACTIVE, 0, MCI_INTEGER,
  550. L"show minimized\0", SW_SHOWMINIMIZED, 0, MCI_INTEGER,
  551. L"show na\0", SW_SHOWNA, 0, MCI_INTEGER,
  552. L"show noactivate\0", SW_SHOWNOACTIVATE, 0, MCI_INTEGER,
  553. L"show normal\0", SW_SHOWNORMAL, 0, MCI_INTEGER,
  554. L"show\0", SW_SHOW, 0, MCI_INTEGER,
  555. L"no action\0", SW_SHOWNA, 0, MCI_INTEGER,
  556. L"minimized\0", SW_SHOWMINIMIZED, 0, MCI_INTEGER,
  557. L"\0", 0L, MCI_END_CONSTANT,
  558. L"text\0", MCI_DGV_WINDOW_TEXT, MCI_STRING,
  559. L"\0", 0L, MCI_END_COMMAND,
  560. L"\0", 0L, MCI_END_COMMAND_LIST
  561. END
  562. STRINGTABLE
  563. begin
  564. MCIERR_DGV_IOERR, L"An I/O error occurred."
  565. MCIERR_DGV_WORKSPACE_EMPTY, L"The workspace is empty."
  566. MCIERR_DGV_DISK_FULL, L"The disk is full."
  567. MCIERR_DGV_DEVICE_MEMORY_FULL, L"The media device memory is full."
  568. MCIERR_DGV_DEVICE_LIMIT, L"A device limit was reached."
  569. MCIERR_DGV_BAD_CLIPBOARD_RANGE, L"Unusable clipboard range. Set 'seek exactly off' or specify reference frames."
  570. MCI_DGV_METHOD_PRE, L"pre"
  571. MCI_DGV_METHOD_POST, L"post"
  572. MCI_DGV_METHOD_DIRECT, L"direct"
  573. MCI_DGV_FF_AVSS, L"avss"
  574. MCI_DGV_FF_AVI, L"avi"
  575. MCI_DGV_FF_DIB, L"dib"
  576. MCI_DGV_FF_RDIB, L"rdib"
  577. MCI_DGV_FF_JPEG, L"jpeg"
  578. MCI_DGV_FF_RJPEG, L"rjpeg"
  579. MCI_DGV_FF_JFIF, L"jfif"
  580. MCI_DGV_FF_MPEG, L"mpeg"
  581. MCI_ON_S, L"on"
  582. MCI_OFF_S, L"off"
  583. MCI_DGV_INPUT_S, L"input"
  584. MCI_DGV_FILE_S, L"file"
  585. end