a979ed04161c30045bc66c3c6012a24832085130
[reactos.git] / reactos / include / psdk / mmsystem.h
1 /*
2 * Multimedia declarations
3 */
4
5 #ifndef _MMSYSTEM_H
6 #define _MMSYSTEM_H
7
8 #pragma pack(push,1)
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 #ifdef _MSC_VER
14 #pragma warning(push)
15 #pragma warning(disable:4201)
16 #endif
17
18 #define DRV_SUCCESS 0x0001
19 #define DRV_FAILURE 0x0000
20
21 #define WINMMAPI DECLSPEC_IMPORT
22 #define _loadds
23 #define _huge
24 #define MAXPNAMELEN 32
25 #define MAXERRORLENGTH 256
26 #define MAX_JOYSTICKOEMVXDNAME 260
27 #define _MMRESULT_
28 #define TIME_MS 1
29 #define TIME_SAMPLES 2
30 #define TIME_BYTES 4
31 #define TIME_SMPTE 8
32 #define TIME_MIDI 16
33 #define TIME_TICKS 32
34 #define MAKEFOURCC(c0,c1,c2,c3) ((DWORD)(BYTE)(c0)|((DWORD)(BYTE)(c1)<<8)|((DWORD)(BYTE)(c2)<<16)|((DWORD)(BYTE)(c3)<<24))
35 #ifndef mmioFOURCC
36 #define mmioFOURCC(c0,c1,c2,c3) MAKEFOURCC(c0,c1,c2,c3)
37 #endif
38
39 #define MM_MICROSOFT 1 /* Microsoft Corp. */
40 #define MM_CREATIVE 2 /* Creative labs */
41
42 #define MM_JOY1MOVE 0x3A0
43 #define MM_JOY2MOVE 0x3A1
44 #define MM_JOY1ZMOVE 0x3A2
45 #define MM_JOY2ZMOVE 0x3A3
46 #define MM_JOY1BUTTONDOWN 0x3B5
47 #define MM_JOY2BUTTONDOWN 0x3B6
48 #define MM_JOY1BUTTONUP 0x3B7
49 #define MM_JOY2BUTTONUP 0x3B8
50 #define MM_MCINOTIFY 0x3B9
51 #define MM_WOM_OPEN 0x3BB
52 #define MM_WOM_CLOSE 0x3BC
53 #define MM_WOM_DONE 0x3BD
54 #define MM_WIM_OPEN 0x3BE
55 #define MM_WIM_CLOSE 0x3BF
56 #define MM_WIM_DATA 0x3C0
57 #define MM_MIM_OPEN 0x3C1
58 #define MM_MIM_CLOSE 0x3C2
59 #define MM_MIM_DATA 0x3C3
60 #define MM_MIM_LONGDATA 0x3C4
61 #define MM_MIM_ERROR 0x3C5
62 #define MM_MIM_LONGERROR 0x3C6
63 #define MM_MOM_OPEN 0x3C7
64 #define MM_MOM_CLOSE 0x3C8
65 #define MM_MOM_DONE 0x3C9
66 #define MM_DRVM_OPEN 0x3D0
67 #define MM_DRVM_CLOSE 0x3D1
68 #define MM_DRVM_DATA 0x3D2
69 #define MM_DRVM_ERROR 0x3D3
70 #define MM_STREAM_OPEN 0x3D4
71 #define MM_STREAM_CLOSE 0x3D5
72 #define MM_STREAM_DONE 0x3D6
73 #define MM_STREAM_ERROR 0x3D7
74 #define MM_MOM_POSITIONCB 0x3CA
75 #define MM_MCISIGNAL 0x3CB
76 #define MM_MIM_MOREDATA 0x3CC
77 #define MM_MIXM_LINE_CHANGE 0x3D0
78 #define MM_MIXM_CONTROL_CHANGE 0x3D1
79 #define MMSYSERR_BASE 0
80 #define WAVERR_BASE 32
81 #define MIDIERR_BASE 64
82 #define TIMERR_BASE 96
83 #define JOYERR_BASE 160
84 #define MCIERR_BASE 256
85 #define MIXERR_BASE 1024
86 #define MCI_STRING_OFFSET 512
87 #define MCI_VD_OFFSET 1024
88 #define MCI_CD_OFFSET 1088
89 #define MCI_WAVE_OFFSET 1152
90 #define MCI_SEQ_OFFSET 1216
91 #define MMSYSERR_NOERROR 0
92 #define MMSYSERR_ERROR (MMSYSERR_BASE+1)
93 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE+2)
94 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE+3)
95 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE+4)
96 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE+5)
97 #define MMSYSERR_NODRIVER (MMSYSERR_BASE+6)
98 #define MMSYSERR_NOMEM (MMSYSERR_BASE+7)
99 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE+8)
100 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE+9)
101 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE+10)
102 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE+11)
103 #define MMSYSERR_HANDLEBUSY (MMSYSERR_BASE+12)
104 #define MMSYSERR_INVALIDALIAS (MMSYSERR_BASE+13)
105 #define MMSYSERR_BADDB (MMSYSERR_BASE+14)
106 #define MMSYSERR_KEYNOTFOUND (MMSYSERR_BASE + 15)
107 #define MMSYSERR_READERROR (MMSYSERR_BASE + 16)
108 #define MMSYSERR_WRITEERROR (MMSYSERR_BASE + 17)
109 #define MMSYSERR_DELETEERROR (MMSYSERR_BASE + 18)
110 #define MMSYSERR_VALNOTFOUND (MMSYSERR_BASE + 19)
111 #define MMSYSERR_NODRIVERCB (MMSYSERR_BASE + 20)
112 #define MMSYSERR_MOREDATA (MMSYSERR_BASE + 21)
113 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 21)
114 #define DRV_LOAD 1
115 #define DRV_ENABLE 2
116 #define DRV_OPEN 3
117 #define DRV_CLOSE 4
118 #define DRV_DISABLE 5
119 #define DRV_FREE 6
120 #define DRV_CONFIGURE 7
121 #define DRV_QUERYCONFIGURE 8
122 #define DRV_INSTALL 9
123 #define DRV_REMOVE 10
124 #define DRV_EXITSESSION 11
125 #define DRV_POWER 15
126 #define DRV_RESERVED 0x800
127 #define DRV_USER 0x4000
128 #define DRVCNF_CANCEL 0
129 #define DRVCNF_OK 1
130 #define DRVCNF_RESTART 2
131 #define DRV_CANCEL DRVCNF_CANCEL
132 #define DRV_OK DRVCNF_OK
133 #define DRV_RESTART DRVCNF_RESTART
134 #define DRV_MCI_FIRST DRV_RESERVED
135 #define DRV_MCI_LAST (DRV_RESERVED+0xFFF)
136 #ifdef _WINE
137 #define DRV_SUCCESS 0x0001
138 #define DRV_FAILURE 0x0000
139 #define DRV_EXITAPPLICATION 0x000C
140 #endif
141 #define CALLBACK_TYPEMASK 0x70000
142 #define CALLBACK_NULL 0
143 #define CALLBACK_WINDOW 0x10000
144 #define CALLBACK_TASK 0x20000
145 #define CALLBACK_FUNCTION 0x30000
146 #define CALLBACK_THREAD CALLBACK_TASK
147 #define CALLBACK_EVENT 0x50000
148 #define SND_SYNC 0
149 #define SND_ASYNC 1
150 #define SND_NODEFAULT 2
151 #define SND_MEMORY 4
152 #define SND_LOOP 8
153 #define SND_NOSTOP 16
154 #define SND_NOWAIT 0x2000
155 #define SND_ALIAS 0x10000
156 #define SND_ALIAS_ID 0x110000
157 #define SND_FILENAME 0x20000
158 #define SND_RESOURCE 0x40004
159 #define SND_PURGE 0x40
160 #define SND_APPLICATION 0x80
161 #define SND_ALIAS_START 0
162 #define sndAlias(c0,c1) (SND_ALIAS_START+((DWORD)(BYTE)(c0)|((DWORD)(BYTE)(c1)<<8)))
163 #define SND_ALIAS_SYSTEMASTERISK sndAlias('S','*')
164 #define SND_ALIAS_SYSTEMQUESTION sndAlias('S','?')
165 #define SND_ALIAS_SYSTEMHAND sndAlias('S','H')
166 #define SND_ALIAS_SYSTEMEXIT sndAlias('S','E')
167 #define SND_ALIAS_SYSTEMSTART sndAlias('S','S')
168 #define SND_ALIAS_SYSTEMWELCOME sndAlias('S','W')
169 #define SND_ALIAS_SYSTEMEXCLAMATION sndAlias('S','!')
170 #define SND_ALIAS_SYSTEMDEFAULT sndAlias('S','D')
171 #define WAVERR_BADFORMAT (WAVERR_BASE + 0)
172 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1)
173 #define WAVERR_UNPREPARED (WAVERR_BASE + 2)
174 #define WAVERR_SYNC (WAVERR_BASE + 3)
175 #define WAVERR_LASTERROR (WAVERR_BASE + 3)
176 #define WOM_OPEN MM_WOM_OPEN
177 #define WOM_CLOSE MM_WOM_CLOSE
178 #define WOM_DONE MM_WOM_DONE
179 #define WIM_OPEN MM_WIM_OPEN
180 #define WIM_CLOSE MM_WIM_CLOSE
181 #define WIM_DATA MM_WIM_DATA
182 #define WAVE_MAPPER ((UINT)-1)
183 #define WAVE_FORMAT_QUERY 1
184 #define WAVE_ALLOWSYNC 2
185 #define WAVE_MAPPED 4
186 #define WAVE_FORMAT_DIRECT 8
187 #define WAVE_FORMAT_DIRECT_QUERY (WAVE_FORMAT_QUERY|WAVE_FORMAT_DIRECT)
188 #define WHDR_DONE 1
189 #define WHDR_PREPARED 2
190 #define WHDR_BEGINLOOP 4
191 #define WHDR_ENDLOOP 8
192 #define WHDR_INQUEUE 16
193 #define WAVECAPS_PITCH 1
194 #define WAVECAPS_PLAYBACKRATE 2
195 #define WAVECAPS_VOLUME 4
196 #define WAVECAPS_LRVOLUME 8
197 #define WAVECAPS_SYNC 16
198 #define WAVECAPS_SAMPLEACCURATE 32
199 #define WAVECAPS_DIRECTSOUND 64
200 #define WAVE_INVALIDFORMAT 0
201 #define WAVE_FORMAT_1M08 1
202 #define WAVE_FORMAT_1S08 2
203 #define WAVE_FORMAT_1M16 4
204 #define WAVE_FORMAT_1S16 8
205 #define WAVE_FORMAT_2M08 16
206 #define WAVE_FORMAT_2S08 32
207 #define WAVE_FORMAT_2M16 64
208 #define WAVE_FORMAT_2S16 128
209 #define WAVE_FORMAT_4M08 256
210 #define WAVE_FORMAT_4S08 512
211 #define WAVE_FORMAT_4M16 1024
212 #define WAVE_FORMAT_4S16 2048
213 #define WAVE_FORMAT_48M08 4096
214 #define WAVE_FORMAT_48S08 8192
215 #define WAVE_FORMAT_48M16 16384
216 #define WAVE_FORMAT_48S16 32768
217 #define WAVE_FORMAT_96M08 65536
218 #define WAVE_FORMAT_96S08 131072
219 #define WAVE_FORMAT_96M16 262144
220 #define WAVE_FORMAT_96S16 524288
221
222 #ifndef WAVE_FORMAT_PCM
223 #define WAVE_FORMAT_PCM 1
224 #endif
225
226 #define MIDIERR_UNPREPARED MIDIERR_BASE
227 #define MIDIERR_STILLPLAYING (MIDIERR_BASE+1)
228 #define MIDIERR_NOMAP (MIDIERR_BASE+2)
229 #define MIDIERR_NOTREADY (MIDIERR_BASE+3)
230 #define MIDIERR_NODEVICE (MIDIERR_BASE+4)
231 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE+5)
232 #define MIDIERR_BADOPENMODE (MIDIERR_BASE+6)
233 #define MIDIERR_DONT_CONTINUE (MIDIERR_BASE+7)
234 #define MIDIERR_LASTERROR (MIDIERR_BASE+7)
235 #define MIDIPATCHSIZE 128
236 #define MIM_OPEN MM_MIM_OPEN
237 #define MIM_CLOSE MM_MIM_CLOSE
238 #define MIM_DATA MM_MIM_DATA
239 #define MIM_LONGDATA MM_MIM_LONGDATA
240 #define MIM_ERROR MM_MIM_ERROR
241 #define MIM_LONGERROR MM_MIM_LONGERROR
242 #define MOM_OPEN MM_MOM_OPEN
243 #define MOM_CLOSE MM_MOM_CLOSE
244 #define MOM_DONE MM_MOM_DONE
245 #define MIM_MOREDATA MM_MIM_MOREDATA
246 #define MOM_POSITIONCB MM_MOM_POSITIONCB
247 #define MIDIMAPPER ((UINT)-1)
248 #define MIDI_MAPPER ((UINT)-1)
249 #define MIDI_IO_STATUS 32
250 #define MIDI_CACHE_ALL 1
251 #define MIDI_CACHE_BESTFIT 2
252 #define MIDI_CACHE_QUERY 3
253 #define MIDI_UNCACHE 4
254 #define MOD_MIDIPORT 1
255 #define MOD_SYNTH 2
256 #define MOD_SQSYNTH 3
257 #define MOD_FMSYNTH 4
258 #define MOD_MAPPER 5
259 #define MIDICAPS_VOLUME 1
260 #define MIDICAPS_LRVOLUME 2
261 #define MIDICAPS_CACHE 4
262 #define MIDICAPS_STREAM 8
263 #define MHDR_DONE 1
264 #define MHDR_PREPARED 2
265 #define MHDR_INQUEUE 4
266 #define MHDR_ISSTRM 8
267 #define MEVT_F_SHORT 0
268 #define MEVT_F_LONG 0x80000000
269 #define MEVT_F_CALLBACK 0x40000000
270 #define MEVT_EVENTTYPE(x) ((BYTE)(((x)>>24)&0xFF))
271 #define MEVT_EVENTPARM(x) ((DWORD)((x)&0xFFFFFFL))
272 #define MEVT_SHORTMSG 0
273 #define MEVT_TEMPO 1
274 #define MEVT_NOP 2
275 #define MEVT_LONGMSG ((BYTE)0x80)
276 #define MEVT_COMMENT ((BYTE)0x82)
277 #define MEVT_VERSION ((BYTE)0x84)
278 #define MIDISTRM_ERROR (-2)
279 #define MIDIPROP_SET 0x80000000
280 #define MIDIPROP_GET 0x40000000
281 #define MIDIPROP_TIMEDIV 1
282 #define MIDIPROP_TEMPO 2
283 #define AUX_MAPPER ((UINT)-1)
284 #define AUXCAPS_CDAUDIO 1
285 #define AUXCAPS_AUXIN 2
286 #define AUXCAPS_VOLUME 1
287 #define AUXCAPS_LRVOLUME 2
288 #define MIXER_SHORT_NAME_CHARS 16
289 #define MIXER_LONG_NAME_CHARS 64
290 #define MIXERR_INVALLINE MIXERR_BASE
291 #define MIXERR_INVALCONTROL (MIXERR_BASE+1)
292 #define MIXERR_INVALVALUE (MIXERR_BASE+2)
293 #define MIXERR_LASTERROR (MIXERR_BASE+2)
294 #define MIXER_OBJECTF_HANDLE 0x80000000
295 #define MIXER_OBJECTF_MIXER 0
296 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
297 #define MIXER_OBJECTF_WAVEOUT 0x10000000
298 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
299 #define MIXER_OBJECTF_WAVEIN 0x20000000
300 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
301 #define MIXER_OBJECTF_MIDIOUT 0x30000000
302 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
303 #define MIXER_OBJECTF_MIDIIN 0x40000000
304 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
305 #define MIXER_OBJECTF_AUX 0x50000000
306 #define MIXERLINE_LINEF_ACTIVE 1
307 #define MIXERLINE_LINEF_DISCONNECTED 0x8000
308 #define MIXERLINE_LINEF_SOURCE 0x80000000
309 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0
310 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED MIXERLINE_COMPONENTTYPE_DST_FIRST
311 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST+1)
312 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST+2)
313 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST+3)
314 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST+4)
315 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST+5)
316 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST+6)
317 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST+7)
318 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST+8)
319 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST+8)
320 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x1000
321 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED MIXERLINE_COMPONENTTYPE_SRC_FIRST
322 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST+1)
323 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST+2)
324 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST+3)
325 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST+4)
326 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST+5)
327 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST+6)
328 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST+7)
329 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST+8)
330 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST+9)
331 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST+10)
332 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST+10)
333 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
334 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
335 #define MIXERLINE_TARGETTYPE_WAVEIN 2
336 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
337 #define MIXERLINE_TARGETTYPE_MIDIIN 4
338 #define MIXERLINE_TARGETTYPE_AUX 5
339 #define MIXER_GETLINEINFOF_DESTINATION 0
340 #define MIXER_GETLINEINFOF_SOURCE 1
341 #define MIXER_GETLINEINFOF_LINEID 2
342 #define MIXER_GETLINEINFOF_COMPONENTTYPE 3
343 #define MIXER_GETLINEINFOF_TARGETTYPE 4
344 #define MIXER_GETLINEINFOF_QUERYMASK 15
345 #define MIXERCONTROL_CONTROLF_UNIFORM 1
346 #define MIXERCONTROL_CONTROLF_MULTIPLE 2
347 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000
348 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000
349 #define MIXERCONTROL_CT_CLASS_CUSTOM 0
350 #define MIXERCONTROL_CT_CLASS_METER 0x10000000
351 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000
352 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000
353 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000
354 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000
355 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000
356 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000
357 #define MIXERCONTROL_CT_SUBCLASS_MASK 0xF000000
358 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0
359 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x1000000
360 #define MIXERCONTROL_CT_SC_METER_POLLED 0
361 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0
362 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x1000000
363 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0
364 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x1000000
365 #define MIXERCONTROL_CT_UNITS_MASK 0xFF0000
366 #define MIXERCONTROL_CT_UNITS_CUSTOM 0
367 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x10000
368 #define MIXERCONTROL_CT_UNITS_SIGNED 0x20000
369 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x30000
370 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x40000
371 #define MIXERCONTROL_CT_UNITS_PERCENT 0x50000
372 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM|MIXERCONTROL_CT_UNITS_CUSTOM)
373 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER|MIXERCONTROL_CT_SC_METER_POLLED|MIXERCONTROL_CT_UNITS_BOOLEAN)
374 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER|MIXERCONTROL_CT_SC_METER_POLLED|MIXERCONTROL_CT_UNITS_SIGNED)
375 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER+1)
376 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER|MIXERCONTROL_CT_SC_METER_POLLED|MIXERCONTROL_CT_UNITS_UNSIGNED)
377 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH|MIXERCONTROL_CT_SC_SWITCH_BOOLEAN|MIXERCONTROL_CT_UNITS_BOOLEAN)
378 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN+1)
379 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN+2)
380 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN+3)
381 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN+4)
382 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN+5)
383 #define MIXERCONTROL_CONTROLTYPE_BASS_BOOST (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 0x00002277)
384 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH|MIXERCONTROL_CT_SC_SWITCH_BUTTON|MIXERCONTROL_CT_UNITS_BOOLEAN)
385 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER|MIXERCONTROL_CT_UNITS_DECIBELS)
386 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER|MIXERCONTROL_CT_UNITS_SIGNED)
387 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER|MIXERCONTROL_CT_UNITS_UNSIGNED)
388 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER|MIXERCONTROL_CT_UNITS_PERCENT)
389 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER|MIXERCONTROL_CT_UNITS_SIGNED)
390 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER+1)
391 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER+2)
392 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER|MIXERCONTROL_CT_UNITS_UNSIGNED)
393 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER+1)
394 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER+2)
395 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER+3)
396 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER+4)
397 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST|MIXERCONTROL_CT_SC_LIST_SINGLE|MIXERCONTROL_CT_UNITS_BOOLEAN)
398 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT+1)
399 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST|MIXERCONTROL_CT_SC_LIST_MULTIPLE|MIXERCONTROL_CT_UNITS_BOOLEAN)
400 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT+1)
401 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME|MIXERCONTROL_CT_SC_TIME_MICROSECS|MIXERCONTROL_CT_UNITS_UNSIGNED)
402 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME|MIXERCONTROL_CT_SC_TIME_MILLISECS|MIXERCONTROL_CT_UNITS_UNSIGNED)
403 #define MIXER_GETLINECONTROLSF_ALL 0
404 #define MIXER_GETLINECONTROLSF_ONEBYID 1
405 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 2
406 #define MIXER_GETLINECONTROLSF_QUERYMASK 15
407 #define MIXER_GETCONTROLDETAILSF_VALUE 0
408 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 1
409 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 15
410 #define MIXER_SETCONTROLDETAILSF_VALUE 0
411 #define MIXER_SETCONTROLDETAILSF_CUSTOM 1
412 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 15
413 #define TIMERR_NOERROR 0
414 #define TIMERR_NOCANDO (TIMERR_BASE+1)
415 #define TIMERR_STRUCT (TIMERR_BASE+33)
416 #define TIME_ONESHOT 0
417 #define TIME_PERIODIC 1
418 #define TIME_CALLBACK_FUNCTION 0
419 #define TIME_CALLBACK_EVENT_SET 16
420 #define TIME_CALLBACK_EVENT_PULSE 32
421 #if (WINVER >= 0x0501)
422 #define TIME_KILL_SYNCHRONOUS 0x0100
423 #endif
424 #define JOYERR_NOERROR (0)
425 #define JOYERR_PARMS (JOYERR_BASE+5)
426 #define JOYERR_NOCANDO (JOYERR_BASE+6)
427 #define JOYERR_UNPLUGGED (JOYERR_BASE+7)
428 #define JOY_BUTTON1 1
429 #define JOY_BUTTON2 2
430 #define JOY_BUTTON3 4
431 #define JOY_BUTTON4 8
432 #define JOY_BUTTON1CHG 256
433 #define JOY_BUTTON2CHG 512
434 #define JOY_BUTTON3CHG 1024
435 #define JOY_BUTTON4CHG 2048
436 #define JOY_BUTTON5 257
437 #define JOY_BUTTON6 513
438 #define JOY_BUTTON7 1025
439 #define JOY_BUTTON8 2049
440 #define JOY_BUTTON9 256
441 #define JOY_BUTTON10 512
442 #define JOY_BUTTON11 1024
443 #define JOY_BUTTON12 2048
444 #define JOY_BUTTON13 4096
445 #define JOY_BUTTON14 8192
446 #define JOY_BUTTON15 16384
447 #define JOY_BUTTON16 32768
448 #define JOY_BUTTON17 65536
449 #define JOY_BUTTON18 0x20000
450 #define JOY_BUTTON19 0x40000
451 #define JOY_BUTTON20 0x80000
452 #define JOY_BUTTON21 0x100000
453 #define JOY_BUTTON22 0x200000
454 #define JOY_BUTTON23 0x400000
455 #define JOY_BUTTON24 0x800000
456 #define JOY_BUTTON25 0x1000000
457 #define JOY_BUTTON26 0x2000000
458 #define JOY_BUTTON27 0x4000000
459 #define JOY_BUTTON28 0x8000000
460 #define JOY_BUTTON29 0x10000000
461 #define JOY_BUTTON30 0x20000000
462 #define JOY_BUTTON31 0x40000000
463 #define JOY_BUTTON32 0x80000000
464 #define JOY_POVCENTERED ((WORD)-1)
465 #define JOY_POVFORWARD 0
466 #define JOY_POVRIGHT 9000
467 #define JOY_POVBACKWARD 18000
468 #define JOY_POVLEFT 27000
469 #define JOY_RETURNX 1
470 #define JOY_RETURNY 2
471 #define JOY_RETURNZ 4l
472 #define JOY_RETURNR 8
473 #define JOY_RETURNU 16
474 #define JOY_RETURNV 32
475 #define JOY_RETURNPOV 64
476 #define JOY_RETURNBUTTONS 128
477 #define JOY_RETURNRAWDATA 256
478 #define JOY_RETURNPOVCTS 512
479 #define JOY_RETURNCENTERED 1024
480 #define JOY_USEDEADZONE 2048
481 #define JOY_RETURNALL (JOY_RETURNX|JOY_RETURNY|JOY_RETURNZ|JOY_RETURNR|JOY_RETURNU|JOY_RETURNV|JOY_RETURNPOV|JOY_RETURNBUTTONS)
482 #define JOY_CAL_READALWAYS 0x10000
483 #define JOY_CAL_READXYONLY 0x20000
484 #define JOY_CAL_READ3 0x40000
485 #define JOY_CAL_READ4 0x80000
486 #define JOY_CAL_READXONLY 0x100000
487 #define JOY_CAL_READYONLY 0x200000
488 #define JOY_CAL_READ5 0x400000
489 #define JOY_CAL_READ6 0x800000
490 #define JOY_CAL_READZONLY 0x1000000
491 #define JOY_CAL_READRONLY 0x2000000
492 #define JOY_CAL_READUONLY 0x4000000
493 #define JOY_CAL_READVONLY 0x8000000
494 #define JOYSTICKID1 0
495 #define JOYSTICKID2 1
496 #define JOYCAPS_HASZ 1
497 #define JOYCAPS_HASR 2
498 #define JOYCAPS_HASU 4
499 #define JOYCAPS_HASV 8
500 #define JOYCAPS_HASPOV 16
501 #define JOYCAPS_POV4DIR 32
502 #define JOYCAPS_POVCTS 64
503 #define MMIOERR_BASE 256
504 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE+1)
505 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE+2)
506 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE+3)
507 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE+4)
508 #define MMIOERR_CANNOTREAD (MMIOERR_BASE+5)
509 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE+6)
510 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE+7)
511 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE+8)
512 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE+9)
513 #define MMIOERR_UNBUFFERED (MMIOERR_BASE+10)
514 #define MMIOERR_PATHNOTFOUND (MMIOERR_BASE+11)
515 #define MMIOERR_ACCESSDENIED (MMIOERR_BASE+12)
516 #define MMIOERR_SHARINGVIOLATION (MMIOERR_BASE+13)
517 #define MMIOERR_NETWORKERROR (MMIOERR_BASE+14)
518 #define MMIOERR_TOOMANYOPENFILES (MMIOERR_BASE+15)
519 #define MMIOERR_INVALIDFILE (MMIOERR_BASE+16)
520 #define CFSEPCHAR '+'
521 #define MMIO_RWMODE 3
522 #define MMIO_SHAREMODE 0x70
523 #define MMIO_CREATE 0x1000
524 #define MMIO_PARSE 256
525 #define MMIO_DELETE 512
526 #define MMIO_EXIST 0x4000
527 #define MMIO_ALLOCBUF 0x10000
528 #define MMIO_GETTEMP 0x20000
529 #define MMIO_DIRTY 0x10000000
530 #define MMIO_READ 0
531 #define MMIO_WRITE 1
532 #define MMIO_READWRITE 2
533 #define MMIO_COMPAT 0
534 #define MMIO_EXCLUSIVE 16
535 #define MMIO_DENYWRITE 32
536 #define MMIO_DENYREAD 0x30
537 #define MMIO_DENYNONE 64
538 #define MMIO_FHOPEN 16
539 #define MMIO_EMPTYBUF 16
540 #define MMIO_TOUPPER 16
541 #define MMIO_INSTALLPROC 0x10000
542 #define MMIO_GLOBALPROC 0x10000000
543 #define MMIO_REMOVEPROC 0x20000
544 #define MMIO_UNICODEPROC 0x1000000
545 #define MMIO_FINDPROC 0x40000
546 #define MMIO_FINDCHUNK 16
547 #define MMIO_FINDRIFF 32
548 #define MMIO_FINDLIST 64
549 #define MMIO_CREATERIFF 32
550 #define MMIO_CREATELIST 64
551 #define MMIOM_READ MMIO_READ
552 #define MMIOM_WRITE MMIO_WRITE
553 #define MMIOM_SEEK 2
554 #define MMIOM_OPEN 3
555 #define MMIOM_CLOSE 4
556 #define MMIOM_WRITEFLUSH 5
557 #define MMIOM_RENAME 6
558 #define MMIOM_USER 0x8000
559 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
560 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
561 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
562 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
563 #define MMIO_DEFAULTBUFFER 8192
564 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE+1)
565 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE+3)
566 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE+5)
567 #define MCIERR_HARDWARE (MCIERR_BASE+6)
568 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE+7)
569 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE+8)
570 #define MCIERR_DEVICE_OPEN (MCIERR_BASE+9)
571 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE+10)
572 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE+11)
573 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE+12)
574 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE+13)
575 #define MCIERR_BAD_INTEGER (MCIERR_BASE+14)
576 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE+15)
577 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE+16)
578 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE+17)
579 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE+18)
580 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE+19)
581 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE+20)
582 #define MCIERR_INTERNAL (MCIERR_BASE+21)
583 #define MCIERR_DRIVER (MCIERR_BASE+22)
584 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE+23)
585 #define MCIERR_MULTIPLE (MCIERR_BASE+24)
586 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE+25)
587 #define MCIERR_OUTOFRANGE (MCIERR_BASE+26)
588 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE+28)
589 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE+30)
590 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE+31)
591 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE+32)
592 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE+33)
593 #define MCIERR_BAD_CONSTANT (MCIERR_BASE+34)
594 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE+35)
595 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE+36)
596 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE+37)
597 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE+38)
598 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE+39)
599 #define MCIERR_INVALID_FILE (MCIERR_BASE+40)
600 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE+41)
601 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE+42)
602 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE+43)
603 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE+44)
604 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE+45)
605 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE+46)
606 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE+47)
607 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE+48)
608 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE+49)
609 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE+50)
610 #define MCIERR_GET_CD (MCIERR_BASE+51)
611 #define MCIERR_SET_CD (MCIERR_BASE+52)
612 #define MCIERR_SET_DRIVE (MCIERR_BASE+53)
613 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE+54)
614 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE+55)
615 #define MCIERR_NO_INTEGER (MCIERR_BASE+56)
616 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE+64)
617 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE+65)
618 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE+66)
619 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE+67)
620 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE+68)
621 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE+69)
622 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE+70)
623 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE+71)
624 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE+72)
625 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE+73)
626 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE+80)
627 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE+81)
628 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE+82)
629 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE+83)
630 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE+84)
631 #define MCIERR_SEQ_TIMER (MCIERR_BASE+85)
632 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE+86)
633 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE+87)
634 #define MCIERR_NO_WINDOW (MCIERR_BASE+90)
635 #define MCIERR_CREATEWINDOW (MCIERR_BASE+91)
636 #define MCIERR_FILE_READ (MCIERR_BASE+92)
637 #define MCIERR_FILE_WRITE (MCIERR_BASE+93)
638 #define MCIERR_NO_IDENTITY (MCIERR_BASE+94)
639 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE+256)
640 #define MCI_FIRST DRV_MCI_FIRST
641 #define MCI_OPEN 0x803
642 #define MCI_CLOSE 0x804
643 #define MCI_ESCAPE 0x805
644 #define MCI_PLAY 0x806
645 #define MCI_SEEK 0x807
646 #define MCI_STOP 0x808
647 #define MCI_PAUSE 0x809
648 #define MCI_INFO 0x80A
649 #define MCI_GETDEVCAPS 0x80B
650 #define MCI_SPIN 0x80C
651 #define MCI_SET 0x80D
652 #define MCI_STEP 0x80E
653 #define MCI_RECORD 0x80F
654 #define MCI_SYSINFO 0x810
655 #define MCI_BREAK 0x811
656 #define MCI_SAVE 0x813
657 #define MCI_STATUS 0x814
658 #define MCI_CUE 0x830
659 #define MCI_REALIZE 0x840
660 #define MCI_WINDOW 0x841
661 #define MCI_PUT 0x842
662 #define MCI_WHERE 0x843
663 #define MCI_FREEZE 0x844
664 #define MCI_UNFREEZE 0x845
665 #define MCI_LOAD 0x850
666 #define MCI_CUT 0x851
667 #define MCI_COPY 0x852
668 #define MCI_PASTE 0x853
669 #define MCI_UPDATE 0x854
670 #define MCI_RESUME 0x855
671 #define MCI_DELETE 0x856
672 #define MCI_USER_MESSAGES (DRV_MCI_FIRST+0x400)
673 #define MCI_LAST 0xFFF
674 #define MCI_ALL_DEVICE_ID ((MCIDEVICEID)-1)
675 #define MCI_DEVTYPE_VCR 513
676 #define MCI_DEVTYPE_VIDEODISC 514
677 #define MCI_DEVTYPE_OVERLAY 515
678 #define MCI_DEVTYPE_CD_AUDIO 516
679 #define MCI_DEVTYPE_DAT 517
680 #define MCI_DEVTYPE_SCANNER 518
681 #define MCI_DEVTYPE_ANIMATION 519
682 #define MCI_DEVTYPE_DIGITAL_VIDEO 520
683 #define MCI_DEVTYPE_OTHER 521
684 #define MCI_DEVTYPE_WAVEFORM_AUDIO 522
685 #define MCI_DEVTYPE_SEQUENCER 523
686 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
687 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
688 #define MCI_DEVTYPE_FIRST_USER 0x1000
689 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET+12)
690 #define MCI_MODE_STOP (MCI_STRING_OFFSET+13)
691 #define MCI_MODE_PLAY (MCI_STRING_OFFSET+14)
692 #define MCI_MODE_RECORD (MCI_STRING_OFFSET+15)
693 #define MCI_MODE_SEEK (MCI_STRING_OFFSET+16)
694 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET+17)
695 #define MCI_MODE_OPEN (MCI_STRING_OFFSET+18)
696 #define MCI_FORMAT_MILLISECONDS 0
697 #define MCI_FORMAT_HMS 1
698 #define MCI_FORMAT_MSF 2
699 #define MCI_FORMAT_FRAMES 3
700 #define MCI_FORMAT_SMPTE_24 4
701 #define MCI_FORMAT_SMPTE_25 5
702 #define MCI_FORMAT_SMPTE_30 6
703 #define MCI_FORMAT_SMPTE_30DROP 7
704 #define MCI_FORMAT_BYTES 8
705 #define MCI_FORMAT_SAMPLES 9
706 #define MCI_FORMAT_TMSF 10
707 #define MCI_MSF_MINUTE(t) ((BYTE)(t))
708 #define MCI_MSF_SECOND(t) ((BYTE)(((WORD)(t))>>8))
709 #define MCI_MSF_FRAME(t) ((BYTE)((t)>>16))
710 #define MCI_MAKE_MSF(m,s,f) ((DWORD)(((BYTE)(m)|((WORD)(s)<<8))|(((DWORD)(BYTE)(f))<<16)))
711 #define MCI_TMSF_TRACK(t) ((BYTE)(t))
712 #define MCI_TMSF_MINUTE(t) ((BYTE)(((WORD)(t))>>8))
713 #define MCI_TMSF_SECOND(t) ((BYTE)((t)>>16))
714 #define MCI_TMSF_FRAME(t) ((BYTE)((t)>>24))
715 #define MCI_MAKE_TMSF(t,m,s,f) ((DWORD)(((BYTE)(t)|((WORD)(m)<<8))|(((DWORD)(BYTE)(s)|((WORD)(f)<<8))<<16)))
716 #define MCI_HMS_HOUR(t) ((BYTE)(t))
717 #define MCI_HMS_MINUTE(t) ((BYTE)(((WORD)(t))>>8))
718 #define MCI_HMS_SECOND(t) ((BYTE)((t)>>16))
719 #define MCI_MAKE_HMS(h,m,s) ((DWORD)(((BYTE)(h)|((WORD)(m)<<8))|(((DWORD)(BYTE)(s))<<16)))
720 #define MCI_NOTIFY_SUCCESSFUL 1
721 #define MCI_NOTIFY_SUPERSEDED 2
722 #define MCI_NOTIFY_ABORTED 4
723 #define MCI_NOTIFY_FAILURE 8
724 #define MCI_NOTIFY 1
725 #define MCI_WAIT 2
726 #define MCI_FROM 4
727 #define MCI_TO 8
728 #define MCI_TRACK 16
729 #define MCI_OPEN_SHAREABLE 256
730 #define MCI_OPEN_ELEMENT 512
731 #define MCI_OPEN_ALIAS 1024
732 #define MCI_OPEN_ELEMENT_ID 2048
733 #define MCI_OPEN_TYPE_ID 0x1000
734 #define MCI_OPEN_TYPE 0x2000
735 #define MCI_SEEK_TO_START 256
736 #define MCI_SEEK_TO_END 512
737 #define MCI_STATUS_ITEM 256
738 #define MCI_STATUS_START 512
739 #define MCI_STATUS_LENGTH 1
740 #define MCI_STATUS_POSITION 2
741 #define MCI_STATUS_NUMBER_OF_TRACKS 3
742 #define MCI_STATUS_MODE 4
743 #define MCI_STATUS_MEDIA_PRESENT 5
744 #define MCI_STATUS_TIME_FORMAT 6
745 #define MCI_STATUS_READY 7
746 #define MCI_STATUS_CURRENT_TRACK 8
747 #define MCI_INFO_PRODUCT 256
748 #define MCI_INFO_FILE 512
749 #define MCI_INFO_MEDIA_UPC 1024
750 #define MCI_INFO_MEDIA_IDENTITY 2048
751 #define MCI_INFO_NAME 0x1000
752 #define MCI_INFO_COPYRIGHT 0x2000
753 #define MCI_GETDEVCAPS_ITEM 256
754 #define MCI_GETDEVCAPS_CAN_RECORD 1
755 #define MCI_GETDEVCAPS_HAS_AUDIO 2
756 #define MCI_GETDEVCAPS_HAS_VIDEO 3
757 #define MCI_GETDEVCAPS_DEVICE_TYPE 4
758 #define MCI_GETDEVCAPS_USES_FILES 5
759 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 6
760 #define MCI_GETDEVCAPS_CAN_EJECT 7
761 #define MCI_GETDEVCAPS_CAN_PLAY 8
762 #define MCI_GETDEVCAPS_CAN_SAVE 9
763 #define MCI_SYSINFO_QUANTITY 256
764 #define MCI_SYSINFO_OPEN 512
765 #define MCI_SYSINFO_NAME 1024
766 #define MCI_SYSINFO_INSTALLNAME 2048
767 #define MCI_SET_DOOR_OPEN 256
768 #define MCI_SET_DOOR_CLOSED 512
769 #define MCI_SET_TIME_FORMAT 1024
770 #define MCI_SET_AUDIO 2048
771 #define MCI_SET_VIDEO 0x1000
772 #define MCI_SET_ON 0x2000
773 #define MCI_SET_OFF 0x4000
774 #define MCI_SET_AUDIO_ALL 0
775 #define MCI_SET_AUDIO_LEFT 1
776 #define MCI_SET_AUDIO_RIGHT 2
777 #define MCI_BREAK_KEY 256
778 #define MCI_BREAK_HWND 512
779 #define MCI_BREAK_OFF 1024
780 #define MCI_RECORD_INSERT 256
781 #define MCI_RECORD_OVERWRITE 512
782 #define MCI_SAVE_FILE 256
783 #define MCI_LOAD_FILE 256
784 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET+1)
785 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET+2)
786 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET+3)
787 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET+4)
788 #define MCI_VD_FORMAT_TRACK 0x4001
789 #define MCI_VD_PLAY_REVERSE 0x10000
790 #define MCI_VD_PLAY_FAST 0x20000
791 #define MCI_VD_PLAY_SPEED 0x40000
792 #define MCI_VD_PLAY_SCAN 0x80000
793 #define MCI_VD_PLAY_SLOW 0x100000
794 #define MCI_VD_SEEK_REVERSE 0x10000
795 #define MCI_VD_STATUS_SPEED 0x4002
796 #define MCI_VD_STATUS_FORWARD 0x4003
797 #define MCI_VD_STATUS_MEDIA_TYPE 0x4004
798 #define MCI_VD_STATUS_SIDE 0x4005
799 #define MCI_VD_STATUS_DISC_SIZE 0x4006
800 #define MCI_VD_GETDEVCAPS_CLV 0x10000
801 #define MCI_VD_GETDEVCAPS_CAV 0x20000
802 #define MCI_VD_SPIN_UP 0x10000
803 #define MCI_VD_SPIN_DOWN 0x20000
804 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x4002
805 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x4003
806 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x4004
807 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x4005
808 #define MCI_VD_STEP_FRAMES 0x10000
809 #define MCI_VD_STEP_REVERSE 0x20000
810 #define MCI_VD_ESCAPE_STRING 256
811 #define MCI_CDA_STATUS_TYPE_TRACK 0x4001
812 #define MCI_CDA_TRACK_AUDIO MCI_CD_OFFSET
813 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET+1)
814 #define MCI_WAVE_PCM MCI_WAVE_OFFSET
815 #define MCI_WAVE_MAPPER (MCI_WAVE_OFFSET+1)
816 #define MCI_WAVE_OPEN_BUFFER 0x10000
817 #define MCI_WAVE_SET_FORMATTAG 0x10000
818 #define MCI_WAVE_SET_CHANNELS 0x20000
819 #define MCI_WAVE_SET_SAMPLESPERSEC 0x40000
820 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x80000
821 #define MCI_WAVE_SET_BLOCKALIGN 0x100000
822 #define MCI_WAVE_SET_BITSPERSAMPLE 0x200000
823 #define MCI_WAVE_INPUT 0x400000
824 #define MCI_WAVE_OUTPUT 0x800000
825 #define MCI_WAVE_STATUS_FORMATTAG 0x4001
826 #define MCI_WAVE_STATUS_CHANNELS 0x4002
827 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x4003
828 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x4004
829 #define MCI_WAVE_STATUS_BLOCKALIGN 0x4005
830 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x4006
831 #define MCI_WAVE_STATUS_LEVEL 0x4007
832 #define MCI_WAVE_SET_ANYINPUT 0x4000000
833 #define MCI_WAVE_SET_ANYOUTPUT 0x8000000
834 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x4001
835 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x4002
836 #define MCI_SEQ_DIV_PPQN MCI_SEQ_OFFSET
837 #define MCI_SEQ_DIV_SMPTE_24 (MCI_SEQ_OFFSET+1)
838 #define MCI_SEQ_DIV_SMPTE_25 (MCI_SEQ_OFFSET+2)
839 #define MCI_SEQ_DIV_SMPTE_30DROP (MCI_SEQ_OFFSET+3)
840 #define MCI_SEQ_DIV_SMPTE_30 (MCI_SEQ_OFFSET+4)
841 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
842 #define MCI_SEQ_FILE 0x4002
843 #define MCI_SEQ_MIDI 0x4003
844 #define MCI_SEQ_SMPTE 0x4004
845 #define MCI_SEQ_NONE 65533
846 #define MCI_SEQ_MAPPER 65535
847 #define MCI_SEQ_STATUS_TEMPO 0x4002
848 #define MCI_SEQ_STATUS_PORT 0x4003
849 #define MCI_SEQ_STATUS_SLAVE 0x4007
850 #define MCI_SEQ_STATUS_MASTER 0x4008
851 #define MCI_SEQ_STATUS_OFFSET 0x4009
852 #define MCI_SEQ_STATUS_DIVTYPE 0x400A
853 #define MCI_SEQ_STATUS_NAME 0x400B
854 #define MCI_SEQ_STATUS_COPYRIGHT 0x400C
855 #define MCI_SEQ_SET_TEMPO 0x10000
856 #define MCI_SEQ_SET_PORT 0x20000
857 #define MCI_SEQ_SET_SLAVE 0x40000
858 #define MCI_SEQ_SET_MASTER 0x80000
859 #define MCI_SEQ_SET_OFFSET 0x1000000
860 #define MCI_ANIM_OPEN_WS 0x10000
861 #define MCI_ANIM_OPEN_PARENT 0x20000
862 #define MCI_ANIM_OPEN_NOSTATIC 0x40000
863 #define MCI_ANIM_PLAY_SPEED 0x10000
864 #define MCI_ANIM_PLAY_REVERSE 0x20000
865 #define MCI_ANIM_PLAY_FAST 0x40000
866 #define MCI_ANIM_PLAY_SLOW 0x80000
867 #define MCI_ANIM_PLAY_SCAN 0x100000
868 #define MCI_ANIM_STEP_REVERSE 0x10000
869 #define MCI_ANIM_STEP_FRAMES 0x20000
870 #define MCI_ANIM_STATUS_SPEED 0x4001
871 #define MCI_ANIM_STATUS_FORWARD 0x4002
872 #define MCI_ANIM_STATUS_HWND 0x4003
873 #define MCI_ANIM_STATUS_HPAL 0x4004
874 #define MCI_ANIM_STATUS_STRETCH 0x4005
875 #define MCI_ANIM_INFO_TEXT 0x10000
876 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x4001
877 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x4002
878 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x4003
879 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x4004
880 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x4006
881 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x4007
882 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x4008
883 #define MCI_ANIM_REALIZE_NORM 0x10000
884 #define MCI_ANIM_REALIZE_BKGD 0x20000
885 #define MCI_ANIM_WINDOW_HWND 0x10000
886 #define MCI_ANIM_WINDOW_STATE 0x40000
887 #define MCI_ANIM_WINDOW_TEXT 0x80000
888 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x100000
889 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x200000
890 #define MCI_ANIM_WINDOW_DEFAULT 0xL
891 #define MCI_ANIM_RECT 0x10000
892 #define MCI_ANIM_PUT_SOURCE 0x20000
893 #define MCI_ANIM_PUT_DESTINATION 0x40000
894 #define MCI_ANIM_WHERE_SOURCE 0x20000
895 #define MCI_ANIM_WHERE_DESTINATION 0x40000
896 #define MCI_ANIM_UPDATE_HDC 0x20000
897 #define MCI_OVLY_OPEN_WS 0x10000
898 #define MCI_OVLY_OPEN_PARENT 0x20000
899 #define MCI_OVLY_STATUS_HWND 0x4001
900 #define MCI_OVLY_STATUS_STRETCH 0x4002
901 #define MCI_OVLY_INFO_TEXT 0x10000
902 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x4001
903 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x4002
904 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x4003
905 #define MCI_OVLY_WINDOW_HWND 0x10000
906 #define MCI_OVLY_WINDOW_STATE 0x40000
907 #define MCI_OVLY_WINDOW_TEXT 0x80000
908 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x100000
909 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x200000
910 #define MCI_OVLY_WINDOW_DEFAULT 0xL
911 #define MCI_OVLY_RECT 0x10000
912 #define MCI_OVLY_PUT_SOURCE 0x20000
913 #define MCI_OVLY_PUT_DESTINATION 0x40000
914 #define MCI_OVLY_PUT_FRAME 0x80000
915 #define MCI_OVLY_PUT_VIDEO 0x100000
916 #define MCI_OVLY_WHERE_SOURCE 0x20000
917 #define MCI_OVLY_WHERE_DESTINATION 0x40000
918 #define MCI_OVLY_WHERE_FRAME 0x80000
919 #define MCI_OVLY_WHERE_VIDEO 0x100000
920 #ifdef _WINE
921 #define MCI_SOUND 0x0812
922 #define MCI_SOUND_NAME 0x00000100L
923 #endif
924 #define NEWTRANSPARENT 3
925 #define QUERYROPSUPPORT 40
926 #define SELECTDIB 41
927 #define DIBINDEX(n) MAKELONG((n),0x10FF)
928 #define SC_SCREENSAVE 0xF140
929 #define CAPS1 94
930 #define C1_TRANSPARENT 1
931 #ifndef SEEK_SET
932 #define SEEK_SET 0
933 #endif
934 #ifndef SEEK_CUR
935 #define SEEK_CUR 1
936 #endif
937 #ifndef SEEK_END
938 #define SEEK_END 2
939 #endif
940
941 #ifdef _WINE
942 #define MAXWAVEDRIVERS 10
943 #define MAXMIDIDRIVERS 10
944 #define MAXAUXDRIVERS 10
945 #define MAXMCIDRIVERS 32
946 #define MAXMIXERDRIVERS 10
947 #endif
948
949 #ifdef _WINE
950 typedef LPCSTR HPCSTR;
951 #endif
952
953 typedef DWORD MCIERROR;
954 typedef UINT MCIDEVICEID;
955 typedef UINT(CALLBACK *YIELDPROC)(MCIDEVICEID,DWORD);
956 typedef UINT MMVERSION;
957 typedef UINT MMRESULT;
958
959 typedef struct mmtime_tag {
960 UINT wType;
961 union {
962 DWORD ms;
963 DWORD sample;
964 DWORD cb;
965 DWORD ticks;
966 struct {
967 BYTE hour;
968 BYTE min;
969 BYTE sec;
970 BYTE frame;
971 BYTE fps;
972 BYTE dummy;
973 BYTE pad[2];
974 } smpte;
975 struct {
976 DWORD songptrpos;
977 } midi;
978 } u;
979 } MMTIME,*PMMTIME,*LPMMTIME;
980
981 DECLARE_HANDLE(HDRVR);
982
983 typedef struct tagDRVCONFIGINFO {
984 DWORD dwDCISize;
985 LPCWSTR lpszDCISectionName;
986 LPCWSTR lpszDCIAliasName;
987 } DRVCONFIGINFO,*PDRVCONFIGINFO,*LPDRVCONFIGINFO;
988
989 typedef struct DRVCONFIGINFOEX {
990 DWORD dwDCISize;
991 LPCWSTR lpszDCISectionName;
992 LPCWSTR lpszDCIAliasName;
993 DWORD dnDevNode;
994 } DRVCONFIGINFOEX,*PDRVCONFIGINFOEX,*LPDRVCONFIGINFOEX;
995
996 typedef LRESULT (CALLBACK* DRIVERPROC)(DWORD_PTR,HDRVR,UINT,LPARAM,LPARAM);
997 typedef void (CALLBACK DRVCALLBACK)(HDRVR,UINT,DWORD,DWORD,DWORD);
998 typedef DRVCALLBACK *LPDRVCALLBACK;
999 typedef DRVCALLBACK *PDRVCALLBACK;
1000 DECLARE_HANDLE(HWAVE);
1001 DECLARE_HANDLE(HWAVEIN);
1002 DECLARE_HANDLE(HWAVEOUT);
1003 typedef HWAVEIN *LPHWAVEIN;
1004 typedef HWAVEOUT *LPHWAVEOUT;
1005 typedef DRVCALLBACK WAVECALLBACK;
1006 typedef WAVECALLBACK *LPWAVECALLBACK;
1007
1008 typedef struct wavehdr_tag {
1009 LPSTR lpData;
1010 DWORD dwBufferLength;
1011 DWORD dwBytesRecorded;
1012 DWORD_PTR dwUser;
1013 DWORD dwFlags;
1014 DWORD dwLoops;
1015 struct wavehdr_tag *lpNext;
1016 DWORD_PTR reserved;
1017 } WAVEHDR,*PWAVEHDR,*LPWAVEHDR;
1018
1019 typedef struct tagWAVEOUTCAPSA {
1020 WORD wMid;
1021 WORD wPid;
1022 MMVERSION vDriverVersion;
1023 CHAR szPname[MAXPNAMELEN];
1024 DWORD dwFormats;
1025 WORD wChannels;
1026 WORD wReserved1;
1027 DWORD dwSupport;
1028 } WAVEOUTCAPSA,*PWAVEOUTCAPSA,*LPWAVEOUTCAPSA;
1029
1030 typedef struct tagWAVEOUTCAPSW {
1031 WORD wMid;
1032 WORD wPid;
1033 MMVERSION vDriverVersion;
1034 WCHAR szPname[MAXPNAMELEN];
1035 DWORD dwFormats;
1036 WORD wChannels;
1037 WORD wReserved1;
1038 DWORD dwSupport;
1039 } WAVEOUTCAPSW,*PWAVEOUTCAPSW,*LPWAVEOUTCAPSW;
1040
1041 typedef struct tagWAVEINCAPSA {
1042 WORD wMid;
1043 WORD wPid;
1044 MMVERSION vDriverVersion;
1045 CHAR szPname[MAXPNAMELEN];
1046 DWORD dwFormats;
1047 WORD wChannels;
1048 WORD wReserved1;
1049 } WAVEINCAPSA,*PWAVEINCAPSA,*LPWAVEINCAPSA;
1050
1051 typedef struct tagWAVEINCAPSW {
1052 WORD wMid;
1053 WORD wPid;
1054 MMVERSION vDriverVersion;
1055 WCHAR szPname[MAXPNAMELEN];
1056 DWORD dwFormats;
1057 WORD wChannels;
1058 WORD wReserved1;
1059 } WAVEINCAPSW,*PWAVEINCAPSW,*LPWAVEINCAPSW;
1060
1061 typedef struct waveformat_tag {
1062 WORD wFormatTag;
1063 WORD nChannels;
1064 DWORD nSamplesPerSec;
1065 DWORD nAvgBytesPerSec;
1066 WORD nBlockAlign;
1067 } WAVEFORMAT,*PWAVEFORMAT,*LPWAVEFORMAT;
1068
1069 typedef struct pcmwaveformat_tag {
1070 WAVEFORMAT wf;
1071 WORD wBitsPerSample;
1072 } PCMWAVEFORMAT, *PPCMWAVEFORMAT,*LPPCMWAVEFORMAT;
1073
1074 #ifndef _WAVEFORMATEX_
1075 #define _WAVEFORMATEX_
1076 typedef struct tWAVEFORMATEX {
1077 WORD wFormatTag;
1078 WORD nChannels;
1079 DWORD nSamplesPerSec;
1080 DWORD nAvgBytesPerSec;
1081 WORD nBlockAlign;
1082 WORD wBitsPerSample;
1083 WORD cbSize;
1084 } WAVEFORMATEX,*PWAVEFORMATEX,*LPWAVEFORMATEX;
1085
1086 typedef const struct tWAVEFORMATEX *LPCWAVEFORMATEX;
1087 #endif
1088
1089 DECLARE_HANDLE(HMIDI);
1090 DECLARE_HANDLE(HMIDIIN);
1091 DECLARE_HANDLE(HMIDIOUT);
1092 DECLARE_HANDLE(HMIDISTRM);
1093
1094 typedef HMIDI *LPHMIDI;
1095 typedef HMIDIIN *LPHMIDIIN;
1096 typedef HMIDIOUT *LPHMIDIOUT;
1097 typedef HMIDISTRM *LPHMIDISTRM;
1098 typedef DRVCALLBACK MIDICALLBACK;
1099 typedef MIDICALLBACK *LPMIDICALLBACK;
1100 typedef WORD PATCHARRAY[MIDIPATCHSIZE];
1101 typedef WORD *LPPATCHARRAY;
1102 typedef WORD KEYARRAY[MIDIPATCHSIZE];
1103 typedef WORD *LPKEYARRAY;
1104
1105 typedef struct tagMIDIOUTCAPSA {
1106 WORD wMid;
1107 WORD wPid;
1108 MMVERSION vDriverVersion;
1109 CHAR szPname[MAXPNAMELEN];
1110 WORD wTechnology;
1111 WORD wVoices;
1112 WORD wNotes;
1113 WORD wChannelMask;
1114 DWORD dwSupport;
1115 } MIDIOUTCAPSA,*PMIDIOUTCAPSA,*LPMIDIOUTCAPSA;
1116
1117 typedef struct tagMIDIOUTCAPSW {
1118 WORD wMid;
1119 WORD wPid;
1120 MMVERSION vDriverVersion;
1121 WCHAR szPname[MAXPNAMELEN];
1122 WORD wTechnology;
1123 WORD wVoices;
1124 WORD wNotes;
1125 WORD wChannelMask;
1126 DWORD dwSupport;
1127 } MIDIOUTCAPSW,*PMIDIOUTCAPSW,*LPMIDIOUTCAPSW;
1128
1129 typedef struct tagMIDIINCAPSA {
1130 WORD wMid;
1131 WORD wPid;
1132 MMVERSION vDriverVersion;
1133 CHAR szPname[MAXPNAMELEN];
1134 DWORD dwSupport;
1135 } MIDIINCAPSA,*PMIDIINCAPSA,*LPMIDIINCAPSA;
1136
1137 typedef struct tagMIDIINCAPSW {
1138 WORD wMid;
1139 WORD wPid;
1140 MMVERSION vDriverVersion;
1141 WCHAR szPname[MAXPNAMELEN];
1142 DWORD dwSupport;
1143 } MIDIINCAPSW,*PMIDIINCAPSW,*NPMIDIINCAPSW,*LPMIDIINCAPSW;
1144
1145 typedef struct midihdr_tag {
1146 LPSTR lpData;
1147 DWORD dwBufferLength;
1148 DWORD dwBytesRecorded;
1149 DWORD dwUser;
1150 DWORD dwFlags;
1151 struct midihdr_tag *lpNext;
1152 DWORD reserved;
1153 DWORD dwOffset;
1154 DWORD dwReserved[8];
1155 } MIDIHDR,*PMIDIHDR,*LPMIDIHDR;
1156
1157 typedef struct midievent_tag {
1158 DWORD dwDeltaTime;
1159 DWORD dwStreamID;
1160 DWORD dwEvent;
1161 DWORD dwParms[1];
1162 } MIDIEVENT;
1163 #ifdef _WINE
1164 typedef struct midievent_tag *LPMIDIEVENT;
1165 #endif
1166
1167 typedef struct midistrmbuffver_tag {
1168 DWORD dwVersion;
1169 DWORD dwMid;
1170 DWORD dwOEMVersion;
1171 } MIDISTRMBUFFVER;
1172
1173 typedef struct midiproptimediv_tag {
1174 DWORD cbStruct;
1175 DWORD dwTimeDiv;
1176 } MIDIPROPTIMEDIV,*LPMIDIPROPTIMEDIV;
1177
1178 typedef struct midiproptempo_tag {
1179 DWORD cbStruct;
1180 DWORD dwTempo;
1181 } MIDIPROPTEMPO,*LPMIDIPROPTEMPO;
1182
1183 typedef struct tagAUXCAPSA {
1184 WORD wMid;
1185 WORD wPid;
1186 MMVERSION vDriverVersion;
1187 CHAR szPname[MAXPNAMELEN];
1188 WORD wTechnology;
1189 WORD wReserved1;
1190 DWORD dwSupport;
1191 } AUXCAPSA,*PAUXCAPSA,*LPAUXCAPSA;
1192
1193 typedef struct tagAUXCAPSW {
1194 WORD wMid;
1195 WORD wPid;
1196 MMVERSION vDriverVersion;
1197 WCHAR szPname[MAXPNAMELEN];
1198 WORD wTechnology;
1199 WORD wReserved1;
1200 DWORD dwSupport;
1201 } AUXCAPSW,*PAUXCAPSW,*LPAUXCAPSW;
1202
1203 DECLARE_HANDLE(HMIXEROBJ);
1204 typedef HMIXEROBJ *LPHMIXEROBJ;
1205 DECLARE_HANDLE(HMIXER);
1206 typedef HMIXER *LPHMIXER;
1207
1208 typedef struct tagMIXERCAPSA {
1209 WORD wMid;
1210 WORD wPid;
1211 MMVERSION vDriverVersion;
1212 CHAR szPname[MAXPNAMELEN];
1213 DWORD fdwSupport;
1214 DWORD cDestinations;
1215 } MIXERCAPSA,*PMIXERCAPSA,*LPMIXERCAPSA;
1216
1217 typedef struct tagMIXERCAPSW {
1218 WORD wMid;
1219 WORD wPid;
1220 MMVERSION vDriverVersion;
1221 WCHAR szPname[MAXPNAMELEN];
1222 DWORD fdwSupport;
1223 DWORD cDestinations;
1224 } MIXERCAPSW,*PMIXERCAPSW,*LPMIXERCAPSW;
1225
1226 typedef struct tagMIXERLINEA {
1227 DWORD cbStruct;
1228 DWORD dwDestination;
1229 DWORD dwSource;
1230 DWORD dwLineID;
1231 DWORD fdwLine;
1232 DWORD dwUser;
1233 DWORD dwComponentType;
1234 DWORD cChannels;
1235 DWORD cConnections;
1236 DWORD cControls;
1237 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1238 CHAR szName[MIXER_LONG_NAME_CHARS];
1239 struct {
1240 DWORD dwType;
1241 DWORD dwDeviceID;
1242 WORD wMid;
1243 WORD wPid;
1244 MMVERSION vDriverVersion;
1245 CHAR szPname[MAXPNAMELEN];
1246 } Target;
1247 } MIXERLINEA,*PMIXERLINEA,*LPMIXERLINEA;
1248
1249 typedef struct tagMIXERLINEW {
1250 DWORD cbStruct;
1251 DWORD dwDestination;
1252 DWORD dwSource;
1253 DWORD dwLineID;
1254 DWORD fdwLine;
1255 DWORD dwUser;
1256 DWORD dwComponentType;
1257 DWORD cChannels;
1258 DWORD cConnections;
1259 DWORD cControls;
1260 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1261 WCHAR szName[MIXER_LONG_NAME_CHARS];
1262 struct {
1263 DWORD dwType;
1264 DWORD dwDeviceID;
1265 WORD wMid;
1266 WORD wPid;
1267 MMVERSION vDriverVersion;
1268 WCHAR szPname[MAXPNAMELEN];
1269 } Target;
1270 } MIXERLINEW,*PMIXERLINEW,*LPMIXERLINEW;
1271
1272 typedef struct tagMIXERCONTROLA {
1273 DWORD cbStruct;
1274 DWORD dwControlID;
1275 DWORD dwControlType;
1276 DWORD fdwControl;
1277 DWORD cMultipleItems;
1278 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1279 CHAR szName[MIXER_LONG_NAME_CHARS];
1280 union {
1281 _ANONYMOUS_STRUCT struct {
1282 LONG lMinimum;
1283 LONG lMaximum;
1284 }_STRUCT_NAME(s);
1285 _ANONYMOUS_STRUCT struct {
1286 DWORD dwMinimum;
1287 DWORD dwMaximum;
1288 }_STRUCT_NAME(s1);
1289 DWORD dwReserved[6];
1290 } Bounds;
1291 union {
1292 DWORD cSteps;
1293 DWORD cbCustomData;
1294 DWORD dwReserved[6];
1295 } Metrics;
1296 } MIXERCONTROLA,*PMIXERCONTROLA,*LPMIXERCONTROLA;
1297
1298 typedef struct tagMIXERCONTROLW {
1299 DWORD cbStruct;
1300 DWORD dwControlID;
1301 DWORD dwControlType;
1302 DWORD fdwControl;
1303 DWORD cMultipleItems;
1304 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1305 WCHAR szName[MIXER_LONG_NAME_CHARS];
1306 union {
1307 _ANONYMOUS_STRUCT struct {
1308 LONG lMinimum;
1309 LONG lMaximum;
1310 }_STRUCT_NAME(s);
1311 _ANONYMOUS_STRUCT struct {
1312 DWORD dwMinimum;
1313 DWORD dwMaximum;
1314 }_STRUCT_NAME(s1);
1315 DWORD dwReserved[6];
1316 } Bounds;
1317 union {
1318 DWORD cSteps;
1319 DWORD cbCustomData;
1320 DWORD dwReserved[6];
1321 } Metrics;
1322 } MIXERCONTROLW,*PMIXERCONTROLW,*LPMIXERCONTROLW;
1323
1324 typedef struct tagMIXERLINECONTROLSA {
1325 DWORD cbStruct;
1326 DWORD dwLineID;
1327 _ANONYMOUS_UNION union {
1328 DWORD dwControlID;
1329 DWORD dwControlType;
1330 } DUMMYUNIONNAME;
1331 DWORD cControls;
1332 DWORD cbmxctrl;
1333 LPMIXERCONTROLA pamxctrl;
1334 } MIXERLINECONTROLSA,*PMIXERLINECONTROLSA,*LPMIXERLINECONTROLSA;
1335
1336 typedef struct tagMIXERLINECONTROLSW {
1337 DWORD cbStruct;
1338 DWORD dwLineID;
1339 _ANONYMOUS_UNION union {
1340 DWORD dwControlID;
1341 DWORD dwControlType;
1342 } DUMMYUNIONNAME;
1343 DWORD cControls;
1344 DWORD cbmxctrl;
1345 LPMIXERCONTROLW pamxctrl;
1346 } MIXERLINECONTROLSW,*PMIXERLINECONTROLSW,*LPMIXERLINECONTROLSW;
1347
1348 typedef struct tMIXERCONTROLDETAILS {
1349 DWORD cbStruct;
1350 DWORD dwControlID;
1351 DWORD cChannels;
1352 _ANONYMOUS_UNION union {
1353 HWND hwndOwner;
1354 DWORD cMultipleItems;
1355 } DUMMYUNIONNAME;
1356 DWORD cbDetails;
1357 PVOID paDetails;
1358 } MIXERCONTROLDETAILS,*PMIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
1359
1360 typedef struct tagMIXERCONTROLDETAILS_LISTTEXTA {
1361 DWORD dwParam1;
1362 DWORD dwParam2;
1363 CHAR szName[MIXER_LONG_NAME_CHARS];
1364 } MIXERCONTROLDETAILS_LISTTEXTA,*PMIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
1365
1366 typedef struct tagMIXERCONTROLDETAILS_LISTTEXTW {
1367 DWORD dwParam1;
1368 DWORD dwParam2;
1369 WCHAR szName[MIXER_LONG_NAME_CHARS];
1370 } MIXERCONTROLDETAILS_LISTTEXTW,*PMIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
1371
1372 typedef struct tMIXERCONTROLDETAILS_BOOLEAN {
1373 LONG fValue;
1374 } MIXERCONTROLDETAILS_BOOLEAN,*PMIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1375
1376 typedef struct tMIXERCONTROLDETAILS_SIGNED {
1377 LONG lValue;
1378 } MIXERCONTROLDETAILS_SIGNED,*PMIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1379
1380 typedef struct tMIXERCONTROLDETAILS_UNSIGNED {
1381 DWORD dwValue;
1382 } MIXERCONTROLDETAILS_UNSIGNED,*PMIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1383
1384 typedef void(CALLBACK TIMECALLBACK)(UINT,UINT,DWORD_PTR,DWORD_PTR,DWORD_PTR);
1385
1386 typedef TIMECALLBACK *LPTIMECALLBACK;
1387
1388 typedef struct timecaps_tag {
1389 UINT wPeriodMin;
1390 UINT wPeriodMax;
1391 } TIMECAPS,*PTIMECAPS,*LPTIMECAPS;
1392
1393 typedef struct tagJOYCAPSA {
1394 WORD wMid;
1395 WORD wPid;
1396 CHAR szPname[MAXPNAMELEN];
1397 UINT wXmin;
1398 UINT wXmax;
1399 UINT wYmin;
1400 UINT wYmax;
1401 UINT wZmin;
1402 UINT wZmax;
1403 UINT wNumButtons;
1404 UINT wPeriodMin;
1405 UINT wPeriodMax;
1406 UINT wRmin;
1407 UINT wRmax;
1408 UINT wUmin;
1409 UINT wUmax;
1410 UINT wVmin;
1411 UINT wVmax;
1412 UINT wCaps;
1413 UINT wMaxAxes;
1414 UINT wNumAxes;
1415 UINT wMaxButtons;
1416 CHAR szRegKey[MAXPNAMELEN];
1417 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
1418 } JOYCAPSA,*PJOYCAPSA,*LPJOYCAPSA;
1419
1420 typedef struct tagJOYCAPSW {
1421 WORD wMid;
1422 WORD wPid;
1423 WCHAR szPname[MAXPNAMELEN];
1424 UINT wXmin;
1425 UINT wXmax;
1426 UINT wYmin;
1427 UINT wYmax;
1428 UINT wZmin;
1429 UINT wZmax;
1430 UINT wNumButtons;
1431 UINT wPeriodMin;
1432 UINT wPeriodMax;
1433 UINT wRmin;
1434 UINT wRmax;
1435 UINT wUmin;
1436 UINT wUmax;
1437 UINT wVmin;
1438 UINT wVmax;
1439 UINT wCaps;
1440 UINT wMaxAxes;
1441 UINT wNumAxes;
1442 UINT wMaxButtons;
1443 WCHAR szRegKey[MAXPNAMELEN];
1444 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
1445 } JOYCAPSW,*PJOYCAPSW,*LPJOYCAPSW;
1446
1447 typedef struct joyinfo_tag {
1448 UINT wXpos;
1449 UINT wYpos;
1450 UINT wZpos;
1451 UINT wButtons;
1452 } JOYINFO,*PJOYINFO,*LPJOYINFO;
1453
1454 typedef struct joyinfoex_tag {
1455 DWORD dwSize;
1456 DWORD dwFlags;
1457 DWORD dwXpos;
1458 DWORD dwYpos;
1459 DWORD dwZpos;
1460 DWORD dwRpos;
1461 DWORD dwUpos;
1462 DWORD dwVpos;
1463 DWORD dwButtons;
1464 DWORD dwButtonNumber;
1465 DWORD dwPOV;
1466 DWORD dwReserved1;
1467 DWORD dwReserved2;
1468 } JOYINFOEX,*PJOYINFOEX,*LPJOYINFOEX;
1469
1470 typedef DWORD FOURCC;
1471
1472 typedef char *HPSTR;
1473
1474 DECLARE_HANDLE(HMMIO);
1475
1476 typedef LRESULT (CALLBACK MMIOPROC)(LPSTR,UINT,LPARAM,LPARAM);
1477
1478 typedef MMIOPROC *LPMMIOPROC;
1479
1480 typedef struct _MMIOINFO {
1481 DWORD dwFlags;
1482 FOURCC fccIOProc;
1483 LPMMIOPROC pIOProc;
1484 UINT wErrorRet;
1485 HTASK htask;
1486 LONG cchBuffer;
1487 HPSTR pchBuffer;
1488 HPSTR pchNext;
1489 HPSTR pchEndRead;
1490 HPSTR pchEndWrite;
1491 LONG lBufOffset;
1492 LONG lDiskOffset;
1493 DWORD adwInfo[3];
1494 DWORD dwReserved1;
1495 DWORD dwReserved2;
1496 HMMIO hmmio;
1497 } MMIOINFO,*PMMIOINFO,*LPMMIOINFO;
1498
1499 typedef const MMIOINFO *LPCMMIOINFO;
1500
1501 typedef struct _MMCKINFO {
1502 FOURCC ckid;
1503 DWORD cksize;
1504 FOURCC fccType;
1505 DWORD dwDataOffset;
1506 DWORD dwFlags;
1507 } MMCKINFO,*PMMCKINFO,*LPMMCKINFO;
1508
1509 typedef const MMCKINFO *LPCMMCKINFO;
1510
1511 typedef struct tagMCI_GENERIC_PARMS {
1512 DWORD_PTR dwCallback;
1513 } MCI_GENERIC_PARMS,*PMCI_GENERIC_PARMS,*LPMCI_GENERIC_PARMS;
1514
1515 typedef struct tagMCI_OPEN_PARMSA {
1516 DWORD_PTR dwCallback;
1517 MCIDEVICEID wDeviceID;
1518 LPCSTR lpstrDeviceType;
1519 LPCSTR lpstrElementName;
1520 LPCSTR lpstrAlias;
1521 } MCI_OPEN_PARMSA,*PMCI_OPEN_PARMSA,*LPMCI_OPEN_PARMSA;
1522
1523 typedef struct tagMCI_OPEN_PARMSW {
1524 DWORD_PTR dwCallback;
1525 MCIDEVICEID wDeviceID;
1526 LPCWSTR lpstrDeviceType;
1527 LPCWSTR lpstrElementName;
1528 LPCWSTR lpstrAlias;
1529 } MCI_OPEN_PARMSW,*PMCI_OPEN_PARMSW,*LPMCI_OPEN_PARMSW;
1530
1531 typedef struct tagMCI_PLAY_PARMS {
1532 DWORD_PTR dwCallback;
1533 DWORD dwFrom;
1534 DWORD dwTo;
1535 } MCI_PLAY_PARMS,*PMCI_PLAY_PARMS,*LPMCI_PLAY_PARMS;
1536
1537 typedef struct tagMCI_SEEK_PARMS {
1538 DWORD_PTR dwCallback;
1539 DWORD dwTo;
1540 } MCI_SEEK_PARMS, *PMCI_SEEK_PARMS,*LPMCI_SEEK_PARMS;
1541
1542 #ifdef _WINE
1543 typedef struct tagMCI_SOUND_PARMSA {
1544 DWORD_PTR dwCallback;
1545 LPCSTR lpstrSoundName;
1546 } MCI_SOUND_PARMSA, *LPMCI_SOUND_PARMSA;
1547
1548 typedef struct tagMCI_SOUND_PARMSW {
1549 DWORD_PTR dwCallback;
1550 LPCWSTR lpstrSoundName;
1551 } MCI_SOUND_PARMSW, *LPMCI_SOUND_PARMSW;
1552
1553 #ifdef UNICODE
1554 typedef MCI_SOUND_PARMSW MCI_SOUND_PARMS;
1555 #else
1556 typedef MCI_SOUND_PARMSA MCI_SOUND_PARMS;
1557 #endif
1558 #endif
1559
1560 typedef struct tagMCI_STATUS_PARMS {
1561 DWORD_PTR dwCallback;
1562 DWORD_PTR dwReturn;
1563 DWORD dwItem;
1564 DWORD dwTrack;
1565 } MCI_STATUS_PARMS,*PMCI_STATUS_PARMS,*LPMCI_STATUS_PARMS;
1566
1567 typedef struct tagMCI_INFO_PARMSA {
1568 DWORD_PTR dwCallback;
1569 LPSTR lpstrReturn;
1570 DWORD dwRetSize;
1571 } MCI_INFO_PARMSA,*LPMCI_INFO_PARMSA;
1572
1573 typedef struct tagMCI_INFO_PARMSW {
1574 DWORD_PTR dwCallback;
1575 LPWSTR lpstrReturn;
1576 DWORD dwRetSize;
1577 } MCI_INFO_PARMSW,*LPMCI_INFO_PARMSW;
1578
1579 typedef struct tagMCI_GETDEVCAPS_PARMS {
1580 DWORD_PTR dwCallback;
1581 DWORD dwReturn;
1582 DWORD dwItem;
1583 } MCI_GETDEVCAPS_PARMS,*PMCI_GETDEVCAPS_PARMS,*LPMCI_GETDEVCAPS_PARMS;
1584
1585 typedef struct tagMCI_SYSINFO_PARMSA {
1586 DWORD_PTR dwCallback;
1587 LPSTR lpstrReturn;
1588 DWORD dwRetSize;
1589 DWORD dwNumber;
1590 UINT wDeviceType;
1591 } MCI_SYSINFO_PARMSA,*PMCI_SYSINFO_PARMSA,*LPMCI_SYSINFO_PARMSA;
1592
1593 typedef struct tagMCI_SYSINFO_PARMSW {
1594 DWORD_PTR dwCallback;
1595 LPWSTR lpstrReturn;
1596 DWORD dwRetSize;
1597 DWORD dwNumber;
1598 UINT wDeviceType;
1599 } MCI_SYSINFO_PARMSW,*PMCI_SYSINFO_PARMSW,*LPMCI_SYSINFO_PARMSW;
1600
1601 typedef struct tagMCI_SET_PARMS {
1602 DWORD_PTR dwCallback;
1603 DWORD dwTimeFormat;
1604 DWORD dwAudio;
1605 } MCI_SET_PARMS,*PMCI_SET_PARMS,*LPMCI_SET_PARMS;
1606
1607 typedef struct tagMCI_BREAK_PARMS {
1608 DWORD_PTR dwCallback;
1609 int nVirtKey;
1610 HWND hwndBreak;
1611 } MCI_BREAK_PARMS,*PMCI_BREAK_PARMS,*LPMCI_BREAK_PARMS;
1612
1613 typedef struct tagMCI_SAVE_PARMSA {
1614 DWORD_PTR dwCallback;
1615 LPCSTR lpfilename;
1616 } MCI_SAVE_PARMSA,*PMCI_SAVE_PARMSA,*LPMCI_SAVE_PARMSA;
1617
1618 typedef struct tagMCI_SAVE_PARMSW {
1619 DWORD_PTR dwCallback;
1620 LPCWSTR lpfilename;
1621 } MCI_SAVE_PARMSW,*PMCI_SAVE_PARMSW,*LPMCI_SAVE_PARMSW;
1622
1623 typedef struct tagMCI_LOAD_PARMSA {
1624 DWORD_PTR dwCallback;
1625 LPCSTR lpfilename;
1626 } MCI_LOAD_PARMSA,*PMCI_LOAD_PARMSA,*LPMCI_LOAD_PARMSA;
1627
1628 typedef struct tagMCI_LOAD_PARMSW {
1629 DWORD_PTR dwCallback;
1630 LPCWSTR lpfilename;
1631 } MCI_LOAD_PARMSW,*PMCI_LOAD_PARMSW,*LPMCI_LOAD_PARMSW;
1632
1633 typedef struct tagMCI_RECORD_PARMS {
1634 DWORD_PTR dwCallback;
1635 DWORD dwFrom;
1636 DWORD dwTo;
1637 } MCI_RECORD_PARMS,*LPMCI_RECORD_PARMS;
1638
1639 typedef struct tagMCI_VD_PLAY_PARMS {
1640 DWORD_PTR dwCallback;
1641 DWORD dwFrom;
1642 DWORD dwTo;
1643 DWORD dwSpeed;
1644 } MCI_VD_PLAY_PARMS,*PMCI_VD_PLAY_PARMS,*LPMCI_VD_PLAY_PARMS;
1645
1646 typedef struct tagMCI_VD_STEP_PARMS {
1647 DWORD_PTR dwCallback;
1648 DWORD dwFrames;
1649 } MCI_VD_STEP_PARMS,*PMCI_VD_STEP_PARMS,*LPMCI_VD_STEP_PARMS;
1650
1651 typedef struct tagMCI_VD_ESCAPE_PARMSA {
1652 DWORD_PTR dwCallback;
1653 LPCSTR lpstrCommand;
1654 } MCI_VD_ESCAPE_PARMSA,*PMCI_VD_ESCAPE_PARMSA,*LPMCI_VD_ESCAPE_PARMSA;
1655
1656 typedef struct tagMCI_VD_ESCAPE_PARMSW {
1657 DWORD_PTR dwCallback;
1658 LPCWSTR lpstrCommand;
1659 } MCI_VD_ESCAPE_PARMSW,*PMCI_VD_ESCAPE_PARMSW,*LPMCI_VD_ESCAPE_PARMSW;
1660
1661 typedef struct tagMCI_WAVE_OPEN_PARMSA {
1662 DWORD_PTR dwCallback;
1663 MCIDEVICEID wDeviceID;
1664 LPCSTR lpstrDeviceType;
1665 LPCSTR lpstrElementName;
1666 LPCSTR lpstrAlias;
1667 DWORD dwBufferSeconds;
1668 } MCI_WAVE_OPEN_PARMSA,*PMCI_WAVE_OPEN_PARMSA,*LPMCI_WAVE_OPEN_PARMSA;
1669
1670 typedef struct tagMCI_WAVE_OPEN_PARMSW {
1671 DWORD_PTR dwCallback;
1672 MCIDEVICEID wDeviceID;
1673 LPCWSTR lpstrDeviceType;
1674 LPCWSTR lpstrElementName;
1675 LPCWSTR lpstrAlias;
1676 DWORD dwBufferSeconds;
1677 } MCI_WAVE_OPEN_PARMSW,*PMCI_WAVE_OPEN_PARMSW,*LPMCI_WAVE_OPEN_PARMSW;
1678
1679 typedef struct tagMCI_WAVE_DELETE_PARMS {
1680 DWORD_PTR dwCallback;
1681 DWORD dwFrom;
1682 DWORD dwTo;
1683 } MCI_WAVE_DELETE_PARMS, *PMCI_WAVE_DELETE_PARMS,*LPMCI_WAVE_DELETE_PARMS;
1684
1685 typedef struct tagMCI_WAVE_SET_PARMS {
1686 DWORD_PTR dwCallback;
1687 DWORD dwTimeFormat;
1688 DWORD dwAudio;
1689 UINT wInput;
1690 UINT wOutput;
1691 WORD wFormatTag;
1692 WORD wReserved2;
1693 WORD nChannels;
1694 WORD wReserved3;
1695 DWORD nSamplesPerSec;
1696 DWORD nAvgBytesPerSec;
1697 WORD nBlockAlign;
1698 WORD wReserved4;
1699 WORD wBitsPerSample;
1700 WORD wReserved5;
1701 } MCI_WAVE_SET_PARMS,*PMCI_WAVE_SET_PARMS,*LPMCI_WAVE_SET_PARMS;
1702
1703 LRESULT WINAPI CloseDriver(HDRVR,LPARAM,LPARAM);
1704 HDRVR WINAPI OpenDriver(LPCWSTR,LPCWSTR,LPARAM);
1705 LRESULT WINAPI SendDriverMessage(HDRVR,UINT,LPARAM,LPARAM);
1706 HMODULE WINAPI DrvGetModuleHandle(HDRVR);
1707 HMODULE WINAPI GetDriverModuleHandle(HDRVR);
1708 LRESULT WINAPI DefDriverProc(DWORD_PTR,HDRVR,UINT,LPARAM,LPARAM);
1709 UINT WINAPI mmsystemGetVersion(void);
1710 #define OutputDebugStr OutputDebugString
1711 BOOL WINAPI sndPlaySoundA(LPCSTR,UINT);
1712 BOOL WINAPI sndPlaySoundW(LPCWSTR,UINT);
1713 BOOL WINAPI PlaySoundA(LPCSTR,HMODULE,DWORD);
1714 BOOL WINAPI PlaySoundW(LPCWSTR,HMODULE,DWORD);
1715 UINT WINAPI waveOutGetNumDevs(void);
1716 MMRESULT WINAPI waveOutGetDevCapsA(UINT_PTR,LPWAVEOUTCAPSA,UINT);
1717 MMRESULT WINAPI waveOutGetDevCapsW(UINT_PTR,LPWAVEOUTCAPSW,UINT);
1718 MMRESULT WINAPI waveOutGetVolume(HWAVEOUT,PDWORD);
1719 MMRESULT WINAPI waveOutSetVolume(HWAVEOUT,DWORD);
1720 MMRESULT WINAPI waveOutGetErrorTextA(MMRESULT,LPSTR,UINT);
1721 MMRESULT WINAPI waveOutGetErrorTextW(MMRESULT,LPWSTR,UINT);
1722 MMRESULT WINAPI waveOutOpen(LPHWAVEOUT,UINT,LPCWAVEFORMATEX,DWORD_PTR,DWORD_PTR,DWORD);
1723 MMRESULT WINAPI waveOutClose(HWAVEOUT);
1724 MMRESULT WINAPI waveOutPrepareHeader(HWAVEOUT,LPWAVEHDR,UINT);
1725 MMRESULT WINAPI waveOutUnprepareHeader(HWAVEOUT,LPWAVEHDR,UINT);
1726 MMRESULT WINAPI waveOutWrite(HWAVEOUT,LPWAVEHDR,UINT);
1727 MMRESULT WINAPI waveOutPause(HWAVEOUT);
1728 MMRESULT WINAPI waveOutRestart(HWAVEOUT);
1729 MMRESULT WINAPI waveOutReset(HWAVEOUT);
1730 MMRESULT WINAPI waveOutBreakLoop(HWAVEOUT);
1731 MMRESULT WINAPI waveOutGetPosition(HWAVEOUT,LPMMTIME,UINT);
1732 MMRESULT WINAPI waveOutGetPitch(HWAVEOUT,PDWORD);
1733 MMRESULT WINAPI waveOutSetPitch(HWAVEOUT,DWORD);
1734 MMRESULT WINAPI waveOutGetPlaybackRate(HWAVEOUT,PDWORD);
1735 MMRESULT WINAPI waveOutSetPlaybackRate(HWAVEOUT,DWORD);
1736 MMRESULT WINAPI waveOutGetID(HWAVEOUT,LPUINT);
1737 #if (WINVER >= 0x030a)
1738 #ifdef _WIN32
1739 MMRESULT WINAPI waveOutMessage(HWAVEOUT,UINT,DWORD_PTR,DWORD_PTR);
1740 #else
1741 DWORD WINAPI waveOutMessage(HWAVEOUT,UINT,DWORD,DWORD);
1742 #endif
1743 #endif
1744 UINT WINAPI waveInGetNumDevs(void);
1745 MMRESULT WINAPI waveInGetDevCapsA(UINT_PTR,LPWAVEINCAPSA,UINT);
1746 MMRESULT WINAPI waveInGetDevCapsW(UINT_PTR,LPWAVEINCAPSW,UINT);
1747 MMRESULT WINAPI waveInGetErrorTextA(MMRESULT,LPSTR,UINT);
1748 MMRESULT WINAPI waveInGetErrorTextW(MMRESULT,LPWSTR,UINT);
1749 MMRESULT WINAPI waveInOpen(LPHWAVEIN,UINT,LPCWAVEFORMATEX,DWORD_PTR,DWORD_PTR,DWORD);
1750 MMRESULT WINAPI waveInClose(HWAVEIN);
1751 MMRESULT WINAPI waveInPrepareHeader(HWAVEIN,LPWAVEHDR,UINT);
1752 MMRESULT WINAPI waveInUnprepareHeader(HWAVEIN,LPWAVEHDR,UINT);
1753 MMRESULT WINAPI waveInAddBuffer(HWAVEIN,LPWAVEHDR,UINT);
1754 MMRESULT WINAPI waveInStart(HWAVEIN);
1755 MMRESULT WINAPI waveInStop(HWAVEIN);
1756 MMRESULT WINAPI waveInReset(HWAVEIN);
1757 MMRESULT WINAPI waveInGetPosition(HWAVEIN,LPMMTIME,UINT);
1758 MMRESULT WINAPI waveInGetID(HWAVEIN,LPUINT);
1759 #if (WINVER >= 0x030a)
1760 #ifdef _WIN32
1761 MMRESULT WINAPI waveInMessage(HWAVEIN,UINT,DWORD_PTR,DWORD_PTR);
1762 #else
1763 DWORD WINAPI waveInMessage(HWAVEIN,UINT,DWORD,DWORD);
1764 #endif
1765 #endif
1766 UINT WINAPI midiOutGetNumDevs(void);
1767 MMRESULT WINAPI midiStreamOpen(LPHMIDISTRM,LPUINT,DWORD,DWORD_PTR,DWORD_PTR,DWORD);
1768 MMRESULT WINAPI midiStreamClose(HMIDISTRM);
1769 MMRESULT WINAPI midiStreamProperty(HMIDISTRM,LPBYTE,DWORD);
1770 MMRESULT WINAPI midiStreamPosition(HMIDISTRM,LPMMTIME,UINT);
1771 MMRESULT WINAPI midiStreamOut(HMIDISTRM,LPMIDIHDR,UINT);
1772 MMRESULT WINAPI midiStreamPause(HMIDISTRM);
1773 MMRESULT WINAPI midiStreamRestart(HMIDISTRM);
1774 MMRESULT WINAPI midiStreamStop(HMIDISTRM);
1775 MMRESULT WINAPI midiConnect(HMIDI,HMIDIOUT,PVOID);
1776 MMRESULT WINAPI midiDisconnect(HMIDI,HMIDIOUT,PVOID);
1777 MMRESULT WINAPI midiOutGetDevCapsA(UINT_PTR,LPMIDIOUTCAPSA,UINT);
1778 MMRESULT WINAPI midiOutGetDevCapsW(UINT_PTR,LPMIDIOUTCAPSW,UINT);
1779 MMRESULT WINAPI midiOutGetVolume(HMIDIOUT,PDWORD);
1780 MMRESULT WINAPI midiOutSetVolume(HMIDIOUT,DWORD);
1781 MMRESULT WINAPI midiOutGetErrorTextA(MMRESULT,LPSTR,UINT);
1782 MMRESULT WINAPI midiOutGetErrorTextW(MMRESULT,LPWSTR,UINT);
1783 MMRESULT WINAPI midiOutOpen(LPHMIDIOUT,UINT_PTR,DWORD_PTR,DWORD_PTR,DWORD);
1784 MMRESULT WINAPI midiOutClose(HMIDIOUT);
1785 MMRESULT WINAPI midiOutPrepareHeader(HMIDIOUT,LPMIDIHDR,UINT);
1786 MMRESULT WINAPI midiOutUnprepareHeader(HMIDIOUT,LPMIDIHDR,UINT);
1787 MMRESULT WINAPI midiOutShortMsg(HMIDIOUT,DWORD);
1788 MMRESULT WINAPI midiOutLongMsg(HMIDIOUT,LPMIDIHDR,UINT);
1789 MMRESULT WINAPI midiOutReset(HMIDIOUT);
1790 MMRESULT WINAPI midiOutCachePatches(HMIDIOUT,UINT,LPWORD,UINT);
1791 MMRESULT WINAPI midiOutCacheDrumPatches(HMIDIOUT,UINT,LPWORD,UINT);
1792 MMRESULT WINAPI midiOutGetID(HMIDIOUT,LPUINT);
1793 #if (WINVER >= 0x030a)
1794 #ifdef _WIN32
1795 MMRESULT WINAPI midiOutMessage(HMIDIOUT,UINT,DWORD_PTR,DWORD_PTR);
1796 #else
1797 DWORD WINAPI midiOutMessage(HMIDIOUT,UINT,DWORD,DWORD);
1798 #endif
1799 #endif
1800 UINT WINAPI midiInGetNumDevs(void);
1801 MMRESULT WINAPI midiInGetDevCapsA(UINT_PTR,LPMIDIINCAPSA,UINT);
1802 MMRESULT WINAPI midiInGetDevCapsW(UINT_PTR,LPMIDIINCAPSW,UINT);
1803 MMRESULT WINAPI midiInGetErrorTextA(MMRESULT,LPSTR,UINT);
1804 MMRESULT WINAPI midiInGetErrorTextW(MMRESULT,LPWSTR,UINT);
1805 MMRESULT WINAPI midiInOpen(LPHMIDIIN,UINT_PTR,DWORD_PTR,DWORD_PTR,DWORD);
1806 MMRESULT WINAPI midiInClose(HMIDIIN);
1807 MMRESULT WINAPI midiInPrepareHeader(HMIDIIN,LPMIDIHDR,UINT);
1808 MMRESULT WINAPI midiInUnprepareHeader(HMIDIIN,LPMIDIHDR,UINT);
1809 MMRESULT WINAPI midiInAddBuffer(HMIDIIN,LPMIDIHDR,UINT);
1810 MMRESULT WINAPI midiInStart(HMIDIIN);
1811 MMRESULT WINAPI midiInStop(HMIDIIN);
1812 MMRESULT WINAPI midiInReset(HMIDIIN);
1813 MMRESULT WINAPI midiInGetID(HMIDIIN,LPUINT);
1814 #if (WINVER >= 0x030a)
1815 #ifdef _WIN32
1816 MMRESULT WINAPI midiInMessage(HMIDIIN,UINT,DWORD_PTR,DWORD_PTR);
1817 #else
1818 DWORD WINAPI midiInMessage(HMIDIIN,UINT,DWORD,DWORD);
1819 #endif
1820 #endif
1821 UINT WINAPI auxGetNumDevs(void);
1822 MMRESULT WINAPI auxGetDevCapsA(UINT_PTR,LPAUXCAPSA,UINT);
1823 MMRESULT WINAPI auxGetDevCapsW(UINT_PTR,LPAUXCAPSW,UINT);
1824 MMRESULT WINAPI auxSetVolume(UINT,DWORD);
1825 MMRESULT WINAPI auxGetVolume(UINT,PDWORD);
1826 MMRESULT WINAPI auxOutMessage(UINT,UINT,DWORD_PTR,DWORD_PTR);
1827 UINT WINAPI mixerGetNumDevs(void);
1828 MMRESULT WINAPI mixerGetDevCapsA(UINT_PTR,LPMIXERCAPSA,UINT);
1829 MMRESULT WINAPI mixerGetDevCapsW(UINT_PTR,LPMIXERCAPSW,UINT);
1830 MMRESULT WINAPI mixerOpen(LPHMIXER,UINT,DWORD_PTR,DWORD_PTR,DWORD);
1831 MMRESULT WINAPI mixerClose(HMIXER);
1832 DWORD WINAPI mixerMessage(HMIXER,UINT,DWORD_PTR,DWORD_PTR);
1833 MMRESULT WINAPI mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
1834 MMRESULT WINAPI mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
1835 MMRESULT WINAPI mixerGetID(HMIXEROBJ,PUINT,DWORD);
1836 MMRESULT WINAPI mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
1837 MMRESULT WINAPI mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
1838 MMRESULT WINAPI mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1839 MMRESULT WINAPI mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1840 MMRESULT WINAPI mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1841 MMRESULT WINAPI timeGetSystemTime(LPMMTIME,UINT);
1842 DWORD WINAPI timeGetTime(void);
1843 MMRESULT WINAPI timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD_PTR,UINT);
1844 MMRESULT WINAPI timeKillEvent(UINT);
1845 MMRESULT WINAPI timeGetDevCaps(LPTIMECAPS,UINT);
1846 MMRESULT WINAPI timeBeginPeriod(UINT);
1847 MMRESULT WINAPI timeEndPeriod(UINT);
1848 UINT WINAPI joyGetNumDevs(void);
1849 MMRESULT WINAPI joyGetDevCapsA(UINT_PTR,LPJOYCAPSA,UINT);
1850 MMRESULT WINAPI joyGetDevCapsW(UINT_PTR,LPJOYCAPSW,UINT);
1851 MMRESULT WINAPI joyGetPos(UINT,LPJOYINFO);
1852 MMRESULT WINAPI joyGetPosEx(UINT,LPJOYINFOEX);
1853 MMRESULT WINAPI joyGetThreshold(UINT,LPUINT);
1854 MMRESULT WINAPI joyReleaseCapture(UINT);
1855 MMRESULT WINAPI joySetCapture(HWND,UINT,UINT,BOOL);
1856 MMRESULT WINAPI joySetThreshold(UINT,UINT);
1857 FOURCC WINAPI mmioStringToFOURCCA(LPCSTR,UINT);
1858 FOURCC WINAPI mmioStringToFOURCCW(LPCWSTR,UINT);
1859 LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
1860 LPMMIOPROC WINAPI mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
1861 HMMIO WINAPI mmioOpenA(LPSTR,LPMMIOINFO,DWORD);
1862 HMMIO WINAPI mmioOpenW(LPWSTR,LPMMIOINFO,DWORD);
1863 MMRESULT WINAPI mmioRenameA(LPCSTR,LPCSTR,LPCMMIOINFO,DWORD);
1864 MMRESULT WINAPI mmioRenameW(LPCWSTR,LPCWSTR,LPCMMIOINFO,DWORD);
1865 MMRESULT WINAPI mmioClose(HMMIO,UINT);
1866 LONG WINAPI mmioRead(HMMIO,HPSTR,LONG);
1867 LONG WINAPI mmioWrite(HMMIO,LPCSTR,LONG);
1868 LONG WINAPI mmioSeek(HMMIO,LONG,int);
1869 MMRESULT WINAPI mmioGetInfo(HMMIO,LPMMIOINFO,UINT);
1870 MMRESULT WINAPI mmioSetInfo(HMMIO,LPCMMIOINFO,UINT);
1871 MMRESULT WINAPI mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
1872 MMRESULT WINAPI mmioFlush(HMMIO,UINT);
1873 MMRESULT WINAPI mmioAdvance(HMMIO,LPMMIOINFO,UINT);
1874 LRESULT WINAPI mmioSendMessage(HMMIO,UINT,LPARAM,LPARAM);
1875 MMRESULT WINAPI mmioDescend(HMMIO,LPMMCKINFO,const MMCKINFO*,UINT);
1876 MMRESULT WINAPI mmioAscend(HMMIO,LPMMCKINFO,UINT);
1877 MMRESULT WINAPI mmioCreateChunk(HMMIO,LPMMCKINFO,UINT);
1878 MCIERROR WINAPI mciSendCommandA(MCIDEVICEID,UINT,DWORD_PTR,DWORD_PTR);
1879 MCIERROR WINAPI mciSendCommandW(MCIDEVICEID,UINT,DWORD_PTR,DWORD_PTR);
1880 MCIERROR WINAPI mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
1881 MCIERROR WINAPI mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND);
1882 MCIDEVICEID WINAPI mciGetDeviceIDA(LPCSTR);
1883 MCIDEVICEID WINAPI mciGetDeviceIDW(LPCWSTR);
1884 MCIDEVICEID WINAPI mciGetDeviceIDFromElementIDA(DWORD,LPCSTR);
1885 MCIDEVICEID WINAPI mciGetDeviceIDFromElementIDW(DWORD,LPCWSTR);
1886 BOOL WINAPI mciGetErrorStringA(MCIERROR,LPSTR,UINT);
1887 BOOL WINAPI mciGetErrorStringW(MCIERROR,LPWSTR,UINT);
1888 BOOL WINAPI mciSetYieldProc(MCIDEVICEID,YIELDPROC,DWORD);
1889 HTASK WINAPI mciGetCreatorTask(MCIDEVICEID);
1890 YIELDPROC WINAPI mciGetYieldProc(MCIDEVICEID,PDWORD);
1891
1892 #ifdef _WINE
1893 DWORD WINAPI GetDriverFlags(HDRVR hDriver);
1894 #endif
1895
1896 typedef struct tagMCI_SEQ_SET_PARMS {
1897 DWORD_PTR dwCallback;
1898 DWORD dwTimeFormat;
1899 DWORD dwAudio;
1900 DWORD dwTempo;
1901 DWORD dwPort;
1902 DWORD dwSlave;
1903 DWORD dwMaster;
1904 DWORD dwOffset;
1905 } MCI_SEQ_SET_PARMS,*PMCI_SEQ_SET_PARMS,*LPMCI_SEQ_SET_PARMS;
1906 typedef struct tagMCI_ANIM_OPEN_PARMSA {
1907 DWORD_PTR dwCallback;
1908 MCIDEVICEID wDeviceID;
1909 LPCSTR lpstrDeviceType;
1910 LPCSTR lpstrElementName;
1911 LPCSTR lpstrAlias;
1912 DWORD dwStyle;
1913 HWND hWndParent;
1914 } MCI_ANIM_OPEN_PARMSA,*PMCI_ANIM_OPEN_PARMSA,*LPMCI_ANIM_OPEN_PARMSA;
1915 typedef struct tagMCI_ANIM_OPEN_PARMSW {
1916 DWORD_PTR dwCallback;
1917 MCIDEVICEID wDeviceID;
1918 LPCWSTR lpstrDeviceType;
1919 LPCWSTR lpstrElementName;
1920 LPCWSTR lpstrAlias;
1921 DWORD dwStyle;
1922 HWND hWndParent;
1923 } MCI_ANIM_OPEN_PARMSW,*PMCI_ANIM_OPEN_PARMSW,*LPMCI_ANIM_OPEN_PARMSW;
1924 typedef struct tagMCI_ANIM_PLAY_PARMS {
1925 DWORD_PTR dwCallback;
1926 DWORD dwFrom;
1927 DWORD dwTo;
1928 DWORD dwSpeed;
1929 } MCI_ANIM_PLAY_PARMS,*PMCI_ANIM_PLAY_PARMS,*LPMCI_ANIM_PLAY_PARMS;
1930 typedef struct tagMCI_ANIM_STEP_PARMS {
1931 DWORD_PTR dwCallback;
1932 DWORD dwFrames;
1933 } MCI_ANIM_STEP_PARMS,*PMCI_ANIM_STEP_PARMS,*LPMCI_ANIM_STEP_PARMS;
1934 typedef struct tagMCI_ANIM_WINDOW_PARMSA {
1935 DWORD_PTR dwCallback;
1936 HWND hWnd;
1937 UINT nCmdShow;
1938 LPCSTR lpstrText;
1939 } MCI_ANIM_WINDOW_PARMSA,*PMCI_ANIM_WINDOW_PARMSA,*LPMCI_ANIM_WINDOW_PARMSA;
1940 typedef struct tagMCI_ANIM_WINDOW_PARMSW {
1941 DWORD_PTR dwCallback;
1942 HWND hWnd;
1943 UINT nCmdShow;
1944 LPCWSTR lpstrText;
1945 } MCI_ANIM_WINDOW_PARMSW,*PMCI_ANIM_WINDOW_PARMSW,*LPMCI_ANIM_WINDOW_PARMSW;
1946 typedef struct tagMCI_ANIM_RECT_PARMS {
1947 DWORD_PTR dwCallback;
1948 #ifdef MCI_USE_OFFEXT
1949 POINT ptOffset;
1950 POINT ptExtent;
1951 #else
1952 RECT rc;
1953 #endif
1954 } MCI_ANIM_RECT_PARMS,*PMCI_ANIM_RECT_PARMS,*LPMCI_ANIM_RECT_PARMS;
1955 typedef struct tagMCI_ANIM_UPDATE_PARMS {
1956 DWORD_PTR dwCallback;
1957 RECT rc;
1958 HDC hDC;
1959 } MCI_ANIM_UPDATE_PARMS,*PMCI_ANIM_UPDATE_PARMS,*LPMCI_ANIM_UPDATE_PARMS;
1960 typedef struct tagMCI_OVLY_OPEN_PARMSA {
1961 DWORD_PTR dwCallback;
1962 MCIDEVICEID wDeviceID;
1963 LPCSTR lpstrDeviceType;
1964 LPCSTR lpstrElementName;
1965 LPCSTR lpstrAlias;
1966 DWORD dwStyle;
1967 HWND hWndParent;
1968 } MCI_OVLY_OPEN_PARMSA,*PMCI_OVLY_OPEN_PARMSA,*LPMCI_OVLY_OPEN_PARMSA;
1969 typedef struct tagMCI_OVLY_OPEN_PARMSW {
1970 DWORD_PTR dwCallback;
1971 MCIDEVICEID wDeviceID;
1972 LPCWSTR lpstrDeviceType;
1973 LPCWSTR lpstrElementName;
1974 LPCWSTR lpstrAlias;
1975 DWORD dwStyle;
1976 HWND hWndParent;
1977 } MCI_OVLY_OPEN_PARMSW,*PMCI_OVLY_OPEN_PARMSW,*LPMCI_OVLY_OPEN_PARMSW;
1978 typedef struct tagMCI_OVLY_WINDOW_PARMSA {
1979 DWORD_PTR dwCallback;
1980 HWND hWnd;
1981 UINT nCmdShow;
1982 LPCSTR lpstrText;
1983 } MCI_OVLY_WINDOW_PARMSA,*PMCI_OVLY_WINDOW_PARMSA,*LPMCI_OVLY_WINDOW_PARMSA;
1984 typedef struct tagMCI_OVLY_WINDOW_PARMSW {
1985 DWORD_PTR dwCallback;
1986 HWND hWnd;
1987 UINT nCmdShow;
1988 LPCWSTR lpstrText;
1989 } MCI_OVLY_WINDOW_PARMSW,*PMCI_OVLY_WINDOW_PARMSW,*LPMCI_OVLY_WINDOW_PARMSW;
1990 typedef struct tagMCI_OVLY_RECT_PARMS {
1991 DWORD_PTR dwCallback;
1992 #ifdef MCI_USE_OFFEXT
1993 POINT ptOffset;
1994 POINT ptExtent;
1995 #else
1996 RECT rc;
1997 #endif
1998 } MCI_OVLY_RECT_PARMS,*PMCI_OVLY_RECT_PARMS,*LPMCI_OVLY_RECT_PARMS;
1999 typedef struct tagMCI_OVLY_SAVE_PARMSA {
2000 DWORD_PTR dwCallback;
2001 LPCSTR lpfilename;
2002 RECT rc;
2003 } MCI_OVLY_SAVE_PARMSA,*PMCI_OVLY_SAVE_PARMSA,*LPMCI_OVLY_SAVE_PARMSA;
2004 typedef struct tagMCI_OVLY_SAVE_PARMSW {
2005 DWORD_PTR dwCallback;
2006 LPCWSTR lpfilename;
2007 RECT rc;
2008 } MCI_OVLY_SAVE_PARMSW,*PMCI_OVLY_SAVE_PARMSW,*LPMCI_OVLY_SAVE_PARMSW;
2009 typedef struct tagMCI_OVLY_LOAD_PARMSA {
2010 DWORD_PTR dwCallback;
2011 LPCSTR lpfilename;
2012 RECT rc;
2013 } MCI_OVLY_LOAD_PARMSA,*PMCI_OVLY_LOAD_PARMSA,*LPMCI_OVLY_LOAD_PARMSA;
2014 typedef struct tagMCI_OVLY_LOAD_PARMSW {
2015 DWORD_PTR dwCallback;
2016 LPCWSTR lpfilename;
2017 RECT rc;
2018 } MCI_OVLY_LOAD_PARMSW,*PMCI_OVLY_LOAD_PARMSW,*LPMCI_OVLY_LOAD_PARMSW;
2019
2020 #ifdef UNICODE
2021 typedef WAVEOUTCAPSW WAVEOUTCAPS,*PWAVEOUTCAPS,*LPWAVEOUTCAPS;
2022 typedef WAVEINCAPSW WAVEINCAPS,*PWAVEINCAPS,*LPWAVEINCAPS;
2023 typedef MIDIOUTCAPSW MIDIOUTCAPS,*PMIDIOUTCAPS,*LPMIDIOUTCAPS;
2024 typedef MIDIINCAPSW MIDIINCAPS,*PMIDIINCAPS,*LPMIDIINCAPS;
2025 typedef AUXCAPSW AUXCAPS,*PAUXCAPS,*LPAUXCAPS;
2026 typedef MIXERCAPSW MIXERCAPS,*PMIXERCAPS,*LPMIXERCAPS;
2027 typedef MIXERLINEW MIXERLINE,*PMIXERLINE,*LPMIXERLINE;
2028 typedef MIXERCONTROLW MIXERCONTROL,*PMIXERCONTROL,*LPMIXERCONTROL;
2029 typedef MIXERLINECONTROLSW MIXERLINECONTROLS,*PMIXERLINECONTROLS,*LPMIXERLINECONTROLS;
2030 typedef MIXERCONTROLDETAILS_LISTTEXTW MIXERCONTROLDETAILS_LISTTEXT,*PMIXERCONTROLDETAILS_LISTTEXT,*LPMIXERCONTROLDETAILS_LISTTEXT;
2031 typedef JOYCAPSW JOYCAPS,*PJOYCAPS,*LPJOYCAPS;
2032 typedef MCI_OPEN_PARMSW MCI_OPEN_PARMS,*PMCI_OPEN_PARMS,*LPMCI_OPEN_PARMS;
2033 typedef MCI_INFO_PARMSW MCI_INFO_PARMS,*LPMCI_INFO_PARMS;
2034 typedef MCI_SYSINFO_PARMSW MCI_SYSINFO_PARMS,*PMCI_SYSINFO_PARMS,*LPMCI_SYSINFO_PARMS;
2035 typedef MCI_SAVE_PARMSW MCI_SAVE_PARMS,*PMCI_SAVE_PARMS,*LPMCI_SAVE_PARMS;
2036 typedef MCI_LOAD_PARMSW MCI_LOAD_PARMS,*PMCI_LOAD_PARMS,*LPMCI_LOAD_PARMS;
2037 typedef MCI_VD_ESCAPE_PARMSW MCI_VD_ESCAPE_PARMS,*PMCI_VD_ESCAPE_PARMS,*LPMCI_VD_ESCAPE_PARMS;
2038 typedef MCI_WAVE_OPEN_PARMSW MCI_WAVE_OPEN_PARMS,*PMCI_WAVE_OPEN_PARMS,*LPMCI_WAVE_OPEN_PARMS;
2039 typedef MCI_ANIM_OPEN_PARMSW MCI_ANIM_OPEN_PARMS,*PMCI_ANIM_OPEN_PARMS,*LPMCI_ANIM_OPEN_PARMS;
2040 typedef MCI_ANIM_WINDOW_PARMSW MCI_ANIM_WINDOW_PARMS,*PMCI_ANIM_WINDOW_PARMS,*LPMCI_ANIM_WINDOW_PARMS;
2041 typedef MCI_OVLY_OPEN_PARMSW MCI_OVLY_OPEN_PARMS,*PMCI_OVLY_OPEN_PARMS,*LPMCI_OVLY_OPEN_PARMS;
2042 typedef MCI_OVLY_WINDOW_PARMSW MCI_OVLY_WINDOW_PARMS,*PMCI_OVLY_WINDOW_PARMS,*LPMCI_OVLY_WINDOW_PARMS;
2043 typedef MCI_OVLY_SAVE_PARMSW MCI_OVLY_SAVE_PARMS,*PMCI_OVLY_SAVE_PARMS,*LPMCI_OVLY_SAVE_PARMS;
2044 #define sndPlaySound sndPlaySoundW
2045 #define PlaySound PlaySoundW
2046 #define waveOutGetDevCaps waveOutGetDevCapsW
2047 #define waveOutGetErrorText waveOutGetErrorTextW
2048 #define waveInGetDevCaps waveInGetDevCapsW
2049 #define waveInGetErrorText waveInGetErrorTextW
2050 #define midiOutGetDevCaps midiOutGetDevCapsW
2051 #define midiOutGetErrorText midiOutGetErrorTextW
2052 #define midiInGetDevCaps midiInGetDevCapsW
2053 #define midiInGetErrorText midiInGetErrorTextW
2054 #define auxGetDevCaps auxGetDevCapsW
2055 #define mixerGetDevCaps mixerGetDevCapsW
2056 #define mixerGetLineInfo mixerGetLineInfoW
2057 #define mixerGetLineControls mixerGetLineControlsW
2058 #define mixerGetControlDetails mixerGetControlDetailsW
2059 #define joyGetDevCaps joyGetDevCapsW
2060 #define mmioInstallIOProc mmioInstallIOProcW
2061 #define mmioStringToFOURCC mmioStringToFOURCCW
2062 #define mmioOpen mmioOpenW
2063 #define mmioRename mmioRenameW
2064 #define mciSendCommand mciSendCommandW
2065 #define mciSendString mciSendStringW
2066 #define mciGetDeviceID mciGetDeviceIDW
2067 #define mciGetDeviceIDFromElementID mciGetDeviceIDFromElementIDW
2068 #define mciGetErrorString mciGetErrorStringW
2069 #else
2070 typedef WAVEOUTCAPSA WAVEOUTCAPS,*PWAVEOUTCAPS,*LPWAVEOUTCAPS;
2071 typedef WAVEINCAPSA WAVEINCAPS,*PWAVEINCAPS,*LPWAVEINCAPS;
2072 typedef MIDIOUTCAPSA MIDIOUTCAPS,*PMIDIOUTCAPS,*LPMIDIOUTCAPS;
2073 typedef MIDIINCAPSA MIDIINCAPS,*PMIDIINCAPS,*LPMIDIINCAPS;
2074 typedef AUXCAPSA AUXCAPS,*PAUXCAPS,*LPAUXCAPS;
2075 typedef MIXERCAPSA MIXERCAPS,*PMIXERCAPS,*LPMIXERCAPS;
2076 typedef MIXERLINEA MIXERLINE,*PMIXERLINE,*LPMIXERLINE;
2077 typedef MIXERCONTROLA MIXERCONTROL,*PMIXERCONTROL,*LPMIXERCONTROL;
2078 typedef MIXERLINECONTROLSA MIXERLINECONTROLS,*PMIXERLINECONTROLS,*LPMIXERLINECONTROLS;
2079 typedef MIXERCONTROLDETAILS_LISTTEXTA MIXERCONTROLDETAILS_LISTTEXT,*PMIXERCONTROLDETAILS_LISTTEXT,*LPMIXERCONTROLDETAILS_LISTTEXT;
2080 typedef JOYCAPSA JOYCAPS,*PJOYCAPS,*LPJOYCAPS;
2081 typedef MCI_OPEN_PARMSA MCI_OPEN_PARMS,*PMCI_OPEN_PARMS,*LPMCI_OPEN_PARMS;
2082 typedef MCI_INFO_PARMSA MCI_INFO_PARMS,*LPMCI_INFO_PARMS;
2083 typedef MCI_SYSINFO_PARMSA MCI_SYSINFO_PARMS,*PMCI_SYSINFO_PARMS,*LPMCI_SYSINFO_PARMS;
2084 typedef MCI_SAVE_PARMSA MCI_SAVE_PARMS,*PMCI_SAVE_PARMS,*LPMCI_SAVE_PARMS;
2085 typedef MCI_LOAD_PARMSA MCI_LOAD_PARMS,*PMCI_LOAD_PARMS,*LPMCI_LOAD_PARMS;
2086 typedef MCI_VD_ESCAPE_PARMSA MCI_VD_ESCAPE_PARMS,*PMCI_VD_ESCAPE_PARMS,*LPMCI_VD_ESCAPE_PARMS;
2087 typedef MCI_WAVE_OPEN_PARMSA MCI_WAVE_OPEN_PARMS,*PMCI_WAVE_OPEN_PARMS,*LPMCI_WAVE_OPEN_PARMS;
2088 typedef MCI_ANIM_OPEN_PARMSA MCI_ANIM_OPEN_PARMS,*PMCI_ANIM_OPEN_PARMS,*LPMCI_ANIM_OPEN_PARMS;
2089 typedef MCI_ANIM_WINDOW_PARMSA MCI_ANIM_WINDOW_PARMS,*PMCI_ANIM_WINDOW_PARMS,*LPMCI_ANIM_WINDOW_PARMS;
2090 typedef MCI_OVLY_OPEN_PARMSA MCI_OVLY_OPEN_PARMS,*PMCI_OVLY_OPEN_PARMS,*LPMCI_OVLY_OPEN_PARMS;
2091 typedef MCI_OVLY_WINDOW_PARMSA MCI_OVLY_WINDOW_PARMS,*PMCI_OVLY_WINDOW_PARMS,*LPMCI_OVLY_WINDOW_PARMS;
2092 typedef MCI_OVLY_SAVE_PARMSA MCI_OVLY_SAVE_PARMS,*PMCI_OVLY_SAVE_PARMS,*LPMCI_OVLY_SAVE_PARMS;
2093 #define sndPlaySound sndPlaySoundA
2094 #define PlaySound PlaySoundA
2095 #define waveOutGetDevCaps waveOutGetDevCapsA
2096 #define waveOutGetErrorText waveOutGetErrorTextA
2097 #define waveInGetDevCaps waveInGetDevCapsA
2098 #define waveInGetErrorText waveInGetErrorTextA
2099 #define midiOutGetDevCaps midiOutGetDevCapsA
2100 #define midiOutGetErrorText midiOutGetErrorTextA
2101 #define midiInGetDevCaps midiInGetDevCapsA
2102 #define midiInGetErrorText midiInGetErrorTextA
2103 #define auxGetDevCaps auxGetDevCapsA
2104 #define mixerGetDevCaps mixerGetDevCapsA
2105 #define mixerGetLineInfo mixerGetLineInfoA
2106 #define mixerGetLineControls mixerGetLineControlsA
2107 #define mixerGetControlDetails mixerGetControlDetailsA
2108 #define joyGetDevCaps joyGetDevCapsA
2109 #define mmioInstallIOProc mmioInstallIOProcA
2110 #define mmioStringToFOURCC mmioStringToFOURCCA
2111 #define mmioOpen mmioOpenA
2112 #define mmioRename mmioRenameA
2113 #define mciSendCommand mciSendCommandA
2114 #define mciSendString mciSendStringA
2115 #define mciGetDeviceID mciGetDeviceIDA
2116 #define mciGetDeviceIDFromElementID mciGetDeviceIDFromElementIDA
2117 #define mciGetErrorString mciGetErrorStringA
2118 #endif
2119
2120 #ifdef _MSC_VER
2121 #pragma warning(pop)
2122 #endif
2123
2124 #ifdef __cplusplus
2125 }
2126 #endif
2127 #pragma pack(pop)
2128 #endif