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