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