2 * MMSYSTEM - Multimedia Wine Extension ... :-)
5 #ifndef __WINE_MMSYSTEM_H
6 #define __WINE_MMSYSTEM_H
13 typedef LPSTR HPSTR
; /* a huge version of LPSTR */
14 typedef LPCSTR HPCSTR
; /* a huge version of LPCSTR */
18 #define MAXWAVEDRIVERS 10
19 #define MAXMIDIDRIVERS 10
20 #define MAXAUXDRIVERS 10
21 #define MAXMCIDRIVERS 32
22 #define MAXMIXERDRIVERS 10
24 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
25 #define MAXERRORLENGTH 128 /* max error text length (including NULL) */
26 #define MAX_JOYSTICKOEMVXDNAME 260
28 typedef WORD VERSION
; /* major (high byte), minor (low byte) */
30 typedef UINT16 MMVERSION16
;
31 typedef UINT MMVERSION
;
32 typedef UINT16 MCIDEVICEID16
;
33 typedef UINT MCIDEVICEID
;
34 typedef UINT16 MMRESULT16
;
35 typedef UINT MMRESULT
;
38 UINT16 wType
; /* indicates the contents of the union */
40 DWORD ms
; /* milliseconds */
41 DWORD sample
; /* samples */
42 DWORD cb
; /* byte count */
44 BYTE hour
; /* hours */
45 BYTE min
; /* minutes */
46 BYTE sec
; /* seconds */
47 BYTE frame
; /* frames */
48 BYTE fps
; /* frames per second */
52 DWORD songptrpos
; /* song pointer position */
55 } MMTIME16
, *LPMMTIME16
;
79 #define TIME_MS 0x0001 /* time in milliseconds */
80 #define TIME_SAMPLES 0x0002 /* number of wave samples */
81 #define TIME_BYTES 0x0004 /* current byte offset */
82 #define TIME_SMPTE 0x0008 /* SMPTE time */
83 #define TIME_MIDI 0x0010 /* MIDI time */
84 #define TIME_TICKS 0x0020 /* MIDI ticks */
86 #define MM_JOY1MOVE 0x3A0 /* joystick */
87 #define MM_JOY2MOVE 0x3A1
88 #define MM_JOY1ZMOVE 0x3A2
89 #define MM_JOY2ZMOVE 0x3A3
90 #define MM_JOY1BUTTONDOWN 0x3B5
91 #define MM_JOY2BUTTONDOWN 0x3B6
92 #define MM_JOY1BUTTONUP 0x3B7
93 #define MM_JOY2BUTTONUP 0x3B8
95 #define MM_MCINOTIFY 0x3B9 /* MCI */
97 #define MM_WOM_OPEN 0x3BB /* waveform output */
98 #define MM_WOM_CLOSE 0x3BC
99 #define MM_WOM_DONE 0x3BD
101 #define MM_WIM_OPEN 0x3BE /* waveform input */
102 #define MM_WIM_CLOSE 0x3BF
103 #define MM_WIM_DATA 0x3C0
105 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
106 #define MM_MIM_CLOSE 0x3C2
107 #define MM_MIM_DATA 0x3C3
108 #define MM_MIM_LONGDATA 0x3C4
109 #define MM_MIM_ERROR 0x3C5
110 #define MM_MIM_LONGERROR 0x3C6
112 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
113 #define MM_MOM_CLOSE 0x3C8
114 #define MM_MOM_DONE 0x3C9
115 #define MM_MOM_POSITIONCB 0x3CA
117 #define MM_MIM_MOREDATA 0x3CC
119 #define MMSYSERR_BASE 0
120 #define WAVERR_BASE 32
121 #define MIDIERR_BASE 64
122 #define TIMERR_BASE 96
123 #define JOYERR_BASE 160
124 #define MCIERR_BASE 256
126 #define MCI_STRING_OFFSET 512
127 #define MCI_VD_OFFSET 1024
128 #define MCI_CD_OFFSET 1088
129 #define MCI_WAVE_OFFSET 1152
130 #define MCI_SEQ_OFFSET 1216
132 #define MMSYSERR_NOERROR 0 /* no error */
133 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
134 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
135 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
136 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
137 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
138 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
139 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
140 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
141 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
142 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
143 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
144 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
146 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
147 #define CALLBACK_NULL 0x00000000l /* no callback */
148 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
149 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
150 #define CALLBACK_THREAD (CALLBACK_TASK) /* dwCallback is a thread ID */
151 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
152 #define CALLBACK_EVENT 0x00050000l /* dwCallback is an EVENT Handler */
154 #define DRV_LOAD 0x0001
155 #define DRV_ENABLE 0x0002
156 #define DRV_OPEN 0x0003
157 #define DRV_CLOSE 0x0004
158 #define DRV_DISABLE 0x0005
159 #define DRV_FREE 0x0006
160 #define DRV_CONFIGURE 0x0007
161 #define DRV_QUERYCONFIGURE 0x0008
162 #define DRV_INSTALL 0x0009
163 #define DRV_REMOVE 0x000A
164 #define DRV_EXITSESSION 0x000B
165 #define DRV_EXITAPPLICATION 0x000C
166 #define DRV_POWER 0x000F
168 #define DRV_RESERVED 0x0800
169 #define DRV_USER 0x4000
171 #define DRVCNF_CANCEL 0x0000
172 #define DRVCNF_OK 0x0001
173 #define DRVCNF_RESTART 0x0002
175 #define DRVEA_NORMALEXIT 0x0001
176 #define DRVEA_ABNORMALEXIT 0x0002
178 #define DRV_SUCCESS 0x0001
179 #define DRV_FAILURE 0x0000
181 #define GND_FIRSTINSTANCEONLY 0x00000001
183 #define GND_FORWARD 0x00000000
184 #define GND_REVERSE 0x00000002
188 LPCSTR lpszDCISectionName
;
189 LPCSTR lpszDCIAliasName
;
190 } DRVCONFIGINFO16
, *LPDRVCONFIGINFO16
;
194 LPCWSTR lpszDCISectionName
;
195 LPCWSTR lpszDCIAliasName
;
196 } DRVCONFIGINFO
, *LPDRVCONFIGINFO
;
199 /* GetDriverInfo16 references this structure, so this a struct defined
201 * GetDriverInfo has been deprecated in Win32.
208 CHAR szAliasName
[128];
209 } DRIVERINFOSTRUCT16
, *LPDRIVERINFOSTRUCT16
;
211 LRESULT WINAPI
DefDriverProc16(DWORD dwDevID
, HDRVR16 hDriv
, UINT16 wMsg
,
212 LPARAM dwParam1
, LPARAM dwParam2
);
213 LRESULT WINAPI
DefDriverProc(DWORD dwDriverIdentifier
, HDRVR hdrvr
,
214 UINT Msg
, LPARAM lParam1
, LPARAM lParam2
);
215 HDRVR16 WINAPI
OpenDriver16(LPCSTR szDriverName
, LPCSTR szSectionName
,
217 HDRVR WINAPI
OpenDriverA(LPCSTR szDriverName
, LPCSTR szSectionName
,
219 HDRVR WINAPI
OpenDriverW(LPCWSTR szDriverName
, LPCWSTR szSectionName
,
221 #define OpenDriver WINELIB_NAME_AW(OpenDriver)
222 LRESULT WINAPI
CloseDriver16(HDRVR16 hDriver
, LPARAM lParam1
, LPARAM lParam2
);
223 LRESULT WINAPI
CloseDriver(HDRVR hDriver
, LPARAM lParam1
, LPARAM lParam2
);
224 LRESULT WINAPI
SendDriverMessage16(HDRVR16 hDriver
, UINT16 message
,
225 LPARAM lParam1
, LPARAM lParam2
);
226 LRESULT WINAPI
SendDriverMessage(HDRVR hDriver
, UINT message
,
227 LPARAM lParam1
, LPARAM lParam2
);
228 HMODULE16 WINAPI
GetDriverModuleHandle16(HDRVR16 hDriver
);
229 HMODULE WINAPI
GetDriverModuleHandle(HDRVR hDriver
);
231 /* only win31 version for those exist */
232 HDRVR16 WINAPI
GetNextDriver16(HDRVR16
, DWORD
);
233 BOOL16 WINAPI
GetDriverInfo16(HDRVR16
, DRIVERINFOSTRUCT16
*);
235 DWORD WINAPI
GetDriverFlags(HDRVR hDriver
);
237 /* this call (GetDriverFlags) is not documented, nor the flags returned.
238 * here are Wine only definitions
240 #define WINE_GDF_EXIST 0x80000000
241 #define WINE_GDF_16BIT 0x10000000
244 typedef void CALLBACK (*LPDRVCALLBACK16
) (HDRVR16 h
, UINT16 uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
245 typedef void CALLBACK (*LPDRVCALLBACK
) (HDRVR h
, UINT uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
247 #define MM_MICROSOFT 1 /* Microsoft Corp. */
249 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
250 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
252 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
253 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
254 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
255 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
256 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
258 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
260 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
261 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
263 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
266 UINT16 WINAPI
mmsystemGetVersion16(void);
267 UINT WINAPI
mmsystemGetVersion(void);
268 BOOL16 WINAPI
sndPlaySound(LPCSTR lpszSoundName
, UINT16 uFlags
);
269 BOOL WINAPI
sndPlaySoundA(LPCSTR lpszSound
, UINT fuSound
);
270 BOOL WINAPI
sndPlaySoundW(LPCWSTR lpszSound
, UINT fuSound
);
271 #define sndPlaySound WINELIB_NAME_AW(sndPlaySound)
272 BOOL WINAPI
PlaySoundA(LPCSTR pszSound
, HMODULE hmod
, DWORD fdwSound
);
273 BOOL WINAPI
PlaySoundW(LPCWSTR pszSound
, HMODULE hmod
, DWORD fdwSound
);
274 #define PlaySound WINELIB_NAME_AW(PlaySound)
276 #define SND_SYNC 0x0000 /* play synchronously (default) */
277 #define SND_ASYNC 0x0001 /* play asynchronously */
278 #define SND_NODEFAULT 0x0002 /* don't use default sound */
279 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
280 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
281 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
283 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
284 #define SND_ALIAS 0x00010000L /* name is a registry alias */
285 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
286 #define SND_FILENAME 0x00020000L /* name is file name */
287 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
288 #define SND_PURGE 0x00000040L /* purge all sounds */
289 #define SND_APPLICATION 0x00000080L /* look for application specific association */
291 /* waveform audio error return values */
292 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
293 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
294 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
295 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
296 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
298 typedef LPDRVCALLBACK16 LPWAVECALLBACK16
;
299 typedef LPDRVCALLBACK LPWAVECALLBACK
;
301 #define WOM_OPEN MM_WOM_OPEN
302 #define WOM_CLOSE MM_WOM_CLOSE
303 #define WOM_DONE MM_WOM_DONE
304 #define WIM_OPEN MM_WIM_OPEN
305 #define WIM_CLOSE MM_WIM_CLOSE
306 #define WIM_DATA MM_WIM_DATA
308 #define WAVE_MAPPER (-1)
310 #define WAVE_FORMAT_QUERY 0x0001
311 #define WAVE_ALLOWSYNC 0x0002
312 #define WAVE_MAPPED 0x0004
313 #define WAVE_FORMAT_DIRECT 0x0008
314 #define WAVE_FORMAT_DIRECT_QUERY (WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT)
316 #define WAVE_DIRECTSOUND 0x0080
319 typedef struct wavehdr_tag
{
320 LPSTR lpData
; /* pointer to locked data buffer */
321 DWORD dwBufferLength
; /* length of data buffer */
322 DWORD dwBytesRecorded
;/* used for input only */
323 DWORD dwUser
; /* for client's use */
324 DWORD dwFlags
; /* assorted flags (see defines) */
325 DWORD dwLoops
; /* loop control counter */
327 struct wavehdr_tag
*lpNext
; /* reserved for driver */
328 DWORD reserved
; /* reserved for driver */
329 } WAVEHDR
, *LPWAVEHDR
;
331 #define WHDR_DONE 0x00000001 /* done bit */
332 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
333 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
334 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
335 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
338 WORD wMid
; /* manufacturer ID */
339 WORD wPid
; /* product ID */
340 MMVERSION16 vDriverVersion
; /* version of the driver */
341 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
342 DWORD dwFormats
; /* formats supported */
343 WORD wChannels
; /* number of sources supported */
344 DWORD dwSupport
; /* functionality supported by driver */
345 } WAVEOUTCAPS16
, *LPWAVEOUTCAPS16
;
348 WORD wMid
; /* manufacturer ID */
349 WORD wPid
; /* product ID */
350 MMVERSION vDriverVersion
; /* version of the driver */
351 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
352 DWORD dwFormats
; /* formats supported */
353 WORD wChannels
; /* number of sources supported */
354 WORD wReserved1
; /* padding */
355 DWORD dwSupport
; /* functionality supported by driver */
356 } WAVEOUTCAPSA
, *LPWAVEOUTCAPSA
;
359 WORD wMid
; /* manufacturer ID */
360 WORD wPid
; /* product ID */
361 MMVERSION vDriverVersion
; /* version of the driver */
362 WCHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
363 DWORD dwFormats
; /* formats supported */
364 WORD wChannels
; /* number of sources supported */
365 WORD wReserved1
; /* padding */
366 DWORD dwSupport
; /* functionality supported by driver */
367 } WAVEOUTCAPSW
, *LPWAVEOUTCAPSW
;
368 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS
)
369 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS
)
371 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
372 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
373 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
374 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
375 #define WAVECAPS_SYNC 0x0010 /* driver is synchrounous and playing is blocking */
376 #define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
377 #define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
380 WORD wMid
; /* manufacturer ID */
381 WORD wPid
; /* product ID */
382 MMVERSION16 vDriverVersion
; /* version of the driver */
383 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
384 DWORD dwFormats
; /* formats supported */
385 WORD wChannels
; /* number of channels supported */
386 } WAVEINCAPS16
, *LPWAVEINCAPS16
;
389 WORD wMid
; /* manufacturer ID */
390 WORD wPid
; /* product ID */
391 MMVERSION vDriverVersion
; /* version of the driver */
392 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
393 DWORD dwFormats
; /* formats supported */
394 WORD wChannels
; /* number of channels supported */
396 } WAVEINCAPSA
, *LPWAVEINCAPSA
;
398 WORD wMid
; /* manufacturer ID */
399 WORD wPid
; /* product ID */
400 MMVERSION vDriverVersion
; /* version of the driver */
401 WCHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
402 DWORD dwFormats
; /* formats supported */
403 WORD wChannels
; /* number of channels supported */
405 } WAVEINCAPSW
, *LPWAVEINCAPSW
;
406 DECL_WINELIB_TYPE_AW(WAVEINCAPS
)
407 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS
)
409 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
410 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
411 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
412 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
413 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
414 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
415 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
416 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
417 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
418 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
419 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
420 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
421 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
423 /* General format structure common to all formats, same for Win16 and Win32 */
425 WORD wFormatTag
; /* format type */
426 WORD nChannels
; /* number of channels */
427 DWORD nSamplesPerSec
; /* sample rate */
428 DWORD nAvgBytesPerSec
;/* for buffer estimation */
429 WORD nBlockAlign
; /* block size of data */
430 } WAVEFORMAT
, *LPWAVEFORMAT
;
432 #define WAVE_FORMAT_PCM 1
437 } PCMWAVEFORMAT
, *LPPCMWAVEFORMAT
;
439 #ifndef _WAVEFORMATEX_
440 #define _WAVEFORMATEX_
441 /* dito same for Win16 / Win32 */
443 WORD wFormatTag
; /* format type */
444 WORD nChannels
; /* number of channels (i.e. mono, stereo...) */
445 DWORD nSamplesPerSec
; /* sample rate */
446 DWORD nAvgBytesPerSec
;/* for buffer estimation */
447 WORD nBlockAlign
; /* block size of data */
448 WORD wBitsPerSample
; /* number of bits per sample of mono data */
449 WORD cbSize
; /* the count in bytes of the size of */
450 /* extra information (after cbSize) */
451 } WAVEFORMATEX
, *LPWAVEFORMATEX
, *NPWAVEFORMATEX
, *PWAVEFORMATEX
;
454 UINT16 WINAPI
waveOutGetNumDevs16(void);
455 UINT WINAPI
waveOutGetNumDevs(void);
456 UINT16 WINAPI
waveOutGetDevCaps16(UINT16
,LPWAVEOUTCAPS16
,UINT16
);
457 UINT WINAPI
waveOutGetDevCapsA(UINT
,LPWAVEOUTCAPSA
,UINT
);
458 UINT WINAPI
waveOutGetDevCapsW(UINT
,LPWAVEOUTCAPSW
,UINT
);
459 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
460 UINT16 WINAPI
waveOutGetVolume16(UINT16
,DWORD
*);
461 UINT WINAPI
waveOutGetVolume(UINT
,DWORD
*);
462 UINT16 WINAPI
waveOutSetVolume16(UINT16
,DWORD
);
463 UINT WINAPI
waveOutSetVolume(UINT
,DWORD
);
464 UINT16 WINAPI
waveOutGetErrorText16(UINT16
,LPSTR
,UINT16
);
465 UINT WINAPI
waveOutGetErrorTextA(UINT
,LPSTR
,UINT
);
466 UINT WINAPI
waveOutGetErrorTextW(UINT
,LPWSTR
,UINT
);
467 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
468 UINT16 WINAPI
waveOutOpen16(HWAVEOUT16
*,UINT16
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
469 UINT WINAPI
waveOutOpen(HWAVEOUT
*,UINT
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
470 UINT16 WINAPI
waveOutClose16(HWAVEOUT16
);
471 UINT WINAPI
waveOutClose(HWAVEOUT
);
472 UINT16 WINAPI
waveOutPrepareHeader16(HWAVEOUT16
,WAVEHDR
*,UINT16
);
473 UINT WINAPI
waveOutPrepareHeader(HWAVEOUT
,WAVEHDR
*,UINT
);
474 UINT16 WINAPI
waveOutUnprepareHeader16(HWAVEOUT16
,WAVEHDR
*,UINT16
);
475 UINT WINAPI
waveOutUnprepareHeader(HWAVEOUT
,WAVEHDR
*,UINT
);
476 UINT16 WINAPI
waveOutWrite16(HWAVEOUT16
,WAVEHDR
*,UINT16
);
477 UINT WINAPI
waveOutWrite(HWAVEOUT
,WAVEHDR
*,UINT
);
478 UINT16 WINAPI
waveOutPause16(HWAVEOUT16
);
479 UINT WINAPI
waveOutPause(HWAVEOUT
);
480 UINT16 WINAPI
waveOutRestart16(HWAVEOUT16
);
481 UINT WINAPI
waveOutRestart(HWAVEOUT
);
482 UINT16 WINAPI
waveOutReset16(HWAVEOUT16
);
483 UINT WINAPI
waveOutReset(HWAVEOUT
);
484 UINT16 WINAPI
waveOutBreakLoop16(HWAVEOUT16
);
485 UINT WINAPI
waveOutBreakLoop(HWAVEOUT
);
486 UINT16 WINAPI
waveOutGetPosition16(HWAVEOUT16
,LPMMTIME16
,UINT16
);
487 UINT WINAPI
waveOutGetPosition(HWAVEOUT
,LPMMTIME
,UINT
);
488 UINT16 WINAPI
waveOutGetPitch16(HWAVEOUT16
,DWORD
*);
489 UINT WINAPI
waveOutGetPitch(HWAVEOUT
,DWORD
*);
490 UINT16 WINAPI
waveOutSetPitch16(HWAVEOUT16
,DWORD
);
491 UINT WINAPI
waveOutSetPitch(HWAVEOUT
,DWORD
);
492 UINT16 WINAPI
waveOutGetPlaybackRate16(HWAVEOUT16
,DWORD
*);
493 UINT WINAPI
waveOutGetPlaybackRate(HWAVEOUT
,DWORD
*);
494 UINT16 WINAPI
waveOutSetPlaybackRate16(HWAVEOUT16
,DWORD
);
495 UINT WINAPI
waveOutSetPlaybackRate(HWAVEOUT
,DWORD
);
496 UINT16 WINAPI
waveOutGetID16(HWAVEOUT16
,UINT16
*);
497 UINT WINAPI
waveOutGetID(HWAVEOUT
,UINT
*);
498 DWORD WINAPI
waveOutMessage16(HWAVEOUT16
,UINT16
,DWORD
,DWORD
);
499 DWORD WINAPI
waveOutMessage(HWAVEOUT
,UINT
,DWORD
,DWORD
);
501 UINT16 WINAPI
waveInGetNumDevs16(void);
502 UINT WINAPI
waveInGetNumDevs(void);
503 UINT16 WINAPI
waveInGetDevCaps16(UINT16
,LPWAVEINCAPS16
,UINT16
);
504 UINT WINAPI
waveInGetDevCapsA(UINT
,LPWAVEINCAPSA
,UINT
);
505 UINT WINAPI
waveInGetDevCapsW(UINT
,LPWAVEINCAPSW
,UINT
);
506 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
507 UINT16 WINAPI
waveInGetErrorText16(UINT16
,LPSTR
,UINT16
);
508 UINT WINAPI
waveInGetErrorTextA(UINT
,LPSTR
,UINT
);
509 UINT WINAPI
waveInGetErrorTextW(UINT
,LPWSTR
,UINT
);
510 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
511 UINT16 WINAPI
waveInOpen16(HWAVEIN16
*,UINT16
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
512 UINT WINAPI
waveInOpen(HWAVEIN
*,UINT
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
513 UINT16 WINAPI
waveInClose16(HWAVEIN16
);
514 UINT WINAPI
waveInClose(HWAVEIN
);
515 UINT16 WINAPI
waveInPrepareHeader16(HWAVEIN16
,WAVEHDR
*,UINT16
);
516 UINT WINAPI
waveInPrepareHeader(HWAVEIN
,WAVEHDR
*,UINT
);
517 UINT16 WINAPI
waveInUnprepareHeader16(HWAVEIN16
,WAVEHDR
*,UINT16
);
518 UINT WINAPI
waveInUnprepareHeader(HWAVEIN
,WAVEHDR
*,UINT
);
519 UINT16 WINAPI
waveInAddBuffer16(HWAVEIN16
,WAVEHDR
*,UINT16
);
520 UINT WINAPI
waveInAddBuffer(HWAVEIN
,WAVEHDR
*,UINT
);
521 UINT16 WINAPI
waveInStart16(HWAVEIN16
);
522 UINT WINAPI
waveInStart(HWAVEIN
);
523 UINT16 WINAPI
waveInStop16(HWAVEIN16
);
524 UINT WINAPI
waveInStop(HWAVEIN
);
525 UINT16 WINAPI
waveInReset16(HWAVEIN16
);
526 UINT WINAPI
waveInReset(HWAVEIN
);
527 UINT16 WINAPI
waveInGetPosition16(HWAVEIN16
,LPMMTIME16
,UINT16
);
528 UINT WINAPI
waveInGetPosition(HWAVEIN
,LPMMTIME
,UINT
);
529 UINT16 WINAPI
waveInGetID16(HWAVEIN16
,UINT16
*);
530 UINT WINAPI
waveInGetID(HWAVEIN
,UINT
*);
532 DWORD WINAPI
waveInMessage16(HWAVEIN16
,UINT16
,DWORD
,DWORD
);
533 DWORD WINAPI
waveInMessage(HWAVEIN
,UINT
,DWORD
,DWORD
);
535 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
536 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
537 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
538 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
539 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
540 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
541 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
543 typedef LPDRVCALLBACK16 LPMIDICALLBACK16
;
544 typedef LPDRVCALLBACK LPMIDICALLBACK
;
545 #define MIDIPATCHSIZE 128
546 typedef WORD PATCHARRAY
[MIDIPATCHSIZE
];
547 typedef WORD
*LPPATCHARRAY
;
548 typedef WORD KEYARRAY
[MIDIPATCHSIZE
];
549 typedef WORD
*LPKEYARRAY
;
551 #define MIM_OPEN MM_MIM_OPEN
552 #define MIM_CLOSE MM_MIM_CLOSE
553 #define MIM_DATA MM_MIM_DATA
554 #define MIM_LONGDATA MM_MIM_LONGDATA
555 #define MIM_ERROR MM_MIM_ERROR
556 #define MIM_LONGERROR MM_MIM_LONGERROR
557 #define MIM_MOREDATA MM_MIM_MOREDATA
559 #define MOM_OPEN MM_MOM_OPEN
560 #define MOM_CLOSE MM_MOM_CLOSE
561 #define MOM_DONE MM_MOM_DONE
562 #define MOM_POSITIONCB MM_MOM_POSITIONCB
564 /* device ID for MIDI mapper */
566 #define MIDIMAPPER (-1)
567 #define MIDI_MAPPER (-1)
569 /* Only on Win95 and up */
570 #define MIDI_IO_STATUS 0x00000020L
572 /* flags for wFlags parm of
573 midiOutCachePatches(),
574 midiOutCacheDrumPatches() */
575 #define MIDI_CACHE_ALL 1
576 #define MIDI_CACHE_BESTFIT 2
577 #define MIDI_CACHE_QUERY 3
578 #define MIDI_UNCACHE 4
581 WORD wMid
; /* manufacturer ID */
582 WORD wPid
; /* product ID */
583 MMVERSION16 vDriverVersion
; /* version of the driver */
584 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
585 WORD wTechnology
; /* type of device */
586 WORD wVoices
; /* # of voices (internal synth only) */
587 WORD wNotes
; /* max # of notes (internal synth only) */
588 WORD wChannelMask
; /* channels used (internal synth only) */
589 DWORD dwSupport
; /* functionality supported by driver */
590 } MIDIOUTCAPS16
, *LPMIDIOUTCAPS16
;
593 WORD wMid
; /* manufacturer ID */
594 WORD wPid
; /* product ID */
595 MMVERSION vDriverVersion
; /* version of the driver */
596 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
597 WORD wTechnology
; /* type of device */
598 WORD wVoices
; /* # of voices (internal synth only) */
599 WORD wNotes
; /* max # of notes (internal synth only) */
600 WORD wChannelMask
; /* channels used (internal synth only) */
601 DWORD dwSupport
; /* functionality supported by driver */
602 } MIDIOUTCAPSA
, *LPMIDIOUTCAPSA
;
605 WORD wMid
; /* manufacturer ID */
606 WORD wPid
; /* product ID */
607 MMVERSION vDriverVersion
; /* version of the driver */
608 WCHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
609 WORD wTechnology
; /* type of device */
610 WORD wVoices
; /* # of voices (internal synth only) */
611 WORD wNotes
; /* max # of notes (internal synth only) */
612 WORD wChannelMask
; /* channels used (internal synth only) */
613 DWORD dwSupport
; /* functionality supported by driver */
614 } MIDIOUTCAPSW
, *LPMIDIOUTCAPSW
;
616 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS
)
617 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS
)
619 #define MOD_MIDIPORT 1 /* output port */
620 #define MOD_SYNTH 2 /* generic internal synth */
621 #define MOD_SQSYNTH 3 /* square wave internal synth */
622 #define MOD_FMSYNTH 4 /* FM internal synth */
623 #define MOD_MAPPER 5 /* MIDI mapper */
625 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
626 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
627 #define MIDICAPS_CACHE 0x0004
628 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
631 WORD wMid
; /* manufacturer ID */
632 WORD wPid
; /* product ID */
633 MMVERSION16 vDriverVersion
; /* version of the driver */
634 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
635 DWORD dwSupport
; /* included in win95 and higher */
636 } MIDIINCAPS16
, *LPMIDIINCAPS16
;
639 WORD wMid
; /* manufacturer ID */
640 WORD wPid
; /* product ID */
641 MMVERSION vDriverVersion
; /* version of the driver */
642 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
643 DWORD dwSupport
; /* included in win95 and higher */
644 } MIDIINCAPSA
, *LPMIDIINCAPSA
;
647 WORD wMid
; /* manufacturer ID */
648 WORD wPid
; /* product ID */
649 MMVERSION vDriverVersion
; /* version of the driver */
650 WCHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
651 DWORD dwSupport
; /* included in win95 and higher */
652 } MIDIINCAPSW
, *LPMIDIINCAPSW
;
654 DECL_WINELIB_TYPE_AW(MIDIINCAPS
)
655 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS
)
657 typedef struct midihdr16_tag
{
658 LPSTR lpData
; /* pointer to locked data block */
659 DWORD dwBufferLength
; /* length of data in data block */
660 DWORD dwBytesRecorded
;/* used for input only */
661 DWORD dwUser
; /* for client's use */
662 DWORD dwFlags
; /* assorted flags (see defines) */
663 struct midihdr16_tag
*lpNext
; /* reserved for driver */
664 DWORD reserved
; /* reserved for driver */
665 } MIDIHDR16
, *LPMIDIHDR16
;
667 /* It seems that Win32 has a slightly different structure than Win 16.
670 typedef struct midihdr_tag
{
671 LPSTR lpData
; /* pointer to locked data block */
672 DWORD dwBufferLength
; /* length of data in data block */
673 DWORD dwBytesRecorded
;/* used for input only */
674 DWORD dwUser
; /* for client's use */
675 DWORD dwFlags
; /* assorted flags (see defines) */
676 struct midihdr_tag
*lpNext
; /* reserved for driver */
677 DWORD reserved
; /* reserved for driver */
678 DWORD dwOffset
; /* offset of playback in case of
680 DWORD dwReserved
[4]; /* reserved for driver */
681 } MIDIHDR
, *LPMIDIHDR
;
683 #define MHDR_DONE 0x00000001 /* done bit */
684 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
685 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
686 #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
691 } MIDIPROPTEMPO
, *LPMIDIPROPTEMPO
;
696 } MIDIPROPTIMEDIV
, *LPMIDIPROPTIMEDIV
;
698 #define MIDIPROP_GET 0x40000000
699 #define MIDIPROP_SET 0x80000000
700 #define MIDIPROP_TEMPO 0x00000002
701 #define MIDIPROP_TIMEDIV 0x00000001
704 DWORD dwDeltaTime
; /* Time, in MIDI ticks, between the previous
705 * event and the current event. */
706 DWORD dwStreamID
; /* Reserved; must be zero. */
707 DWORD dwEvent
; /* event => see MEVT_XXX macros */
708 DWORD dwParms
[0]; /* extra pmts to dwEvent if F_LONG is set */
709 } MIDIEVENT
, *LPMIDIEVENT
;
711 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
712 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
714 #define MEVT_F_CALLBACK 0x40000000l
715 #define MEVT_F_LONG 0x80000000l
716 #define MEVT_F_SHORT 0x00000000l
717 #define MEVT_COMMENT ((BYTE)0x82)
718 #define MEVT_LONGMSG ((BYTE)0x80)
719 #define MEVT_NOP ((BYTE)0x02)
720 #define MEVT_SHORTMSG ((BYTE)0x00)
721 #define MEVT_TEMPO ((BYTE)0x01)
722 #define MEVT_VERSION ((BYTE)0x84)
724 UINT16 WINAPI
midiOutGetNumDevs16(void);
725 UINT WINAPI
midiOutGetNumDevs(void);
726 UINT16 WINAPI
midiOutGetDevCaps16(UINT16
,LPMIDIOUTCAPS16
,UINT16
);
727 UINT WINAPI
midiOutGetDevCapsA(UINT
,LPMIDIOUTCAPSA
,UINT
);
728 UINT WINAPI
midiOutGetDevCapsW(UINT
,LPMIDIOUTCAPSW
,UINT
);
729 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
730 UINT16 WINAPI
midiOutGetVolume16(UINT16
,DWORD
*);
731 UINT WINAPI
midiOutGetVolume(UINT
,DWORD
*);
732 UINT16 WINAPI
midiOutSetVolume16(UINT16
,DWORD
);
733 UINT WINAPI
midiOutSetVolume(UINT
,DWORD
);
734 UINT16 WINAPI
midiOutGetErrorText16(UINT16
,LPSTR
,UINT16
);
735 UINT WINAPI
midiOutGetErrorTextA(UINT
,LPSTR
,UINT
);
736 UINT WINAPI
midiOutGetErrorTextW(UINT
,LPWSTR
,UINT
);
737 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
738 UINT16 WINAPI
midiOutOpen16(HMIDIOUT16
*,UINT16
,DWORD
,DWORD
,DWORD
);
739 UINT WINAPI
midiOutOpen(HMIDIOUT
*,UINT
,DWORD
,DWORD
,DWORD
);
740 UINT16 WINAPI
midiOutClose16(HMIDIOUT16
);
741 UINT WINAPI
midiOutClose(HMIDIOUT
);
742 UINT16 WINAPI
midiOutPrepareHeader16(HMIDIOUT16
,MIDIHDR16
*,UINT16
);
743 UINT WINAPI
midiOutPrepareHeader(HMIDIOUT
,MIDIHDR
*,UINT
);
744 UINT16 WINAPI
midiOutUnprepareHeader16(HMIDIOUT16
,MIDIHDR16
*,UINT16
);
745 UINT WINAPI
midiOutUnprepareHeader(HMIDIOUT
,MIDIHDR
*,UINT
);
746 UINT16 WINAPI
midiOutShortMsg16(HMIDIOUT16
,DWORD
);
747 UINT WINAPI
midiOutShortMsg(HMIDIOUT
,DWORD
);
748 UINT16 WINAPI
midiOutLongMsg16(HMIDIOUT16
,MIDIHDR16
*,UINT16
);
749 UINT WINAPI
midiOutLongMsg(HMIDIOUT
,MIDIHDR
*,UINT
);
750 UINT16 WINAPI
midiOutReset16(HMIDIOUT16
);
751 UINT WINAPI
midiOutReset(HMIDIOUT
);
752 UINT16 WINAPI
midiOutCachePatches16(HMIDIOUT16
,UINT16
,WORD
*,UINT16
);
753 UINT WINAPI
midiOutCachePatches(HMIDIOUT
,UINT
,WORD
*,UINT
);
754 UINT16 WINAPI
midiOutCacheDrumPatches16(HMIDIOUT16
,UINT16
,WORD
*,UINT16
);
755 UINT WINAPI
midiOutCacheDrumPatches(HMIDIOUT
,UINT
,WORD
*,UINT
);
756 UINT16 WINAPI
midiOutGetID16(HMIDIOUT16
,UINT16
*);
757 UINT WINAPI
midiOutGetID(HMIDIOUT
,UINT
*);
759 DWORD WINAPI
midiOutMessage16(HMIDIOUT16
,UINT16
,DWORD
,DWORD
);
760 DWORD WINAPI
midiOutMessage(HMIDIOUT
,UINT
,DWORD
,DWORD
);
762 UINT16 WINAPI
midiInGetNumDevs16(void);
763 UINT WINAPI
midiInGetNumDevs(void);
764 UINT16 WINAPI
midiInGetDevCaps16(UINT16
,LPMIDIINCAPS16
,UINT16
);
765 UINT WINAPI
midiInGetDevCapsA(UINT
,LPMIDIINCAPSA
,UINT
);
766 UINT WINAPI
midiInGetDevCapsW(UINT
,LPMIDIINCAPSW
,UINT
);
767 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
768 UINT16 WINAPI
midiInGetErrorText16(UINT16
,LPSTR
,UINT16
);
769 UINT WINAPI
midiInGetErrorTextA(UINT
,LPSTR
,UINT
);
770 UINT WINAPI
midiInGetErrorTextW(UINT
,LPWSTR
,UINT
);
771 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
772 UINT16 WINAPI
midiInOpen16(HMIDIIN16
*,UINT16
,DWORD
,DWORD
,DWORD
);
773 UINT WINAPI
midiInOpen(HMIDIIN
*,UINT
,DWORD
,DWORD
,DWORD
);
774 UINT16 WINAPI
midiInClose16(HMIDIIN16
);
775 UINT WINAPI
midiInClose(HMIDIIN
);
776 UINT16 WINAPI
midiInPrepareHeader16(HMIDIIN16
,MIDIHDR16
*,UINT16
);
777 UINT WINAPI
midiInPrepareHeader(HMIDIIN
,MIDIHDR
*,UINT
);
778 UINT16 WINAPI
midiInUnprepareHeader16(HMIDIIN16
,MIDIHDR16
*,UINT16
);
779 UINT WINAPI
midiInUnprepareHeader(HMIDIIN
,MIDIHDR
*,UINT
);
780 UINT16 WINAPI
midiInAddBuffer16(HMIDIIN16
,MIDIHDR16
*,UINT16
);
781 UINT WINAPI
midiInAddBuffer(HMIDIIN
,MIDIHDR
*,UINT
);
782 UINT16 WINAPI
midiInStart16(HMIDIIN16
);
783 UINT WINAPI
midiInStart(HMIDIIN
);
784 UINT16 WINAPI
midiInStop16(HMIDIIN16
);
785 UINT WINAPI
midiInStop(HMIDIIN
);
786 UINT16 WINAPI
midiInReset16(HMIDIIN16
);
787 UINT WINAPI
midiInReset(HMIDIIN
);
788 UINT16 WINAPI
midiInGetID16(HMIDIIN16
,UINT16
*);
789 UINT WINAPI
midiInGetID(HMIDIIN
,UINT
*);
790 DWORD WINAPI
midiInMessage16(HMIDIIN16
,UINT16
,DWORD
,DWORD
);
791 DWORD WINAPI
midiInMessage(HMIDIIN
,UINT
,DWORD
,DWORD
);
793 MMRESULT16 WINAPI
midiStreamClose16(HMIDISTRM16 hms
);
794 MMRESULT WINAPI
midiStreamClose(HMIDISTRM hms
);
795 MMRESULT WINAPI
midiStreamOpen(HMIDISTRM
* phms
, LPUINT uDeviceID
, DWORD cMidi
,
796 DWORD dwCallback
, DWORD dwInstance
, DWORD fdwOpen
);
797 MMRESULT16 WINAPI
midiStreamOpen16(HMIDISTRM16
* phms
, LPUINT16 devid
, DWORD cMidi
,
798 DWORD dwCallback
, DWORD dwInstance
, DWORD fdwOpen
);
799 MMRESULT16 WINAPI
midiStreamOut16(HMIDISTRM16 hms
, LPMIDIHDR16 lpMidiHdr
, UINT16 cbMidiHdr
);
800 MMRESULT WINAPI
midiStreamOut(HMIDISTRM hms
, LPMIDIHDR lpMidiHdr
, UINT cbMidiHdr
);
801 MMRESULT16 WINAPI
midiStreamPause16(HMIDISTRM16 hms
);
802 MMRESULT WINAPI
midiStreamPause(HMIDISTRM hms
);
803 MMRESULT16 WINAPI
midiStreamPosition16(HMIDISTRM16 hms
, LPMMTIME16 lpmmt
, UINT16 cbmmt
);
804 MMRESULT WINAPI
midiStreamPosition(HMIDISTRM hms
, LPMMTIME lpmmt
, UINT cbmmt
);
805 MMRESULT16 WINAPI
midiStreamProperty16(HMIDISTRM16 hms
, LPBYTE lpPropData
, DWORD dwProperty
);
806 MMRESULT WINAPI
midiStreamProperty(HMIDISTRM hms
, LPBYTE lpPropData
, DWORD dwProperty
);
807 MMRESULT16 WINAPI
midiStreamRestart16(HMIDISTRM16 hms
);
808 MMRESULT WINAPI
midiStreamRestart(HMIDISTRM hms
);
809 MMRESULT16 WINAPI
midiStreamStop16(HMIDISTRM16 hms
);
810 MMRESULT WINAPI
midiStreamStop(HMIDISTRM hms
);
812 #define AUX_MAPPER (-1)
815 WORD wMid
; /* manufacturer ID */
816 WORD wPid
; /* product ID */
817 MMVERSION16 vDriverVersion
; /* version of the driver */
818 CHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
819 WORD wTechnology
; /* type of device */
820 DWORD dwSupport
; /* functionality supported by driver */
821 } AUXCAPS16
, *LPAUXCAPS16
;
824 WORD wMid
; /* manufacturer ID */
825 WORD wPid
; /* product ID */
826 MMVERSION vDriverVersion
; /* version of the driver */
827 CHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
828 WORD wTechnology
; /* type of device */
829 WORD wReserved1
; /* padding */
830 DWORD dwSupport
; /* functionality supported by driver */
831 } AUXCAPSA
, *LPAUXCAPSA
;
834 WORD wMid
; /* manufacturer ID */
835 WORD wPid
; /* product ID */
836 MMVERSION vDriverVersion
; /* version of the driver */
837 WCHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
838 WORD wTechnology
; /* type of device */
839 WORD wReserved1
; /* padding */
840 DWORD dwSupport
; /* functionality supported by driver */
841 } AUXCAPSW
, *LPAUXCAPSW
;
843 DECL_WINELIB_TYPE_AW(AUXCAPS
)
844 DECL_WINELIB_TYPE_AW(LPAUXCAPS
)
846 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
847 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
849 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
850 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
852 UINT16 WINAPI
auxGetNumDevs16(void);
853 UINT WINAPI
auxGetNumDevs(void);
854 UINT16 WINAPI
auxGetDevCaps16 (UINT16
,LPAUXCAPS16
,UINT16
);
855 UINT WINAPI
auxGetDevCapsA(UINT
,LPAUXCAPSA
,UINT
);
856 UINT WINAPI
auxGetDevCapsW(UINT
,LPAUXCAPSW
,UINT
);
857 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
858 UINT16 WINAPI
auxSetVolume16(UINT16
,DWORD
);
859 UINT WINAPI
auxSetVolume(UINT
,DWORD
);
861 UINT16 WINAPI
auxGetVolume16(UINT16
,LPDWORD
);
862 UINT WINAPI
auxGetVolume(UINT
,LPDWORD
);
864 DWORD WINAPI
auxOutMessage16(UINT16
,UINT16
,DWORD
,DWORD
);
865 DWORD WINAPI
auxOutMessage(UINT
,UINT
,DWORD
,DWORD
);
867 #define TIMERR_NOERROR (0) /* no error */
868 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
869 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
871 typedef void CALLBACK (*LPTIMECALLBACK16
)(UINT16 uTimerID
, UINT16 uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
872 typedef void CALLBACK (*LPTIMECALLBACK
)(UINT uTimerID
, UINT uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
874 #define TIME_ONESHOT 0x0000 /* program timer for single event */
875 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
876 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
877 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
878 #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
881 UINT16 wPeriodMin
; /* minimum period supported */
882 UINT16 wPeriodMax
; /* maximum period supported */
883 } TIMECAPS16
,*LPTIMECAPS16
;
888 } TIMECAPS
, *LPTIMECAPS
;
891 MMRESULT16 WINAPI
timeGetSystemTime16(LPMMTIME16
,UINT16
);
892 MMRESULT WINAPI
timeGetSystemTime(LPMMTIME
,UINT
);
893 DWORD WINAPI
timeGetTime(void); /* same for win32/win16 */
894 MMRESULT16 WINAPI
timeSetEvent16(UINT16
,UINT16
,LPTIMECALLBACK16
,DWORD
,UINT16
);
895 MMRESULT WINAPI
timeSetEvent(UINT
,UINT
,LPTIMECALLBACK
,DWORD
,UINT
);
896 MMRESULT16 WINAPI
timeKillEvent16(UINT16
);
897 MMRESULT WINAPI
timeKillEvent(UINT
);
898 MMRESULT16 WINAPI
timeGetDevCaps16(LPTIMECAPS16
,UINT16
);
899 MMRESULT WINAPI
timeGetDevCaps(LPTIMECAPS
,UINT
);
900 MMRESULT16 WINAPI
timeBeginPeriod16(UINT16
);
901 MMRESULT WINAPI
timeBeginPeriod(UINT
);
902 MMRESULT16 WINAPI
timeEndPeriod16(UINT16
);
903 MMRESULT WINAPI
timeEndPeriod(UINT
);
905 #define JOYERR_NOERROR (0) /* no error */
906 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
907 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
908 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
910 /* JOYINFO, JOYINFOEX, MM_JOY* */
911 #define JOY_BUTTON1 0x0001
912 #define JOY_BUTTON2 0x0002
913 #define JOY_BUTTON3 0x0004
914 #define JOY_BUTTON4 0x0008
915 #define JOY_BUTTON1CHG 0x0100
916 #define JOY_BUTTON2CHG 0x0200
917 #define JOY_BUTTON3CHG 0x0400
918 #define JOY_BUTTON4CHG 0x0800
920 #define JOYSTICKID1 0
921 #define JOYSTICKID2 1
924 #define JOYCAPS_HASZ 0x0001
925 #define JOYCAPS_HASR 0x0002
926 #define JOYCAPS_HASU 0x0004
927 #define JOYCAPS_HASV 0x0008
928 #define JOYCAPS_HASPOV 0x0010
929 #define JOYCAPS_POV4DIR 0x0020
930 #define JOYCAPS_POVCTS 0x0040
932 /* JOYINFOEX stuff */
933 #define JOY_POVCENTERED (WORD) -1
934 #define JOY_POVFORWARD 0
935 #define JOY_POVRIGHT 9000
936 #define JOY_POVBACKWARD 18000
937 #define JOY_POVLEFT 27000
939 #define JOY_RETURNX 0x00000001
940 #define JOY_RETURNY 0x00000002
941 #define JOY_RETURNZ 0x00000004
942 #define JOY_RETURNR 0x00000008
943 #define JOY_RETURNU 0x00000010
944 #define JOY_RETURNV 0x00000020
945 #define JOY_RETURNPOV 0x00000040
946 #define JOY_RETURNBUTTONS 0x00000080
947 #define JOY_RETURNRAWDATA 0x00000100
948 #define JOY_RETURNPOVCTS 0x00000200
949 #define JOY_RETURNCENTERED 0x00000400
950 #define JOY_USEDEADZONE 0x00000800
951 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
952 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
953 JOY_RETURNPOV | JOY_RETURNBUTTONS)
954 #define JOY_CAL_READALWAYS 0x00010000
955 #define JOY_CAL_READXYONLY 0x00020000
956 #define JOY_CAL_READ3 0x00040000
957 #define JOY_CAL_READ4 0x00080000
958 #define JOY_CAL_READXONLY 0x00100000
959 #define JOY_CAL_READYONLY 0x00200000
960 #define JOY_CAL_READ5 0x00400000
961 #define JOY_CAL_READ6 0x00800000
962 #define JOY_CAL_READZONLY 0x01000000
963 #define JOY_CAL_READRONLY 0x02000000
964 #define JOY_CAL_READUONLY 0x04000000
965 #define JOY_CAL_READVONLY 0x08000000
968 WORD wMid
; /* manufacturer ID */
969 WORD wPid
; /* product ID */
970 char szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
971 UINT16 wXmin
; /* minimum x position value */
972 UINT16 wXmax
; /* maximum x position value */
973 UINT16 wYmin
; /* minimum y position value */
974 UINT16 wYmax
; /* maximum y position value */
975 UINT16 wZmin
; /* minimum z position value */
976 UINT16 wZmax
; /* maximum z position value */
977 UINT16 wNumButtons
; /* number of buttons */
978 UINT16 wPeriodMin
; /* minimum message period when captured */
979 UINT16 wPeriodMax
; /* maximum message period when captured */
980 /* win95,nt4 additions: */
981 UINT16 wRmin
; /* minimum r position value */
982 UINT16 wRmax
; /* maximum r position value */
983 UINT16 wUmin
; /* minimum u (5th axis) position value */
984 UINT16 wUmax
; /* maximum u (5th axis) position value */
985 UINT16 wVmin
; /* minimum v (6th axis) position value */
986 UINT16 wVmax
; /* maximum v (6th axis) position value */
987 UINT16 wCaps
; /* joystick capabilites */
988 UINT16 wMaxAxes
; /* maximum number of axes supported */
989 UINT16 wNumAxes
; /* number of axes in use */
990 UINT16 wMaxButtons
; /* maximum number of buttons supported */
991 CHAR szRegKey
[MAXPNAMELEN
]; /* registry key */
992 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
]; /* OEM VxD in use */
993 } JOYCAPS16
, *LPJOYCAPS16
;
998 CHAR szPname
[MAXPNAMELEN
];
1018 CHAR szRegKey
[MAXPNAMELEN
];
1019 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
1020 } JOYCAPSA
, *LPJOYCAPSA
;
1025 WCHAR szPname
[MAXPNAMELEN
];
1045 WCHAR szRegKey
[MAXPNAMELEN
];
1046 WCHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
1047 } JOYCAPSW
, *LPJOYCAPSW
;
1048 DECL_WINELIB_TYPE_AW(JOYCAPS
)
1049 DECL_WINELIB_TYPE_AW(LPJOYCAPS
)
1052 UINT16 wXpos
; /* x position */
1053 UINT16 wYpos
; /* y position */
1054 UINT16 wZpos
; /* z position */
1055 UINT16 wButtons
; /* button states */
1056 } JOYINFO16
, *LPJOYINFO16
;
1063 } JOYINFO
, *LPJOYINFO
;
1066 DWORD dwSize
; /* size of structure */
1067 DWORD dwFlags
; /* flags to indicate what to return */
1068 DWORD dwXpos
; /* x position */
1069 DWORD dwYpos
; /* y position */
1070 DWORD dwZpos
; /* z position */
1071 DWORD dwRpos
; /* rudder/4th axis position */
1072 DWORD dwUpos
; /* 5th axis position */
1073 DWORD dwVpos
; /* 6th axis position */
1074 DWORD dwButtons
; /* button states */
1075 DWORD dwButtonNumber
; /* current button number pressed */
1076 DWORD dwPOV
; /* point of view state */
1077 DWORD dwReserved1
; /* reserved for communication between winmm & driver */
1078 DWORD dwReserved2
; /* reserved for future expansion */
1079 } JOYINFOEX
,*LPJOYINFOEX
;
1082 MMRESULT16 WINAPI
joyGetDevCaps16 (UINT16
,LPJOYCAPS16
,UINT16
);
1083 MMRESULT WINAPI
joyGetDevCapsA(UINT
,LPJOYCAPSA
,UINT
);
1084 MMRESULT WINAPI
joyGetDevCapsW(UINT
,LPJOYCAPSW
,UINT
);
1085 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
1086 UINT16 WINAPI
joyGetNumDevs16(void);
1087 UINT WINAPI
joyGetNumDevs(void);
1088 MMRESULT16 WINAPI
joyGetPos16(UINT16
,LPJOYINFO16
);
1089 MMRESULT WINAPI
joyGetPos(UINT
,LPJOYINFO
);
1090 MMRESULT16 WINAPI
joyGetPosEx16(UINT16
,LPJOYINFOEX
);
1091 MMRESULT WINAPI
joyGetPosEx(UINT
,LPJOYINFOEX
);
1092 MMRESULT16 WINAPI
joyGetThreshold16(UINT16
,UINT16
*);
1093 MMRESULT WINAPI
joyGetThreshold(UINT
,UINT
*);
1094 MMRESULT16 WINAPI
joyReleaseCapture16(UINT16
);
1095 MMRESULT WINAPI
joyReleaseCapture(UINT
);
1096 MMRESULT16 WINAPI
joySetCapture16(HWND16
,UINT16
,UINT16
,BOOL16
);
1097 MMRESULT WINAPI
joySetCapture(HWND
,UINT
,UINT
,BOOL
);
1098 MMRESULT16 WINAPI
joySetThreshold16(UINT16
,UINT16
);
1099 MMRESULT WINAPI
joySetThreshold(UINT
,UINT
);
1101 #define MIXERR_BASE 1024
1102 #define MIXERR_INVALLINE (MIXERR_BASE + 0)
1103 #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
1104 #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
1105 #define MIXERR_LASTERROR (MIXERR_BASE + 2)
1108 WORD wMid
; /* manufacturer id */
1109 WORD wPid
; /* product id */
1110 MMVERSION16 vDriverVersion
; /* version of the driver */
1111 CHAR szPname
[MAXPNAMELEN
]; /* product name */
1112 DWORD fdwSupport
; /* misc. support bits */
1113 DWORD cDestinations
; /* count of destinations */
1114 } MIXERCAPS16
,*LPMIXERCAPS16
;
1119 MMVERSION vDriverVersion
;
1120 CHAR szPname
[MAXPNAMELEN
];
1122 DWORD cDestinations
;
1123 } MIXERCAPSA
,*LPMIXERCAPSA
;
1128 MMVERSION vDriverVersion
;
1129 WCHAR szPname
[MAXPNAMELEN
];
1131 DWORD cDestinations
;
1132 } MIXERCAPSW
,*LPMIXERCAPSW
;
1134 DECL_WINELIB_TYPE_AW(MIXERCAPS
)
1135 DECL_WINELIB_TYPE_AW(LPMIXERCAPS
)
1137 #define MIXER_SHORT_NAME_CHARS 16
1138 #define MIXER_LONG_NAME_CHARS 64
1140 /* MIXERLINE.fdwLine */
1141 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1142 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1143 #define MIXERLINE_LINEF_SOURCE 0x80000000
1146 #define MIXER_OBJECTF_HANDLE 0x80000000L
1147 #define MIXER_OBJECTF_MIXER 0x00000000L
1148 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
1149 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
1150 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
1151 #define MIXER_OBJECTF_WAVEIN 0x20000000L
1152 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
1153 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
1154 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
1155 #define MIXER_OBJECTF_MIDIIN 0x40000000L
1156 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
1157 #define MIXER_OBJECTF_AUX 0x50000000L
1159 /* MIXERLINE.dwComponentType */
1160 /* component types for destinations and sources */
1161 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1162 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1163 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1164 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1165 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1166 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1167 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1168 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1169 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1170 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1171 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1173 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1174 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1175 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1176 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1177 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1178 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1179 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1180 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1181 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1182 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1183 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1184 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1185 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1187 /* MIXERLINE.Target.dwType */
1188 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1189 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1190 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1191 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1192 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1193 #define MIXERLINE_TARGETTYPE_AUX 5
1196 DWORD cbStruct
; /* size of MIXERLINE structure */
1197 DWORD dwDestination
; /* zero based destination index */
1198 DWORD dwSource
; /* zero based source index (if source) */
1199 DWORD dwLineID
; /* unique line id for mixer device */
1200 DWORD fdwLine
; /* state/information about line */
1201 DWORD dwUser
; /* driver specific information */
1202 DWORD dwComponentType
; /* component type line connects to */
1203 DWORD cChannels
; /* number of channels line supports */
1204 DWORD cConnections
; /* number of connections [possible] */
1205 DWORD cControls
; /* number of controls at this line */
1206 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1207 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1209 DWORD dwType
; /* MIXERLINE_TARGETTYPE_xxxx */
1210 DWORD dwDeviceID
; /* target device ID of device type */
1211 WORD wMid
; /* of target device */
1213 MMVERSION16 vDriverVersion
; /* " */
1214 CHAR szPname
[MAXPNAMELEN
]; /* " */
1216 } MIXERLINE16
, *LPMIXERLINE16
;
1220 DWORD dwDestination
;
1225 DWORD dwComponentType
;
1229 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1230 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1236 MMVERSION vDriverVersion
;
1237 CHAR szPname
[MAXPNAMELEN
];
1239 } MIXERLINEA
, *LPMIXERLINEA
;
1243 DWORD dwDestination
;
1248 DWORD dwComponentType
;
1252 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1253 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1259 MMVERSION vDriverVersion
;
1260 WCHAR szPname
[MAXPNAMELEN
];
1262 } MIXERLINEW
, *LPMIXERLINEW
;
1264 DECL_WINELIB_TYPE_AW(MIXERLINE
)
1265 DECL_WINELIB_TYPE_AW(LPMIXERLINE
)
1267 /* MIXERCONTROL.fdwControl */
1268 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1269 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1270 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1272 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1273 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1274 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1275 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1276 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1277 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1278 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1279 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1280 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1281 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1283 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1285 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1286 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1288 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1290 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1291 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1293 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1294 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1296 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1297 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1298 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1299 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1300 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1301 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1302 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1304 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1305 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1306 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1307 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1308 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1309 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1310 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1311 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1312 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1313 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1314 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1315 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1316 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1317 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1318 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1319 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1320 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1321 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1322 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1323 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1324 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1325 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1326 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1327 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1328 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1329 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1330 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1331 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1332 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1333 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1334 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1338 DWORD cbStruct
; /* size in bytes of MIXERCONTROL */
1339 DWORD dwControlID
; /* unique control id for mixer device */
1340 DWORD dwControlType
; /* MIXERCONTROL_CONTROLTYPE_xxx */
1341 DWORD fdwControl
; /* MIXERCONTROL_CONTROLF_xxx */
1342 DWORD cMultipleItems
; /* if MIXERCONTROL_CONTROLF_MULTIPLE set */
1343 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1344 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1347 LONG lMinimum
; /* signed minimum for this control */
1348 LONG lMaximum
; /* signed maximum for this control */
1351 DWORD dwMinimum
; /* unsigned minimum for this control */
1352 DWORD dwMaximum
; /* unsigned maximum for this control */
1354 DWORD dwReserved
[6];
1357 DWORD cSteps
; /* # of steps between min & max */
1358 DWORD cbCustomData
; /* size in bytes of custom data */
1359 DWORD dwReserved
[6]; /* !!! needed? we have cbStruct.... */
1361 } MIXERCONTROL16
, *LPMIXERCONTROL16
;
1366 DWORD dwControlType
;
1368 DWORD cMultipleItems
;
1369 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1370 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1380 DWORD dwReserved
[6];
1385 DWORD dwReserved
[6];
1387 } MIXERCONTROLA
, *LPMIXERCONTROLA
;
1392 DWORD dwControlType
;
1394 DWORD cMultipleItems
;
1395 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1396 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1406 DWORD dwReserved
[6];
1411 DWORD dwReserved
[6];
1413 } MIXERCONTROLW
, *LPMIXERCONTROLW
;
1415 DECL_WINELIB_TYPE_AW(MIXERCONTROL
)
1416 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL
)
1419 DWORD cbStruct
; /* size in bytes of MIXERLINECONTROLS */
1420 DWORD dwLineID
; /* line id (from MIXERLINE.dwLineID) */
1422 DWORD dwControlID
; /* MIXER_GETLINECONTROLSF_ONEBYID */
1423 DWORD dwControlType
; /* MIXER_GETLINECONTROLSF_ONEBYTYPE */
1425 DWORD cControls
; /* count of controls pmxctrl points to */
1426 DWORD cbmxctrl
; /* size in bytes of _one_ MIXERCONTROL */
1427 LPMIXERCONTROL16 pamxctrl
;/* pointer to first MIXERCONTROL array */
1428 } MIXERLINECONTROLS16
, *LPMIXERLINECONTROLS16
;
1435 DWORD dwControlType
;
1439 LPMIXERCONTROLA pamxctrl
;
1440 } MIXERLINECONTROLSA
, *LPMIXERLINECONTROLSA
;
1447 DWORD dwControlType
;
1451 LPMIXERCONTROLW pamxctrl
;
1452 } MIXERLINECONTROLSW
, *LPMIXERLINECONTROLSW
;
1454 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS
)
1455 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS
)
1458 DWORD cbStruct
; /* size in bytes of MIXERCONTROLDETAILS */
1459 DWORD dwControlID
; /* control id to get/set details on */
1460 DWORD cChannels
; /* number of channels in paDetails array */
1462 HWND16 hwndOwner
; /* for MIXER_SETCONTROLDETAILSF_CUSTOM */
1463 DWORD cMultipleItems
; /* if _MULTIPLE, the number of items per channel */
1465 DWORD cbDetails
; /* size of _one_ details_XX struct */
1466 LPVOID paDetails
; /* pointer to array of details_XX structs */
1467 } MIXERCONTROLDETAILS16
,*LPMIXERCONTROLDETAILS16
;
1475 DWORD cMultipleItems
;
1479 } MIXERCONTROLDETAILS
,*LPMIXERCONTROLDETAILS
;
1485 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1486 } MIXERCONTROLDETAILS_LISTTEXT16
,*LPMIXERCONTROLDETAILS_LISTTEXT16
;
1491 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1492 } MIXERCONTROLDETAILS_LISTTEXTA
,*LPMIXERCONTROLDETAILS_LISTTEXTA
;
1497 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1498 } MIXERCONTROLDETAILS_LISTTEXTW
,*LPMIXERCONTROLDETAILS_LISTTEXTW
;
1500 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT
)
1501 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT
)
1503 /* MIXER_GETCONTROLDETAILSF_VALUE */
1506 } MIXERCONTROLDETAILS_BOOLEAN
,*LPMIXERCONTROLDETAILS_BOOLEAN
;
1510 } MIXERCONTROLDETAILS_SIGNED
,*LPMIXERCONTROLDETAILS_SIGNED
;
1514 } MIXERCONTROLDETAILS_UNSIGNED
,*LPMIXERCONTROLDETAILS_UNSIGNED
;
1516 /* bits passed to mixerGetLineInfo.fdwInfo */
1517 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1518 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1519 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1520 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1521 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1522 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1524 /* bitmask passed to mixerGetLineControl */
1525 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1526 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1527 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1528 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1530 /* bitmask passed to mixerGetControlDetails */
1531 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1532 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1533 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1535 /* bitmask passed to mixerSetControlDetails */
1536 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1537 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1538 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1540 UINT16 WINAPI
mixerGetNumDevs16(void);
1541 UINT WINAPI
mixerGetNumDevs(void);
1542 UINT16 WINAPI
mixerOpen16(LPHMIXER16
,UINT16
,DWORD
,DWORD
,DWORD
);
1543 UINT WINAPI
mixerOpen(LPHMIXER
,UINT
,DWORD
,DWORD
,DWORD
);
1544 UINT16 WINAPI
mixerClose16(HMIXER16
);
1545 UINT WINAPI
mixerClose(HMIXER
);
1546 UINT16 WINAPI
mixerMessage16(HMIXER16
,UINT16
,DWORD
,DWORD
);
1547 UINT WINAPI
mixerMessage(HMIXER
,UINT
,DWORD
,DWORD
);
1548 UINT16 WINAPI
mixerGetDevCaps16(UINT16
,LPMIXERCAPS16
,UINT16
);
1549 UINT WINAPI
mixerGetDevCapsA(UINT
,LPMIXERCAPSA
,UINT
);
1550 UINT WINAPI
mixerGetDevCapsW(UINT
,LPMIXERCAPSW
,UINT
);
1551 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1552 UINT16 WINAPI
mixerGetLineInfo16(HMIXEROBJ16
,LPMIXERLINE16
,DWORD
);
1553 UINT WINAPI
mixerGetLineInfoA(HMIXEROBJ
,LPMIXERLINEA
,DWORD
);
1554 UINT WINAPI
mixerGetLineInfoW(HMIXEROBJ
,LPMIXERLINEW
,DWORD
);
1555 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1556 UINT16 WINAPI
mixerGetID16(HMIXEROBJ16
,LPUINT16
,DWORD
);
1557 UINT WINAPI
mixerGetID(HMIXEROBJ
,LPUINT
,DWORD
);
1558 UINT16 WINAPI
mixerGetLineControls16(HMIXEROBJ16
,LPMIXERLINECONTROLS16
,DWORD
);
1559 UINT WINAPI
mixerGetLineControlsA(HMIXEROBJ
,LPMIXERLINECONTROLSA
,DWORD
);
1560 UINT WINAPI
mixerGetLineControlsW(HMIXEROBJ
,LPMIXERLINECONTROLSW
,DWORD
);
1561 #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1562 UINT16 WINAPI
mixerGetControlDetails16(HMIXEROBJ16
,LPMIXERCONTROLDETAILS16
,DWORD
);
1563 UINT WINAPI
mixerGetControlDetailsA(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1564 UINT WINAPI
mixerGetControlDetailsW(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1565 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1566 UINT16 WINAPI
mixerSetControlDetails16(HMIXEROBJ16
,LPMIXERCONTROLDETAILS16
,DWORD
);
1567 UINT WINAPI
mixerSetControlDetails(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1569 #define MMIOERR_BASE 256
1570 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1571 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1572 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1573 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1574 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1575 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1576 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1577 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1578 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1579 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1581 #define CFSEPCHAR '+' /* compound file name separator char. */
1583 typedef DWORD FOURCC
; /* a four character code */
1584 typedef LRESULT
CALLBACK (*LPMMIOPROC16
)(LPSTR lpmmioinfo
, UINT16 uMessage
,
1585 LPARAM lParam1
, LPARAM lParam2
);
1586 typedef LRESULT
CALLBACK (*LPMMIOPROC
) (LPSTR lpmmioinfo
, UINT uMessage
,
1587 LPARAM lParam1
, LPARAM lParam2
);
1590 DWORD dwFlags
; /* general status flags */
1591 FOURCC fccIOProc
; /* pointer to I/O procedure */
1592 LPMMIOPROC16 pIOProc
; /* pointer to I/O procedure */
1593 UINT16 wErrorRet
; /* place for error to be returned */
1594 HTASK16 hTask
; /* alternate local task */
1595 /* fields maintained by MMIO functions during buffered I/O */
1596 LONG cchBuffer
; /* size of I/O buffer (or 0L) */
1597 HPSTR pchBuffer
; /* start of I/O buffer (or NULL) */
1598 HPSTR pchNext
; /* pointer to next byte to read/write */
1599 HPSTR pchEndRead
; /* pointer to last valid byte to read */
1600 HPSTR pchEndWrite
; /* pointer to last byte to write */
1601 LONG lBufOffset
; /* disk offset of start of buffer */
1602 /* fields maintained by I/O procedure */
1603 LONG lDiskOffset
; /* disk offset of next read or write */
1604 DWORD adwInfo
[3]; /* data specific to type of MMIOPROC */
1605 /* other fields maintained by MMIO */
1606 DWORD dwReserved1
; /* reserved for MMIO use */
1607 DWORD dwReserved2
; /* reserved for MMIO use */
1608 HMMIO16 hmmio
; /* handle to open file */
1609 } MMIOINFO16
, *LPMMIOINFO16
;
1617 /* fields maintained by MMIO functions during buffered I/O */
1624 /* fields maintained by I/O procedure */
1627 /* other fields maintained by MMIO */
1631 } MMIOINFO
, *PMMIOINFO
, *LPMMIOINFO
;
1634 typedef struct _MMCKINFO
1636 FOURCC ckid
; /* chunk ID */
1637 DWORD cksize
; /* chunk size */
1638 FOURCC fccType
; /* form type or list type */
1639 DWORD dwDataOffset
; /* offset of data portion of chunk */
1640 DWORD dwFlags
; /* flags used by MMIO functions */
1641 } MMCKINFO
, *LPMMCKINFO
;
1643 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1644 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1646 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1647 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1648 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1649 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1650 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1651 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1653 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1655 #define MMIO_READ 0x00000000 /* open file for reading only */
1656 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1657 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1659 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1660 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1661 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1662 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1663 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1665 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1666 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1667 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1668 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1669 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1670 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1671 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1672 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1673 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1674 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1675 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1676 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1682 #define MMIOM_READ MMIO_READ /* read */
1683 #define MMIOM_WRITE MMIO_WRITE /* write */
1684 #define MMIOM_SEEK 2 /* seek to a new position in file */
1685 #define MMIOM_OPEN 3 /* open file */
1686 #define MMIOM_CLOSE 4 /* close file */
1687 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1689 #define MMIOM_RENAME 6 /* rename specified file */
1691 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1693 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1694 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1696 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1697 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1699 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1701 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1702 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1703 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1705 LPMMIOPROC16 WINAPI
mmioInstallIOProc16(FOURCC
,LPMMIOPROC16
,DWORD
);
1706 LPMMIOPROC WINAPI
mmioInstallIOProcA(FOURCC
,LPMMIOPROC
,DWORD
);
1707 LPMMIOPROC WINAPI
mmioInstallIOProcW(FOURCC
,LPMMIOPROC
,DWORD
);
1708 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1710 FOURCC WINAPI
mmioStringToFOURCC16(LPCSTR
,UINT16
);
1711 FOURCC WINAPI
mmioStringToFOURCCA(LPCSTR
,UINT
);
1712 FOURCC WINAPI
mmioStringToFOURCCW(LPCWSTR
,UINT
);
1713 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1714 HMMIO16 WINAPI
mmioOpen16(LPSTR
,MMIOINFO16
*,DWORD
);
1715 HMMIO WINAPI
mmioOpenA(LPSTR
,MMIOINFO
*,DWORD
);
1716 HMMIO WINAPI
mmioOpenW(LPWSTR
,MMIOINFO
*,DWORD
);
1717 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1719 UINT16 WINAPI
mmioRename16(LPCSTR szFileName
, LPCSTR szNewFileName
,
1720 MMIOINFO16
* lpmmioinfo
, DWORD dwRenameFlags
);
1721 UINT WINAPI
mmioRenameA(LPCSTR szFileName
, LPCSTR szNewFileName
,
1722 MMIOINFO
* lpmmioinfo
, DWORD dwRenameFlags
);
1723 UINT WINAPI
mmioRenameW(LPCWSTR szFileName
, LPCWSTR szNewFileName
,
1724 MMIOINFO
* lpmmioinfo
, DWORD dwRenameFlags
);
1725 #define mmioRename WINELIB_NAME_AW(mmioRename)
1727 MMRESULT16 WINAPI
mmioClose16(HMMIO16
,UINT16
);
1728 MMRESULT WINAPI
mmioClose(HMMIO
,UINT
);
1729 LONG WINAPI
mmioRead16(HMMIO16
,HPSTR
,LONG
);
1730 LONG WINAPI
mmioRead(HMMIO
,HPSTR
,LONG
);
1731 LONG WINAPI
mmioWrite16(HMMIO16
,HPCSTR
,LONG
);
1732 LONG WINAPI
mmioWrite(HMMIO
,HPCSTR
,LONG
);
1733 LONG WINAPI
mmioSeek16(HMMIO16
,LONG
,INT16
);
1734 LONG WINAPI
mmioSeek(HMMIO
,LONG
,INT
);
1735 MMRESULT16 WINAPI
mmioGetInfo16(HMMIO16
,MMIOINFO16
*,UINT16
);
1736 MMRESULT WINAPI
mmioGetInfo(HMMIO
,MMIOINFO
*,UINT
);
1737 MMRESULT16 WINAPI
mmioSetInfo16(HMMIO16
,const MMIOINFO16
*,UINT16
);
1738 MMRESULT WINAPI
mmioSetInfo(HMMIO
,const MMIOINFO
*,UINT
);
1739 UINT16 WINAPI
mmioSetBuffer16(HMMIO16
,LPSTR
,LONG
,UINT16
);
1740 UINT WINAPI
mmioSetBuffer(HMMIO
,LPSTR
,LONG
,UINT
);
1741 UINT16 WINAPI
mmioFlush16(HMMIO16
,UINT16
);
1742 UINT WINAPI
mmioFlush(HMMIO
,UINT
);
1743 UINT16 WINAPI
mmioAdvance16(HMMIO16
,MMIOINFO16
*,UINT16
);
1744 UINT WINAPI
mmioAdvance(HMMIO
,MMIOINFO
*,UINT
);
1745 LONG WINAPI
mmioSendMessage16(HMMIO16
,UINT16
,LPARAM
,LPARAM
);
1746 LONG WINAPI
mmioSendMessage(HMMIO
,UINT
,LPARAM
,LPARAM
);
1747 UINT16 WINAPI
mmioDescend16(HMMIO16
,MMCKINFO
*,const MMCKINFO
*,UINT16
);
1748 UINT WINAPI
mmioDescend(HMMIO
,MMCKINFO
*,const MMCKINFO
*,UINT
);
1749 UINT16 WINAPI
mmioAscend16(HMMIO16
,MMCKINFO
*,UINT16
);
1750 UINT WINAPI
mmioAscend(HMMIO
,MMCKINFO
*,UINT
);
1751 UINT16 WINAPI
mmioCreateChunk16(HMMIO16
,MMCKINFO
*,UINT16
);
1752 UINT WINAPI
mmioCreateChunk(HMMIO
,MMCKINFO
*,UINT
);
1754 typedef UINT16
CALLBACK (*YIELDPROC
)(UINT16
,DWORD
);
1756 DWORD WINAPI
mciSendCommand16(UINT16
,UINT16
,DWORD
,DWORD
);
1757 DWORD WINAPI
mciSendCommandA(UINT
,UINT
,DWORD
,DWORD
);
1758 DWORD WINAPI
mciSendCommandW(UINT
,UINT
,DWORD
,DWORD
);
1759 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1761 DWORD WINAPI
mciSendString16(LPCSTR
,LPSTR
,UINT16
,HWND16
);
1762 DWORD WINAPI
mciSendStringA(LPCSTR
,LPSTR
,UINT
,HWND
);
1763 DWORD WINAPI
mciSendStringW(LPCWSTR
,LPSTR
,UINT
,HWND
);
1764 #define mciSendString WINELIB_NAME_AW(mciSendString)
1766 UINT16 WINAPI
mciGetDeviceID16(LPCSTR
);
1767 UINT WINAPI
mciGetDeviceIDA(LPCSTR
);
1768 UINT WINAPI
mciGetDeviceIDW(LPCWSTR
);
1769 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1771 UINT16 WINAPI
mciGetDeviceIDFromElementID16(DWORD
,LPCSTR
);
1773 BOOL16 WINAPI
mciGetErrorString16 (DWORD
,LPSTR
,UINT16
);
1774 BOOL WINAPI
mciGetErrorStringA(DWORD
,LPSTR
,UINT
);
1775 BOOL WINAPI
mciGetErrorStringW(DWORD
,LPWSTR
,UINT
);
1776 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1778 BOOL16 WINAPI
mciSetYieldProc16(UINT16
,YIELDPROC
,DWORD
);
1779 BOOL WINAPI
mciSetYieldProc(UINT
,YIELDPROC
,DWORD
);
1781 HTASK16 WINAPI
mciGetCreatorTask16(UINT16
);
1782 HTASK WINAPI
mciGetCreatorTask(UINT
);
1784 YIELDPROC WINAPI
mciGetYieldProc16(UINT16
,DWORD
*);
1785 YIELDPROC WINAPI
mciGetYieldProc(UINT
,DWORD
*);
1787 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1788 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1789 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1790 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1791 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1792 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1793 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1794 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1795 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1796 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1797 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1798 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1799 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1800 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1801 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1802 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1803 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1804 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1805 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1806 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1807 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1808 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1809 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1810 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1811 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1812 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1813 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1814 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1815 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1816 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1817 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1818 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1819 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1820 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1821 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1822 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1823 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1824 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1825 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1826 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1827 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1828 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1829 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1830 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1831 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1832 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1833 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1834 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1835 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1836 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1837 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1838 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1840 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1841 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1842 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1843 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1844 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1845 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1846 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1847 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1848 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1849 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1851 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1852 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1853 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1854 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1855 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1856 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1857 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1858 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1860 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1861 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1862 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1863 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1865 #define MCIERR_NO_IDENTITY (MCIERR_BASE + 94)
1867 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1869 #define MCI_OPEN_DRIVER 0x0801
1870 #define MCI_CLOSE_DRIVER 0x0802
1871 #define MCI_OPEN 0x0803
1872 #define MCI_CLOSE 0x0804
1873 #define MCI_ESCAPE 0x0805
1874 #define MCI_PLAY 0x0806
1875 #define MCI_SEEK 0x0807
1876 #define MCI_STOP 0x0808
1877 #define MCI_PAUSE 0x0809
1878 #define MCI_INFO 0x080A
1879 #define MCI_GETDEVCAPS 0x080B
1880 #define MCI_SPIN 0x080C
1881 #define MCI_SET 0x080D
1882 #define MCI_STEP 0x080E
1883 #define MCI_RECORD 0x080F
1884 #define MCI_SYSINFO 0x0810
1885 #define MCI_BREAK 0x0811
1886 #define MCI_SOUND 0x0812
1887 #define MCI_SAVE 0x0813
1888 #define MCI_STATUS 0x0814
1889 #define MCI_CUE 0x0830
1890 #define MCI_REALIZE 0x0840
1891 #define MCI_WINDOW 0x0841
1892 #define MCI_PUT 0x0842
1893 #define MCI_WHERE 0x0843
1894 #define MCI_FREEZE 0x0844
1895 #define MCI_UNFREEZE 0x0845
1896 #define MCI_LOAD 0x0850
1897 #define MCI_CUT 0x0851
1898 #define MCI_COPY 0x0852
1899 #define MCI_PASTE 0x0853
1900 #define MCI_UPDATE 0x0854
1901 #define MCI_RESUME 0x0855
1902 #define MCI_DELETE 0x0856
1904 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1906 #define MCI_ALL_DEVICE_ID 0xFFFF
1908 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1909 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1910 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1911 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1912 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1913 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1914 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1915 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1916 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1917 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1918 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1920 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1921 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1923 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1924 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1925 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1926 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1927 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1928 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1929 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1931 #define MCI_FORMAT_MILLISECONDS 0
1932 #define MCI_FORMAT_HMS 1
1933 #define MCI_FORMAT_MSF 2
1934 #define MCI_FORMAT_FRAMES 3
1935 #define MCI_FORMAT_SMPTE_24 4
1936 #define MCI_FORMAT_SMPTE_25 5
1937 #define MCI_FORMAT_SMPTE_30 6
1938 #define MCI_FORMAT_SMPTE_30DROP 7
1939 #define MCI_FORMAT_BYTES 8
1940 #define MCI_FORMAT_SAMPLES 9
1941 #define MCI_FORMAT_TMSF 10
1943 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1944 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1945 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1947 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1949 (((DWORD)(BYTE)(f))<<16)))
1951 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1952 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1953 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1954 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1956 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1958 (((DWORD)(BYTE)(s) | \
1959 ((WORD)(f)<<8))<<16)))
1961 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1962 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1963 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1965 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1967 (((DWORD)(BYTE)(s))<<16)))
1969 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1970 #define MCI_NOTIFY_SUPERSEDED 0x0002
1971 #define MCI_NOTIFY_ABORTED 0x0004
1972 #define MCI_NOTIFY_FAILURE 0x0008
1974 #define MCI_NOTIFY 0x00000001L
1975 #define MCI_WAIT 0x00000002L
1976 #define MCI_FROM 0x00000004L
1977 #define MCI_TO 0x00000008L
1978 #define MCI_TRACK 0x00000010L
1980 #define MCI_OPEN_SHAREABLE 0x00000100L
1981 #define MCI_OPEN_ELEMENT 0x00000200L
1982 #define MCI_OPEN_ALIAS 0x00000400L
1983 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1984 #define MCI_OPEN_TYPE_ID 0x00001000L
1985 #define MCI_OPEN_TYPE 0x00002000L
1987 #define MCI_SEEK_TO_START 0x00000100L
1988 #define MCI_SEEK_TO_END 0x00000200L
1990 #define MCI_STATUS_ITEM 0x00000100L
1991 #define MCI_STATUS_START 0x00000200L
1993 #define MCI_STATUS_LENGTH 0x00000001L
1994 #define MCI_STATUS_POSITION 0x00000002L
1995 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1996 #define MCI_STATUS_MODE 0x00000004L
1997 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1998 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1999 #define MCI_STATUS_READY 0x00000007L
2000 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
2002 #define MCI_INFO_PRODUCT 0x00000100L
2003 #define MCI_INFO_FILE 0x00000200L
2004 #define MCI_INFO_MEDIA_UPC 0x00000400L
2005 #define MCI_INFO_MEDIA_IDENTITY 0x00000800L
2006 #define MCI_INFO_NAME 0x00001000L
2007 #define MCI_INFO_COPYRIGHT 0x00002000L
2009 #define MCI_GETDEVCAPS_ITEM 0x00000100L
2011 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
2012 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
2013 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
2014 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
2015 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
2016 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
2017 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
2018 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
2019 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
2021 #define MCI_SYSINFO_QUANTITY 0x00000100L
2022 #define MCI_SYSINFO_OPEN 0x00000200L
2023 #define MCI_SYSINFO_NAME 0x00000400L
2024 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
2026 #define MCI_SET_DOOR_OPEN 0x00000100L
2027 #define MCI_SET_DOOR_CLOSED 0x00000200L
2028 #define MCI_SET_TIME_FORMAT 0x00000400L
2029 #define MCI_SET_AUDIO 0x00000800L
2030 #define MCI_SET_VIDEO 0x00001000L
2031 #define MCI_SET_ON 0x00002000L
2032 #define MCI_SET_OFF 0x00004000L
2034 #define MCI_SET_AUDIO_ALL 0x00000000L
2035 #define MCI_SET_AUDIO_LEFT 0x00000001L
2036 #define MCI_SET_AUDIO_RIGHT 0x00000002L
2038 #define MCI_BREAK_KEY 0x00000100L
2039 #define MCI_BREAK_HWND 0x00000200L
2040 #define MCI_BREAK_OFF 0x00000400L
2042 #define MCI_RECORD_INSERT 0x00000100L
2043 #define MCI_RECORD_OVERWRITE 0x00000200L
2045 #define MCI_SOUND_NAME 0x00000100L
2047 #define MCI_SAVE_FILE 0x00000100L
2049 #define MCI_LOAD_FILE 0x00000100L
2053 } MCI_GENERIC_PARMS
, *LPMCI_GENERIC_PARMS
;
2059 LPSTR lpstrDeviceType
;
2060 LPSTR lpstrElementName
;
2062 } MCI_OPEN_PARMS16
, *LPMCI_OPEN_PARMS16
;
2066 MCIDEVICEID wDeviceID
;
2067 LPSTR lpstrDeviceType
;
2068 LPSTR lpstrElementName
;
2070 } MCI_OPEN_PARMSA
, *LPMCI_OPEN_PARMSA
;
2074 MCIDEVICEID wDeviceID
;
2075 LPWSTR lpstrDeviceType
;
2076 LPWSTR lpstrElementName
;
2078 } MCI_OPEN_PARMSW
, *LPMCI_OPEN_PARMSW
;
2080 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS
)
2081 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS
)
2087 } MCI_PLAY_PARMS
, *LPMCI_PLAY_PARMS
;
2092 } MCI_SEEK_PARMS
, *LPMCI_SEEK_PARMS
;
2099 } MCI_STATUS_PARMS
, *LPMCI_STATUS_PARMS
;
2105 } MCI_INFO_PARMS16
, *LPMCI_INFO_PARMS16
;
2111 } MCI_INFO_PARMSA
, *LPMCI_INFO_PARMSA
;
2117 } MCI_INFO_PARMSW
, *LPMCI_INFO_PARMSW
;
2119 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS
)
2120 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS
)
2126 } MCI_GETDEVCAPS_PARMS
, *LPMCI_GETDEVCAPS_PARMS
;
2135 } MCI_SYSINFO_PARMS16
, *LPMCI_SYSINFO_PARMS16
;
2143 } MCI_SYSINFO_PARMSA
, *LPMCI_SYSINFO_PARMSA
;
2151 } MCI_SYSINFO_PARMSW
, *LPMCI_SYSINFO_PARMSW
;
2153 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS
)
2154 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS
)
2160 } MCI_SET_PARMS
, *LPMCI_SET_PARMS
;
2168 } MCI_BREAK_PARMS16
, *LPMCI_BREAK_PARMS16
;
2174 } MCI_BREAK_PARMS
, *LPMCI_BREAK_PARMS
;
2179 LPCSTR lpstrSoundName
;
2180 } MCI_SOUND_PARMS
, *LPMCI_SOUND_PARMS
;
2185 } MCI_SAVE_PARMS
, *LPMCI_SAVE_PARMS
;
2190 } MCI_LOAD_PARMS16
, *LPMCI_LOAD_PARMS16
;
2195 } MCI_LOAD_PARMSA
, *LPMCI_LOAD_PARMSA
;
2200 } MCI_LOAD_PARMSW
, *LPMCI_LOAD_PARMSW
;
2202 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS
)
2203 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS
)
2209 } MCI_RECORD_PARMS
, *LPMCI_RECORD_PARMS
;
2211 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
2213 #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
2214 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
2216 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2218 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2219 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2220 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2222 #define MCI_VD_FORMAT_TRACK 0x4001
2224 #define MCI_VD_PLAY_REVERSE 0x00010000L
2225 #define MCI_VD_PLAY_FAST 0x00020000L
2226 #define MCI_VD_PLAY_SPEED 0x00040000L
2227 #define MCI_VD_PLAY_SCAN 0x00080000L
2228 #define MCI_VD_PLAY_SLOW 0x00100000L
2230 #define MCI_VD_SEEK_REVERSE 0x00010000L
2232 #define MCI_VD_STATUS_SPEED 0x00004002L
2233 #define MCI_VD_STATUS_FORWARD 0x00004003L
2234 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2235 #define MCI_VD_STATUS_SIDE 0x00004005L
2236 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2238 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2239 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2241 #define MCI_VD_SPIN_UP 0x00010000L
2242 #define MCI_VD_SPIN_DOWN 0x00020000L
2244 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2245 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2246 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2247 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2249 #define MCI_VD_STEP_FRAMES 0x00010000L
2250 #define MCI_VD_STEP_REVERSE 0x00020000L
2252 #define MCI_VD_ESCAPE_STRING 0x00000100L
2259 } MCI_VD_PLAY_PARMS
, *LPMCI_VD_PLAY_PARMS
;
2264 } MCI_VD_STEP_PARMS
, *LPMCI_VD_STEP_PARMS
;
2268 LPCSTR lpstrCommand
;
2269 } MCI_VD_ESCAPE_PARMS16
, *LPMCI_VD_ESCAPE_PARMS16
;
2273 LPCSTR lpstrCommand
;
2274 } MCI_VD_ESCAPE_PARMSA
, *LPMCI_VD_ESCAPE_PARMSA
;
2278 LPCWSTR lpstrCommand
;
2279 } MCI_VD_ESCAPE_PARMSW
, *LPMCI_VD_ESCAPE_PARMSW
;
2281 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS
)
2282 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS
)
2284 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
2286 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
2287 #define MCI_WAVE_SET_CHANNELS 0x00020000L
2288 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2289 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2290 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2291 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2293 #define MCI_WAVE_INPUT 0x00400000L
2294 #define MCI_WAVE_OUTPUT 0x00800000L
2296 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2297 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2298 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2299 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2300 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2301 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2302 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
2304 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
2305 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2307 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2308 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2312 MCIDEVICEID16 wDeviceID
;
2314 SEGPTR lpstrDeviceType
;
2315 SEGPTR lpstrElementName
;
2317 DWORD dwBufferSeconds
;
2318 } MCI_WAVE_OPEN_PARMS16
, *LPMCI_WAVE_OPEN_PARMS16
;
2322 MCIDEVICEID wDeviceID
;
2323 LPCSTR lpstrDeviceType
;
2324 LPCSTR lpstrElementName
;
2326 DWORD dwBufferSeconds
;
2327 } MCI_WAVE_OPEN_PARMSA
, *LPMCI_WAVE_OPEN_PARMSA
;
2331 MCIDEVICEID wDeviceID
;
2332 LPCWSTR lpstrDeviceType
;
2333 LPCWSTR lpstrElementName
;
2335 DWORD dwBufferSeconds
;
2336 } MCI_WAVE_OPEN_PARMSW
, *LPMCI_WAVE_OPEN_PARMSW
;
2338 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS
)
2339 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS
)
2345 } MCI_WAVE_DELETE_PARMS
, *LPMCI_WAVE_DELETE_PARMS
;
2359 DWORD nSamplesPerSec
;
2360 DWORD nAvgBytesPerSec
;
2363 UINT16 wBitsPerSample
;
2365 } MCI_WAVE_SET_PARMS16
, * LPMCI_WAVE_SET_PARMS16
;
2375 DWORD nSamplesPerSec
;
2376 DWORD nAvgBytesPerSec
;
2378 UINT wBitsPerSample
;
2379 } MCI_WAVE_SET_PARMS
, * LPMCI_WAVE_SET_PARMS
;
2382 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2383 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2384 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2385 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2386 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2388 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2389 #define MCI_SEQ_FILE 0x4002
2390 #define MCI_SEQ_MIDI 0x4003
2391 #define MCI_SEQ_SMPTE 0x4004
2392 #define MCI_SEQ_NONE 65533
2394 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
2395 #define MCI_SEQ_STATUS_PORT 0x00004003L
2396 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
2397 #define MCI_SEQ_STATUS_MASTER 0x00004008L
2398 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
2399 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2401 #define MCI_SEQ_SET_TEMPO 0x00010000L
2402 #define MCI_SEQ_SET_PORT 0x00020000L
2403 #define MCI_SEQ_SET_SLAVE 0x00040000L
2404 #define MCI_SEQ_SET_MASTER 0x00080000L
2405 #define MCI_SEQ_SET_OFFSET 0x01000000L
2416 } MCI_SEQ_SET_PARMS
, *LPMCI_SEQ_SET_PARMS
;
2418 #define MCI_ANIM_OPEN_WS 0x00010000L
2419 #define MCI_ANIM_OPEN_PARENT 0x00020000L
2420 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2422 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2423 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2424 #define MCI_ANIM_PLAY_FAST 0x00040000L
2425 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2426 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2428 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2429 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2431 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2432 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2433 #define MCI_ANIM_STATUS_HWND 0x00004003L
2434 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2435 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2437 #define MCI_ANIM_INFO_TEXT 0x00010000L
2439 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2440 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2441 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2442 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2443 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2444 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2445 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2447 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2448 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2450 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2451 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2452 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2453 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2454 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2456 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2458 #define MCI_ANIM_RECT 0x00010000L
2459 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2460 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2462 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2463 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2465 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2471 SEGPTR lpstrDeviceType
;
2472 SEGPTR lpstrElementName
;
2477 } MCI_ANIM_OPEN_PARMS16
, *LPMCI_ANIM_OPEN_PARMS16
;
2481 MCIDEVICEID wDeviceID
;
2482 LPCSTR lpstrDeviceType
;
2483 LPCSTR lpstrElementName
;
2487 } MCI_ANIM_OPEN_PARMSA
, *LPMCI_ANIM_OPEN_PARMSA
;
2491 MCIDEVICEID wDeviceID
;
2492 LPCWSTR lpstrDeviceType
;
2493 LPCWSTR lpstrElementName
;
2497 } MCI_ANIM_OPEN_PARMSW
, *LPMCI_ANIM_OPEN_PARMSW
;
2499 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS
)
2500 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS
)
2507 } MCI_ANIM_PLAY_PARMS
, *LPMCI_ANIM_PLAY_PARMS
;
2512 } MCI_ANIM_STEP_PARMS
, *LPMCI_ANIM_STEP_PARMS
;
2521 } MCI_ANIM_WINDOW_PARMS16
, *LPMCI_ANIM_WINDOW_PARMS16
;
2528 } MCI_ANIM_WINDOW_PARMSA
, *LPMCI_ANIM_WINDOW_PARMSA
;
2535 } MCI_ANIM_WINDOW_PARMSW
, *LPMCI_ANIM_WINDOW_PARMSW
;
2537 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS
)
2538 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS
)
2542 #ifdef MCI_USE_OFFEXT
2545 #else /* ifdef MCI_USE_OFFEXT */
2547 #endif /* ifdef MCI_USE_OFFEXT */
2548 } MCI_ANIM_RECT_PARMS16
, *LPMCI_ANIM_RECT_PARMS16
;
2552 #ifdef MCI_USE_OFFEXT
2555 #else /* ifdef MCI_USE_OFFEXT */
2557 #endif /* ifdef MCI_USE_OFFEXT */
2558 } MCI_ANIM_RECT_PARMS
, *LPMCI_ANIM_RECT_PARMS
;
2565 } MCI_ANIM_UPDATE_PARMS16
, *LPMCI_ANIM_UPDATE_PARMS16
;
2571 } MCI_ANIM_UPDATE_PARMS
, *LPMCI_ANIM_UPDATE_PARMS
;
2574 #define MCI_OVLY_OPEN_WS 0x00010000L
2575 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2577 #define MCI_OVLY_STATUS_HWND 0x00004001L
2578 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2580 #define MCI_OVLY_INFO_TEXT 0x00010000L
2582 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2583 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2584 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2586 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2587 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2588 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2589 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2590 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2592 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2594 #define MCI_OVLY_RECT 0x00010000L
2595 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2596 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2597 #define MCI_OVLY_PUT_FRAME 0x00080000L
2598 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2600 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2601 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2602 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2603 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2607 MCIDEVICEID16 wDeviceID
;
2609 LPCSTR lpstrDeviceType
;
2610 LPCSTR lpstrElementName
;
2615 } MCI_OVLY_OPEN_PARMS16
, *LPMCI_OVLY_OPEN_PARMS16
;
2619 MCIDEVICEID wDeviceID
;
2620 LPCSTR lpstrDeviceType
;
2621 LPCSTR lpstrElementName
;
2625 } MCI_OVLY_OPEN_PARMSA
, *LPMCI_OVLY_OPEN_PARMSA
;
2629 MCIDEVICEID wDeviceID
;
2630 LPCWSTR lpstrDeviceType
;
2631 LPCWSTR lpstrElementName
;
2635 } MCI_OVLY_OPEN_PARMSW
, *LPMCI_OVLY_OPEN_PARMSW
;
2637 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS
)
2638 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS
)
2647 } MCI_OVLY_WINDOW_PARMS16
, *LPMCI_OVLY_WINDOW_PARMS16
;
2654 } MCI_OVLY_WINDOW_PARMSA
, *LPMCI_OVLY_WINDOW_PARMSA
;
2661 } MCI_OVLY_WINDOW_PARMSW
, *LPMCI_OVLY_WINDOW_PARMSW
;
2663 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS
)
2664 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS
)
2668 #ifdef MCI_USE_OFFEXT
2671 #else /* ifdef MCI_USE_OFFEXT */
2673 #endif /* ifdef MCI_USE_OFFEXT */
2674 } MCI_OVLY_RECT_PARMS16
, *LPMCI_OVLY_RECT_PARMS16
;
2678 #ifdef MCI_USE_OFFEXT
2681 #else /* ifdef MCI_USE_OFFEXT */
2683 #endif /* ifdef MCI_USE_OFFEXT */
2684 } MCI_OVLY_RECT_PARMS
, *LPMCI_OVLY_RECT_PARMS
;
2691 } MCI_OVLY_SAVE_PARMS16
, *LPMCI_OVLY_SAVE_PARMS16
;
2697 } MCI_OVLY_SAVE_PARMSA
, *LPMCI_OVLY_SAVE_PARMSA
;
2703 } MCI_OVLY_SAVE_PARMSW
, *LPMCI_OVLY_SAVE_PARMSW
;
2705 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS
)
2706 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS
)
2712 } MCI_OVLY_LOAD_PARMS16
, *LPMCI_OVLY_LOAD_PARMS16
;
2718 } MCI_OVLY_LOAD_PARMSA
, *LPMCI_OVLY_LOAD_PARMSA
;
2724 } MCI_OVLY_LOAD_PARMSW
, *LPMCI_OVLY_LOAD_PARMSW
;
2726 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS
)
2727 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS
)
2729 #include "poppack.h"
2735 #endif /* __WINE_MMSYSTEM_H */