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(void);
354 UINT32 WINAPI
waveOutGetNumDevs32(void);
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(void);
420 UINT32 WINAPI
waveInGetNumDevs32(void);
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
555 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
558 WORD wMid
; /* manufacturer ID */
559 WORD wPid
; /* product ID */
560 MMVERSION16 vDriverVersion
; /* version of the driver */
561 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
562 DWORD dwSupport
; /* included in win95 and higher */
563 } MIDIINCAPS16
, *LPMIDIINCAPS16
;
566 WORD wMid
; /* manufacturer ID */
567 WORD wPid
; /* product ID */
568 MMVERSION32 vDriverVersion
; /* version of the driver */
569 CHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
570 DWORD dwSupport
; /* included in win95 and higher */
571 } MIDIINCAPS32A
, *LPMIDIINCAPS32A
;
574 WORD wMid
; /* manufacturer ID */
575 WORD wPid
; /* product ID */
576 MMVERSION32 vDriverVersion
; /* version of the driver */
577 WCHAR szPname
[MAXPNAMELEN
];/* product name (NULL terminated string) */
578 DWORD dwSupport
; /* included in win95 and higher */
579 } MIDIINCAPS32W
, *LPMIDIINCAPS32W
;
581 DECL_WINELIB_TYPE_AW(MIDIINCAPS
)
582 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS
)
585 LPSTR lpData
; /* pointer to locked data block */
586 DWORD dwBufferLength
; /* length of data in data block */
587 DWORD dwBytesRecorded
;/* used for input only */
588 DWORD dwUser
; /* for client's use */
589 DWORD dwFlags
; /* assorted flags (see defines) */
590 struct midihdr_tag
*lpNext
; /* reserved for driver */
591 DWORD reserved
; /* reserved for driver */
592 } MIDIHDR
, *LPMIDIHDR
;
594 /* It seems that Win32 has a slightly different structure than Win 16.
598 LPSTR lpData
; /* pointer to locked data block */
599 DWORD dwBufferLength
; /* length of data in data block */
600 DWORD dwBytesRecorded
;/* used for input only */
601 DWORD dwUser
; /* for client's use */
602 DWORD dwFlags
; /* assorted flags (see defines) */
603 struct midihdr_tag
*lpNext
; /* reserved for driver */
604 DWORD reserved
; /* reserved for driver */
605 DWORD dwOffset
; /* offset of playback in case of
607 DWORD dwReserved
[4]; /* reserved for driver */
608 } MIDIHDR_WIN32
, *LPMIDIHDR_WIN32
;
610 #define MHDR_DONE 0x00000001 /* done bit */
611 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
612 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
613 #define MHDR_ISSTRM 0x00000008 /* FIXME is this a correct
614 * value ? Win32 only*/
618 } MIDIPROPTEMPO
, *LPMIDIPROPTEMPO
;
623 } MIDIPROPTIMEDIV
, *LPMIDIPROPTIMEDIV
;
625 #define MIDIPROP_GET 0x40000000
626 #define MIDIPROP_SET 0x80000000
627 #define MIDIPROP_TEMPO 0x00000002
628 #define MIDIPROP_TIMEDIV 0x00000001
631 DWORD dwDeltaTime
; /* Time, in MIDI ticks, between the previous
632 * event and the current event. */
633 DWORD dwStreamID
; /* Reserved; must be zero. */
634 DWORD dwEvent
; /* event => see MEVT_XXX macros */
635 DWORD dwParms
[0]; /* extra pmts to dwEvent if F_LONG is set */
636 } MIDIEVENT
, *LPMIDIEVENT
;
638 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
639 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
641 #define MEVT_F_CALLBACK 0x40000000
642 #define MEVT_F_LONG 0x80000000
643 #define MEVT_F_SHORT 0x00000000
644 #define MEVT_COMMENT 0x82
645 #define MEVT_LONGMSG 0x80
646 #define MEVT_NOP 0x02
647 #define MEVT_SHORTMSG 0x00
648 #define MEVT_TEMPO 0x01
649 #define MEVT_VERSION 0x84
651 UINT16 WINAPI
midiOutGetNumDevs16(void);
652 UINT32 WINAPI
midiOutGetNumDevs32(void);
653 #define midiOutGetNumDevs WINELIB_NAME(midiOutGetNumDevs)
654 UINT16 WINAPI
midiOutGetDevCaps16(UINT16
,LPMIDIOUTCAPS16
,UINT16
);
655 UINT32 WINAPI
midiOutGetDevCaps32A(UINT32
,LPMIDIOUTCAPS32A
,UINT32
);
656 UINT32 WINAPI
midiOutGetDevCaps32W(UINT32
,LPMIDIOUTCAPS32W
,UINT32
);
657 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
658 UINT16 WINAPI
midiOutGetVolume16(UINT16
,DWORD
*);
659 UINT32 WINAPI
midiOutGetVolume32(UINT32
,DWORD
*);
660 #define midiOutGetVolume WINELIB_NAME(midiOutGetVolume)
661 UINT16 WINAPI
midiOutSetVolume16(UINT16
,DWORD
);
662 UINT32 WINAPI
midiOutSetVolume32(UINT32
,DWORD
);
663 #define midiOutSetVolume WINELIB_NAME(midiOutSetVolume)
664 UINT16 WINAPI
midiOutGetErrorText16(UINT16
,LPSTR
,UINT16
);
665 UINT32 WINAPI
midiOutGetErrorText32A(UINT32
,LPSTR
,UINT32
);
666 UINT32 WINAPI
midiOutGetErrorText32W(UINT32
,LPWSTR
,UINT32
);
667 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
668 UINT16 WINAPI
midiGetErrorText(UINT16
,LPSTR
,UINT16
);
669 UINT16 WINAPI
midiOutOpen16(HMIDIOUT16
*,UINT16
,DWORD
,DWORD
,DWORD
);
670 UINT32 WINAPI
midiOutOpen32(HMIDIOUT32
*,UINT32
,DWORD
,DWORD
,DWORD
);
671 #define midiOutOpen WINELIB_NAME(midiOutOpen)
672 UINT16 WINAPI
midiOutClose16(HMIDIOUT16
);
673 UINT32 WINAPI
midiOutClose32(HMIDIOUT32
);
674 #define midiOutClose WINELIB_NAME(midiOutClose)
675 UINT16 WINAPI
midiOutPrepareHeader16(HMIDIOUT16
,MIDIHDR
*,UINT16
);
676 UINT32 WINAPI
midiOutPrepareHeader32(HMIDIOUT32
,MIDIHDR
*,UINT32
);
677 #define midiOutPrepareHeader WINELIB_NAME(midiOutPrepareHeader)
678 UINT16 WINAPI
midiOutUnprepareHeader16(HMIDIOUT16
,MIDIHDR
*,UINT16
);
679 UINT32 WINAPI
midiOutUnprepareHeader32(HMIDIOUT32
,MIDIHDR
*,UINT32
);
680 #define midiOutUnprepareHeader WINELIB_NAME(midiOutUnprepareHeader)
681 UINT16 WINAPI
midiOutShortMsg16(HMIDIOUT16
,DWORD
);
682 UINT32 WINAPI
midiOutShortMsg32(HMIDIOUT32
,DWORD
);
683 #define midiOutShortMsg WINELIB_NAME(midiOutShortMsg)
684 UINT16 WINAPI
midiOutLongMsg16(HMIDIOUT16
,MIDIHDR
*,UINT16
);
685 UINT32 WINAPI
midiOutLongMsg32(HMIDIOUT32
,MIDIHDR
*,UINT32
);
686 #define midiOutLongMsg WINELIB_NAME(midiOutLongMsg)
687 UINT16 WINAPI
midiOutReset16(HMIDIOUT16
);
688 UINT32 WINAPI
midiOutReset32(HMIDIOUT32
);
689 #define midiOutReset WINELIB_NAME(midiOutReset)
690 UINT16 WINAPI
midiOutCachePatches16(HMIDIOUT16
,UINT16
,WORD
*,UINT16
);
691 UINT32 WINAPI
midiOutCachePatches32(HMIDIOUT32
,UINT32
,WORD
*,UINT32
);
692 #define midiOutCachePatches WINELIB_NAME(midiOutCachePatches)
693 UINT16 WINAPI
midiOutCacheDrumPatches16(HMIDIOUT16
,UINT16
,WORD
*,UINT16
);
694 UINT32 WINAPI
midiOutCacheDrumPatches32(HMIDIOUT32
,UINT32
,WORD
*,UINT32
);
695 #define midiOutCacheDrumPatches WINELIB_NAME(midiOutCacheDrumPatches)
696 UINT16 WINAPI
midiOutGetID16(HMIDIOUT16
,UINT16
*);
697 UINT32 WINAPI
midiOutGetID32(HMIDIOUT32
,UINT32
*);
698 #define midiOutGetID WINELIB_NAME(midiOutGetID)
700 DWORD WINAPI
midiOutMessage16(HMIDIOUT16
,UINT16
,DWORD
,DWORD
);
701 DWORD WINAPI
midiOutMessage32(HMIDIOUT32
,UINT32
,DWORD
,DWORD
);
702 #define midiOutMessage WINELIB_NAME(midiOutMessage)
704 UINT16 WINAPI
midiInGetNumDevs16(void);
705 UINT32 WINAPI
midiInGetNumDevs32(void);
706 #define midiInGetNumDevs WINELIB_NAME(midiInGetNumDevs)
707 UINT16 WINAPI
midiInGetDevCaps16(UINT16
,LPMIDIINCAPS16
,UINT16
);
708 UINT32 WINAPI
midiInGetDevCaps32A(UINT32
,LPMIDIINCAPS32A
,UINT32
);
709 UINT32 WINAPI
midiInGetDevCaps32W(UINT32
,LPMIDIINCAPS32W
,UINT32
);
710 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
711 UINT16 WINAPI
midiInGetErrorText16(UINT16
,LPSTR
,UINT16
);
712 UINT32 WINAPI
midiInGetErrorText32A(UINT32
,LPSTR
,UINT32
);
713 UINT32 WINAPI
midiInGetErrorText32W(UINT32
,LPWSTR
,UINT32
);
714 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
715 UINT16 WINAPI
midiInOpen16(HMIDIIN16
*,UINT16
,DWORD
,DWORD
,DWORD
);
716 UINT32 WINAPI
midiInOpen32(HMIDIIN32
*,UINT32
,DWORD
,DWORD
,DWORD
);
717 #define midiInOpen WINELIB_NAME(midiInOpen)
718 UINT16 WINAPI
midiInClose16(HMIDIIN16
);
719 UINT32 WINAPI
midiInClose32(HMIDIIN32
);
720 #define midiInClose WINELIB_NAME(midiInClose)
721 UINT16 WINAPI
midiInPrepareHeader16(HMIDIIN16
,MIDIHDR
*,UINT16
);
722 UINT32 WINAPI
midiInPrepareHeader32(HMIDIIN32
,MIDIHDR
*,UINT32
);
723 #define midiInPrepareHeader WINELIB_NAME(midiInPrepareHeader)
724 UINT16 WINAPI
midiInUnprepareHeader16(HMIDIIN16
,MIDIHDR
*,UINT16
);
725 UINT32 WINAPI
midiInUnprepareHeader32(HMIDIIN32
,MIDIHDR
*,UINT32
);
726 #define midiInUnprepareHeader WINELIB_NAME(midiInUnprepareHeader)
727 UINT16 WINAPI
midiInAddBuffer16(HMIDIIN16
,MIDIHDR
*,UINT16
);
728 UINT32 WINAPI
midiInAddBuffer32(HMIDIIN32
,MIDIHDR
*,UINT32
);
729 #define midiInAddBuffer WINELIB_NAME(midiInAddBuffer)
730 UINT16 WINAPI
midiInStart16(HMIDIIN16
);
731 UINT32 WINAPI
midiInStart32(HMIDIIN32
);
732 #define midiInStart WINELIB_NAME(midiInStart)
733 UINT16 WINAPI
midiInStop16(HMIDIIN16
);
734 UINT32 WINAPI
midiInStop32(HMIDIIN32
);
735 #define midiInStop WINELIB_NAME(midiInStop)
736 UINT16 WINAPI
midiInReset16(HMIDIIN16
);
737 UINT32 WINAPI
midiInReset32(HMIDIIN32
);
738 #define midiInReset WINELIB_NAME(midiInReset)
739 UINT16 WINAPI
midiInGetID16(HMIDIIN16
,UINT16
*);
740 UINT32 WINAPI
midiInGetID32(HMIDIIN32
,UINT32
*);
741 #define midiInGetID WINELIB_NAME(midiInGetID)
742 DWORD WINAPI
midiInMessage16(HMIDIIN16
,UINT16
,DWORD
,DWORD
);
743 DWORD WINAPI
midiInMessage32(HMIDIIN32
,UINT32
,DWORD
,DWORD
);
744 #define midiInMessage WINELIB_NAME(midiInMessage)
746 MMRESULT16 WINAPI
midiStreamClose16(HMIDISTRM16 hms
);
747 MMRESULT32 WINAPI
midiStreamClose32(HMIDISTRM32 hms
);
748 #define midiStreamClose WINELIB_NAME(midiStreamClose)
749 MMRESULT32 WINAPI
midiStreamOpen32(HMIDISTRM32
* phms
, LPUINT32 uDeviceID
, DWORD cMidi
,
750 DWORD dwCallback
, DWORD dwInstance
, DWORD fdwOpen
);
751 MMRESULT16 WINAPI
midiStreamOpen16(HMIDISTRM16
* phms
, LPUINT16 devid
, DWORD cMidi
,
752 DWORD dwCallback
, DWORD dwInstance
, DWORD fdwOpen
);
753 #define midiStreamOpen WINELIB_NAME(midiStreamOpen)
754 MMRESULT16 WINAPI
midiStreamOut16(HMIDISTRM16 hms
, LPMIDIHDR lpMidiHdr
, UINT16 cbMidiHdr
);
755 MMRESULT32 WINAPI
midiStreamOut32(HMIDISTRM32 hms
, LPMIDIHDR lpMidiHdr
, UINT32 cbMidiHdr
);
756 #define midiStreamOut WINELIB_NAME(midiStreamOut)
757 MMRESULT16 WINAPI
midiStreamPause16(HMIDISTRM16 hms
);
758 MMRESULT32 WINAPI
midiStreamPause32(HMIDISTRM32 hms
);
759 #define midiStreamPause WINELIB_NAME(midiStreamPause)
760 MMRESULT16 WINAPI
midiStreamPosition16(HMIDISTRM16 hms
, LPMMTIME16 lpmmt
, UINT16 cbmmt
);
761 MMRESULT32 WINAPI
midiStreamPosition32(HMIDISTRM32 hms
, LPMMTIME32 lpmmt
, UINT32 cbmmt
);
762 #define midiStreamPosition WINELIB_NAME(midiStreamPosition)
763 MMRESULT16 WINAPI
midiStreamProperty16(HMIDISTRM16 hms
, LPBYTE lpPropData
, DWORD dwProperty
);
764 MMRESULT32 WINAPI
midiStreamProperty32(HMIDISTRM32 hms
, LPBYTE lpPropData
, DWORD dwProperty
);
765 #define midiStreamProperty WINELIB_NAME(midiStreamProperty)
766 MMRESULT16 WINAPI
midiStreamRestart16(HMIDISTRM16 hms
);
767 MMRESULT32 WINAPI
midiStreamRestart32(HMIDISTRM32 hms
);
768 #define midiStreamRestart WINELIB_NAME(midiStreamRestart)
769 MMRESULT16 WINAPI
midiStreamStop16(HMIDISTRM16 hms
);
770 MMRESULT32 WINAPI
midiStreamStop32(HMIDISTRM32 hms
);
771 #define midiStreamStop WINELIB_NAME(midiStreamStop)
773 #define AUX_MAPPER (-1)
776 WORD wMid
; /* manufacturer ID */
777 WORD wPid
; /* product ID */
778 MMVERSION16 vDriverVersion
; /* version of the driver */
779 CHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
780 WORD wTechnology
; /* type of device */
781 DWORD dwSupport
; /* functionality supported by driver */
782 } AUXCAPS16
, *LPAUXCAPS16
;
785 WORD wMid
; /* manufacturer ID */
786 WORD wPid
; /* product ID */
787 MMVERSION32 vDriverVersion
; /* version of the driver */
788 CHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
789 WORD wTechnology
; /* type of device */
790 WORD wReserved1
; /* padding */
791 DWORD dwSupport
; /* functionality supported by driver */
792 } AUXCAPS32A
, *LPAUXCAPS32A
;
795 WORD wMid
; /* manufacturer ID */
796 WORD wPid
; /* product ID */
797 MMVERSION32 vDriverVersion
; /* version of the driver */
798 WCHAR szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
799 WORD wTechnology
; /* type of device */
800 WORD wReserved1
; /* padding */
801 DWORD dwSupport
; /* functionality supported by driver */
802 } AUXCAPS32W
, *LPAUXCAPS32W
;
804 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
805 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
807 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
808 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
810 UINT16 WINAPI
auxGetNumDevs16(void);
811 UINT32 WINAPI
auxGetNumDevs32(void);
812 #define auxGetNumDevs WINELIB_NAME(auxGetNumDevs)
813 UINT16 WINAPI
auxGetDevCaps16 (UINT16
,LPAUXCAPS16
,UINT16
);
814 UINT32 WINAPI
auxGetDevCaps32A(UINT32
,LPAUXCAPS32A
,UINT32
);
815 UINT32 WINAPI
auxGetDevCaps32W(UINT32
,LPAUXCAPS32W
,UINT32
);
816 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
817 UINT16 WINAPI
auxSetVolume16(UINT16
,DWORD
);
818 UINT32 WINAPI
auxSetVolume32(UINT32
,DWORD
);
819 #define auxSetVolume WINELIB_NAME(auxSetVolume)
821 UINT16 WINAPI
auxGetVolume16(UINT16
,LPDWORD
);
822 UINT32 WINAPI
auxGetVolume32(UINT32
,LPDWORD
);
823 #define auxGetVolume WINELIB_NAME(auxGetVolume)
825 DWORD WINAPI
auxOutMessage16(UINT16
,UINT16
,DWORD
,DWORD
);
826 DWORD WINAPI
auxOutMessage32(UINT32
,UINT32
,DWORD
,DWORD
);
827 #define auxOutMessage WINELIB_NAME(auxOutMessage)
829 #define TIMERR_NOERROR (0) /* no error */
830 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
831 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
833 typedef void (CALLBACK
*LPTIMECALLBACK16
)(UINT16 uTimerID
, UINT16 uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
834 typedef void (CALLBACK
*LPTIMECALLBACK32
)(UINT32 uTimerID
, UINT32 uMessage
, DWORD dwUser
, DWORD dw1
, DWORD dw2
);
835 DECL_WINELIB_TYPE(LPTIMECALLBACK
)
837 #define TIME_ONESHOT 0x0000 /* program timer for single event */
838 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
839 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
840 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
841 #define TIME_CALLBACK_EVENT_PULSE 0x0020/* callback is event - use PulseEvent */
844 UINT16 wPeriodMin
; /* minimum period supported */
845 UINT16 wPeriodMax
; /* maximum period supported */
846 } TIMECAPS16
,*LPTIMECAPS16
;
851 } TIMECAPS32
, *LPTIMECAPS32
;
853 DECL_WINELIB_TYPE(TIMECAPS
)
854 DECL_WINELIB_TYPE(LPTIMECAPS
)
856 MMRESULT16 WINAPI
timeGetSystemTime16(LPMMTIME16
,UINT16
);
857 MMRESULT32 WINAPI
timeGetSystemTime32(LPMMTIME32
,UINT32
);
858 #define timeGetSystemTime WINELIB_NAME(timeGetSystemTime)
859 DWORD WINAPI
timeGetTime(void); /* same for win32/win16 */
860 MMRESULT16 WINAPI
timeSetEvent16(UINT16
,UINT16
,LPTIMECALLBACK16
,DWORD
,UINT16
);
861 MMRESULT32 WINAPI
timeSetEvent32(UINT32
,UINT32
,LPTIMECALLBACK32
,DWORD
,UINT32
);
862 #define timeSetEvent WINELIB_NAME(timeSetEvent)
863 MMRESULT16 WINAPI
timeKillEvent16(UINT16
);
864 MMRESULT32 WINAPI
timeKillEvent32(UINT32
);
865 #define timeKillEvent WINELIB_NAME(timeKillEvent)
866 MMRESULT16 WINAPI
timeGetDevCaps16(LPTIMECAPS16
,UINT16
);
867 MMRESULT32 WINAPI
timeGetDevCaps32(LPTIMECAPS32
,UINT32
);
868 #define timeGetDevCaps WINELIB_NAME(timeGetDevCaps)
869 MMRESULT16 WINAPI
timeBeginPeriod16(UINT16
);
870 MMRESULT32 WINAPI
timeBeginPeriod32(UINT32
);
871 #define timeBeginPeriod WINELIB_NAME(timeBeginPeriod)
872 MMRESULT16 WINAPI
timeEndPeriod16(UINT16
);
873 MMRESULT32 WINAPI
timeEndPeriod32(UINT32
);
874 #define timeEndPeriod WINELIB_NAME(timeEndPeriod)
876 #define JOYERR_NOERROR (0) /* no error */
877 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
878 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
879 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
881 /* JOYINFO, JOYINFOEX, MM_JOY* */
882 #define JOY_BUTTON1 0x0001
883 #define JOY_BUTTON2 0x0002
884 #define JOY_BUTTON3 0x0004
885 #define JOY_BUTTON4 0x0008
886 #define JOY_BUTTON1CHG 0x0100
887 #define JOY_BUTTON2CHG 0x0200
888 #define JOY_BUTTON3CHG 0x0400
889 #define JOY_BUTTON4CHG 0x0800
891 #define JOYSTICKID1 0
892 #define JOYSTICKID2 1
895 #define JOYCAPS_HASZ 0x0001
896 #define JOYCAPS_HASR 0x0002
897 #define JOYCAPS_HASU 0x0004
898 #define JOYCAPS_HASV 0x0008
899 #define JOYCAPS_HASPOV 0x0010
900 #define JOYCAPS_POV4DIR 0x0020
901 #define JOYCAPS_POVCTS 0x0040
903 /* JOYINFOEX stuff */
904 #define JOY_POVCENTERED (WORD) -1
905 #define JOY_POVFORWARD 0
906 #define JOY_POVRIGHT 9000
907 #define JOY_POVBACKWARD 18000
908 #define JOY_POVLEFT 27000
910 #define JOY_RETURNX 0x00000001
911 #define JOY_RETURNY 0x00000002
912 #define JOY_RETURNZ 0x00000004
913 #define JOY_RETURNR 0x00000008
914 #define JOY_RETURNU 0x00000010
915 #define JOY_RETURNV 0x00000020
916 #define JOY_RETURNPOV 0x00000040
917 #define JOY_RETURNBUTTONS 0x00000080
918 #define JOY_RETURNRAWDATA 0x00000100
919 #define JOY_RETURNPOVCTS 0x00000200
920 #define JOY_RETURNCENTERED 0x00000400
921 #define JOY_USEDEADZONE 0x00000800
922 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
923 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
924 JOY_RETURNPOV | JOY_RETURNBUTTONS)
925 #define JOY_CAL_READALWAYS 0x00010000
926 #define JOY_CAL_READXYONLY 0x00020000
927 #define JOY_CAL_READ3 0x00040000
928 #define JOY_CAL_READ4 0x00080000
929 #define JOY_CAL_READXONLY 0x00100000
930 #define JOY_CAL_READYONLY 0x00200000
931 #define JOY_CAL_READ5 0x00400000
932 #define JOY_CAL_READ6 0x00800000
933 #define JOY_CAL_READZONLY 0x01000000
934 #define JOY_CAL_READRONLY 0x02000000
935 #define JOY_CAL_READUONLY 0x04000000
936 #define JOY_CAL_READVONLY 0x08000000
939 WORD wMid
; /* manufacturer ID */
940 WORD wPid
; /* product ID */
941 char szPname
[MAXPNAMELEN
]; /* product name (NULL terminated string) */
942 UINT16 wXmin
; /* minimum x position value */
943 UINT16 wXmax
; /* maximum x position value */
944 UINT16 wYmin
; /* minimum y position value */
945 UINT16 wYmax
; /* maximum y position value */
946 UINT16 wZmin
; /* minimum z position value */
947 UINT16 wZmax
; /* maximum z position value */
948 UINT16 wNumButtons
; /* number of buttons */
949 UINT16 wPeriodMin
; /* minimum message period when captured */
950 UINT16 wPeriodMax
; /* maximum message period when captured */
951 /* win95,nt4 additions: */
952 UINT16 wRmin
; /* minimum r position value */
953 UINT16 wRmax
; /* maximum r position value */
954 UINT16 wUmin
; /* minimum u (5th axis) position value */
955 UINT16 wUmax
; /* maximum u (5th axis) position value */
956 UINT16 wVmin
; /* minimum v (6th axis) position value */
957 UINT16 wVmax
; /* maximum v (6th axis) position value */
958 UINT16 wCaps
; /* joystick capabilites */
959 UINT16 wMaxAxes
; /* maximum number of axes supported */
960 UINT16 wNumAxes
; /* number of axes in use */
961 UINT16 wMaxButtons
; /* maximum number of buttons supported */
962 CHAR szRegKey
[MAXPNAMELEN
]; /* registry key */
963 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
]; /* OEM VxD in use */
964 } JOYCAPS16
, *LPJOYCAPS16
;
969 CHAR szPname
[MAXPNAMELEN
];
989 CHAR szRegKey
[MAXPNAMELEN
];
990 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
991 } JOYCAPS32A
, *LPJOYCAPS32A
;
996 WCHAR szPname
[MAXPNAMELEN
];
1016 WCHAR szRegKey
[MAXPNAMELEN
];
1017 WCHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
1018 } JOYCAPS32W
, *LPJOYCAPS32W
;
1019 DECL_WINELIB_TYPE_AW(JOYCAPS
)
1020 DECL_WINELIB_TYPE_AW(LPJOYCAPS
)
1023 UINT16 wXpos
; /* x position */
1024 UINT16 wYpos
; /* y position */
1025 UINT16 wZpos
; /* z position */
1026 UINT16 wButtons
; /* button states */
1027 } JOYINFO16
, *LPJOYINFO16
;
1034 } JOYINFO32
, *LPJOYINFO32
;
1037 DWORD dwSize
; /* size of structure */
1038 DWORD dwFlags
; /* flags to indicate what to return */
1039 DWORD dwXpos
; /* x position */
1040 DWORD dwYpos
; /* y position */
1041 DWORD dwZpos
; /* z position */
1042 DWORD dwRpos
; /* rudder/4th axis position */
1043 DWORD dwUpos
; /* 5th axis position */
1044 DWORD dwVpos
; /* 6th axis position */
1045 DWORD dwButtons
; /* button states */
1046 DWORD dwButtonNumber
; /* current button number pressed */
1047 DWORD dwPOV
; /* point of view state */
1048 DWORD dwReserved1
; /* reserved for communication between winmm & driver */
1049 DWORD dwReserved2
; /* reserved for future expansion */
1050 } JOYINFOEX
,*LPJOYINFOEX
;
1052 DECL_WINELIB_TYPE(JOYINFO
)
1053 DECL_WINELIB_TYPE(LPJOYINFO
)
1055 MMRESULT16 WINAPI
joyGetDevCaps16 (UINT16
,LPJOYCAPS16
,UINT16
);
1056 MMRESULT32 WINAPI
joyGetDevCaps32A(UINT32
,LPJOYCAPS32A
,UINT32
);
1057 MMRESULT32 WINAPI
joyGetDevCaps32W(UINT32
,LPJOYCAPS32W
,UINT32
);
1058 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
1059 UINT16 WINAPI
joyGetNumDevs16(void);
1060 UINT32 WINAPI
joyGetNumDevs32(void);
1061 #define joyGetNumDevs WINELIB_NAME(joyGetNumDevs)
1062 MMRESULT16 WINAPI
joyGetPos16(UINT16
,LPJOYINFO16
);
1063 MMRESULT32 WINAPI
joyGetPos32(UINT32
,LPJOYINFO32
);
1064 #define joyGetPos WINELIB_NAME(joyGetPos)
1065 MMRESULT32 WINAPI
joyGetPosEx(UINT32
,LPJOYINFOEX
);
1066 MMRESULT16 WINAPI
joyGetThreshold16(UINT16
,UINT16
*);
1067 MMRESULT32 WINAPI
joyGetThreshold32(UINT32
,UINT32
*);
1068 #define joyGetThreshold WINELIB_NAME(joyGetThreshold)
1069 MMRESULT16 WINAPI
joyReleaseCapture16(UINT16
);
1070 MMRESULT32 WINAPI
joyReleaseCapture32(UINT32
);
1071 #define joyReleaseCapture WINELIB_NAME(joyReleaseCapture)
1072 MMRESULT16 WINAPI
joySetCapture16(HWND16
,UINT16
,UINT16
,BOOL16
);
1073 MMRESULT32 WINAPI
joySetCapture32(HWND32
,UINT32
,UINT32
,BOOL32
);
1074 #define joySetCapture WINELIB_NAME(joySetCapture)
1075 MMRESULT16 WINAPI
joySetThreshold16(UINT16
,UINT16
);
1076 MMRESULT32 WINAPI
joySetThreshold32(UINT32
,UINT32
);
1077 #define joySetThreshold WINELIB_NAME(joySetThreshold)
1080 WORD wMid
; /* manufacturer id */
1081 WORD wPid
; /* product id */
1082 MMVERSION16 vDriverVersion
; /* version of the driver */
1083 CHAR szPname
[MAXPNAMELEN
]; /* product name */
1084 DWORD fdwSupport
; /* misc. support bits */
1085 DWORD cDestinations
; /* count of destinations */
1086 } MIXERCAPS16
,*LPMIXERCAPS16
;
1091 MMVERSION32 vDriverVersion
;
1092 CHAR szPname
[MAXPNAMELEN
];
1094 DWORD cDestinations
;
1095 } MIXERCAPS32A
,*LPMIXERCAPS32A
;
1100 MMVERSION32 vDriverVersion
;
1101 WCHAR szPname
[MAXPNAMELEN
];
1103 DWORD cDestinations
;
1104 } MIXERCAPS32W
,*LPMIXERCAPS32W
;
1106 DECL_WINELIB_TYPE_AW(MIXERCAPS
)
1107 DECL_WINELIB_TYPE_AW(LPMIXERCAPS
)
1109 #define MIXER_SHORT_NAME_CHARS 16
1110 #define MIXER_LONG_NAME_CHARS 64
1112 /* MIXERLINE.fdwLine */
1113 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1114 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1115 #define MIXERLINE_LINEF_SOURCE 0x80000000
1117 /* MIXERLINE.dwComponentType */
1118 /* component types for destinations and sources */
1119 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1120 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1121 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1122 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1123 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1124 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1125 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1126 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1127 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1128 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1129 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1131 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1132 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1133 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1134 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1135 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1136 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1137 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1138 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1139 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1140 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1141 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1142 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1143 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1145 /* MIXERLINE.Target.dwType */
1146 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1147 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1148 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1149 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1150 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1151 #define MIXERLINE_TARGETTYPE_AUX 5
1154 DWORD cbStruct
; /* size of MIXERLINE structure */
1155 DWORD dwDestination
; /* zero based destination index */
1156 DWORD dwSource
; /* zero based source index (if source) */
1157 DWORD dwLineID
; /* unique line id for mixer device */
1158 DWORD fdwLine
; /* state/information about line */
1159 DWORD dwUser
; /* driver specific information */
1160 DWORD dwComponentType
; /* component type line connects to */
1161 DWORD cChannels
; /* number of channels line supports */
1162 DWORD cConnections
; /* number of connections [possible] */
1163 DWORD cControls
; /* number of controls at this line */
1164 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1165 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1167 DWORD dwType
; /* MIXERLINE_TARGETTYPE_xxxx */
1168 DWORD dwDeviceID
; /* target device ID of device type */
1169 WORD wMid
; /* of target device */
1171 MMVERSION16 vDriverVersion
; /* " */
1172 CHAR szPname
[MAXPNAMELEN
]; /* " */
1174 } MIXERLINE16
, *LPMIXERLINE16
;
1178 DWORD dwDestination
;
1183 DWORD dwComponentType
;
1187 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1188 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1194 MMVERSION32 vDriverVersion
;
1195 CHAR szPname
[MAXPNAMELEN
];
1197 } MIXERLINE32A
, *LPMIXERLINE32A
;
1201 DWORD dwDestination
;
1206 DWORD dwComponentType
;
1210 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1211 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1217 MMVERSION32 vDriverVersion
;
1218 WCHAR szPname
[MAXPNAMELEN
];
1220 } MIXERLINE32W
, *LPMIXERLINE32W
;
1222 DECL_WINELIB_TYPE_AW(MIXERLINE
)
1223 DECL_WINELIB_TYPE_AW(LPMIXERLINE
)
1225 /* MIXERCONTROL.fdwControl */
1226 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1227 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1228 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1230 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1231 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1232 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1233 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1234 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1235 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1236 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1237 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1238 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1239 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1241 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1243 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1244 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1246 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1248 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1249 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1251 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1252 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1254 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1255 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1256 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1257 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1258 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1259 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1260 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1262 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1263 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1264 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1265 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1266 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1267 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1268 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1269 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1270 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1271 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1272 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1273 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1274 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1275 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1276 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1277 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1278 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1279 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1280 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1281 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1282 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1283 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1284 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1285 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1286 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1287 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1288 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1289 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1290 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1291 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1292 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1296 DWORD cbStruct
; /* size in bytes of MIXERCONTROL */
1297 DWORD dwControlID
; /* unique control id for mixer device */
1298 DWORD dwControlType
; /* MIXERCONTROL_CONTROLTYPE_xxx */
1299 DWORD fdwControl
; /* MIXERCONTROL_CONTROLF_xxx */
1300 DWORD cMultipleItems
; /* if MIXERCONTROL_CONTROLF_MULTIPLE set */
1301 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1302 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1305 LONG lMinimum
; /* signed minimum for this control */
1306 LONG lMaximum
; /* signed maximum for this control */
1309 DWORD dwMinimum
; /* unsigned minimum for this control */
1310 DWORD dwMaximum
; /* unsigned maximum for this control */
1312 DWORD dwReserved
[6];
1315 DWORD cSteps
; /* # of steps between min & max */
1316 DWORD cbCustomData
; /* size in bytes of custom data */
1317 DWORD dwReserved
[6]; /* !!! needed? we have cbStruct.... */
1319 } MIXERCONTROL16
, *LPMIXERCONTROL16
;
1324 DWORD dwControlType
;
1326 DWORD cMultipleItems
;
1327 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1328 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1338 DWORD dwReserved
[6];
1343 DWORD dwReserved
[6];
1345 } MIXERCONTROL32A
, *LPMIXERCONTROL32A
;
1350 DWORD dwControlType
;
1352 DWORD cMultipleItems
;
1353 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1354 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1364 DWORD dwReserved
[6];
1369 DWORD dwReserved
[6];
1371 } MIXERCONTROL32W
, *LPMIXERCONTROL32W
;
1373 DECL_WINELIB_TYPE_AW(MIXERCONTROL
)
1374 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL
)
1377 DWORD cbStruct
; /* size in bytes of MIXERLINECONTROLS */
1378 DWORD dwLineID
; /* line id (from MIXERLINE.dwLineID) */
1380 DWORD dwControlID
; /* MIXER_GETLINECONTROLSF_ONEBYID */
1381 DWORD dwControlType
; /* MIXER_GETLINECONTROLSF_ONEBYTYPE */
1383 DWORD cControls
; /* count of controls pmxctrl points to */
1384 DWORD cbmxctrl
; /* size in bytes of _one_ MIXERCONTROL */
1385 LPMIXERCONTROL16 pamxctrl
;/* pointer to first MIXERCONTROL array */
1386 } MIXERLINECONTROLS16
, *LPMIXERLINECONTROLS16
;
1393 DWORD dwControlType
;
1397 LPMIXERCONTROL32A pamxctrl
;
1398 } MIXERLINECONTROLS32A
, *LPMIXERLINECONTROLS32A
;
1405 DWORD dwControlType
;
1409 LPMIXERCONTROL32W pamxctrl
;
1410 } MIXERLINECONTROLS32W
, *LPMIXERLINECONTROLS32W
;
1412 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS
)
1413 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS
)
1416 DWORD cbStruct
; /* size in bytes of MIXERCONTROLDETAILS */
1417 DWORD dwControlID
; /* control id to get/set details on */
1418 DWORD cChannels
; /* number of channels in paDetails array */
1420 HWND16 hwndOwner
; /* for MIXER_SETCONTROLDETAILSF_CUSTOM */
1421 DWORD cMultipleItems
; /* if _MULTIPLE, the number of items per channel */
1423 DWORD cbDetails
; /* size of _one_ details_XX struct */
1424 LPVOID paDetails
; /* pointer to array of details_XX structs */
1425 } MIXERCONTROLDETAILS16
,*LPMIXERCONTROLDETAILS16
;
1433 DWORD cMultipleItems
;
1437 } MIXERCONTROLDETAILS32
,*LPMIXERCONTROLDETAILS32
;
1439 DECL_WINELIB_TYPE(MIXERCONTROLDETAILS
)
1440 DECL_WINELIB_TYPE(LPMIXERCONTROLDETAILS
)
1445 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1446 } MIXERCONTROLDETAILS_LISTTEXT16
,*LPMIXERCONTROLDETAILS_LISTTEXT16
;
1451 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1452 } MIXERCONTROLDETAILS_LISTTEXT32A
,*LPMIXERCONTROLDETAILS_LISTTEXT32A
;
1457 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1458 } MIXERCONTROLDETAILS_LISTTEXT32W
,*LPMIXERCONTROLDETAILS_LISTTEXT32W
;
1460 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT
)
1461 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT
)
1463 /* MIXER_GETCONTROLDETAILSF_VALUE */
1466 } MIXERCONTROLDETAILS_BOOLEAN
,*LPMIXERCONTROLDETAILS_BOOLEAN
;
1470 } MIXERCONTROLDETAILS_SIGNED
,*LPMIXERCONTROLDETAILS_SIGNED
;
1474 } MIXERCONTROLDETAILS_UNSIGNED
,*LPMIXERCONTROLDETAILS_UNSIGNED
;
1476 /* bits passed to mixerGetLineInfo.fdwInfo */
1477 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1478 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1479 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1480 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1481 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1482 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1484 /* bitmask passed to mixerGetLineControl */
1485 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1486 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1487 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1488 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1490 /* bitmask passed to mixerGetControlDetails */
1491 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1492 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1493 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1495 /* bitmask passed to mixerSetControlDetails */
1496 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1497 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1498 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1500 UINT16 WINAPI
mixerGetNumDevs16(void);
1501 UINT32 WINAPI
mixerGetNumDevs32(void);
1502 #define mixerGetNumDevs WINELIB_NAME(mixerGetNumDevs)
1503 UINT16 WINAPI
mixerOpen16(LPHMIXER16
,UINT16
,DWORD
,DWORD
,DWORD
);
1504 UINT32 WINAPI
mixerOpen32(LPHMIXER32
,UINT32
,DWORD
,DWORD
,DWORD
);
1505 #define mixerOpen WINELIB_NAME(mixerOpen)
1506 UINT16 WINAPI
mixerClose16(HMIXER16
);
1507 UINT32 WINAPI
mixerClose32(HMIXER32
);
1508 #define mixerClose WINELIB_NAME(mixerClose)
1509 UINT16 WINAPI
mixerMessage16(HMIXER16
,UINT16
,DWORD
,DWORD
);
1510 UINT32 WINAPI
mixerMessage32(HMIXER32
,UINT32
,DWORD
,DWORD
);
1511 #define mixerMessage WINELIB_NAME(mixerMessage)
1512 UINT16 WINAPI
mixerGetDevCaps16(UINT16
,LPMIXERCAPS16
,UINT16
);
1513 UINT32 WINAPI
mixerGetDevCaps32A(UINT32
,LPMIXERCAPS32A
,UINT32
);
1514 UINT32 WINAPI
mixerGetDevCaps32W(UINT32
,LPMIXERCAPS32W
,UINT32
);
1515 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1516 UINT16 WINAPI
mixerGetLineInfo16(HMIXEROBJ16
,LPMIXERLINE16
,DWORD
);
1517 UINT32 WINAPI
mixerGetLineInfo32A(HMIXEROBJ32
,LPMIXERLINE32A
,DWORD
);
1518 UINT32 WINAPI
mixerGetLineInfo32W(HMIXEROBJ32
,LPMIXERLINE32W
,DWORD
);
1519 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1520 UINT16 WINAPI
mixerGetID16(HMIXEROBJ16
,LPUINT16
,DWORD
);
1521 UINT32 WINAPI
mixerGetID32(HMIXEROBJ32
,LPUINT32
,DWORD
);
1522 #define mixerGetID WINELIB_NAME(mixerGetID)
1523 UINT16 WINAPI
mixerGetLineControls16(HMIXEROBJ16
,LPMIXERLINECONTROLS16
,DWORD
);
1524 UINT32 WINAPI
mixerGetLineControls32A(HMIXEROBJ32
,LPMIXERLINECONTROLS32A
,DWORD
);
1525 UINT32 WINAPI
mixerGetLineControls32W(HMIXEROBJ32
,LPMIXERLINECONTROLS32W
,DWORD
);
1526 #define mixerGetLineControl WINELIB_NAME_AW(mixerGetLineControl)
1527 UINT16 WINAPI
mixerGetControlDetails16(HMIXEROBJ16
,LPMIXERCONTROLDETAILS16
,DWORD
);
1528 UINT32 WINAPI
mixerGetControlDetails32A(HMIXEROBJ32
,LPMIXERCONTROLDETAILS32
,DWORD
);
1529 UINT32 WINAPI
mixerGetControlDetails32W(HMIXEROBJ32
,LPMIXERCONTROLDETAILS32
,DWORD
);
1530 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1531 UINT16 WINAPI
mixerSetControlDetails16(HMIXEROBJ16
,LPMIXERCONTROLDETAILS16
,DWORD
);
1532 UINT32 WINAPI
mixerSetControlDetails32A(HMIXEROBJ16
,LPMIXERCONTROLDETAILS32
,DWORD
);
1533 UINT32 WINAPI
mixerSetControlDetails32W(HMIXEROBJ16
,LPMIXERCONTROLDETAILS32
,DWORD
);
1534 #define mixerSetControlDetails WINELIB_NAME_AW(mixerSetControlDetails)
1536 #define MMIOERR_BASE 256
1537 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1538 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1539 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1540 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1541 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1542 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1543 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1544 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1545 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1546 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1548 #define CFSEPCHAR '+' /* compound file name separator char. */
1550 typedef DWORD FOURCC
; /* a four character code */
1551 typedef LONG (CALLBACK
*LPMMIOPROC16
)(LPSTR lpmmioinfo
, UINT16 uMessage
,
1552 LPARAM lParam1
, LPARAM lParam2
);
1553 typedef LONG (CALLBACK
*LPMMIOPROC32
)(LPSTR lpmmioinfo
, UINT32 uMessage
,
1554 LPARAM lParam1
, LPARAM lParam2
);
1555 DECL_WINELIB_TYPE(LPMMIOPROC
)
1558 DWORD dwFlags
; /* general status flags */
1559 FOURCC fccIOProc
; /* pointer to I/O procedure */
1560 LPMMIOPROC16 pIOProc
; /* pointer to I/O procedure */
1561 UINT16 wErrorRet
; /* place for error to be returned */
1562 HTASK16 htask
; /* alternate local task */
1563 /* fields maintained by MMIO functions during buffered I/O */
1564 LONG cchBuffer
; /* size of I/O buffer (or 0L) */
1565 HPSTR pchBuffer
; /* start of I/O buffer (or NULL) */
1566 HPSTR pchNext
; /* pointer to next byte to read/write */
1567 HPSTR pchEndRead
; /* pointer to last valid byte to read */
1568 HPSTR pchEndWrite
; /* pointer to last byte to write */
1569 LONG lBufOffset
; /* disk offset of start of buffer */
1570 /* fields maintained by I/O procedure */
1571 LONG lDiskOffset
; /* disk offset of next read or write */
1572 DWORD adwInfo
[3]; /* data specific to type of MMIOPROC */
1573 /* other fields maintained by MMIO */
1574 DWORD dwReserved1
; /* reserved for MMIO use */
1575 DWORD dwReserved2
; /* reserved for MMIO use */
1576 HMMIO16 hmmio
; /* handle to open file */
1577 } MMIOINFO16
, *LPMMIOINFO16
;
1582 LPMMIOPROC32 pIOProc
;
1585 /* fields maintained by MMIO functions during buffered I/O */
1592 /* fields maintained by I/O procedure */
1595 /* other fields maintained by MMIO */
1599 } MMIOINFO32
, *LPMMIOINFO32
;
1601 typedef struct _MMCKINFO
1603 FOURCC ckid
; /* chunk ID */
1604 DWORD cksize
; /* chunk size */
1605 FOURCC fccType
; /* form type or list type */
1606 DWORD dwDataOffset
; /* offset of data portion of chunk */
1607 DWORD dwFlags
; /* flags used by MMIO functions */
1608 } MMCKINFO
, *LPMMCKINFO
;
1610 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1611 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1613 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1614 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1615 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1616 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1617 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1618 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1620 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1622 #define MMIO_READ 0x00000000 /* open file for reading only */
1623 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1624 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1626 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1627 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1628 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1629 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1630 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1632 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1633 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1634 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1635 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1636 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1637 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1638 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1639 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1640 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1641 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1642 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1643 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1649 #define MMIOM_READ MMIO_READ /* read */
1650 #define MMIOM_WRITE MMIO_WRITE /* write */
1651 #define MMIOM_SEEK 2 /* seek to a new position in file */
1652 #define MMIOM_OPEN 3 /* open file */
1653 #define MMIOM_CLOSE 4 /* close file */
1654 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1656 #define MMIOM_RENAME 6 /* rename specified file */
1658 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1660 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1661 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1663 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1664 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1666 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1668 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1669 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1670 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1672 LPMMIOPROC16 WINAPI
mmioInstallIOProc16(FOURCC
,LPMMIOPROC16
,DWORD
);
1673 LPMMIOPROC32 WINAPI
mmioInstallIOProc32A(FOURCC
,LPMMIOPROC32
,DWORD
);
1674 LPMMIOPROC32 WINAPI
mmioInstallIOProc32W(FOURCC
,LPMMIOPROC32
,DWORD
);
1675 #define mmioInstallIOPro WINELIB_NAME_AW(mmioInstallIOProc)
1677 FOURCC WINAPI
mmioStringToFOURCC16(LPCSTR
,UINT16
);
1678 FOURCC WINAPI
mmioStringToFOURCC32A(LPCSTR
,UINT32
);
1679 FOURCC WINAPI
mmioStringToFOURCC32W(LPCWSTR
,UINT32
);
1680 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1681 HMMIO16 WINAPI
mmioOpen16 (LPSTR
,MMIOINFO16
*,DWORD
);
1682 HMMIO32 WINAPI
mmioOpen32A(LPSTR
,MMIOINFO32
*,DWORD
);
1683 HMMIO32 WINAPI
mmioOpen32W(LPWSTR
,MMIOINFO32
*,DWORD
);
1684 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1686 UINT16 WINAPI
mmioRename16(LPCSTR szFileName
, LPCSTR szNewFileName
,
1687 MMIOINFO16
* lpmmioinfo
, DWORD dwRenameFlags
);
1688 UINT32 WINAPI
mmioRename32A(LPCSTR szFileName
, LPCSTR szNewFileName
,
1689 MMIOINFO32
* lpmmioinfo
, DWORD dwRenameFlags
);
1690 UINT32 WINAPI
mmioRename32W(LPCWSTR szFileName
, LPCWSTR szNewFileName
,
1691 MMIOINFO32
* lpmmioinfo
, DWORD dwRenameFlags
);
1692 #define mmioRename WINELIB_NAME_AW(mmioRename)
1694 MMRESULT16 WINAPI
mmioClose16(HMMIO16
,UINT16
);
1695 MMRESULT32 WINAPI
mmioClose32(HMMIO32
,UINT32
);
1696 #define mmioClose WINELIB_NAME(mmioClose)
1697 LONG WINAPI
mmioRead16(HMMIO16
,HPSTR
,LONG
);
1698 LONG WINAPI
mmioRead32(HMMIO32
,HPSTR
,LONG
);
1699 #define mmioRead WINELIB_NAME(mmioRead)
1700 LONG WINAPI
mmioWrite16(HMMIO16
,HPCSTR
,LONG
);
1701 LONG WINAPI
mmioWrite32(HMMIO32
,HPCSTR
,LONG
);
1702 #define mmioWrite WINELIB_NAME(mmioWrite)
1703 LONG WINAPI
mmioSeek16(HMMIO16
,LONG
,INT16
);
1704 LONG WINAPI
mmioSeek32(HMMIO32
,LONG
,INT32
);
1705 #define mmioSeek WINELIB_NAME(mmioSeek)
1706 MMRESULT16 WINAPI
mmioGetInfo16(HMMIO16
,MMIOINFO16
*,UINT16
);
1707 MMRESULT32 WINAPI
mmioGetInfo32(HMMIO32
,MMIOINFO32
*,UINT32
);
1708 #define mmioGetInfo WINELIB_NAME(mmioGetInfo)
1709 MMRESULT16 WINAPI
mmioSetInfo16(HMMIO16
,const MMIOINFO16
*,UINT16
);
1710 MMRESULT32 WINAPI
mmioSetInfo32(HMMIO32
,const MMIOINFO32
*,UINT32
);
1711 #define mmioSetInfo WINELIB_NAME(mmioSetInfo)
1712 UINT16 WINAPI
mmioSetBuffer16(HMMIO16
,LPSTR
,LONG
,UINT16
);
1713 UINT32 WINAPI
mmioSetBuffer32(HMMIO32
,LPSTR
,LONG
,UINT32
);
1714 #define mmioSetBuffer WINELIB_NAME(mmioSetInfo)
1715 UINT16 WINAPI
mmioFlush16(HMMIO16
,UINT16
);
1716 UINT32 WINAPI
mmioFlush32(HMMIO32
,UINT32
);
1717 #define mmioFlush WINELIB_NAME(mmioFlush)
1718 UINT16 WINAPI
mmioAdvance16(HMMIO16
,MMIOINFO16
*,UINT16
);
1719 UINT32 WINAPI
mmioAdvance32(HMMIO32
,MMIOINFO32
*,UINT32
);
1720 #define mmioAdvance WINELIB_NAME(mmioAdvance)
1721 LONG WINAPI
mmioSendMessage(HMMIO16
,UINT16
,LPARAM
,LPARAM
);
1722 UINT16 WINAPI
mmioDescend(HMMIO16
,MMCKINFO
*,const MMCKINFO
*,UINT16
);
1724 UINT16 WINAPI
mmioAscend16(HMMIO16
,MMCKINFO
*,UINT16
);
1725 UINT32 WINAPI
mmioAscend32(HMMIO32
,MMCKINFO
*,UINT32
);
1726 #define mmioAscend WINELIB_NAME(mmioAscend)
1727 UINT16 WINAPI
mmioCreateChunk16(HMMIO16
,MMCKINFO
*,UINT16
);
1728 UINT32 WINAPI
mmioCreateChunk32(HMMIO32
,MMCKINFO
*,UINT32
);
1729 #define mmioCreateChunk WINELIB_NAME(mmioAscend)
1731 typedef UINT16 (CALLBACK
*YIELDPROC
)(UINT16
,DWORD
);
1733 DWORD WINAPI
mciSendCommand16(UINT16
,UINT16
,DWORD
,DWORD
);
1734 DWORD WINAPI
mciSendCommand32A(UINT32
,UINT32
,DWORD
,DWORD
);
1735 DWORD WINAPI
mciSendCommand32W(UINT32
,UINT32
,DWORD
,DWORD
);
1736 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1738 DWORD WINAPI
mciSendString16(LPCSTR
,LPSTR
,UINT16
,HWND16
);
1739 DWORD WINAPI
mciSendString32A(LPCSTR
,LPSTR
,UINT32
,HWND32
);
1740 DWORD WINAPI
mciSendString32W(LPCWSTR
,LPSTR
,UINT32
,HWND32
);
1741 #define mciSendString WINELIB_NAME_AW(mciSendString)
1743 UINT16 WINAPI
mciGetDeviceID16(LPCSTR
);
1744 UINT32 WINAPI
mciGetDeviceID32A(LPCSTR
);
1745 UINT32 WINAPI
mciGetDeviceID32W(LPCWSTR
);
1746 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1748 UINT16 WINAPI
mciGetDeviceIDFromElementID16(DWORD
,LPCSTR
);
1750 BOOL16 WINAPI
mciGetErrorString16 (DWORD
,LPSTR
,UINT16
);
1751 BOOL32 WINAPI
mciGetErrorString32A(DWORD
,LPSTR
,UINT32
);
1752 BOOL32 WINAPI
mciGetErrorString32W(DWORD
,LPWSTR
,UINT32
);
1753 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1755 BOOL16 WINAPI
mciSetYieldProc16(UINT16
,YIELDPROC
,DWORD
);
1756 BOOL32 WINAPI
mciSetYieldProc32(UINT32
,YIELDPROC
,DWORD
);
1757 #define mciSetYieldProc WINELIB_NAME(mciSetYieldProc)
1759 HTASK16 WINAPI
mciGetCreatorTask16(UINT16
);
1760 HTASK32 WINAPI
mciGetCreatorTask32(UINT32
);
1761 #define mciGetCreatorTask WINELIB_NAME(mciGetCreatorTask)
1763 YIELDPROC WINAPI
mciGetYieldProc16(UINT16
,DWORD
*);
1764 YIELDPROC WINAPI
mciGetYieldProc32(UINT32
,DWORD
*);
1765 #define mciGetYieldProc WINELIB_NAME(mciGetYieldProc)
1767 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1768 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1769 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1770 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1771 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1772 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1773 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1774 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1775 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1776 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1777 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1778 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1779 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1780 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1781 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1782 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1783 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1784 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1785 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1786 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1787 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1788 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1789 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1790 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1791 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1792 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1793 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1794 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1795 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1796 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1797 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1798 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1799 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1800 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1801 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1802 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1803 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1804 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1805 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1806 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1807 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1808 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1809 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1810 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1811 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1812 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1813 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1814 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1815 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1816 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1817 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1818 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1820 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1821 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1822 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1823 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1824 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1825 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1826 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1827 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1828 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1829 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1831 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1832 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1833 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1834 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1835 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1836 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1837 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1838 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1840 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1841 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1842 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1843 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1845 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1847 #define MCI_OPEN_DRIVER 0x0801
1848 #define MCI_CLOSE_DRIVER 0x0802
1849 #define MCI_OPEN 0x0803
1850 #define MCI_CLOSE 0x0804
1851 #define MCI_ESCAPE 0x0805
1852 #define MCI_PLAY 0x0806
1853 #define MCI_SEEK 0x0807
1854 #define MCI_STOP 0x0808
1855 #define MCI_PAUSE 0x0809
1856 #define MCI_INFO 0x080A
1857 #define MCI_GETDEVCAPS 0x080B
1858 #define MCI_SPIN 0x080C
1859 #define MCI_SET 0x080D
1860 #define MCI_STEP 0x080E
1861 #define MCI_RECORD 0x080F
1862 #define MCI_SYSINFO 0x0810
1863 #define MCI_BREAK 0x0811
1864 #define MCI_SOUND 0x0812
1865 #define MCI_SAVE 0x0813
1866 #define MCI_STATUS 0x0814
1867 #define MCI_CUE 0x0830
1868 #define MCI_REALIZE 0x0840
1869 #define MCI_WINDOW 0x0841
1870 #define MCI_PUT 0x0842
1871 #define MCI_WHERE 0x0843
1872 #define MCI_FREEZE 0x0844
1873 #define MCI_UNFREEZE 0x0845
1874 #define MCI_LOAD 0x0850
1875 #define MCI_CUT 0x0851
1876 #define MCI_COPY 0x0852
1877 #define MCI_PASTE 0x0853
1878 #define MCI_UPDATE 0x0854
1879 #define MCI_RESUME 0x0855
1880 #define MCI_DELETE 0x0856
1882 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1884 #define MCI_ALL_DEVICE_ID 0xFFFF
1886 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1887 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1888 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1889 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1890 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1891 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1892 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1893 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1894 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1895 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1896 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1898 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1899 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1901 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1902 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1903 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1904 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1905 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1906 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1907 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1909 #define MCI_FORMAT_MILLISECONDS 0
1910 #define MCI_FORMAT_HMS 1
1911 #define MCI_FORMAT_MSF 2
1912 #define MCI_FORMAT_FRAMES 3
1913 #define MCI_FORMAT_SMPTE_24 4
1914 #define MCI_FORMAT_SMPTE_25 5
1915 #define MCI_FORMAT_SMPTE_30 6
1916 #define MCI_FORMAT_SMPTE_30DROP 7
1917 #define MCI_FORMAT_BYTES 8
1918 #define MCI_FORMAT_SAMPLES 9
1919 #define MCI_FORMAT_TMSF 10
1921 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1922 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1923 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1925 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1927 (((DWORD)(BYTE)(f))<<16)))
1929 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1930 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1931 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1932 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1934 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1936 (((DWORD)(BYTE)(s) | \
1937 ((WORD)(f)<<8))<<16)))
1939 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1940 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1941 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1943 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1945 (((DWORD)(BYTE)(s))<<16)))
1947 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1948 #define MCI_NOTIFY_SUPERSEDED 0x0002
1949 #define MCI_NOTIFY_ABORTED 0x0004
1950 #define MCI_NOTIFY_FAILURE 0x0008
1952 #define MCI_NOTIFY 0x00000001L
1953 #define MCI_WAIT 0x00000002L
1954 #define MCI_FROM 0x00000004L
1955 #define MCI_TO 0x00000008L
1956 #define MCI_TRACK 0x00000010L
1958 #define MCI_OPEN_SHAREABLE 0x00000100L
1959 #define MCI_OPEN_ELEMENT 0x00000200L
1960 #define MCI_OPEN_ALIAS 0x00000400L
1961 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1962 #define MCI_OPEN_TYPE_ID 0x00001000L
1963 #define MCI_OPEN_TYPE 0x00002000L
1965 #define MCI_SEEK_TO_START 0x00000100L
1966 #define MCI_SEEK_TO_END 0x00000200L
1968 #define MCI_STATUS_ITEM 0x00000100L
1969 #define MCI_STATUS_START 0x00000200L
1971 #define MCI_STATUS_LENGTH 0x00000001L
1972 #define MCI_STATUS_POSITION 0x00000002L
1973 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1974 #define MCI_STATUS_MODE 0x00000004L
1975 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1976 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1977 #define MCI_STATUS_READY 0x00000007L
1978 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1980 #define MCI_INFO_PRODUCT 0x00000100L
1981 #define MCI_INFO_FILE 0x00000200L
1983 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1985 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1986 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1987 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1988 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1989 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1990 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1991 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1992 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1993 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1995 #define MCI_SYSINFO_QUANTITY 0x00000100L
1996 #define MCI_SYSINFO_OPEN 0x00000200L
1997 #define MCI_SYSINFO_NAME 0x00000400L
1998 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
2000 #define MCI_SET_DOOR_OPEN 0x00000100L
2001 #define MCI_SET_DOOR_CLOSED 0x00000200L
2002 #define MCI_SET_TIME_FORMAT 0x00000400L
2003 #define MCI_SET_AUDIO 0x00000800L
2004 #define MCI_SET_VIDEO 0x00001000L
2005 #define MCI_SET_ON 0x00002000L
2006 #define MCI_SET_OFF 0x00004000L
2008 #define MCI_SET_AUDIO_ALL 0x00000000L
2009 #define MCI_SET_AUDIO_LEFT 0x00000001L
2010 #define MCI_SET_AUDIO_RIGHT 0x00000002L
2012 #define MCI_BREAK_KEY 0x00000100L
2013 #define MCI_BREAK_HWND 0x00000200L
2014 #define MCI_BREAK_OFF 0x00000400L
2016 #define MCI_RECORD_INSERT 0x00000100L
2017 #define MCI_RECORD_OVERWRITE 0x00000200L
2019 #define MCI_SOUND_NAME 0x00000100L
2021 #define MCI_SAVE_FILE 0x00000100L
2023 #define MCI_LOAD_FILE 0x00000100L
2027 } MCI_GENERIC_PARMS
, *LPMCI_GENERIC_PARMS
;
2033 LPSTR lpstrDeviceType
;
2034 LPSTR lpstrElementName
;
2036 } MCI_OPEN_PARMS16
, *LPMCI_OPEN_PARMS16
;
2040 MCIDEVICEID32 wDeviceID
;
2041 LPSTR lpstrDeviceType
;
2042 LPSTR lpstrElementName
;
2044 } MCI_OPEN_PARMS32A
, *LPMCI_OPEN_PARMS32A
;
2048 MCIDEVICEID32 wDeviceID
;
2049 LPWSTR lpstrDeviceType
;
2050 LPWSTR lpstrElementName
;
2052 } MCI_OPEN_PARMS32W
, *LPMCI_OPEN_PARMS32W
;
2054 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS
)
2055 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS
)
2061 } MCI_PLAY_PARMS
, *LPMCI_PLAY_PARMS
;
2066 } MCI_SEEK_PARMS
, *LPMCI_SEEK_PARMS
;
2073 } MCI_STATUS_PARMS
, *LPMCI_STATUS_PARMS
;
2079 } MCI_INFO_PARMS16
, *LPMCI_INFO_PARMS16
;
2085 } MCI_INFO_PARMS32A
, *LPMCI_INFO_PARMS32A
;
2091 } MCI_INFO_PARMS32W
, *LPMCI_INFO_PARMS32W
;
2093 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS
)
2094 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS
)
2100 } MCI_GETDEVCAPS_PARMS
, *LPMCI_GETDEVCAPS_PARMS
;
2109 } MCI_SYSINFO_PARMS16
, *LPMCI_SYSINFO_PARMS16
;
2117 } MCI_SYSINFO_PARMS32A
, *LPMCI_SYSINFO_PARMS32A
;
2125 } MCI_SYSINFO_PARMS32W
, *LPMCI_SYSINFO_PARMS32W
;
2127 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS
)
2128 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS
)
2134 } MCI_SET_PARMS
, *LPMCI_SET_PARMS
;
2142 } MCI_BREAK_PARMS16
, *LPMCI_BREAK_PARMS16
;
2148 } MCI_BREAK_PARMS32
, *LPMCI_BREAK_PARMS32
;
2150 DECL_WINELIB_TYPE(MCI_BREAK_PARMS
)
2151 DECL_WINELIB_TYPE(LPMCI_BREAK_PARMS
)
2155 LPCSTR lpstrSoundName
;
2156 } MCI_SOUND_PARMS
, *LPMCI_SOUND_PARMS
;
2161 } MCI_SAVE_PARMS
, *LPMCI_SAVE_PARMS
;
2166 } MCI_LOAD_PARMS16
, *LPMCI_LOAD_PARMS16
;
2171 } MCI_LOAD_PARMS32A
, *LPMCI_LOAD_PARMS32A
;
2176 } MCI_LOAD_PARMS32W
, *LPMCI_LOAD_PARMS32W
;
2178 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS
)
2179 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS
)
2185 } MCI_RECORD_PARMS
, *LPMCI_RECORD_PARMS
;
2187 /* FIXME: are those constants correct ? */
2188 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
2190 #define MCI_CDA_TRACK_AUDIO 0x00000440
2191 #define MCI_CDA_TRACK_OTHER 0x00000441
2193 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2195 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2196 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2197 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2199 #define MCI_VD_FORMAT_TRACK 0x4001
2201 #define MCI_VD_PLAY_REVERSE 0x00010000L
2202 #define MCI_VD_PLAY_FAST 0x00020000L
2203 #define MCI_VD_PLAY_SPEED 0x00040000L
2204 #define MCI_VD_PLAY_SCAN 0x00080000L
2205 #define MCI_VD_PLAY_SLOW 0x00100000L
2207 #define MCI_VD_SEEK_REVERSE 0x00010000L
2209 #define MCI_VD_STATUS_SPEED 0x00004002L
2210 #define MCI_VD_STATUS_FORWARD 0x00004003L
2211 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2212 #define MCI_VD_STATUS_SIDE 0x00004005L
2213 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2215 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2216 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2218 #define MCI_VD_SPIN_UP 0x00010000L
2219 #define MCI_VD_SPIN_DOWN 0x00020000L
2221 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2222 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2223 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2224 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2226 #define MCI_VD_STEP_FRAMES 0x00010000L
2227 #define MCI_VD_STEP_REVERSE 0x00020000L
2229 #define MCI_VD_ESCAPE_STRING 0x00000100L
2236 } MCI_VD_PLAY_PARMS
, *LPMCI_VD_PLAY_PARMS
;
2241 } MCI_VD_STEP_PARMS
, *LPMCI_VD_STEP_PARMS
;
2245 LPCSTR lpstrCommand
;
2246 } MCI_VD_ESCAPE_PARMS16
, *LPMCI_VD_ESCAPE_PARMS16
;
2250 LPCSTR lpstrCommand
;
2251 } MCI_VD_ESCAPE_PARMS32A
, *LPMCI_VD_ESCAPE_PARMS32A
;
2255 LPCWSTR lpstrCommand
;
2256 } MCI_VD_ESCAPE_PARMS32W
, *LPMCI_VD_ESCAPE_PARMS32W
;
2258 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS
)
2259 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS
)
2261 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
2263 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
2264 #define MCI_WAVE_SET_CHANNELS 0x00020000L
2265 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2266 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2267 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2268 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2270 #define MCI_WAVE_INPUT 0x00400000L
2271 #define MCI_WAVE_OUTPUT 0x00800000L
2273 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2274 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2275 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2276 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2277 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2278 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2279 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
2281 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
2282 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2284 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2285 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2289 MCIDEVICEID16 wDeviceID
;
2291 SEGPTR lpstrDeviceType
;
2292 SEGPTR lpstrElementName
;
2294 DWORD dwBufferSeconds
;
2295 } MCI_WAVE_OPEN_PARMS16
, *LPMCI_WAVE_OPEN_PARMS16
;
2299 MCIDEVICEID32 wDeviceID
;
2300 LPCSTR lpstrDeviceType
;
2301 LPCSTR lpstrElementName
;
2303 DWORD dwBufferSeconds
;
2304 } MCI_WAVE_OPEN_PARMS32A
, *LPMCI_WAVE_OPEN_PARMS32A
;
2308 MCIDEVICEID32 wDeviceID
;
2309 LPCWSTR lpstrDeviceType
;
2310 LPCWSTR lpstrElementName
;
2312 DWORD dwBufferSeconds
;
2313 } MCI_WAVE_OPEN_PARMS32W
, *LPMCI_WAVE_OPEN_PARMS32W
;
2315 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS
)
2316 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS
)
2322 } MCI_WAVE_DELETE_PARMS
, *LPMCI_WAVE_DELETE_PARMS
;
2336 DWORD nSamplesPerSec
;
2337 DWORD nAvgBytesPerSec
;
2340 UINT16 wBitsPerSample
;
2342 } MCI_WAVE_SET_PARMS16
, * LPMCI_WAVE_SET_PARMS16
;
2352 DWORD nSamplesPerSec
;
2353 DWORD nAvgBytesPerSec
;
2355 UINT32 wBitsPerSample
;
2356 } MCI_WAVE_SET_PARMS32
, * LPMCI_WAVE_SET_PARMS32
;
2358 DECL_WINELIB_TYPE(MCI_WAVE_SET_PARMS
)
2359 DECL_WINELIB_TYPE(LPMCI_WAVE_SET_PARMS
)
2361 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2362 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2363 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2364 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2365 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2367 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2368 #define MCI_SEQ_FILE 0x4002
2369 #define MCI_SEQ_MIDI 0x4003
2370 #define MCI_SEQ_SMPTE 0x4004
2371 #define MCI_SEQ_NONE 65533
2373 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
2374 #define MCI_SEQ_STATUS_PORT 0x00004003L
2375 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
2376 #define MCI_SEQ_STATUS_MASTER 0x00004008L
2377 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
2378 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2380 #define MCI_SEQ_SET_TEMPO 0x00010000L
2381 #define MCI_SEQ_SET_PORT 0x00020000L
2382 #define MCI_SEQ_SET_SLAVE 0x00040000L
2383 #define MCI_SEQ_SET_MASTER 0x00080000L
2384 #define MCI_SEQ_SET_OFFSET 0x01000000L
2395 } MCI_SEQ_SET_PARMS
, *LPMCI_SEQ_SET_PARMS
;
2397 #define MCI_ANIM_OPEN_WS 0x00010000L
2398 #define MCI_ANIM_OPEN_PARENT 0x00020000L
2399 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2401 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2402 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2403 #define MCI_ANIM_PLAY_FAST 0x00040000L
2404 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2405 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2407 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2408 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2410 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2411 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2412 #define MCI_ANIM_STATUS_HWND 0x00004003L
2413 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2414 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2416 #define MCI_ANIM_INFO_TEXT 0x00010000L
2418 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2419 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2420 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2421 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2422 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2423 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2424 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2426 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2427 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2429 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2430 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2431 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2432 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2433 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2435 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2437 #define MCI_ANIM_RECT 0x00010000L
2438 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2439 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2441 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2442 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2444 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2450 SEGPTR lpstrDeviceType
;
2451 SEGPTR lpstrElementName
;
2456 } MCI_ANIM_OPEN_PARMS16
, *LPMCI_ANIM_OPEN_PARMS16
;
2460 MCIDEVICEID32 wDeviceID
;
2461 LPCSTR lpstrDeviceType
;
2462 LPCSTR lpstrElementName
;
2466 } MCI_ANIM_OPEN_PARMS32A
, *LPMCI_ANIM_OPEN_PARMS32A
;
2470 MCIDEVICEID32 wDeviceID
;
2471 LPCSTR lpstrDeviceType
;
2472 LPCSTR lpstrElementName
;
2476 } MCI_ANIM_OPEN_PARMS32W
, *LPMCI_ANIM_OPEN_PARMS32W
;
2478 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS
)
2479 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS
)
2486 } MCI_ANIM_PLAY_PARMS
, *LPMCI_ANIM_PLAY_PARMS
;
2491 } MCI_ANIM_STEP_PARMS
, *LPMCI_ANIM_STEP_PARMS
;
2500 } MCI_ANIM_WINDOW_PARMS16
, *LPMCI_ANIM_WINDOW_PARMS16
;
2507 } MCI_ANIM_WINDOW_PARMS32A
, *LPMCI_ANIM_WINDOW_PARMS32A
;
2514 } MCI_ANIM_WINDOW_PARMS32W
, *LPMCI_ANIM_WINDOW_PARMS32W
;
2516 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS
)
2517 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS
)
2521 #ifdef MCI_USE_OFFEXT
2524 #else /* ifdef MCI_USE_OFFEXT */
2526 #endif /* ifdef MCI_USE_OFFEXT */
2527 } MCI_ANIM_RECT_PARMS16
, *LPMCI_ANIM_RECT_PARMS16
;
2531 #ifdef MCI_USE_OFFEXT
2534 #else /* ifdef MCI_USE_OFFEXT */
2536 #endif /* ifdef MCI_USE_OFFEXT */
2537 } MCI_ANIM_RECT_PARMS32
, *LPMCI_ANIM_RECT_PARMS32
;
2539 DECL_WINELIB_TYPE(MCI_ANIM_RECT_PARMS
)
2540 DECL_WINELIB_TYPE(LPMCI_ANIM_RECT_PARMS
)
2546 } MCI_ANIM_UPDATE_PARMS16
, *LPMCI_ANIM_UPDATE_PARMS16
;
2552 } MCI_ANIM_UPDATE_PARMS32
, *LPMCI_ANIM_UPDATE_PARMS32
;
2554 DECL_WINELIB_TYPE(MCI_ANIM_UPDATE_PARMS
)
2555 DECL_WINELIB_TYPE(LPMCI_ANIM_UPDATE_PARMS
)
2557 #define MCI_OVLY_OPEN_WS 0x00010000L
2558 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2560 #define MCI_OVLY_STATUS_HWND 0x00004001L
2561 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2563 #define MCI_OVLY_INFO_TEXT 0x00010000L
2565 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2566 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2567 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2569 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2570 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2571 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2572 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2573 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2575 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2577 #define MCI_OVLY_RECT 0x00010000L
2578 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2579 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2580 #define MCI_OVLY_PUT_FRAME 0x00080000L
2581 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2583 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2584 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2585 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2586 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2590 MCIDEVICEID16 wDeviceID
;
2592 LPCSTR lpstrDeviceType
;
2593 LPCSTR lpstrElementName
;
2598 } MCI_OVLY_OPEN_PARMS16
, *LPMCI_OVLY_OPEN_PARMS16
;
2602 MCIDEVICEID32 wDeviceID
;
2603 LPCSTR lpstrDeviceType
;
2604 LPCSTR lpstrElementName
;
2608 } MCI_OVLY_OPEN_PARMS32A
, *LPMCI_OVLY_OPEN_PARMS32A
;
2612 MCIDEVICEID32 wDeviceID
;
2613 LPCWSTR lpstrDeviceType
;
2614 LPCWSTR lpstrElementName
;
2618 } MCI_OVLY_OPEN_PARMS32W
, *LPMCI_OVLY_OPEN_PARMS32W
;
2620 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS
)
2621 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS
)
2630 } MCI_OVLY_WINDOW_PARMS16
, *LPMCI_OVLY_WINDOW_PARMS16
;
2637 } MCI_OVLY_WINDOW_PARMS32A
, *LPMCI_OVLY_WINDOW_PARMS32A
;
2644 } MCI_OVLY_WINDOW_PARMS32W
, *LPMCI_OVLY_WINDOW_PARMS32W
;
2646 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS
)
2647 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS
)
2651 #ifdef MCI_USE_OFFEXT
2654 #else /* ifdef MCI_USE_OFFEXT */
2656 #endif /* ifdef MCI_USE_OFFEXT */
2657 } MCI_OVLY_RECT_PARMS16
, *LPMCI_OVLY_RECT_PARMS16
;
2661 #ifdef MCI_USE_OFFEXT
2664 #else /* ifdef MCI_USE_OFFEXT */
2666 #endif /* ifdef MCI_USE_OFFEXT */
2667 } MCI_OVLY_RECT_PARMS32
, *LPMCI_OVLY_RECT_PARMS32
;
2669 DECL_WINELIB_TYPE(MCI_OVLY_RECT_PARMS
)
2670 DECL_WINELIB_TYPE(LPMCI_OVLY_RECT_PARMS
)
2676 } MCI_OVLY_SAVE_PARMS16
, *LPMCI_OVLY_SAVE_PARMS16
;
2682 } MCI_OVLY_SAVE_PARMS32A
, *LPMCI_OVLY_SAVE_PARMS32A
;
2688 } MCI_OVLY_SAVE_PARMS32W
, *LPMCI_OVLY_SAVE_PARMS32W
;
2690 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS
)
2691 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS
)
2697 } MCI_OVLY_LOAD_PARMS16
, *LPMCI_OVLY_LOAD_PARMS16
;
2703 } MCI_OVLY_LOAD_PARMS32A
, *LPMCI_OVLY_LOAD_PARMS32A
;
2709 } MCI_OVLY_LOAD_PARMS32W
, *LPMCI_OVLY_LOAD_PARMS32W
;
2711 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS
)
2712 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS
)
2714 /**************************************************************
2715 * Linux MMSYSTEM Internals & Sample Audio Drivers
2718 #define DRVM_INIT 100
2719 #define WODM_INIT DRVM_INIT
2720 #define WIDM_INIT DRVM_INIT
2721 #define MODM_INIT DRVM_INIT
2722 #define MIDM_INIT DRVM_INIT
2723 #define AUXM_INIT DRVM_INIT
2725 #define WODM_GETNUMDEVS 3
2726 #define WODM_GETDEVCAPS 4
2728 #define WODM_CLOSE 6
2729 #define WODM_PREPARE 7
2730 #define WODM_UNPREPARE 8
2731 #define WODM_WRITE 9
2732 #define WODM_PAUSE 10
2733 #define WODM_RESTART 11
2734 #define WODM_RESET 12
2735 #define WODM_GETPOS 13
2736 #define WODM_GETPITCH 14
2737 #define WODM_SETPITCH 15
2738 #define WODM_GETVOLUME 16
2739 #define WODM_SETVOLUME 17
2740 #define WODM_GETPLAYBACKRATE 18
2741 #define WODM_SETPLAYBACKRATE 19
2742 #define WODM_BREAKLOOP 20
2743 #define WODM_STOP 21
2745 #define WIDM_GETNUMDEVS 50
2746 #define WIDM_GETDEVCAPS 51
2747 #define WIDM_OPEN 52
2748 #define WIDM_CLOSE 53
2749 #define WIDM_PREPARE 54
2750 #define WIDM_UNPREPARE 55
2751 #define WIDM_ADDBUFFER 56
2752 #define WIDM_START 57
2753 #define WIDM_STOP 58
2754 #define WIDM_RESET 59
2755 #define WIDM_GETPOS 60
2756 #define WIDM_PAUSE 61
2758 #define MODM_GETNUMDEVS 1
2759 #define MODM_GETDEVCAPS 2
2761 #define MODM_CLOSE 4
2762 #define MODM_PREPARE 5
2763 #define MODM_UNPREPARE 6
2765 #define MODM_LONGDATA 8
2766 #define MODM_RESET 9
2767 #define MODM_GETVOLUME 10
2768 #define MODM_SETVOLUME 11
2769 #define MODM_CACHEPATCHES 12
2770 #define MODM_CACHEDRUMPATCHES 13
2772 #define MIDM_GETNUMDEVS 53
2773 #define MIDM_GETDEVCAPS 54
2774 #define MIDM_OPEN 55
2775 #define MIDM_CLOSE 56
2776 #define MIDM_PREPARE 57
2777 #define MIDM_UNPREPARE 58
2778 #define MIDM_ADDBUFFER 59
2779 #define MIDM_START 60
2780 #define MIDM_STOP 61
2781 #define MIDM_RESET 62
2783 #define AUXDM_GETNUMDEVS 3
2784 #define AUXDM_GETDEVCAPS 4
2785 #define AUXDM_GETVOLUME 5
2786 #define AUXDM_SETVOLUME 6
2788 #define MXDM_GETNUMDEVS 1
2789 #define MXDM_GETDEVCAPS 2
2791 #define MXDM_CLOSE 4
2792 #define MXDM_GETLINEINFO 5
2793 #define MXDM_GETLINECONTROLS 6
2794 #define MXDM_GETCONTROLDETAILS 7
2795 #define MXDM_SETCONTROLDETAILS 8
2797 #define MCI_MAX_DEVICE_TYPE_LENGTH 80
2799 #define MCI_FALSE (MCI_STRING_OFFSET + 19)
2800 #define MCI_TRUE (MCI_STRING_OFFSET + 20)
2802 #define MCI_FORMAT_RETURN_BASE MCI_FORMAT_MILLISECONDS_S
2803 #define MCI_FORMAT_MILLISECONDS_S (MCI_STRING_OFFSET + 21)
2804 #define MCI_FORMAT_HMS_S (MCI_STRING_OFFSET + 22)
2805 #define MCI_FORMAT_MSF_S (MCI_STRING_OFFSET + 23)
2806 #define MCI_FORMAT_FRAMES_S (MCI_STRING_OFFSET + 24)
2807 #define MCI_FORMAT_SMPTE_24_S (MCI_STRING_OFFSET + 25)
2808 #define MCI_FORMAT_SMPTE_25_S (MCI_STRING_OFFSET + 26)
2809 #define MCI_FORMAT_SMPTE_30_S (MCI_STRING_OFFSET + 27)
2810 #define MCI_FORMAT_SMPTE_30DROP_S (MCI_STRING_OFFSET + 28)
2811 #define MCI_FORMAT_BYTES_S (MCI_STRING_OFFSET + 29)
2812 #define MCI_FORMAT_SAMPLES_S (MCI_STRING_OFFSET + 30)
2813 #define MCI_FORMAT_TMSF_S (MCI_STRING_OFFSET + 31)
2815 #define MCI_VD_FORMAT_TRACK_S (MCI_VD_OFFSET + 5)
2817 #define WAVE_FORMAT_PCM_S (MCI_WAVE_OFFSET + 0)
2818 #define WAVE_MAPPER_S (MCI_WAVE_OFFSET + 1)
2820 #define MCI_SEQ_MAPPER_S (MCI_SEQ_OFFSET + 5)
2821 #define MCI_SEQ_FILE_S (MCI_SEQ_OFFSET + 6)
2822 #define MCI_SEQ_MIDI_S (MCI_SEQ_OFFSET + 7)
2823 #define MCI_SEQ_SMPTE_S (MCI_SEQ_OFFSET + 8)
2824 #define MCI_SEQ_FORMAT_SONGPTR_S (MCI_SEQ_OFFSET + 9)
2825 #define MCI_SEQ_NONE_S (MCI_SEQ_OFFSET + 10)
2826 #define MIDIMAPPER_S (MCI_SEQ_OFFSET + 11)
2828 #define MCI_RESOURCE_RETURNED 0x00010000 /* resource ID */
2829 #define MCI_COLONIZED3_RETURN 0x00020000 /* colonized ID, 3 bytes data */
2830 #define MCI_COLONIZED4_RETURN 0x00040000 /* colonized ID, 4 bytes data */
2831 #define MCI_INTEGER_RETURNED 0x00080000 /* integer conversion needed */
2832 #define MCI_RESOURCE_DRIVER 0x00100000 /* driver owns returned resource */
2834 #define MCI_NO_COMMAND_TABLE 0xFFFF
2836 #define MCI_COMMAND_HEAD 0
2837 #define MCI_STRING 1
2838 #define MCI_INTEGER 2
2839 #define MCI_END_COMMAND 3
2840 #define MCI_RETURN 4
2842 #define MCI_END_COMMAND_LIST 6
2844 #define MCI_CONSTANT 8
2845 #define MCI_END_CONSTANT 9
2848 #define MIXER_OBJECTF_HANDLE 0x80000000L
2849 #define MIXER_OBJECTF_MIXER 0x00000000L
2850 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
2851 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
2852 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
2853 #define MIXER_OBJECTF_WAVEIN 0x20000000L
2854 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
2855 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
2856 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
2857 #define MIXER_OBJECTF_MIDIIN 0x40000000L
2858 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
2859 #define MIXER_OBJECTF_AUX 0x50000000L
2861 #define MAKEMCIRESOURCE(wRet, wRes) MAKELRESULT((wRet), (wRes))
2863 /* the 95 DDK defines those slightly different, but they are internal anyway */
2869 } PORTALLOC
, *LPPORTALLOC
;
2873 LPWAVEFORMAT lpFormat
;
2877 } WAVEOPENDESC
, *LPWAVEOPENDESC
;
2884 } MIDIOPENDESC
, *LPMIDIOPENDESC
;
2889 LPTIMECALLBACK16 lpFunction
;
2892 } TIMEREVENT
, *LPTIMEREVENT
;
2894 typedef struct tMIXEROPENDESC
2900 } MIXEROPENDESC
,*LPMIXEROPENDESC
;
2903 UINT16 wDeviceID
; /* device ID */
2904 LPSTR lpstrParams
; /* parameter string for entry in SYSTEM.INI */
2905 UINT16 wCustomCommandTable
; /* custom command table (0xFFFF if none)
2906 * filled in by the driver */
2907 UINT16 wType
; /* driver type (filled in by the driver) */
2908 } MCI_OPEN_DRIVER_PARMS
, *LPMCI_OPEN_DRIVER_PARMS
;
2910 DWORD WINAPI
mciGetDriverData16(UINT16 uDeviceID
);
2911 DWORD WINAPI
mciGetDriverData32(UINT32 uDeviceID
);
2912 #define mciGetDriverData WINELIB_NAME(mciGetDriverData)
2914 BOOL16 WINAPI
mciSetDriverData16(UINT16 uDeviceID
, DWORD dwData
);
2915 BOOL32 WINAPI
mciSetDriverData32(UINT32 uDeviceID
, DWORD dwData
);
2916 #define mciSetDriverData WINELIB_NAME(mciSetDriverData)
2918 UINT16 WINAPI
mciDriverYield16(UINT16 uDeviceID
);
2919 UINT32 WINAPI
mciDriverYield32(UINT32 uDeviceID
);
2920 #define mciDriverYield WINELIB_NAME(mciDriverYield)
2922 BOOL16 WINAPI
mciDriverNotify16(HWND16 hwndCallback
, UINT16 uDeviceID
,
2924 BOOL32 WINAPI
mciDriverNotify32(HWND32 hwndCallback
, UINT32 uDeviceID
,
2926 #define mciDriverNotify WINELIB_NAME(mciDriverNotify)
2928 UINT16 WINAPI
mciLoadCommandResource16(HINSTANCE16 hInstance
,
2929 LPCSTR lpResName
, UINT16 uType
);
2930 UINT32 WINAPI
mciLoadCommandResource32(HINSTANCE32 hInstance
,
2931 LPCSTR lpResName
, UINT32 uType
);
2932 #define mciLoadCommandResource WINELIB_NAME(mciLoadCommandResource)
2934 BOOL16 WINAPI
mciFreeCommandResource16(UINT16 uTable
);
2935 BOOL32 WINAPI
mciFreeCommandResource32(UINT32 uTable
);
2936 #define mciFreeCommandResource WINELIB_NAME(mciFreeCommandResource)
2938 #define DCB_NULL 0x0000
2939 #define DCB_WINDOW 0x0001 /* dwCallback is a HWND */
2940 #define DCB_TASK 0x0002 /* dwCallback is a HTASK */
2941 #define DCB_FUNCTION 0x0003 /* dwCallback is a FARPROC */
2942 #define DCB_FUNC32 0x0007 /* (ugly hack) 32-bit FARPROC */
2943 #define DCB_TYPEMASK 0x0007
2944 #define DCB_NOSWITCH 0x0008 /* don't switch stacks for callback */
2946 BOOL16 WINAPI
DriverCallback(DWORD dwCallBack
, UINT16 uFlags
, HANDLE16 hDev
,
2947 WORD wMsg
, DWORD dwUser
, DWORD dwParam1
, DWORD dwParam2
);
2948 DWORD WINAPI
auxMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2949 DWORD dwParam1
, DWORD dwParam2
);
2952 DWORD WINAPI
mixMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2953 DWORD dwParam1
, DWORD dwParam2
);
2954 DWORD WINAPI
midMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2955 DWORD dwParam1
, DWORD dwParam2
);
2956 DWORD WINAPI
modMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2957 DWORD dwParam1
, DWORD dwParam2
);
2958 DWORD WINAPI
widMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2959 DWORD dwParam1
, DWORD dwParam2
);
2960 DWORD WINAPI
wodMessage(WORD wDevID
, WORD wMsg
, DWORD dwUser
,
2961 DWORD dwParam1
, DWORD dwParam2
);
2964 #endif /* __WINE_MMSYSTEM_H */