2 * MMSYSTEM - Multimedia Wine Extension ... :-)
4 * Copyright (C) the Wine project
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_MMSYSTEM_H
22 #define __WINE_MMSYSTEM_H
30 typedef LPSTR HPSTR; /* a huge version of LPSTR */
31 typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
33 DECLARE_HANDLE(HDRVR);
34 DECLARE_HANDLE(HWAVE);
35 DECLARE_HANDLE(HWAVEIN);
36 DECLARE_HANDLE(HWAVEOUT);
37 DECLARE_HANDLE(HMIDI);
38 DECLARE_HANDLE(HMIDIIN);
39 DECLARE_HANDLE(HMIDIOUT);
40 DECLARE_HANDLE(HMIDISTRM);
41 DECLARE_HANDLE(HMIXER);
42 DECLARE_HANDLE(HMIXEROBJ);
43 DECLARE_HANDLE(HMMIO);
47 typedef LRESULT (CALLBACK *DRIVERPROC)(DWORD,HDRVR,UINT,LPARAM,LPARAM);
49 #define MAXWAVEDRIVERS 10
50 #define MAXMIDIDRIVERS 10
51 #define MAXAUXDRIVERS 10
52 #define MAXMCIDRIVERS 32
53 #define MAXMIXERDRIVERS 10
55 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
56 #define MAXERRORLENGTH 128 /* max error text length (including NULL) */
57 #define MAX_JOYSTICKOEMVXDNAME 260
59 typedef WORD VERSION; /* major (high byte), minor (low byte) */
63 typedef DWORD MCIERROR;
65 typedef UINT MMVERSION;
68 typedef UINT MCIDEVICEID;
70 typedef UINT MMRESULT;
94 #define TIME_MS 0x0001 /* time in milliseconds */
95 #define TIME_SAMPLES 0x0002 /* number of wave samples */
96 #define TIME_BYTES 0x0004 /* current byte offset */
97 #define TIME_SMPTE 0x0008 /* SMPTE time */
98 #define TIME_MIDI 0x0010 /* MIDI time */
99 #define TIME_TICKS 0x0020 /* MIDI ticks */
101 #define MM_JOY1MOVE 0x3A0 /* joystick */
102 #define MM_JOY2MOVE 0x3A1
103 #define MM_JOY1ZMOVE 0x3A2
104 #define MM_JOY2ZMOVE 0x3A3
105 #define MM_JOY1BUTTONDOWN 0x3B5
106 #define MM_JOY2BUTTONDOWN 0x3B6
107 #define MM_JOY1BUTTONUP 0x3B7
108 #define MM_JOY2BUTTONUP 0x3B8
110 #define MM_MCINOTIFY 0x3B9 /* MCI */
112 #define MM_WOM_OPEN 0x3BB /* waveform output */
113 #define MM_WOM_CLOSE 0x3BC
114 #define MM_WOM_DONE 0x3BD
116 #define MM_WIM_OPEN 0x3BE /* waveform input */
117 #define MM_WIM_CLOSE 0x3BF
118 #define MM_WIM_DATA 0x3C0
120 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
121 #define MM_MIM_CLOSE 0x3C2
122 #define MM_MIM_DATA 0x3C3
123 #define MM_MIM_LONGDATA 0x3C4
124 #define MM_MIM_ERROR 0x3C5
125 #define MM_MIM_LONGERROR 0x3C6
127 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
128 #define MM_MOM_CLOSE 0x3C8
129 #define MM_MOM_DONE 0x3C9
130 #define MM_MOM_POSITIONCB 0x3CA
132 #define MM_MIM_MOREDATA 0x3CC
134 #define MMSYSERR_BASE 0
135 #define WAVERR_BASE 32
136 #define MIDIERR_BASE 64
137 #define TIMERR_BASE 96
138 #define JOYERR_BASE 160
139 #define MCIERR_BASE 256
141 #define MCI_STRING_OFFSET 512
142 #define MCI_VD_OFFSET 1024
143 #define MCI_CD_OFFSET 1088
144 #define MCI_WAVE_OFFSET 1152
145 #define MCI_SEQ_OFFSET 1216
147 #define MMSYSERR_NOERROR 0 /* no error */
148 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
149 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
150 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
151 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
152 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
153 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
154 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
155 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
156 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
157 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
158 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
159 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
161 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
162 #define CALLBACK_NULL 0x00000000l /* no callback */
163 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
164 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
165 #define CALLBACK_THREAD (CALLBACK_TASK) /* dwCallback is a thread ID */
166 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
167 #define CALLBACK_EVENT 0x00050000l /* dwCallback is an EVENT Handler */
169 #define DRV_LOAD 0x0001
170 #define DRV_ENABLE 0x0002
171 #define DRV_OPEN 0x0003
172 #define DRV_CLOSE 0x0004
173 #define DRV_DISABLE 0x0005
174 #define DRV_FREE 0x0006
175 #define DRV_CONFIGURE 0x0007
176 #define DRV_QUERYCONFIGURE 0x0008
177 #define DRV_INSTALL 0x0009
178 #define DRV_REMOVE 0x000A
179 #define DRV_EXITSESSION 0x000B
180 #define DRV_EXITAPPLICATION 0x000C
181 #define DRV_POWER 0x000F
183 #define DRV_RESERVED 0x0800
184 #define DRV_USER 0x4000
186 #define DRVCNF_CANCEL 0x0000
187 #define DRVCNF_OK 0x0001
188 #define DRVCNF_RESTART 0x0002
190 #define DRVEA_NORMALEXIT 0x0001
191 #define DRVEA_ABNORMALEXIT 0x0002
193 #define DRV_SUCCESS 0x0001
194 #define DRV_FAILURE 0x0000
196 #define GND_FIRSTINSTANCEONLY 0x00000001
198 #define GND_FORWARD 0x00000000
199 #define GND_REVERSE 0x00000002
203 LPCWSTR lpszDCISectionName;
204 LPCWSTR lpszDCIAliasName;
205 } DRVCONFIGINFO, *LPDRVCONFIGINFO;
208 LRESULT WINAPI DefDriverProc(DWORD dwDriverIdentifier, HDRVR hdrvr,
209 UINT Msg, LPARAM lParam1, LPARAM lParam2);
210 HDRVR WINAPI OpenDriverA(LPCSTR szDriverName, LPCSTR szSectionName,
212 HDRVR WINAPI OpenDriverW(LPCWSTR szDriverName, LPCWSTR szSectionName,
214 #define OpenDriver WINELIB_NAME_AW(OpenDriver)
215 LRESULT WINAPI CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2);
216 LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message,
217 LPARAM lParam1, LPARAM lParam2);
218 HMODULE WINAPI GetDriverModuleHandle(HDRVR hDriver);
220 DWORD WINAPI GetDriverFlags(HDRVR hDriver);
222 /* this call (GetDriverFlags) is not documented, nor the flags returned.
223 * here are Wine only definitions
225 #define WINE_GDF_EXIST 0x80000000
226 #define WINE_GDF_16BIT 0x10000000
229 typedef void (CALLBACK *LPDRVCALLBACK) (HDRVR h, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
231 #define MM_MICROSOFT 1 /* Microsoft Corp. */
233 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
234 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
236 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
237 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
238 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
239 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
240 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
242 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
244 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
245 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
247 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
250 UINT WINAPI mmsystemGetVersion(void);
251 BOOL WINAPI sndPlaySoundA(LPCSTR lpszSound, UINT fuSound);
252 BOOL WINAPI sndPlaySoundW(LPCWSTR lpszSound, UINT fuSound);
253 #define sndPlaySound WINELIB_NAME_AW(sndPlaySound)
254 BOOL WINAPI PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
255 BOOL WINAPI PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound);
256 #define PlaySound WINELIB_NAME_AW(PlaySound)
258 #define SND_SYNC 0x0000 /* play synchronously (default) */
259 #define SND_ASYNC 0x0001 /* play asynchronously */
260 #define SND_NODEFAULT 0x0002 /* don't use default sound */
261 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
262 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
263 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
265 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
266 #define SND_ALIAS 0x00010000L /* name is a registry alias */
267 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
268 #define SND_FILENAME 0x00020000L /* name is file name */
269 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
270 #define SND_PURGE 0x00000040L /* purge all sounds */
271 #define SND_APPLICATION 0x00000080L /* look for application specific association */
273 /* waveform audio error return values */
274 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
275 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
276 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
277 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
278 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
280 typedef LPDRVCALLBACK LPWAVECALLBACK;
282 #define WOM_OPEN MM_WOM_OPEN
283 #define WOM_CLOSE MM_WOM_CLOSE
284 #define WOM_DONE MM_WOM_DONE
285 #define WIM_OPEN MM_WIM_OPEN
286 #define WIM_CLOSE MM_WIM_CLOSE
287 #define WIM_DATA MM_WIM_DATA
289 #define WAVE_MAPPER (-1)
291 #define WAVE_FORMAT_QUERY 0x0001
292 #define WAVE_ALLOWSYNC 0x0002
293 #define WAVE_MAPPED 0x0004
294 #define WAVE_FORMAT_DIRECT 0x0008
295 #define WAVE_FORMAT_DIRECT_QUERY (WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT)
297 #define WAVE_DIRECTSOUND 0x0080
300 typedef struct wavehdr_tag {
301 LPSTR lpData; /* pointer to locked data buffer */
302 DWORD dwBufferLength; /* length of data buffer */
303 DWORD dwBytesRecorded;/* used for input only */
304 DWORD dwUser; /* for client's use */
305 DWORD dwFlags; /* assorted flags (see defines) */
306 DWORD dwLoops; /* loop control counter */
308 struct wavehdr_tag *lpNext; /* reserved for driver */
309 DWORD reserved; /* reserved for driver */
310 } WAVEHDR, *PWAVEHDR, *NPWAVEHDR, *LPWAVEHDR;
312 #define WHDR_DONE 0x00000001 /* done bit */
313 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
314 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
315 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
316 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
319 WORD wMid; /* manufacturer ID */
320 WORD wPid; /* product ID */
321 MMVERSION vDriverVersion; /* version of the driver */
322 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
323 DWORD dwFormats; /* formats supported */
324 WORD wChannels; /* number of sources supported */
325 WORD wReserved1; /* padding */
326 DWORD dwSupport; /* functionality supported by driver */
327 } WAVEOUTCAPSA, *LPWAVEOUTCAPSA;
330 WORD wMid; /* manufacturer ID */
331 WORD wPid; /* product ID */
332 MMVERSION vDriverVersion; /* version of the driver */
333 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
334 DWORD dwFormats; /* formats supported */
335 WORD wChannels; /* number of sources supported */
336 WORD wReserved1; /* padding */
337 DWORD dwSupport; /* functionality supported by driver */
338 } WAVEOUTCAPSW, *LPWAVEOUTCAPSW;
339 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS)
340 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS)
342 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
343 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
344 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
345 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
346 #define WAVECAPS_SYNC 0x0010 /* driver is synchrounous and playing is blocking */
347 #define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
348 #define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
351 WORD wMid; /* manufacturer ID */
352 WORD wPid; /* product ID */
353 MMVERSION vDriverVersion; /* version of the driver */
354 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
355 DWORD dwFormats; /* formats supported */
356 WORD wChannels; /* number of channels supported */
358 } WAVEINCAPSA, *LPWAVEINCAPSA;
360 WORD wMid; /* manufacturer ID */
361 WORD wPid; /* product ID */
362 MMVERSION vDriverVersion; /* version of the driver */
363 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
364 DWORD dwFormats; /* formats supported */
365 WORD wChannels; /* number of channels supported */
367 } WAVEINCAPSW, *LPWAVEINCAPSW;
368 DECL_WINELIB_TYPE_AW(WAVEINCAPS)
369 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS)
371 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
372 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
373 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
374 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
375 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
376 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
377 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
378 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
379 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
380 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
381 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
382 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
383 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
385 /* General format structure common to all formats, same for Win16 and Win32 */
387 WORD wFormatTag; /* format type */
388 WORD nChannels; /* number of channels */
389 DWORD nSamplesPerSec; /* sample rate */
390 DWORD nAvgBytesPerSec;/* for buffer estimation */
391 WORD nBlockAlign; /* block size of data */
392 } WAVEFORMAT, *LPWAVEFORMAT;
394 #define WAVE_FORMAT_PCM 1
399 } PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
401 #ifndef _WAVEFORMATEX_
402 #define _WAVEFORMATEX_
403 /* dito same for Win16 / Win32 */
405 WORD wFormatTag; /* format type */
406 WORD nChannels; /* number of channels (i.e. mono, stereo...) */
407 DWORD nSamplesPerSec; /* sample rate */
408 DWORD nAvgBytesPerSec;/* for buffer estimation */
409 WORD nBlockAlign; /* block size of data */
410 WORD wBitsPerSample; /* number of bits per sample of mono data */
411 WORD cbSize; /* the count in bytes of the size of */
412 /* extra information (after cbSize) */
413 } WAVEFORMATEX, *LPWAVEFORMATEX, *NPWAVEFORMATEX, *PWAVEFORMATEX;
416 UINT WINAPI waveOutGetNumDevs(void);
417 UINT WINAPI waveOutGetDevCapsA(UINT,LPWAVEOUTCAPSA,UINT);
418 UINT WINAPI waveOutGetDevCapsW(UINT,LPWAVEOUTCAPSW,UINT);
419 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
420 UINT WINAPI waveOutGetVolume(UINT,DWORD*);
421 UINT WINAPI waveOutSetVolume(UINT,DWORD);
422 UINT WINAPI waveOutGetErrorTextA(UINT,LPSTR,UINT);
423 UINT WINAPI waveOutGetErrorTextW(UINT,LPWSTR,UINT);
424 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
425 UINT WINAPI waveOutOpen(HWAVEOUT*,UINT,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
426 UINT WINAPI waveOutClose(HWAVEOUT);
427 UINT WINAPI waveOutPrepareHeader(HWAVEOUT,WAVEHDR*,UINT);
428 UINT WINAPI waveOutUnprepareHeader(HWAVEOUT,WAVEHDR*,UINT);
429 UINT WINAPI waveOutWrite(HWAVEOUT,WAVEHDR*,UINT);
430 UINT WINAPI waveOutPause(HWAVEOUT);
431 UINT WINAPI waveOutRestart(HWAVEOUT);
432 UINT WINAPI waveOutReset(HWAVEOUT);
433 UINT WINAPI waveOutBreakLoop(HWAVEOUT);
434 UINT WINAPI waveOutGetPosition(HWAVEOUT,LPMMTIME,UINT);
435 UINT WINAPI waveOutGetPitch(HWAVEOUT,DWORD*);
436 UINT WINAPI waveOutSetPitch(HWAVEOUT,DWORD);
437 UINT WINAPI waveOutGetPlaybackRate(HWAVEOUT,DWORD*);
438 UINT WINAPI waveOutSetPlaybackRate(HWAVEOUT,DWORD);
439 UINT WINAPI waveOutGetID(HWAVEOUT,UINT*);
440 DWORD WINAPI waveOutMessage(HWAVEOUT,UINT,DWORD,DWORD);
441 UINT WINAPI waveInGetNumDevs(void);
442 UINT WINAPI waveInGetDevCapsA(UINT,LPWAVEINCAPSA,UINT);
443 UINT WINAPI waveInGetDevCapsW(UINT,LPWAVEINCAPSW,UINT);
444 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
445 UINT WINAPI waveInGetErrorTextA(UINT,LPSTR,UINT);
446 UINT WINAPI waveInGetErrorTextW(UINT,LPWSTR,UINT);
447 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
448 UINT WINAPI waveInOpen(HWAVEIN*,UINT,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
449 UINT WINAPI waveInClose(HWAVEIN);
450 UINT WINAPI waveInPrepareHeader(HWAVEIN,WAVEHDR*,UINT);
451 UINT WINAPI waveInUnprepareHeader(HWAVEIN,WAVEHDR*,UINT);
452 UINT WINAPI waveInAddBuffer(HWAVEIN,WAVEHDR*,UINT);
453 UINT WINAPI waveInStart(HWAVEIN);
454 UINT WINAPI waveInStop(HWAVEIN);
455 UINT WINAPI waveInReset(HWAVEIN);
456 UINT WINAPI waveInGetPosition(HWAVEIN,LPMMTIME,UINT);
457 UINT WINAPI waveInGetID(HWAVEIN,UINT*);
458 DWORD WINAPI waveInMessage(HWAVEIN,UINT,DWORD,DWORD);
460 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
461 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
462 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
463 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
464 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
465 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
466 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
468 typedef LPDRVCALLBACK LPMIDICALLBACK;
469 #define MIDIPATCHSIZE 128
470 typedef WORD PATCHARRAY[MIDIPATCHSIZE];
471 typedef WORD *LPPATCHARRAY;
472 typedef WORD KEYARRAY[MIDIPATCHSIZE];
473 typedef WORD *LPKEYARRAY;
475 #define MIM_OPEN MM_MIM_OPEN
476 #define MIM_CLOSE MM_MIM_CLOSE
477 #define MIM_DATA MM_MIM_DATA
478 #define MIM_LONGDATA MM_MIM_LONGDATA
479 #define MIM_ERROR MM_MIM_ERROR
480 #define MIM_LONGERROR MM_MIM_LONGERROR
481 #define MIM_MOREDATA MM_MIM_MOREDATA
483 #define MOM_OPEN MM_MOM_OPEN
484 #define MOM_CLOSE MM_MOM_CLOSE
485 #define MOM_DONE MM_MOM_DONE
486 #define MOM_POSITIONCB MM_MOM_POSITIONCB
488 /* device ID for MIDI mapper */
490 #define MIDIMAPPER (-1)
491 #define MIDI_MAPPER (-1)
493 /* Only on Win95 and up */
494 #define MIDI_IO_STATUS 0x00000020L
496 /* flags for wFlags parm of
497 midiOutCachePatches(),
498 midiOutCacheDrumPatches() */
499 #define MIDI_CACHE_ALL 1
500 #define MIDI_CACHE_BESTFIT 2
501 #define MIDI_CACHE_QUERY 3
502 #define MIDI_UNCACHE 4
505 WORD wMid; /* manufacturer ID */
506 WORD wPid; /* product ID */
507 MMVERSION vDriverVersion; /* version of the driver */
508 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
509 WORD wTechnology; /* type of device */
510 WORD wVoices; /* # of voices (internal synth only) */
511 WORD wNotes; /* max # of notes (internal synth only) */
512 WORD wChannelMask; /* channels used (internal synth only) */
513 DWORD dwSupport; /* functionality supported by driver */
514 } MIDIOUTCAPSA, *LPMIDIOUTCAPSA;
517 WORD wMid; /* manufacturer ID */
518 WORD wPid; /* product ID */
519 MMVERSION vDriverVersion; /* version of the driver */
520 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
521 WORD wTechnology; /* type of device */
522 WORD wVoices; /* # of voices (internal synth only) */
523 WORD wNotes; /* max # of notes (internal synth only) */
524 WORD wChannelMask; /* channels used (internal synth only) */
525 DWORD dwSupport; /* functionality supported by driver */
526 } MIDIOUTCAPSW, *LPMIDIOUTCAPSW;
528 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS)
529 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS)
531 #define MOD_MIDIPORT 1 /* output port */
532 #define MOD_SYNTH 2 /* generic internal synth */
533 #define MOD_SQSYNTH 3 /* square wave internal synth */
534 #define MOD_FMSYNTH 4 /* FM internal synth */
535 #define MOD_MAPPER 5 /* MIDI mapper */
537 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
538 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
539 #define MIDICAPS_CACHE 0x0004
540 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
543 WORD wMid; /* manufacturer ID */
544 WORD wPid; /* product ID */
545 MMVERSION vDriverVersion; /* version of the driver */
546 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
547 DWORD dwSupport; /* included in win95 and higher */
548 } MIDIINCAPSA, *LPMIDIINCAPSA;
551 WORD wMid; /* manufacturer ID */
552 WORD wPid; /* product ID */
553 MMVERSION vDriverVersion; /* version of the driver */
554 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
555 DWORD dwSupport; /* included in win95 and higher */
556 } MIDIINCAPSW, *LPMIDIINCAPSW;
558 DECL_WINELIB_TYPE_AW(MIDIINCAPS)
559 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
561 /* It seems that Win32 has a slightly different structure than Win 16.
564 typedef struct midihdr_tag {
565 LPSTR lpData; /* pointer to locked data block */
566 DWORD dwBufferLength; /* length of data in data block */
567 DWORD dwBytesRecorded;/* used for input only */
568 DWORD_PTR dwUser; /* for client's use */
569 DWORD dwFlags; /* assorted flags (see defines) */
570 struct midihdr_tag *lpNext; /* reserved for driver */
571 DWORD reserved; /* reserved for driver */
572 DWORD dwOffset; /* offset of playback in case of
574 DWORD_PTR dwReserved[8]; /* reserved for driver */
575 } MIDIHDR, *LPMIDIHDR;
577 #define MHDR_DONE 0x00000001 /* done bit */
578 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
579 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
580 #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
585 } MIDIPROPTEMPO, *LPMIDIPROPTEMPO;
590 } MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV;
592 #define MIDIPROP_GET 0x40000000
593 #define MIDIPROP_SET 0x80000000
594 #define MIDIPROP_TEMPO 0x00000002
595 #define MIDIPROP_TIMEDIV 0x00000001
598 DWORD dwDeltaTime; /* Time, in MIDI ticks, between the previous
599 * event and the current event. */
600 DWORD dwStreamID; /* Reserved; must be zero. */
601 DWORD dwEvent; /* event => see MEVT_XXX macros */
602 DWORD dwParms[1]; /* extra pmts to dwEvent if F_LONG is set */
603 } MIDIEVENT, *LPMIDIEVENT;
605 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
606 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
608 #define MEVT_F_CALLBACK 0x40000000l
609 #define MEVT_F_LONG 0x80000000l
610 #define MEVT_F_SHORT 0x00000000l
611 #define MEVT_COMMENT ((BYTE)0x82)
612 #define MEVT_LONGMSG ((BYTE)0x80)
613 #define MEVT_NOP ((BYTE)0x02)
614 #define MEVT_SHORTMSG ((BYTE)0x00)
615 #define MEVT_TEMPO ((BYTE)0x01)
616 #define MEVT_VERSION ((BYTE)0x84)
618 UINT WINAPI midiOutGetNumDevs(void);
619 UINT WINAPI midiOutGetDevCapsA(UINT,LPMIDIOUTCAPSA,UINT);
620 UINT WINAPI midiOutGetDevCapsW(UINT,LPMIDIOUTCAPSW,UINT);
621 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
622 UINT WINAPI midiOutGetVolume(UINT,DWORD*);
623 UINT WINAPI midiOutSetVolume(UINT,DWORD);
624 UINT WINAPI midiOutGetErrorTextA(UINT,LPSTR,UINT);
625 UINT WINAPI midiOutGetErrorTextW(UINT,LPWSTR,UINT);
626 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
627 UINT WINAPI midiOutOpen(HMIDIOUT*,UINT,DWORD,DWORD,DWORD);
628 UINT WINAPI midiOutClose(HMIDIOUT);
629 UINT WINAPI midiOutPrepareHeader(HMIDIOUT,MIDIHDR*,UINT);
630 UINT WINAPI midiOutUnprepareHeader(HMIDIOUT,MIDIHDR*,UINT);
631 UINT WINAPI midiOutShortMsg(HMIDIOUT,DWORD);
632 UINT WINAPI midiOutLongMsg(HMIDIOUT,MIDIHDR*,UINT);
633 UINT WINAPI midiOutReset(HMIDIOUT);
634 UINT WINAPI midiOutCachePatches(HMIDIOUT,UINT,WORD*,UINT);
635 UINT WINAPI midiOutCacheDrumPatches(HMIDIOUT,UINT,WORD*,UINT);
636 UINT WINAPI midiOutGetID(HMIDIOUT,UINT*);
637 DWORD WINAPI midiOutMessage(HMIDIOUT,UINT,DWORD,DWORD);
639 UINT WINAPI midiInGetNumDevs(void);
640 UINT WINAPI midiInGetDevCapsA(UINT,LPMIDIINCAPSA,UINT);
641 UINT WINAPI midiInGetDevCapsW(UINT,LPMIDIINCAPSW,UINT);
642 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
643 UINT WINAPI midiInGetErrorTextA(UINT,LPSTR,UINT);
644 UINT WINAPI midiInGetErrorTextW(UINT,LPWSTR,UINT);
645 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
646 UINT WINAPI midiInOpen(HMIDIIN*,UINT,DWORD,DWORD,DWORD);
647 UINT WINAPI midiInClose(HMIDIIN);
648 UINT WINAPI midiInPrepareHeader(HMIDIIN,MIDIHDR*,UINT);
649 UINT WINAPI midiInUnprepareHeader(HMIDIIN,MIDIHDR*,UINT);
650 UINT WINAPI midiInAddBuffer(HMIDIIN,MIDIHDR*,UINT);
651 UINT WINAPI midiInStart(HMIDIIN);
652 UINT WINAPI midiInStop(HMIDIIN);
653 UINT WINAPI midiInReset(HMIDIIN);
654 UINT WINAPI midiInGetID(HMIDIIN,UINT*);
655 DWORD WINAPI midiInMessage(HMIDIIN,UINT,DWORD,DWORD);
656 MMRESULT WINAPI midiStreamClose(HMIDISTRM hms);
657 MMRESULT WINAPI midiStreamOpen(HMIDISTRM* phms, LPUINT uDeviceID, DWORD cMidi,
658 DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen);
659 MMRESULT WINAPI midiStreamOut(HMIDISTRM hms, LPMIDIHDR lpMidiHdr, UINT cbMidiHdr);
660 MMRESULT WINAPI midiStreamPause(HMIDISTRM hms);
661 MMRESULT WINAPI midiStreamPosition(HMIDISTRM hms, LPMMTIME lpmmt, UINT cbmmt);
662 MMRESULT WINAPI midiStreamProperty(HMIDISTRM hms, LPBYTE lpPropData, DWORD dwProperty);
663 MMRESULT WINAPI midiStreamRestart(HMIDISTRM hms);
664 MMRESULT WINAPI midiStreamStop(HMIDISTRM hms);
666 #define AUX_MAPPER (-1)
669 WORD wMid; /* manufacturer ID */
670 WORD wPid; /* product ID */
671 MMVERSION vDriverVersion; /* version of the driver */
672 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
673 WORD wTechnology; /* type of device */
674 WORD wReserved1; /* padding */
675 DWORD dwSupport; /* functionality supported by driver */
676 } AUXCAPSA, *LPAUXCAPSA;
679 WORD wMid; /* manufacturer ID */
680 WORD wPid; /* product ID */
681 MMVERSION vDriverVersion; /* version of the driver */
682 WCHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
683 WORD wTechnology; /* type of device */
684 WORD wReserved1; /* padding */
685 DWORD dwSupport; /* functionality supported by driver */
686 } AUXCAPSW, *LPAUXCAPSW;
688 DECL_WINELIB_TYPE_AW(AUXCAPS)
689 DECL_WINELIB_TYPE_AW(LPAUXCAPS)
691 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
692 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
694 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
695 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
697 UINT WINAPI auxGetNumDevs(void);
698 UINT WINAPI auxGetDevCapsA(UINT,LPAUXCAPSA,UINT);
699 UINT WINAPI auxGetDevCapsW(UINT,LPAUXCAPSW,UINT);
700 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
701 UINT WINAPI auxSetVolume(UINT,DWORD);
702 UINT WINAPI auxGetVolume(UINT,LPDWORD);
703 DWORD WINAPI auxOutMessage(UINT,UINT,DWORD,DWORD);
705 #define TIMERR_NOERROR (0) /* no error */
706 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
707 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
709 typedef void (CALLBACK *LPTIMECALLBACK)(UINT uTimerID, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
711 #define TIME_ONESHOT 0x0000 /* program timer for single event */
712 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
713 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
714 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
715 #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
720 } TIMECAPS, *LPTIMECAPS;
723 MMRESULT WINAPI timeGetSystemTime(LPMMTIME,UINT);
724 DWORD WINAPI timeGetTime(void); /* same for win32/win16 */
725 MMRESULT WINAPI timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD,UINT);
726 MMRESULT WINAPI timeKillEvent(UINT);
727 MMRESULT WINAPI timeGetDevCaps(LPTIMECAPS,UINT);
728 MMRESULT WINAPI timeBeginPeriod(UINT);
729 MMRESULT WINAPI timeEndPeriod(UINT);
731 #define JOYERR_NOERROR (0) /* no error */
732 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
733 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
734 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
736 /* JOYINFO, JOYINFOEX, MM_JOY* */
737 #define JOY_BUTTON1 0x0001
738 #define JOY_BUTTON2 0x0002
739 #define JOY_BUTTON3 0x0004
740 #define JOY_BUTTON4 0x0008
741 #define JOY_BUTTON1CHG 0x0100
742 #define JOY_BUTTON2CHG 0x0200
743 #define JOY_BUTTON3CHG 0x0400
744 #define JOY_BUTTON4CHG 0x0800
746 #define JOYSTICKID1 0
747 #define JOYSTICKID2 1
750 #define JOYCAPS_HASZ 0x0001
751 #define JOYCAPS_HASR 0x0002
752 #define JOYCAPS_HASU 0x0004
753 #define JOYCAPS_HASV 0x0008
754 #define JOYCAPS_HASPOV 0x0010
755 #define JOYCAPS_POV4DIR 0x0020
756 #define JOYCAPS_POVCTS 0x0040
758 /* JOYINFOEX stuff */
759 #define JOY_POVCENTERED (WORD) -1
760 #define JOY_POVFORWARD 0
761 #define JOY_POVRIGHT 9000
762 #define JOY_POVBACKWARD 18000
763 #define JOY_POVLEFT 27000
765 #define JOY_RETURNX 0x00000001
766 #define JOY_RETURNY 0x00000002
767 #define JOY_RETURNZ 0x00000004
768 #define JOY_RETURNR 0x00000008
769 #define JOY_RETURNU 0x00000010
770 #define JOY_RETURNV 0x00000020
771 #define JOY_RETURNPOV 0x00000040
772 #define JOY_RETURNBUTTONS 0x00000080
773 #define JOY_RETURNRAWDATA 0x00000100
774 #define JOY_RETURNPOVCTS 0x00000200
775 #define JOY_RETURNCENTERED 0x00000400
776 #define JOY_USEDEADZONE 0x00000800
777 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
778 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
779 JOY_RETURNPOV | JOY_RETURNBUTTONS)
780 #define JOY_CAL_READALWAYS 0x00010000
781 #define JOY_CAL_READXYONLY 0x00020000
782 #define JOY_CAL_READ3 0x00040000
783 #define JOY_CAL_READ4 0x00080000
784 #define JOY_CAL_READXONLY 0x00100000
785 #define JOY_CAL_READYONLY 0x00200000
786 #define JOY_CAL_READ5 0x00400000
787 #define JOY_CAL_READ6 0x00800000
788 #define JOY_CAL_READZONLY 0x01000000
789 #define JOY_CAL_READRONLY 0x02000000
790 #define JOY_CAL_READUONLY 0x04000000
791 #define JOY_CAL_READVONLY 0x08000000
796 CHAR szPname[MAXPNAMELEN];
816 CHAR szRegKey[MAXPNAMELEN];
817 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
818 } JOYCAPSA, *LPJOYCAPSA;
823 WCHAR szPname[MAXPNAMELEN];
843 WCHAR szRegKey[MAXPNAMELEN];
844 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
845 } JOYCAPSW, *LPJOYCAPSW;
846 DECL_WINELIB_TYPE_AW(JOYCAPS)
847 DECL_WINELIB_TYPE_AW(LPJOYCAPS)
854 } JOYINFO, *LPJOYINFO;
857 DWORD dwSize; /* size of structure */
858 DWORD dwFlags; /* flags to indicate what to return */
859 DWORD dwXpos; /* x position */
860 DWORD dwYpos; /* y position */
861 DWORD dwZpos; /* z position */
862 DWORD dwRpos; /* rudder/4th axis position */
863 DWORD dwUpos; /* 5th axis position */
864 DWORD dwVpos; /* 6th axis position */
865 DWORD dwButtons; /* button states */
866 DWORD dwButtonNumber; /* current button number pressed */
867 DWORD dwPOV; /* point of view state */
868 DWORD dwReserved1; /* reserved for communication between winmm & driver */
869 DWORD dwReserved2; /* reserved for future expansion */
870 } JOYINFOEX,*LPJOYINFOEX;
873 MMRESULT WINAPI joyGetDevCapsA(UINT,LPJOYCAPSA,UINT);
874 MMRESULT WINAPI joyGetDevCapsW(UINT,LPJOYCAPSW,UINT);
875 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
876 UINT WINAPI joyGetNumDevs(void);
877 MMRESULT WINAPI joyGetPos(UINT,LPJOYINFO);
878 MMRESULT WINAPI joyGetPosEx(UINT,LPJOYINFOEX);
879 MMRESULT WINAPI joyGetThreshold(UINT,UINT*);
880 MMRESULT WINAPI joyReleaseCapture(UINT);
881 MMRESULT WINAPI joySetCapture(HWND,UINT,UINT,BOOL);
882 MMRESULT WINAPI joySetThreshold(UINT,UINT);
884 #define MIXERR_BASE 1024
885 #define MIXERR_INVALLINE (MIXERR_BASE + 0)
886 #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
887 #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
888 #define MIXERR_LASTERROR (MIXERR_BASE + 2)
893 MMVERSION vDriverVersion;
894 CHAR szPname[MAXPNAMELEN];
897 } MIXERCAPSA,*LPMIXERCAPSA;
902 MMVERSION vDriverVersion;
903 WCHAR szPname[MAXPNAMELEN];
906 } MIXERCAPSW,*LPMIXERCAPSW;
908 DECL_WINELIB_TYPE_AW(MIXERCAPS)
909 DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
911 #define MIXER_SHORT_NAME_CHARS 16
912 #define MIXER_LONG_NAME_CHARS 64
914 /* MIXERLINE.fdwLine */
915 #define MIXERLINE_LINEF_ACTIVE 0x00000001
916 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
917 #define MIXERLINE_LINEF_SOURCE 0x80000000
920 #define MIXER_OBJECTF_HANDLE 0x80000000L
921 #define MIXER_OBJECTF_MIXER 0x00000000L
922 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
923 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
924 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
925 #define MIXER_OBJECTF_WAVEIN 0x20000000L
926 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
927 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
928 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
929 #define MIXER_OBJECTF_MIDIIN 0x40000000L
930 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
931 #define MIXER_OBJECTF_AUX 0x50000000L
933 /* MIXERLINE.dwComponentType */
934 /* component types for destinations and sources */
935 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
936 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
937 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
938 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
939 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
940 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
941 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
942 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
943 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
944 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
945 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
947 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
948 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
949 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
950 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
951 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
952 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
953 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
954 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
955 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
956 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
957 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
958 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
959 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
961 /* MIXERLINE.Target.dwType */
962 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
963 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
964 #define MIXERLINE_TARGETTYPE_WAVEIN 2
965 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
966 #define MIXERLINE_TARGETTYPE_MIDIIN 4
967 #define MIXERLINE_TARGETTYPE_AUX 5
976 DWORD dwComponentType;
980 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
981 CHAR szName[MIXER_LONG_NAME_CHARS];
987 MMVERSION vDriverVersion;
988 CHAR szPname[MAXPNAMELEN];
990 } MIXERLINEA, *LPMIXERLINEA;
999 DWORD dwComponentType;
1003 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1004 WCHAR szName[MIXER_LONG_NAME_CHARS];
1010 MMVERSION vDriverVersion;
1011 WCHAR szPname[MAXPNAMELEN];
1013 } MIXERLINEW, *LPMIXERLINEW;
1015 DECL_WINELIB_TYPE_AW(MIXERLINE)
1016 DECL_WINELIB_TYPE_AW(LPMIXERLINE)
1018 /* MIXERCONTROL.fdwControl */
1019 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1020 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1021 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1023 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1024 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1025 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1026 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1027 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1028 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1029 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1030 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1031 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1032 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1034 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1036 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1037 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1039 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1041 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1042 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1044 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1045 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1047 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1048 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1049 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1050 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1051 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1052 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1053 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1055 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1056 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1057 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1058 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1059 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1060 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1061 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1062 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1063 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1064 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1065 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1066 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1067 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1068 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1069 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1070 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1071 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1072 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1073 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1074 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1075 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1076 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1077 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1078 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1079 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1080 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1081 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1082 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1083 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1084 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1085 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1091 DWORD dwControlType;
1093 DWORD cMultipleItems;
1094 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1095 CHAR szName[MIXER_LONG_NAME_CHARS];
1105 DWORD dwReserved[6];
1110 DWORD dwReserved[6];
1112 } MIXERCONTROLA, *LPMIXERCONTROLA;
1117 DWORD dwControlType;
1119 DWORD cMultipleItems;
1120 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1121 WCHAR szName[MIXER_LONG_NAME_CHARS];
1131 DWORD dwReserved[6];
1136 DWORD dwReserved[6];
1138 } MIXERCONTROLW, *LPMIXERCONTROLW;
1140 DECL_WINELIB_TYPE_AW(MIXERCONTROL)
1141 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
1148 DWORD dwControlType;
1152 LPMIXERCONTROLA pamxctrl;
1153 } MIXERLINECONTROLSA, *LPMIXERLINECONTROLSA;
1160 DWORD dwControlType;
1164 LPMIXERCONTROLW pamxctrl;
1165 } MIXERLINECONTROLSW, *LPMIXERLINECONTROLSW;
1167 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
1168 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
1176 DWORD cMultipleItems;
1180 } MIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
1185 CHAR szName[MIXER_LONG_NAME_CHARS];
1186 } MIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
1191 WCHAR szName[MIXER_LONG_NAME_CHARS];
1192 } MIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
1194 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
1195 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
1197 /* MIXER_GETCONTROLDETAILSF_VALUE */
1200 } MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1204 } MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1208 } MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1210 /* bits passed to mixerGetLineInfo.fdwInfo */
1211 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1212 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1213 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1214 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1215 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1216 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1218 /* bitmask passed to mixerGetLineControl */
1219 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1220 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1221 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1222 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1224 /* bitmask passed to mixerGetControlDetails */
1225 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1226 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1227 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1229 /* bitmask passed to mixerSetControlDetails */
1230 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1231 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1232 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1234 UINT WINAPI mixerGetNumDevs(void);
1235 UINT WINAPI mixerOpen(LPHMIXER,UINT,DWORD,DWORD,DWORD);
1236 UINT WINAPI mixerClose(HMIXER);
1237 UINT WINAPI mixerMessage(HMIXER,UINT,DWORD,DWORD);
1238 UINT WINAPI mixerGetDevCapsA(UINT,LPMIXERCAPSA,UINT);
1239 UINT WINAPI mixerGetDevCapsW(UINT,LPMIXERCAPSW,UINT);
1240 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1241 UINT WINAPI mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
1242 UINT WINAPI mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
1243 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1244 UINT WINAPI mixerGetID(HMIXEROBJ,LPUINT,DWORD);
1245 UINT WINAPI mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
1246 UINT WINAPI mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
1247 #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1248 UINT WINAPI mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1249 UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1250 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1251 UINT WINAPI mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1253 #define MMIOERR_BASE 256
1254 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1255 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1256 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1257 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1258 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1259 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1260 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1261 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1262 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1263 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1265 #define CFSEPCHAR '+' /* compound file name separator char. */
1267 typedef DWORD FOURCC; /* a four character code */
1268 typedef LRESULT (CALLBACK *LPMMIOPROC) (LPSTR lpmmioinfo, UINT uMessage,
1269 LPARAM lParam1, LPARAM lParam2);
1277 /* fields maintained by MMIO functions during buffered I/O */
1284 /* fields maintained by I/O procedure */
1287 /* other fields maintained by MMIO */
1291 } MMIOINFO, *PMMIOINFO, *LPMMIOINFO;
1294 typedef struct _MMCKINFO
1296 FOURCC ckid; /* chunk ID */
1297 DWORD cksize; /* chunk size */
1298 FOURCC fccType; /* form type or list type */
1299 DWORD dwDataOffset; /* offset of data portion of chunk */
1300 DWORD dwFlags; /* flags used by MMIO functions */
1301 } MMCKINFO, *LPMMCKINFO;
1303 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1304 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1306 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1307 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1308 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1309 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1310 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1311 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1313 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1315 #define MMIO_READ 0x00000000 /* open file for reading only */
1316 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1317 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1319 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1320 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1321 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1322 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1323 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1325 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1326 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1327 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1328 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1329 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1330 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1331 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1332 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1333 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1334 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1335 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1336 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1342 #endif /* SEEK_SET */
1344 #define MMIOM_READ MMIO_READ /* read */
1345 #define MMIOM_WRITE MMIO_WRITE /* write */
1346 #define MMIOM_SEEK 2 /* seek to a new position in file */
1347 #define MMIOM_OPEN 3 /* open file */
1348 #define MMIOM_CLOSE 4 /* close file */
1349 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1351 #define MMIOM_RENAME 6 /* rename specified file */
1353 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1355 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1356 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1358 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1359 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1361 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1363 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1364 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1365 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1367 LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
1368 LPMMIOPROC WINAPI mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
1369 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1371 FOURCC WINAPI mmioStringToFOURCCA(LPCSTR,UINT);
1372 FOURCC WINAPI mmioStringToFOURCCW(LPCWSTR,UINT);
1373 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1374 HMMIO WINAPI mmioOpenA(LPSTR,MMIOINFO*,DWORD);
1375 HMMIO WINAPI mmioOpenW(LPWSTR,MMIOINFO*,DWORD);
1376 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1378 MMRESULT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
1379 MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1380 MMRESULT WINAPI mmioRenameW(LPCWSTR szFileName, LPCWSTR szNewFileName,
1381 MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1382 #define mmioRename WINELIB_NAME_AW(mmioRename)
1384 MMRESULT WINAPI mmioClose(HMMIO,UINT);
1385 LONG WINAPI mmioRead(HMMIO,HPSTR,LONG);
1386 LONG WINAPI mmioWrite(HMMIO,HPCSTR,LONG);
1387 LONG WINAPI mmioSeek(HMMIO,LONG,INT);
1388 MMRESULT WINAPI mmioGetInfo(HMMIO,MMIOINFO*,UINT);
1389 MMRESULT WINAPI mmioSetInfo(HMMIO,const MMIOINFO*,UINT);
1390 MMRESULT WINAPI mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
1391 MMRESULT WINAPI mmioFlush(HMMIO,UINT);
1392 MMRESULT WINAPI mmioAdvance(HMMIO,MMIOINFO*,UINT);
1393 LRESULT WINAPI mmioSendMessage(HMMIO,UINT,LPARAM,LPARAM);
1394 MMRESULT WINAPI mmioDescend(HMMIO,MMCKINFO*,const MMCKINFO*,UINT);
1395 MMRESULT WINAPI mmioAscend(HMMIO,MMCKINFO*,UINT);
1396 MMRESULT WINAPI mmioCreateChunk(HMMIO,MMCKINFO*,UINT);
1398 typedef UINT (CALLBACK *YIELDPROC)(MCIDEVICEID,DWORD);
1400 DWORD WINAPI mciSendCommandA(UINT,UINT,DWORD,DWORD);
1401 DWORD WINAPI mciSendCommandW(UINT,UINT,DWORD,DWORD);
1402 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1403 DWORD WINAPI mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
1404 DWORD WINAPI mciSendStringW(LPCWSTR,LPSTR,UINT,HWND);
1405 #define mciSendString WINELIB_NAME_AW(mciSendString)
1406 UINT WINAPI mciGetDeviceIDA(LPCSTR);
1407 UINT WINAPI mciGetDeviceIDW(LPCWSTR);
1408 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1409 BOOL WINAPI mciGetErrorStringA(DWORD,LPSTR,UINT);
1410 BOOL WINAPI mciGetErrorStringW(DWORD,LPWSTR,UINT);
1411 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1412 BOOL WINAPI mciSetYieldProc(UINT,YIELDPROC,DWORD);
1413 HTASK WINAPI mciGetCreatorTask(UINT);
1414 YIELDPROC WINAPI mciGetYieldProc(UINT,DWORD*);
1416 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1417 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1418 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1419 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1420 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1421 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1422 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1423 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1424 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1425 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1426 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1427 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1428 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1429 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1430 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1431 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1432 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1433 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1434 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1435 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1436 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1437 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1438 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1439 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1440 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1441 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1442 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1443 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1444 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1445 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1446 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1447 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1448 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1449 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1450 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1451 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1452 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1453 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1454 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1455 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1456 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1457 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1458 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1459 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1460 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1461 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1462 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1463 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1464 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1465 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1466 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1467 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1469 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1470 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1471 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1472 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1473 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1474 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1475 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1476 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1477 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1478 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1480 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1481 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1482 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1483 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1484 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1485 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1486 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1487 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1489 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1490 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1491 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1492 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1494 #define MCIERR_NO_IDENTITY (MCIERR_BASE + 94)
1496 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1498 #define MCI_OPEN_DRIVER 0x0801
1499 #define MCI_CLOSE_DRIVER 0x0802
1500 #define MCI_OPEN 0x0803
1501 #define MCI_CLOSE 0x0804
1502 #define MCI_ESCAPE 0x0805
1503 #define MCI_PLAY 0x0806
1504 #define MCI_SEEK 0x0807
1505 #define MCI_STOP 0x0808
1506 #define MCI_PAUSE 0x0809
1507 #define MCI_INFO 0x080A
1508 #define MCI_GETDEVCAPS 0x080B
1509 #define MCI_SPIN 0x080C
1510 #define MCI_SET 0x080D
1511 #define MCI_STEP 0x080E
1512 #define MCI_RECORD 0x080F
1513 #define MCI_SYSINFO 0x0810
1514 #define MCI_BREAK 0x0811
1515 #define MCI_SOUND 0x0812
1516 #define MCI_SAVE 0x0813
1517 #define MCI_STATUS 0x0814
1518 #define MCI_CUE 0x0830
1519 #define MCI_REALIZE 0x0840
1520 #define MCI_WINDOW 0x0841
1521 #define MCI_PUT 0x0842
1522 #define MCI_WHERE 0x0843
1523 #define MCI_FREEZE 0x0844
1524 #define MCI_UNFREEZE 0x0845
1525 #define MCI_LOAD 0x0850
1526 #define MCI_CUT 0x0851
1527 #define MCI_COPY 0x0852
1528 #define MCI_PASTE 0x0853
1529 #define MCI_UPDATE 0x0854
1530 #define MCI_RESUME 0x0855
1531 #define MCI_DELETE 0x0856
1533 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1535 #define MCI_ALL_DEVICE_ID 0xFFFF
1537 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1538 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1539 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1540 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1541 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1542 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1543 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1544 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1545 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1546 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1547 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1549 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1550 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1552 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1553 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1554 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1555 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1556 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1557 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1558 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1560 #define MCI_FORMAT_MILLISECONDS 0
1561 #define MCI_FORMAT_HMS 1
1562 #define MCI_FORMAT_MSF 2
1563 #define MCI_FORMAT_FRAMES 3
1564 #define MCI_FORMAT_SMPTE_24 4
1565 #define MCI_FORMAT_SMPTE_25 5
1566 #define MCI_FORMAT_SMPTE_30 6
1567 #define MCI_FORMAT_SMPTE_30DROP 7
1568 #define MCI_FORMAT_BYTES 8
1569 #define MCI_FORMAT_SAMPLES 9
1570 #define MCI_FORMAT_TMSF 10
1572 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1573 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1574 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1576 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1578 (((DWORD)(BYTE)(f))<<16)))
1580 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1581 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1582 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1583 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1585 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1587 (((DWORD)(BYTE)(s) | \
1588 ((WORD)(f)<<8))<<16)))
1590 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1591 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1592 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1594 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1596 (((DWORD)(BYTE)(s))<<16)))
1598 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1599 #define MCI_NOTIFY_SUPERSEDED 0x0002
1600 #define MCI_NOTIFY_ABORTED 0x0004
1601 #define MCI_NOTIFY_FAILURE 0x0008
1603 #define MCI_NOTIFY 0x00000001L
1604 #define MCI_WAIT 0x00000002L
1605 #define MCI_FROM 0x00000004L
1606 #define MCI_TO 0x00000008L
1607 #define MCI_TRACK 0x00000010L
1609 #define MCI_OPEN_SHAREABLE 0x00000100L
1610 #define MCI_OPEN_ELEMENT 0x00000200L
1611 #define MCI_OPEN_ALIAS 0x00000400L
1612 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1613 #define MCI_OPEN_TYPE_ID 0x00001000L
1614 #define MCI_OPEN_TYPE 0x00002000L
1616 #define MCI_SEEK_TO_START 0x00000100L
1617 #define MCI_SEEK_TO_END 0x00000200L
1619 #define MCI_STATUS_ITEM 0x00000100L
1620 #define MCI_STATUS_START 0x00000200L
1622 #define MCI_STATUS_LENGTH 0x00000001L
1623 #define MCI_STATUS_POSITION 0x00000002L
1624 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1625 #define MCI_STATUS_MODE 0x00000004L
1626 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1627 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1628 #define MCI_STATUS_READY 0x00000007L
1629 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1631 #define MCI_INFO_PRODUCT 0x00000100L
1632 #define MCI_INFO_FILE 0x00000200L
1633 #define MCI_INFO_MEDIA_UPC 0x00000400L
1634 #define MCI_INFO_MEDIA_IDENTITY 0x00000800L
1635 #define MCI_INFO_NAME 0x00001000L
1636 #define MCI_INFO_COPYRIGHT 0x00002000L
1638 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1640 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1641 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1642 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1643 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1644 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1645 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1646 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1647 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1648 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1650 #define MCI_SYSINFO_QUANTITY 0x00000100L
1651 #define MCI_SYSINFO_OPEN 0x00000200L
1652 #define MCI_SYSINFO_NAME 0x00000400L
1653 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1655 #define MCI_SET_DOOR_OPEN 0x00000100L
1656 #define MCI_SET_DOOR_CLOSED 0x00000200L
1657 #define MCI_SET_TIME_FORMAT 0x00000400L
1658 #define MCI_SET_AUDIO 0x00000800L
1659 #define MCI_SET_VIDEO 0x00001000L
1660 #define MCI_SET_ON 0x00002000L
1661 #define MCI_SET_OFF 0x00004000L
1663 #define MCI_SET_AUDIO_ALL 0x00000000L
1664 #define MCI_SET_AUDIO_LEFT 0x00000001L
1665 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1667 #define MCI_BREAK_KEY 0x00000100L
1668 #define MCI_BREAK_HWND 0x00000200L
1669 #define MCI_BREAK_OFF 0x00000400L
1671 #define MCI_RECORD_INSERT 0x00000100L
1672 #define MCI_RECORD_OVERWRITE 0x00000200L
1674 #define MCI_SOUND_NAME 0x00000100L
1676 #define MCI_SAVE_FILE 0x00000100L
1678 #define MCI_LOAD_FILE 0x00000100L
1682 } MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
1686 MCIDEVICEID wDeviceID;
1687 LPSTR lpstrDeviceType;
1688 LPSTR lpstrElementName;
1690 } MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
1694 MCIDEVICEID wDeviceID;
1695 LPWSTR lpstrDeviceType;
1696 LPWSTR lpstrElementName;
1698 } MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
1700 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
1701 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
1707 } MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
1712 } MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
1719 } MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
1725 } MCI_INFO_PARMSA, *LPMCI_INFO_PARMSA;
1731 } MCI_INFO_PARMSW, *LPMCI_INFO_PARMSW;
1733 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
1734 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
1740 } MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
1748 } MCI_SYSINFO_PARMSA, *LPMCI_SYSINFO_PARMSA;
1756 } MCI_SYSINFO_PARMSW, *LPMCI_SYSINFO_PARMSW;
1758 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
1759 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
1765 } MCI_SET_PARMS, *LPMCI_SET_PARMS;
1771 } MCI_BREAK_PARMS, *LPMCI_BREAK_PARMS;
1776 LPCSTR lpstrSoundName;
1777 } MCI_SOUND_PARMS, *LPMCI_SOUND_PARMS;
1782 } MCI_SAVE_PARMS, *LPMCI_SAVE_PARMS;
1787 } MCI_LOAD_PARMSA, *LPMCI_LOAD_PARMSA;
1792 } MCI_LOAD_PARMSW, *LPMCI_LOAD_PARMSW;
1794 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
1795 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
1801 } MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
1803 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
1805 #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
1806 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
1808 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
1810 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
1811 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
1812 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
1814 #define MCI_VD_FORMAT_TRACK 0x4001
1816 #define MCI_VD_PLAY_REVERSE 0x00010000L
1817 #define MCI_VD_PLAY_FAST 0x00020000L
1818 #define MCI_VD_PLAY_SPEED 0x00040000L
1819 #define MCI_VD_PLAY_SCAN 0x00080000L
1820 #define MCI_VD_PLAY_SLOW 0x00100000L
1822 #define MCI_VD_SEEK_REVERSE 0x00010000L
1824 #define MCI_VD_STATUS_SPEED 0x00004002L
1825 #define MCI_VD_STATUS_FORWARD 0x00004003L
1826 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
1827 #define MCI_VD_STATUS_SIDE 0x00004005L
1828 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
1830 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
1831 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
1833 #define MCI_VD_SPIN_UP 0x00010000L
1834 #define MCI_VD_SPIN_DOWN 0x00020000L
1836 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
1837 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
1838 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
1839 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
1841 #define MCI_VD_STEP_FRAMES 0x00010000L
1842 #define MCI_VD_STEP_REVERSE 0x00020000L
1844 #define MCI_VD_ESCAPE_STRING 0x00000100L
1851 } MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
1856 } MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
1860 LPCSTR lpstrCommand;
1861 } MCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA;
1865 LPCWSTR lpstrCommand;
1866 } MCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW;
1868 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
1869 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
1871 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
1873 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
1874 #define MCI_WAVE_SET_CHANNELS 0x00020000L
1875 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
1876 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
1877 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
1878 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
1880 #define MCI_WAVE_INPUT 0x00400000L
1881 #define MCI_WAVE_OUTPUT 0x00800000L
1883 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
1884 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
1885 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
1886 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
1887 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
1888 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
1889 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
1891 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
1892 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
1894 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
1895 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
1899 MCIDEVICEID wDeviceID;
1900 LPCSTR lpstrDeviceType;
1901 LPCSTR lpstrElementName;
1903 DWORD dwBufferSeconds;
1904 } MCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA;
1908 MCIDEVICEID wDeviceID;
1909 LPCWSTR lpstrDeviceType;
1910 LPCWSTR lpstrElementName;
1912 DWORD dwBufferSeconds;
1913 } MCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW;
1915 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
1916 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
1922 } MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
1932 DWORD nSamplesPerSec;
1933 DWORD nAvgBytesPerSec;
1935 UINT wBitsPerSample;
1936 } MCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS;
1939 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
1940 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
1941 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
1942 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
1943 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
1945 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
1946 #define MCI_SEQ_FILE 0x4002
1947 #define MCI_SEQ_MIDI 0x4003
1948 #define MCI_SEQ_SMPTE 0x4004
1949 #define MCI_SEQ_NONE 65533
1951 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
1952 #define MCI_SEQ_STATUS_PORT 0x00004003L
1953 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
1954 #define MCI_SEQ_STATUS_MASTER 0x00004008L
1955 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
1956 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
1958 #define MCI_SEQ_SET_TEMPO 0x00010000L
1959 #define MCI_SEQ_SET_PORT 0x00020000L
1960 #define MCI_SEQ_SET_SLAVE 0x00040000L
1961 #define MCI_SEQ_SET_MASTER 0x00080000L
1962 #define MCI_SEQ_SET_OFFSET 0x01000000L
1973 } MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
1975 #define MCI_ANIM_OPEN_WS 0x00010000L
1976 #define MCI_ANIM_OPEN_PARENT 0x00020000L
1977 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
1979 #define MCI_ANIM_PLAY_SPEED 0x00010000L
1980 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
1981 #define MCI_ANIM_PLAY_FAST 0x00040000L
1982 #define MCI_ANIM_PLAY_SLOW 0x00080000L
1983 #define MCI_ANIM_PLAY_SCAN 0x00100000L
1985 #define MCI_ANIM_STEP_REVERSE 0x00010000L
1986 #define MCI_ANIM_STEP_FRAMES 0x00020000L
1988 #define MCI_ANIM_STATUS_SPEED 0x00004001L
1989 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
1990 #define MCI_ANIM_STATUS_HWND 0x00004003L
1991 #define MCI_ANIM_STATUS_HPAL 0x00004004L
1992 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
1994 #define MCI_ANIM_INFO_TEXT 0x00010000L
1996 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
1997 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
1998 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
1999 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2000 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2001 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2002 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2004 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2005 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2007 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2008 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2009 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2010 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2011 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2013 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2015 #define MCI_ANIM_RECT 0x00010000L
2016 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2017 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2019 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2020 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2022 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2026 MCIDEVICEID wDeviceID;
2027 LPCSTR lpstrDeviceType;
2028 LPCSTR lpstrElementName;
2032 } MCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA;
2036 MCIDEVICEID wDeviceID;
2037 LPCWSTR lpstrDeviceType;
2038 LPCWSTR lpstrElementName;
2042 } MCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW;
2044 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
2045 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
2052 } MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
2057 } MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
2064 } MCI_ANIM_WINDOW_PARMSA, *LPMCI_ANIM_WINDOW_PARMSA;
2071 } MCI_ANIM_WINDOW_PARMSW, *LPMCI_ANIM_WINDOW_PARMSW;
2073 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
2074 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
2078 #ifdef MCI_USE_OFFEXT
2081 #else /* ifdef MCI_USE_OFFEXT */
2083 #endif /* ifdef MCI_USE_OFFEXT */
2084 } MCI_ANIM_RECT_PARMS, *LPMCI_ANIM_RECT_PARMS;
2091 } MCI_ANIM_UPDATE_PARMS, *LPMCI_ANIM_UPDATE_PARMS;
2094 #define MCI_OVLY_OPEN_WS 0x00010000L
2095 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2097 #define MCI_OVLY_STATUS_HWND 0x00004001L
2098 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2100 #define MCI_OVLY_INFO_TEXT 0x00010000L
2102 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2103 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2104 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2106 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2107 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2108 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2109 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2110 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2112 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2114 #define MCI_OVLY_RECT 0x00010000L
2115 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2116 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2117 #define MCI_OVLY_PUT_FRAME 0x00080000L
2118 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2120 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2121 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2122 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2123 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2127 MCIDEVICEID wDeviceID;
2128 LPCSTR lpstrDeviceType;
2129 LPCSTR lpstrElementName;
2133 } MCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA;
2137 MCIDEVICEID wDeviceID;
2138 LPCWSTR lpstrDeviceType;
2139 LPCWSTR lpstrElementName;
2143 } MCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW;
2145 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
2146 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
2153 } MCI_OVLY_WINDOW_PARMSA, *LPMCI_OVLY_WINDOW_PARMSA;
2160 } MCI_OVLY_WINDOW_PARMSW, *LPMCI_OVLY_WINDOW_PARMSW;
2162 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
2163 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
2167 #ifdef MCI_USE_OFFEXT
2170 #else /* ifdef MCI_USE_OFFEXT */
2172 #endif /* ifdef MCI_USE_OFFEXT */
2173 } MCI_OVLY_RECT_PARMS, *LPMCI_OVLY_RECT_PARMS;
2180 } MCI_OVLY_SAVE_PARMSA, *LPMCI_OVLY_SAVE_PARMSA;
2186 } MCI_OVLY_SAVE_PARMSW, *LPMCI_OVLY_SAVE_PARMSW;
2188 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
2189 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
2195 } MCI_OVLY_LOAD_PARMSA, *LPMCI_OVLY_LOAD_PARMSA;
2201 } MCI_OVLY_LOAD_PARMSW, *LPMCI_OVLY_LOAD_PARMSW;
2203 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
2204 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
2206 #include "poppack.h"
2212 #endif /* __WINE_MMSYSTEM_H */