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