2 * MMSYSTEM - Multimedia Wine Extension ... :-)
5 #ifndef __WINE_MMSYSTEM_H
6 #define __WINE_MMSYSTEM_H
15 typedef LPSTR HPSTR; /* a huge version of LPSTR */
16 typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
20 #define MAXWAVEDRIVERS 10
21 #define MAXMIDIDRIVERS 10
22 #define MAXAUXDRIVERS 10
23 #define MAXMCIDRIVERS 32
24 #define MAXMIXERDRIVERS 10
26 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
27 #define MAXERRORLENGTH 128 /* max error text length (including NULL) */
28 #define MAX_JOYSTICKOEMVXDNAME 260
30 typedef WORD VERSION; /* major (high byte), minor (low byte) */
32 typedef UINT16 MMVERSION16;
33 typedef UINT32 MMVERSION32;
34 DECL_WINELIB_TYPE(MMVERSION)
35 typedef UINT16 MCIDEVICEID16;
36 typedef UINT32 MCIDEVICEID32;
37 DECL_WINELIB_TYPE(MCIDEVICEID)
38 typedef UINT16 MMRESULT16;
39 typedef UINT32 MMRESULT32;
40 DECL_WINELIB_TYPE(MMRESULT)
43 UINT16 wType; /* indicates the contents of the union */
45 DWORD ms; /* milliseconds */
46 DWORD sample; /* samples */
47 DWORD cb; /* byte count */
49 BYTE hour; /* hours */
50 BYTE min; /* minutes */
51 BYTE sec; /* seconds */
52 BYTE frame; /* frames */
53 BYTE fps; /* frames per second */
57 DWORD songptrpos; /* song pointer position */
60 } MMTIME16, *LPMMTIME16;
81 } MMTIME32, *LPMMTIME32;
82 DECL_WINELIB_TYPE(MMTIME)
83 DECL_WINELIB_TYPE(LPMMTIME)
85 #define TIME_MS 0x0001 /* time in milliseconds */
86 #define TIME_SAMPLES 0x0002 /* number of wave samples */
87 #define TIME_BYTES 0x0004 /* current byte offset */
88 #define TIME_SMPTE 0x0008 /* SMPTE time */
89 #define TIME_MIDI 0x0010 /* MIDI time */
91 #define MM_JOY1MOVE 0x3A0 /* joystick */
92 #define MM_JOY2MOVE 0x3A1
93 #define MM_JOY1ZMOVE 0x3A2
94 #define MM_JOY2ZMOVE 0x3A3
95 #define MM_JOY1BUTTONDOWN 0x3B5
96 #define MM_JOY2BUTTONDOWN 0x3B6
97 #define MM_JOY1BUTTONUP 0x3B7
98 #define MM_JOY2BUTTONUP 0x3B8
100 #define MM_MCINOTIFY 0x3B9 /* MCI */
102 #define MM_WOM_OPEN 0x3BB /* waveform output */
103 #define MM_WOM_CLOSE 0x3BC
104 #define MM_WOM_DONE 0x3BD
106 #define MM_WIM_OPEN 0x3BE /* waveform input */
107 #define MM_WIM_CLOSE 0x3BF
108 #define MM_WIM_DATA 0x3C0
110 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
111 #define MM_MIM_CLOSE 0x3C2
112 #define MM_MIM_DATA 0x3C3
113 #define MM_MIM_LONGDATA 0x3C4
114 #define MM_MIM_ERROR 0x3C5
115 #define MM_MIM_LONGERROR 0x3C6
117 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
118 #define MM_MOM_CLOSE 0x3C8
119 #define MM_MOM_DONE 0x3C9
122 #define MMSYSERR_BASE 0
123 #define WAVERR_BASE 32
124 #define MIDIERR_BASE 64
125 #define TIMERR_BASE 96
126 #define JOYERR_BASE 160
127 #define MCIERR_BASE 256
129 #define MCI_STRING_OFFSET 512
130 #define MCI_VD_OFFSET 1024
131 #define MCI_CD_OFFSET 1088
132 #define MCI_WAVE_OFFSET 1152
133 #define MCI_SEQ_OFFSET 1216
135 #define MMSYSERR_NOERROR 0 /* no error */
136 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
137 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
138 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
139 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
140 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
141 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
142 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
143 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
144 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
145 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
146 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
147 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
149 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
150 #define CALLBACK_NULL 0x00000000l /* no callback */
151 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
152 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
153 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
154 #define CALLBACK_FUNC32 0x00070000l /* (ugly hack) 32-bit FARPROC */
155 #define CALLBACK32CONV(x) ((((x)&CALLBACK_TYPEMASK)==CALLBACK_FUNCTION) ? \
156 (((x)&~CALLBACK_TYPEMASK)|CALLBACK_FUNC32) : (x))
158 typedef void (CALLBACK *LPDRVCALLBACK16) (HDRVR16 h, UINT16 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
159 typedef void (CALLBACK *LPDRVCALLBACK32) (HDRVR32 h, UINT32 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
160 DECL_WINELIB_TYPE(LPDRVCALLBACK)
162 #define MM_MICROSOFT 1 /* Microsoft Corp. */
164 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
165 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
167 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
168 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
169 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
170 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
171 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
173 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
175 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
176 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
178 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
181 UINT16 WINAPI mmsystemGetVersion16(void);
182 UINT32 WINAPI mmsystemGetVersion32(void);
183 #define mmsystemGetVersion WINELIB_NAME(mmsystemGetVersion)
184 BOOL16 WINAPI sndPlaySound(LPCSTR lpszSoundName, UINT16 uFlags);
185 BOOL32 WINAPI PlaySound32A(LPCSTR pszSound, HMODULE32 hmod, DWORD fdwSound);
186 BOOL32 WINAPI PlaySound32W(LPCWSTR pszSound, HMODULE32 hmod, DWORD fdwSound);
187 #define PlaySound WINELIB_NAME_AW(PlaySound)
189 #define SND_SYNC 0x0000 /* play synchronously (default) */
190 #define SND_ASYNC 0x0001 /* play asynchronously */
191 #define SND_NODEFAULT 0x0002 /* don't use default sound */
192 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
193 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
194 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
196 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
197 #define SND_ALIAS 0x00010000L /* name is a registry alias */
198 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
199 #define SND_FILENAME 0x00020000L /* name is file name */
200 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
201 #define SND_PURGE 0x00000040L /* purge all sounds */
202 #define SND_APPLICATION 0x00000080L /* look for application specific association */
204 /* waveform audio error return values */
205 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
206 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
207 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
208 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
209 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
211 typedef HWAVEIN16 *LPHWAVEIN16;
212 typedef HWAVEOUT16 *LPHWAVEOUT16;
213 typedef LPDRVCALLBACK16 LPWAVECALLBACK16;
214 typedef LPDRVCALLBACK32 LPWAVECALLBACK32;
215 DECL_WINELIB_TYPE(LPWAVECALLBACK)
216 typedef HMIXER16 *LPHMIXER16;
217 typedef HMIXER32 *LPHMIXER32;
219 #define WOM_OPEN MM_WOM_OPEN
220 #define WOM_CLOSE MM_WOM_CLOSE
221 #define WOM_DONE MM_WOM_DONE
222 #define WIM_OPEN MM_WIM_OPEN
223 #define WIM_CLOSE MM_WIM_CLOSE
224 #define WIM_DATA MM_WIM_DATA
226 #define WAVE_MAPPER (-1)
228 #define WAVE_FORMAT_QUERY 0x0001
229 #define WAVE_ALLOWSYNC 0x0002
231 typedef struct wavehdr_tag {
232 LPSTR lpData; /* pointer to locked data buffer */
233 DWORD dwBufferLength; /* length of data buffer */
234 DWORD dwBytesRecorded;/* used for input only */
235 DWORD dwUser; /* for client's use */
236 DWORD dwFlags; /* assorted flags (see defines) */
237 DWORD dwLoops; /* loop control counter */
239 struct wavehdr_tag *lpNext; /* reserved for driver */
240 DWORD reserved; /* reserved for driver */
241 } WAVEHDR, *LPWAVEHDR;
243 #define WHDR_DONE 0x00000001 /* done bit */
244 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
245 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
246 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
247 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
250 WORD wMid; /* manufacturer ID */
251 WORD wPid; /* product ID */
252 MMVERSION16 vDriverVersion; /* version of the driver */
253 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
254 DWORD dwFormats; /* formats supported */
255 WORD wChannels; /* number of sources supported */
256 DWORD dwSupport; /* functionality supported by driver */
257 } WAVEOUTCAPS16, *LPWAVEOUTCAPS16;
260 WORD wMid; /* manufacturer ID */
261 WORD wPid; /* product ID */
262 MMVERSION32 vDriverVersion; /* version of the driver */
263 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
264 DWORD dwFormats; /* formats supported */
265 WORD wChannels; /* number of sources supported */
266 WORD wReserved1; /* padding */
267 DWORD dwSupport; /* functionality supported by driver */
268 } WAVEOUTCAPS32A, *LPWAVEOUTCAPS32A;
271 WORD wMid; /* manufacturer ID */
272 WORD wPid; /* product ID */
273 MMVERSION32 vDriverVersion; /* version of the driver */
274 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
275 DWORD dwFormats; /* formats supported */
276 WORD wChannels; /* number of sources supported */
277 WORD wReserved1; /* padding */
278 DWORD dwSupport; /* functionality supported by driver */
279 } WAVEOUTCAPS32W, *LPWAVEOUTCAPS32W;
280 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS)
281 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS)
283 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
284 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
285 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
286 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
287 #define WAVECAPS_SYNC 0x0010
290 WORD wMid; /* manufacturer ID */
291 WORD wPid; /* product ID */
292 MMVERSION16 vDriverVersion; /* version of the driver */
293 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
294 DWORD dwFormats; /* formats supported */
295 WORD wChannels; /* number of channels supported */
296 } WAVEINCAPS16, *LPWAVEINCAPS16;
299 WORD wMid; /* manufacturer ID */
300 WORD wPid; /* product ID */
301 MMVERSION32 vDriverVersion; /* version of the driver */
302 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
303 DWORD dwFormats; /* formats supported */
304 WORD wChannels; /* number of channels supported */
306 } WAVEINCAPS32A, *LPWAVEINCAPS32A;
308 WORD wMid; /* manufacturer ID */
309 WORD wPid; /* product ID */
310 MMVERSION32 vDriverVersion; /* version of the driver */
311 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
312 DWORD dwFormats; /* formats supported */
313 WORD wChannels; /* number of channels supported */
315 } WAVEINCAPS32W, *LPWAVEINCAPS32W;
316 DECL_WINELIB_TYPE_AW(WAVEINCAPS)
317 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS)
319 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
320 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
321 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
322 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
323 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
324 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
325 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
326 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
327 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
328 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
329 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
330 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
331 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
333 /* General format structure common to all formats, same for Win16 and Win32 */
335 WORD wFormatTag; /* format type */
336 WORD nChannels; /* number of channels */
337 DWORD nSamplesPerSec; /* sample rate */
338 DWORD nAvgBytesPerSec;/* for buffer estimation */
339 WORD nBlockAlign; /* block size of data */
340 } WAVEFORMAT, *LPWAVEFORMAT;
342 #define WAVE_FORMAT_PCM 1
347 } PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
349 #ifndef _WAVEFORMATEX_
350 #define _WAVEFORMATEX_
351 /* dito same for Win16 / Win32 */
353 WORD wFormatTag; /* format type */
354 WORD nChannels; /* number of channels (i.e. mono, stereo...) */
355 DWORD nSamplesPerSec; /* sample rate */
356 DWORD nAvgBytesPerSec;/* for buffer estimation */
357 WORD nBlockAlign; /* block size of data */
358 WORD wBitsPerSample; /* number of bits per sample of mono data */
359 WORD cbSize; /* the count in bytes of the size of */
360 /* extra information (after cbSize) */
361 } WAVEFORMATEX, *LPWAVEFORMATEX, *NPWAVEFORMATEX, *PWAVEFORMATEX;
364 UINT16 WINAPI waveOutGetNumDevs16(void);
365 UINT32 WINAPI waveOutGetNumDevs32(void);
366 #define waveOutGetNumDevs WINELIB_NAME(waveOutGetNumDevs)
367 UINT16 WINAPI waveOutGetDevCaps16(UINT16,LPWAVEOUTCAPS16,UINT16);
368 UINT32 WINAPI waveOutGetDevCaps32A(UINT32,LPWAVEOUTCAPS32A,UINT32);
369 UINT32 WINAPI waveOutGetDevCaps32W(UINT32,LPWAVEOUTCAPS32W,UINT32);
370 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
371 UINT16 WINAPI waveOutGetVolume16(UINT16,DWORD*);
372 UINT32 WINAPI waveOutGetVolume32(UINT32,DWORD*);
373 #define waveOutGetVolume WINELIB_NAME(waveOutGetVolume)
374 UINT16 WINAPI waveOutSetVolume16(UINT16,DWORD);
375 UINT32 WINAPI waveOutSetVolume32(UINT32,DWORD);
376 #define waveOutSetVolume WINELIB_NAME(waveOutSetVolume)
377 UINT16 WINAPI waveOutGetErrorText16(UINT16,LPSTR,UINT16);
378 UINT32 WINAPI waveOutGetErrorText32A(UINT32,LPSTR,UINT32);
379 UINT32 WINAPI waveOutGetErrorText32W(UINT32,LPWSTR,UINT32);
380 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
381 UINT16 WINAPI waveOutOpen16(HWAVEOUT16*,UINT16,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
382 UINT32 WINAPI waveOutOpen32(HWAVEOUT32*,UINT32,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
383 #define waveOutOpen WINELIB_NAME(waveOutOpen)
384 UINT16 WINAPI waveOutClose16(HWAVEOUT16);
385 UINT32 WINAPI waveOutClose32(HWAVEOUT32);
386 #define waveOutClose WINELIB_NAME(waveOutClose)
387 UINT16 WINAPI waveOutPrepareHeader16(HWAVEOUT16,WAVEHDR*,UINT16);
388 UINT32 WINAPI waveOutPrepareHeader32(HWAVEOUT32,WAVEHDR*,UINT32);
389 #define waveOutPrepareHeader WINELIB_NAME(waveOutPrepareHeader)
390 UINT16 WINAPI waveOutUnprepareHeader16(HWAVEOUT16,WAVEHDR*,UINT16);
391 UINT32 WINAPI waveOutUnprepareHeader32(HWAVEOUT32,WAVEHDR*,UINT32);
392 #define waveOutUnprepareHeader WINELIB_NAME(waveOutUnprepareHeader)
393 UINT16 WINAPI waveOutWrite16(HWAVEOUT16,WAVEHDR*,UINT16);
394 UINT32 WINAPI waveOutWrite32(HWAVEOUT32,WAVEHDR*,UINT32);
395 #define waveOutWrite WINELIB_NAME(waveOutWrite)
396 UINT16 WINAPI waveOutPause16(HWAVEOUT16);
397 UINT32 WINAPI waveOutPause32(HWAVEOUT32);
398 #define waveOutPause WINELIB_NAME(waveOutPause)
399 UINT16 WINAPI waveOutRestart16(HWAVEOUT16);
400 UINT32 WINAPI waveOutRestart32(HWAVEOUT32);
401 #define waveOutRestart WINELIB_NAME(waveOutRestart)
402 UINT16 WINAPI waveOutReset16(HWAVEOUT16);
403 UINT32 WINAPI waveOutReset32(HWAVEOUT32);
404 #define waveOutReset WINELIB_NAME(waveOutReset)
405 UINT16 WINAPI waveOutBreakLoop16(HWAVEOUT16);
406 UINT32 WINAPI waveOutBreakLoop32(HWAVEOUT32);
407 #define waveOutBreakLoop WINELIB_NAME(waveOutBreakLoop)
408 UINT16 WINAPI waveOutGetPosition16(HWAVEOUT16,LPMMTIME16,UINT16);
409 UINT32 WINAPI waveOutGetPosition32(HWAVEOUT32,LPMMTIME32,UINT32);
410 #define waveOutGetPosition WINELIB_NAME(waveOutGetPosition)
411 UINT16 WINAPI waveOutGetPitch16(HWAVEOUT16,DWORD*);
412 UINT32 WINAPI waveOutGetPitch32(HWAVEOUT32,DWORD*);
413 #define waveOutGetPitch WINELIB_NAME(waveOutGetPitch)
414 UINT16 WINAPI waveOutSetPitch16(HWAVEOUT16,DWORD);
415 UINT32 WINAPI waveOutSetPitch32(HWAVEOUT32,DWORD);
416 #define waveOutSetPitch WINELIB_NAME(waveOutSetPitch)
417 UINT16 WINAPI waveOutGetPlaybackRate16(HWAVEOUT16,DWORD*);
418 UINT32 WINAPI waveOutGetPlaybackRate32(HWAVEOUT32,DWORD*);
419 #define waveOutGetPlaybackRate WINELIB_NAME(waveOutGetPlaybackRate)
420 UINT16 WINAPI waveOutSetPlaybackRate16(HWAVEOUT16,DWORD);
421 UINT32 WINAPI waveOutSetPlaybackRate32(HWAVEOUT32,DWORD);
422 #define waveOutSetPlaybackRate WINELIB_NAME(waveOutSetPlaybackRate)
423 UINT16 WINAPI waveOutGetID16(HWAVEOUT16,UINT16*);
424 UINT32 WINAPI waveOutGetID32(HWAVEOUT32,UINT32*);
425 #define waveOutGetID WINELIB_NAME(waveOutGetID)
426 DWORD WINAPI waveOutMessage16(HWAVEOUT16,UINT16,DWORD,DWORD);
427 DWORD WINAPI waveOutMessage32(HWAVEOUT32,UINT32,DWORD,DWORD);
428 #define waveOutMessage WINELIB_NAME(waveOutMessage)
430 UINT16 WINAPI waveInGetNumDevs16(void);
431 UINT32 WINAPI waveInGetNumDevs32(void);
432 #define waveInGetNumDevs WINELIB_NAME(waveInGetNumDevs)
433 UINT16 WINAPI waveInGetDevCaps16(UINT16,LPWAVEINCAPS16,UINT16);
434 UINT32 WINAPI waveInGetDevCaps32A(UINT32,LPWAVEINCAPS32A,UINT32);
435 UINT32 WINAPI waveInGetDevCaps32W(UINT32,LPWAVEINCAPS32W,UINT32);
436 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
437 UINT16 WINAPI waveInGetErrorText16(UINT16,LPSTR,UINT16);
438 UINT32 WINAPI waveInGetErrorText32A(UINT32,LPSTR,UINT32);
439 UINT32 WINAPI waveInGetErrorText32W(UINT32,LPWSTR,UINT32);
440 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
441 UINT16 WINAPI waveInOpen16(HWAVEIN16*,UINT16,const LPWAVEFORMAT,DWORD,DWORD,DWORD);
442 UINT32 WINAPI waveInOpen32(HWAVEIN32*,UINT32,const LPWAVEFORMAT,DWORD,DWORD,DWORD);
443 #define waveInOpen WINELIB_NAME(waveInOpen)
444 UINT16 WINAPI waveInClose16(HWAVEIN16);
445 UINT32 WINAPI waveInClose32(HWAVEIN32);
446 #define waveInClose WINELIB_NAME(waveInClose)
447 UINT16 WINAPI waveInPrepareHeader16(HWAVEIN16,WAVEHDR*,UINT16);
448 UINT32 WINAPI waveInPrepareHeader32(HWAVEIN32,WAVEHDR*,UINT32);
449 #define waveInPrepareHeader WINELIB_NAME(waveInPrepareHeader)
450 UINT16 WINAPI waveInUnprepareHeader16(HWAVEIN16,WAVEHDR*,UINT16);
451 UINT32 WINAPI waveInUnprepareHeader32(HWAVEIN32,WAVEHDR*,UINT32);
452 #define waveInUnprepareHeader WINELIB_NAME(waveInUnprepareHeader)
453 UINT16 WINAPI waveInAddBuffer16(HWAVEIN16,WAVEHDR*,UINT16);
454 UINT32 WINAPI waveInAddBuffer32(HWAVEIN32,WAVEHDR*,UINT32);
455 #define waveInAddBuffer WINELIB_NAME(waveInAddBuffer)
456 UINT16 WINAPI waveInStart16(HWAVEIN16);
457 UINT32 WINAPI waveInStart32(HWAVEIN32);
458 #define waveInStart WINELIB_NAME(waveInStart)
459 UINT16 WINAPI waveInStop16(HWAVEIN16);
460 UINT32 WINAPI waveInStop32(HWAVEIN32);
461 #define waveInStop WINELIB_NAME(waveInStop)
462 UINT16 WINAPI waveInReset16(HWAVEIN16);
463 UINT32 WINAPI waveInReset32(HWAVEIN32);
464 #define waveInReset WINELIB_NAME(waveInReset)
465 UINT16 WINAPI waveInGetPosition16(HWAVEIN16,LPMMTIME16,UINT16);
466 UINT32 WINAPI waveInGetPosition32(HWAVEIN32,LPMMTIME32,UINT32);
467 #define waveInGetPosition WINELIB_NAME(waveInGetPosition)
468 UINT16 WINAPI waveInGetID16(HWAVEIN16,UINT16*);
469 UINT32 WINAPI waveInGetID32(HWAVEIN32,UINT32*);
470 #define waveInGetID WINELIB_NAME(waveInGetID)
472 DWORD WINAPI waveInMessage16(HWAVEIN16,UINT16,DWORD,DWORD);
473 DWORD WINAPI waveInMessage32(HWAVEIN32,UINT32,DWORD,DWORD);
474 #define waveInMessage WINELIB_NAME(waveInMessage)
476 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
477 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
478 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
479 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
480 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
481 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
482 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
484 typedef HMIDIIN16 *LPHMIDIIN16;
485 typedef HMIDIOUT16 *LPHMIDIOUT16;
486 typedef LPDRVCALLBACK16 LPMIDICALLBACK16;
487 typedef LPDRVCALLBACK32 LPMIDICALLBACK32;
488 DECL_WINELIB_TYPE(LPMIDICALLBACK)
489 #define MIDIPATCHSIZE 128
490 typedef WORD PATCHARRAY[MIDIPATCHSIZE];
491 typedef WORD *LPPATCHARRAY;
492 typedef WORD KEYARRAY[MIDIPATCHSIZE];
493 typedef WORD *LPKEYARRAY;
495 #define MIM_OPEN MM_MIM_OPEN
496 #define MIM_CLOSE MM_MIM_CLOSE
497 #define MIM_DATA MM_MIM_DATA
498 #define MIM_LONGDATA MM_MIM_LONGDATA
499 #define MIM_ERROR MM_MIM_ERROR
500 #define MIM_LONGERROR MM_MIM_LONGERROR
501 #define MOM_OPEN MM_MOM_OPEN
502 #define MOM_CLOSE MM_MOM_CLOSE
503 #define MOM_DONE MM_MOM_DONE
505 /* device ID for MIDI mapper */
507 #define MIDIMAPPER (-1)
508 #define MIDI_MAPPER (-1)
510 /* flags for wFlags parm of
511 midiOutCachePatches(),
512 midiOutCacheDrumPatches() */
513 #define MIDI_CACHE_ALL 1
514 #define MIDI_CACHE_BESTFIT 2
515 #define MIDI_CACHE_QUERY 3
516 #define MIDI_UNCACHE 4
519 WORD wMid; /* manufacturer ID */
520 WORD wPid; /* product ID */
521 MMVERSION16 vDriverVersion; /* version of the driver */
522 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
523 WORD wTechnology; /* type of device */
524 WORD wVoices; /* # of voices (internal synth only) */
525 WORD wNotes; /* max # of notes (internal synth only) */
526 WORD wChannelMask; /* channels used (internal synth only) */
527 DWORD dwSupport; /* functionality supported by driver */
528 } MIDIOUTCAPS16, *LPMIDIOUTCAPS16;
531 WORD wMid; /* manufacturer ID */
532 WORD wPid; /* product ID */
533 MMVERSION32 vDriverVersion; /* version of the driver */
534 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
535 WORD wTechnology; /* type of device */
536 WORD wVoices; /* # of voices (internal synth only) */
537 WORD wNotes; /* max # of notes (internal synth only) */
538 WORD wChannelMask; /* channels used (internal synth only) */
539 DWORD dwSupport; /* functionality supported by driver */
540 } MIDIOUTCAPS32A, *LPMIDIOUTCAPS32A;
543 WORD wMid; /* manufacturer ID */
544 WORD wPid; /* product ID */
545 MMVERSION32 vDriverVersion; /* version of the driver */
546 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
547 WORD wTechnology; /* type of device */
548 WORD wVoices; /* # of voices (internal synth only) */
549 WORD wNotes; /* max # of notes (internal synth only) */
550 WORD wChannelMask; /* channels used (internal synth only) */
551 DWORD dwSupport; /* functionality supported by driver */
552 } MIDIOUTCAPS32W, *LPMIDIOUTCAPS32W;
554 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS)
555 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS)
557 #define MOD_MIDIPORT 1 /* output port */
558 #define MOD_SYNTH 2 /* generic internal synth */
559 #define MOD_SQSYNTH 3 /* square wave internal synth */
560 #define MOD_FMSYNTH 4 /* FM internal synth */
561 #define MOD_MAPPER 5 /* MIDI mapper */
563 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
564 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
565 #define MIDICAPS_CACHE 0x0004
566 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
569 WORD wMid; /* manufacturer ID */
570 WORD wPid; /* product ID */
571 MMVERSION16 vDriverVersion; /* version of the driver */
572 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
573 DWORD dwSupport; /* included in win95 and higher */
574 } MIDIINCAPS16, *LPMIDIINCAPS16;
577 WORD wMid; /* manufacturer ID */
578 WORD wPid; /* product ID */
579 MMVERSION32 vDriverVersion; /* version of the driver */
580 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
581 DWORD dwSupport; /* included in win95 and higher */
582 } MIDIINCAPS32A, *LPMIDIINCAPS32A;
585 WORD wMid; /* manufacturer ID */
586 WORD wPid; /* product ID */
587 MMVERSION32 vDriverVersion; /* version of the driver */
588 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
589 DWORD dwSupport; /* included in win95 and higher */
590 } MIDIINCAPS32W, *LPMIDIINCAPS32W;
592 DECL_WINELIB_TYPE_AW(MIDIINCAPS)
593 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
596 LPSTR lpData; /* pointer to locked data block */
597 DWORD dwBufferLength; /* length of data in data block */
598 DWORD dwBytesRecorded;/* used for input only */
599 DWORD dwUser; /* for client's use */
600 DWORD dwFlags; /* assorted flags (see defines) */
601 struct midihdr_tag *lpNext; /* reserved for driver */
602 DWORD reserved; /* reserved for driver */
603 } MIDIHDR, *LPMIDIHDR;
605 /* It seems that Win32 has a slightly different structure than Win 16.
609 LPSTR lpData; /* pointer to locked data block */
610 DWORD dwBufferLength; /* length of data in data block */
611 DWORD dwBytesRecorded;/* used for input only */
612 DWORD dwUser; /* for client's use */
613 DWORD dwFlags; /* assorted flags (see defines) */
614 struct midihdr_tag *lpNext; /* reserved for driver */
615 DWORD reserved; /* reserved for driver */
616 DWORD dwOffset; /* offset of playback in case of
618 DWORD dwReserved[4]; /* reserved for driver */
619 } MIDIHDR_WIN32, *LPMIDIHDR_WIN32;
621 #define MHDR_DONE 0x00000001 /* done bit */
622 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
623 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
624 #define MHDR_ISSTRM 0x00000008 /* FIXME is this a correct
625 * value ? Win32 only*/
629 } MIDIPROPTEMPO, *LPMIDIPROPTEMPO;
634 } MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV;
636 #define MIDIPROP_GET 0x40000000
637 #define MIDIPROP_SET 0x80000000
638 #define MIDIPROP_TEMPO 0x00000002
639 #define MIDIPROP_TIMEDIV 0x00000001
642 DWORD dwDeltaTime; /* Time, in MIDI ticks, between the previous
643 * event and the current event. */
644 DWORD dwStreamID; /* Reserved; must be zero. */
645 DWORD dwEvent; /* event => see MEVT_XXX macros */
646 DWORD dwParms[0]; /* extra pmts to dwEvent if F_LONG is set */
647 } MIDIEVENT, *LPMIDIEVENT;
649 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
650 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
652 #define MEVT_F_CALLBACK 0x40000000
653 #define MEVT_F_LONG 0x80000000
654 #define MEVT_F_SHORT 0x00000000
655 #define MEVT_COMMENT 0x82
656 #define MEVT_LONGMSG 0x80
657 #define MEVT_NOP 0x02
658 #define MEVT_SHORTMSG 0x00
659 #define MEVT_TEMPO 0x01
660 #define MEVT_VERSION 0x84
662 UINT16 WINAPI midiOutGetNumDevs16(void);
663 UINT32 WINAPI midiOutGetNumDevs32(void);
664 #define midiOutGetNumDevs WINELIB_NAME(midiOutGetNumDevs)
665 UINT16 WINAPI midiOutGetDevCaps16(UINT16,LPMIDIOUTCAPS16,UINT16);
666 UINT32 WINAPI midiOutGetDevCaps32A(UINT32,LPMIDIOUTCAPS32A,UINT32);
667 UINT32 WINAPI midiOutGetDevCaps32W(UINT32,LPMIDIOUTCAPS32W,UINT32);
668 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
669 UINT16 WINAPI midiOutGetVolume16(UINT16,DWORD*);
670 UINT32 WINAPI midiOutGetVolume32(UINT32,DWORD*);
671 #define midiOutGetVolume WINELIB_NAME(midiOutGetVolume)
672 UINT16 WINAPI midiOutSetVolume16(UINT16,DWORD);
673 UINT32 WINAPI midiOutSetVolume32(UINT32,DWORD);
674 #define midiOutSetVolume WINELIB_NAME(midiOutSetVolume)
675 UINT16 WINAPI midiOutGetErrorText16(UINT16,LPSTR,UINT16);
676 UINT32 WINAPI midiOutGetErrorText32A(UINT32,LPSTR,UINT32);
677 UINT32 WINAPI midiOutGetErrorText32W(UINT32,LPWSTR,UINT32);
678 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
679 UINT16 WINAPI midiGetErrorText(UINT16,LPSTR,UINT16);
680 UINT16 WINAPI midiOutOpen16(HMIDIOUT16*,UINT16,DWORD,DWORD,DWORD);
681 UINT32 WINAPI midiOutOpen32(HMIDIOUT32*,UINT32,DWORD,DWORD,DWORD);
682 #define midiOutOpen WINELIB_NAME(midiOutOpen)
683 UINT16 WINAPI midiOutClose16(HMIDIOUT16);
684 UINT32 WINAPI midiOutClose32(HMIDIOUT32);
685 #define midiOutClose WINELIB_NAME(midiOutClose)
686 UINT16 WINAPI midiOutPrepareHeader16(HMIDIOUT16,MIDIHDR*,UINT16);
687 UINT32 WINAPI midiOutPrepareHeader32(HMIDIOUT32,MIDIHDR*,UINT32);
688 #define midiOutPrepareHeader WINELIB_NAME(midiOutPrepareHeader)
689 UINT16 WINAPI midiOutUnprepareHeader16(HMIDIOUT16,MIDIHDR*,UINT16);
690 UINT32 WINAPI midiOutUnprepareHeader32(HMIDIOUT32,MIDIHDR*,UINT32);
691 #define midiOutUnprepareHeader WINELIB_NAME(midiOutUnprepareHeader)
692 UINT16 WINAPI midiOutShortMsg16(HMIDIOUT16,DWORD);
693 UINT32 WINAPI midiOutShortMsg32(HMIDIOUT32,DWORD);
694 #define midiOutShortMsg WINELIB_NAME(midiOutShortMsg)
695 UINT16 WINAPI midiOutLongMsg16(HMIDIOUT16,MIDIHDR*,UINT16);
696 UINT32 WINAPI midiOutLongMsg32(HMIDIOUT32,MIDIHDR*,UINT32);
697 #define midiOutLongMsg WINELIB_NAME(midiOutLongMsg)
698 UINT16 WINAPI midiOutReset16(HMIDIOUT16);
699 UINT32 WINAPI midiOutReset32(HMIDIOUT32);
700 #define midiOutReset WINELIB_NAME(midiOutReset)
701 UINT16 WINAPI midiOutCachePatches16(HMIDIOUT16,UINT16,WORD*,UINT16);
702 UINT32 WINAPI midiOutCachePatches32(HMIDIOUT32,UINT32,WORD*,UINT32);
703 #define midiOutCachePatches WINELIB_NAME(midiOutCachePatches)
704 UINT16 WINAPI midiOutCacheDrumPatches16(HMIDIOUT16,UINT16,WORD*,UINT16);
705 UINT32 WINAPI midiOutCacheDrumPatches32(HMIDIOUT32,UINT32,WORD*,UINT32);
706 #define midiOutCacheDrumPatches WINELIB_NAME(midiOutCacheDrumPatches)
707 UINT16 WINAPI midiOutGetID16(HMIDIOUT16,UINT16*);
708 UINT32 WINAPI midiOutGetID32(HMIDIOUT32,UINT32*);
709 #define midiOutGetID WINELIB_NAME(midiOutGetID)
711 DWORD WINAPI midiOutMessage16(HMIDIOUT16,UINT16,DWORD,DWORD);
712 DWORD WINAPI midiOutMessage32(HMIDIOUT32,UINT32,DWORD,DWORD);
713 #define midiOutMessage WINELIB_NAME(midiOutMessage)
715 UINT16 WINAPI midiInGetNumDevs16(void);
716 UINT32 WINAPI midiInGetNumDevs32(void);
717 #define midiInGetNumDevs WINELIB_NAME(midiInGetNumDevs)
718 UINT16 WINAPI midiInGetDevCaps16(UINT16,LPMIDIINCAPS16,UINT16);
719 UINT32 WINAPI midiInGetDevCaps32A(UINT32,LPMIDIINCAPS32A,UINT32);
720 UINT32 WINAPI midiInGetDevCaps32W(UINT32,LPMIDIINCAPS32W,UINT32);
721 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
722 UINT16 WINAPI midiInGetErrorText16(UINT16,LPSTR,UINT16);
723 UINT32 WINAPI midiInGetErrorText32A(UINT32,LPSTR,UINT32);
724 UINT32 WINAPI midiInGetErrorText32W(UINT32,LPWSTR,UINT32);
725 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
726 UINT16 WINAPI midiInOpen16(HMIDIIN16*,UINT16,DWORD,DWORD,DWORD);
727 UINT32 WINAPI midiInOpen32(HMIDIIN32*,UINT32,DWORD,DWORD,DWORD);
728 #define midiInOpen WINELIB_NAME(midiInOpen)
729 UINT16 WINAPI midiInClose16(HMIDIIN16);
730 UINT32 WINAPI midiInClose32(HMIDIIN32);
731 #define midiInClose WINELIB_NAME(midiInClose)
732 UINT16 WINAPI midiInPrepareHeader16(HMIDIIN16,MIDIHDR*,UINT16);
733 UINT32 WINAPI midiInPrepareHeader32(HMIDIIN32,MIDIHDR*,UINT32);
734 #define midiInPrepareHeader WINELIB_NAME(midiInPrepareHeader)
735 UINT16 WINAPI midiInUnprepareHeader16(HMIDIIN16,MIDIHDR*,UINT16);
736 UINT32 WINAPI midiInUnprepareHeader32(HMIDIIN32,MIDIHDR*,UINT32);
737 #define midiInUnprepareHeader WINELIB_NAME(midiInUnprepareHeader)
738 UINT16 WINAPI midiInAddBuffer16(HMIDIIN16,MIDIHDR*,UINT16);
739 UINT32 WINAPI midiInAddBuffer32(HMIDIIN32,MIDIHDR*,UINT32);
740 #define midiInAddBuffer WINELIB_NAME(midiInAddBuffer)
741 UINT16 WINAPI midiInStart16(HMIDIIN16);
742 UINT32 WINAPI midiInStart32(HMIDIIN32);
743 #define midiInStart WINELIB_NAME(midiInStart)
744 UINT16 WINAPI midiInStop16(HMIDIIN16);
745 UINT32 WINAPI midiInStop32(HMIDIIN32);
746 #define midiInStop WINELIB_NAME(midiInStop)
747 UINT16 WINAPI midiInReset16(HMIDIIN16);
748 UINT32 WINAPI midiInReset32(HMIDIIN32);
749 #define midiInReset WINELIB_NAME(midiInReset)
750 UINT16 WINAPI midiInGetID16(HMIDIIN16,UINT16*);
751 UINT32 WINAPI midiInGetID32(HMIDIIN32,UINT32*);
752 #define midiInGetID WINELIB_NAME(midiInGetID)
753 DWORD WINAPI midiInMessage16(HMIDIIN16,UINT16,DWORD,DWORD);
754 DWORD WINAPI midiInMessage32(HMIDIIN32,UINT32,DWORD,DWORD);
755 #define midiInMessage WINELIB_NAME(midiInMessage)
757 MMRESULT16 WINAPI midiStreamClose16(HMIDISTRM16 hms);
758 MMRESULT32 WINAPI midiStreamClose32(HMIDISTRM32 hms);
759 #define midiStreamClose WINELIB_NAME(midiStreamClose)
760 MMRESULT32 WINAPI midiStreamOpen32(HMIDISTRM32* phms, LPUINT32 uDeviceID, DWORD cMidi,
761 DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen);
762 MMRESULT16 WINAPI midiStreamOpen16(HMIDISTRM16* phms, LPUINT16 devid, DWORD cMidi,
763 DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen);
764 #define midiStreamOpen WINELIB_NAME(midiStreamOpen)
765 MMRESULT16 WINAPI midiStreamOut16(HMIDISTRM16 hms, LPMIDIHDR lpMidiHdr, UINT16 cbMidiHdr);
766 MMRESULT32 WINAPI midiStreamOut32(HMIDISTRM32 hms, LPMIDIHDR lpMidiHdr, UINT32 cbMidiHdr);
767 #define midiStreamOut WINELIB_NAME(midiStreamOut)
768 MMRESULT16 WINAPI midiStreamPause16(HMIDISTRM16 hms);
769 MMRESULT32 WINAPI midiStreamPause32(HMIDISTRM32 hms);
770 #define midiStreamPause WINELIB_NAME(midiStreamPause)
771 MMRESULT16 WINAPI midiStreamPosition16(HMIDISTRM16 hms, LPMMTIME16 lpmmt, UINT16 cbmmt);
772 MMRESULT32 WINAPI midiStreamPosition32(HMIDISTRM32 hms, LPMMTIME32 lpmmt, UINT32 cbmmt);
773 #define midiStreamPosition WINELIB_NAME(midiStreamPosition)
774 MMRESULT16 WINAPI midiStreamProperty16(HMIDISTRM16 hms, LPBYTE lpPropData, DWORD dwProperty);
775 MMRESULT32 WINAPI midiStreamProperty32(HMIDISTRM32 hms, LPBYTE lpPropData, DWORD dwProperty);
776 #define midiStreamProperty WINELIB_NAME(midiStreamProperty)
777 MMRESULT16 WINAPI midiStreamRestart16(HMIDISTRM16 hms);
778 MMRESULT32 WINAPI midiStreamRestart32(HMIDISTRM32 hms);
779 #define midiStreamRestart WINELIB_NAME(midiStreamRestart)
780 MMRESULT16 WINAPI midiStreamStop16(HMIDISTRM16 hms);
781 MMRESULT32 WINAPI midiStreamStop32(HMIDISTRM32 hms);
782 #define midiStreamStop WINELIB_NAME(midiStreamStop)
784 #define AUX_MAPPER (-1)
787 WORD wMid; /* manufacturer ID */
788 WORD wPid; /* product ID */
789 MMVERSION16 vDriverVersion; /* version of the driver */
790 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
791 WORD wTechnology; /* type of device */
792 DWORD dwSupport; /* functionality supported by driver */
793 } AUXCAPS16, *LPAUXCAPS16;
796 WORD wMid; /* manufacturer ID */
797 WORD wPid; /* product ID */
798 MMVERSION32 vDriverVersion; /* version of the driver */
799 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
800 WORD wTechnology; /* type of device */
801 WORD wReserved1; /* padding */
802 DWORD dwSupport; /* functionality supported by driver */
803 } AUXCAPS32A, *LPAUXCAPS32A;
806 WORD wMid; /* manufacturer ID */
807 WORD wPid; /* product ID */
808 MMVERSION32 vDriverVersion; /* version of the driver */
809 WCHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
810 WORD wTechnology; /* type of device */
811 WORD wReserved1; /* padding */
812 DWORD dwSupport; /* functionality supported by driver */
813 } AUXCAPS32W, *LPAUXCAPS32W;
815 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
816 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
818 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
819 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
821 UINT16 WINAPI auxGetNumDevs16(void);
822 UINT32 WINAPI auxGetNumDevs32(void);
823 #define auxGetNumDevs WINELIB_NAME(auxGetNumDevs)
824 UINT16 WINAPI auxGetDevCaps16 (UINT16,LPAUXCAPS16,UINT16);
825 UINT32 WINAPI auxGetDevCaps32A(UINT32,LPAUXCAPS32A,UINT32);
826 UINT32 WINAPI auxGetDevCaps32W(UINT32,LPAUXCAPS32W,UINT32);
827 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
828 UINT16 WINAPI auxSetVolume16(UINT16,DWORD);
829 UINT32 WINAPI auxSetVolume32(UINT32,DWORD);
830 #define auxSetVolume WINELIB_NAME(auxSetVolume)
832 UINT16 WINAPI auxGetVolume16(UINT16,LPDWORD);
833 UINT32 WINAPI auxGetVolume32(UINT32,LPDWORD);
834 #define auxGetVolume WINELIB_NAME(auxGetVolume)
836 DWORD WINAPI auxOutMessage16(UINT16,UINT16,DWORD,DWORD);
837 DWORD WINAPI auxOutMessage32(UINT32,UINT32,DWORD,DWORD);
838 #define auxOutMessage WINELIB_NAME(auxOutMessage)
840 #define TIMERR_NOERROR (0) /* no error */
841 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
842 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
844 typedef void (CALLBACK *LPTIMECALLBACK16)(UINT16 uTimerID, UINT16 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
845 typedef void (CALLBACK *LPTIMECALLBACK32)(UINT32 uTimerID, UINT32 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
846 DECL_WINELIB_TYPE(LPTIMECALLBACK)
848 #define TIME_ONESHOT 0x0000 /* program timer for single event */
849 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
850 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
851 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
852 #define TIME_CALLBACK_EVENT_PULSE 0x0020/* callback is event - use PulseEvent */
855 UINT16 wPeriodMin; /* minimum period supported */
856 UINT16 wPeriodMax; /* maximum period supported */
857 } TIMECAPS16,*LPTIMECAPS16;
862 } TIMECAPS32, *LPTIMECAPS32;
864 DECL_WINELIB_TYPE(TIMECAPS)
865 DECL_WINELIB_TYPE(LPTIMECAPS)
867 MMRESULT16 WINAPI timeGetSystemTime16(LPMMTIME16,UINT16);
868 MMRESULT32 WINAPI timeGetSystemTime32(LPMMTIME32,UINT32);
869 #define timeGetSystemTime WINELIB_NAME(timeGetSystemTime)
870 DWORD WINAPI timeGetTime(void); /* same for win32/win16 */
871 MMRESULT16 WINAPI timeSetEvent16(UINT16,UINT16,LPTIMECALLBACK16,DWORD,UINT16);
872 MMRESULT32 WINAPI timeSetEvent32(UINT32,UINT32,LPTIMECALLBACK32,DWORD,UINT32);
873 #define timeSetEvent WINELIB_NAME(timeSetEvent)
874 MMRESULT16 WINAPI timeKillEvent16(UINT16);
875 MMRESULT32 WINAPI timeKillEvent32(UINT32);
876 #define timeKillEvent WINELIB_NAME(timeKillEvent)
877 MMRESULT16 WINAPI timeGetDevCaps16(LPTIMECAPS16,UINT16);
878 MMRESULT32 WINAPI timeGetDevCaps32(LPTIMECAPS32,UINT32);
879 #define timeGetDevCaps WINELIB_NAME(timeGetDevCaps)
880 MMRESULT16 WINAPI timeBeginPeriod16(UINT16);
881 MMRESULT32 WINAPI timeBeginPeriod32(UINT32);
882 #define timeBeginPeriod WINELIB_NAME(timeBeginPeriod)
883 MMRESULT16 WINAPI timeEndPeriod16(UINT16);
884 MMRESULT32 WINAPI timeEndPeriod32(UINT32);
885 #define timeEndPeriod WINELIB_NAME(timeEndPeriod)
887 #define JOYERR_NOERROR (0) /* no error */
888 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
889 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
890 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
892 /* JOYINFO, JOYINFOEX, MM_JOY* */
893 #define JOY_BUTTON1 0x0001
894 #define JOY_BUTTON2 0x0002
895 #define JOY_BUTTON3 0x0004
896 #define JOY_BUTTON4 0x0008
897 #define JOY_BUTTON1CHG 0x0100
898 #define JOY_BUTTON2CHG 0x0200
899 #define JOY_BUTTON3CHG 0x0400
900 #define JOY_BUTTON4CHG 0x0800
902 #define JOYSTICKID1 0
903 #define JOYSTICKID2 1
906 #define JOYCAPS_HASZ 0x0001
907 #define JOYCAPS_HASR 0x0002
908 #define JOYCAPS_HASU 0x0004
909 #define JOYCAPS_HASV 0x0008
910 #define JOYCAPS_HASPOV 0x0010
911 #define JOYCAPS_POV4DIR 0x0020
912 #define JOYCAPS_POVCTS 0x0040
914 /* JOYINFOEX stuff */
915 #define JOY_POVCENTERED (WORD) -1
916 #define JOY_POVFORWARD 0
917 #define JOY_POVRIGHT 9000
918 #define JOY_POVBACKWARD 18000
919 #define JOY_POVLEFT 27000
921 #define JOY_RETURNX 0x00000001
922 #define JOY_RETURNY 0x00000002
923 #define JOY_RETURNZ 0x00000004
924 #define JOY_RETURNR 0x00000008
925 #define JOY_RETURNU 0x00000010
926 #define JOY_RETURNV 0x00000020
927 #define JOY_RETURNPOV 0x00000040
928 #define JOY_RETURNBUTTONS 0x00000080
929 #define JOY_RETURNRAWDATA 0x00000100
930 #define JOY_RETURNPOVCTS 0x00000200
931 #define JOY_RETURNCENTERED 0x00000400
932 #define JOY_USEDEADZONE 0x00000800
933 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
934 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
935 JOY_RETURNPOV | JOY_RETURNBUTTONS)
936 #define JOY_CAL_READALWAYS 0x00010000
937 #define JOY_CAL_READXYONLY 0x00020000
938 #define JOY_CAL_READ3 0x00040000
939 #define JOY_CAL_READ4 0x00080000
940 #define JOY_CAL_READXONLY 0x00100000
941 #define JOY_CAL_READYONLY 0x00200000
942 #define JOY_CAL_READ5 0x00400000
943 #define JOY_CAL_READ6 0x00800000
944 #define JOY_CAL_READZONLY 0x01000000
945 #define JOY_CAL_READRONLY 0x02000000
946 #define JOY_CAL_READUONLY 0x04000000
947 #define JOY_CAL_READVONLY 0x08000000
950 WORD wMid; /* manufacturer ID */
951 WORD wPid; /* product ID */
952 char szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
953 UINT16 wXmin; /* minimum x position value */
954 UINT16 wXmax; /* maximum x position value */
955 UINT16 wYmin; /* minimum y position value */
956 UINT16 wYmax; /* maximum y position value */
957 UINT16 wZmin; /* minimum z position value */
958 UINT16 wZmax; /* maximum z position value */
959 UINT16 wNumButtons; /* number of buttons */
960 UINT16 wPeriodMin; /* minimum message period when captured */
961 UINT16 wPeriodMax; /* maximum message period when captured */
962 /* win95,nt4 additions: */
963 UINT16 wRmin; /* minimum r position value */
964 UINT16 wRmax; /* maximum r position value */
965 UINT16 wUmin; /* minimum u (5th axis) position value */
966 UINT16 wUmax; /* maximum u (5th axis) position value */
967 UINT16 wVmin; /* minimum v (6th axis) position value */
968 UINT16 wVmax; /* maximum v (6th axis) position value */
969 UINT16 wCaps; /* joystick capabilites */
970 UINT16 wMaxAxes; /* maximum number of axes supported */
971 UINT16 wNumAxes; /* number of axes in use */
972 UINT16 wMaxButtons; /* maximum number of buttons supported */
973 CHAR szRegKey[MAXPNAMELEN]; /* registry key */
974 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME]; /* OEM VxD in use */
975 } JOYCAPS16, *LPJOYCAPS16;
980 CHAR szPname[MAXPNAMELEN];
1000 CHAR szRegKey[MAXPNAMELEN];
1001 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
1002 } JOYCAPS32A, *LPJOYCAPS32A;
1007 WCHAR szPname[MAXPNAMELEN];
1027 WCHAR szRegKey[MAXPNAMELEN];
1028 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
1029 } JOYCAPS32W, *LPJOYCAPS32W;
1030 DECL_WINELIB_TYPE_AW(JOYCAPS)
1031 DECL_WINELIB_TYPE_AW(LPJOYCAPS)
1034 UINT16 wXpos; /* x position */
1035 UINT16 wYpos; /* y position */
1036 UINT16 wZpos; /* z position */
1037 UINT16 wButtons; /* button states */
1038 } JOYINFO16, *LPJOYINFO16;
1045 } JOYINFO32, *LPJOYINFO32;
1048 DWORD dwSize; /* size of structure */
1049 DWORD dwFlags; /* flags to indicate what to return */
1050 DWORD dwXpos; /* x position */
1051 DWORD dwYpos; /* y position */
1052 DWORD dwZpos; /* z position */
1053 DWORD dwRpos; /* rudder/4th axis position */
1054 DWORD dwUpos; /* 5th axis position */
1055 DWORD dwVpos; /* 6th axis position */
1056 DWORD dwButtons; /* button states */
1057 DWORD dwButtonNumber; /* current button number pressed */
1058 DWORD dwPOV; /* point of view state */
1059 DWORD dwReserved1; /* reserved for communication between winmm & driver */
1060 DWORD dwReserved2; /* reserved for future expansion */
1061 } JOYINFOEX,*LPJOYINFOEX;
1063 DECL_WINELIB_TYPE(JOYINFO)
1064 DECL_WINELIB_TYPE(LPJOYINFO)
1066 MMRESULT16 WINAPI joyGetDevCaps16 (UINT16,LPJOYCAPS16 ,UINT16);
1067 MMRESULT32 WINAPI joyGetDevCaps32A(UINT32,LPJOYCAPS32A,UINT32);
1068 MMRESULT32 WINAPI joyGetDevCaps32W(UINT32,LPJOYCAPS32W,UINT32);
1069 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
1070 UINT16 WINAPI joyGetNumDevs16(void);
1071 UINT32 WINAPI joyGetNumDevs32(void);
1072 #define joyGetNumDevs WINELIB_NAME(joyGetNumDevs)
1073 MMRESULT16 WINAPI joyGetPos16(UINT16,LPJOYINFO16);
1074 MMRESULT32 WINAPI joyGetPos32(UINT32,LPJOYINFO32);
1075 #define joyGetPos WINELIB_NAME(joyGetPos)
1076 MMRESULT32 WINAPI joyGetPosEx(UINT32,LPJOYINFOEX);
1077 MMRESULT16 WINAPI joyGetThreshold16(UINT16,UINT16*);
1078 MMRESULT32 WINAPI joyGetThreshold32(UINT32,UINT32*);
1079 #define joyGetThreshold WINELIB_NAME(joyGetThreshold)
1080 MMRESULT16 WINAPI joyReleaseCapture16(UINT16);
1081 MMRESULT32 WINAPI joyReleaseCapture32(UINT32);
1082 #define joyReleaseCapture WINELIB_NAME(joyReleaseCapture)
1083 MMRESULT16 WINAPI joySetCapture16(HWND16,UINT16,UINT16,BOOL16);
1084 MMRESULT32 WINAPI joySetCapture32(HWND32,UINT32,UINT32,BOOL32);
1085 #define joySetCapture WINELIB_NAME(joySetCapture)
1086 MMRESULT16 WINAPI joySetThreshold16(UINT16,UINT16);
1087 MMRESULT32 WINAPI joySetThreshold32(UINT32,UINT32);
1088 #define joySetThreshold WINELIB_NAME(joySetThreshold)
1091 WORD wMid; /* manufacturer id */
1092 WORD wPid; /* product id */
1093 MMVERSION16 vDriverVersion; /* version of the driver */
1094 CHAR szPname[MAXPNAMELEN]; /* product name */
1095 DWORD fdwSupport; /* misc. support bits */
1096 DWORD cDestinations; /* count of destinations */
1097 } MIXERCAPS16,*LPMIXERCAPS16;
1102 MMVERSION32 vDriverVersion;
1103 CHAR szPname[MAXPNAMELEN];
1105 DWORD cDestinations;
1106 } MIXERCAPS32A,*LPMIXERCAPS32A;
1111 MMVERSION32 vDriverVersion;
1112 WCHAR szPname[MAXPNAMELEN];
1114 DWORD cDestinations;
1115 } MIXERCAPS32W,*LPMIXERCAPS32W;
1117 DECL_WINELIB_TYPE_AW(MIXERCAPS)
1118 DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
1120 #define MIXER_SHORT_NAME_CHARS 16
1121 #define MIXER_LONG_NAME_CHARS 64
1123 /* MIXERLINE.fdwLine */
1124 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1125 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1126 #define MIXERLINE_LINEF_SOURCE 0x80000000
1128 /* MIXERLINE.dwComponentType */
1129 /* component types for destinations and sources */
1130 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1131 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1132 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1133 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1134 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1135 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1136 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1137 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1138 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1139 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1140 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1142 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1143 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1144 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1145 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1146 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1147 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1148 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1149 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1150 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1151 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1152 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1153 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1154 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1156 /* MIXERLINE.Target.dwType */
1157 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1158 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1159 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1160 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1161 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1162 #define MIXERLINE_TARGETTYPE_AUX 5
1165 DWORD cbStruct; /* size of MIXERLINE structure */
1166 DWORD dwDestination; /* zero based destination index */
1167 DWORD dwSource; /* zero based source index (if source) */
1168 DWORD dwLineID; /* unique line id for mixer device */
1169 DWORD fdwLine; /* state/information about line */
1170 DWORD dwUser; /* driver specific information */
1171 DWORD dwComponentType; /* component type line connects to */
1172 DWORD cChannels; /* number of channels line supports */
1173 DWORD cConnections; /* number of connections [possible] */
1174 DWORD cControls; /* number of controls at this line */
1175 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1176 CHAR szName[MIXER_LONG_NAME_CHARS];
1178 DWORD dwType; /* MIXERLINE_TARGETTYPE_xxxx */
1179 DWORD dwDeviceID; /* target device ID of device type */
1180 WORD wMid; /* of target device */
1182 MMVERSION16 vDriverVersion; /* " */
1183 CHAR szPname[MAXPNAMELEN]; /* " */
1185 } MIXERLINE16, *LPMIXERLINE16;
1189 DWORD dwDestination;
1194 DWORD dwComponentType;
1198 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1199 CHAR szName[MIXER_LONG_NAME_CHARS];
1205 MMVERSION32 vDriverVersion;
1206 CHAR szPname[MAXPNAMELEN];
1208 } MIXERLINE32A, *LPMIXERLINE32A;
1212 DWORD dwDestination;
1217 DWORD dwComponentType;
1221 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1222 WCHAR szName[MIXER_LONG_NAME_CHARS];
1228 MMVERSION32 vDriverVersion;
1229 WCHAR szPname[MAXPNAMELEN];
1231 } MIXERLINE32W, *LPMIXERLINE32W;
1233 DECL_WINELIB_TYPE_AW(MIXERLINE)
1234 DECL_WINELIB_TYPE_AW(LPMIXERLINE)
1236 /* MIXERCONTROL.fdwControl */
1237 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1238 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1239 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1241 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1242 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1243 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1244 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1245 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1246 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1247 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1248 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1249 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1250 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1252 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1254 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1255 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1257 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1259 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1260 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1262 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1263 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1265 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1266 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1267 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1268 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1269 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1270 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1271 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1273 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1274 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1275 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1276 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1277 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1278 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1279 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1280 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1281 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1282 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1283 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1284 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1285 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1286 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1287 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1288 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1289 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1290 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1291 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1292 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1293 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1294 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1295 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1296 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1297 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1298 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1299 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1300 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1301 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1302 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1303 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1307 DWORD cbStruct; /* size in bytes of MIXERCONTROL */
1308 DWORD dwControlID; /* unique control id for mixer device */
1309 DWORD dwControlType; /* MIXERCONTROL_CONTROLTYPE_xxx */
1310 DWORD fdwControl; /* MIXERCONTROL_CONTROLF_xxx */
1311 DWORD cMultipleItems; /* if MIXERCONTROL_CONTROLF_MULTIPLE set */
1312 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1313 CHAR szName[MIXER_LONG_NAME_CHARS];
1316 LONG lMinimum; /* signed minimum for this control */
1317 LONG lMaximum; /* signed maximum for this control */
1320 DWORD dwMinimum; /* unsigned minimum for this control */
1321 DWORD dwMaximum; /* unsigned maximum for this control */
1323 DWORD dwReserved[6];
1326 DWORD cSteps; /* # of steps between min & max */
1327 DWORD cbCustomData; /* size in bytes of custom data */
1328 DWORD dwReserved[6]; /* !!! needed? we have cbStruct.... */
1330 } MIXERCONTROL16, *LPMIXERCONTROL16;
1335 DWORD dwControlType;
1337 DWORD cMultipleItems;
1338 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1339 CHAR szName[MIXER_LONG_NAME_CHARS];
1349 DWORD dwReserved[6];
1354 DWORD dwReserved[6];
1356 } MIXERCONTROL32A, *LPMIXERCONTROL32A;
1361 DWORD dwControlType;
1363 DWORD cMultipleItems;
1364 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1365 WCHAR szName[MIXER_LONG_NAME_CHARS];
1375 DWORD dwReserved[6];
1380 DWORD dwReserved[6];
1382 } MIXERCONTROL32W, *LPMIXERCONTROL32W;
1384 DECL_WINELIB_TYPE_AW(MIXERCONTROL)
1385 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
1388 DWORD cbStruct; /* size in bytes of MIXERLINECONTROLS */
1389 DWORD dwLineID; /* line id (from MIXERLINE.dwLineID) */
1391 DWORD dwControlID; /* MIXER_GETLINECONTROLSF_ONEBYID */
1392 DWORD dwControlType; /* MIXER_GETLINECONTROLSF_ONEBYTYPE */
1394 DWORD cControls; /* count of controls pmxctrl points to */
1395 DWORD cbmxctrl; /* size in bytes of _one_ MIXERCONTROL */
1396 LPMIXERCONTROL16 pamxctrl;/* pointer to first MIXERCONTROL array */
1397 } MIXERLINECONTROLS16, *LPMIXERLINECONTROLS16;
1404 DWORD dwControlType;
1408 LPMIXERCONTROL32A pamxctrl;
1409 } MIXERLINECONTROLS32A, *LPMIXERLINECONTROLS32A;
1416 DWORD dwControlType;
1420 LPMIXERCONTROL32W pamxctrl;
1421 } MIXERLINECONTROLS32W, *LPMIXERLINECONTROLS32W;
1423 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
1424 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
1427 DWORD cbStruct; /* size in bytes of MIXERCONTROLDETAILS */
1428 DWORD dwControlID; /* control id to get/set details on */
1429 DWORD cChannels; /* number of channels in paDetails array */
1431 HWND16 hwndOwner; /* for MIXER_SETCONTROLDETAILSF_CUSTOM */
1432 DWORD cMultipleItems; /* if _MULTIPLE, the number of items per channel */
1434 DWORD cbDetails; /* size of _one_ details_XX struct */
1435 LPVOID paDetails; /* pointer to array of details_XX structs */
1436 } MIXERCONTROLDETAILS16,*LPMIXERCONTROLDETAILS16;
1444 DWORD cMultipleItems;
1448 } MIXERCONTROLDETAILS32,*LPMIXERCONTROLDETAILS32;
1450 DECL_WINELIB_TYPE(MIXERCONTROLDETAILS)
1451 DECL_WINELIB_TYPE(LPMIXERCONTROLDETAILS)
1456 CHAR szName[MIXER_LONG_NAME_CHARS];
1457 } MIXERCONTROLDETAILS_LISTTEXT16,*LPMIXERCONTROLDETAILS_LISTTEXT16;
1462 CHAR szName[MIXER_LONG_NAME_CHARS];
1463 } MIXERCONTROLDETAILS_LISTTEXT32A,*LPMIXERCONTROLDETAILS_LISTTEXT32A;
1468 WCHAR szName[MIXER_LONG_NAME_CHARS];
1469 } MIXERCONTROLDETAILS_LISTTEXT32W,*LPMIXERCONTROLDETAILS_LISTTEXT32W;
1471 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
1472 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
1474 /* MIXER_GETCONTROLDETAILSF_VALUE */
1477 } MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1481 } MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1485 } MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1487 /* bits passed to mixerGetLineInfo.fdwInfo */
1488 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1489 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1490 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1491 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1492 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1493 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1495 /* bitmask passed to mixerGetLineControl */
1496 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1497 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1498 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1499 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1501 /* bitmask passed to mixerGetControlDetails */
1502 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1503 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1504 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1506 /* bitmask passed to mixerSetControlDetails */
1507 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1508 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1509 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1511 UINT16 WINAPI mixerGetNumDevs16(void);
1512 UINT32 WINAPI mixerGetNumDevs32(void);
1513 #define mixerGetNumDevs WINELIB_NAME(mixerGetNumDevs)
1514 UINT16 WINAPI mixerOpen16(LPHMIXER16,UINT16,DWORD,DWORD,DWORD);
1515 UINT32 WINAPI mixerOpen32(LPHMIXER32,UINT32,DWORD,DWORD,DWORD);
1516 #define mixerOpen WINELIB_NAME(mixerOpen)
1517 UINT16 WINAPI mixerClose16(HMIXER16);
1518 UINT32 WINAPI mixerClose32(HMIXER32);
1519 #define mixerClose WINELIB_NAME(mixerClose)
1520 UINT16 WINAPI mixerMessage16(HMIXER16,UINT16,DWORD,DWORD);
1521 UINT32 WINAPI mixerMessage32(HMIXER32,UINT32,DWORD,DWORD);
1522 #define mixerMessage WINELIB_NAME(mixerMessage)
1523 UINT16 WINAPI mixerGetDevCaps16(UINT16,LPMIXERCAPS16,UINT16);
1524 UINT32 WINAPI mixerGetDevCaps32A(UINT32,LPMIXERCAPS32A,UINT32);
1525 UINT32 WINAPI mixerGetDevCaps32W(UINT32,LPMIXERCAPS32W,UINT32);
1526 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1527 UINT16 WINAPI mixerGetLineInfo16(HMIXEROBJ16,LPMIXERLINE16,DWORD);
1528 UINT32 WINAPI mixerGetLineInfo32A(HMIXEROBJ32,LPMIXERLINE32A,DWORD);
1529 UINT32 WINAPI mixerGetLineInfo32W(HMIXEROBJ32,LPMIXERLINE32W,DWORD);
1530 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1531 UINT16 WINAPI mixerGetID16(HMIXEROBJ16,LPUINT16,DWORD);
1532 UINT32 WINAPI mixerGetID32(HMIXEROBJ32,LPUINT32,DWORD);
1533 #define mixerGetID WINELIB_NAME(mixerGetID)
1534 UINT16 WINAPI mixerGetLineControls16(HMIXEROBJ16,LPMIXERLINECONTROLS16,DWORD);
1535 UINT32 WINAPI mixerGetLineControls32A(HMIXEROBJ32,LPMIXERLINECONTROLS32A,DWORD);
1536 UINT32 WINAPI mixerGetLineControls32W(HMIXEROBJ32,LPMIXERLINECONTROLS32W,DWORD);
1537 #define mixerGetLineControl WINELIB_NAME_AW(mixerGetLineControl)
1538 UINT16 WINAPI mixerGetControlDetails16(HMIXEROBJ16,LPMIXERCONTROLDETAILS16,DWORD);
1539 UINT32 WINAPI mixerGetControlDetails32A(HMIXEROBJ32,LPMIXERCONTROLDETAILS32,DWORD);
1540 UINT32 WINAPI mixerGetControlDetails32W(HMIXEROBJ32,LPMIXERCONTROLDETAILS32,DWORD);
1541 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1542 UINT16 WINAPI mixerSetControlDetails16(HMIXEROBJ16,LPMIXERCONTROLDETAILS16,DWORD);
1543 UINT32 WINAPI mixerSetControlDetails32(HMIXEROBJ32,LPMIXERCONTROLDETAILS32,DWORD);
1544 #define mixerSetControlDetails WINELIB_NAME(mixerSetControlDetails)
1546 #define MMIOERR_BASE 256
1547 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1548 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1549 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1550 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1551 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1552 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1553 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1554 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1555 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1556 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1558 #define CFSEPCHAR '+' /* compound file name separator char. */
1560 typedef DWORD FOURCC; /* a four character code */
1561 typedef LONG (CALLBACK *LPMMIOPROC16)(LPSTR lpmmioinfo, UINT16 uMessage,
1562 LPARAM lParam1, LPARAM lParam2);
1563 typedef LONG (CALLBACK *LPMMIOPROC32)(LPSTR lpmmioinfo, UINT32 uMessage,
1564 LPARAM lParam1, LPARAM lParam2);
1565 DECL_WINELIB_TYPE(LPMMIOPROC)
1568 DWORD dwFlags; /* general status flags */
1569 FOURCC fccIOProc; /* pointer to I/O procedure */
1570 LPMMIOPROC16 pIOProc; /* pointer to I/O procedure */
1571 UINT16 wErrorRet; /* place for error to be returned */
1572 HTASK16 htask; /* alternate local task */
1573 /* fields maintained by MMIO functions during buffered I/O */
1574 LONG cchBuffer; /* size of I/O buffer (or 0L) */
1575 HPSTR pchBuffer; /* start of I/O buffer (or NULL) */
1576 HPSTR pchNext; /* pointer to next byte to read/write */
1577 HPSTR pchEndRead; /* pointer to last valid byte to read */
1578 HPSTR pchEndWrite; /* pointer to last byte to write */
1579 LONG lBufOffset; /* disk offset of start of buffer */
1580 /* fields maintained by I/O procedure */
1581 LONG lDiskOffset; /* disk offset of next read or write */
1582 DWORD adwInfo[3]; /* data specific to type of MMIOPROC */
1583 /* other fields maintained by MMIO */
1584 DWORD dwReserved1; /* reserved for MMIO use */
1585 DWORD dwReserved2; /* reserved for MMIO use */
1586 HMMIO16 hmmio; /* handle to open file */
1587 } MMIOINFO16, *LPMMIOINFO16;
1592 LPMMIOPROC32 pIOProc;
1595 /* fields maintained by MMIO functions during buffered I/O */
1602 /* fields maintained by I/O procedure */
1605 /* other fields maintained by MMIO */
1609 } MMIOINFO32, *PMMIOINFO32, *LPMMIOINFO32;
1611 DECL_WINELIB_TYPE(MMIOINFO)
1612 DECL_WINELIB_TYPE(PMMIOINFO)
1613 DECL_WINELIB_TYPE(LPMMIOINFO)
1615 typedef struct _MMCKINFO
1617 FOURCC ckid; /* chunk ID */
1618 DWORD cksize; /* chunk size */
1619 FOURCC fccType; /* form type or list type */
1620 DWORD dwDataOffset; /* offset of data portion of chunk */
1621 DWORD dwFlags; /* flags used by MMIO functions */
1622 } MMCKINFO, *LPMMCKINFO;
1624 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1625 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1627 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1628 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1629 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1630 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1631 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1632 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1634 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1636 #define MMIO_READ 0x00000000 /* open file for reading only */
1637 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1638 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1640 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1641 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1642 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1643 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1644 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1646 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1647 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1648 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1649 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1650 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1651 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1652 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1653 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1654 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1655 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1656 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1657 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1663 #define MMIOM_READ MMIO_READ /* read */
1664 #define MMIOM_WRITE MMIO_WRITE /* write */
1665 #define MMIOM_SEEK 2 /* seek to a new position in file */
1666 #define MMIOM_OPEN 3 /* open file */
1667 #define MMIOM_CLOSE 4 /* close file */
1668 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1670 #define MMIOM_RENAME 6 /* rename specified file */
1672 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1674 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1675 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1677 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1678 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1680 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1682 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1683 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1684 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1686 LPMMIOPROC16 WINAPI mmioInstallIOProc16(FOURCC,LPMMIOPROC16,DWORD);
1687 LPMMIOPROC32 WINAPI mmioInstallIOProc32A(FOURCC,LPMMIOPROC32,DWORD);
1688 LPMMIOPROC32 WINAPI mmioInstallIOProc32W(FOURCC,LPMMIOPROC32,DWORD);
1689 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1691 FOURCC WINAPI mmioStringToFOURCC16(LPCSTR,UINT16);
1692 FOURCC WINAPI mmioStringToFOURCC32A(LPCSTR,UINT32);
1693 FOURCC WINAPI mmioStringToFOURCC32W(LPCWSTR,UINT32);
1694 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1695 HMMIO16 WINAPI mmioOpen16 (LPSTR ,MMIOINFO16*,DWORD);
1696 HMMIO32 WINAPI mmioOpen32A(LPSTR ,MMIOINFO32*,DWORD);
1697 HMMIO32 WINAPI mmioOpen32W(LPWSTR,MMIOINFO32*,DWORD);
1698 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1700 UINT16 WINAPI mmioRename16(LPCSTR szFileName, LPCSTR szNewFileName,
1701 MMIOINFO16 * lpmmioinfo, DWORD dwRenameFlags);
1702 UINT32 WINAPI mmioRename32A(LPCSTR szFileName, LPCSTR szNewFileName,
1703 MMIOINFO32 * lpmmioinfo, DWORD dwRenameFlags);
1704 UINT32 WINAPI mmioRename32W(LPCWSTR szFileName, LPCWSTR szNewFileName,
1705 MMIOINFO32 * lpmmioinfo, DWORD dwRenameFlags);
1706 #define mmioRename WINELIB_NAME_AW(mmioRename)
1708 MMRESULT16 WINAPI mmioClose16(HMMIO16,UINT16);
1709 MMRESULT32 WINAPI mmioClose32(HMMIO32,UINT32);
1710 #define mmioClose WINELIB_NAME(mmioClose)
1711 LONG WINAPI mmioRead16(HMMIO16,HPSTR,LONG);
1712 LONG WINAPI mmioRead32(HMMIO32,HPSTR,LONG);
1713 #define mmioRead WINELIB_NAME(mmioRead)
1714 LONG WINAPI mmioWrite16(HMMIO16,HPCSTR,LONG);
1715 LONG WINAPI mmioWrite32(HMMIO32,HPCSTR,LONG);
1716 #define mmioWrite WINELIB_NAME(mmioWrite)
1717 LONG WINAPI mmioSeek16(HMMIO16,LONG,INT16);
1718 LONG WINAPI mmioSeek32(HMMIO32,LONG,INT32);
1719 #define mmioSeek WINELIB_NAME(mmioSeek)
1720 MMRESULT16 WINAPI mmioGetInfo16(HMMIO16,MMIOINFO16*,UINT16);
1721 MMRESULT32 WINAPI mmioGetInfo32(HMMIO32,MMIOINFO32*,UINT32);
1722 #define mmioGetInfo WINELIB_NAME(mmioGetInfo)
1723 MMRESULT16 WINAPI mmioSetInfo16(HMMIO16,const MMIOINFO16*,UINT16);
1724 MMRESULT32 WINAPI mmioSetInfo32(HMMIO32,const MMIOINFO32*,UINT32);
1725 #define mmioSetInfo WINELIB_NAME(mmioSetInfo)
1726 UINT16 WINAPI mmioSetBuffer16(HMMIO16,LPSTR,LONG,UINT16);
1727 UINT32 WINAPI mmioSetBuffer32(HMMIO32,LPSTR,LONG,UINT32);
1728 #define mmioSetBuffer WINELIB_NAME(mmioSetBuffer)
1729 UINT16 WINAPI mmioFlush16(HMMIO16,UINT16);
1730 UINT32 WINAPI mmioFlush32(HMMIO32,UINT32);
1731 #define mmioFlush WINELIB_NAME(mmioFlush)
1732 UINT16 WINAPI mmioAdvance16(HMMIO16,MMIOINFO16*,UINT16);
1733 UINT32 WINAPI mmioAdvance32(HMMIO32,MMIOINFO32*,UINT32);
1734 #define mmioAdvance WINELIB_NAME(mmioAdvance)
1735 LONG WINAPI mmioSendMessage(HMMIO16,UINT16,LPARAM,LPARAM);
1736 UINT16 WINAPI mmioDescend(HMMIO16,MMCKINFO*,const MMCKINFO*,UINT16);
1738 UINT16 WINAPI mmioAscend16(HMMIO16,MMCKINFO*,UINT16);
1739 UINT32 WINAPI mmioAscend32(HMMIO32,MMCKINFO*,UINT32);
1740 #define mmioAscend WINELIB_NAME(mmioAscend)
1741 UINT16 WINAPI mmioCreateChunk16(HMMIO16,MMCKINFO*,UINT16);
1742 UINT32 WINAPI mmioCreateChunk32(HMMIO32,MMCKINFO*,UINT32);
1743 #define mmioCreateChunk WINELIB_NAME(mmioCreateChunk)
1745 typedef UINT16 (CALLBACK *YIELDPROC)(UINT16,DWORD);
1747 DWORD WINAPI mciSendCommand16(UINT16,UINT16,DWORD,DWORD);
1748 DWORD WINAPI mciSendCommand32A(UINT32,UINT32,DWORD,DWORD);
1749 DWORD WINAPI mciSendCommand32W(UINT32,UINT32,DWORD,DWORD);
1750 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1752 DWORD WINAPI mciSendString16(LPCSTR,LPSTR,UINT16,HWND16);
1753 DWORD WINAPI mciSendString32A(LPCSTR,LPSTR,UINT32,HWND32);
1754 DWORD WINAPI mciSendString32W(LPCWSTR,LPSTR,UINT32,HWND32);
1755 #define mciSendString WINELIB_NAME_AW(mciSendString)
1757 UINT16 WINAPI mciGetDeviceID16(LPCSTR);
1758 UINT32 WINAPI mciGetDeviceID32A(LPCSTR);
1759 UINT32 WINAPI mciGetDeviceID32W(LPCWSTR);
1760 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1762 UINT16 WINAPI mciGetDeviceIDFromElementID16(DWORD,LPCSTR);
1764 BOOL16 WINAPI mciGetErrorString16 (DWORD,LPSTR,UINT16);
1765 BOOL32 WINAPI mciGetErrorString32A(DWORD,LPSTR,UINT32);
1766 BOOL32 WINAPI mciGetErrorString32W(DWORD,LPWSTR,UINT32);
1767 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1769 BOOL16 WINAPI mciSetYieldProc16(UINT16,YIELDPROC,DWORD);
1770 BOOL32 WINAPI mciSetYieldProc32(UINT32,YIELDPROC,DWORD);
1771 #define mciSetYieldProc WINELIB_NAME(mciSetYieldProc)
1773 HTASK16 WINAPI mciGetCreatorTask16(UINT16);
1774 HTASK32 WINAPI mciGetCreatorTask32(UINT32);
1775 #define mciGetCreatorTask WINELIB_NAME(mciGetCreatorTask)
1777 YIELDPROC WINAPI mciGetYieldProc16(UINT16,DWORD*);
1778 YIELDPROC WINAPI mciGetYieldProc32(UINT32,DWORD*);
1779 #define mciGetYieldProc WINELIB_NAME(mciGetYieldProc)
1781 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1782 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1783 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1784 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1785 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1786 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1787 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1788 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1789 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1790 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1791 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1792 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1793 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1794 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1795 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1796 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1797 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1798 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1799 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1800 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1801 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1802 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1803 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1804 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1805 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1806 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1807 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1808 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1809 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1810 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1811 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1812 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1813 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1814 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1815 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1816 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1817 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1818 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1819 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1820 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1821 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1822 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1823 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1824 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1825 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1826 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1827 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1828 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1829 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1830 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1831 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1832 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1834 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1835 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1836 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1837 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1838 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1839 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1840 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1841 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1842 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1843 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1845 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1846 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1847 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1848 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1849 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1850 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1851 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1852 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1854 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1855 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1856 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1857 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1859 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1861 #define MCI_OPEN_DRIVER 0x0801
1862 #define MCI_CLOSE_DRIVER 0x0802
1863 #define MCI_OPEN 0x0803
1864 #define MCI_CLOSE 0x0804
1865 #define MCI_ESCAPE 0x0805
1866 #define MCI_PLAY 0x0806
1867 #define MCI_SEEK 0x0807
1868 #define MCI_STOP 0x0808
1869 #define MCI_PAUSE 0x0809
1870 #define MCI_INFO 0x080A
1871 #define MCI_GETDEVCAPS 0x080B
1872 #define MCI_SPIN 0x080C
1873 #define MCI_SET 0x080D
1874 #define MCI_STEP 0x080E
1875 #define MCI_RECORD 0x080F
1876 #define MCI_SYSINFO 0x0810
1877 #define MCI_BREAK 0x0811
1878 #define MCI_SOUND 0x0812
1879 #define MCI_SAVE 0x0813
1880 #define MCI_STATUS 0x0814
1881 #define MCI_CUE 0x0830
1882 #define MCI_REALIZE 0x0840
1883 #define MCI_WINDOW 0x0841
1884 #define MCI_PUT 0x0842
1885 #define MCI_WHERE 0x0843
1886 #define MCI_FREEZE 0x0844
1887 #define MCI_UNFREEZE 0x0845
1888 #define MCI_LOAD 0x0850
1889 #define MCI_CUT 0x0851
1890 #define MCI_COPY 0x0852
1891 #define MCI_PASTE 0x0853
1892 #define MCI_UPDATE 0x0854
1893 #define MCI_RESUME 0x0855
1894 #define MCI_DELETE 0x0856
1896 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1898 #define MCI_ALL_DEVICE_ID 0xFFFF
1900 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1901 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1902 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1903 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1904 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1905 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1906 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1907 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1908 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1909 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1910 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1912 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1913 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1915 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1916 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1917 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1918 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1919 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1920 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1921 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1923 #define MCI_FORMAT_MILLISECONDS 0
1924 #define MCI_FORMAT_HMS 1
1925 #define MCI_FORMAT_MSF 2
1926 #define MCI_FORMAT_FRAMES 3
1927 #define MCI_FORMAT_SMPTE_24 4
1928 #define MCI_FORMAT_SMPTE_25 5
1929 #define MCI_FORMAT_SMPTE_30 6
1930 #define MCI_FORMAT_SMPTE_30DROP 7
1931 #define MCI_FORMAT_BYTES 8
1932 #define MCI_FORMAT_SAMPLES 9
1933 #define MCI_FORMAT_TMSF 10
1935 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1936 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1937 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1939 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1941 (((DWORD)(BYTE)(f))<<16)))
1943 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1944 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1945 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1946 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1948 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1950 (((DWORD)(BYTE)(s) | \
1951 ((WORD)(f)<<8))<<16)))
1953 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1954 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1955 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1957 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1959 (((DWORD)(BYTE)(s))<<16)))
1961 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1962 #define MCI_NOTIFY_SUPERSEDED 0x0002
1963 #define MCI_NOTIFY_ABORTED 0x0004
1964 #define MCI_NOTIFY_FAILURE 0x0008
1966 #define MCI_NOTIFY 0x00000001L
1967 #define MCI_WAIT 0x00000002L
1968 #define MCI_FROM 0x00000004L
1969 #define MCI_TO 0x00000008L
1970 #define MCI_TRACK 0x00000010L
1972 #define MCI_OPEN_SHAREABLE 0x00000100L
1973 #define MCI_OPEN_ELEMENT 0x00000200L
1974 #define MCI_OPEN_ALIAS 0x00000400L
1975 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1976 #define MCI_OPEN_TYPE_ID 0x00001000L
1977 #define MCI_OPEN_TYPE 0x00002000L
1979 #define MCI_SEEK_TO_START 0x00000100L
1980 #define MCI_SEEK_TO_END 0x00000200L
1982 #define MCI_STATUS_ITEM 0x00000100L
1983 #define MCI_STATUS_START 0x00000200L
1985 #define MCI_STATUS_LENGTH 0x00000001L
1986 #define MCI_STATUS_POSITION 0x00000002L
1987 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1988 #define MCI_STATUS_MODE 0x00000004L
1989 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1990 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1991 #define MCI_STATUS_READY 0x00000007L
1992 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1994 #define MCI_INFO_PRODUCT 0x00000100L
1995 #define MCI_INFO_FILE 0x00000200L
1997 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1999 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
2000 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
2001 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
2002 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
2003 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
2004 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
2005 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
2006 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
2007 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
2009 #define MCI_SYSINFO_QUANTITY 0x00000100L
2010 #define MCI_SYSINFO_OPEN 0x00000200L
2011 #define MCI_SYSINFO_NAME 0x00000400L
2012 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
2014 #define MCI_SET_DOOR_OPEN 0x00000100L
2015 #define MCI_SET_DOOR_CLOSED 0x00000200L
2016 #define MCI_SET_TIME_FORMAT 0x00000400L
2017 #define MCI_SET_AUDIO 0x00000800L
2018 #define MCI_SET_VIDEO 0x00001000L
2019 #define MCI_SET_ON 0x00002000L
2020 #define MCI_SET_OFF 0x00004000L
2022 #define MCI_SET_AUDIO_ALL 0x00000000L
2023 #define MCI_SET_AUDIO_LEFT 0x00000001L
2024 #define MCI_SET_AUDIO_RIGHT 0x00000002L
2026 #define MCI_BREAK_KEY 0x00000100L
2027 #define MCI_BREAK_HWND 0x00000200L
2028 #define MCI_BREAK_OFF 0x00000400L
2030 #define MCI_RECORD_INSERT 0x00000100L
2031 #define MCI_RECORD_OVERWRITE 0x00000200L
2033 #define MCI_SOUND_NAME 0x00000100L
2035 #define MCI_SAVE_FILE 0x00000100L
2037 #define MCI_LOAD_FILE 0x00000100L
2041 } MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
2047 LPSTR lpstrDeviceType;
2048 LPSTR lpstrElementName;
2050 } MCI_OPEN_PARMS16, *LPMCI_OPEN_PARMS16;
2054 MCIDEVICEID32 wDeviceID;
2055 LPSTR lpstrDeviceType;
2056 LPSTR lpstrElementName;
2058 } MCI_OPEN_PARMS32A, *LPMCI_OPEN_PARMS32A;
2062 MCIDEVICEID32 wDeviceID;
2063 LPWSTR lpstrDeviceType;
2064 LPWSTR lpstrElementName;
2066 } MCI_OPEN_PARMS32W, *LPMCI_OPEN_PARMS32W;
2068 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
2069 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
2075 } MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
2080 } MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
2087 } MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
2093 } MCI_INFO_PARMS16, *LPMCI_INFO_PARMS16;
2099 } MCI_INFO_PARMS32A, *LPMCI_INFO_PARMS32A;
2105 } MCI_INFO_PARMS32W, *LPMCI_INFO_PARMS32W;
2107 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
2108 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
2114 } MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
2123 } MCI_SYSINFO_PARMS16, *LPMCI_SYSINFO_PARMS16;
2131 } MCI_SYSINFO_PARMS32A, *LPMCI_SYSINFO_PARMS32A;
2139 } MCI_SYSINFO_PARMS32W, *LPMCI_SYSINFO_PARMS32W;
2141 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
2142 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
2148 } MCI_SET_PARMS, *LPMCI_SET_PARMS;
2156 } MCI_BREAK_PARMS16, *LPMCI_BREAK_PARMS16;
2162 } MCI_BREAK_PARMS32, *LPMCI_BREAK_PARMS32;
2164 DECL_WINELIB_TYPE(MCI_BREAK_PARMS)
2165 DECL_WINELIB_TYPE(LPMCI_BREAK_PARMS)
2169 LPCSTR lpstrSoundName;
2170 } MCI_SOUND_PARMS, *LPMCI_SOUND_PARMS;
2175 } MCI_SAVE_PARMS, *LPMCI_SAVE_PARMS;
2180 } MCI_LOAD_PARMS16, *LPMCI_LOAD_PARMS16;
2185 } MCI_LOAD_PARMS32A, *LPMCI_LOAD_PARMS32A;
2190 } MCI_LOAD_PARMS32W, *LPMCI_LOAD_PARMS32W;
2192 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
2193 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
2199 } MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
2201 /* FIXME: are those constants correct ? */
2202 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
2204 #define MCI_CDA_TRACK_AUDIO 0x00000440
2205 #define MCI_CDA_TRACK_OTHER 0x00000441
2207 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2209 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2210 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2211 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2213 #define MCI_VD_FORMAT_TRACK 0x4001
2215 #define MCI_VD_PLAY_REVERSE 0x00010000L
2216 #define MCI_VD_PLAY_FAST 0x00020000L
2217 #define MCI_VD_PLAY_SPEED 0x00040000L
2218 #define MCI_VD_PLAY_SCAN 0x00080000L
2219 #define MCI_VD_PLAY_SLOW 0x00100000L
2221 #define MCI_VD_SEEK_REVERSE 0x00010000L
2223 #define MCI_VD_STATUS_SPEED 0x00004002L
2224 #define MCI_VD_STATUS_FORWARD 0x00004003L
2225 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2226 #define MCI_VD_STATUS_SIDE 0x00004005L
2227 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2229 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2230 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2232 #define MCI_VD_SPIN_UP 0x00010000L
2233 #define MCI_VD_SPIN_DOWN 0x00020000L
2235 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2236 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2237 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2238 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2240 #define MCI_VD_STEP_FRAMES 0x00010000L
2241 #define MCI_VD_STEP_REVERSE 0x00020000L
2243 #define MCI_VD_ESCAPE_STRING 0x00000100L
2250 } MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
2255 } MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
2259 LPCSTR lpstrCommand;
2260 } MCI_VD_ESCAPE_PARMS16, *LPMCI_VD_ESCAPE_PARMS16;
2264 LPCSTR lpstrCommand;
2265 } MCI_VD_ESCAPE_PARMS32A, *LPMCI_VD_ESCAPE_PARMS32A;
2269 LPCWSTR lpstrCommand;
2270 } MCI_VD_ESCAPE_PARMS32W, *LPMCI_VD_ESCAPE_PARMS32W;
2272 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
2273 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
2275 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
2277 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
2278 #define MCI_WAVE_SET_CHANNELS 0x00020000L
2279 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2280 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2281 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2282 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2284 #define MCI_WAVE_INPUT 0x00400000L
2285 #define MCI_WAVE_OUTPUT 0x00800000L
2287 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2288 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2289 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2290 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2291 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2292 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2293 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
2295 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
2296 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2298 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2299 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2303 MCIDEVICEID16 wDeviceID;
2305 SEGPTR lpstrDeviceType;
2306 SEGPTR lpstrElementName;
2308 DWORD dwBufferSeconds;
2309 } MCI_WAVE_OPEN_PARMS16, *LPMCI_WAVE_OPEN_PARMS16;
2313 MCIDEVICEID32 wDeviceID;
2314 LPCSTR lpstrDeviceType;
2315 LPCSTR lpstrElementName;
2317 DWORD dwBufferSeconds;
2318 } MCI_WAVE_OPEN_PARMS32A, *LPMCI_WAVE_OPEN_PARMS32A;
2322 MCIDEVICEID32 wDeviceID;
2323 LPCWSTR lpstrDeviceType;
2324 LPCWSTR lpstrElementName;
2326 DWORD dwBufferSeconds;
2327 } MCI_WAVE_OPEN_PARMS32W, *LPMCI_WAVE_OPEN_PARMS32W;
2329 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
2330 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
2336 } MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
2350 DWORD nSamplesPerSec;
2351 DWORD nAvgBytesPerSec;
2354 UINT16 wBitsPerSample;
2356 } MCI_WAVE_SET_PARMS16, * LPMCI_WAVE_SET_PARMS16;
2366 DWORD nSamplesPerSec;
2367 DWORD nAvgBytesPerSec;
2369 UINT32 wBitsPerSample;
2370 } MCI_WAVE_SET_PARMS32, * LPMCI_WAVE_SET_PARMS32;
2372 DECL_WINELIB_TYPE(MCI_WAVE_SET_PARMS)
2373 DECL_WINELIB_TYPE(LPMCI_WAVE_SET_PARMS)
2375 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2376 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2377 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2378 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2379 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2381 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2382 #define MCI_SEQ_FILE 0x4002
2383 #define MCI_SEQ_MIDI 0x4003
2384 #define MCI_SEQ_SMPTE 0x4004
2385 #define MCI_SEQ_NONE 65533
2387 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
2388 #define MCI_SEQ_STATUS_PORT 0x00004003L
2389 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
2390 #define MCI_SEQ_STATUS_MASTER 0x00004008L
2391 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
2392 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2394 #define MCI_SEQ_SET_TEMPO 0x00010000L
2395 #define MCI_SEQ_SET_PORT 0x00020000L
2396 #define MCI_SEQ_SET_SLAVE 0x00040000L
2397 #define MCI_SEQ_SET_MASTER 0x00080000L
2398 #define MCI_SEQ_SET_OFFSET 0x01000000L
2409 } MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
2411 #define MCI_ANIM_OPEN_WS 0x00010000L
2412 #define MCI_ANIM_OPEN_PARENT 0x00020000L
2413 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2415 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2416 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2417 #define MCI_ANIM_PLAY_FAST 0x00040000L
2418 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2419 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2421 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2422 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2424 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2425 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2426 #define MCI_ANIM_STATUS_HWND 0x00004003L
2427 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2428 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2430 #define MCI_ANIM_INFO_TEXT 0x00010000L
2432 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2433 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2434 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2435 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2436 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2437 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2438 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2440 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2441 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2443 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2444 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2445 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2446 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2447 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2449 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2451 #define MCI_ANIM_RECT 0x00010000L
2452 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2453 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2455 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2456 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2458 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2464 SEGPTR lpstrDeviceType;
2465 SEGPTR lpstrElementName;
2470 } MCI_ANIM_OPEN_PARMS16, *LPMCI_ANIM_OPEN_PARMS16;
2474 MCIDEVICEID32 wDeviceID;
2475 LPCSTR lpstrDeviceType;
2476 LPCSTR lpstrElementName;
2480 } MCI_ANIM_OPEN_PARMS32A, *LPMCI_ANIM_OPEN_PARMS32A;
2484 MCIDEVICEID32 wDeviceID;
2485 LPCSTR lpstrDeviceType;
2486 LPCSTR lpstrElementName;
2490 } MCI_ANIM_OPEN_PARMS32W, *LPMCI_ANIM_OPEN_PARMS32W;
2492 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
2493 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
2500 } MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
2505 } MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
2514 } MCI_ANIM_WINDOW_PARMS16, *LPMCI_ANIM_WINDOW_PARMS16;
2521 } MCI_ANIM_WINDOW_PARMS32A, *LPMCI_ANIM_WINDOW_PARMS32A;
2528 } MCI_ANIM_WINDOW_PARMS32W, *LPMCI_ANIM_WINDOW_PARMS32W;
2530 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
2531 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
2535 #ifdef MCI_USE_OFFEXT
2538 #else /* ifdef MCI_USE_OFFEXT */
2540 #endif /* ifdef MCI_USE_OFFEXT */
2541 } MCI_ANIM_RECT_PARMS16, *LPMCI_ANIM_RECT_PARMS16;
2545 #ifdef MCI_USE_OFFEXT
2548 #else /* ifdef MCI_USE_OFFEXT */
2550 #endif /* ifdef MCI_USE_OFFEXT */
2551 } MCI_ANIM_RECT_PARMS32, *LPMCI_ANIM_RECT_PARMS32;
2553 DECL_WINELIB_TYPE(MCI_ANIM_RECT_PARMS)
2554 DECL_WINELIB_TYPE(LPMCI_ANIM_RECT_PARMS)
2560 } MCI_ANIM_UPDATE_PARMS16, *LPMCI_ANIM_UPDATE_PARMS16;
2566 } MCI_ANIM_UPDATE_PARMS32, *LPMCI_ANIM_UPDATE_PARMS32;
2568 DECL_WINELIB_TYPE(MCI_ANIM_UPDATE_PARMS)
2569 DECL_WINELIB_TYPE(LPMCI_ANIM_UPDATE_PARMS)
2571 #define MCI_OVLY_OPEN_WS 0x00010000L
2572 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2574 #define MCI_OVLY_STATUS_HWND 0x00004001L
2575 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2577 #define MCI_OVLY_INFO_TEXT 0x00010000L
2579 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2580 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2581 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2583 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2584 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2585 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2586 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2587 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2589 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2591 #define MCI_OVLY_RECT 0x00010000L
2592 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2593 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2594 #define MCI_OVLY_PUT_FRAME 0x00080000L
2595 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2597 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2598 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2599 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2600 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2604 MCIDEVICEID16 wDeviceID;
2606 LPCSTR lpstrDeviceType;
2607 LPCSTR lpstrElementName;
2612 } MCI_OVLY_OPEN_PARMS16, *LPMCI_OVLY_OPEN_PARMS16;
2616 MCIDEVICEID32 wDeviceID;
2617 LPCSTR lpstrDeviceType;
2618 LPCSTR lpstrElementName;
2622 } MCI_OVLY_OPEN_PARMS32A, *LPMCI_OVLY_OPEN_PARMS32A;
2626 MCIDEVICEID32 wDeviceID;
2627 LPCWSTR lpstrDeviceType;
2628 LPCWSTR lpstrElementName;
2632 } MCI_OVLY_OPEN_PARMS32W, *LPMCI_OVLY_OPEN_PARMS32W;
2634 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
2635 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
2644 } MCI_OVLY_WINDOW_PARMS16, *LPMCI_OVLY_WINDOW_PARMS16;
2651 } MCI_OVLY_WINDOW_PARMS32A, *LPMCI_OVLY_WINDOW_PARMS32A;
2658 } MCI_OVLY_WINDOW_PARMS32W, *LPMCI_OVLY_WINDOW_PARMS32W;
2660 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
2661 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
2665 #ifdef MCI_USE_OFFEXT
2668 #else /* ifdef MCI_USE_OFFEXT */
2670 #endif /* ifdef MCI_USE_OFFEXT */
2671 } MCI_OVLY_RECT_PARMS16, *LPMCI_OVLY_RECT_PARMS16;
2675 #ifdef MCI_USE_OFFEXT
2678 #else /* ifdef MCI_USE_OFFEXT */
2680 #endif /* ifdef MCI_USE_OFFEXT */
2681 } MCI_OVLY_RECT_PARMS32, *LPMCI_OVLY_RECT_PARMS32;
2683 DECL_WINELIB_TYPE(MCI_OVLY_RECT_PARMS)
2684 DECL_WINELIB_TYPE(LPMCI_OVLY_RECT_PARMS)
2690 } MCI_OVLY_SAVE_PARMS16, *LPMCI_OVLY_SAVE_PARMS16;
2696 } MCI_OVLY_SAVE_PARMS32A, *LPMCI_OVLY_SAVE_PARMS32A;
2702 } MCI_OVLY_SAVE_PARMS32W, *LPMCI_OVLY_SAVE_PARMS32W;
2704 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
2705 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
2711 } MCI_OVLY_LOAD_PARMS16, *LPMCI_OVLY_LOAD_PARMS16;
2717 } MCI_OVLY_LOAD_PARMS32A, *LPMCI_OVLY_LOAD_PARMS32A;
2723 } MCI_OVLY_LOAD_PARMS32W, *LPMCI_OVLY_LOAD_PARMS32W;
2725 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
2726 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
2728 /**************************************************************
2729 * Linux MMSYSTEM Internals & Sample Audio Drivers
2732 #define DRVM_INIT 100
2733 #define WODM_INIT DRVM_INIT
2734 #define WIDM_INIT DRVM_INIT
2735 #define MODM_INIT DRVM_INIT
2736 #define MIDM_INIT DRVM_INIT
2737 #define AUXM_INIT DRVM_INIT
2739 #define WODM_GETNUMDEVS 3
2740 #define WODM_GETDEVCAPS 4
2742 #define WODM_CLOSE 6
2743 #define WODM_PREPARE 7
2744 #define WODM_UNPREPARE 8
2745 #define WODM_WRITE 9
2746 #define WODM_PAUSE 10
2747 #define WODM_RESTART 11
2748 #define WODM_RESET 12
2749 #define WODM_GETPOS 13
2750 #define WODM_GETPITCH 14
2751 #define WODM_SETPITCH 15
2752 #define WODM_GETVOLUME 16
2753 #define WODM_SETVOLUME 17
2754 #define WODM_GETPLAYBACKRATE 18
2755 #define WODM_SETPLAYBACKRATE 19
2756 #define WODM_BREAKLOOP 20
2757 #define WODM_STOP 21
2759 #define WIDM_GETNUMDEVS 50
2760 #define WIDM_GETDEVCAPS 51
2761 #define WIDM_OPEN 52
2762 #define WIDM_CLOSE 53
2763 #define WIDM_PREPARE 54
2764 #define WIDM_UNPREPARE 55
2765 #define WIDM_ADDBUFFER 56
2766 #define WIDM_START 57
2767 #define WIDM_STOP 58
2768 #define WIDM_RESET 59
2769 #define WIDM_GETPOS 60
2770 #define WIDM_PAUSE 61
2772 #define MODM_GETNUMDEVS 1
2773 #define MODM_GETDEVCAPS 2
2775 #define MODM_CLOSE 4
2776 #define MODM_PREPARE 5
2777 #define MODM_UNPREPARE 6
2779 #define MODM_LONGDATA 8
2780 #define MODM_RESET 9
2781 #define MODM_GETVOLUME 10
2782 #define MODM_SETVOLUME 11
2783 #define MODM_CACHEPATCHES 12
2784 #define MODM_CACHEDRUMPATCHES 13
2786 #define MIDM_GETNUMDEVS 53
2787 #define MIDM_GETDEVCAPS 54
2788 #define MIDM_OPEN 55
2789 #define MIDM_CLOSE 56
2790 #define MIDM_PREPARE 57
2791 #define MIDM_UNPREPARE 58
2792 #define MIDM_ADDBUFFER 59
2793 #define MIDM_START 60
2794 #define MIDM_STOP 61
2795 #define MIDM_RESET 62
2797 #define AUXDM_GETNUMDEVS 3
2798 #define AUXDM_GETDEVCAPS 4
2799 #define AUXDM_GETVOLUME 5
2800 #define AUXDM_SETVOLUME 6
2802 #define MXDM_GETNUMDEVS 1
2803 #define MXDM_GETDEVCAPS 2
2805 #define MXDM_CLOSE 4
2806 #define MXDM_GETLINEINFO 5
2807 #define MXDM_GETLINECONTROLS 6
2808 #define MXDM_GETCONTROLDETAILS 7
2809 #define MXDM_SETCONTROLDETAILS 8
2811 #define MCI_MAX_DEVICE_TYPE_LENGTH 80
2813 #define MCI_FALSE (MCI_STRING_OFFSET + 19)
2814 #define MCI_TRUE (MCI_STRING_OFFSET + 20)
2816 #define MCI_FORMAT_RETURN_BASE MCI_FORMAT_MILLISECONDS_S
2817 #define MCI_FORMAT_MILLISECONDS_S (MCI_STRING_OFFSET + 21)
2818 #define MCI_FORMAT_HMS_S (MCI_STRING_OFFSET + 22)
2819 #define MCI_FORMAT_MSF_S (MCI_STRING_OFFSET + 23)
2820 #define MCI_FORMAT_FRAMES_S (MCI_STRING_OFFSET + 24)
2821 #define MCI_FORMAT_SMPTE_24_S (MCI_STRING_OFFSET + 25)
2822 #define MCI_FORMAT_SMPTE_25_S (MCI_STRING_OFFSET + 26)
2823 #define MCI_FORMAT_SMPTE_30_S (MCI_STRING_OFFSET + 27)
2824 #define MCI_FORMAT_SMPTE_30DROP_S (MCI_STRING_OFFSET + 28)
2825 #define MCI_FORMAT_BYTES_S (MCI_STRING_OFFSET + 29)
2826 #define MCI_FORMAT_SAMPLES_S (MCI_STRING_OFFSET + 30)
2827 #define MCI_FORMAT_TMSF_S (MCI_STRING_OFFSET + 31)
2829 #define MCI_VD_FORMAT_TRACK_S (MCI_VD_OFFSET + 5)
2831 #define WAVE_FORMAT_PCM_S (MCI_WAVE_OFFSET + 0)
2832 #define WAVE_MAPPER_S (MCI_WAVE_OFFSET + 1)
2834 #define MCI_SEQ_MAPPER_S (MCI_SEQ_OFFSET + 5)
2835 #define MCI_SEQ_FILE_S (MCI_SEQ_OFFSET + 6)
2836 #define MCI_SEQ_MIDI_S (MCI_SEQ_OFFSET + 7)
2837 #define MCI_SEQ_SMPTE_S (MCI_SEQ_OFFSET + 8)
2838 #define MCI_SEQ_FORMAT_SONGPTR_S (MCI_SEQ_OFFSET + 9)
2839 #define MCI_SEQ_NONE_S (MCI_SEQ_OFFSET + 10)
2840 #define MIDIMAPPER_S (MCI_SEQ_OFFSET + 11)
2842 #define MCI_RESOURCE_RETURNED 0x00010000 /* resource ID */
2843 #define MCI_COLONIZED3_RETURN 0x00020000 /* colonized ID, 3 bytes data */
2844 #define MCI_COLONIZED4_RETURN 0x00040000 /* colonized ID, 4 bytes data */
2845 #define MCI_INTEGER_RETURNED 0x00080000 /* integer conversion needed */
2846 #define MCI_RESOURCE_DRIVER 0x00100000 /* driver owns returned resource */
2848 #define MCI_NO_COMMAND_TABLE 0xFFFF
2850 #define MCI_COMMAND_HEAD 0
2851 #define MCI_STRING 1
2852 #define MCI_INTEGER 2
2853 #define MCI_END_COMMAND 3
2854 #define MCI_RETURN 4
2856 #define MCI_END_COMMAND_LIST 6
2858 #define MCI_CONSTANT 8
2859 #define MCI_END_CONSTANT 9
2862 #define MIXER_OBJECTF_HANDLE 0x80000000L
2863 #define MIXER_OBJECTF_MIXER 0x00000000L
2864 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
2865 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
2866 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
2867 #define MIXER_OBJECTF_WAVEIN 0x20000000L
2868 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
2869 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
2870 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
2871 #define MIXER_OBJECTF_MIDIIN 0x40000000L
2872 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
2873 #define MIXER_OBJECTF_AUX 0x50000000L
2875 #define MAKEMCIRESOURCE(wRet, wRes) MAKELRESULT((wRet), (wRes))
2877 /* the 95 DDK defines those slightly different, but they are internal anyway */
2883 } PORTALLOC, *LPPORTALLOC;
2887 LPWAVEFORMAT lpFormat;
2891 } WAVEOPENDESC, *LPWAVEOPENDESC;
2898 } MIDIOPENDESC, *LPMIDIOPENDESC;
2903 LPTIMECALLBACK16 lpFunction;
2906 } TIMEREVENT, *LPTIMEREVENT;
2908 typedef struct tMIXEROPENDESC
2914 } MIXEROPENDESC,*LPMIXEROPENDESC;
2917 UINT16 wDeviceID; /* device ID */
2918 LPSTR lpstrParams; /* parameter string for entry in SYSTEM.INI */
2919 UINT16 wCustomCommandTable; /* custom command table (0xFFFF if none)
2920 * filled in by the driver */
2921 UINT16 wType; /* driver type (filled in by the driver) */
2922 } MCI_OPEN_DRIVER_PARMS, *LPMCI_OPEN_DRIVER_PARMS;
2924 DWORD WINAPI mciGetDriverData16(UINT16 uDeviceID);
2925 DWORD WINAPI mciGetDriverData32(UINT32 uDeviceID);
2926 #define mciGetDriverData WINELIB_NAME(mciGetDriverData)
2928 BOOL16 WINAPI mciSetDriverData16(UINT16 uDeviceID, DWORD dwData);
2929 BOOL32 WINAPI mciSetDriverData32(UINT32 uDeviceID, DWORD dwData);
2930 #define mciSetDriverData WINELIB_NAME(mciSetDriverData)
2932 UINT16 WINAPI mciDriverYield16(UINT16 uDeviceID);
2933 UINT32 WINAPI mciDriverYield32(UINT32 uDeviceID);
2934 #define mciDriverYield WINELIB_NAME(mciDriverYield)
2936 BOOL16 WINAPI mciDriverNotify16(HWND16 hwndCallback, UINT16 uDeviceID,
2938 BOOL32 WINAPI mciDriverNotify32(HWND32 hwndCallback, UINT32 uDeviceID,
2940 #define mciDriverNotify WINELIB_NAME(mciDriverNotify)
2942 UINT16 WINAPI mciLoadCommandResource16(HINSTANCE16 hInstance,
2943 LPCSTR lpResName, UINT16 uType);
2944 UINT32 WINAPI mciLoadCommandResource32(HINSTANCE32 hInstance,
2945 LPCWSTR lpResName, UINT32 uType);
2946 #define mciLoadCommandResource WINELIB_NAME(mciLoadCommandResource)
2948 BOOL16 WINAPI mciFreeCommandResource16(UINT16 uTable);
2949 BOOL32 WINAPI mciFreeCommandResource32(UINT32 uTable);
2950 #define mciFreeCommandResource WINELIB_NAME(mciFreeCommandResource)
2952 #define DCB_NULL 0x0000
2953 #define DCB_WINDOW 0x0001 /* dwCallback is a HWND */
2954 #define DCB_TASK 0x0002 /* dwCallback is a HTASK */
2955 #define DCB_FUNCTION 0x0003 /* dwCallback is a FARPROC */
2956 #define DCB_FUNC32 0x0007 /* (ugly hack) 32-bit FARPROC */
2957 #define DCB_TYPEMASK 0x0007
2958 #define DCB_NOSWITCH 0x0008 /* don't switch stacks for callback */
2960 BOOL16 WINAPI DriverCallback(DWORD dwCallBack, UINT16 uFlags, HANDLE16 hDev,
2961 WORD wMsg, DWORD dwUser, DWORD dwParam1, DWORD dwParam2);
2962 DWORD WINAPI auxMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2963 DWORD dwParam1, DWORD dwParam2);
2966 DWORD WINAPI mixMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2967 DWORD dwParam1, DWORD dwParam2);
2968 DWORD WINAPI midMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2969 DWORD dwParam1, DWORD dwParam2);
2970 DWORD WINAPI modMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2971 DWORD dwParam1, DWORD dwParam2);
2972 DWORD WINAPI widMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2973 DWORD dwParam1, DWORD dwParam2);
2974 DWORD WINAPI wodMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2975 DWORD dwParam1, DWORD dwParam2);
2982 #endif /* __WINE_MMSYSTEM_H */