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