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 MMSYSERR_BASE 0
118 #define WAVERR_BASE 32
119 #define MIDIERR_BASE 64
120 #define TIMERR_BASE 96
121 #define JOYERR_BASE 160
122 #define MCIERR_BASE 256
124 #define MCI_STRING_OFFSET 512
125 #define MCI_VD_OFFSET 1024
126 #define MCI_CD_OFFSET 1088
127 #define MCI_WAVE_OFFSET 1152
128 #define MCI_SEQ_OFFSET 1216
130 #define MMSYSERR_NOERROR 0 /* no error */
131 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
132 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
133 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
134 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
135 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
136 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
137 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
138 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
139 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
140 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
141 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
142 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
144 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
145 #define CALLBACK_NULL 0x00000000l /* no callback */
146 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
147 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
148 #define CALLBACK_THREAD (CALLBACK_TASK) /* dwCallback is a thread ID */
149 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
150 #define CALLBACK_EVENT 0x00050000l /* dwCallback is an EVENT Handler */
152 typedef void (CALLBACK
*LPDRVCALLBACK16
) (HDRVR16 h
, UINT16 uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
153 typedef void (CALLBACK
*LPDRVCALLBACK
) (HDRVR h
, UINT uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
155 #define MM_MICROSOFT 1 /* Microsoft Corp. */
157 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
158 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
160 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
161 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
162 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
163 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
164 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
166 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
168 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
169 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
171 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
174 UINT16 WINAPI
mmsystemGetVersion16(void);
175 UINT WINAPI
mmsystemGetVersion(void);
176 BOOL16 WINAPI
sndPlaySound(LPCSTR lpszSoundName
, UINT16 uFlags
);
177 BOOL WINAPI
sndPlaySoundA(LPCSTR lpszSound
, UINT fuSound
);
178 BOOL WINAPI
sndPlaySoundW(LPCWSTR lpszSound
, UINT fuSound
);
179 #define sndPlaySound WINELIB_NAME_AW(sndPlaySound)
180 BOOL WINAPI
PlaySoundA(LPCSTR pszSound
, HMODULE hmod
, DWORD fdwSound
);
181 BOOL WINAPI
PlaySoundW(LPCWSTR pszSound
, HMODULE hmod
, DWORD fdwSound
);
182 #define PlaySound WINELIB_NAME_AW(PlaySound)
184 #define SND_SYNC 0x0000 /* play synchronously (default) */
185 #define SND_ASYNC 0x0001 /* play asynchronously */
186 #define SND_NODEFAULT 0x0002 /* don't use default sound */
187 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
188 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
189 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
191 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
192 #define SND_ALIAS 0x00010000L /* name is a registry alias */
193 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
194 #define SND_FILENAME 0x00020000L /* name is file name */
195 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
196 #define SND_PURGE 0x00000040L /* purge all sounds */
197 #define SND_APPLICATION 0x00000080L /* look for application specific association */
199 /* waveform audio error return values */
200 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
201 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
202 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
203 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
204 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
206 typedef LPDRVCALLBACK16 LPWAVECALLBACK16
;
207 typedef LPDRVCALLBACK LPWAVECALLBACK
;
209 #define WOM_OPEN MM_WOM_OPEN
210 #define WOM_CLOSE MM_WOM_CLOSE
211 #define WOM_DONE MM_WOM_DONE
212 #define WIM_OPEN MM_WIM_OPEN
213 #define WIM_CLOSE MM_WIM_CLOSE
214 #define WIM_DATA MM_WIM_DATA
216 #define WAVE_MAPPER (-1)
218 #define WAVE_FORMAT_QUERY 0x0001
219 #define WAVE_ALLOWSYNC 0x0002
220 #define WAVE_MAPPED 0x0004
221 #define WAVE_FORMAT_DIRECT 0x0008
222 #define WAVE_FORMAT_DIRECT_QUERY (WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT)
224 typedef struct wavehdr_tag
{
225 LPSTR lpData
; /* pointer to locked data buffer */
226 DWORD dwBufferLength
; /* length of data buffer */
227 DWORD dwBytesRecorded
;/* used for input only */
228 DWORD dwUser
; /* for client's use */
229 DWORD dwFlags
; /* assorted flags (see defines) */
230 DWORD dwLoops
; /* loop control counter */
232 struct wavehdr_tag
*lpNext
; /* reserved for driver */
233 DWORD reserved
; /* reserved for driver */
234 } WAVEHDR
, *LPWAVEHDR
;
236 #define WHDR_DONE 0x00000001 /* done bit */
237 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
238 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
239 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
240 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
243 WORD wMid
; /* manufacturer ID */
244 WORD wPid
; /* product ID */
245 MMVERSION16 vDriverVersion
; /* version of the driver */
246 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
247 DWORD dwFormats
; /* formats supported */
248 WORD wChannels
; /* number of sources supported */
249 DWORD dwSupport
; /* functionality supported by driver */
250 } WAVEOUTCAPS16
, *LPWAVEOUTCAPS16
;
253 WORD wMid
; /* manufacturer ID */
254 WORD wPid
; /* product ID */
255 MMVERSION vDriverVersion
; /* version of the driver */
256 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
257 DWORD dwFormats
; /* formats supported */
258 WORD wChannels
; /* number of sources supported */
259 WORD wReserved1
; /* padding */
260 DWORD dwSupport
; /* functionality supported by driver */
261 } WAVEOUTCAPSA
, *LPWAVEOUTCAPSA
;
264 WORD wMid
; /* manufacturer ID */
265 WORD wPid
; /* product ID */
266 MMVERSION vDriverVersion
; /* version of the driver */
267 WCHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
268 DWORD dwFormats
; /* formats supported */
269 WORD wChannels
; /* number of sources supported */
270 WORD wReserved1
; /* padding */
271 DWORD dwSupport
; /* functionality supported by driver */
272 } WAVEOUTCAPSW
, *LPWAVEOUTCAPSW
;
273 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS
)
274 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS
)
276 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
277 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
278 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
279 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
280 #define WAVECAPS_SYNC 0x0010 /* driver is synchrounous and playing is blocking */
281 #define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
282 #define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
285 WORD wMid
; /* manufacturer ID */
286 WORD wPid
; /* product ID */
287 MMVERSION16 vDriverVersion
; /* version of the driver */
288 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
289 DWORD dwFormats
; /* formats supported */
290 WORD wChannels
; /* number of channels supported */
291 } WAVEINCAPS16
, *LPWAVEINCAPS16
;
294 WORD wMid
; /* manufacturer ID */
295 WORD wPid
; /* product ID */
296 MMVERSION vDriverVersion
; /* version of the driver */
297 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
298 DWORD dwFormats
; /* formats supported */
299 WORD wChannels
; /* number of channels supported */
301 } WAVEINCAPSA
, *LPWAVEINCAPSA
;
303 WORD wMid
; /* manufacturer ID */
304 WORD wPid
; /* product ID */
305 MMVERSION vDriverVersion
; /* version of the driver */
306 WCHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
307 DWORD dwFormats
; /* formats supported */
308 WORD wChannels
; /* number of channels supported */
310 } WAVEINCAPSW
, *LPWAVEINCAPSW
;
311 DECL_WINELIB_TYPE_AW(WAVEINCAPS
)
312 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS
)
314 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
315 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
316 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
317 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
318 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
319 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
320 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
321 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
322 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
323 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
324 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
325 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
326 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
328 /* General format structure common to all formats, same for Win16 and Win32 */
330 WORD wFormatTag
; /* format type */
331 WORD nChannels
; /* number of channels */
332 DWORD nSamplesPerSec
; /* sample rate */
333 DWORD nAvgBytesPerSec
;/* for buffer estimation */
334 WORD nBlockAlign
; /* block size of data */
335 } WAVEFORMAT
, *LPWAVEFORMAT
;
337 #define WAVE_FORMAT_PCM 1
342 } PCMWAVEFORMAT
, *LPPCMWAVEFORMAT
;
344 #ifndef _WAVEFORMATEX_
345 #define _WAVEFORMATEX_
346 /* dito same for Win16 / Win32 */
348 WORD wFormatTag
; /* format type */
349 WORD nChannels
; /* number of channels (i.e. mono, stereo...) */
350 DWORD nSamplesPerSec
; /* sample rate */
351 DWORD nAvgBytesPerSec
;/* for buffer estimation */
352 WORD nBlockAlign
; /* block size of data */
353 WORD wBitsPerSample
; /* number of bits per sample of mono data */
354 WORD cbSize
; /* the count in bytes of the size of */
355 /* extra information (after cbSize) */
356 } WAVEFORMATEX
, *LPWAVEFORMATEX
, *NPWAVEFORMATEX
, *PWAVEFORMATEX
;
359 UINT16 WINAPI
waveOutGetNumDevs16(void);
360 UINT WINAPI
waveOutGetNumDevs(void);
361 UINT16 WINAPI
waveOutGetDevCaps16(UINT16
,LPWAVEOUTCAPS16
,UINT16
);
362 UINT WINAPI
waveOutGetDevCapsA(UINT
,LPWAVEOUTCAPSA
,UINT
);
363 UINT WINAPI
waveOutGetDevCapsW(UINT
,LPWAVEOUTCAPSW
,UINT
);
364 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
365 UINT16 WINAPI
waveOutGetVolume16(UINT16
,DWORD
*);
366 UINT WINAPI
waveOutGetVolume(UINT
,DWORD
*);
367 UINT16 WINAPI
waveOutSetVolume16(UINT16
,DWORD
);
368 UINT WINAPI
waveOutSetVolume(UINT
,DWORD
);
369 UINT16 WINAPI
waveOutGetErrorText16(UINT16
,LPSTR
,UINT16
);
370 UINT WINAPI
waveOutGetErrorTextA(UINT
,LPSTR
,UINT
);
371 UINT WINAPI
waveOutGetErrorTextW(UINT
,LPWSTR
,UINT
);
372 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
373 UINT16 WINAPI
waveOutOpen16(HWAVEOUT16
*,UINT16
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
374 UINT WINAPI
waveOutOpen(HWAVEOUT
*,UINT
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
375 UINT16 WINAPI
waveOutClose16(HWAVEOUT16
);
376 UINT WINAPI
waveOutClose(HWAVEOUT
);
377 UINT16 WINAPI
waveOutPrepareHeader16(HWAVEOUT16
,WAVEHDR
*,UINT16
);
378 UINT WINAPI
waveOutPrepareHeader(HWAVEOUT
,WAVEHDR
*,UINT
);
379 UINT16 WINAPI
waveOutUnprepareHeader16(HWAVEOUT16
,WAVEHDR
*,UINT16
);
380 UINT WINAPI
waveOutUnprepareHeader(HWAVEOUT
,WAVEHDR
*,UINT
);
381 UINT16 WINAPI
waveOutWrite16(HWAVEOUT16
,WAVEHDR
*,UINT16
);
382 UINT WINAPI
waveOutWrite(HWAVEOUT
,WAVEHDR
*,UINT
);
383 UINT16 WINAPI
waveOutPause16(HWAVEOUT16
);
384 UINT WINAPI
waveOutPause(HWAVEOUT
);
385 UINT16 WINAPI
waveOutRestart16(HWAVEOUT16
);
386 UINT WINAPI
waveOutRestart(HWAVEOUT
);
387 UINT16 WINAPI
waveOutReset16(HWAVEOUT16
);
388 UINT WINAPI
waveOutReset(HWAVEOUT
);
389 UINT16 WINAPI
waveOutBreakLoop16(HWAVEOUT16
);
390 UINT WINAPI
waveOutBreakLoop(HWAVEOUT
);
391 UINT16 WINAPI
waveOutGetPosition16(HWAVEOUT16
,LPMMTIME16
,UINT16
);
392 UINT WINAPI
waveOutGetPosition(HWAVEOUT
,LPMMTIME
,UINT
);
393 UINT16 WINAPI
waveOutGetPitch16(HWAVEOUT16
,DWORD
*);
394 UINT WINAPI
waveOutGetPitch(HWAVEOUT
,DWORD
*);
395 UINT16 WINAPI
waveOutSetPitch16(HWAVEOUT16
,DWORD
);
396 UINT WINAPI
waveOutSetPitch(HWAVEOUT
,DWORD
);
397 UINT16 WINAPI
waveOutGetPlaybackRate16(HWAVEOUT16
,DWORD
*);
398 UINT WINAPI
waveOutGetPlaybackRate(HWAVEOUT
,DWORD
*);
399 UINT16 WINAPI
waveOutSetPlaybackRate16(HWAVEOUT16
,DWORD
);
400 UINT WINAPI
waveOutSetPlaybackRate(HWAVEOUT
,DWORD
);
401 UINT16 WINAPI
waveOutGetID16(HWAVEOUT16
,UINT16
*);
402 UINT WINAPI
waveOutGetID(HWAVEOUT
,UINT
*);
403 DWORD WINAPI
waveOutMessage16(HWAVEOUT16
,UINT16
,DWORD
,DWORD
);
404 DWORD WINAPI
waveOutMessage(HWAVEOUT
,UINT
,DWORD
,DWORD
);
406 UINT16 WINAPI
waveInGetNumDevs16(void);
407 UINT WINAPI
waveInGetNumDevs(void);
408 UINT16 WINAPI
waveInGetDevCaps16(UINT16
,LPWAVEINCAPS16
,UINT16
);
409 UINT WINAPI
waveInGetDevCapsA(UINT
,LPWAVEINCAPSA
,UINT
);
410 UINT WINAPI
waveInGetDevCapsW(UINT
,LPWAVEINCAPSW
,UINT
);
411 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
412 UINT16 WINAPI
waveInGetErrorText16(UINT16
,LPSTR
,UINT16
);
413 UINT WINAPI
waveInGetErrorTextA(UINT
,LPSTR
,UINT
);
414 UINT WINAPI
waveInGetErrorTextW(UINT
,LPWSTR
,UINT
);
415 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
416 UINT16 WINAPI
waveInOpen16(HWAVEIN16
*,UINT16
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
417 UINT WINAPI
waveInOpen(HWAVEIN
*,UINT
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
418 UINT16 WINAPI
waveInClose16(HWAVEIN16
);
419 UINT WINAPI
waveInClose(HWAVEIN
);
420 UINT16 WINAPI
waveInPrepareHeader16(HWAVEIN16
,WAVEHDR
*,UINT16
);
421 UINT WINAPI
waveInPrepareHeader(HWAVEIN
,WAVEHDR
*,UINT
);
422 UINT16 WINAPI
waveInUnprepareHeader16(HWAVEIN16
,WAVEHDR
*,UINT16
);
423 UINT WINAPI
waveInUnprepareHeader(HWAVEIN
,WAVEHDR
*,UINT
);
424 UINT16 WINAPI
waveInAddBuffer16(HWAVEIN16
,WAVEHDR
*,UINT16
);
425 UINT WINAPI
waveInAddBuffer(HWAVEIN
,WAVEHDR
*,UINT
);
426 UINT16 WINAPI
waveInStart16(HWAVEIN16
);
427 UINT WINAPI
waveInStart(HWAVEIN
);
428 UINT16 WINAPI
waveInStop16(HWAVEIN16
);
429 UINT WINAPI
waveInStop(HWAVEIN
);
430 UINT16 WINAPI
waveInReset16(HWAVEIN16
);
431 UINT WINAPI
waveInReset(HWAVEIN
);
432 UINT16 WINAPI
waveInGetPosition16(HWAVEIN16
,LPMMTIME16
,UINT16
);
433 UINT WINAPI
waveInGetPosition(HWAVEIN
,LPMMTIME
,UINT
);
434 UINT16 WINAPI
waveInGetID16(HWAVEIN16
,UINT16
*);
435 UINT WINAPI
waveInGetID(HWAVEIN
,UINT
*);
437 DWORD WINAPI
waveInMessage16(HWAVEIN16
,UINT16
,DWORD
,DWORD
);
438 DWORD WINAPI
waveInMessage(HWAVEIN
,UINT
,DWORD
,DWORD
);
440 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
441 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
442 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
443 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
444 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
445 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
446 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
448 typedef LPDRVCALLBACK16 LPMIDICALLBACK16
;
449 typedef LPDRVCALLBACK LPMIDICALLBACK
;
450 #define MIDIPATCHSIZE 128
451 typedef WORD PATCHARRAY
[MIDIPATCHSIZE
];
452 typedef WORD
*LPPATCHARRAY
;
453 typedef WORD KEYARRAY
[MIDIPATCHSIZE
];
454 typedef WORD
*LPKEYARRAY
;
456 #define MIM_OPEN MM_MIM_OPEN
457 #define MIM_CLOSE MM_MIM_CLOSE
458 #define MIM_DATA MM_MIM_DATA
459 #define MIM_LONGDATA MM_MIM_LONGDATA
460 #define MIM_ERROR MM_MIM_ERROR
461 #define MIM_LONGERROR MM_MIM_LONGERROR
462 #define MIM_MOREDATA MM_MIM_MOREDATA
464 #define MOM_OPEN MM_MOM_OPEN
465 #define MOM_CLOSE MM_MOM_CLOSE
466 #define MOM_DONE MM_MOM_DONE
467 #define MOM_POSITIONCB MM_MOM_POSITIONCB
469 /* device ID for MIDI mapper */
471 #define MIDIMAPPER (-1)
472 #define MIDI_MAPPER (-1)
474 /* flags for wFlags parm of
475 midiOutCachePatches(),
476 midiOutCacheDrumPatches() */
477 #define MIDI_CACHE_ALL 1
478 #define MIDI_CACHE_BESTFIT 2
479 #define MIDI_CACHE_QUERY 3
480 #define MIDI_UNCACHE 4
483 WORD wMid
; /* manufacturer ID */
484 WORD wPid
; /* product ID */
485 MMVERSION16 vDriverVersion
; /* version of the driver */
486 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
487 WORD wTechnology
; /* type of device */
488 WORD wVoices
; /* # of voices (internal synth only) */
489 WORD wNotes
; /* max # of notes (internal synth only) */
490 WORD wChannelMask
; /* channels used (internal synth only) */
491 DWORD dwSupport
; /* functionality supported by driver */
492 } MIDIOUTCAPS16
, *LPMIDIOUTCAPS16
;
495 WORD wMid
; /* manufacturer ID */
496 WORD wPid
; /* product ID */
497 MMVERSION vDriverVersion
; /* version of the driver */
498 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
499 WORD wTechnology
; /* type of device */
500 WORD wVoices
; /* # of voices (internal synth only) */
501 WORD wNotes
; /* max # of notes (internal synth only) */
502 WORD wChannelMask
; /* channels used (internal synth only) */
503 DWORD dwSupport
; /* functionality supported by driver */
504 } MIDIOUTCAPSA
, *LPMIDIOUTCAPSA
;
507 WORD wMid
; /* manufacturer ID */
508 WORD wPid
; /* product ID */
509 MMVERSION vDriverVersion
; /* version of the driver */
510 WCHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
511 WORD wTechnology
; /* type of device */
512 WORD wVoices
; /* # of voices (internal synth only) */
513 WORD wNotes
; /* max # of notes (internal synth only) */
514 WORD wChannelMask
; /* channels used (internal synth only) */
515 DWORD dwSupport
; /* functionality supported by driver */
516 } MIDIOUTCAPSW
, *LPMIDIOUTCAPSW
;
518 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS
)
519 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS
)
521 #define MOD_MIDIPORT 1 /* output port */
522 #define MOD_SYNTH 2 /* generic internal synth */
523 #define MOD_SQSYNTH 3 /* square wave internal synth */
524 #define MOD_FMSYNTH 4 /* FM internal synth */
525 #define MOD_MAPPER 5 /* MIDI mapper */
527 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
528 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
529 #define MIDICAPS_CACHE 0x0004
530 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
533 WORD wMid
; /* manufacturer ID */
534 WORD wPid
; /* product ID */
535 MMVERSION16 vDriverVersion
; /* version of the driver */
536 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
537 DWORD dwSupport
; /* included in win95 and higher */
538 } MIDIINCAPS16
, *LPMIDIINCAPS16
;
541 WORD wMid
; /* manufacturer ID */
542 WORD wPid
; /* product ID */
543 MMVERSION vDriverVersion
; /* version of the driver */
544 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
545 DWORD dwSupport
; /* included in win95 and higher */
546 } MIDIINCAPSA
, *LPMIDIINCAPSA
;
549 WORD wMid
; /* manufacturer ID */
550 WORD wPid
; /* product ID */
551 MMVERSION vDriverVersion
; /* version of the driver */
552 WCHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
553 DWORD dwSupport
; /* included in win95 and higher */
554 } MIDIINCAPSW
, *LPMIDIINCAPSW
;
556 DECL_WINELIB_TYPE_AW(MIDIINCAPS
)
557 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS
)
560 LPSTR lpData
; /* pointer to locked data block */
561 DWORD dwBufferLength
; /* length of data in data block */
562 DWORD dwBytesRecorded
;/* used for input only */
563 DWORD dwUser
; /* for client's use */
564 DWORD dwFlags
; /* assorted flags (see defines) */
565 struct midihdr_tag
*lpNext
; /* reserved for driver */
566 DWORD reserved
; /* reserved for driver */
567 } MIDIHDR16
, *LPMIDIHDR16
;
569 /* It seems that Win32 has a slightly different structure than Win 16.
573 LPSTR lpData
; /* pointer to locked data block */
574 DWORD dwBufferLength
; /* length of data in data block */
575 DWORD dwBytesRecorded
;/* used for input only */
576 DWORD dwUser
; /* for client's use */
577 DWORD dwFlags
; /* assorted flags (see defines) */
578 struct midihdr_tag
*lpNext
; /* reserved for driver */
579 DWORD reserved
; /* reserved for driver */
580 DWORD dwOffset
; /* offset of playback in case of
582 DWORD dwReserved
[4]; /* reserved for driver */
583 } MIDIHDR
, *LPMIDIHDR
;
585 #define MHDR_DONE 0x00000001 /* done bit */
586 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
587 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
588 #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
593 } MIDIPROPTEMPO
, *LPMIDIPROPTEMPO
;
598 } MIDIPROPTIMEDIV
, *LPMIDIPROPTIMEDIV
;
600 #define MIDIPROP_GET 0x40000000
601 #define MIDIPROP_SET 0x80000000
602 #define MIDIPROP_TEMPO 0x00000002
603 #define MIDIPROP_TIMEDIV 0x00000001
606 DWORD dwDeltaTime
; /* Time, in MIDI ticks, between the previous
607 * event and the current event. */
608 DWORD dwStreamID
; /* Reserved; must be zero. */
609 DWORD dwEvent
; /* event => see MEVT_XXX macros */
610 DWORD dwParms
[0]; /* extra pmts to dwEvent if F_LONG is set */
611 } MIDIEVENT
, *LPMIDIEVENT
;
613 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
614 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
616 #define MEVT_F_CALLBACK 0x40000000l
617 #define MEVT_F_LONG 0x80000000l
618 #define MEVT_F_SHORT 0x00000000l
619 #define MEVT_COMMENT ((BYTE)0x82)
620 #define MEVT_LONGMSG ((BYTE)0x80)
621 #define MEVT_NOP ((BYTE)0x02)
622 #define MEVT_SHORTMSG ((BYTE)0x00)
623 #define MEVT_TEMPO ((BYTE)0x01)
624 #define MEVT_VERSION ((BYTE)0x84)
626 UINT16 WINAPI
midiOutGetNumDevs16(void);
627 UINT WINAPI
midiOutGetNumDevs(void);
628 UINT16 WINAPI
midiOutGetDevCaps16(UINT16
,LPMIDIOUTCAPS16
,UINT16
);
629 UINT WINAPI
midiOutGetDevCapsA(UINT
,LPMIDIOUTCAPSA
,UINT
);
630 UINT WINAPI
midiOutGetDevCapsW(UINT
,LPMIDIOUTCAPSW
,UINT
);
631 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
632 UINT16 WINAPI
midiOutGetVolume16(UINT16
,DWORD
*);
633 UINT WINAPI
midiOutGetVolume(UINT
,DWORD
*);
634 UINT16 WINAPI
midiOutSetVolume16(UINT16
,DWORD
);
635 UINT WINAPI
midiOutSetVolume(UINT
,DWORD
);
636 UINT16 WINAPI
midiOutGetErrorText16(UINT16
,LPSTR
,UINT16
);
637 UINT WINAPI
midiOutGetErrorTextA(UINT
,LPSTR
,UINT
);
638 UINT WINAPI
midiOutGetErrorTextW(UINT
,LPWSTR
,UINT
);
639 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
640 UINT16 WINAPI
midiOutOpen16(HMIDIOUT16
*,UINT16
,DWORD
,DWORD
,DWORD
);
641 UINT WINAPI
midiOutOpen(HMIDIOUT
*,UINT
,DWORD
,DWORD
,DWORD
);
642 UINT16 WINAPI
midiOutClose16(HMIDIOUT16
);
643 UINT WINAPI
midiOutClose(HMIDIOUT
);
644 UINT16 WINAPI
midiOutPrepareHeader16(HMIDIOUT16
,MIDIHDR16
*,UINT16
);
645 UINT WINAPI
midiOutPrepareHeader(HMIDIOUT
,MIDIHDR
*,UINT
);
646 UINT16 WINAPI
midiOutUnprepareHeader16(HMIDIOUT16
,MIDIHDR16
*,UINT16
);
647 UINT WINAPI
midiOutUnprepareHeader(HMIDIOUT
,MIDIHDR
*,UINT
);
648 UINT16 WINAPI
midiOutShortMsg16(HMIDIOUT16
,DWORD
);
649 UINT WINAPI
midiOutShortMsg(HMIDIOUT
,DWORD
);
650 UINT16 WINAPI
midiOutLongMsg16(HMIDIOUT16
,MIDIHDR16
*,UINT16
);
651 UINT WINAPI
midiOutLongMsg(HMIDIOUT
,MIDIHDR
*,UINT
);
652 UINT16 WINAPI
midiOutReset16(HMIDIOUT16
);
653 UINT WINAPI
midiOutReset(HMIDIOUT
);
654 UINT16 WINAPI
midiOutCachePatches16(HMIDIOUT16
,UINT16
,WORD
*,UINT16
);
655 UINT WINAPI
midiOutCachePatches(HMIDIOUT
,UINT
,WORD
*,UINT
);
656 UINT16 WINAPI
midiOutCacheDrumPatches16(HMIDIOUT16
,UINT16
,WORD
*,UINT16
);
657 UINT WINAPI
midiOutCacheDrumPatches(HMIDIOUT
,UINT
,WORD
*,UINT
);
658 UINT16 WINAPI
midiOutGetID16(HMIDIOUT16
,UINT16
*);
659 UINT WINAPI
midiOutGetID(HMIDIOUT
,UINT
*);
661 DWORD WINAPI
midiOutMessage16(HMIDIOUT16
,UINT16
,DWORD
,DWORD
);
662 DWORD WINAPI
midiOutMessage(HMIDIOUT
,UINT
,DWORD
,DWORD
);
664 UINT16 WINAPI
midiInGetNumDevs16(void);
665 UINT WINAPI
midiInGetNumDevs(void);
666 UINT16 WINAPI
midiInGetDevCaps16(UINT16
,LPMIDIINCAPS16
,UINT16
);
667 UINT WINAPI
midiInGetDevCapsA(UINT
,LPMIDIINCAPSA
,UINT
);
668 UINT WINAPI
midiInGetDevCapsW(UINT
,LPMIDIINCAPSW
,UINT
);
669 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
670 UINT16 WINAPI
midiInGetErrorText16(UINT16
,LPSTR
,UINT16
);
671 UINT WINAPI
midiInGetErrorTextA(UINT
,LPSTR
,UINT
);
672 UINT WINAPI
midiInGetErrorTextW(UINT
,LPWSTR
,UINT
);
673 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
674 UINT16 WINAPI
midiInOpen16(HMIDIIN16
*,UINT16
,DWORD
,DWORD
,DWORD
);
675 UINT WINAPI
midiInOpen(HMIDIIN
*,UINT
,DWORD
,DWORD
,DWORD
);
676 UINT16 WINAPI
midiInClose16(HMIDIIN16
);
677 UINT WINAPI
midiInClose(HMIDIIN
);
678 UINT16 WINAPI
midiInPrepareHeader16(HMIDIIN16
,MIDIHDR16
*,UINT16
);
679 UINT WINAPI
midiInPrepareHeader(HMIDIIN
,MIDIHDR
*,UINT
);
680 UINT16 WINAPI
midiInUnprepareHeader16(HMIDIIN16
,MIDIHDR16
*,UINT16
);
681 UINT WINAPI
midiInUnprepareHeader(HMIDIIN
,MIDIHDR
*,UINT
);
682 UINT16 WINAPI
midiInAddBuffer16(HMIDIIN16
,MIDIHDR16
*,UINT16
);
683 UINT WINAPI
midiInAddBuffer(HMIDIIN
,MIDIHDR
*,UINT
);
684 UINT16 WINAPI
midiInStart16(HMIDIIN16
);
685 UINT WINAPI
midiInStart(HMIDIIN
);
686 UINT16 WINAPI
midiInStop16(HMIDIIN16
);
687 UINT WINAPI
midiInStop(HMIDIIN
);
688 UINT16 WINAPI
midiInReset16(HMIDIIN16
);
689 UINT WINAPI
midiInReset(HMIDIIN
);
690 UINT16 WINAPI
midiInGetID16(HMIDIIN16
,UINT16
*);
691 UINT WINAPI
midiInGetID(HMIDIIN
,UINT
*);
692 DWORD WINAPI
midiInMessage16(HMIDIIN16
,UINT16
,DWORD
,DWORD
);
693 DWORD WINAPI
midiInMessage(HMIDIIN
,UINT
,DWORD
,DWORD
);
695 MMRESULT16 WINAPI
midiStreamClose16(HMIDISTRM16 hms
);
696 MMRESULT WINAPI
midiStreamClose(HMIDISTRM hms
);
697 MMRESULT WINAPI
midiStreamOpen(HMIDISTRM
* phms
, LPUINT uDeviceID
, DWORD cMidi
,
698 DWORD dwCallback
, DWORD dwInstance
, DWORD fdwOpen
);
699 MMRESULT16 WINAPI
midiStreamOpen16(HMIDISTRM16
* phms
, LPUINT16 devid
, DWORD cMidi
,
700 DWORD dwCallback
, DWORD dwInstance
, DWORD fdwOpen
);
701 MMRESULT16 WINAPI
midiStreamOut16(HMIDISTRM16 hms
, LPMIDIHDR16 lpMidiHdr
, UINT16 cbMidiHdr
);
702 MMRESULT WINAPI
midiStreamOut(HMIDISTRM hms
, LPMIDIHDR lpMidiHdr
, UINT cbMidiHdr
);
703 MMRESULT16 WINAPI
midiStreamPause16(HMIDISTRM16 hms
);
704 MMRESULT WINAPI
midiStreamPause(HMIDISTRM hms
);
705 MMRESULT16 WINAPI
midiStreamPosition16(HMIDISTRM16 hms
, LPMMTIME16 lpmmt
, UINT16 cbmmt
);
706 MMRESULT WINAPI
midiStreamPosition(HMIDISTRM hms
, LPMMTIME lpmmt
, UINT cbmmt
);
707 MMRESULT16 WINAPI
midiStreamProperty16(HMIDISTRM16 hms
, LPBYTE lpPropData
, DWORD dwProperty
);
708 MMRESULT WINAPI
midiStreamProperty(HMIDISTRM hms
, LPBYTE lpPropData
, DWORD dwProperty
);
709 MMRESULT16 WINAPI
midiStreamRestart16(HMIDISTRM16 hms
);
710 MMRESULT WINAPI
midiStreamRestart(HMIDISTRM hms
);
711 MMRESULT16 WINAPI
midiStreamStop16(HMIDISTRM16 hms
);
712 MMRESULT WINAPI
midiStreamStop(HMIDISTRM hms
);
714 #define AUX_MAPPER (-1)
717 WORD wMid
; /* manufacturer ID */
718 WORD wPid
; /* product ID */
719 MMVERSION16 vDriverVersion
; /* version of the driver */
720 CHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
721 WORD wTechnology
; /* type of device */
722 DWORD dwSupport
; /* functionality supported by driver */
723 } AUXCAPS16
, *LPAUXCAPS16
;
726 WORD wMid
; /* manufacturer ID */
727 WORD wPid
; /* product ID */
728 MMVERSION vDriverVersion
; /* version of the driver */
729 CHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
730 WORD wTechnology
; /* type of device */
731 WORD wReserved1
; /* padding */
732 DWORD dwSupport
; /* functionality supported by driver */
733 } AUXCAPSA
, *LPAUXCAPSA
;
736 WORD wMid
; /* manufacturer ID */
737 WORD wPid
; /* product ID */
738 MMVERSION vDriverVersion
; /* version of the driver */
739 WCHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
740 WORD wTechnology
; /* type of device */
741 WORD wReserved1
; /* padding */
742 DWORD dwSupport
; /* functionality supported by driver */
743 } AUXCAPSW
, *LPAUXCAPSW
;
745 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
746 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
748 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
749 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
751 UINT16 WINAPI
auxGetNumDevs16(void);
752 UINT WINAPI
auxGetNumDevs(void);
753 UINT16 WINAPI
auxGetDevCaps16 (UINT16
,LPAUXCAPS16
,UINT16
);
754 UINT WINAPI
auxGetDevCapsA(UINT
,LPAUXCAPSA
,UINT
);
755 UINT WINAPI
auxGetDevCapsW(UINT
,LPAUXCAPSW
,UINT
);
756 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
757 UINT16 WINAPI
auxSetVolume16(UINT16
,DWORD
);
758 UINT WINAPI
auxSetVolume(UINT
,DWORD
);
760 UINT16 WINAPI
auxGetVolume16(UINT16
,LPDWORD
);
761 UINT WINAPI
auxGetVolume(UINT
,LPDWORD
);
763 DWORD WINAPI
auxOutMessage16(UINT16
,UINT16
,DWORD
,DWORD
);
764 DWORD WINAPI
auxOutMessage(UINT
,UINT
,DWORD
,DWORD
);
766 #define TIMERR_NOERROR (0) /* no error */
767 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
768 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
770 typedef void (CALLBACK
*LPTIMECALLBACK16
)(UINT16 uTimerID
, UINT16 uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
771 typedef void (CALLBACK
*LPTIMECALLBACK
)(UINT uTimerID
, UINT uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
773 #define TIME_ONESHOT 0x0000 /* program timer for single event */
774 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
775 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
776 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
777 #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
780 UINT16 wPeriodMin
; /* minimum period supported */
781 UINT16 wPeriodMax
; /* maximum period supported */
782 } TIMECAPS16
,*LPTIMECAPS16
;
787 } TIMECAPS
, *LPTIMECAPS
;
790 MMRESULT16 WINAPI
timeGetSystemTime16(LPMMTIME16
,UINT16
);
791 MMRESULT WINAPI
timeGetSystemTime(LPMMTIME
,UINT
);
792 DWORD WINAPI
timeGetTime(void); /* same for win32/win16 */
793 MMRESULT16 WINAPI
timeSetEvent16(UINT16
,UINT16
,LPTIMECALLBACK16
,DWORD
,UINT16
);
794 MMRESULT WINAPI
timeSetEvent(UINT
,UINT
,LPTIMECALLBACK
,DWORD
,UINT
);
795 MMRESULT16 WINAPI
timeKillEvent16(UINT16
);
796 MMRESULT WINAPI
timeKillEvent(UINT
);
797 MMRESULT16 WINAPI
timeGetDevCaps16(LPTIMECAPS16
,UINT16
);
798 MMRESULT WINAPI
timeGetDevCaps(LPTIMECAPS
,UINT
);
799 MMRESULT16 WINAPI
timeBeginPeriod16(UINT16
);
800 MMRESULT WINAPI
timeBeginPeriod(UINT
);
801 MMRESULT16 WINAPI
timeEndPeriod16(UINT16
);
802 MMRESULT WINAPI
timeEndPeriod(UINT
);
804 #define JOYERR_NOERROR (0) /* no error */
805 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
806 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
807 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
809 /* JOYINFO, JOYINFOEX, MM_JOY* */
810 #define JOY_BUTTON1 0x0001
811 #define JOY_BUTTON2 0x0002
812 #define JOY_BUTTON3 0x0004
813 #define JOY_BUTTON4 0x0008
814 #define JOY_BUTTON1CHG 0x0100
815 #define JOY_BUTTON2CHG 0x0200
816 #define JOY_BUTTON3CHG 0x0400
817 #define JOY_BUTTON4CHG 0x0800
819 #define JOYSTICKID1 0
820 #define JOYSTICKID2 1
823 #define JOYCAPS_HASZ 0x0001
824 #define JOYCAPS_HASR 0x0002
825 #define JOYCAPS_HASU 0x0004
826 #define JOYCAPS_HASV 0x0008
827 #define JOYCAPS_HASPOV 0x0010
828 #define JOYCAPS_POV4DIR 0x0020
829 #define JOYCAPS_POVCTS 0x0040
831 /* JOYINFOEX stuff */
832 #define JOY_POVCENTERED (WORD) -1
833 #define JOY_POVFORWARD 0
834 #define JOY_POVRIGHT 9000
835 #define JOY_POVBACKWARD 18000
836 #define JOY_POVLEFT 27000
838 #define JOY_RETURNX 0x00000001
839 #define JOY_RETURNY 0x00000002
840 #define JOY_RETURNZ 0x00000004
841 #define JOY_RETURNR 0x00000008
842 #define JOY_RETURNU 0x00000010
843 #define JOY_RETURNV 0x00000020
844 #define JOY_RETURNPOV 0x00000040
845 #define JOY_RETURNBUTTONS 0x00000080
846 #define JOY_RETURNRAWDATA 0x00000100
847 #define JOY_RETURNPOVCTS 0x00000200
848 #define JOY_RETURNCENTERED 0x00000400
849 #define JOY_USEDEADZONE 0x00000800
850 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
851 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
852 JOY_RETURNPOV | JOY_RETURNBUTTONS)
853 #define JOY_CAL_READALWAYS 0x00010000
854 #define JOY_CAL_READXYONLY 0x00020000
855 #define JOY_CAL_READ3 0x00040000
856 #define JOY_CAL_READ4 0x00080000
857 #define JOY_CAL_READXONLY 0x00100000
858 #define JOY_CAL_READYONLY 0x00200000
859 #define JOY_CAL_READ5 0x00400000
860 #define JOY_CAL_READ6 0x00800000
861 #define JOY_CAL_READZONLY 0x01000000
862 #define JOY_CAL_READRONLY 0x02000000
863 #define JOY_CAL_READUONLY 0x04000000
864 #define JOY_CAL_READVONLY 0x08000000
867 WORD wMid
; /* manufacturer ID */
868 WORD wPid
; /* product ID */
869 char szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
870 UINT16 wXmin
; /* minimum x position value */
871 UINT16 wXmax
; /* maximum x position value */
872 UINT16 wYmin
; /* minimum y position value */
873 UINT16 wYmax
; /* maximum y position value */
874 UINT16 wZmin
; /* minimum z position value */
875 UINT16 wZmax
; /* maximum z position value */
876 UINT16 wNumButtons
; /* number of buttons */
877 UINT16 wPeriodMin
; /* minimum message period when captured */
878 UINT16 wPeriodMax
; /* maximum message period when captured */
879 /* win95,nt4 additions: */
880 UINT16 wRmin
; /* minimum r position value */
881 UINT16 wRmax
; /* maximum r position value */
882 UINT16 wUmin
; /* minimum u (5th axis) position value */
883 UINT16 wUmax
; /* maximum u (5th axis) position value */
884 UINT16 wVmin
; /* minimum v (6th axis) position value */
885 UINT16 wVmax
; /* maximum v (6th axis) position value */
886 UINT16 wCaps
; /* joystick capabilites */
887 UINT16 wMaxAxes
; /* maximum number of axes supported */
888 UINT16 wNumAxes
; /* number of axes in use */
889 UINT16 wMaxButtons
; /* maximum number of buttons supported */
890 CHAR szRegKey
[MAXPNAMELEN
]; /* registry key */
891 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
]; /* OEM VxD in use */
892 } JOYCAPS16
, *LPJOYCAPS16
;
897 CHAR szPname
[MAXPNAMELEN
];
917 CHAR szRegKey
[MAXPNAMELEN
];
918 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
919 } JOYCAPSA
, *LPJOYCAPSA
;
924 WCHAR szPname
[MAXPNAMELEN
];
944 WCHAR szRegKey
[MAXPNAMELEN
];
945 WCHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
946 } JOYCAPSW
, *LPJOYCAPSW
;
947 DECL_WINELIB_TYPE_AW(JOYCAPS
)
948 DECL_WINELIB_TYPE_AW(LPJOYCAPS
)
951 UINT16 wXpos
; /* x position */
952 UINT16 wYpos
; /* y position */
953 UINT16 wZpos
; /* z position */
954 UINT16 wButtons
; /* button states */
955 } JOYINFO16
, *LPJOYINFO16
;
962 } JOYINFO
, *LPJOYINFO
;
965 DWORD dwSize
; /* size of structure */
966 DWORD dwFlags
; /* flags to indicate what to return */
967 DWORD dwXpos
; /* x position */
968 DWORD dwYpos
; /* y position */
969 DWORD dwZpos
; /* z position */
970 DWORD dwRpos
; /* rudder/4th axis position */
971 DWORD dwUpos
; /* 5th axis position */
972 DWORD dwVpos
; /* 6th axis position */
973 DWORD dwButtons
; /* button states */
974 DWORD dwButtonNumber
; /* current button number pressed */
975 DWORD dwPOV
; /* point of view state */
976 DWORD dwReserved1
; /* reserved for communication between winmm & driver */
977 DWORD dwReserved2
; /* reserved for future expansion */
978 } JOYINFOEX
,*LPJOYINFOEX
;
981 MMRESULT16 WINAPI
joyGetDevCaps16 (UINT16
,LPJOYCAPS16
,UINT16
);
982 MMRESULT WINAPI
joyGetDevCapsA(UINT
,LPJOYCAPSA
,UINT
);
983 MMRESULT WINAPI
joyGetDevCapsW(UINT
,LPJOYCAPSW
,UINT
);
984 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
985 UINT16 WINAPI
joyGetNumDevs16(void);
986 UINT WINAPI
joyGetNumDevs(void);
987 MMRESULT16 WINAPI
joyGetPos16(UINT16
,LPJOYINFO16
);
988 MMRESULT WINAPI
joyGetPos(UINT
,LPJOYINFO
);
989 MMRESULT16 WINAPI
joyGetPosEx16(UINT16
,LPJOYINFOEX
);
990 MMRESULT WINAPI
joyGetPosEx(UINT
,LPJOYINFOEX
);
991 MMRESULT16 WINAPI
joyGetThreshold16(UINT16
,UINT16
*);
992 MMRESULT WINAPI
joyGetThreshold(UINT
,UINT
*);
993 MMRESULT16 WINAPI
joyReleaseCapture16(UINT16
);
994 MMRESULT WINAPI
joyReleaseCapture(UINT
);
995 MMRESULT16 WINAPI
joySetCapture16(HWND16
,UINT16
,UINT16
,BOOL16
);
996 MMRESULT WINAPI
joySetCapture(HWND
,UINT
,UINT
,BOOL
);
997 MMRESULT16 WINAPI
joySetThreshold16(UINT16
,UINT16
);
998 MMRESULT WINAPI
joySetThreshold(UINT
,UINT
);
1000 #define MIXERR_BASE 1024
1001 #define MIXERR_INVALLINE (MIXERR_BASE + 0)
1002 #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
1003 #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
1004 #define MIXERR_LASTERROR (MIXERR_BASE + 2)
1007 WORD wMid
; /* manufacturer id */
1008 WORD wPid
; /* product id */
1009 MMVERSION16 vDriverVersion
; /* version of the driver */
1010 CHAR szPname
[MAXPNAMELEN
]; /* product name */
1011 DWORD fdwSupport
; /* misc. support bits */
1012 DWORD cDestinations
; /* count of destinations */
1013 } MIXERCAPS16
,*LPMIXERCAPS16
;
1018 MMVERSION vDriverVersion
;
1019 CHAR szPname
[MAXPNAMELEN
];
1021 DWORD cDestinations
;
1022 } MIXERCAPSA
,*LPMIXERCAPSA
;
1027 MMVERSION vDriverVersion
;
1028 WCHAR szPname
[MAXPNAMELEN
];
1030 DWORD cDestinations
;
1031 } MIXERCAPSW
,*LPMIXERCAPSW
;
1033 DECL_WINELIB_TYPE_AW(MIXERCAPS
)
1034 DECL_WINELIB_TYPE_AW(LPMIXERCAPS
)
1036 #define MIXER_SHORT_NAME_CHARS 16
1037 #define MIXER_LONG_NAME_CHARS 64
1039 /* MIXERLINE.fdwLine */
1040 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1041 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1042 #define MIXERLINE_LINEF_SOURCE 0x80000000
1045 #define MIXER_OBJECTF_HANDLE 0x80000000L
1046 #define MIXER_OBJECTF_MIXER 0x00000000L
1047 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
1048 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
1049 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
1050 #define MIXER_OBJECTF_WAVEIN 0x20000000L
1051 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
1052 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
1053 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
1054 #define MIXER_OBJECTF_MIDIIN 0x40000000L
1055 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
1056 #define MIXER_OBJECTF_AUX 0x50000000L
1058 /* MIXERLINE.dwComponentType */
1059 /* component types for destinations and sources */
1060 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1061 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1062 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1063 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1064 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1065 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1066 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1067 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1068 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1069 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1070 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1072 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1073 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1074 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1075 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1076 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1077 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1078 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1079 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1080 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1081 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1082 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1083 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1084 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1086 /* MIXERLINE.Target.dwType */
1087 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1088 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1089 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1090 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1091 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1092 #define MIXERLINE_TARGETTYPE_AUX 5
1095 DWORD cbStruct
; /* size of MIXERLINE structure */
1096 DWORD dwDestination
; /* zero based destination index */
1097 DWORD dwSource
; /* zero based source index (if source) */
1098 DWORD dwLineID
; /* unique line id for mixer device */
1099 DWORD fdwLine
; /* state/information about line */
1100 DWORD dwUser
; /* driver specific information */
1101 DWORD dwComponentType
; /* component type line connects to */
1102 DWORD cChannels
; /* number of channels line supports */
1103 DWORD cConnections
; /* number of connections [possible] */
1104 DWORD cControls
; /* number of controls at this line */
1105 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1106 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1108 DWORD dwType
; /* MIXERLINE_TARGETTYPE_xxxx */
1109 DWORD dwDeviceID
; /* target device ID of device type */
1110 WORD wMid
; /* of target device */
1112 MMVERSION16 vDriverVersion
; /* " */
1113 CHAR szPname
[MAXPNAMELEN
]; /* " */
1115 } MIXERLINE16
, *LPMIXERLINE16
;
1119 DWORD dwDestination
;
1124 DWORD dwComponentType
;
1128 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1129 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1135 MMVERSION vDriverVersion
;
1136 CHAR szPname
[MAXPNAMELEN
];
1138 } MIXERLINEA
, *LPMIXERLINEA
;
1142 DWORD dwDestination
;
1147 DWORD dwComponentType
;
1151 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1152 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1158 MMVERSION vDriverVersion
;
1159 WCHAR szPname
[MAXPNAMELEN
];
1161 } MIXERLINEW
, *LPMIXERLINEW
;
1163 DECL_WINELIB_TYPE_AW(MIXERLINE
)
1164 DECL_WINELIB_TYPE_AW(LPMIXERLINE
)
1166 /* MIXERCONTROL.fdwControl */
1167 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1168 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1169 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1171 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1172 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1173 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1174 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1175 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1176 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1177 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1178 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1179 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1180 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1182 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1184 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1185 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1187 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1189 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1190 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1192 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1193 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1195 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1196 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1197 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1198 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1199 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1200 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1201 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1203 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1204 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1205 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1206 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1207 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1208 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1209 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1210 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1211 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1212 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1213 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1214 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1215 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1216 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1217 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1218 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1219 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1220 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1221 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1222 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1223 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1224 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1225 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1226 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1227 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1228 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1229 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1230 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1231 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1232 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1233 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1237 DWORD cbStruct
; /* size in bytes of MIXERCONTROL */
1238 DWORD dwControlID
; /* unique control id for mixer device */
1239 DWORD dwControlType
; /* MIXERCONTROL_CONTROLTYPE_xxx */
1240 DWORD fdwControl
; /* MIXERCONTROL_CONTROLF_xxx */
1241 DWORD cMultipleItems
; /* if MIXERCONTROL_CONTROLF_MULTIPLE set */
1242 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1243 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1246 LONG lMinimum
; /* signed minimum for this control */
1247 LONG lMaximum
; /* signed maximum for this control */
1250 DWORD dwMinimum
; /* unsigned minimum for this control */
1251 DWORD dwMaximum
; /* unsigned maximum for this control */
1253 DWORD dwReserved
[6];
1256 DWORD cSteps
; /* # of steps between min & max */
1257 DWORD cbCustomData
; /* size in bytes of custom data */
1258 DWORD dwReserved
[6]; /* !!! needed? we have cbStruct.... */
1260 } MIXERCONTROL16
, *LPMIXERCONTROL16
;
1265 DWORD dwControlType
;
1267 DWORD cMultipleItems
;
1268 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1269 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1279 DWORD dwReserved
[6];
1284 DWORD dwReserved
[6];
1286 } MIXERCONTROLA
, *LPMIXERCONTROLA
;
1291 DWORD dwControlType
;
1293 DWORD cMultipleItems
;
1294 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1295 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1305 DWORD dwReserved
[6];
1310 DWORD dwReserved
[6];
1312 } MIXERCONTROLW
, *LPMIXERCONTROLW
;
1314 DECL_WINELIB_TYPE_AW(MIXERCONTROL
)
1315 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL
)
1318 DWORD cbStruct
; /* size in bytes of MIXERLINECONTROLS */
1319 DWORD dwLineID
; /* line id (from MIXERLINE.dwLineID) */
1321 DWORD dwControlID
; /* MIXER_GETLINECONTROLSF_ONEBYID */
1322 DWORD dwControlType
; /* MIXER_GETLINECONTROLSF_ONEBYTYPE */
1324 DWORD cControls
; /* count of controls pmxctrl points to */
1325 DWORD cbmxctrl
; /* size in bytes of _one_ MIXERCONTROL */
1326 LPMIXERCONTROL16 pamxctrl
;/* pointer to first MIXERCONTROL array */
1327 } MIXERLINECONTROLS16
, *LPMIXERLINECONTROLS16
;
1334 DWORD dwControlType
;
1338 LPMIXERCONTROLA pamxctrl
;
1339 } MIXERLINECONTROLSA
, *LPMIXERLINECONTROLSA
;
1346 DWORD dwControlType
;
1350 LPMIXERCONTROLW pamxctrl
;
1351 } MIXERLINECONTROLSW
, *LPMIXERLINECONTROLSW
;
1353 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS
)
1354 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS
)
1357 DWORD cbStruct
; /* size in bytes of MIXERCONTROLDETAILS */
1358 DWORD dwControlID
; /* control id to get/set details on */
1359 DWORD cChannels
; /* number of channels in paDetails array */
1361 HWND16 hwndOwner
; /* for MIXER_SETCONTROLDETAILSF_CUSTOM */
1362 DWORD cMultipleItems
; /* if _MULTIPLE, the number of items per channel */
1364 DWORD cbDetails
; /* size of _one_ details_XX struct */
1365 LPVOID paDetails
; /* pointer to array of details_XX structs */
1366 } MIXERCONTROLDETAILS16
,*LPMIXERCONTROLDETAILS16
;
1374 DWORD cMultipleItems
;
1378 } MIXERCONTROLDETAILS
,*LPMIXERCONTROLDETAILS
;
1384 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1385 } MIXERCONTROLDETAILS_LISTTEXT16
,*LPMIXERCONTROLDETAILS_LISTTEXT16
;
1390 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1391 } MIXERCONTROLDETAILS_LISTTEXTA
,*LPMIXERCONTROLDETAILS_LISTTEXTA
;
1396 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1397 } MIXERCONTROLDETAILS_LISTTEXTW
,*LPMIXERCONTROLDETAILS_LISTTEXTW
;
1399 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT
)
1400 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT
)
1402 /* MIXER_GETCONTROLDETAILSF_VALUE */
1405 } MIXERCONTROLDETAILS_BOOLEAN
,*LPMIXERCONTROLDETAILS_BOOLEAN
;
1409 } MIXERCONTROLDETAILS_SIGNED
,*LPMIXERCONTROLDETAILS_SIGNED
;
1413 } MIXERCONTROLDETAILS_UNSIGNED
,*LPMIXERCONTROLDETAILS_UNSIGNED
;
1415 /* bits passed to mixerGetLineInfo.fdwInfo */
1416 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1417 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1418 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1419 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1420 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1421 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1423 /* bitmask passed to mixerGetLineControl */
1424 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1425 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1426 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1427 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1429 /* bitmask passed to mixerGetControlDetails */
1430 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1431 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1432 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1434 /* bitmask passed to mixerSetControlDetails */
1435 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1436 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1437 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1439 UINT16 WINAPI
mixerGetNumDevs16(void);
1440 UINT WINAPI
mixerGetNumDevs(void);
1441 UINT16 WINAPI
mixerOpen16(LPHMIXER16
,UINT16
,DWORD
,DWORD
,DWORD
);
1442 UINT WINAPI
mixerOpen(LPHMIXER
,UINT
,DWORD
,DWORD
,DWORD
);
1443 UINT16 WINAPI
mixerClose16(HMIXER16
);
1444 UINT WINAPI
mixerClose(HMIXER
);
1445 UINT16 WINAPI
mixerMessage16(HMIXER16
,UINT16
,DWORD
,DWORD
);
1446 UINT WINAPI
mixerMessage(HMIXER
,UINT
,DWORD
,DWORD
);
1447 UINT16 WINAPI
mixerGetDevCaps16(UINT16
,LPMIXERCAPS16
,UINT16
);
1448 UINT WINAPI
mixerGetDevCapsA(UINT
,LPMIXERCAPSA
,UINT
);
1449 UINT WINAPI
mixerGetDevCapsW(UINT
,LPMIXERCAPSW
,UINT
);
1450 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1451 UINT16 WINAPI
mixerGetLineInfo16(HMIXEROBJ16
,LPMIXERLINE16
,DWORD
);
1452 UINT WINAPI
mixerGetLineInfoA(HMIXEROBJ
,LPMIXERLINEA
,DWORD
);
1453 UINT WINAPI
mixerGetLineInfoW(HMIXEROBJ
,LPMIXERLINEW
,DWORD
);
1454 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1455 UINT16 WINAPI
mixerGetID16(HMIXEROBJ16
,LPUINT16
,DWORD
);
1456 UINT WINAPI
mixerGetID(HMIXEROBJ
,LPUINT
,DWORD
);
1457 UINT16 WINAPI
mixerGetLineControls16(HMIXEROBJ16
,LPMIXERLINECONTROLS16
,DWORD
);
1458 UINT WINAPI
mixerGetLineControlsA(HMIXEROBJ
,LPMIXERLINECONTROLSA
,DWORD
);
1459 UINT WINAPI
mixerGetLineControlsW(HMIXEROBJ
,LPMIXERLINECONTROLSW
,DWORD
);
1460 #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1461 UINT16 WINAPI
mixerGetControlDetails16(HMIXEROBJ16
,LPMIXERCONTROLDETAILS16
,DWORD
);
1462 UINT WINAPI
mixerGetControlDetailsA(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1463 UINT WINAPI
mixerGetControlDetailsW(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1464 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1465 UINT16 WINAPI
mixerSetControlDetails16(HMIXEROBJ16
,LPMIXERCONTROLDETAILS16
,DWORD
);
1466 UINT WINAPI
mixerSetControlDetails(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1468 #define MMIOERR_BASE 256
1469 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1470 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1471 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1472 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1473 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1474 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1475 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1476 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1477 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1478 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1480 #define CFSEPCHAR '+' /* compound file name separator char. */
1482 typedef DWORD FOURCC
; /* a four character code */
1483 typedef LONG (CALLBACK
*LPMMIOPROC16
)(LPSTR lpmmioinfo
, UINT16 uMessage
,
1484 LPARAM lParam1
, LPARAM lParam2
);
1485 typedef LONG (CALLBACK
*LPMMIOPROC
)(LPSTR lpmmioinfo
, UINT uMessage
,
1486 LPARAM lParam1
, LPARAM lParam2
);
1489 DWORD dwFlags
; /* general status flags */
1490 FOURCC fccIOProc
; /* pointer to I/O procedure */
1491 LPMMIOPROC16 pIOProc
; /* pointer to I/O procedure */
1492 UINT16 wErrorRet
; /* place for error to be returned */
1493 HTASK16 htask
; /* alternate local task */
1494 /* fields maintained by MMIO functions during buffered I/O */
1495 LONG cchBuffer
; /* size of I/O buffer (or 0L) */
1496 HPSTR pchBuffer
; /* start of I/O buffer (or NULL) */
1497 HPSTR pchNext
; /* pointer to next byte to read/write */
1498 HPSTR pchEndRead
; /* pointer to last valid byte to read */
1499 HPSTR pchEndWrite
; /* pointer to last byte to write */
1500 LONG lBufOffset
; /* disk offset of start of buffer */
1501 /* fields maintained by I/O procedure */
1502 LONG lDiskOffset
; /* disk offset of next read or write */
1503 DWORD adwInfo
[3]; /* data specific to type of MMIOPROC */
1504 /* other fields maintained by MMIO */
1505 DWORD dwReserved1
; /* reserved for MMIO use */
1506 DWORD dwReserved2
; /* reserved for MMIO use */
1507 HMMIO16 hmmio
; /* handle to open file */
1508 } MMIOINFO16
, *LPMMIOINFO16
;
1516 /* fields maintained by MMIO functions during buffered I/O */
1523 /* fields maintained by I/O procedure */
1526 /* other fields maintained by MMIO */
1530 } MMIOINFO
, *PMMIOINFO
, *LPMMIOINFO
;
1533 typedef struct _MMCKINFO
1535 FOURCC ckid
; /* chunk ID */
1536 DWORD cksize
; /* chunk size */
1537 FOURCC fccType
; /* form type or list type */
1538 DWORD dwDataOffset
; /* offset of data portion of chunk */
1539 DWORD dwFlags
; /* flags used by MMIO functions */
1540 } MMCKINFO
, *LPMMCKINFO
;
1542 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1543 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1545 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1546 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1547 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1548 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1549 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1550 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1552 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1554 #define MMIO_READ 0x00000000 /* open file for reading only */
1555 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1556 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1558 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1559 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1560 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1561 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1562 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1564 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1565 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1566 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1567 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1568 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1569 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1570 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1571 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1572 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1573 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1574 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1575 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1581 #define MMIOM_READ MMIO_READ /* read */
1582 #define MMIOM_WRITE MMIO_WRITE /* write */
1583 #define MMIOM_SEEK 2 /* seek to a new position in file */
1584 #define MMIOM_OPEN 3 /* open file */
1585 #define MMIOM_CLOSE 4 /* close file */
1586 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1588 #define MMIOM_RENAME 6 /* rename specified file */
1590 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1592 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1593 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1595 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1596 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1598 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1600 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1601 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1602 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1604 LPMMIOPROC16 WINAPI
mmioInstallIOProc16(FOURCC
,LPMMIOPROC16
,DWORD
);
1605 LPMMIOPROC WINAPI
mmioInstallIOProcA(FOURCC
,LPMMIOPROC
,DWORD
);
1606 LPMMIOPROC WINAPI
mmioInstallIOProcW(FOURCC
,LPMMIOPROC
,DWORD
);
1607 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1609 FOURCC WINAPI
mmioStringToFOURCC16(LPCSTR
,UINT16
);
1610 FOURCC WINAPI
mmioStringToFOURCCA(LPCSTR
,UINT
);
1611 FOURCC WINAPI
mmioStringToFOURCCW(LPCWSTR
,UINT
);
1612 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1613 HMMIO16 WINAPI
mmioOpen16 (LPSTR
,MMIOINFO16
*,DWORD
);
1614 HMMIO WINAPI
mmioOpenA(LPSTR
,MMIOINFO
*,DWORD
);
1615 HMMIO WINAPI
mmioOpenW(LPWSTR
,MMIOINFO
*,DWORD
);
1616 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1618 UINT16 WINAPI
mmioRename16(LPCSTR szFileName
, LPCSTR szNewFileName
,
1619 MMIOINFO16
* lpmmioinfo
, DWORD dwRenameFlags
);
1620 UINT WINAPI
mmioRenameA(LPCSTR szFileName
, LPCSTR szNewFileName
,
1621 MMIOINFO
* lpmmioinfo
, DWORD dwRenameFlags
);
1622 UINT WINAPI
mmioRenameW(LPCWSTR szFileName
, LPCWSTR szNewFileName
,
1623 MMIOINFO
* lpmmioinfo
, DWORD dwRenameFlags
);
1624 #define mmioRename WINELIB_NAME_AW(mmioRename)
1626 MMRESULT16 WINAPI
mmioClose16(HMMIO16
,UINT16
);
1627 MMRESULT WINAPI
mmioClose(HMMIO
,UINT
);
1628 LONG WINAPI
mmioRead16(HMMIO16
,HPSTR
,LONG
);
1629 LONG WINAPI
mmioRead(HMMIO
,HPSTR
,LONG
);
1630 LONG WINAPI
mmioWrite16(HMMIO16
,HPCSTR
,LONG
);
1631 LONG WINAPI
mmioWrite(HMMIO
,HPCSTR
,LONG
);
1632 LONG WINAPI
mmioSeek16(HMMIO16
,LONG
,INT16
);
1633 LONG WINAPI
mmioSeek(HMMIO
,LONG
,INT
);
1634 MMRESULT16 WINAPI
mmioGetInfo16(HMMIO16
,MMIOINFO16
*,UINT16
);
1635 MMRESULT WINAPI
mmioGetInfo(HMMIO
,MMIOINFO
*,UINT
);
1636 MMRESULT16 WINAPI
mmioSetInfo16(HMMIO16
,const MMIOINFO16
*,UINT16
);
1637 MMRESULT WINAPI
mmioSetInfo(HMMIO
,const MMIOINFO
*,UINT
);
1638 UINT16 WINAPI
mmioSetBuffer16(HMMIO16
,LPSTR
,LONG
,UINT16
);
1639 UINT WINAPI
mmioSetBuffer(HMMIO
,LPSTR
,LONG
,UINT
);
1640 UINT16 WINAPI
mmioFlush16(HMMIO16
,UINT16
);
1641 UINT WINAPI
mmioFlush(HMMIO
,UINT
);
1642 UINT16 WINAPI
mmioAdvance16(HMMIO16
,MMIOINFO16
*,UINT16
);
1643 UINT WINAPI
mmioAdvance(HMMIO
,MMIOINFO
*,UINT
);
1644 LONG WINAPI
mmioSendMessage(HMMIO16
,UINT16
,LPARAM
,LPARAM
);
1645 UINT16 WINAPI
mmioDescend(HMMIO16
,MMCKINFO
*,const MMCKINFO
*,UINT16
);
1647 UINT16 WINAPI
mmioAscend16(HMMIO16
,MMCKINFO
*,UINT16
);
1648 UINT WINAPI
mmioAscend(HMMIO
,MMCKINFO
*,UINT
);
1649 UINT16 WINAPI
mmioCreateChunk16(HMMIO16
,MMCKINFO
*,UINT16
);
1650 UINT WINAPI
mmioCreateChunk(HMMIO
,MMCKINFO
*,UINT
);
1652 typedef UINT16 (CALLBACK
*YIELDPROC
)(UINT16
,DWORD
);
1654 DWORD WINAPI
mciSendCommand16(UINT16
,UINT16
,DWORD
,DWORD
);
1655 DWORD WINAPI
mciSendCommandA(UINT
,UINT
,DWORD
,DWORD
);
1656 DWORD WINAPI
mciSendCommandW(UINT
,UINT
,DWORD
,DWORD
);
1657 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1659 DWORD WINAPI
mciSendString16(LPCSTR
,LPSTR
,UINT16
,HWND16
);
1660 DWORD WINAPI
mciSendStringA(LPCSTR
,LPSTR
,UINT
,HWND
);
1661 DWORD WINAPI
mciSendStringW(LPCWSTR
,LPSTR
,UINT
,HWND
);
1662 #define mciSendString WINELIB_NAME_AW(mciSendString)
1664 UINT16 WINAPI
mciGetDeviceID16(LPCSTR
);
1665 UINT WINAPI
mciGetDeviceIDA(LPCSTR
);
1666 UINT WINAPI
mciGetDeviceIDW(LPCWSTR
);
1667 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1669 UINT16 WINAPI
mciGetDeviceIDFromElementID16(DWORD
,LPCSTR
);
1671 BOOL16 WINAPI
mciGetErrorString16 (DWORD
,LPSTR
,UINT16
);
1672 BOOL WINAPI
mciGetErrorStringA(DWORD
,LPSTR
,UINT
);
1673 BOOL WINAPI
mciGetErrorStringW(DWORD
,LPWSTR
,UINT
);
1674 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1676 BOOL16 WINAPI
mciSetYieldProc16(UINT16
,YIELDPROC
,DWORD
);
1677 BOOL WINAPI
mciSetYieldProc(UINT
,YIELDPROC
,DWORD
);
1679 HTASK16 WINAPI
mciGetCreatorTask16(UINT16
);
1680 HTASK WINAPI
mciGetCreatorTask(UINT
);
1682 YIELDPROC WINAPI
mciGetYieldProc16(UINT16
,DWORD
*);
1683 YIELDPROC WINAPI
mciGetYieldProc(UINT
,DWORD
*);
1685 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1686 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1687 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1688 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1689 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1690 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1691 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1692 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1693 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1694 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1695 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1696 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1697 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1698 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1699 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1700 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1701 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1702 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1703 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1704 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1705 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1706 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1707 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1708 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1709 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1710 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1711 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1712 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1713 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1714 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1715 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1716 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1717 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1718 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1719 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1720 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1721 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1722 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1723 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1724 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1725 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1726 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1727 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1728 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1729 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1730 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1731 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1732 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1733 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1734 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1735 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1736 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1738 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1739 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1740 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1741 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1742 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1743 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1744 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1745 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1746 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1747 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1749 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1750 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1751 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1752 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1753 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1754 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1755 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1756 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1758 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1759 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1760 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1761 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1763 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1765 #define MCI_OPEN_DRIVER 0x0801
1766 #define MCI_CLOSE_DRIVER 0x0802
1767 #define MCI_OPEN 0x0803
1768 #define MCI_CLOSE 0x0804
1769 #define MCI_ESCAPE 0x0805
1770 #define MCI_PLAY 0x0806
1771 #define MCI_SEEK 0x0807
1772 #define MCI_STOP 0x0808
1773 #define MCI_PAUSE 0x0809
1774 #define MCI_INFO 0x080A
1775 #define MCI_GETDEVCAPS 0x080B
1776 #define MCI_SPIN 0x080C
1777 #define MCI_SET 0x080D
1778 #define MCI_STEP 0x080E
1779 #define MCI_RECORD 0x080F
1780 #define MCI_SYSINFO 0x0810
1781 #define MCI_BREAK 0x0811
1782 #define MCI_SOUND 0x0812
1783 #define MCI_SAVE 0x0813
1784 #define MCI_STATUS 0x0814
1785 #define MCI_CUE 0x0830
1786 #define MCI_REALIZE 0x0840
1787 #define MCI_WINDOW 0x0841
1788 #define MCI_PUT 0x0842
1789 #define MCI_WHERE 0x0843
1790 #define MCI_FREEZE 0x0844
1791 #define MCI_UNFREEZE 0x0845
1792 #define MCI_LOAD 0x0850
1793 #define MCI_CUT 0x0851
1794 #define MCI_COPY 0x0852
1795 #define MCI_PASTE 0x0853
1796 #define MCI_UPDATE 0x0854
1797 #define MCI_RESUME 0x0855
1798 #define MCI_DELETE 0x0856
1800 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1802 #define MCI_ALL_DEVICE_ID 0xFFFF
1804 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1805 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1806 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1807 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1808 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1809 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1810 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1811 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1812 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1813 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1814 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1816 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1817 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1819 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1820 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1821 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1822 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1823 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1824 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1825 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1827 #define MCI_FORMAT_MILLISECONDS 0
1828 #define MCI_FORMAT_HMS 1
1829 #define MCI_FORMAT_MSF 2
1830 #define MCI_FORMAT_FRAMES 3
1831 #define MCI_FORMAT_SMPTE_24 4
1832 #define MCI_FORMAT_SMPTE_25 5
1833 #define MCI_FORMAT_SMPTE_30 6
1834 #define MCI_FORMAT_SMPTE_30DROP 7
1835 #define MCI_FORMAT_BYTES 8
1836 #define MCI_FORMAT_SAMPLES 9
1837 #define MCI_FORMAT_TMSF 10
1839 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1840 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1841 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1843 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1845 (((DWORD)(BYTE)(f))<<16)))
1847 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1848 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1849 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1850 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1852 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1854 (((DWORD)(BYTE)(s) | \
1855 ((WORD)(f)<<8))<<16)))
1857 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1858 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1859 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1861 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1863 (((DWORD)(BYTE)(s))<<16)))
1865 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1866 #define MCI_NOTIFY_SUPERSEDED 0x0002
1867 #define MCI_NOTIFY_ABORTED 0x0004
1868 #define MCI_NOTIFY_FAILURE 0x0008
1870 #define MCI_NOTIFY 0x00000001L
1871 #define MCI_WAIT 0x00000002L
1872 #define MCI_FROM 0x00000004L
1873 #define MCI_TO 0x00000008L
1874 #define MCI_TRACK 0x00000010L
1876 #define MCI_OPEN_SHAREABLE 0x00000100L
1877 #define MCI_OPEN_ELEMENT 0x00000200L
1878 #define MCI_OPEN_ALIAS 0x00000400L
1879 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1880 #define MCI_OPEN_TYPE_ID 0x00001000L
1881 #define MCI_OPEN_TYPE 0x00002000L
1883 #define MCI_SEEK_TO_START 0x00000100L
1884 #define MCI_SEEK_TO_END 0x00000200L
1886 #define MCI_STATUS_ITEM 0x00000100L
1887 #define MCI_STATUS_START 0x00000200L
1889 #define MCI_STATUS_LENGTH 0x00000001L
1890 #define MCI_STATUS_POSITION 0x00000002L
1891 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1892 #define MCI_STATUS_MODE 0x00000004L
1893 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1894 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1895 #define MCI_STATUS_READY 0x00000007L
1896 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1898 #define MCI_INFO_PRODUCT 0x00000100L
1899 #define MCI_INFO_FILE 0x00000200L
1901 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1903 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1904 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1905 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1906 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1907 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1908 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1909 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1910 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1911 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1913 #define MCI_SYSINFO_QUANTITY 0x00000100L
1914 #define MCI_SYSINFO_OPEN 0x00000200L
1915 #define MCI_SYSINFO_NAME 0x00000400L
1916 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1918 #define MCI_SET_DOOR_OPEN 0x00000100L
1919 #define MCI_SET_DOOR_CLOSED 0x00000200L
1920 #define MCI_SET_TIME_FORMAT 0x00000400L
1921 #define MCI_SET_AUDIO 0x00000800L
1922 #define MCI_SET_VIDEO 0x00001000L
1923 #define MCI_SET_ON 0x00002000L
1924 #define MCI_SET_OFF 0x00004000L
1926 #define MCI_SET_AUDIO_ALL 0x00000000L
1927 #define MCI_SET_AUDIO_LEFT 0x00000001L
1928 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1930 #define MCI_BREAK_KEY 0x00000100L
1931 #define MCI_BREAK_HWND 0x00000200L
1932 #define MCI_BREAK_OFF 0x00000400L
1934 #define MCI_RECORD_INSERT 0x00000100L
1935 #define MCI_RECORD_OVERWRITE 0x00000200L
1937 #define MCI_SOUND_NAME 0x00000100L
1939 #define MCI_SAVE_FILE 0x00000100L
1941 #define MCI_LOAD_FILE 0x00000100L
1945 } MCI_GENERIC_PARMS
, *LPMCI_GENERIC_PARMS
;
1951 LPSTR lpstrDeviceType
;
1952 LPSTR lpstrElementName
;
1954 } MCI_OPEN_PARMS16
, *LPMCI_OPEN_PARMS16
;
1958 MCIDEVICEID wDeviceID
;
1959 LPSTR lpstrDeviceType
;
1960 LPSTR lpstrElementName
;
1962 } MCI_OPEN_PARMSA
, *LPMCI_OPEN_PARMSA
;
1966 MCIDEVICEID wDeviceID
;
1967 LPWSTR lpstrDeviceType
;
1968 LPWSTR lpstrElementName
;
1970 } MCI_OPEN_PARMSW
, *LPMCI_OPEN_PARMSW
;
1972 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS
)
1973 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS
)
1979 } MCI_PLAY_PARMS
, *LPMCI_PLAY_PARMS
;
1984 } MCI_SEEK_PARMS
, *LPMCI_SEEK_PARMS
;
1991 } MCI_STATUS_PARMS
, *LPMCI_STATUS_PARMS
;
1997 } MCI_INFO_PARMS16
, *LPMCI_INFO_PARMS16
;
2003 } MCI_INFO_PARMSA
, *LPMCI_INFO_PARMSA
;
2009 } MCI_INFO_PARMSW
, *LPMCI_INFO_PARMSW
;
2011 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS
)
2012 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS
)
2018 } MCI_GETDEVCAPS_PARMS
, *LPMCI_GETDEVCAPS_PARMS
;
2027 } MCI_SYSINFO_PARMS16
, *LPMCI_SYSINFO_PARMS16
;
2035 } MCI_SYSINFO_PARMSA
, *LPMCI_SYSINFO_PARMSA
;
2043 } MCI_SYSINFO_PARMSW
, *LPMCI_SYSINFO_PARMSW
;
2045 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS
)
2046 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS
)
2052 } MCI_SET_PARMS
, *LPMCI_SET_PARMS
;
2060 } MCI_BREAK_PARMS16
, *LPMCI_BREAK_PARMS16
;
2066 } MCI_BREAK_PARMS
, *LPMCI_BREAK_PARMS
;
2071 LPCSTR lpstrSoundName
;
2072 } MCI_SOUND_PARMS
, *LPMCI_SOUND_PARMS
;
2077 } MCI_SAVE_PARMS
, *LPMCI_SAVE_PARMS
;
2082 } MCI_LOAD_PARMS16
, *LPMCI_LOAD_PARMS16
;
2087 } MCI_LOAD_PARMSA
, *LPMCI_LOAD_PARMSA
;
2092 } MCI_LOAD_PARMSW
, *LPMCI_LOAD_PARMSW
;
2094 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS
)
2095 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS
)
2101 } MCI_RECORD_PARMS
, *LPMCI_RECORD_PARMS
;
2103 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
2105 #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
2106 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
2108 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2110 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2111 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2112 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2114 #define MCI_VD_FORMAT_TRACK 0x4001
2116 #define MCI_VD_PLAY_REVERSE 0x00010000L
2117 #define MCI_VD_PLAY_FAST 0x00020000L
2118 #define MCI_VD_PLAY_SPEED 0x00040000L
2119 #define MCI_VD_PLAY_SCAN 0x00080000L
2120 #define MCI_VD_PLAY_SLOW 0x00100000L
2122 #define MCI_VD_SEEK_REVERSE 0x00010000L
2124 #define MCI_VD_STATUS_SPEED 0x00004002L
2125 #define MCI_VD_STATUS_FORWARD 0x00004003L
2126 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2127 #define MCI_VD_STATUS_SIDE 0x00004005L
2128 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2130 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2131 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2133 #define MCI_VD_SPIN_UP 0x00010000L
2134 #define MCI_VD_SPIN_DOWN 0x00020000L
2136 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2137 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2138 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2139 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2141 #define MCI_VD_STEP_FRAMES 0x00010000L
2142 #define MCI_VD_STEP_REVERSE 0x00020000L
2144 #define MCI_VD_ESCAPE_STRING 0x00000100L
2151 } MCI_VD_PLAY_PARMS
, *LPMCI_VD_PLAY_PARMS
;
2156 } MCI_VD_STEP_PARMS
, *LPMCI_VD_STEP_PARMS
;
2160 LPCSTR lpstrCommand
;
2161 } MCI_VD_ESCAPE_PARMS16
, *LPMCI_VD_ESCAPE_PARMS16
;
2165 LPCSTR lpstrCommand
;
2166 } MCI_VD_ESCAPE_PARMSA
, *LPMCI_VD_ESCAPE_PARMSA
;
2170 LPCWSTR lpstrCommand
;
2171 } MCI_VD_ESCAPE_PARMSW
, *LPMCI_VD_ESCAPE_PARMSW
;
2173 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS
)
2174 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS
)
2176 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
2178 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
2179 #define MCI_WAVE_SET_CHANNELS 0x00020000L
2180 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2181 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2182 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2183 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2185 #define MCI_WAVE_INPUT 0x00400000L
2186 #define MCI_WAVE_OUTPUT 0x00800000L
2188 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2189 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2190 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2191 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2192 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2193 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2194 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
2196 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
2197 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2199 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2200 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2204 MCIDEVICEID16 wDeviceID
;
2206 SEGPTR lpstrDeviceType
;
2207 SEGPTR lpstrElementName
;
2209 DWORD dwBufferSeconds
;
2210 } MCI_WAVE_OPEN_PARMS16
, *LPMCI_WAVE_OPEN_PARMS16
;
2214 MCIDEVICEID wDeviceID
;
2215 LPCSTR lpstrDeviceType
;
2216 LPCSTR lpstrElementName
;
2218 DWORD dwBufferSeconds
;
2219 } MCI_WAVE_OPEN_PARMSA
, *LPMCI_WAVE_OPEN_PARMSA
;
2223 MCIDEVICEID wDeviceID
;
2224 LPCWSTR lpstrDeviceType
;
2225 LPCWSTR lpstrElementName
;
2227 DWORD dwBufferSeconds
;
2228 } MCI_WAVE_OPEN_PARMSW
, *LPMCI_WAVE_OPEN_PARMSW
;
2230 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS
)
2231 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS
)
2237 } MCI_WAVE_DELETE_PARMS
, *LPMCI_WAVE_DELETE_PARMS
;
2251 DWORD nSamplesPerSec
;
2252 DWORD nAvgBytesPerSec
;
2255 UINT16 wBitsPerSample
;
2257 } MCI_WAVE_SET_PARMS16
, * LPMCI_WAVE_SET_PARMS16
;
2267 DWORD nSamplesPerSec
;
2268 DWORD nAvgBytesPerSec
;
2270 UINT wBitsPerSample
;
2271 } MCI_WAVE_SET_PARMS
, * LPMCI_WAVE_SET_PARMS
;
2274 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2275 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2276 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2277 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2278 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2280 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2281 #define MCI_SEQ_FILE 0x4002
2282 #define MCI_SEQ_MIDI 0x4003
2283 #define MCI_SEQ_SMPTE 0x4004
2284 #define MCI_SEQ_NONE 65533
2286 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
2287 #define MCI_SEQ_STATUS_PORT 0x00004003L
2288 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
2289 #define MCI_SEQ_STATUS_MASTER 0x00004008L
2290 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
2291 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2293 #define MCI_SEQ_SET_TEMPO 0x00010000L
2294 #define MCI_SEQ_SET_PORT 0x00020000L
2295 #define MCI_SEQ_SET_SLAVE 0x00040000L
2296 #define MCI_SEQ_SET_MASTER 0x00080000L
2297 #define MCI_SEQ_SET_OFFSET 0x01000000L
2308 } MCI_SEQ_SET_PARMS
, *LPMCI_SEQ_SET_PARMS
;
2310 #define MCI_ANIM_OPEN_WS 0x00010000L
2311 #define MCI_ANIM_OPEN_PARENT 0x00020000L
2312 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2314 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2315 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2316 #define MCI_ANIM_PLAY_FAST 0x00040000L
2317 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2318 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2320 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2321 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2323 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2324 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2325 #define MCI_ANIM_STATUS_HWND 0x00004003L
2326 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2327 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2329 #define MCI_ANIM_INFO_TEXT 0x00010000L
2331 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2332 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2333 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2334 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2335 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2336 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2337 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2339 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2340 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2342 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2343 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2344 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2345 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2346 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2348 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2350 #define MCI_ANIM_RECT 0x00010000L
2351 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2352 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2354 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2355 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2357 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2363 SEGPTR lpstrDeviceType
;
2364 SEGPTR lpstrElementName
;
2369 } MCI_ANIM_OPEN_PARMS16
, *LPMCI_ANIM_OPEN_PARMS16
;
2373 MCIDEVICEID wDeviceID
;
2374 LPCSTR lpstrDeviceType
;
2375 LPCSTR lpstrElementName
;
2379 } MCI_ANIM_OPEN_PARMSA
, *LPMCI_ANIM_OPEN_PARMSA
;
2383 MCIDEVICEID wDeviceID
;
2384 LPCWSTR lpstrDeviceType
;
2385 LPCWSTR lpstrElementName
;
2389 } MCI_ANIM_OPEN_PARMSW
, *LPMCI_ANIM_OPEN_PARMSW
;
2391 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS
)
2392 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS
)
2399 } MCI_ANIM_PLAY_PARMS
, *LPMCI_ANIM_PLAY_PARMS
;
2404 } MCI_ANIM_STEP_PARMS
, *LPMCI_ANIM_STEP_PARMS
;
2413 } MCI_ANIM_WINDOW_PARMS16
, *LPMCI_ANIM_WINDOW_PARMS16
;
2420 } MCI_ANIM_WINDOW_PARMSA
, *LPMCI_ANIM_WINDOW_PARMSA
;
2427 } MCI_ANIM_WINDOW_PARMSW
, *LPMCI_ANIM_WINDOW_PARMSW
;
2429 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS
)
2430 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS
)
2434 #ifdef MCI_USE_OFFEXT
2437 #else /* ifdef MCI_USE_OFFEXT */
2439 #endif /* ifdef MCI_USE_OFFEXT */
2440 } MCI_ANIM_RECT_PARMS16
, *LPMCI_ANIM_RECT_PARMS16
;
2444 #ifdef MCI_USE_OFFEXT
2447 #else /* ifdef MCI_USE_OFFEXT */
2449 #endif /* ifdef MCI_USE_OFFEXT */
2450 } MCI_ANIM_RECT_PARMS
, *LPMCI_ANIM_RECT_PARMS
;
2457 } MCI_ANIM_UPDATE_PARMS16
, *LPMCI_ANIM_UPDATE_PARMS16
;
2463 } MCI_ANIM_UPDATE_PARMS
, *LPMCI_ANIM_UPDATE_PARMS
;
2466 #define MCI_OVLY_OPEN_WS 0x00010000L
2467 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2469 #define MCI_OVLY_STATUS_HWND 0x00004001L
2470 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2472 #define MCI_OVLY_INFO_TEXT 0x00010000L
2474 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2475 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2476 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2478 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2479 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2480 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2481 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2482 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2484 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2486 #define MCI_OVLY_RECT 0x00010000L
2487 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2488 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2489 #define MCI_OVLY_PUT_FRAME 0x00080000L
2490 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2492 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2493 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2494 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2495 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2499 MCIDEVICEID16 wDeviceID
;
2501 LPCSTR lpstrDeviceType
;
2502 LPCSTR lpstrElementName
;
2507 } MCI_OVLY_OPEN_PARMS16
, *LPMCI_OVLY_OPEN_PARMS16
;
2511 MCIDEVICEID wDeviceID
;
2512 LPCSTR lpstrDeviceType
;
2513 LPCSTR lpstrElementName
;
2517 } MCI_OVLY_OPEN_PARMSA
, *LPMCI_OVLY_OPEN_PARMSA
;
2521 MCIDEVICEID wDeviceID
;
2522 LPCWSTR lpstrDeviceType
;
2523 LPCWSTR lpstrElementName
;
2527 } MCI_OVLY_OPEN_PARMSW
, *LPMCI_OVLY_OPEN_PARMSW
;
2529 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS
)
2530 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS
)
2539 } MCI_OVLY_WINDOW_PARMS16
, *LPMCI_OVLY_WINDOW_PARMS16
;
2546 } MCI_OVLY_WINDOW_PARMSA
, *LPMCI_OVLY_WINDOW_PARMSA
;
2553 } MCI_OVLY_WINDOW_PARMSW
, *LPMCI_OVLY_WINDOW_PARMSW
;
2555 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS
)
2556 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS
)
2560 #ifdef MCI_USE_OFFEXT
2563 #else /* ifdef MCI_USE_OFFEXT */
2565 #endif /* ifdef MCI_USE_OFFEXT */
2566 } MCI_OVLY_RECT_PARMS16
, *LPMCI_OVLY_RECT_PARMS16
;
2570 #ifdef MCI_USE_OFFEXT
2573 #else /* ifdef MCI_USE_OFFEXT */
2575 #endif /* ifdef MCI_USE_OFFEXT */
2576 } MCI_OVLY_RECT_PARMS
, *LPMCI_OVLY_RECT_PARMS
;
2583 } MCI_OVLY_SAVE_PARMS16
, *LPMCI_OVLY_SAVE_PARMS16
;
2589 } MCI_OVLY_SAVE_PARMSA
, *LPMCI_OVLY_SAVE_PARMSA
;
2595 } MCI_OVLY_SAVE_PARMSW
, *LPMCI_OVLY_SAVE_PARMSW
;
2597 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS
)
2598 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS
)
2604 } MCI_OVLY_LOAD_PARMS16
, *LPMCI_OVLY_LOAD_PARMS16
;
2610 } MCI_OVLY_LOAD_PARMSA
, *LPMCI_OVLY_LOAD_PARMSA
;
2616 } MCI_OVLY_LOAD_PARMSW
, *LPMCI_OVLY_LOAD_PARMSW
;
2618 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS
)
2619 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS
)
2621 #include "poppack.h"
2627 #endif /* __WINE_MMSYSTEM_H */