2 * MMSYSTEM - Multimedia Wine Extension ... :-)
5 #ifndef __WINE_MMSYSTEM_H
6 #define __WINE_MMSYSTEM_H
8 typedef LPSTR HPSTR
; /* a huge version of LPSTR */
9 typedef LPCSTR HPCSTR
; /* a huge version of LPCSTR */
13 #define MAXWAVEDRIVERS 10
14 #define MAXMIDIDRIVERS 10
15 #define MAXAUXDRIVERS 10
16 #define MAXMCIDRIVERS 32
17 #define MAXMIXERDRIVERS 10
19 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
20 #define MAXERRORLENGTH 128 /* max error text length (including NULL) */
21 #define MAX_JOYSTICKOEMVXDNAME 260
23 typedef WORD VERSION
; /* major (high byte), minor (low byte) */
25 typedef UINT16 MMVERSION16
;
26 typedef UINT32 MMVERSION32
;
27 DECL_WINELIB_TYPE(MMVERSION
)
28 typedef UINT16 MCIDEVICEID16
;
29 typedef UINT32 MCIDEVICEID32
;
30 DECL_WINELIB_TYPE(MCIDEVICEID
)
31 typedef UINT16 MMRESULT16
;
32 typedef UINT32 MMRESULT32
;
33 DECL_WINELIB_TYPE(MMRESULT
)
36 UINT16 wType
; /* indicates the contents of the union */
38 DWORD ms
; /* milliseconds */
39 DWORD sample
; /* samples */
40 DWORD cb
; /* byte count */
42 BYTE hour
; /* hours */
43 BYTE min
; /* minutes */
44 BYTE sec
; /* seconds */
45 BYTE frame
; /* frames */
46 BYTE fps
; /* frames per second */
50 DWORD songptrpos
; /* song pointer position */
53 } MMTIME16
, *LPMMTIME16
;
74 } MMTIME32
, *LPMMTIME32
;
75 DECL_WINELIB_TYPE(MMTIME
)
76 DECL_WINELIB_TYPE(LPMMTIME
)
78 #define TIME_MS 0x0001 /* time in milliseconds */
79 #define TIME_SAMPLES 0x0002 /* number of wave samples */
80 #define TIME_BYTES 0x0004 /* current byte offset */
81 #define TIME_SMPTE 0x0008 /* SMPTE time */
82 #define TIME_MIDI 0x0010 /* MIDI time */
84 #define MM_JOY1MOVE 0x3A0 /* joystick */
85 #define MM_JOY2MOVE 0x3A1
86 #define MM_JOY1ZMOVE 0x3A2
87 #define MM_JOY2ZMOVE 0x3A3
88 #define MM_JOY1BUTTONDOWN 0x3B5
89 #define MM_JOY2BUTTONDOWN 0x3B6
90 #define MM_JOY1BUTTONUP 0x3B7
91 #define MM_JOY2BUTTONUP 0x3B8
93 #define MM_MCINOTIFY 0x3B9 /* MCI */
95 #define MM_WOM_OPEN 0x3BB /* waveform output */
96 #define MM_WOM_CLOSE 0x3BC
97 #define MM_WOM_DONE 0x3BD
99 #define MM_WIM_OPEN 0x3BE /* waveform input */
100 #define MM_WIM_CLOSE 0x3BF
101 #define MM_WIM_DATA 0x3C0
103 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
104 #define MM_MIM_CLOSE 0x3C2
105 #define MM_MIM_DATA 0x3C3
106 #define MM_MIM_LONGDATA 0x3C4
107 #define MM_MIM_ERROR 0x3C5
108 #define MM_MIM_LONGERROR 0x3C6
110 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
111 #define MM_MOM_CLOSE 0x3C8
112 #define MM_MOM_DONE 0x3C9
115 #define MMSYSERR_BASE 0
116 #define WAVERR_BASE 32
117 #define MIDIERR_BASE 64
118 #define TIMERR_BASE 96
119 #define JOYERR_BASE 160
120 #define MCIERR_BASE 256
122 #define MCI_STRING_OFFSET 512
123 #define MCI_VD_OFFSET 1024
124 #define MCI_CD_OFFSET 1088
125 #define MCI_WAVE_OFFSET 1152
126 #define MCI_SEQ_OFFSET 1216
128 #define MMSYSERR_NOERROR 0 /* no error */
129 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
130 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
131 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
132 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
133 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
134 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
135 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
136 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
137 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
138 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
139 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
140 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
142 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
143 #define CALLBACK_NULL 0x00000000l /* no callback */
144 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
145 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
146 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
147 #define CALLBACK_FUNC32 0x00070000l /* (ugly hack) 32-bit FARPROC */
148 #define CALLBACK32CONV(x) ((((x)&CALLBACK_TYPEMASK)==CALLBACK_FUNCTION) ? \
149 (((x)&~CALLBACK_TYPEMASK)|CALLBACK_FUNC32) : (x))
151 typedef void (CALLBACK
*LPDRVCALLBACK16
) (HDRVR16 h
, UINT16 uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
152 typedef void (CALLBACK
*LPDRVCALLBACK32
) (HDRVR32 h
, UINT32 uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
153 DECL_WINELIB_TYPE(LPDRVCALLBACK
)
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 UINT32 WINAPI
mmsystemGetVersion32(void);
176 #define mmsystemGetVersion WINELIB_NAME(mmsystemGetVersion)
177 BOOL16 WINAPI
sndPlaySound(LPCSTR lpszSoundName
, UINT16 uFlags
);
178 BOOL32 WINAPI
PlaySound32A(LPCSTR pszSound
, HMODULE32 hmod
, DWORD fdwSound
);
179 BOOL32 WINAPI
PlaySound32W(LPCWSTR pszSound
, HMODULE32 hmod
, DWORD fdwSound
);
180 #define PlaySound WINELIB_NAME_AW(PlaySound)
182 #define SND_SYNC 0x0000 /* play synchronously (default) */
183 #define SND_ASYNC 0x0001 /* play asynchronously */
184 #define SND_NODEFAULT 0x0002 /* don't use default sound */
185 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
186 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
187 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
189 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
190 #define SND_ALIAS 0x00010000L /* name is a registry alias */
191 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
192 #define SND_FILENAME 0x00020000L /* name is file name */
193 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
194 #define SND_PURGE 0x00000040L /* purge all sounds */
196 /* waveform audio error return values */
197 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
198 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
199 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
200 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
201 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
203 typedef HWAVEIN16
*LPHWAVEIN16
;
204 typedef HWAVEOUT16
*LPHWAVEOUT16
;
205 typedef LPDRVCALLBACK16 LPWAVECALLBACK16
;
206 typedef LPDRVCALLBACK32 LPWAVECALLBACK32
;
207 DECL_WINELIB_TYPE(LPWAVECALLBACK
)
208 typedef HMIXER16
*LPHMIXER16
;
209 typedef HMIXER32
*LPHMIXER32
;
211 #define WOM_OPEN MM_WOM_OPEN
212 #define WOM_CLOSE MM_WOM_CLOSE
213 #define WOM_DONE MM_WOM_DONE
214 #define WIM_OPEN MM_WIM_OPEN
215 #define WIM_CLOSE MM_WIM_CLOSE
216 #define WIM_DATA MM_WIM_DATA
218 #define WAVE_MAPPER (-1)
220 #define WAVE_FORMAT_QUERY 0x0001
221 #define WAVE_ALLOWSYNC 0x0002
223 typedef struct wavehdr_tag
{
224 LPSTR lpData
; /* pointer to locked data buffer */
225 DWORD dwBufferLength
; /* length of data buffer */
226 DWORD dwBytesRecorded
;/* used for input only */
227 DWORD dwUser
; /* for client's use */
228 DWORD dwFlags
; /* assorted flags (see defines) */
229 DWORD dwLoops
; /* loop control counter */
231 struct wavehdr_tag
*lpNext
; /* reserved for driver */
232 DWORD reserved
; /* reserved for driver */
233 } WAVEHDR
, *LPWAVEHDR
;
235 #define WHDR_DONE 0x00000001 /* done bit */
236 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
237 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
238 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
239 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
242 WORD wMid
; /* manufacturer ID */
243 WORD wPid
; /* product ID */
244 MMVERSION16 vDriverVersion
; /* version of the driver */
245 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
246 DWORD dwFormats
; /* formats supported */
247 WORD wChannels
; /* number of sources supported */
248 DWORD dwSupport
; /* functionality supported by driver */
249 } WAVEOUTCAPS16
, *LPWAVEOUTCAPS16
;
252 WORD wMid
; /* manufacturer ID */
253 WORD wPid
; /* product ID */
254 MMVERSION32 vDriverVersion
; /* version of the driver */
255 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
256 DWORD dwFormats
; /* formats supported */
257 WORD wChannels
; /* number of sources supported */
258 WORD wReserved1
; /* padding */
259 DWORD dwSupport
; /* functionality supported by driver */
260 } WAVEOUTCAPS32A
, *LPWAVEOUTCAPS32A
;
263 WORD wMid
; /* manufacturer ID */
264 WORD wPid
; /* product ID */
265 MMVERSION32 vDriverVersion
; /* version of the driver */
266 WCHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
267 DWORD dwFormats
; /* formats supported */
268 WORD wChannels
; /* number of sources supported */
269 WORD wReserved1
; /* padding */
270 DWORD dwSupport
; /* functionality supported by driver */
271 } WAVEOUTCAPS32W
, *LPWAVEOUTCAPS32W
;
272 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS
)
273 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS
)
275 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
276 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
277 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
278 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
279 #define WAVECAPS_SYNC 0x0010
282 WORD wMid
; /* manufacturer ID */
283 WORD wPid
; /* product ID */
284 MMVERSION16 vDriverVersion
; /* version of the driver */
285 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
286 DWORD dwFormats
; /* formats supported */
287 WORD wChannels
; /* number of channels supported */
288 } WAVEINCAPS16
, *LPWAVEINCAPS16
;
291 WORD wMid
; /* manufacturer ID */
292 WORD wPid
; /* product ID */
293 MMVERSION32 vDriverVersion
; /* version of the driver */
294 CHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
295 DWORD dwFormats
; /* formats supported */
296 WORD wChannels
; /* number of channels supported */
298 } WAVEINCAPS32A
, *LPWAVEINCAPS32A
;
300 WORD wMid
; /* manufacturer ID */
301 WORD wPid
; /* product ID */
302 MMVERSION32 vDriverVersion
; /* version of the driver */
303 WCHAR szPname
[MAXPNAMELEN
]; /* product name (0 terminated string) */
304 DWORD dwFormats
; /* formats supported */
305 WORD wChannels
; /* number of channels supported */
307 } WAVEINCAPS32W
, *LPWAVEINCAPS32W
;
308 DECL_WINELIB_TYPE_AW(WAVEINCAPS
)
309 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS
)
311 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
312 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
313 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
314 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
315 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
316 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
317 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
318 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
319 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
320 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
321 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
322 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
323 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
325 /* General format structure common to all formats, same for Win16 and Win32 */
327 WORD wFormatTag
; /* format type */
328 WORD nChannels
; /* number of channels */
329 DWORD nSamplesPerSec
; /* sample rate */
330 DWORD nAvgBytesPerSec
;/* for buffer estimation */
331 WORD nBlockAlign
; /* block size of data */
332 } WAVEFORMAT
, *LPWAVEFORMAT
;
334 #define WAVE_FORMAT_PCM 1
339 } PCMWAVEFORMAT
, *LPPCMWAVEFORMAT
;
341 /* dito same for Win16 / Win32 */
343 WORD wFormatTag
; /* format type */
344 WORD nChannels
; /* number of channels (i.e. mono, stereo...) */
345 DWORD nSamplesPerSec
; /* sample rate */
346 DWORD nAvgBytesPerSec
;/* for buffer estimation */
347 WORD nBlockAlign
; /* block size of data */
348 WORD wBitsPerSample
; /* number of bits per sample of mono data */
349 WORD cbSize
; /* the count in bytes of the size of */
350 /* extra information (after cbSize) */
351 } WAVEFORMATEX
,*LPWAVEFORMATEX
;
353 UINT16 WINAPI
waveOutGetNumDevs16();
354 UINT32 WINAPI
waveOutGetNumDevs32();
355 #define waveOutGetNumDevs WINELIB_NAME(waveOutGetNumDevs)
356 UINT16 WINAPI
waveOutGetDevCaps16(UINT16
,LPWAVEOUTCAPS16
,UINT16
);
357 UINT32 WINAPI
waveOutGetDevCaps32A(UINT32
,LPWAVEOUTCAPS32A
,UINT32
);
358 UINT32 WINAPI
waveOutGetDevCaps32W(UINT32
,LPWAVEOUTCAPS32W
,UINT32
);
359 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
360 UINT16 WINAPI
waveOutGetVolume16(UINT16
,DWORD
*);
361 UINT32 WINAPI
waveOutGetVolume32(UINT32
,DWORD
*);
362 #define waveOutGetVolume WINELIB_NAME(waveOutGetVolume)
363 UINT16 WINAPI
waveOutSetVolume16(UINT16
,DWORD
);
364 UINT32 WINAPI
waveOutSetVolume32(UINT32
,DWORD
);
365 #define waveOutSetVolume WINELIB_NAME(waveOutSetVolume)
366 UINT16 WINAPI
waveOutGetErrorText16(UINT16
,LPSTR
,UINT16
);
367 UINT32 WINAPI
waveOutGetErrorText32A(UINT32
,LPSTR
,UINT32
);
368 UINT32 WINAPI
waveOutGetErrorText32W(UINT32
,LPWSTR
,UINT32
);
369 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
370 UINT16 WINAPI
waveOutOpen16(HWAVEOUT16
*,UINT16
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
371 UINT32 WINAPI
waveOutOpen32(HWAVEOUT32
*,UINT32
,const LPWAVEFORMATEX
,DWORD
,DWORD
,DWORD
);
372 #define waveOutOpen WINELIB_NAME(waveOutOpen)
373 UINT16 WINAPI
waveOutClose16(HWAVEOUT16
);
374 UINT32 WINAPI
waveOutClose32(HWAVEOUT32
);
375 #define waveOutClose WINELIB_NAME(waveOutClose)
376 UINT16 WINAPI
waveOutPrepareHeader16(HWAVEOUT16
,WAVEHDR
*,UINT16
);
377 UINT32 WINAPI
waveOutPrepareHeader32(HWAVEOUT32
,WAVEHDR
*,UINT32
);
378 #define waveOutPrepareHeader WINELIB_NAME(waveOutPrepareHeader)
379 UINT16 WINAPI
waveOutUnprepareHeader16(HWAVEOUT16
,WAVEHDR
*,UINT16
);
380 UINT32 WINAPI
waveOutUnprepareHeader32(HWAVEOUT32
,WAVEHDR
*,UINT32
);
381 #define waveOutUnprepareHeader WINELIB_NAME(waveOutUnprepareHeader)
382 UINT16 WINAPI
waveOutWrite16(HWAVEOUT16
,WAVEHDR
*,UINT16
);
383 UINT32 WINAPI
waveOutWrite32(HWAVEOUT32
,WAVEHDR
*,UINT32
);
384 #define waveOutWrite WINELIB_NAME(waveOutWrite)
385 UINT16 WINAPI
waveOutPause16(HWAVEOUT16
);
386 UINT32 WINAPI
waveOutPause32(HWAVEOUT32
);
387 #define waveOutPause WINELIB_NAME(waveOutPause)
388 UINT16 WINAPI
waveOutRestart16(HWAVEOUT16
);
389 UINT32 WINAPI
waveOutRestart32(HWAVEOUT32
);
390 #define waveOutRestart WINELIB_NAME(waveOutRestart)
391 UINT16 WINAPI
waveOutReset16(HWAVEOUT16
);
392 UINT32 WINAPI
waveOutReset32(HWAVEOUT32
);
393 #define waveOutReset WINELIB_NAME(waveOutReset)
394 UINT16 WINAPI
waveOutBreakLoop16(HWAVEOUT16
);
395 UINT32 WINAPI
waveOutBreakLoop32(HWAVEOUT32
);
396 #define waveOutBreakLoop WINELIB_NAME(waveOutBreakLoop)
397 UINT16 WINAPI
waveOutGetPosition16(HWAVEOUT16
,LPMMTIME16
,UINT16
);
398 UINT32 WINAPI
waveOutGetPosition32(HWAVEOUT32
,LPMMTIME32
,UINT32
);
399 #define waveOutGetPosition WINELIB_NAME(waveOutGetPosition)
400 UINT16 WINAPI
waveOutGetPitch16(HWAVEOUT16
,DWORD
*);
401 UINT32 WINAPI
waveOutGetPitch32(HWAVEOUT32
,DWORD
*);
402 #define waveOutGetPitch WINELIB_NAME(waveOutGetPitch)
403 UINT16 WINAPI
waveOutSetPitch16(HWAVEOUT16
,DWORD
);
404 UINT32 WINAPI
waveOutSetPitch32(HWAVEOUT32
,DWORD
);
405 #define waveOutSetPitch WINELIB_NAME(waveOutSetPitch)
406 UINT16 WINAPI
waveOutGetPlaybackRate16(HWAVEOUT16
,DWORD
*);
407 UINT32 WINAPI
waveOutGetPlaybackRate32(HWAVEOUT32
,DWORD
*);
408 #define waveOutGetPlaybackRate WINELIB_NAME(waveOutGetPlaybackRate)
409 UINT16 WINAPI
waveOutSetPlaybackRate16(HWAVEOUT16
,DWORD
);
410 UINT32 WINAPI
waveOutSetPlaybackRate32(HWAVEOUT32
,DWORD
);
411 #define waveOutSetPlaybackRate WINELIB_NAME(waveOutSetPlaybackRate)
412 UINT16 WINAPI
waveOutGetID16(HWAVEOUT16
,UINT16
*);
413 UINT32 WINAPI
waveOutGetID32(HWAVEOUT32
,UINT32
*);
414 #define waveOutGetID WINELIB_NAME(waveOutGetID)
415 DWORD WINAPI
waveOutMessage16(HWAVEOUT16
,UINT16
,DWORD
,DWORD
);
416 DWORD WINAPI
waveOutMessage32(HWAVEOUT32
,UINT32
,DWORD
,DWORD
);
417 #define waveOutMessage WINELIB_NAME(waveOutMessage)
419 UINT16 WINAPI
waveInGetNumDevs16();
420 UINT32 WINAPI
waveInGetNumDevs32();
421 #define waveInGetNumDevs WINELIB_NAME(waveInGetNumDevs)
422 UINT16 WINAPI
waveInGetDevCaps16(UINT16
,LPWAVEINCAPS16
,UINT16
);
423 UINT32 WINAPI
waveInGetDevCaps32A(UINT32
,LPWAVEINCAPS32A
,UINT32
);
424 UINT32 WINAPI
waveInGetDevCaps32W(UINT32
,LPWAVEINCAPS32W
,UINT32
);
425 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
426 UINT16 WINAPI
waveInGetErrorText16(UINT16
,LPSTR
,UINT16
);
427 UINT32 WINAPI
waveInGetErrorText32A(UINT32
,LPSTR
,UINT32
);
428 UINT32 WINAPI
waveInGetErrorText32W(UINT32
,LPWSTR
,UINT32
);
429 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
430 UINT16 WINAPI
waveInOpen16(HWAVEIN16
*,UINT16
,const LPWAVEFORMAT
,DWORD
,DWORD
,DWORD
);
431 UINT32 WINAPI
waveInOpen32(HWAVEIN32
*,UINT32
,const LPWAVEFORMAT
,DWORD
,DWORD
,DWORD
);
432 #define waveInOpen WINELIB_NAME(waveInOpen)
433 UINT16 WINAPI
waveInClose16(HWAVEIN16
);
434 UINT32 WINAPI
waveInClose32(HWAVEIN32
);
435 #define waveInClose WINELIB_TYPE(waveInClose)
436 UINT16 WINAPI
waveInPrepareHeader16(HWAVEIN16
,WAVEHDR
*,UINT16
);
437 UINT32 WINAPI
waveInPrepareHeader32(HWAVEIN32
,WAVEHDR
*,UINT32
);
438 #define waveInPrepareHeader WINELIB_NAME(waveInPrepareHeader)
439 UINT16 WINAPI
waveInUnprepareHeader16(HWAVEIN16
,WAVEHDR
*,UINT16
);
440 UINT32 WINAPI
waveInUnprepareHeader32(HWAVEIN32
,WAVEHDR
*,UINT32
);
441 #define waveInUnprepareHeader WINELIB_NAME(waveInUnprepareHeader)
442 UINT16 WINAPI
waveInAddBuffer16(HWAVEIN16
,WAVEHDR
*,UINT16
);
443 UINT32 WINAPI
waveInAddBuffer32(HWAVEIN32
,WAVEHDR
*,UINT32
);
444 #define waveInAddBuffer WINELIB_NAME(waveInAddBuffer)
445 UINT16 WINAPI
waveInStart16(HWAVEIN16
);
446 UINT32 WINAPI
waveInStart32(HWAVEIN32
);
447 #define waveInStart WINELIB_NAME(waveInStart)
448 UINT16 WINAPI
waveInStop16(HWAVEIN16
);
449 UINT32 WINAPI
waveInStop32(HWAVEIN32
);
450 #define waveInStop WINELIB_NAME(waveInStop)
451 UINT16 WINAPI
waveInReset16(HWAVEIN16
);
452 UINT32 WINAPI
waveInReset32(HWAVEIN32
);
453 #define waveInReset WINELIB_NAME(waveInReset)
454 UINT16 WINAPI
waveInGetPosition16(HWAVEIN16
,LPMMTIME16
,UINT16
);
455 UINT32 WINAPI
waveInGetPosition32(HWAVEIN32
,LPMMTIME32
,UINT32
);
456 #define waveInGetPosition WINELIB_NAME(waveInGetPosition)
457 UINT16 WINAPI
waveInGetID16(HWAVEIN16
,UINT16
*);
458 UINT32 WINAPI
waveInGetID32(HWAVEIN32
,UINT32
*);
459 #define waveInGetID WINELIB_NAME(waveInGetID)
461 DWORD WINAPI
waveInMessage16(HWAVEIN16
,UINT16
,DWORD
,DWORD
);
462 DWORD WINAPI
waveInMessage32(HWAVEIN32
,UINT32
,DWORD
,DWORD
);
463 #define waveInMessage WINELIB_NAME(waveInMessage)
465 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
466 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
467 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
468 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
469 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
470 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
471 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
473 typedef HMIDIIN16
*LPHMIDIIN16
;
474 typedef HMIDIOUT16
*LPHMIDIOUT16
;
475 typedef LPDRVCALLBACK16 LPMIDICALLBACK16
;
476 typedef LPDRVCALLBACK32 LPMIDICALLBACK32
;
477 DECL_WINELIB_TYPE(LPMIDICALLBACK
)
478 #define MIDIPATCHSIZE 128
479 typedef WORD PATCHARRAY
[MIDIPATCHSIZE
];
480 typedef WORD
*LPPATCHARRAY
;
481 typedef WORD KEYARRAY
[MIDIPATCHSIZE
];
482 typedef WORD
*LPKEYARRAY
;
484 #define MIM_OPEN MM_MIM_OPEN
485 #define MIM_CLOSE MM_MIM_CLOSE
486 #define MIM_DATA MM_MIM_DATA
487 #define MIM_LONGDATA MM_MIM_LONGDATA
488 #define MIM_ERROR MM_MIM_ERROR
489 #define MIM_LONGERROR MM_MIM_LONGERROR
490 #define MOM_OPEN MM_MOM_OPEN
491 #define MOM_CLOSE MM_MOM_CLOSE
492 #define MOM_DONE MM_MOM_DONE
494 /* device ID for MIDI mapper */
496 #define MIDIMAPPER (-1)
497 #define MIDI_MAPPER (-1)
499 /* flags for wFlags parm of
500 midiOutCachePatches(),
501 midiOutCacheDrumPatches() */
502 #define MIDI_CACHE_ALL 1
503 #define MIDI_CACHE_BESTFIT 2
504 #define MIDI_CACHE_QUERY 3
505 #define MIDI_UNCACHE 4
508 WORD wMid
; /* manufacturer ID */
509 WORD wPid
; /* product ID */
510 MMVERSION16 vDriverVersion
; /* version of the driver */
511 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
512 WORD wTechnology
; /* type of device */
513 WORD wVoices
; /* # of voices (internal synth only) */
514 WORD wNotes
; /* max # of notes (internal synth only) */
515 WORD wChannelMask
; /* channels used (internal synth only) */
516 DWORD dwSupport
; /* functionality supported by driver */
517 } MIDIOUTCAPS16
, *LPMIDIOUTCAPS16
;
520 WORD wMid
; /* manufacturer ID */
521 WORD wPid
; /* product ID */
522 MMVERSION32 vDriverVersion
; /* version of the driver */
523 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
524 WORD wTechnology
; /* type of device */
525 WORD wVoices
; /* # of voices (internal synth only) */
526 WORD wNotes
; /* max # of notes (internal synth only) */
527 WORD wChannelMask
; /* channels used (internal synth only) */
528 DWORD dwSupport
; /* functionality supported by driver */
529 } MIDIOUTCAPS32A
, *LPMIDIOUTCAPS32A
;
532 WORD wMid
; /* manufacturer ID */
533 WORD wPid
; /* product ID */
534 MMVERSION32 vDriverVersion
; /* version of the driver */
535 WCHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
536 WORD wTechnology
; /* type of device */
537 WORD wVoices
; /* # of voices (internal synth only) */
538 WORD wNotes
; /* max # of notes (internal synth only) */
539 WORD wChannelMask
; /* channels used (internal synth only) */
540 DWORD dwSupport
; /* functionality supported by driver */
541 } MIDIOUTCAPS32W
, *LPMIDIOUTCAPS32W
;
543 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS
)
544 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS
)
546 #define MOD_MIDIPORT 1 /* output port */
547 #define MOD_SYNTH 2 /* generic internal synth */
548 #define MOD_SQSYNTH 3 /* square wave internal synth */
549 #define MOD_FMSYNTH 4 /* FM internal synth */
550 #define MOD_MAPPER 5 /* MIDI mapper */
552 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
553 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
554 #define MIDICAPS_CACHE 0x0004
557 WORD wMid
; /* manufacturer ID */
558 WORD wPid
; /* product ID */
559 MMVERSION16 vDriverVersion
; /* version of the driver */
560 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
561 DWORD dwSupport
; /* included in win95 and higher */
562 } MIDIINCAPS16
, *LPMIDIINCAPS16
;
565 WORD wMid
; /* manufacturer ID */
566 WORD wPid
; /* product ID */
567 MMVERSION32 vDriverVersion
; /* version of the driver */
568 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
569 DWORD dwSupport
; /* included in win95 and higher */
570 } MIDIINCAPS32A
, *LPMIDIINCAPS32A
;
573 WORD wMid
; /* manufacturer ID */
574 WORD wPid
; /* product ID */
575 MMVERSION32 vDriverVersion
; /* version of the driver */
576 WCHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
577 DWORD dwSupport
; /* included in win95 and higher */
578 } MIDIINCAPS32W
, *LPMIDIINCAPS32W
;
580 DECL_WINELIB_TYPE_AW(MIDIINCAPS
)
581 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS
)
584 LPSTR lpData
; /* pointer to locked data block */
585 DWORD dwBufferLength
; /* length of data in data block */
586 DWORD dwBytesRecorded
;/* used for input only */
587 DWORD dwUser
; /* for client's use */
588 DWORD dwFlags
; /* assorted flags (see defines) */
589 struct midihdr_tag
*lpNext
; /* reserved for driver */
590 DWORD reserved
; /* reserved for driver */
591 } MIDIHDR
, *LPMIDIHDR
;
593 #define MHDR_DONE 0x00000001 /* done bit */
594 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
595 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
597 UINT16 WINAPI
midiOutGetNumDevs16();
598 UINT32 WINAPI
midiOutGetNumDevs32();
599 #define midiOutGetNumDevs WINELIB_NAME(midiOutGetNumDevs)
600 UINT16 WINAPI
midiOutGetDevCaps16(UINT16
,LPMIDIOUTCAPS16
,UINT16
);
601 UINT32 WINAPI
midiOutGetDevCaps32A(UINT32
,LPMIDIOUTCAPS32A
,UINT32
);
602 UINT32 WINAPI
midiOutGetDevCaps32W(UINT32
,LPMIDIOUTCAPS32W
,UINT32
);
603 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
604 UINT16 WINAPI
midiOutGetVolume16(UINT16
,DWORD
*);
605 UINT32 WINAPI
midiOutGetVolume32(UINT32
,DWORD
*);
606 #define midiOutGetVolume WINELIB_NAME(midiOutGetVolume)
607 UINT16 WINAPI
midiOutSetVolume16(UINT16
,DWORD
);
608 UINT32 WINAPI
midiOutSetVolume32(UINT32
,DWORD
);
609 #define midiOutSetVolume WINELIB_NAME(midiOutSetVolume)
610 UINT16 WINAPI
midiOutGetErrorText16(UINT16
,LPSTR
,UINT16
);
611 UINT32 WINAPI
midiOutGetErrorText32A(UINT32
,LPSTR
,UINT32
);
612 UINT32 WINAPI
midiOutGetErrorText32W(UINT32
,LPWSTR
,UINT32
);
613 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
614 UINT16 WINAPI
midiGetErrorText(UINT16
,LPSTR
,UINT16
);
615 UINT16 WINAPI
midiOutOpen16(HMIDIOUT16
*,UINT16
,DWORD
,DWORD
,DWORD
);
616 UINT32 WINAPI
midiOutOpen32(HMIDIOUT32
*,UINT32
,DWORD
,DWORD
,DWORD
);
617 #define midiOutOpen WINELIB_NAME(midiOutOpen)
618 UINT16 WINAPI
midiOutClose16(HMIDIOUT16
);
619 UINT32 WINAPI
midiOutClose32(HMIDIOUT32
);
620 #define midiOutClose WINELIB_NAME(midiOutClose)
621 UINT16 WINAPI
midiOutPrepareHeader16(HMIDIOUT16
,MIDIHDR
*,UINT16
);
622 UINT32 WINAPI
midiOutPrepareHeader32(HMIDIOUT32
,MIDIHDR
*,UINT32
);
623 #define midiOutPrepareHeader WINELIB_NAME(midiOutPrepareHeader)
624 UINT16 WINAPI
midiOutUnprepareHeader16(HMIDIOUT16
,MIDIHDR
*,UINT16
);
625 UINT32 WINAPI
midiOutUnprepareHeader32(HMIDIOUT32
,MIDIHDR
*,UINT32
);
626 #define midiOutUnprepareHeader WINELIB_NAME(midiOutUnprepareHeader)
627 UINT16 WINAPI
midiOutShortMsg16(HMIDIOUT16
,DWORD
);
628 UINT32 WINAPI
midiOutShortMsg32(HMIDIOUT32
,DWORD
);
629 #define midiOutShortMsg WINELIB_NAME(midiOutShortMsg)
630 UINT16 WINAPI
midiOutLongMsg16(HMIDIOUT16
,MIDIHDR
*,UINT16
);
631 UINT32 WINAPI
midiOutLongMsg32(HMIDIOUT32
,MIDIHDR
*,UINT32
);
632 #define midiOutLongMsg WINELIB_NAME(midiOutLongMsg)
633 UINT16 WINAPI
midiOutReset16(HMIDIOUT16
);
634 UINT32 WINAPI
midiOutReset32(HMIDIOUT32
);
635 #define midiOutReset WINELIB_NAME(midiOutReset)
636 UINT16 WINAPI
midiOutCachePatches16(HMIDIOUT16
,UINT16
,WORD
*,UINT16
);
637 UINT32 WINAPI
midiOutCachePatches32(HMIDIOUT32
,UINT32
,WORD
*,UINT32
);
638 #define midiOutCachePatches WINELIB_NAME(midiOutCachePatches)
639 UINT16 WINAPI
midiOutCacheDrumPatches16(HMIDIOUT16
,UINT16
,WORD
*,UINT16
);
640 UINT32 WINAPI
midiOutCacheDrumPatches32(HMIDIOUT32
,UINT32
,WORD
*,UINT32
);
641 #define midiOutCacheDrumPatches WINELIB_NAME(midiOutCacheDrumPatches)
642 UINT16 WINAPI
midiOutGetID16(HMIDIOUT16
,UINT16
*);
643 UINT32 WINAPI
midiOutGetID32(HMIDIOUT32
,UINT32
*);
644 #define midiOutGetID WINELIB_NAME(midiOutGetID)
646 DWORD WINAPI
midiOutMessage16(HMIDIOUT16
,UINT16
,DWORD
,DWORD
);
647 DWORD WINAPI
midiOutMessage32(HMIDIOUT32
,UINT32
,DWORD
,DWORD
);
648 #define midiOutMessage WINELIB_NAME(midiOutMessage)
650 UINT16 WINAPI
midiInGetNumDevs16(void);
651 UINT32 WINAPI
midiInGetNumDevs32(void);
652 #define midiInGetNumDevs WINELIB_NAME(midiInGetNumDevs)
653 UINT16 WINAPI
midiInGetDevCaps16(UINT16
,LPMIDIINCAPS16
,UINT16
);
654 UINT32 WINAPI
midiInGetDevCaps32A(UINT32
,LPMIDIINCAPS32A
,UINT32
);
655 UINT32 WINAPI
midiInGetDevCaps32W(UINT32
,LPMIDIINCAPS32W
,UINT32
);
656 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
657 UINT16 WINAPI
midiInGetErrorText16(UINT16
,LPSTR
,UINT16
);
658 UINT32 WINAPI
midiInGetErrorText32A(UINT32
,LPSTR
,UINT32
);
659 UINT32 WINAPI
midiInGetErrorText32W(UINT32
,LPWSTR
,UINT32
);
660 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
661 UINT16 WINAPI
midiInOpen16(HMIDIIN16
*,UINT16
,DWORD
,DWORD
,DWORD
);
662 UINT32 WINAPI
midiInOpen32(HMIDIIN32
*,UINT32
,DWORD
,DWORD
,DWORD
);
663 #define midiInOpen WINELIB_NAME(midiInOpen)
664 UINT16 WINAPI
midiInClose16(HMIDIIN16
);
665 UINT32 WINAPI
midiInClose32(HMIDIIN32
);
666 #define midiInClose WINELIB_NAME(midiInClose)
667 UINT16 WINAPI
midiInPrepareHeader16(HMIDIIN16
,MIDIHDR
*,UINT16
);
668 UINT32 WINAPI
midiInPrepareHeader32(HMIDIIN32
,MIDIHDR
*,UINT32
);
669 #define midiInPrepareHeader WINELIB_NAME(midiInPrepareHeader)
670 UINT16 WINAPI
midiInUnprepareHeader16(HMIDIIN16
,MIDIHDR
*,UINT16
);
671 UINT32 WINAPI
midiInUnprepareHeader32(HMIDIIN32
,MIDIHDR
*,UINT32
);
672 #define midiInUnprepareHeader WINELIB_NAME(midiInUnprepareHeader)
673 UINT16 WINAPI
midiInAddBuffer16(HMIDIIN16
,MIDIHDR
*,UINT16
);
674 UINT32 WINAPI
midiInAddBuffer32(HMIDIIN32
,MIDIHDR
*,UINT32
);
675 #define midiInAddBuffer WINELIB_NAME(midiInAddBuffer)
676 UINT16 WINAPI
midiInStart16(HMIDIIN16
);
677 UINT32 WINAPI
midiInStart32(HMIDIIN32
);
678 #define midiInStart WINELIB_NAME(midiInStart)
679 UINT16 WINAPI
midiInStop16(HMIDIIN16
);
680 UINT32 WINAPI
midiInStop32(HMIDIIN32
);
681 #define midiInStop WINELIB_NAME(midiInStop)
682 UINT16 WINAPI
midiInReset16(HMIDIIN16
);
683 UINT32 WINAPI
midiInReset32(HMIDIIN32
);
684 #define midiInReset WINELIB_NAME(midiInReset)
685 UINT16 WINAPI
midiInGetID16(HMIDIIN16
,UINT16
*);
686 UINT32 WINAPI
midiInGetID32(HMIDIIN32
,UINT32
*);
687 #define midiInGetID WINELIB_NAME(midiInGetID)
688 DWORD WINAPI
midiInMessage16(HMIDIIN16
,UINT16
,DWORD
,DWORD
);
689 DWORD WINAPI
midiInMessage32(HMIDIIN32
,UINT32
,DWORD
,DWORD
);
690 #define midiInMessage WINELIB_NAME(midiInMessage)
692 #define AUX_MAPPER (-1)
695 WORD wMid
; /* manufacturer ID */
696 WORD wPid
; /* product ID */
697 MMVERSION16 vDriverVersion
; /* version of the driver */
698 CHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
699 WORD wTechnology
; /* type of device */
700 DWORD dwSupport
; /* functionality supported by driver */
701 } AUXCAPS16
, *LPAUXCAPS16
;
704 WORD wMid
; /* manufacturer ID */
705 WORD wPid
; /* product ID */
706 MMVERSION32 vDriverVersion
; /* version of the driver */
707 CHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
708 WORD wTechnology
; /* type of device */
709 WORD wReserved1
; /* padding */
710 DWORD dwSupport
; /* functionality supported by driver */
711 } AUXCAPS32A
, *LPAUXCAPS32A
;
714 WORD wMid
; /* manufacturer ID */
715 WORD wPid
; /* product ID */
716 MMVERSION32 vDriverVersion
; /* version of the driver */
717 WCHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
718 WORD wTechnology
; /* type of device */
719 WORD wReserved1
; /* padding */
720 DWORD dwSupport
; /* functionality supported by driver */
721 } AUXCAPS32W
, *LPAUXCAPS32W
;
723 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
724 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
726 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
727 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
729 UINT16 WINAPI
auxGetNumDevs16();
730 UINT32 WINAPI
auxGetNumDevs32();
731 #define auxGetNumDevs WINELIB_NAME(auxGetNumDevs)
732 UINT16 WINAPI
auxGetDevCaps16 (UINT16
,LPAUXCAPS16
,UINT16
);
733 UINT32 WINAPI
auxGetDevCaps32A(UINT32
,LPAUXCAPS32A
,UINT32
);
734 UINT32 WINAPI
auxGetDevCaps32W(UINT32
,LPAUXCAPS32W
,UINT32
);
735 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
736 UINT16 WINAPI
auxSetVolume16(UINT16
,DWORD
);
737 UINT32 WINAPI
auxSetVolume32(UINT32
,DWORD
);
738 #define auxSetVolume WINELIB_NAME(auxSetVolume)
740 UINT16 WINAPI
auxGetVolume16(UINT16
,LPDWORD
);
741 UINT32 WINAPI
auxGetVolume32(UINT32
,LPDWORD
);
742 #define auxGetVolume WINELIB_NAME(auxGetVolume)
744 DWORD WINAPI
auxOutMessage16(UINT16
,UINT16
,DWORD
,DWORD
);
745 DWORD WINAPI
auxOutMessage32(UINT32
,UINT32
,DWORD
,DWORD
);
746 #define auxOutMessage WINELIB_NAME(auxOutMessage)
748 #define TIMERR_NOERROR (0) /* no error */
749 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
750 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
752 typedef void (CALLBACK
*LPTIMECALLBACK16
)(UINT16 uTimerID
, UINT16 uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
753 typedef void (CALLBACK
*LPTIMECALLBACK32
)(UINT32 uTimerID
, UINT32 uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
754 DECL_WINELIB_TYPE(LPTIMECALLBACK
)
756 #define TIME_ONESHOT 0x0000 /* program timer for single event */
757 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
758 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
759 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
760 #define TIME_CALLBACK_EVENT_PULSE 0x0020/* callback is event - use PulseEvent */
763 UINT16 wPeriodMin
; /* minimum period supported */
764 UINT16 wPeriodMax
; /* maximum period supported */
765 } TIMECAPS16
,*LPTIMECAPS16
;
770 } TIMECAPS32
, *LPTIMECAPS32
;
772 DECL_WINELIB_TYPE(TIMECAPS
)
773 DECL_WINELIB_TYPE(LPTIMECAPS
)
775 MMRESULT16 WINAPI
timeGetSystemTime16(LPMMTIME16
,UINT16
);
776 MMRESULT32 WINAPI
timeGetSystemTime32(LPMMTIME32
,UINT32
);
777 #define timeGetSystemTime WINELIB_NAME(timeGetSystemTime)
778 DWORD WINAPI
timeGetTime(); /* same for win32/win16 */
779 MMRESULT16 WINAPI
timeSetEvent16(UINT16
,UINT16
,LPTIMECALLBACK16
,DWORD
,UINT16
);
780 MMRESULT32 WINAPI
timeSetEvent32(UINT32
,UINT32
,LPTIMECALLBACK32
,DWORD
,UINT32
);
781 #define timeSetEvent WINELIB_NAME(timeSetEvent)
782 MMRESULT16 WINAPI
timeKillEvent16(UINT16
);
783 MMRESULT32 WINAPI
timeKillEvent32(UINT32
);
784 #define timeKillEvent WINELIB_NAME(timeKillEvent)
785 MMRESULT16 WINAPI
timeGetDevCaps16(LPTIMECAPS16
,UINT16
);
786 MMRESULT32 WINAPI
timeGetDevCaps32(LPTIMECAPS32
,UINT32
);
787 #define timeGetDevCaps WINELIB_NAME(timeGetDevCaps)
788 MMRESULT16 WINAPI
timeBeginPeriod16(UINT16
);
789 MMRESULT32 WINAPI
timeBeginPeriod32(UINT32
);
790 #define timeBeginPeriod WINELIB_NAME(timeBeginPeriod)
791 MMRESULT16 WINAPI
timeEndPeriod16(UINT16
);
792 MMRESULT32 WINAPI
timeEndPeriod32(UINT32
);
793 #define timeEndPeriod WINELIB_NAME(timeEndPeriod)
795 #define JOYERR_NOERROR (0) /* no error */
796 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
797 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
798 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
800 /* JOYINFO, JOYINFOEX, MM_JOY* */
801 #define JOY_BUTTON1 0x0001
802 #define JOY_BUTTON2 0x0002
803 #define JOY_BUTTON3 0x0004
804 #define JOY_BUTTON4 0x0008
805 #define JOY_BUTTON1CHG 0x0100
806 #define JOY_BUTTON2CHG 0x0200
807 #define JOY_BUTTON3CHG 0x0400
808 #define JOY_BUTTON4CHG 0x0800
810 #define JOYSTICKID1 0
811 #define JOYSTICKID2 1
814 #define JOYCAPS_HASZ 0x0001
815 #define JOYCAPS_HASR 0x0002
816 #define JOYCAPS_HASU 0x0004
817 #define JOYCAPS_HASV 0x0008
818 #define JOYCAPS_HASPOV 0x0010
819 #define JOYCAPS_POV4DIR 0x0020
820 #define JOYCAPS_POVCTS 0x0040
822 /* JOYINFOEX stuff */
823 #define JOY_POVCENTERED (WORD) -1
824 #define JOY_POVFORWARD 0
825 #define JOY_POVRIGHT 9000
826 #define JOY_POVBACKWARD 18000
827 #define JOY_POVLEFT 27000
829 #define JOY_RETURNX 0x00000001
830 #define JOY_RETURNY 0x00000002
831 #define JOY_RETURNZ 0x00000004
832 #define JOY_RETURNR 0x00000008
833 #define JOY_RETURNU 0x00000010
834 #define JOY_RETURNV 0x00000020
835 #define JOY_RETURNPOV 0x00000040
836 #define JOY_RETURNBUTTONS 0x00000080
837 #define JOY_RETURNRAWDATA 0x00000100
838 #define JOY_RETURNPOVCTS 0x00000200
839 #define JOY_RETURNCENTERED 0x00000400
840 #define JOY_USEDEADZONE 0x00000800
841 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
842 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
843 JOY_RETURNPOV | JOY_RETURNBUTTONS)
844 #define JOY_CAL_READALWAYS 0x00010000
845 #define JOY_CAL_READXYONLY 0x00020000
846 #define JOY_CAL_READ3 0x00040000
847 #define JOY_CAL_READ4 0x00080000
848 #define JOY_CAL_READXONLY 0x00100000
849 #define JOY_CAL_READYONLY 0x00200000
850 #define JOY_CAL_READ5 0x00400000
851 #define JOY_CAL_READ6 0x00800000
852 #define JOY_CAL_READZONLY 0x01000000
853 #define JOY_CAL_READRONLY 0x02000000
854 #define JOY_CAL_READUONLY 0x04000000
855 #define JOY_CAL_READVONLY 0x08000000
858 WORD wMid
; /* manufacturer ID */
859 WORD wPid
; /* product ID */
860 char szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
861 UINT16 wXmin
; /* minimum x position value */
862 UINT16 wXmax
; /* maximum x position value */
863 UINT16 wYmin
; /* minimum y position value */
864 UINT16 wYmax
; /* maximum y position value */
865 UINT16 wZmin
; /* minimum z position value */
866 UINT16 wZmax
; /* maximum z position value */
867 UINT16 wNumButtons
; /* number of buttons */
868 UINT16 wPeriodMin
; /* minimum message period when captured */
869 UINT16 wPeriodMax
; /* maximum message period when captured */
870 /* win95,nt4 additions: */
871 UINT16 wRmin
; /* minimum r position value */
872 UINT16 wRmax
; /* maximum r position value */
873 UINT16 wUmin
; /* minimum u (5th axis) position value */
874 UINT16 wUmax
; /* maximum u (5th axis) position value */
875 UINT16 wVmin
; /* minimum v (6th axis) position value */
876 UINT16 wVmax
; /* maximum v (6th axis) position value */
877 UINT16 wCaps
; /* joystick capabilites */
878 UINT16 wMaxAxes
; /* maximum number of axes supported */
879 UINT16 wNumAxes
; /* number of axes in use */
880 UINT16 wMaxButtons
; /* maximum number of buttons supported */
881 CHAR szRegKey
[MAXPNAMELEN
]; /* registry key */
882 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
]; /* OEM VxD in use */
883 } JOYCAPS16
, *LPJOYCAPS16
;
888 CHAR szPname
[MAXPNAMELEN
];
908 CHAR szRegKey
[MAXPNAMELEN
];
909 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
910 } JOYCAPS32A
, *LPJOYCAPS32A
;
915 WCHAR szPname
[MAXPNAMELEN
];
935 WCHAR szRegKey
[MAXPNAMELEN
];
936 WCHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
937 } JOYCAPS32W
, *LPJOYCAPS32W
;
938 DECL_WINELIB_TYPE_AW(JOYCAPS
)
939 DECL_WINELIB_TYPE_AW(LPJOYCAPS
)
942 UINT16 wXpos
; /* x position */
943 UINT16 wYpos
; /* y position */
944 UINT16 wZpos
; /* z position */
945 UINT16 wButtons
; /* button states */
946 } JOYINFO16
, *LPJOYINFO16
;
953 } JOYINFO32
, *LPJOYINFO32
;
956 DWORD dwSize
; /* size of structure */
957 DWORD dwFlags
; /* flags to indicate what to return */
958 DWORD dwXpos
; /* x position */
959 DWORD dwYpos
; /* y position */
960 DWORD dwZpos
; /* z position */
961 DWORD dwRpos
; /* rudder/4th axis position */
962 DWORD dwUpos
; /* 5th axis position */
963 DWORD dwVpos
; /* 6th axis position */
964 DWORD dwButtons
; /* button states */
965 DWORD dwButtonNumber
; /* current button number pressed */
966 DWORD dwPOV
; /* point of view state */
967 DWORD dwReserved1
; /* reserved for communication between winmm & driver */
968 DWORD dwReserved2
; /* reserved for future expansion */
969 } JOYINFOEX
,*LPJOYINFOEX
;
971 DECL_WINELIB_TYPE(JOYINFO
)
972 DECL_WINELIB_TYPE(LPJOYINFO
)
974 MMRESULT16 WINAPI
joyGetDevCaps16 (UINT16
,LPJOYCAPS16
,UINT16
);
975 MMRESULT32 WINAPI
joyGetDevCaps32A(UINT32
,LPJOYCAPS32A
,UINT32
);
976 MMRESULT32 WINAPI
joyGetDevCaps32W(UINT32
,LPJOYCAPS32W
,UINT32
);
977 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
978 UINT16 WINAPI
joyGetNumDevs16(void);
979 UINT32 WINAPI
joyGetNumDevs32(void);
980 #define joyGetNumDevs WINELIB_NAME(joyGetNumDevs)
981 MMRESULT16 WINAPI
joyGetPos16(UINT16
,LPJOYINFO16
);
982 MMRESULT32 WINAPI
joyGetPos32(UINT32
,LPJOYINFO32
);
983 #define joyGetPos WINELIB_NAME(joyGetPos)
984 MMRESULT32 WINAPI
joyGetPosEx(UINT32
,LPJOYINFOEX
);
985 MMRESULT16 WINAPI
joyGetThreshold16(UINT16
,UINT16
*);
986 MMRESULT32 WINAPI
joyGetThreshold32(UINT32
,UINT32
*);
987 #define joyGetThreshold WINELIB_NAME(joyGetThreshold)
988 MMRESULT16 WINAPI
joyReleaseCapture16(UINT16
);
989 MMRESULT32 WINAPI
joyReleaseCapture32(UINT32
);
990 #define joyReleaseCapture WINELIB_NAME(joyReleaseCapture)
991 MMRESULT16 WINAPI
joySetCapture16(HWND16
,UINT16
,UINT16
,BOOL16
);
992 MMRESULT32 WINAPI
joySetCapture32(HWND32
,UINT32
,UINT32
,BOOL32
);
993 #define joySetCapture WINELIB_NAME(joySetCapture)
994 MMRESULT16 WINAPI
joySetThreshold16(UINT16
,UINT16
);
995 MMRESULT32 WINAPI
joySetThreshold32(UINT32
,UINT32
);
996 #define joySetThreshold WINELIB_NAME(joySetThreshold)
999 WORD wMid
; /* manufacturer id */
1000 WORD wPid
; /* product id */
1001 MMVERSION16 vDriverVersion
; /* version of the driver */
1002 CHAR szPname
[MAXPNAMELEN
]; /* product name */
1003 DWORD fdwSupport
; /* misc. support bits */
1004 DWORD cDestinations
; /* count of destinations */
1005 } MIXERCAPS16
,*LPMIXERCAPS16
;
1010 MMVERSION32 vDriverVersion
;
1011 CHAR szPname
[MAXPNAMELEN
];
1013 DWORD cDestinations
;
1014 } MIXERCAPS32A
,*LPMIXERCAPS32A
;
1019 MMVERSION32 vDriverVersion
;
1020 WCHAR szPname
[MAXPNAMELEN
];
1022 DWORD cDestinations
;
1023 } MIXERCAPS32W
,*LPMIXERCAPS32W
;
1025 DECL_WINELIB_TYPE_AW(MIXERCAPS
)
1026 DECL_WINELIB_TYPE_AW(LPMIXERCAPS
)
1028 #define MIXER_SHORT_NAME_CHARS 16
1029 #define MIXER_LONG_NAME_CHARS 64
1031 /* MIXERLINE.fdwLine */
1032 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1033 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1034 #define MIXERLINE_LINEF_SOURCE 0x80000000
1036 /* MIXERLINE.dwComponentType */
1037 /* component types for destinations and sources */
1038 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1039 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1040 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1041 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1042 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1043 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1044 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1045 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1046 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1047 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1048 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1050 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1051 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1052 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1053 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1054 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1055 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1056 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1057 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1058 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1059 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1060 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1061 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1062 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1064 /* MIXERLINE.Target.dwType */
1065 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1066 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1067 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1068 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1069 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1070 #define MIXERLINE_TARGETTYPE_AUX 5
1073 DWORD cbStruct
; /* size of MIXERLINE structure */
1074 DWORD dwDestination
; /* zero based destination index */
1075 DWORD dwSource
; /* zero based source index (if source) */
1076 DWORD dwLineID
; /* unique line id for mixer device */
1077 DWORD fdwLine
; /* state/information about line */
1078 DWORD dwUser
; /* driver specific information */
1079 DWORD dwComponentType
; /* component type line connects to */
1080 DWORD cChannels
; /* number of channels line supports */
1081 DWORD cConnections
; /* number of connections [possible] */
1082 DWORD cControls
; /* number of controls at this line */
1083 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1084 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1086 DWORD dwType
; /* MIXERLINE_TARGETTYPE_xxxx */
1087 DWORD dwDeviceID
; /* target device ID of device type */
1088 WORD wMid
; /* of target device */
1090 MMVERSION16 vDriverVersion
; /* " */
1091 CHAR szPname
[MAXPNAMELEN
]; /* " */
1093 } MIXERLINE16
, *LPMIXERLINE16
;
1097 DWORD dwDestination
;
1102 DWORD dwComponentType
;
1106 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1107 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1113 MMVERSION32 vDriverVersion
;
1114 CHAR szPname
[MAXPNAMELEN
];
1116 } MIXERLINE32A
, *LPMIXERLINE32A
;
1120 DWORD dwDestination
;
1125 DWORD dwComponentType
;
1129 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1130 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1136 MMVERSION32 vDriverVersion
;
1137 WCHAR szPname
[MAXPNAMELEN
];
1139 } MIXERLINE32W
, *LPMIXERLINE32W
;
1141 DECL_WINELIB_TYPE_AW(MIXERLINE
)
1142 DECL_WINELIB_TYPE_AW(LPMIXERLINE
)
1144 /* MIXERCONTROL.fdwControl */
1145 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1146 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1147 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1149 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1150 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1151 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1152 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1153 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1154 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1155 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1156 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1157 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1158 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1160 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1162 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1163 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1165 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1167 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1168 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1170 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1171 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1173 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1174 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1175 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1176 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1177 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1178 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1179 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1181 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1182 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1183 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1184 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1185 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1186 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1187 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1188 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1189 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1190 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1191 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1192 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1193 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1194 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1195 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1196 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1197 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1198 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1199 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1200 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1201 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1202 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1203 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1204 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1205 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1206 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1207 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1208 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1209 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1210 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1211 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1215 DWORD cbStruct
; /* size in bytes of MIXERCONTROL */
1216 DWORD dwControlID
; /* unique control id for mixer device */
1217 DWORD dwControlType
; /* MIXERCONTROL_CONTROLTYPE_xxx */
1218 DWORD fdwControl
; /* MIXERCONTROL_CONTROLF_xxx */
1219 DWORD cMultipleItems
; /* if MIXERCONTROL_CONTROLF_MULTIPLE set */
1220 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1221 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1224 LONG lMinimum
; /* signed minimum for this control */
1225 LONG lMaximum
; /* signed maximum for this control */
1228 DWORD dwMinimum
; /* unsigned minimum for this control */
1229 DWORD dwMaximum
; /* unsigned maximum for this control */
1231 DWORD dwReserved
[6];
1234 DWORD cSteps
; /* # of steps between min & max */
1235 DWORD cbCustomData
; /* size in bytes of custom data */
1236 DWORD dwReserved
[6]; /* !!! needed? we have cbStruct.... */
1238 } MIXERCONTROL16
, *LPMIXERCONTROL16
;
1243 DWORD dwControlType
;
1245 DWORD cMultipleItems
;
1246 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1247 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1257 DWORD dwReserved
[6];
1262 DWORD dwReserved
[6];
1264 } MIXERCONTROL32A
, *LPMIXERCONTROL32A
;
1269 DWORD dwControlType
;
1271 DWORD cMultipleItems
;
1272 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1273 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1283 DWORD dwReserved
[6];
1288 DWORD dwReserved
[6];
1290 } MIXERCONTROL32W
, *LPMIXERCONTROL32W
;
1292 DECL_WINELIB_TYPE_AW(MIXERCONTROL
)
1293 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL
)
1296 DWORD cbStruct
; /* size in bytes of MIXERLINECONTROLS */
1297 DWORD dwLineID
; /* line id (from MIXERLINE.dwLineID) */
1299 DWORD dwControlID
; /* MIXER_GETLINECONTROLSF_ONEBYID */
1300 DWORD dwControlType
; /* MIXER_GETLINECONTROLSF_ONEBYTYPE */
1302 DWORD cControls
; /* count of controls pmxctrl points to */
1303 DWORD cbmxctrl
; /* size in bytes of _one_ MIXERCONTROL */
1304 LPMIXERCONTROL16 pamxctrl
;/* pointer to first MIXERCONTROL array */
1305 } MIXERLINECONTROLS16
, *LPMIXERLINECONTROLS16
;
1312 DWORD dwControlType
;
1316 LPMIXERCONTROL32A pamxctrl
;
1317 } MIXERLINECONTROLS32A
, *LPMIXERLINECONTROLS32A
;
1324 DWORD dwControlType
;
1328 LPMIXERCONTROL32W pamxctrl
;
1329 } MIXERLINECONTROLS32W
, *LPMIXERLINECONTROLS32W
;
1331 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS
)
1332 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS
)
1335 DWORD cbStruct
; /* size in bytes of MIXERCONTROLDETAILS */
1336 DWORD dwControlID
; /* control id to get/set details on */
1337 DWORD cChannels
; /* number of channels in paDetails array */
1339 HWND16 hwndOwner
; /* for MIXER_SETCONTROLDETAILSF_CUSTOM */
1340 DWORD cMultipleItems
; /* if _MULTIPLE, the number of items per channel */
1342 DWORD cbDetails
; /* size of _one_ details_XX struct */
1343 LPVOID paDetails
; /* pointer to array of details_XX structs */
1344 } MIXERCONTROLDETAILS16
,*LPMIXERCONTROLDETAILS16
;
1352 DWORD cMultipleItems
;
1356 } MIXERCONTROLDETAILS32
,*LPMIXERCONTROLDETAILS32
;
1358 DECL_WINELIB_TYPE(MIXERCONTROLDETAILS
)
1359 DECL_WINELIB_TYPE(LPMIXERCONTROLDETAILS
)
1364 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1365 } MIXERCONTROLDETAILS_LISTTEXT16
,*LPMIXERCONTROLDETAILS_LISTTEXT16
;
1370 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1371 } MIXERCONTROLDETAILS_LISTTEXT32A
,*LPMIXERCONTROLDETAILS_LISTTEXT32A
;
1376 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1377 } MIXERCONTROLDETAILS_LISTTEXT32W
,*LPMIXERCONTROLDETAILS_LISTTEXT32W
;
1379 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT
)
1380 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT
)
1382 /* MIXER_GETCONTROLDETAILSF_VALUE */
1385 } MIXERCONTROLDETAILS_BOOLEAN
,*LPMIXERCONTROLDETAILS_BOOLEAN
;
1389 } MIXERCONTROLDETAILS_SIGNED
,*LPMIXERCONTROLDETAILS_SIGNED
;
1393 } MIXERCONTROLDETAILS_UNSIGNED
,*LPMIXERCONTROLDETAILS_UNSIGNED
;
1395 /* bits passed to mixerGetLineInfo.fdwInfo */
1396 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1397 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1398 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1399 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1400 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1401 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1403 /* bitmask passed to mixerGetLineControl */
1404 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1405 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1406 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1407 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1409 /* bitmask passed to mixerGetControlDetails */
1410 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1411 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1412 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1414 /* bitmask passed to mixerSetControlDetails */
1415 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1416 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1417 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1419 UINT16 WINAPI
mixerGetNumDevs16();
1420 UINT32 WINAPI
mixerGetNumDevs32();
1421 #define mixerGetNumDevs WINELIB_NAME(mixerGetNumDevs)
1422 UINT16 WINAPI
mixerOpen16(LPHMIXER16
,UINT16
,DWORD
,DWORD
,DWORD
);
1423 UINT32 WINAPI
mixerOpen32(LPHMIXER32
,UINT32
,DWORD
,DWORD
,DWORD
);
1424 #define mixerOpen WINELIB_NAME(mixerOpen)
1425 UINT16 WINAPI
mixerClose16(HMIXER16
);
1426 UINT32 WINAPI
mixerClose32(HMIXER32
);
1427 #define mixerClose WINELIB_NAME(mixerClose)
1428 UINT16 WINAPI
mixerMessage16(HMIXER16
,UINT16
,DWORD
,DWORD
);
1429 UINT32 WINAPI
mixerMessage32(HMIXER32
,UINT32
,DWORD
,DWORD
);
1430 #define mixerMessage WINELIB_NAME(mixerMessage)
1431 UINT16 WINAPI
mixerGetDevCaps16(UINT16
,LPMIXERCAPS16
,UINT16
);
1432 UINT32 WINAPI
mixerGetDevCaps32A(UINT32
,LPMIXERCAPS32A
,UINT32
);
1433 UINT32 WINAPI
mixerGetDevCaps32W(UINT32
,LPMIXERCAPS32W
,UINT32
);
1434 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1435 UINT16 WINAPI
mixerGetLineInfo16(HMIXEROBJ16
,LPMIXERLINE16
,DWORD
);
1436 UINT32 WINAPI
mixerGetLineInfo32A(HMIXEROBJ32
,LPMIXERLINE32A
,DWORD
);
1437 UINT32 WINAPI
mixerGetLineInfo32W(HMIXEROBJ32
,LPMIXERLINE32W
,DWORD
);
1438 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1439 UINT16 WINAPI
mixerGetID16(HMIXEROBJ16
,LPUINT16
,DWORD
);
1440 UINT32 WINAPI
mixerGetID32(HMIXEROBJ32
,LPUINT32
,DWORD
);
1441 #define mixerGetID WINELIB_NAME(mixerGetID)
1442 UINT16 WINAPI
mixerGetLineControls16(HMIXEROBJ16
,LPMIXERLINECONTROLS16
,DWORD
);
1443 UINT32 WINAPI
mixerGetLineControls32A(HMIXEROBJ32
,LPMIXERLINECONTROLS32A
,DWORD
);
1444 UINT32 WINAPI
mixerGetLineControls32W(HMIXEROBJ32
,LPMIXERLINECONTROLS32W
,DWORD
);
1445 #define mixerGetLineControl WINELIB_NAME_AW(mixerGetLineControl)
1446 UINT16 WINAPI
mixerGetControlDetails16(HMIXEROBJ16
,LPMIXERCONTROLDETAILS16
,DWORD
);
1447 UINT32 WINAPI
mixerGetControlDetails32A(HMIXEROBJ32
,LPMIXERCONTROLDETAILS32
,DWORD
);
1448 UINT32 WINAPI
mixerGetControlDetails32W(HMIXEROBJ32
,LPMIXERCONTROLDETAILS32
,DWORD
);
1449 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1450 UINT16 WINAPI
mixerSetControlDetails16(HMIXEROBJ16
,LPMIXERCONTROLDETAILS16
,DWORD
);
1451 UINT32 WINAPI
mixerSetControlDetails32A(HMIXEROBJ16
,LPMIXERCONTROLDETAILS32
,DWORD
);
1452 UINT32 WINAPI
mixerSetControlDetails32W(HMIXEROBJ16
,LPMIXERCONTROLDETAILS32
,DWORD
);
1453 #define mixerSetControlDetails WINELIB_NAME_AW(mixerSetControlDetails)
1455 #define MMIOERR_BASE 256
1456 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1457 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1458 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1459 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1460 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1461 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1462 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1463 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1464 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1465 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1467 #define CFSEPCHAR '+' /* compound file name separator char. */
1469 typedef DWORD FOURCC
; /* a four character code */
1470 typedef LONG (CALLBACK
*LPMMIOPROC16
)(LPSTR lpmmioinfo
, UINT16 uMessage
,
1471 LPARAM lParam1
, LPARAM lParam2
);
1472 typedef LONG (CALLBACK
*LPMMIOPROC32
)(LPSTR lpmmioinfo
, UINT32 uMessage
,
1473 LPARAM lParam1
, LPARAM lParam2
);
1474 DECL_WINELIB_TYPE(LPMMIOPROC
)
1477 DWORD dwFlags
; /* general status flags */
1478 FOURCC fccIOProc
; /* pointer to I/O procedure */
1479 LPMMIOPROC16 pIOProc
; /* pointer to I/O procedure */
1480 UINT16 wErrorRet
; /* place for error to be returned */
1481 HTASK16 htask
; /* alternate local task */
1482 /* fields maintained by MMIO functions during buffered I/O */
1483 LONG cchBuffer
; /* size of I/O buffer (or 0L) */
1484 HPSTR pchBuffer
; /* start of I/O buffer (or NULL) */
1485 HPSTR pchNext
; /* pointer to next byte to read/write */
1486 HPSTR pchEndRead
; /* pointer to last valid byte to read */
1487 HPSTR pchEndWrite
; /* pointer to last byte to write */
1488 LONG lBufOffset
; /* disk offset of start of buffer */
1489 /* fields maintained by I/O procedure */
1490 LONG lDiskOffset
; /* disk offset of next read or write */
1491 DWORD adwInfo
[3]; /* data specific to type of MMIOPROC */
1492 /* other fields maintained by MMIO */
1493 DWORD dwReserved1
; /* reserved for MMIO use */
1494 DWORD dwReserved2
; /* reserved for MMIO use */
1495 HMMIO16 hmmio
; /* handle to open file */
1496 } MMIOINFO16
, *LPMMIOINFO16
;
1501 LPMMIOPROC32 pIOProc
;
1504 /* fields maintained by MMIO functions during buffered I/O */
1511 /* fields maintained by I/O procedure */
1514 /* other fields maintained by MMIO */
1518 } MMIOINFO32
, *LPMMIOINFO32
;
1520 typedef struct _MMCKINFO
1522 FOURCC ckid
; /* chunk ID */
1523 DWORD cksize
; /* chunk size */
1524 FOURCC fccType
; /* form type or list type */
1525 DWORD dwDataOffset
; /* offset of data portion of chunk */
1526 DWORD dwFlags
; /* flags used by MMIO functions */
1527 } MMCKINFO
, *LPMMCKINFO
;
1529 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1530 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1532 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1533 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1534 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1535 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1536 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1537 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1539 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1541 #define MMIO_READ 0x00000000 /* open file for reading only */
1542 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1543 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1545 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1546 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1547 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1548 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1549 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1551 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1552 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1553 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1554 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1555 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1556 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1557 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1558 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1559 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1560 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1561 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1562 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1568 #define MMIOM_READ MMIO_READ /* read */
1569 #define MMIOM_WRITE MMIO_WRITE /* write */
1570 #define MMIOM_SEEK 2 /* seek to a new position in file */
1571 #define MMIOM_OPEN 3 /* open file */
1572 #define MMIOM_CLOSE 4 /* close file */
1573 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1575 #define MMIOM_RENAME 6 /* rename specified file */
1577 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1579 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1580 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1582 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1583 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1585 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1587 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1588 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1589 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1591 LPMMIOPROC16 WINAPI
mmioInstallIOProc16(FOURCC
,LPMMIOPROC16
,DWORD
);
1592 LPMMIOPROC32 WINAPI
mmioInstallIOProc32A(FOURCC
,LPMMIOPROC32
,DWORD
);
1593 LPMMIOPROC32 WINAPI
mmioInstallIOProc32W(FOURCC
,LPMMIOPROC32
,DWORD
);
1594 #define mmioInstallIOPro WINELIB_NAME_AW(mmioInstallIOProc)
1596 FOURCC WINAPI
mmioStringToFOURCC16(LPCSTR
,UINT16
);
1597 FOURCC WINAPI
mmioStringToFOURCC32A(LPCSTR
,UINT32
);
1598 FOURCC WINAPI
mmioStringToFOURCC32W(LPCWSTR
,UINT32
);
1599 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1600 HMMIO16 WINAPI
mmioOpen16 (LPSTR
,MMIOINFO16
*,DWORD
);
1601 HMMIO32 WINAPI
mmioOpen32A(LPSTR
,MMIOINFO32
*,DWORD
);
1602 HMMIO32 WINAPI
mmioOpen32W(LPWSTR
,MMIOINFO32
*,DWORD
);
1603 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1605 UINT16 WINAPI
mmioRename(LPCSTR szFileName
, LPCSTR szNewFileName
,
1606 MMIOINFO16
* lpmmioinfo
, DWORD dwRenameFlags
);
1608 MMRESULT16 WINAPI
mmioClose16(HMMIO16
,UINT16
);
1609 MMRESULT32 WINAPI
mmioClose32(HMMIO32
,UINT32
);
1610 #define mmioClose WINELIB_NAME(mmioClose)
1611 LONG WINAPI
mmioRead16(HMMIO16
,HPSTR
,LONG
);
1612 LONG WINAPI
mmioRead32(HMMIO32
,HPSTR
,LONG
);
1613 #define mmioRead WINELIB_NAME(mmioRead)
1614 LONG WINAPI
mmioWrite16(HMMIO16
,HPCSTR
,LONG
);
1615 LONG WINAPI
mmioWrite32(HMMIO32
,HPCSTR
,LONG
);
1616 #define mmioWrite WINELIB_NAME(mmioWrite)
1617 LONG WINAPI
mmioSeek16(HMMIO16
,LONG
,INT16
);
1618 LONG WINAPI
mmioSeek32(HMMIO32
,LONG
,INT32
);
1619 #define mmioSeek WINELIB_NAME(mmioSeek)
1620 MMRESULT16 WINAPI
mmioGetInfo16(HMMIO16
,MMIOINFO16
*,UINT16
);
1621 MMRESULT32 WINAPI
mmioGetInfo32(HMMIO32
,MMIOINFO32
*,UINT32
);
1622 #define mmioGetInfo WINELIB_NAME(mmioGetInfo)
1623 MMRESULT16 WINAPI
mmioSetInfo16(HMMIO16
,const MMIOINFO16
*,UINT16
);
1624 MMRESULT32 WINAPI
mmioSetInfo32(HMMIO32
,const MMIOINFO32
*,UINT32
);
1625 #define mmioSetInfo WINELIB_NAME(mmioSetInfo)
1627 UINT16 WINAPI
mmioSetBuffer(HMMIO16
,LPSTR
,LONG
,UINT16
);
1629 UINT16 WINAPI
mmioFlush16(HMMIO16
,UINT16
);
1630 UINT32 WINAPI
mmioFlush32(HMMIO32
,UINT32
);
1631 #define mmioFlush WINELIB_NAME(mmioFlush)
1633 UINT16 WINAPI
mmioAdvance16(HMMIO16
,MMIOINFO16
*,UINT16
);
1634 UINT32 WINAPI
mmioAdvance32(HMMIO32
,MMIOINFO32
*,UINT32
);
1635 #define mmioAdvance WINELIB_NAME(mmioAdvance)
1636 LONG WINAPI
mmioSendMessage(HMMIO16
,UINT16
,LPARAM
,LPARAM
);
1637 UINT16 WINAPI
mmioDescend(HMMIO16
,MMCKINFO
*,const MMCKINFO
*,UINT16
);
1638 UINT16 WINAPI
mmioAscend16(HMMIO16
,MMCKINFO
*,UINT16
);
1639 UINT32 WINAPI
mmioAscend32(HMMIO32
,MMCKINFO
*,UINT32
);
1640 #define mmioAscend WINELIB_NAME(mmioAscend)
1641 UINT16 WINAPI
mmioCreateChunk(HMMIO16
,MMCKINFO
*,UINT16
);
1643 typedef UINT16 (CALLBACK
*YIELDPROC
)(UINT16
,DWORD
);
1645 DWORD WINAPI
mciSendCommand (UINT16
,UINT16
,DWORD
,DWORD
);
1646 DWORD WINAPI
mciSendString (LPCSTR
,LPSTR
,UINT16
,HWND16
);
1647 UINT16 WINAPI
mciGetDeviceID(LPCSTR
);
1648 UINT16 WINAPI
mciGetDeviceIDFromElementID(DWORD
,LPCSTR
);
1649 BOOL16 WINAPI
mciGetErrorString16 (DWORD
,LPSTR
,UINT16
);
1650 BOOL32 WINAPI
mciGetErrorString32A(DWORD
,LPSTR
,UINT32
);
1651 BOOL32 WINAPI
mciGetErrorString32W(DWORD
,LPWSTR
,UINT32
);
1652 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1653 BOOL16 WINAPI
mciSetYieldProc (UINT16
,YIELDPROC
,DWORD
);
1655 HTASK16 WINAPI
mciGetCreatorTask(UINT16
);
1656 YIELDPROC WINAPI
mciGetYieldProc(UINT16
,DWORD
*);
1658 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1659 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1660 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1661 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1662 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1663 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1664 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1665 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1666 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1667 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1668 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1669 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1670 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1671 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1672 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1673 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1674 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1675 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1676 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1677 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1678 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1679 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1680 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1681 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1682 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1683 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1684 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1685 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1686 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1687 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1688 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1689 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1690 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1691 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1692 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1693 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1694 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1695 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1696 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1697 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1698 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1699 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1700 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1701 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1702 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1703 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1704 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1705 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1706 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1707 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1708 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1709 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1711 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1712 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1713 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1714 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1715 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1716 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1717 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1718 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1719 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1720 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1722 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1723 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1724 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1725 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1726 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1727 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1728 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1729 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1731 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1732 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1733 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1734 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1736 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1738 #define MCI_OPEN_DRIVER 0x0801
1739 #define MCI_CLOSE_DRIVER 0x0802
1740 #define MCI_OPEN 0x0803
1741 #define MCI_CLOSE 0x0804
1742 #define MCI_ESCAPE 0x0805
1743 #define MCI_PLAY 0x0806
1744 #define MCI_SEEK 0x0807
1745 #define MCI_STOP 0x0808
1746 #define MCI_PAUSE 0x0809
1747 #define MCI_INFO 0x080A
1748 #define MCI_GETDEVCAPS 0x080B
1749 #define MCI_SPIN 0x080C
1750 #define MCI_SET 0x080D
1751 #define MCI_STEP 0x080E
1752 #define MCI_RECORD 0x080F
1753 #define MCI_SYSINFO 0x0810
1754 #define MCI_BREAK 0x0811
1755 #define MCI_SOUND 0x0812
1756 #define MCI_SAVE 0x0813
1757 #define MCI_STATUS 0x0814
1758 #define MCI_CUE 0x0830
1759 #define MCI_REALIZE 0x0840
1760 #define MCI_WINDOW 0x0841
1761 #define MCI_PUT 0x0842
1762 #define MCI_WHERE 0x0843
1763 #define MCI_FREEZE 0x0844
1764 #define MCI_UNFREEZE 0x0845
1765 #define MCI_LOAD 0x0850
1766 #define MCI_CUT 0x0851
1767 #define MCI_COPY 0x0852
1768 #define MCI_PASTE 0x0853
1769 #define MCI_UPDATE 0x0854
1770 #define MCI_RESUME 0x0855
1771 #define MCI_DELETE 0x0856
1773 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1775 #define MCI_ALL_DEVICE_ID 0xFFFF
1777 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1778 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1779 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1780 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1781 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1782 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1783 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1784 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1785 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1786 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1787 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1789 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1790 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1792 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1793 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1794 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1795 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1796 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1797 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1798 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1800 #define MCI_FORMAT_MILLISECONDS 0
1801 #define MCI_FORMAT_HMS 1
1802 #define MCI_FORMAT_MSF 2
1803 #define MCI_FORMAT_FRAMES 3
1804 #define MCI_FORMAT_SMPTE_24 4
1805 #define MCI_FORMAT_SMPTE_25 5
1806 #define MCI_FORMAT_SMPTE_30 6
1807 #define MCI_FORMAT_SMPTE_30DROP 7
1808 #define MCI_FORMAT_BYTES 8
1809 #define MCI_FORMAT_SAMPLES 9
1810 #define MCI_FORMAT_TMSF 10
1812 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1813 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1814 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1816 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1818 (((DWORD)(BYTE)(f))<<16)))
1820 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1821 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1822 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1823 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1825 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1827 (((DWORD)(BYTE)(s) | \
1828 ((WORD)(f)<<8))<<16)))
1830 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1831 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1832 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1834 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1836 (((DWORD)(BYTE)(s))<<16)))
1838 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1839 #define MCI_NOTIFY_SUPERSEDED 0x0002
1840 #define MCI_NOTIFY_ABORTED 0x0004
1841 #define MCI_NOTIFY_FAILURE 0x0008
1843 #define MCI_NOTIFY 0x00000001L
1844 #define MCI_WAIT 0x00000002L
1845 #define MCI_FROM 0x00000004L
1846 #define MCI_TO 0x00000008L
1847 #define MCI_TRACK 0x00000010L
1849 #define MCI_OPEN_SHAREABLE 0x00000100L
1850 #define MCI_OPEN_ELEMENT 0x00000200L
1851 #define MCI_OPEN_ALIAS 0x00000400L
1852 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1853 #define MCI_OPEN_TYPE_ID 0x00001000L
1854 #define MCI_OPEN_TYPE 0x00002000L
1856 #define MCI_SEEK_TO_START 0x00000100L
1857 #define MCI_SEEK_TO_END 0x00000200L
1859 #define MCI_STATUS_ITEM 0x00000100L
1860 #define MCI_STATUS_START 0x00000200L
1862 #define MCI_STATUS_LENGTH 0x00000001L
1863 #define MCI_STATUS_POSITION 0x00000002L
1864 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1865 #define MCI_STATUS_MODE 0x00000004L
1866 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1867 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1868 #define MCI_STATUS_READY 0x00000007L
1869 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1871 #define MCI_INFO_PRODUCT 0x00000100L
1872 #define MCI_INFO_FILE 0x00000200L
1874 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1876 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1877 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1878 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1879 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1880 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1881 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1882 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1883 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1884 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1886 #define MCI_SYSINFO_QUANTITY 0x00000100L
1887 #define MCI_SYSINFO_OPEN 0x00000200L
1888 #define MCI_SYSINFO_NAME 0x00000400L
1889 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1891 #define MCI_SET_DOOR_OPEN 0x00000100L
1892 #define MCI_SET_DOOR_CLOSED 0x00000200L
1893 #define MCI_SET_TIME_FORMAT 0x00000400L
1894 #define MCI_SET_AUDIO 0x00000800L
1895 #define MCI_SET_VIDEO 0x00001000L
1896 #define MCI_SET_ON 0x00002000L
1897 #define MCI_SET_OFF 0x00004000L
1899 #define MCI_SET_AUDIO_ALL 0x00000000L
1900 #define MCI_SET_AUDIO_LEFT 0x00000001L
1901 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1903 #define MCI_BREAK_KEY 0x00000100L
1904 #define MCI_BREAK_HWND 0x00000200L
1905 #define MCI_BREAK_OFF 0x00000400L
1907 #define MCI_RECORD_INSERT 0x00000100L
1908 #define MCI_RECORD_OVERWRITE 0x00000200L
1910 #define MCI_SOUND_NAME 0x00000100L
1912 #define MCI_SAVE_FILE 0x00000100L
1914 #define MCI_LOAD_FILE 0x00000100L
1918 } MCI_GENERIC_PARMS
, *LPMCI_GENERIC_PARMS
;
1924 LPSTR lpstrDeviceType
;
1925 LPSTR lpstrElementName
;
1927 } MCI_OPEN_PARMS16
, *LPMCI_OPEN_PARMS16
;
1931 MCIDEVICEID32 wDeviceID
;
1932 LPSTR lpstrDeviceType
;
1933 LPSTR lpstrElementName
;
1935 } MCI_OPEN_PARMS32A
, *LPMCI_OPEN_PARMS32A
;
1939 MCIDEVICEID32 wDeviceID
;
1940 LPWSTR lpstrDeviceType
;
1941 LPWSTR lpstrElementName
;
1943 } MCI_OPEN_PARMS32W
, *LPMCI_OPEN_PARMS32W
;
1945 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS
)
1946 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS
)
1952 } MCI_PLAY_PARMS
, *LPMCI_PLAY_PARMS
;
1957 } MCI_SEEK_PARMS
, *LPMCI_SEEK_PARMS
;
1964 } MCI_STATUS_PARMS
, *LPMCI_STATUS_PARMS
;
1970 } MCI_INFO_PARMS16
, *LPMCI_INFO_PARMS16
;
1976 } MCI_INFO_PARMS32A
, *LPMCI_INFO_PARMS32A
;
1982 } MCI_INFO_PARMS32W
, *LPMCI_INFO_PARMS32W
;
1984 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS
)
1985 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS
)
1991 } MCI_GETDEVCAPS_PARMS
, *LPMCI_GETDEVCAPS_PARMS
;
2000 } MCI_SYSINFO_PARMS16
, *LPMCI_SYSINFO_PARMS16
;
2008 } MCI_SYSINFO_PARMS32A
, *LPMCI_SYSINFO_PARMS32A
;
2016 } MCI_SYSINFO_PARMS32W
, *LPMCI_SYSINFO_PARMS32W
;
2018 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS
)
2019 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS
)
2025 } MCI_SET_PARMS
, *LPMCI_SET_PARMS
;
2033 } MCI_BREAK_PARMS16
, *LPMCI_BREAK_PARMS16
;
2039 } MCI_BREAK_PARMS32
, *LPMCI_BREAK_PARMS32
;
2041 DECL_WINELIB_TYPE(MCI_BREAK_PARMS
)
2042 DECL_WINELIB_TYPE(LPMCI_BREAK_PARMS
)
2046 LPCSTR lpstrSoundName
;
2047 } MCI_SOUND_PARMS
, *LPMCI_SOUND_PARMS
;
2052 } MCI_SAVE_PARMS
, *LPMCI_SAVE_PARMS
;
2057 } MCI_LOAD_PARMS16
, *LPMCI_LOAD_PARMS16
;
2062 } MCI_LOAD_PARMS32A
, *LPMCI_LOAD_PARMS32A
;
2067 } MCI_LOAD_PARMS32W
, *LPMCI_LOAD_PARMS32W
;
2069 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS
)
2070 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS
)
2076 } MCI_RECORD_PARMS
, *LPMCI_RECORD_PARMS
;
2078 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2080 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2081 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2082 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2084 #define MCI_VD_FORMAT_TRACK 0x4001
2086 #define MCI_VD_PLAY_REVERSE 0x00010000L
2087 #define MCI_VD_PLAY_FAST 0x00020000L
2088 #define MCI_VD_PLAY_SPEED 0x00040000L
2089 #define MCI_VD_PLAY_SCAN 0x00080000L
2090 #define MCI_VD_PLAY_SLOW 0x00100000L
2092 #define MCI_VD_SEEK_REVERSE 0x00010000L
2094 #define MCI_VD_STATUS_SPEED 0x00004002L
2095 #define MCI_VD_STATUS_FORWARD 0x00004003L
2096 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2097 #define MCI_VD_STATUS_SIDE 0x00004005L
2098 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2100 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2101 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2103 #define MCI_VD_SPIN_UP 0x00010000L
2104 #define MCI_VD_SPIN_DOWN 0x00020000L
2106 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2107 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2108 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2109 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2111 #define MCI_VD_STEP_FRAMES 0x00010000L
2112 #define MCI_VD_STEP_REVERSE 0x00020000L
2114 #define MCI_VD_ESCAPE_STRING 0x00000100L
2121 } MCI_VD_PLAY_PARMS
, *LPMCI_VD_PLAY_PARMS
;
2126 } MCI_VD_STEP_PARMS
, *LPMCI_VD_STEP_PARMS
;
2130 LPCSTR lpstrCommand
;
2131 } MCI_VD_ESCAPE_PARMS16
, *LPMCI_VD_ESCAPE_PARMS16
;
2135 LPCSTR lpstrCommand
;
2136 } MCI_VD_ESCAPE_PARMS32A
, *LPMCI_VD_ESCAPE_PARMS32A
;
2140 LPCWSTR lpstrCommand
;
2141 } MCI_VD_ESCAPE_PARMS32W
, *LPMCI_VD_ESCAPE_PARMS32W
;
2143 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS
)
2144 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS
)
2146 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
2148 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
2149 #define MCI_WAVE_SET_CHANNELS 0x00020000L
2150 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2151 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2152 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2153 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2155 #define MCI_WAVE_INPUT 0x00400000L
2156 #define MCI_WAVE_OUTPUT 0x00800000L
2158 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2159 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2160 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2161 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2162 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2163 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2164 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
2166 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
2167 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2169 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2170 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2174 MCIDEVICEID16 wDeviceID
;
2176 SEGPTR lpstrDeviceType
;
2177 SEGPTR lpstrElementName
;
2179 DWORD dwBufferSeconds
;
2180 } MCI_WAVE_OPEN_PARMS16
, *LPMCI_WAVE_OPEN_PARMS16
;
2184 MCIDEVICEID32 wDeviceID
;
2185 LPCSTR lpstrDeviceType
;
2186 LPCSTR lpstrElementName
;
2188 DWORD dwBufferSeconds
;
2189 } MCI_WAVE_OPEN_PARMS32A
, *LPMCI_WAVE_OPEN_PARMS32A
;
2193 MCIDEVICEID32 wDeviceID
;
2194 LPCWSTR lpstrDeviceType
;
2195 LPCWSTR lpstrElementName
;
2197 DWORD dwBufferSeconds
;
2198 } MCI_WAVE_OPEN_PARMS32W
, *LPMCI_WAVE_OPEN_PARMS32W
;
2200 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS
)
2201 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS
)
2207 } MCI_WAVE_DELETE_PARMS
, *LPMCI_WAVE_DELETE_PARMS
;
2221 DWORD nSamplesPerSec
;
2222 DWORD nAvgBytesPerSec
;
2225 UINT16 wBitsPerSample
;
2227 } MCI_WAVE_SET_PARMS16
, * LPMCI_WAVE_SET_PARMS16
;
2237 DWORD nSamplesPerSec
;
2238 DWORD nAvgBytesPerSec
;
2240 UINT32 wBitsPerSample
;
2241 } MCI_WAVE_SET_PARMS32
, * LPMCI_WAVE_SET_PARMS32
;
2243 DECL_WINELIB_TYPE(MCI_WAVE_SET_PARMS
)
2244 DECL_WINELIB_TYPE(LPMCI_WAVE_SET_PARMS
)
2246 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2247 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2248 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2249 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2250 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2252 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2253 #define MCI_SEQ_FILE 0x4002
2254 #define MCI_SEQ_MIDI 0x4003
2255 #define MCI_SEQ_SMPTE 0x4004
2256 #define MCI_SEQ_NONE 65533
2258 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
2259 #define MCI_SEQ_STATUS_PORT 0x00004003L
2260 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
2261 #define MCI_SEQ_STATUS_MASTER 0x00004008L
2262 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
2263 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2265 #define MCI_SEQ_SET_TEMPO 0x00010000L
2266 #define MCI_SEQ_SET_PORT 0x00020000L
2267 #define MCI_SEQ_SET_SLAVE 0x00040000L
2268 #define MCI_SEQ_SET_MASTER 0x00080000L
2269 #define MCI_SEQ_SET_OFFSET 0x01000000L
2280 } MCI_SEQ_SET_PARMS
, *LPMCI_SEQ_SET_PARMS
;
2282 #define MCI_ANIM_OPEN_WS 0x00010000L
2283 #define MCI_ANIM_OPEN_PARENT 0x00020000L
2284 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2286 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2287 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2288 #define MCI_ANIM_PLAY_FAST 0x00040000L
2289 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2290 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2292 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2293 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2295 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2296 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2297 #define MCI_ANIM_STATUS_HWND 0x00004003L
2298 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2299 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2301 #define MCI_ANIM_INFO_TEXT 0x00010000L
2303 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2304 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2305 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2306 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2307 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2308 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2309 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2311 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2312 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2314 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2315 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2316 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2317 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2318 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2320 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2322 #define MCI_ANIM_RECT 0x00010000L
2323 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2324 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2326 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2327 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2329 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2335 SEGPTR lpstrDeviceType
;
2336 SEGPTR lpstrElementName
;
2341 } MCI_ANIM_OPEN_PARMS16
, *LPMCI_ANIM_OPEN_PARMS16
;
2345 MCIDEVICEID32 wDeviceID
;
2346 LPCSTR lpstrDeviceType
;
2347 LPCSTR lpstrElementName
;
2351 } MCI_ANIM_OPEN_PARMS32A
, *LPMCI_ANIM_OPEN_PARMS32A
;
2355 MCIDEVICEID32 wDeviceID
;
2356 LPCSTR lpstrDeviceType
;
2357 LPCSTR lpstrElementName
;
2361 } MCI_ANIM_OPEN_PARMS32W
, *LPMCI_ANIM_OPEN_PARMS32W
;
2363 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS
)
2364 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS
)
2371 } MCI_ANIM_PLAY_PARMS
, *LPMCI_ANIM_PLAY_PARMS
;
2376 } MCI_ANIM_STEP_PARMS
, *LPMCI_ANIM_STEP_PARMS
;
2385 } MCI_ANIM_WINDOW_PARMS16
, *LPMCI_ANIM_WINDOW_PARMS16
;
2392 } MCI_ANIM_WINDOW_PARMS32A
, *LPMCI_ANIM_WINDOW_PARMS32A
;
2399 } MCI_ANIM_WINDOW_PARMS32W
, *LPMCI_ANIM_WINDOW_PARMS32W
;
2401 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS
)
2402 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS
)
2406 #ifdef MCI_USE_OFFEXT
2409 #else /* ifdef MCI_USE_OFFEXT */
2411 #endif /* ifdef MCI_USE_OFFEXT */
2412 } MCI_ANIM_RECT_PARMS16
, *LPMCI_ANIM_RECT_PARMS16
;
2416 #ifdef MCI_USE_OFFEXT
2419 #else /* ifdef MCI_USE_OFFEXT */
2421 #endif /* ifdef MCI_USE_OFFEXT */
2422 } MCI_ANIM_RECT_PARMS32
, *LPMCI_ANIM_RECT_PARMS32
;
2424 DECL_WINELIB_TYPE(MCI_ANIM_RECT_PARMS
)
2425 DECL_WINELIB_TYPE(LPMCI_ANIM_RECT_PARMS
)
2431 } MCI_ANIM_UPDATE_PARMS16
, *LPMCI_ANIM_UPDATE_PARMS16
;
2437 } MCI_ANIM_UPDATE_PARMS32
, *LPMCI_ANIM_UPDATE_PARMS32
;
2439 DECL_WINELIB_TYPE(MCI_ANIM_UPDATE_PARMS
)
2440 DECL_WINELIB_TYPE(LPMCI_ANIM_UPDATE_PARMS
)
2442 #define MCI_OVLY_OPEN_WS 0x00010000L
2443 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2445 #define MCI_OVLY_STATUS_HWND 0x00004001L
2446 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2448 #define MCI_OVLY_INFO_TEXT 0x00010000L
2450 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2451 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2452 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2454 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2455 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2456 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2457 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2458 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2460 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2462 #define MCI_OVLY_RECT 0x00010000L
2463 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2464 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2465 #define MCI_OVLY_PUT_FRAME 0x00080000L
2466 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2468 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2469 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2470 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2471 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2475 MCIDEVICEID16 wDeviceID
;
2477 LPCSTR lpstrDeviceType
;
2478 LPCSTR lpstrElementName
;
2483 } MCI_OVLY_OPEN_PARMS16
, *LPMCI_OVLY_OPEN_PARMS16
;
2487 MCIDEVICEID32 wDeviceID
;
2488 LPCSTR lpstrDeviceType
;
2489 LPCSTR lpstrElementName
;
2493 } MCI_OVLY_OPEN_PARMS32A
, *LPMCI_OVLY_OPEN_PARMS32A
;
2497 MCIDEVICEID32 wDeviceID
;
2498 LPCWSTR lpstrDeviceType
;
2499 LPCWSTR lpstrElementName
;
2503 } MCI_OVLY_OPEN_PARMS32W
, *LPMCI_OVLY_OPEN_PARMS32W
;
2505 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS
)
2506 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS
)
2515 } MCI_OVLY_WINDOW_PARMS16
, *LPMCI_OVLY_WINDOW_PARMS16
;
2522 } MCI_OVLY_WINDOW_PARMS32A
, *LPMCI_OVLY_WINDOW_PARMS32A
;
2529 } MCI_OVLY_WINDOW_PARMS32W
, *LPMCI_OVLY_WINDOW_PARMS32W
;
2531 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS
)
2532 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS
)
2536 #ifdef MCI_USE_OFFEXT
2539 #else /* ifdef MCI_USE_OFFEXT */
2541 #endif /* ifdef MCI_USE_OFFEXT */
2542 } MCI_OVLY_RECT_PARMS16
, *LPMCI_OVLY_RECT_PARMS16
;
2546 #ifdef MCI_USE_OFFEXT
2549 #else /* ifdef MCI_USE_OFFEXT */
2551 #endif /* ifdef MCI_USE_OFFEXT */
2552 } MCI_OVLY_RECT_PARMS32
, *LPMCI_OVLY_RECT_PARMS32
;
2554 DECL_WINELIB_TYPE(MCI_OVLY_RECT_PARMS
)
2555 DECL_WINELIB_TYPE(LPMCI_OVLY_RECT_PARMS
)
2561 } MCI_OVLY_SAVE_PARMS16
, *LPMCI_OVLY_SAVE_PARMS16
;
2567 } MCI_OVLY_SAVE_PARMS32A
, *LPMCI_OVLY_SAVE_PARMS32A
;
2573 } MCI_OVLY_SAVE_PARMS32W
, *LPMCI_OVLY_SAVE_PARMS32W
;
2575 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS
)
2576 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS
)
2582 } MCI_OVLY_LOAD_PARMS16
, *LPMCI_OVLY_LOAD_PARMS16
;
2588 } MCI_OVLY_LOAD_PARMS32A
, *LPMCI_OVLY_LOAD_PARMS32A
;
2594 } MCI_OVLY_LOAD_PARMS32W
, *LPMCI_OVLY_LOAD_PARMS32W
;
2596 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS
)
2597 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS
)
2599 /**************************************************************
2600 * Linux MMSYSTEM Internals & Sample Audio Drivers
2603 #define DRVM_INIT 100
2604 #define WODM_INIT DRVM_INIT
2605 #define WIDM_INIT DRVM_INIT
2606 #define MODM_INIT DRVM_INIT
2607 #define MIDM_INIT DRVM_INIT
2608 #define AUXM_INIT DRVM_INIT
2610 #define WODM_GETNUMDEVS 3
2611 #define WODM_GETDEVCAPS 4
2613 #define WODM_CLOSE 6
2614 #define WODM_PREPARE 7
2615 #define WODM_UNPREPARE 8
2616 #define WODM_WRITE 9
2617 #define WODM_PAUSE 10
2618 #define WODM_RESTART 11
2619 #define WODM_RESET 12
2620 #define WODM_GETPOS 13
2621 #define WODM_GETPITCH 14
2622 #define WODM_SETPITCH 15
2623 #define WODM_GETVOLUME 16
2624 #define WODM_SETVOLUME 17
2625 #define WODM_GETPLAYBACKRATE 18
2626 #define WODM_SETPLAYBACKRATE 19
2627 #define WODM_BREAKLOOP 20
2628 #define WODM_STOP 21
2630 #define WIDM_GETNUMDEVS 50
2631 #define WIDM_GETDEVCAPS 51
2632 #define WIDM_OPEN 52
2633 #define WIDM_CLOSE 53
2634 #define WIDM_PREPARE 54
2635 #define WIDM_UNPREPARE 55
2636 #define WIDM_ADDBUFFER 56
2637 #define WIDM_START 57
2638 #define WIDM_STOP 58
2639 #define WIDM_RESET 59
2640 #define WIDM_GETPOS 60
2641 #define WIDM_PAUSE 61
2643 #define MODM_GETNUMDEVS 1
2644 #define MODM_GETDEVCAPS 2
2646 #define MODM_CLOSE 4
2647 #define MODM_PREPARE 5
2648 #define MODM_UNPREPARE 6
2650 #define MODM_LONGDATA 8
2651 #define MODM_RESET 9
2652 #define MODM_GETVOLUME 10
2653 #define MODM_SETVOLUME 11
2654 #define MODM_CACHEPATCHES 12
2655 #define MODM_CACHEDRUMPATCHES 13
2657 #define MIDM_GETNUMDEVS 53
2658 #define MIDM_GETDEVCAPS 54
2659 #define MIDM_OPEN 55
2660 #define MIDM_CLOSE 56
2661 #define MIDM_PREPARE 57
2662 #define MIDM_UNPREPARE 58
2663 #define MIDM_ADDBUFFER 59
2664 #define MIDM_START 60
2665 #define MIDM_STOP 61
2666 #define MIDM_RESET 62
2668 #define AUXDM_GETNUMDEVS 3
2669 #define AUXDM_GETDEVCAPS 4
2670 #define AUXDM_GETVOLUME 5
2671 #define AUXDM_SETVOLUME 6
2673 #define MXDM_GETNUMDEVS 1
2674 #define MXDM_GETDEVCAPS 2
2676 #define MXDM_CLOSE 4
2677 #define MXDM_GETLINEINFO 5
2678 #define MXDM_GETLINECONTROLS 6
2679 #define MXDM_GETCONTROLDETAILS 7
2680 #define MXDM_SETCONTROLDETAILS 8
2682 #define MCI_MAX_DEVICE_TYPE_LENGTH 80
2684 #define MCI_FALSE (MCI_STRING_OFFSET + 19)
2685 #define MCI_TRUE (MCI_STRING_OFFSET + 20)
2687 #define MCI_FORMAT_RETURN_BASE MCI_FORMAT_MILLISECONDS_S
2688 #define MCI_FORMAT_MILLISECONDS_S (MCI_STRING_OFFSET + 21)
2689 #define MCI_FORMAT_HMS_S (MCI_STRING_OFFSET + 22)
2690 #define MCI_FORMAT_MSF_S (MCI_STRING_OFFSET + 23)
2691 #define MCI_FORMAT_FRAMES_S (MCI_STRING_OFFSET + 24)
2692 #define MCI_FORMAT_SMPTE_24_S (MCI_STRING_OFFSET + 25)
2693 #define MCI_FORMAT_SMPTE_25_S (MCI_STRING_OFFSET + 26)
2694 #define MCI_FORMAT_SMPTE_30_S (MCI_STRING_OFFSET + 27)
2695 #define MCI_FORMAT_SMPTE_30DROP_S (MCI_STRING_OFFSET + 28)
2696 #define MCI_FORMAT_BYTES_S (MCI_STRING_OFFSET + 29)
2697 #define MCI_FORMAT_SAMPLES_S (MCI_STRING_OFFSET + 30)
2698 #define MCI_FORMAT_TMSF_S (MCI_STRING_OFFSET + 31)
2700 #define MCI_VD_FORMAT_TRACK_S (MCI_VD_OFFSET + 5)
2702 #define WAVE_FORMAT_PCM_S (MCI_WAVE_OFFSET + 0)
2703 #define WAVE_MAPPER_S (MCI_WAVE_OFFSET + 1)
2705 #define MCI_SEQ_MAPPER_S (MCI_SEQ_OFFSET + 5)
2706 #define MCI_SEQ_FILE_S (MCI_SEQ_OFFSET + 6)
2707 #define MCI_SEQ_MIDI_S (MCI_SEQ_OFFSET + 7)
2708 #define MCI_SEQ_SMPTE_S (MCI_SEQ_OFFSET + 8)
2709 #define MCI_SEQ_FORMAT_SONGPTR_S (MCI_SEQ_OFFSET + 9)
2710 #define MCI_SEQ_NONE_S (MCI_SEQ_OFFSET + 10)
2711 #define MIDIMAPPER_S (MCI_SEQ_OFFSET + 11)
2713 #define MCI_RESOURCE_RETURNED 0x00010000 /* resource ID */
2714 #define MCI_COLONIZED3_RETURN 0x00020000 /* colonized ID, 3 bytes data */
2715 #define MCI_COLONIZED4_RETURN 0x00040000 /* colonized ID, 4 bytes data */
2716 #define MCI_INTEGER_RETURNED 0x00080000 /* integer conversion needed */
2717 #define MCI_RESOURCE_DRIVER 0x00100000 /* driver owns returned resource */
2719 #define MCI_NO_COMMAND_TABLE 0xFFFF
2721 #define MCI_COMMAND_HEAD 0
2722 #define MCI_STRING 1
2723 #define MCI_INTEGER 2
2724 #define MCI_END_COMMAND 3
2725 #define MCI_RETURN 4
2727 #define MCI_END_COMMAND_LIST 6
2729 #define MCI_CONSTANT 8
2730 #define MCI_END_CONSTANT 9
2733 #define MIXER_OBJECTF_HANDLE 0x80000000L
2734 #define MIXER_OBJECTF_MIXER 0x00000000L
2735 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
2736 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
2737 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
2738 #define MIXER_OBJECTF_WAVEIN 0x20000000L
2739 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
2740 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
2741 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
2742 #define MIXER_OBJECTF_MIDIIN 0x40000000L
2743 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
2744 #define MIXER_OBJECTF_AUX 0x50000000L
2746 #define MAKEMCIRESOURCE(wRet, wRes) MAKELRESULT((wRet), (wRes))
2748 /* the 95 DDK defines those slightly different, but they are internal anyway */
2754 } PORTALLOC
, *LPPORTALLOC
;
2758 LPWAVEFORMAT lpFormat
;
2762 } WAVEOPENDESC
, *LPWAVEOPENDESC
;
2769 } MIDIOPENDESC
, *LPMIDIOPENDESC
;
2774 LPTIMECALLBACK16 lpFunction
;
2777 } TIMEREVENT
, *LPTIMEREVENT
;
2779 typedef struct tMIXEROPENDESC
2785 } MIXEROPENDESC
,*LPMIXEROPENDESC
;
2788 UINT16 wDeviceID
; /* device ID */
2789 LPSTR lpstrParams
; /* parameter string for entry in SYSTEM.INI */
2790 UINT16 wCustomCommandTable
; /* custom command table (0xFFFF if none)
2791 * filled in by the driver */
2792 UINT16 wType
; /* driver type (filled in by the driver) */
2793 } MCI_OPEN_DRIVER_PARMS
, *LPMCI_OPEN_DRIVER_PARMS
;
2795 DWORD WINAPI
mciGetDriverData(UINT16 uDeviceID
);
2796 BOOL16 WINAPI
mciSetDriverData(UINT16 uDeviceID
, DWORD dwData
);
2797 UINT16 WINAPI
mciDriverYield(UINT16 uDeviceID
);
2798 BOOL16 WINAPI
mciDriverNotify(HWND16 hwndCallback
, UINT16 uDeviceID
,
2800 UINT16 WINAPI
mciLoadCommandResource(HINSTANCE16 hInstance
,
2801 LPCSTR lpResName
, UINT16 uType
);
2802 BOOL16 WINAPI
mciFreeCommandResource(UINT16 uTable
);
2804 #define DCB_NULL 0x0000
2805 #define DCB_WINDOW 0x0001 /* dwCallback is a HWND */
2806 #define DCB_TASK 0x0002 /* dwCallback is a HTASK */
2807 #define DCB_FUNCTION 0x0003 /* dwCallback is a FARPROC */
2808 #define DCB_FUNC32 0x0007 /* (ugly hack) 32-bit FARPROC */
2809 #define DCB_TYPEMASK 0x0007
2810 #define DCB_NOSWITCH 0x0008 /* don't switch stacks for callback */
2812 BOOL16 WINAPI
DriverCallback(DWORD dwCallBack
, UINT16 uFlags
, HANDLE16 hDev
,
2813 WORD wMsg
, DWORD dwUser
, DWORD dwParam1
, DWORD dwParam2
);
2814 DWORD WINAPI
auxMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2815 DWORD dwParam1
, DWORD dwParam2
);
2818 DWORD WINAPI
mixMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2819 DWORD dwParam1
, DWORD dwParam2
);
2820 DWORD WINAPI
midMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2821 DWORD dwParam1
, DWORD dwParam2
);
2822 DWORD WINAPI
modMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2823 DWORD dwParam1
, DWORD dwParam2
);
2824 DWORD WINAPI
widMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2825 DWORD dwParam1
, DWORD dwParam2
);
2826 DWORD WINAPI
wodMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2827 DWORD dwParam1
, DWORD dwParam2
);
2830 LONG
WAVE_DriverProc16(DWORD dwDevID
, HDRVR16 hDriv
, WORD wMsg
,
2831 DWORD dwParam1
, DWORD dwParam2
);
2832 LONG
WAVE_DriverProc32(DWORD dwDevID
, HDRVR16 hDriv
, DWORD wMsg
,
2833 DWORD dwParam1
, DWORD dwParam2
);
2834 LONG
MIDI_DriverProc16(DWORD dwDevID
, HDRVR16 hDriv
, WORD wMsg
,
2835 DWORD dwParam1
, DWORD dwParam2
);
2836 LONG
MIDI_DriverProc32(DWORD dwDevID
, HDRVR16 hDriv
, DWORD wMsg
,
2837 DWORD dwParam1
, DWORD dwParam2
);
2838 LONG
CDAUDIO_DriverProc16(DWORD dwDevID
, HDRVR16 hDriv
, WORD wMsg
,
2839 DWORD dwParam1
, DWORD dwParam2
);
2840 LONG
CDAUDIO_DriverProc32(DWORD dwDevID
, HDRVR16 hDriv
, DWORD wMsg
,
2841 DWORD dwParam1
, DWORD dwParam2
);
2842 LONG
ANIM_DriverProc16(DWORD dwDevID
, HDRVR16 hDriv
, WORD wMsg
,
2843 DWORD dwParam1
, DWORD dwParam2
);
2844 LONG
ANIM_DriverProc32(DWORD dwDevID
, HDRVR16 hDriv
, DWORD wMsg
,
2845 DWORD dwParam1
, DWORD dwParam2
);
2847 #endif /* __WINE_MMSYSTEM_H */