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