Add a few more 32->16 Escape conversions.
[wine.git] / include / mmsystem.h
blob1e163012e075e5af81c18263a139d22eb74eb5c6
1 /*
2 * MMSYSTEM - Multimedia Wine Extension ... :-)
3 */
5 #ifndef __WINE_MMSYSTEM_H
6 #define __WINE_MMSYSTEM_H
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 #include "windef.h"
13 typedef LPSTR HPSTR; /* a huge version of LPSTR */
14 typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
16 #include "pshpack1.h"
18 #define MAXWAVEDRIVERS 10
19 #define MAXMIDIDRIVERS 10
20 #define MAXAUXDRIVERS 10
21 #define MAXMCIDRIVERS 32
22 #define MAXMIXERDRIVERS 10
24 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
25 #define MAXERRORLENGTH 128 /* max error text length (including NULL) */
26 #define MAX_JOYSTICKOEMVXDNAME 260
28 typedef WORD VERSION; /* major (high byte), minor (low byte) */
30 typedef UINT16 MMVERSION16;
31 typedef UINT MMVERSION;
32 typedef UINT16 MCIDEVICEID16;
33 typedef UINT MCIDEVICEID;
34 typedef UINT16 MMRESULT16;
35 typedef UINT MMRESULT;
37 typedef struct {
38 UINT16 wType; /* indicates the contents of the union */
39 union {
40 DWORD ms; /* milliseconds */
41 DWORD sample; /* samples */
42 DWORD cb; /* byte count */
43 struct { /* SMPTE */
44 BYTE hour; /* hours */
45 BYTE min; /* minutes */
46 BYTE sec; /* seconds */
47 BYTE frame; /* frames */
48 BYTE fps; /* frames per second */
49 BYTE dummy; /* pad */
50 } smpte;
51 struct { /* MIDI */
52 DWORD songptrpos; /* song pointer position */
53 } midi;
54 } u;
55 } MMTIME16, *LPMMTIME16;
57 typedef struct {
58 UINT wType;
59 union {
60 DWORD ms;
61 DWORD sample;
62 DWORD cb;
63 DWORD ticks;
64 struct {
65 BYTE hour;
66 BYTE min;
67 BYTE sec;
68 BYTE frame;
69 BYTE fps;
70 BYTE dummy;
71 BYTE pad[2];
72 } smpte;
73 struct {
74 DWORD songptrpos;
75 } midi;
76 } u;
77 } MMTIME, *LPMMTIME;
79 #define TIME_MS 0x0001 /* time in milliseconds */
80 #define TIME_SAMPLES 0x0002 /* number of wave samples */
81 #define TIME_BYTES 0x0004 /* current byte offset */
82 #define TIME_SMPTE 0x0008 /* SMPTE time */
83 #define TIME_MIDI 0x0010 /* MIDI time */
84 #define TIME_TICKS 0x0020 /* MIDI ticks */
86 #define MM_JOY1MOVE 0x3A0 /* joystick */
87 #define MM_JOY2MOVE 0x3A1
88 #define MM_JOY1ZMOVE 0x3A2
89 #define MM_JOY2ZMOVE 0x3A3
90 #define MM_JOY1BUTTONDOWN 0x3B5
91 #define MM_JOY2BUTTONDOWN 0x3B6
92 #define MM_JOY1BUTTONUP 0x3B7
93 #define MM_JOY2BUTTONUP 0x3B8
95 #define MM_MCINOTIFY 0x3B9 /* MCI */
97 #define MM_WOM_OPEN 0x3BB /* waveform output */
98 #define MM_WOM_CLOSE 0x3BC
99 #define MM_WOM_DONE 0x3BD
101 #define MM_WIM_OPEN 0x3BE /* waveform input */
102 #define MM_WIM_CLOSE 0x3BF
103 #define MM_WIM_DATA 0x3C0
105 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
106 #define MM_MIM_CLOSE 0x3C2
107 #define MM_MIM_DATA 0x3C3
108 #define MM_MIM_LONGDATA 0x3C4
109 #define MM_MIM_ERROR 0x3C5
110 #define MM_MIM_LONGERROR 0x3C6
112 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
113 #define MM_MOM_CLOSE 0x3C8
114 #define MM_MOM_DONE 0x3C9
115 #define MM_MOM_POSITIONCB 0x3CA
117 #define MMSYSERR_BASE 0
118 #define WAVERR_BASE 32
119 #define MIDIERR_BASE 64
120 #define TIMERR_BASE 96
121 #define JOYERR_BASE 160
122 #define MCIERR_BASE 256
124 #define MCI_STRING_OFFSET 512
125 #define MCI_VD_OFFSET 1024
126 #define MCI_CD_OFFSET 1088
127 #define MCI_WAVE_OFFSET 1152
128 #define MCI_SEQ_OFFSET 1216
130 #define MMSYSERR_NOERROR 0 /* no error */
131 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
132 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
133 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
134 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
135 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
136 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
137 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
138 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
139 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
140 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
141 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
142 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
144 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
145 #define CALLBACK_NULL 0x00000000l /* no callback */
146 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
147 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
148 #define CALLBACK_THREAD (CALLBACK_TASK) /* dwCallback is a thread ID */
149 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
150 #define CALLBACK_EVENT 0x00050000l /* dwCallback is an EVENT Handler */
151 #define CALLBACK_FUNC32 0x00070000l /* (ugly hack) 32-bit FARPROC */
152 #define CALLBACK32CONV(x) ((((x)&CALLBACK_TYPEMASK)==CALLBACK_FUNCTION) ? \
153 (((x)&~CALLBACK_TYPEMASK)|CALLBACK_FUNC32) : (x))
155 typedef void (CALLBACK *LPDRVCALLBACK16) (HDRVR16 h, UINT16 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
156 typedef void (CALLBACK *LPDRVCALLBACK) (HDRVR h, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
158 #define MM_MICROSOFT 1 /* Microsoft Corp. */
160 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
161 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
163 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
164 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
165 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
166 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
167 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
169 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
171 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
172 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
174 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
177 UINT16 WINAPI mmsystemGetVersion16(void);
178 UINT WINAPI mmsystemGetVersion(void);
179 BOOL16 WINAPI sndPlaySound(LPCSTR lpszSoundName, UINT16 uFlags);
180 BOOL WINAPI PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
181 BOOL WINAPI PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound);
182 #define PlaySound WINELIB_NAME_AW(PlaySound)
184 #define SND_SYNC 0x0000 /* play synchronously (default) */
185 #define SND_ASYNC 0x0001 /* play asynchronously */
186 #define SND_NODEFAULT 0x0002 /* don't use default sound */
187 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
188 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
189 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
191 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
192 #define SND_ALIAS 0x00010000L /* name is a registry alias */
193 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
194 #define SND_FILENAME 0x00020000L /* name is file name */
195 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
196 #define SND_PURGE 0x00000040L /* purge all sounds */
197 #define SND_APPLICATION 0x00000080L /* look for application specific association */
199 /* waveform audio error return values */
200 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
201 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
202 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
203 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
204 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
206 typedef LPDRVCALLBACK16 LPWAVECALLBACK16;
207 typedef LPDRVCALLBACK LPWAVECALLBACK;
209 #define WOM_OPEN MM_WOM_OPEN
210 #define WOM_CLOSE MM_WOM_CLOSE
211 #define WOM_DONE MM_WOM_DONE
212 #define WIM_OPEN MM_WIM_OPEN
213 #define WIM_CLOSE MM_WIM_CLOSE
214 #define WIM_DATA MM_WIM_DATA
216 #define WAVE_MAPPER (-1)
218 #define WAVE_FORMAT_QUERY 0x0001
219 #define WAVE_ALLOWSYNC 0x0002
221 typedef struct wavehdr_tag {
222 LPSTR lpData; /* pointer to locked data buffer */
223 DWORD dwBufferLength; /* length of data buffer */
224 DWORD dwBytesRecorded;/* used for input only */
225 DWORD dwUser; /* for client's use */
226 DWORD dwFlags; /* assorted flags (see defines) */
227 DWORD dwLoops; /* loop control counter */
229 struct wavehdr_tag *lpNext; /* reserved for driver */
230 DWORD reserved; /* reserved for driver */
231 } WAVEHDR, *LPWAVEHDR;
233 #define WHDR_DONE 0x00000001 /* done bit */
234 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
235 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
236 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
237 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
239 typedef struct {
240 WORD wMid; /* manufacturer ID */
241 WORD wPid; /* product ID */
242 MMVERSION16 vDriverVersion; /* version of the driver */
243 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
244 DWORD dwFormats; /* formats supported */
245 WORD wChannels; /* number of sources supported */
246 DWORD dwSupport; /* functionality supported by driver */
247 } WAVEOUTCAPS16, *LPWAVEOUTCAPS16;
249 typedef struct {
250 WORD wMid; /* manufacturer ID */
251 WORD wPid; /* product ID */
252 MMVERSION vDriverVersion; /* version of the driver */
253 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
254 DWORD dwFormats; /* formats supported */
255 WORD wChannels; /* number of sources supported */
256 WORD wReserved1; /* padding */
257 DWORD dwSupport; /* functionality supported by driver */
258 } WAVEOUTCAPSA, *LPWAVEOUTCAPSA;
260 typedef struct {
261 WORD wMid; /* manufacturer ID */
262 WORD wPid; /* product ID */
263 MMVERSION vDriverVersion; /* version of the driver */
264 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
265 DWORD dwFormats; /* formats supported */
266 WORD wChannels; /* number of sources supported */
267 WORD wReserved1; /* padding */
268 DWORD dwSupport; /* functionality supported by driver */
269 } WAVEOUTCAPSW, *LPWAVEOUTCAPSW;
270 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS)
271 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS)
273 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
274 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
275 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
276 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
277 #define WAVECAPS_SYNC 0x0010 /* driver is synchrounous and playing is blocking */
278 #define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
279 #define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
281 typedef struct {
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;
290 typedef struct {
291 WORD wMid; /* manufacturer ID */
292 WORD wPid; /* product ID */
293 MMVERSION 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 */
297 WORD wReserved1;
298 } WAVEINCAPSA, *LPWAVEINCAPSA;
299 typedef struct {
300 WORD wMid; /* manufacturer ID */
301 WORD wPid; /* product ID */
302 MMVERSION 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 */
306 WORD wReserved1;
307 } WAVEINCAPSW, *LPWAVEINCAPSW;
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 */
326 typedef struct {
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
336 typedef struct {
337 WAVEFORMAT wf;
338 WORD wBitsPerSample;
339 } PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
341 #ifndef _WAVEFORMATEX_
342 #define _WAVEFORMATEX_
343 /* dito same for Win16 / Win32 */
344 typedef struct {
345 WORD wFormatTag; /* format type */
346 WORD nChannels; /* number of channels (i.e. mono, stereo...) */
347 DWORD nSamplesPerSec; /* sample rate */
348 DWORD nAvgBytesPerSec;/* for buffer estimation */
349 WORD nBlockAlign; /* block size of data */
350 WORD wBitsPerSample; /* number of bits per sample of mono data */
351 WORD cbSize; /* the count in bytes of the size of */
352 /* extra information (after cbSize) */
353 } WAVEFORMATEX, *LPWAVEFORMATEX, *NPWAVEFORMATEX, *PWAVEFORMATEX;
354 #endif
356 UINT16 WINAPI waveOutGetNumDevs16(void);
357 UINT WINAPI waveOutGetNumDevs(void);
358 UINT16 WINAPI waveOutGetDevCaps16(UINT16,LPWAVEOUTCAPS16,UINT16);
359 UINT WINAPI waveOutGetDevCapsA(UINT,LPWAVEOUTCAPSA,UINT);
360 UINT WINAPI waveOutGetDevCapsW(UINT,LPWAVEOUTCAPSW,UINT);
361 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
362 UINT16 WINAPI waveOutGetVolume16(UINT16,DWORD*);
363 UINT WINAPI waveOutGetVolume(UINT,DWORD*);
364 UINT16 WINAPI waveOutSetVolume16(UINT16,DWORD);
365 UINT WINAPI waveOutSetVolume(UINT,DWORD);
366 UINT16 WINAPI waveOutGetErrorText16(UINT16,LPSTR,UINT16);
367 UINT WINAPI waveOutGetErrorTextA(UINT,LPSTR,UINT);
368 UINT WINAPI waveOutGetErrorTextW(UINT,LPWSTR,UINT);
369 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
370 UINT16 WINAPI waveOutOpen16(HWAVEOUT16*,UINT16,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
371 UINT WINAPI waveOutOpen(HWAVEOUT*,UINT,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
372 UINT16 WINAPI waveOutClose16(HWAVEOUT16);
373 UINT WINAPI waveOutClose(HWAVEOUT);
374 UINT16 WINAPI waveOutPrepareHeader16(HWAVEOUT16,WAVEHDR*,UINT16);
375 UINT WINAPI waveOutPrepareHeader(HWAVEOUT,WAVEHDR*,UINT);
376 UINT16 WINAPI waveOutUnprepareHeader16(HWAVEOUT16,WAVEHDR*,UINT16);
377 UINT WINAPI waveOutUnprepareHeader(HWAVEOUT,WAVEHDR*,UINT);
378 UINT16 WINAPI waveOutWrite16(HWAVEOUT16,WAVEHDR*,UINT16);
379 UINT WINAPI waveOutWrite(HWAVEOUT,WAVEHDR*,UINT);
380 UINT16 WINAPI waveOutPause16(HWAVEOUT16);
381 UINT WINAPI waveOutPause(HWAVEOUT);
382 UINT16 WINAPI waveOutRestart16(HWAVEOUT16);
383 UINT WINAPI waveOutRestart(HWAVEOUT);
384 UINT16 WINAPI waveOutReset16(HWAVEOUT16);
385 UINT WINAPI waveOutReset(HWAVEOUT);
386 UINT16 WINAPI waveOutBreakLoop16(HWAVEOUT16);
387 UINT WINAPI waveOutBreakLoop(HWAVEOUT);
388 UINT16 WINAPI waveOutGetPosition16(HWAVEOUT16,LPMMTIME16,UINT16);
389 UINT WINAPI waveOutGetPosition(HWAVEOUT,LPMMTIME,UINT);
390 UINT16 WINAPI waveOutGetPitch16(HWAVEOUT16,DWORD*);
391 UINT WINAPI waveOutGetPitch(HWAVEOUT,DWORD*);
392 UINT16 WINAPI waveOutSetPitch16(HWAVEOUT16,DWORD);
393 UINT WINAPI waveOutSetPitch(HWAVEOUT,DWORD);
394 UINT16 WINAPI waveOutGetPlaybackRate16(HWAVEOUT16,DWORD*);
395 UINT WINAPI waveOutGetPlaybackRate(HWAVEOUT,DWORD*);
396 UINT16 WINAPI waveOutSetPlaybackRate16(HWAVEOUT16,DWORD);
397 UINT WINAPI waveOutSetPlaybackRate(HWAVEOUT,DWORD);
398 UINT16 WINAPI waveOutGetID16(HWAVEOUT16,UINT16*);
399 UINT WINAPI waveOutGetID(HWAVEOUT,UINT*);
400 DWORD WINAPI waveOutMessage16(HWAVEOUT16,UINT16,DWORD,DWORD);
401 DWORD WINAPI waveOutMessage(HWAVEOUT,UINT,DWORD,DWORD);
403 UINT16 WINAPI waveInGetNumDevs16(void);
404 UINT WINAPI waveInGetNumDevs(void);
405 UINT16 WINAPI waveInGetDevCaps16(UINT16,LPWAVEINCAPS16,UINT16);
406 UINT WINAPI waveInGetDevCapsA(UINT,LPWAVEINCAPSA,UINT);
407 UINT WINAPI waveInGetDevCapsW(UINT,LPWAVEINCAPSW,UINT);
408 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
409 UINT16 WINAPI waveInGetErrorText16(UINT16,LPSTR,UINT16);
410 UINT WINAPI waveInGetErrorTextA(UINT,LPSTR,UINT);
411 UINT WINAPI waveInGetErrorTextW(UINT,LPWSTR,UINT);
412 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
413 UINT16 WINAPI waveInOpen16(HWAVEIN16*,UINT16,const LPWAVEFORMAT,DWORD,DWORD,DWORD);
414 UINT WINAPI waveInOpen(HWAVEIN*,UINT,const LPWAVEFORMAT,DWORD,DWORD,DWORD);
415 UINT16 WINAPI waveInClose16(HWAVEIN16);
416 UINT WINAPI waveInClose(HWAVEIN);
417 UINT16 WINAPI waveInPrepareHeader16(HWAVEIN16,WAVEHDR*,UINT16);
418 UINT WINAPI waveInPrepareHeader(HWAVEIN,WAVEHDR*,UINT);
419 UINT16 WINAPI waveInUnprepareHeader16(HWAVEIN16,WAVEHDR*,UINT16);
420 UINT WINAPI waveInUnprepareHeader(HWAVEIN,WAVEHDR*,UINT);
421 UINT16 WINAPI waveInAddBuffer16(HWAVEIN16,WAVEHDR*,UINT16);
422 UINT WINAPI waveInAddBuffer(HWAVEIN,WAVEHDR*,UINT);
423 UINT16 WINAPI waveInStart16(HWAVEIN16);
424 UINT WINAPI waveInStart(HWAVEIN);
425 UINT16 WINAPI waveInStop16(HWAVEIN16);
426 UINT WINAPI waveInStop(HWAVEIN);
427 UINT16 WINAPI waveInReset16(HWAVEIN16);
428 UINT WINAPI waveInReset(HWAVEIN);
429 UINT16 WINAPI waveInGetPosition16(HWAVEIN16,LPMMTIME16,UINT16);
430 UINT WINAPI waveInGetPosition(HWAVEIN,LPMMTIME,UINT);
431 UINT16 WINAPI waveInGetID16(HWAVEIN16,UINT16*);
432 UINT WINAPI waveInGetID(HWAVEIN,UINT*);
434 DWORD WINAPI waveInMessage16(HWAVEIN16,UINT16,DWORD,DWORD);
435 DWORD WINAPI waveInMessage(HWAVEIN,UINT,DWORD,DWORD);
437 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
438 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
439 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
440 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
441 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
442 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
443 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
445 typedef LPDRVCALLBACK16 LPMIDICALLBACK16;
446 typedef LPDRVCALLBACK LPMIDICALLBACK;
447 #define MIDIPATCHSIZE 128
448 typedef WORD PATCHARRAY[MIDIPATCHSIZE];
449 typedef WORD *LPPATCHARRAY;
450 typedef WORD KEYARRAY[MIDIPATCHSIZE];
451 typedef WORD *LPKEYARRAY;
453 #define MIM_OPEN MM_MIM_OPEN
454 #define MIM_CLOSE MM_MIM_CLOSE
455 #define MIM_DATA MM_MIM_DATA
456 #define MIM_LONGDATA MM_MIM_LONGDATA
457 #define MIM_ERROR MM_MIM_ERROR
458 #define MIM_LONGERROR MM_MIM_LONGERROR
459 #define MOM_OPEN MM_MOM_OPEN
460 #define MOM_CLOSE MM_MOM_CLOSE
461 #define MOM_DONE MM_MOM_DONE
463 /* device ID for MIDI mapper */
465 #define MIDIMAPPER (-1)
466 #define MIDI_MAPPER (-1)
468 /* flags for wFlags parm of
469 midiOutCachePatches(),
470 midiOutCacheDrumPatches() */
471 #define MIDI_CACHE_ALL 1
472 #define MIDI_CACHE_BESTFIT 2
473 #define MIDI_CACHE_QUERY 3
474 #define MIDI_UNCACHE 4
476 typedef struct {
477 WORD wMid; /* manufacturer ID */
478 WORD wPid; /* product ID */
479 MMVERSION16 vDriverVersion; /* version of the driver */
480 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
481 WORD wTechnology; /* type of device */
482 WORD wVoices; /* # of voices (internal synth only) */
483 WORD wNotes; /* max # of notes (internal synth only) */
484 WORD wChannelMask; /* channels used (internal synth only) */
485 DWORD dwSupport; /* functionality supported by driver */
486 } MIDIOUTCAPS16, *LPMIDIOUTCAPS16;
488 typedef struct {
489 WORD wMid; /* manufacturer ID */
490 WORD wPid; /* product ID */
491 MMVERSION vDriverVersion; /* version of the driver */
492 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
493 WORD wTechnology; /* type of device */
494 WORD wVoices; /* # of voices (internal synth only) */
495 WORD wNotes; /* max # of notes (internal synth only) */
496 WORD wChannelMask; /* channels used (internal synth only) */
497 DWORD dwSupport; /* functionality supported by driver */
498 } MIDIOUTCAPSA, *LPMIDIOUTCAPSA;
500 typedef struct {
501 WORD wMid; /* manufacturer ID */
502 WORD wPid; /* product ID */
503 MMVERSION vDriverVersion; /* version of the driver */
504 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
505 WORD wTechnology; /* type of device */
506 WORD wVoices; /* # of voices (internal synth only) */
507 WORD wNotes; /* max # of notes (internal synth only) */
508 WORD wChannelMask; /* channels used (internal synth only) */
509 DWORD dwSupport; /* functionality supported by driver */
510 } MIDIOUTCAPSW, *LPMIDIOUTCAPSW;
512 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS)
513 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS)
515 #define MOD_MIDIPORT 1 /* output port */
516 #define MOD_SYNTH 2 /* generic internal synth */
517 #define MOD_SQSYNTH 3 /* square wave internal synth */
518 #define MOD_FMSYNTH 4 /* FM internal synth */
519 #define MOD_MAPPER 5 /* MIDI mapper */
521 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
522 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
523 #define MIDICAPS_CACHE 0x0004
524 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
526 typedef struct {
527 WORD wMid; /* manufacturer ID */
528 WORD wPid; /* product ID */
529 MMVERSION16 vDriverVersion; /* version of the driver */
530 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
531 DWORD dwSupport; /* included in win95 and higher */
532 } MIDIINCAPS16, *LPMIDIINCAPS16;
534 typedef struct {
535 WORD wMid; /* manufacturer ID */
536 WORD wPid; /* product ID */
537 MMVERSION vDriverVersion; /* version of the driver */
538 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
539 DWORD dwSupport; /* included in win95 and higher */
540 } MIDIINCAPSA, *LPMIDIINCAPSA;
542 typedef struct {
543 WORD wMid; /* manufacturer ID */
544 WORD wPid; /* product ID */
545 MMVERSION vDriverVersion; /* version of the driver */
546 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
547 DWORD dwSupport; /* included in win95 and higher */
548 } MIDIINCAPSW, *LPMIDIINCAPSW;
550 DECL_WINELIB_TYPE_AW(MIDIINCAPS)
551 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
553 typedef struct {
554 LPSTR lpData; /* pointer to locked data block */
555 DWORD dwBufferLength; /* length of data in data block */
556 DWORD dwBytesRecorded;/* used for input only */
557 DWORD dwUser; /* for client's use */
558 DWORD dwFlags; /* assorted flags (see defines) */
559 struct midihdr_tag *lpNext; /* reserved for driver */
560 DWORD reserved; /* reserved for driver */
561 } MIDIHDR16, *LPMIDIHDR16;
563 /* It seems that Win32 has a slightly different structure than Win 16.
564 * sigh....
566 typedef struct {
567 LPSTR lpData; /* pointer to locked data block */
568 DWORD dwBufferLength; /* length of data in data block */
569 DWORD dwBytesRecorded;/* used for input only */
570 DWORD dwUser; /* for client's use */
571 DWORD dwFlags; /* assorted flags (see defines) */
572 struct midihdr_tag *lpNext; /* reserved for driver */
573 DWORD reserved; /* reserved for driver */
574 DWORD dwOffset; /* offset of playback in case of
575 * MIDISTRM buffer */
576 DWORD dwReserved[4]; /* reserved for driver */
577 } MIDIHDR, *LPMIDIHDR;
579 #define MHDR_DONE 0x00000001 /* done bit */
580 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
581 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
582 #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
584 typedef struct {
585 DWORD cbStruct;
586 DWORD dwTempo;
587 } MIDIPROPTEMPO, *LPMIDIPROPTEMPO;
589 typedef struct {
590 DWORD cbStruct;
591 DWORD dwTimeDiv;
592 } MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV;
594 #define MIDIPROP_GET 0x40000000
595 #define MIDIPROP_SET 0x80000000
596 #define MIDIPROP_TEMPO 0x00000002
597 #define MIDIPROP_TIMEDIV 0x00000001
599 typedef struct {
600 DWORD dwDeltaTime; /* Time, in MIDI ticks, between the previous
601 * event and the current event. */
602 DWORD dwStreamID; /* Reserved; must be zero. */
603 DWORD dwEvent; /* event => see MEVT_XXX macros */
604 DWORD dwParms[0]; /* extra pmts to dwEvent if F_LONG is set */
605 } MIDIEVENT, *LPMIDIEVENT;
607 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
608 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
610 #define MEVT_F_CALLBACK 0x40000000l
611 #define MEVT_F_LONG 0x80000000l
612 #define MEVT_F_SHORT 0x00000000l
613 #define MEVT_COMMENT ((BYTE)0x82)
614 #define MEVT_LONGMSG ((BYTE)0x80)
615 #define MEVT_NOP ((BYTE)0x02)
616 #define MEVT_SHORTMSG ((BYTE)0x00)
617 #define MEVT_TEMPO ((BYTE)0x01)
618 #define MEVT_VERSION ((BYTE)0x84)
620 UINT16 WINAPI midiOutGetNumDevs16(void);
621 UINT WINAPI midiOutGetNumDevs(void);
622 UINT16 WINAPI midiOutGetDevCaps16(UINT16,LPMIDIOUTCAPS16,UINT16);
623 UINT WINAPI midiOutGetDevCapsA(UINT,LPMIDIOUTCAPSA,UINT);
624 UINT WINAPI midiOutGetDevCapsW(UINT,LPMIDIOUTCAPSW,UINT);
625 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
626 UINT16 WINAPI midiOutGetVolume16(UINT16,DWORD*);
627 UINT WINAPI midiOutGetVolume(UINT,DWORD*);
628 UINT16 WINAPI midiOutSetVolume16(UINT16,DWORD);
629 UINT WINAPI midiOutSetVolume(UINT,DWORD);
630 UINT16 WINAPI midiOutGetErrorText16(UINT16,LPSTR,UINT16);
631 UINT WINAPI midiOutGetErrorTextA(UINT,LPSTR,UINT);
632 UINT WINAPI midiOutGetErrorTextW(UINT,LPWSTR,UINT);
633 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
634 UINT16 WINAPI midiGetErrorText(UINT16,LPSTR,UINT16);
635 UINT16 WINAPI midiOutOpen16(HMIDIOUT16*,UINT16,DWORD,DWORD,DWORD);
636 UINT WINAPI midiOutOpen(HMIDIOUT*,UINT,DWORD,DWORD,DWORD);
637 UINT16 WINAPI midiOutClose16(HMIDIOUT16);
638 UINT WINAPI midiOutClose(HMIDIOUT);
639 UINT16 WINAPI midiOutPrepareHeader16(HMIDIOUT16,MIDIHDR16*,UINT16);
640 UINT WINAPI midiOutPrepareHeader(HMIDIOUT,MIDIHDR*,UINT);
641 UINT16 WINAPI midiOutUnprepareHeader16(HMIDIOUT16,MIDIHDR16*,UINT16);
642 UINT WINAPI midiOutUnprepareHeader(HMIDIOUT,MIDIHDR*,UINT);
643 UINT16 WINAPI midiOutShortMsg16(HMIDIOUT16,DWORD);
644 UINT WINAPI midiOutShortMsg(HMIDIOUT,DWORD);
645 UINT16 WINAPI midiOutLongMsg16(HMIDIOUT16,MIDIHDR16*,UINT16);
646 UINT WINAPI midiOutLongMsg(HMIDIOUT,MIDIHDR*,UINT);
647 UINT16 WINAPI midiOutReset16(HMIDIOUT16);
648 UINT WINAPI midiOutReset(HMIDIOUT);
649 UINT16 WINAPI midiOutCachePatches16(HMIDIOUT16,UINT16,WORD*,UINT16);
650 UINT WINAPI midiOutCachePatches(HMIDIOUT,UINT,WORD*,UINT);
651 UINT16 WINAPI midiOutCacheDrumPatches16(HMIDIOUT16,UINT16,WORD*,UINT16);
652 UINT WINAPI midiOutCacheDrumPatches(HMIDIOUT,UINT,WORD*,UINT);
653 UINT16 WINAPI midiOutGetID16(HMIDIOUT16,UINT16*);
654 UINT WINAPI midiOutGetID(HMIDIOUT,UINT*);
656 DWORD WINAPI midiOutMessage16(HMIDIOUT16,UINT16,DWORD,DWORD);
657 DWORD WINAPI midiOutMessage(HMIDIOUT,UINT,DWORD,DWORD);
659 UINT16 WINAPI midiInGetNumDevs16(void);
660 UINT WINAPI midiInGetNumDevs(void);
661 UINT16 WINAPI midiInGetDevCaps16(UINT16,LPMIDIINCAPS16,UINT16);
662 UINT WINAPI midiInGetDevCapsA(UINT,LPMIDIINCAPSA,UINT);
663 UINT WINAPI midiInGetDevCapsW(UINT,LPMIDIINCAPSW,UINT);
664 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
665 UINT16 WINAPI midiInGetErrorText16(UINT16,LPSTR,UINT16);
666 UINT WINAPI midiInGetErrorTextA(UINT,LPSTR,UINT);
667 UINT WINAPI midiInGetErrorTextW(UINT,LPWSTR,UINT);
668 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
669 UINT16 WINAPI midiInOpen16(HMIDIIN16*,UINT16,DWORD,DWORD,DWORD);
670 UINT WINAPI midiInOpen(HMIDIIN*,UINT,DWORD,DWORD,DWORD);
671 UINT16 WINAPI midiInClose16(HMIDIIN16);
672 UINT WINAPI midiInClose(HMIDIIN);
673 UINT16 WINAPI midiInPrepareHeader16(HMIDIIN16,MIDIHDR16*,UINT16);
674 UINT WINAPI midiInPrepareHeader(HMIDIIN,MIDIHDR*,UINT);
675 UINT16 WINAPI midiInUnprepareHeader16(HMIDIIN16,MIDIHDR16*,UINT16);
676 UINT WINAPI midiInUnprepareHeader(HMIDIIN,MIDIHDR*,UINT);
677 UINT16 WINAPI midiInAddBuffer16(HMIDIIN16,MIDIHDR16*,UINT16);
678 UINT WINAPI midiInAddBuffer(HMIDIIN,MIDIHDR*,UINT);
679 UINT16 WINAPI midiInStart16(HMIDIIN16);
680 UINT WINAPI midiInStart(HMIDIIN);
681 UINT16 WINAPI midiInStop16(HMIDIIN16);
682 UINT WINAPI midiInStop(HMIDIIN);
683 UINT16 WINAPI midiInReset16(HMIDIIN16);
684 UINT WINAPI midiInReset(HMIDIIN);
685 UINT16 WINAPI midiInGetID16(HMIDIIN16,UINT16*);
686 UINT WINAPI midiInGetID(HMIDIIN,UINT*);
687 DWORD WINAPI midiInMessage16(HMIDIIN16,UINT16,DWORD,DWORD);
688 DWORD WINAPI midiInMessage(HMIDIIN,UINT,DWORD,DWORD);
690 MMRESULT16 WINAPI midiStreamClose16(HMIDISTRM16 hms);
691 MMRESULT WINAPI midiStreamClose(HMIDISTRM hms);
692 MMRESULT WINAPI midiStreamOpen(HMIDISTRM* phms, LPUINT uDeviceID, DWORD cMidi,
693 DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen);
694 MMRESULT16 WINAPI midiStreamOpen16(HMIDISTRM16* phms, LPUINT16 devid, DWORD cMidi,
695 DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen);
696 MMRESULT16 WINAPI midiStreamOut16(HMIDISTRM16 hms, LPMIDIHDR16 lpMidiHdr, UINT16 cbMidiHdr);
697 MMRESULT WINAPI midiStreamOut(HMIDISTRM hms, LPMIDIHDR lpMidiHdr, UINT cbMidiHdr);
698 MMRESULT16 WINAPI midiStreamPause16(HMIDISTRM16 hms);
699 MMRESULT WINAPI midiStreamPause(HMIDISTRM hms);
700 MMRESULT16 WINAPI midiStreamPosition16(HMIDISTRM16 hms, LPMMTIME16 lpmmt, UINT16 cbmmt);
701 MMRESULT WINAPI midiStreamPosition(HMIDISTRM hms, LPMMTIME lpmmt, UINT cbmmt);
702 MMRESULT16 WINAPI midiStreamProperty16(HMIDISTRM16 hms, LPBYTE lpPropData, DWORD dwProperty);
703 MMRESULT WINAPI midiStreamProperty(HMIDISTRM hms, LPBYTE lpPropData, DWORD dwProperty);
704 MMRESULT16 WINAPI midiStreamRestart16(HMIDISTRM16 hms);
705 MMRESULT WINAPI midiStreamRestart(HMIDISTRM hms);
706 MMRESULT16 WINAPI midiStreamStop16(HMIDISTRM16 hms);
707 MMRESULT WINAPI midiStreamStop(HMIDISTRM hms);
709 #define AUX_MAPPER (-1)
711 typedef struct {
712 WORD wMid; /* manufacturer ID */
713 WORD wPid; /* product ID */
714 MMVERSION16 vDriverVersion; /* version of the driver */
715 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
716 WORD wTechnology; /* type of device */
717 DWORD dwSupport; /* functionality supported by driver */
718 } AUXCAPS16, *LPAUXCAPS16;
720 typedef struct {
721 WORD wMid; /* manufacturer ID */
722 WORD wPid; /* product ID */
723 MMVERSION vDriverVersion; /* version of the driver */
724 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
725 WORD wTechnology; /* type of device */
726 WORD wReserved1; /* padding */
727 DWORD dwSupport; /* functionality supported by driver */
728 } AUXCAPSA, *LPAUXCAPSA;
730 typedef struct {
731 WORD wMid; /* manufacturer ID */
732 WORD wPid; /* product ID */
733 MMVERSION vDriverVersion; /* version of the driver */
734 WCHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
735 WORD wTechnology; /* type of device */
736 WORD wReserved1; /* padding */
737 DWORD dwSupport; /* functionality supported by driver */
738 } AUXCAPSW, *LPAUXCAPSW;
740 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
741 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
743 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
744 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
746 UINT16 WINAPI auxGetNumDevs16(void);
747 UINT WINAPI auxGetNumDevs(void);
748 UINT16 WINAPI auxGetDevCaps16 (UINT16,LPAUXCAPS16,UINT16);
749 UINT WINAPI auxGetDevCapsA(UINT,LPAUXCAPSA,UINT);
750 UINT WINAPI auxGetDevCapsW(UINT,LPAUXCAPSW,UINT);
751 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
752 UINT16 WINAPI auxSetVolume16(UINT16,DWORD);
753 UINT WINAPI auxSetVolume(UINT,DWORD);
755 UINT16 WINAPI auxGetVolume16(UINT16,LPDWORD);
756 UINT WINAPI auxGetVolume(UINT,LPDWORD);
758 DWORD WINAPI auxOutMessage16(UINT16,UINT16,DWORD,DWORD);
759 DWORD WINAPI auxOutMessage(UINT,UINT,DWORD,DWORD);
761 #define TIMERR_NOERROR (0) /* no error */
762 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
763 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
765 typedef void (CALLBACK *LPTIMECALLBACK16)(UINT16 uTimerID, UINT16 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
766 typedef void (CALLBACK *LPTIMECALLBACK)(UINT uTimerID, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
768 #define TIME_ONESHOT 0x0000 /* program timer for single event */
769 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
770 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
771 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
772 #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
774 typedef struct {
775 UINT16 wPeriodMin; /* minimum period supported */
776 UINT16 wPeriodMax; /* maximum period supported */
777 } TIMECAPS16,*LPTIMECAPS16;
779 typedef struct {
780 UINT wPeriodMin;
781 UINT wPeriodMax;
782 } TIMECAPS, *LPTIMECAPS;
785 MMRESULT16 WINAPI timeGetSystemTime16(LPMMTIME16,UINT16);
786 MMRESULT WINAPI timeGetSystemTime(LPMMTIME,UINT);
787 DWORD WINAPI timeGetTime(void); /* same for win32/win16 */
788 MMRESULT16 WINAPI timeSetEvent16(UINT16,UINT16,LPTIMECALLBACK16,DWORD,UINT16);
789 MMRESULT WINAPI timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD,UINT);
790 MMRESULT16 WINAPI timeKillEvent16(UINT16);
791 MMRESULT WINAPI timeKillEvent(UINT);
792 MMRESULT16 WINAPI timeGetDevCaps16(LPTIMECAPS16,UINT16);
793 MMRESULT WINAPI timeGetDevCaps(LPTIMECAPS,UINT);
794 MMRESULT16 WINAPI timeBeginPeriod16(UINT16);
795 MMRESULT WINAPI timeBeginPeriod(UINT);
796 MMRESULT16 WINAPI timeEndPeriod16(UINT16);
797 MMRESULT WINAPI timeEndPeriod(UINT);
799 #define JOYERR_NOERROR (0) /* no error */
800 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
801 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
802 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
804 /* JOYINFO, JOYINFOEX, MM_JOY* */
805 #define JOY_BUTTON1 0x0001
806 #define JOY_BUTTON2 0x0002
807 #define JOY_BUTTON3 0x0004
808 #define JOY_BUTTON4 0x0008
809 #define JOY_BUTTON1CHG 0x0100
810 #define JOY_BUTTON2CHG 0x0200
811 #define JOY_BUTTON3CHG 0x0400
812 #define JOY_BUTTON4CHG 0x0800
814 #define JOYSTICKID1 0
815 #define JOYSTICKID2 1
817 /* JOYCAPS.wCaps */
818 #define JOYCAPS_HASZ 0x0001
819 #define JOYCAPS_HASR 0x0002
820 #define JOYCAPS_HASU 0x0004
821 #define JOYCAPS_HASV 0x0008
822 #define JOYCAPS_HASPOV 0x0010
823 #define JOYCAPS_POV4DIR 0x0020
824 #define JOYCAPS_POVCTS 0x0040
826 /* JOYINFOEX stuff */
827 #define JOY_POVCENTERED (WORD) -1
828 #define JOY_POVFORWARD 0
829 #define JOY_POVRIGHT 9000
830 #define JOY_POVBACKWARD 18000
831 #define JOY_POVLEFT 27000
833 #define JOY_RETURNX 0x00000001
834 #define JOY_RETURNY 0x00000002
835 #define JOY_RETURNZ 0x00000004
836 #define JOY_RETURNR 0x00000008
837 #define JOY_RETURNU 0x00000010
838 #define JOY_RETURNV 0x00000020
839 #define JOY_RETURNPOV 0x00000040
840 #define JOY_RETURNBUTTONS 0x00000080
841 #define JOY_RETURNRAWDATA 0x00000100
842 #define JOY_RETURNPOVCTS 0x00000200
843 #define JOY_RETURNCENTERED 0x00000400
844 #define JOY_USEDEADZONE 0x00000800
845 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
846 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
847 JOY_RETURNPOV | JOY_RETURNBUTTONS)
848 #define JOY_CAL_READALWAYS 0x00010000
849 #define JOY_CAL_READXYONLY 0x00020000
850 #define JOY_CAL_READ3 0x00040000
851 #define JOY_CAL_READ4 0x00080000
852 #define JOY_CAL_READXONLY 0x00100000
853 #define JOY_CAL_READYONLY 0x00200000
854 #define JOY_CAL_READ5 0x00400000
855 #define JOY_CAL_READ6 0x00800000
856 #define JOY_CAL_READZONLY 0x01000000
857 #define JOY_CAL_READRONLY 0x02000000
858 #define JOY_CAL_READUONLY 0x04000000
859 #define JOY_CAL_READVONLY 0x08000000
861 typedef struct {
862 WORD wMid; /* manufacturer ID */
863 WORD wPid; /* product ID */
864 char szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
865 UINT16 wXmin; /* minimum x position value */
866 UINT16 wXmax; /* maximum x position value */
867 UINT16 wYmin; /* minimum y position value */
868 UINT16 wYmax; /* maximum y position value */
869 UINT16 wZmin; /* minimum z position value */
870 UINT16 wZmax; /* maximum z position value */
871 UINT16 wNumButtons; /* number of buttons */
872 UINT16 wPeriodMin; /* minimum message period when captured */
873 UINT16 wPeriodMax; /* maximum message period when captured */
874 /* win95,nt4 additions: */
875 UINT16 wRmin; /* minimum r position value */
876 UINT16 wRmax; /* maximum r position value */
877 UINT16 wUmin; /* minimum u (5th axis) position value */
878 UINT16 wUmax; /* maximum u (5th axis) position value */
879 UINT16 wVmin; /* minimum v (6th axis) position value */
880 UINT16 wVmax; /* maximum v (6th axis) position value */
881 UINT16 wCaps; /* joystick capabilites */
882 UINT16 wMaxAxes; /* maximum number of axes supported */
883 UINT16 wNumAxes; /* number of axes in use */
884 UINT16 wMaxButtons; /* maximum number of buttons supported */
885 CHAR szRegKey[MAXPNAMELEN]; /* registry key */
886 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME]; /* OEM VxD in use */
887 } JOYCAPS16, *LPJOYCAPS16;
889 typedef struct {
890 WORD wMid;
891 WORD wPid;
892 CHAR szPname[MAXPNAMELEN];
893 UINT wXmin;
894 UINT wXmax;
895 UINT wYmin;
896 UINT wYmax;
897 UINT wZmin;
898 UINT wZmax;
899 UINT wNumButtons;
900 UINT wPeriodMin;
901 UINT wPeriodMax;
902 UINT wRmin;
903 UINT wRmax;
904 UINT wUmin;
905 UINT wUmax;
906 UINT wVmin;
907 UINT wVmax;
908 UINT wCaps;
909 UINT wMaxAxes;
910 UINT wNumAxes;
911 UINT wMaxButtons;
912 CHAR szRegKey[MAXPNAMELEN];
913 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
914 } JOYCAPSA, *LPJOYCAPSA;
916 typedef struct {
917 WORD wMid;
918 WORD wPid;
919 WCHAR szPname[MAXPNAMELEN];
920 UINT wXmin;
921 UINT wXmax;
922 UINT wYmin;
923 UINT wYmax;
924 UINT wZmin;
925 UINT wZmax;
926 UINT wNumButtons;
927 UINT wPeriodMin;
928 UINT wPeriodMax;
929 UINT wRmin;
930 UINT wRmax;
931 UINT wUmin;
932 UINT wUmax;
933 UINT wVmin;
934 UINT wVmax;
935 UINT wCaps;
936 UINT wMaxAxes;
937 UINT wNumAxes;
938 UINT wMaxButtons;
939 WCHAR szRegKey[MAXPNAMELEN];
940 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
941 } JOYCAPSW, *LPJOYCAPSW;
942 DECL_WINELIB_TYPE_AW(JOYCAPS)
943 DECL_WINELIB_TYPE_AW(LPJOYCAPS)
945 typedef struct {
946 UINT16 wXpos; /* x position */
947 UINT16 wYpos; /* y position */
948 UINT16 wZpos; /* z position */
949 UINT16 wButtons; /* button states */
950 } JOYINFO16, *LPJOYINFO16;
952 typedef struct {
953 UINT wXpos;
954 UINT wYpos;
955 UINT wZpos;
956 UINT wButtons;
957 } JOYINFO, *LPJOYINFO;
959 typedef struct {
960 DWORD dwSize; /* size of structure */
961 DWORD dwFlags; /* flags to indicate what to return */
962 DWORD dwXpos; /* x position */
963 DWORD dwYpos; /* y position */
964 DWORD dwZpos; /* z position */
965 DWORD dwRpos; /* rudder/4th axis position */
966 DWORD dwUpos; /* 5th axis position */
967 DWORD dwVpos; /* 6th axis position */
968 DWORD dwButtons; /* button states */
969 DWORD dwButtonNumber; /* current button number pressed */
970 DWORD dwPOV; /* point of view state */
971 DWORD dwReserved1; /* reserved for communication between winmm & driver */
972 DWORD dwReserved2; /* reserved for future expansion */
973 } JOYINFOEX,*LPJOYINFOEX;
976 MMRESULT16 WINAPI joyGetDevCaps16 (UINT16,LPJOYCAPS16 ,UINT16);
977 MMRESULT WINAPI joyGetDevCapsA(UINT,LPJOYCAPSA,UINT);
978 MMRESULT WINAPI joyGetDevCapsW(UINT,LPJOYCAPSW,UINT);
979 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
980 UINT16 WINAPI joyGetNumDevs16(void);
981 UINT WINAPI joyGetNumDevs(void);
982 MMRESULT16 WINAPI joyGetPos16(UINT16,LPJOYINFO16);
983 MMRESULT WINAPI joyGetPos(UINT,LPJOYINFO);
984 MMRESULT WINAPI joyGetPosEx(UINT,LPJOYINFOEX);
985 MMRESULT16 WINAPI joyGetThreshold16(UINT16,UINT16*);
986 MMRESULT WINAPI joyGetThreshold(UINT,UINT*);
987 MMRESULT16 WINAPI joyReleaseCapture16(UINT16);
988 MMRESULT WINAPI joyReleaseCapture(UINT);
989 MMRESULT16 WINAPI joySetCapture16(HWND16,UINT16,UINT16,BOOL16);
990 MMRESULT WINAPI joySetCapture(HWND,UINT,UINT,BOOL);
991 MMRESULT16 WINAPI joySetThreshold16(UINT16,UINT16);
992 MMRESULT WINAPI joySetThreshold(UINT,UINT);
994 #define MIXERR_BASE 1024
995 #define MIXERR_INVALLINE (MIXERR_BASE + 0)
996 #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
997 #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
998 #define MIXERR_LASTERROR (MIXERR_BASE + 2)
1000 typedef struct {
1001 WORD wMid; /* manufacturer id */
1002 WORD wPid; /* product id */
1003 MMVERSION16 vDriverVersion; /* version of the driver */
1004 CHAR szPname[MAXPNAMELEN]; /* product name */
1005 DWORD fdwSupport; /* misc. support bits */
1006 DWORD cDestinations; /* count of destinations */
1007 } MIXERCAPS16,*LPMIXERCAPS16;
1009 typedef struct {
1010 WORD wMid;
1011 WORD wPid;
1012 MMVERSION vDriverVersion;
1013 CHAR szPname[MAXPNAMELEN];
1014 DWORD fdwSupport;
1015 DWORD cDestinations;
1016 } MIXERCAPSA,*LPMIXERCAPSA;
1018 typedef struct {
1019 WORD wMid;
1020 WORD wPid;
1021 MMVERSION vDriverVersion;
1022 WCHAR szPname[MAXPNAMELEN];
1023 DWORD fdwSupport;
1024 DWORD cDestinations;
1025 } MIXERCAPSW,*LPMIXERCAPSW;
1027 DECL_WINELIB_TYPE_AW(MIXERCAPS)
1028 DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
1030 #define MIXER_SHORT_NAME_CHARS 16
1031 #define MIXER_LONG_NAME_CHARS 64
1033 /* MIXERLINE.fdwLine */
1034 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1035 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1036 #define MIXERLINE_LINEF_SOURCE 0x80000000
1038 /* MIXERLINE.dwComponentType */
1039 /* component types for destinations and sources */
1040 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1041 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1042 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1043 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1044 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1045 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1046 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1047 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1048 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1049 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1050 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1052 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1053 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1054 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1055 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1056 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1057 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1058 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1059 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1060 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1061 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1062 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1063 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1064 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1066 /* MIXERLINE.Target.dwType */
1067 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1068 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1069 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1070 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1071 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1072 #define MIXERLINE_TARGETTYPE_AUX 5
1074 typedef struct {
1075 DWORD cbStruct; /* size of MIXERLINE structure */
1076 DWORD dwDestination; /* zero based destination index */
1077 DWORD dwSource; /* zero based source index (if source) */
1078 DWORD dwLineID; /* unique line id for mixer device */
1079 DWORD fdwLine; /* state/information about line */
1080 DWORD dwUser; /* driver specific information */
1081 DWORD dwComponentType; /* component type line connects to */
1082 DWORD cChannels; /* number of channels line supports */
1083 DWORD cConnections; /* number of connections [possible] */
1084 DWORD cControls; /* number of controls at this line */
1085 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1086 CHAR szName[MIXER_LONG_NAME_CHARS];
1087 struct {
1088 DWORD dwType; /* MIXERLINE_TARGETTYPE_xxxx */
1089 DWORD dwDeviceID; /* target device ID of device type */
1090 WORD wMid; /* of target device */
1091 WORD wPid; /* " */
1092 MMVERSION16 vDriverVersion; /* " */
1093 CHAR szPname[MAXPNAMELEN]; /* " */
1094 } Target;
1095 } MIXERLINE16, *LPMIXERLINE16;
1097 typedef struct {
1098 DWORD cbStruct;
1099 DWORD dwDestination;
1100 DWORD dwSource;
1101 DWORD dwLineID;
1102 DWORD fdwLine;
1103 DWORD dwUser;
1104 DWORD dwComponentType;
1105 DWORD cChannels;
1106 DWORD cConnections;
1107 DWORD cControls;
1108 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1109 CHAR szName[MIXER_LONG_NAME_CHARS];
1110 struct {
1111 DWORD dwType;
1112 DWORD dwDeviceID;
1113 WORD wMid;
1114 WORD wPid;
1115 MMVERSION vDriverVersion;
1116 CHAR szPname[MAXPNAMELEN];
1117 } Target;
1118 } MIXERLINEA, *LPMIXERLINEA;
1120 typedef struct {
1121 DWORD cbStruct;
1122 DWORD dwDestination;
1123 DWORD dwSource;
1124 DWORD dwLineID;
1125 DWORD fdwLine;
1126 DWORD dwUser;
1127 DWORD dwComponentType;
1128 DWORD cChannels;
1129 DWORD cConnections;
1130 DWORD cControls;
1131 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1132 WCHAR szName[MIXER_LONG_NAME_CHARS];
1133 struct {
1134 DWORD dwType;
1135 DWORD dwDeviceID;
1136 WORD wMid;
1137 WORD wPid;
1138 MMVERSION vDriverVersion;
1139 WCHAR szPname[MAXPNAMELEN];
1140 } Target;
1141 } MIXERLINEW, *LPMIXERLINEW;
1143 DECL_WINELIB_TYPE_AW(MIXERLINE)
1144 DECL_WINELIB_TYPE_AW(LPMIXERLINE)
1146 /* MIXERCONTROL.fdwControl */
1147 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1148 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1149 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1151 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1152 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1153 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1154 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1155 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1156 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1157 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1158 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1159 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1160 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1162 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1164 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1165 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1167 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1169 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1170 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1172 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1173 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1175 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1176 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1177 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1178 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1179 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1180 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1181 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1183 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1184 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1185 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1186 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1187 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1188 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1189 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1190 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1191 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1192 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1193 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1194 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1195 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1196 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1197 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1198 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1199 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1200 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1201 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1202 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1203 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1204 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1205 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1206 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1207 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1208 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1209 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1210 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1211 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1212 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1213 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1216 typedef struct {
1217 DWORD cbStruct; /* size in bytes of MIXERCONTROL */
1218 DWORD dwControlID; /* unique control id for mixer device */
1219 DWORD dwControlType; /* MIXERCONTROL_CONTROLTYPE_xxx */
1220 DWORD fdwControl; /* MIXERCONTROL_CONTROLF_xxx */
1221 DWORD cMultipleItems; /* if MIXERCONTROL_CONTROLF_MULTIPLE set */
1222 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1223 CHAR szName[MIXER_LONG_NAME_CHARS];
1224 union {
1225 struct {
1226 LONG lMinimum; /* signed minimum for this control */
1227 LONG lMaximum; /* signed maximum for this control */
1228 } l;
1229 struct {
1230 DWORD dwMinimum; /* unsigned minimum for this control */
1231 DWORD dwMaximum; /* unsigned maximum for this control */
1232 } dw;
1233 DWORD dwReserved[6];
1234 } Bounds;
1235 union {
1236 DWORD cSteps; /* # of steps between min & max */
1237 DWORD cbCustomData; /* size in bytes of custom data */
1238 DWORD dwReserved[6]; /* !!! needed? we have cbStruct.... */
1239 } Metrics;
1240 } MIXERCONTROL16, *LPMIXERCONTROL16;
1242 typedef struct {
1243 DWORD cbStruct;
1244 DWORD dwControlID;
1245 DWORD dwControlType;
1246 DWORD fdwControl;
1247 DWORD cMultipleItems;
1248 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1249 CHAR szName[MIXER_LONG_NAME_CHARS];
1250 union {
1251 struct {
1252 LONG lMinimum;
1253 LONG lMaximum;
1254 } l;
1255 struct {
1256 DWORD dwMinimum;
1257 DWORD dwMaximum;
1258 } dw;
1259 DWORD dwReserved[6];
1260 } Bounds;
1261 union {
1262 DWORD cSteps;
1263 DWORD cbCustomData;
1264 DWORD dwReserved[6];
1265 } Metrics;
1266 } MIXERCONTROLA, *LPMIXERCONTROLA;
1268 typedef struct {
1269 DWORD cbStruct;
1270 DWORD dwControlID;
1271 DWORD dwControlType;
1272 DWORD fdwControl;
1273 DWORD cMultipleItems;
1274 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1275 WCHAR szName[MIXER_LONG_NAME_CHARS];
1276 union {
1277 struct {
1278 LONG lMinimum;
1279 LONG lMaximum;
1280 } l;
1281 struct {
1282 DWORD dwMinimum;
1283 DWORD dwMaximum;
1284 } dw;
1285 DWORD dwReserved[6];
1286 } Bounds;
1287 union {
1288 DWORD cSteps;
1289 DWORD cbCustomData;
1290 DWORD dwReserved[6];
1291 } Metrics;
1292 } MIXERCONTROLW, *LPMIXERCONTROLW;
1294 DECL_WINELIB_TYPE_AW(MIXERCONTROL)
1295 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
1297 typedef struct {
1298 DWORD cbStruct; /* size in bytes of MIXERLINECONTROLS */
1299 DWORD dwLineID; /* line id (from MIXERLINE.dwLineID) */
1300 union {
1301 DWORD dwControlID; /* MIXER_GETLINECONTROLSF_ONEBYID */
1302 DWORD dwControlType; /* MIXER_GETLINECONTROLSF_ONEBYTYPE */
1303 } u;
1304 DWORD cControls; /* count of controls pmxctrl points to */
1305 DWORD cbmxctrl; /* size in bytes of _one_ MIXERCONTROL */
1306 LPMIXERCONTROL16 pamxctrl;/* pointer to first MIXERCONTROL array */
1307 } MIXERLINECONTROLS16, *LPMIXERLINECONTROLS16;
1309 typedef struct {
1310 DWORD cbStruct;
1311 DWORD dwLineID;
1312 union {
1313 DWORD dwControlID;
1314 DWORD dwControlType;
1315 } u;
1316 DWORD cControls;
1317 DWORD cbmxctrl;
1318 LPMIXERCONTROLA pamxctrl;
1319 } MIXERLINECONTROLSA, *LPMIXERLINECONTROLSA;
1321 typedef struct {
1322 DWORD cbStruct;
1323 DWORD dwLineID;
1324 union {
1325 DWORD dwControlID;
1326 DWORD dwControlType;
1327 } u;
1328 DWORD cControls;
1329 DWORD cbmxctrl;
1330 LPMIXERCONTROLW pamxctrl;
1331 } MIXERLINECONTROLSW, *LPMIXERLINECONTROLSW;
1333 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
1334 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
1336 typedef struct {
1337 DWORD cbStruct; /* size in bytes of MIXERCONTROLDETAILS */
1338 DWORD dwControlID; /* control id to get/set details on */
1339 DWORD cChannels; /* number of channels in paDetails array */
1340 union {
1341 HWND16 hwndOwner; /* for MIXER_SETCONTROLDETAILSF_CUSTOM */
1342 DWORD cMultipleItems; /* if _MULTIPLE, the number of items per channel */
1343 } u;
1344 DWORD cbDetails; /* size of _one_ details_XX struct */
1345 LPVOID paDetails; /* pointer to array of details_XX structs */
1346 } MIXERCONTROLDETAILS16,*LPMIXERCONTROLDETAILS16;
1348 typedef struct {
1349 DWORD cbStruct;
1350 DWORD dwControlID;
1351 DWORD cChannels;
1352 union {
1353 HWND hwndOwner;
1354 DWORD cMultipleItems;
1355 } u;
1356 DWORD cbDetails;
1357 LPVOID paDetails;
1358 } MIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
1361 typedef struct {
1362 DWORD dwParam1;
1363 DWORD dwParam2;
1364 CHAR szName[MIXER_LONG_NAME_CHARS];
1365 } MIXERCONTROLDETAILS_LISTTEXT16,*LPMIXERCONTROLDETAILS_LISTTEXT16;
1367 typedef struct {
1368 DWORD dwParam1;
1369 DWORD dwParam2;
1370 CHAR szName[MIXER_LONG_NAME_CHARS];
1371 } MIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
1373 typedef struct {
1374 DWORD dwParam1;
1375 DWORD dwParam2;
1376 WCHAR szName[MIXER_LONG_NAME_CHARS];
1377 } MIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
1379 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
1380 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
1382 /* MIXER_GETCONTROLDETAILSF_VALUE */
1383 typedef struct {
1384 LONG fValue;
1385 } MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1387 typedef struct {
1388 LONG lValue;
1389 } MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1391 typedef struct {
1392 DWORD dwValue;
1393 } MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1395 /* bits passed to mixerGetLineInfo.fdwInfo */
1396 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1397 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1398 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1399 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1400 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1401 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1403 /* bitmask passed to mixerGetLineControl */
1404 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1405 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1406 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1407 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1409 /* bitmask passed to mixerGetControlDetails */
1410 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1411 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1412 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1414 /* bitmask passed to mixerSetControlDetails */
1415 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1416 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1417 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1419 UINT16 WINAPI mixerGetNumDevs16(void);
1420 UINT WINAPI mixerGetNumDevs(void);
1421 UINT16 WINAPI mixerOpen16(LPHMIXER16,UINT16,DWORD,DWORD,DWORD);
1422 UINT WINAPI mixerOpen(LPHMIXER,UINT,DWORD,DWORD,DWORD);
1423 UINT16 WINAPI mixerClose16(HMIXER16);
1424 UINT WINAPI mixerClose(HMIXER);
1425 UINT16 WINAPI mixerMessage16(HMIXER16,UINT16,DWORD,DWORD);
1426 UINT WINAPI mixerMessage(HMIXER,UINT,DWORD,DWORD);
1427 UINT16 WINAPI mixerGetDevCaps16(UINT16,LPMIXERCAPS16,UINT16);
1428 UINT WINAPI mixerGetDevCapsA(UINT,LPMIXERCAPSA,UINT);
1429 UINT WINAPI mixerGetDevCapsW(UINT,LPMIXERCAPSW,UINT);
1430 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1431 UINT16 WINAPI mixerGetLineInfo16(HMIXEROBJ16,LPMIXERLINE16,DWORD);
1432 UINT WINAPI mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
1433 UINT WINAPI mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
1434 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1435 UINT16 WINAPI mixerGetID16(HMIXEROBJ16,LPUINT16,DWORD);
1436 UINT WINAPI mixerGetID(HMIXEROBJ,LPUINT,DWORD);
1437 UINT16 WINAPI mixerGetLineControls16(HMIXEROBJ16,LPMIXERLINECONTROLS16,DWORD);
1438 UINT WINAPI mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
1439 UINT WINAPI mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
1440 #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1441 UINT16 WINAPI mixerGetControlDetails16(HMIXEROBJ16,LPMIXERCONTROLDETAILS16,DWORD);
1442 UINT WINAPI mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1443 UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1444 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1445 UINT16 WINAPI mixerSetControlDetails16(HMIXEROBJ16,LPMIXERCONTROLDETAILS16,DWORD);
1446 UINT WINAPI mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1448 #define MMIOERR_BASE 256
1449 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1450 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1451 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1452 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1453 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1454 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1455 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1456 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1457 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1458 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1460 #define CFSEPCHAR '+' /* compound file name separator char. */
1462 typedef DWORD FOURCC; /* a four character code */
1463 typedef LONG (CALLBACK *LPMMIOPROC16)(LPSTR lpmmioinfo, UINT16 uMessage,
1464 LPARAM lParam1, LPARAM lParam2);
1465 typedef LONG (CALLBACK *LPMMIOPROC)(LPSTR lpmmioinfo, UINT uMessage,
1466 LPARAM lParam1, LPARAM lParam2);
1468 typedef struct {
1469 DWORD dwFlags; /* general status flags */
1470 FOURCC fccIOProc; /* pointer to I/O procedure */
1471 LPMMIOPROC16 pIOProc; /* pointer to I/O procedure */
1472 UINT16 wErrorRet; /* place for error to be returned */
1473 HTASK16 htask; /* alternate local task */
1474 /* fields maintained by MMIO functions during buffered I/O */
1475 LONG cchBuffer; /* size of I/O buffer (or 0L) */
1476 HPSTR pchBuffer; /* start of I/O buffer (or NULL) */
1477 HPSTR pchNext; /* pointer to next byte to read/write */
1478 HPSTR pchEndRead; /* pointer to last valid byte to read */
1479 HPSTR pchEndWrite; /* pointer to last byte to write */
1480 LONG lBufOffset; /* disk offset of start of buffer */
1481 /* fields maintained by I/O procedure */
1482 LONG lDiskOffset; /* disk offset of next read or write */
1483 DWORD adwInfo[3]; /* data specific to type of MMIOPROC */
1484 /* other fields maintained by MMIO */
1485 DWORD dwReserved1; /* reserved for MMIO use */
1486 DWORD dwReserved2; /* reserved for MMIO use */
1487 HMMIO16 hmmio; /* handle to open file */
1488 } MMIOINFO16, *LPMMIOINFO16;
1490 typedef struct {
1491 DWORD dwFlags;
1492 FOURCC fccIOProc;
1493 LPMMIOPROC pIOProc;
1494 UINT wErrorRet;
1495 HTASK htask;
1496 /* fields maintained by MMIO functions during buffered I/O */
1497 LONG cchBuffer;
1498 HPSTR pchBuffer;
1499 HPSTR pchNext;
1500 HPSTR pchEndRead;
1501 HPSTR pchEndWrite;
1502 LONG lBufOffset;
1503 /* fields maintained by I/O procedure */
1504 LONG lDiskOffset;
1505 DWORD adwInfo[3];
1506 /* other fields maintained by MMIO */
1507 DWORD dwReserved1;
1508 DWORD dwReserved2;
1509 HMMIO hmmio;
1510 } MMIOINFO, *PMMIOINFO, *LPMMIOINFO;
1513 typedef struct _MMCKINFO
1515 FOURCC ckid; /* chunk ID */
1516 DWORD cksize; /* chunk size */
1517 FOURCC fccType; /* form type or list type */
1518 DWORD dwDataOffset; /* offset of data portion of chunk */
1519 DWORD dwFlags; /* flags used by MMIO functions */
1520 } MMCKINFO, *LPMMCKINFO;
1522 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1523 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1525 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1526 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1527 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1528 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1529 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1530 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1532 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1534 #define MMIO_READ 0x00000000 /* open file for reading only */
1535 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1536 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1538 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1539 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1540 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1541 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1542 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1544 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1545 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1546 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1547 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1548 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1549 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1550 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1551 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1552 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1553 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1554 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1555 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1557 #define SEEK_SET 0
1558 #define SEEK_CUR 1
1559 #define SEEK_END 2
1561 #define MMIOM_READ MMIO_READ /* read */
1562 #define MMIOM_WRITE MMIO_WRITE /* write */
1563 #define MMIOM_SEEK 2 /* seek to a new position in file */
1564 #define MMIOM_OPEN 3 /* open file */
1565 #define MMIOM_CLOSE 4 /* close file */
1566 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1568 #define MMIOM_RENAME 6 /* rename specified file */
1570 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1572 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1573 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1575 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1576 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1578 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1580 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1581 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1582 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1584 LPMMIOPROC16 WINAPI mmioInstallIOProc16(FOURCC,LPMMIOPROC16,DWORD);
1585 LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
1586 LPMMIOPROC WINAPI mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
1587 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1589 FOURCC WINAPI mmioStringToFOURCC16(LPCSTR,UINT16);
1590 FOURCC WINAPI mmioStringToFOURCCA(LPCSTR,UINT);
1591 FOURCC WINAPI mmioStringToFOURCCW(LPCWSTR,UINT);
1592 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1593 HMMIO16 WINAPI mmioOpen16 (LPSTR ,MMIOINFO16*,DWORD);
1594 HMMIO WINAPI mmioOpenA(LPSTR ,MMIOINFO*,DWORD);
1595 HMMIO WINAPI mmioOpenW(LPWSTR,MMIOINFO*,DWORD);
1596 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1598 UINT16 WINAPI mmioRename16(LPCSTR szFileName, LPCSTR szNewFileName,
1599 MMIOINFO16 * lpmmioinfo, DWORD dwRenameFlags);
1600 UINT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
1601 MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1602 UINT WINAPI mmioRenameW(LPCWSTR szFileName, LPCWSTR szNewFileName,
1603 MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1604 #define mmioRename WINELIB_NAME_AW(mmioRename)
1606 MMRESULT16 WINAPI mmioClose16(HMMIO16,UINT16);
1607 MMRESULT WINAPI mmioClose(HMMIO,UINT);
1608 LONG WINAPI mmioRead16(HMMIO16,HPSTR,LONG);
1609 LONG WINAPI mmioRead(HMMIO,HPSTR,LONG);
1610 LONG WINAPI mmioWrite16(HMMIO16,HPCSTR,LONG);
1611 LONG WINAPI mmioWrite(HMMIO,HPCSTR,LONG);
1612 LONG WINAPI mmioSeek16(HMMIO16,LONG,INT16);
1613 LONG WINAPI mmioSeek(HMMIO,LONG,INT);
1614 MMRESULT16 WINAPI mmioGetInfo16(HMMIO16,MMIOINFO16*,UINT16);
1615 MMRESULT WINAPI mmioGetInfo(HMMIO,MMIOINFO*,UINT);
1616 MMRESULT16 WINAPI mmioSetInfo16(HMMIO16,const MMIOINFO16*,UINT16);
1617 MMRESULT WINAPI mmioSetInfo(HMMIO,const MMIOINFO*,UINT);
1618 UINT16 WINAPI mmioSetBuffer16(HMMIO16,LPSTR,LONG,UINT16);
1619 UINT WINAPI mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
1620 UINT16 WINAPI mmioFlush16(HMMIO16,UINT16);
1621 UINT WINAPI mmioFlush(HMMIO,UINT);
1622 UINT16 WINAPI mmioAdvance16(HMMIO16,MMIOINFO16*,UINT16);
1623 UINT WINAPI mmioAdvance(HMMIO,MMIOINFO*,UINT);
1624 LONG WINAPI mmioSendMessage(HMMIO16,UINT16,LPARAM,LPARAM);
1625 UINT16 WINAPI mmioDescend(HMMIO16,MMCKINFO*,const MMCKINFO*,UINT16);
1627 UINT16 WINAPI mmioAscend16(HMMIO16,MMCKINFO*,UINT16);
1628 UINT WINAPI mmioAscend(HMMIO,MMCKINFO*,UINT);
1629 UINT16 WINAPI mmioCreateChunk16(HMMIO16,MMCKINFO*,UINT16);
1630 UINT WINAPI mmioCreateChunk(HMMIO,MMCKINFO*,UINT);
1632 typedef UINT16 (CALLBACK *YIELDPROC)(UINT16,DWORD);
1634 DWORD WINAPI mciSendCommand16(UINT16,UINT16,DWORD,DWORD);
1635 DWORD WINAPI mciSendCommandA(UINT,UINT,DWORD,DWORD);
1636 DWORD WINAPI mciSendCommandW(UINT,UINT,DWORD,DWORD);
1637 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1639 DWORD WINAPI mciSendString16(LPCSTR,LPSTR,UINT16,HWND16);
1640 DWORD WINAPI mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
1641 DWORD WINAPI mciSendStringW(LPCWSTR,LPSTR,UINT,HWND);
1642 #define mciSendString WINELIB_NAME_AW(mciSendString)
1644 UINT16 WINAPI mciGetDeviceID16(LPCSTR);
1645 UINT WINAPI mciGetDeviceIDA(LPCSTR);
1646 UINT WINAPI mciGetDeviceIDW(LPCWSTR);
1647 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1649 UINT16 WINAPI mciGetDeviceIDFromElementID16(DWORD,LPCSTR);
1651 BOOL16 WINAPI mciGetErrorString16 (DWORD,LPSTR,UINT16);
1652 BOOL WINAPI mciGetErrorStringA(DWORD,LPSTR,UINT);
1653 BOOL WINAPI mciGetErrorStringW(DWORD,LPWSTR,UINT);
1654 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1656 BOOL16 WINAPI mciSetYieldProc16(UINT16,YIELDPROC,DWORD);
1657 BOOL WINAPI mciSetYieldProc(UINT,YIELDPROC,DWORD);
1659 HTASK16 WINAPI mciGetCreatorTask16(UINT16);
1660 HTASK WINAPI mciGetCreatorTask(UINT);
1662 YIELDPROC WINAPI mciGetYieldProc16(UINT16,DWORD*);
1663 YIELDPROC WINAPI mciGetYieldProc(UINT,DWORD*);
1665 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1666 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1667 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1668 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1669 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1670 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1671 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1672 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1673 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1674 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1675 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1676 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1677 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1678 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1679 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1680 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1681 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1682 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1683 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1684 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1685 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1686 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1687 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1688 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1689 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1690 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1691 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1692 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1693 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1694 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1695 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1696 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1697 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1698 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1699 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1700 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1701 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1702 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1703 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1704 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1705 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1706 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1707 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1708 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1709 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1710 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1711 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1712 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1713 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1714 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1715 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1716 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1718 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1719 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1720 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1721 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1722 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1723 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1724 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1725 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1726 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1727 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1729 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1730 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1731 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1732 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1733 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1734 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1735 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1736 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1738 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1739 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1740 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1741 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1743 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1745 #define MCI_OPEN_DRIVER 0x0801
1746 #define MCI_CLOSE_DRIVER 0x0802
1747 #define MCI_OPEN 0x0803
1748 #define MCI_CLOSE 0x0804
1749 #define MCI_ESCAPE 0x0805
1750 #define MCI_PLAY 0x0806
1751 #define MCI_SEEK 0x0807
1752 #define MCI_STOP 0x0808
1753 #define MCI_PAUSE 0x0809
1754 #define MCI_INFO 0x080A
1755 #define MCI_GETDEVCAPS 0x080B
1756 #define MCI_SPIN 0x080C
1757 #define MCI_SET 0x080D
1758 #define MCI_STEP 0x080E
1759 #define MCI_RECORD 0x080F
1760 #define MCI_SYSINFO 0x0810
1761 #define MCI_BREAK 0x0811
1762 #define MCI_SOUND 0x0812
1763 #define MCI_SAVE 0x0813
1764 #define MCI_STATUS 0x0814
1765 #define MCI_CUE 0x0830
1766 #define MCI_REALIZE 0x0840
1767 #define MCI_WINDOW 0x0841
1768 #define MCI_PUT 0x0842
1769 #define MCI_WHERE 0x0843
1770 #define MCI_FREEZE 0x0844
1771 #define MCI_UNFREEZE 0x0845
1772 #define MCI_LOAD 0x0850
1773 #define MCI_CUT 0x0851
1774 #define MCI_COPY 0x0852
1775 #define MCI_PASTE 0x0853
1776 #define MCI_UPDATE 0x0854
1777 #define MCI_RESUME 0x0855
1778 #define MCI_DELETE 0x0856
1780 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1782 #define MCI_ALL_DEVICE_ID 0xFFFF
1784 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1785 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1786 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1787 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1788 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1789 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1790 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1791 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1792 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1793 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1794 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1796 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1797 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1799 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1800 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1801 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1802 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1803 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1804 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1805 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1807 #define MCI_FORMAT_MILLISECONDS 0
1808 #define MCI_FORMAT_HMS 1
1809 #define MCI_FORMAT_MSF 2
1810 #define MCI_FORMAT_FRAMES 3
1811 #define MCI_FORMAT_SMPTE_24 4
1812 #define MCI_FORMAT_SMPTE_25 5
1813 #define MCI_FORMAT_SMPTE_30 6
1814 #define MCI_FORMAT_SMPTE_30DROP 7
1815 #define MCI_FORMAT_BYTES 8
1816 #define MCI_FORMAT_SAMPLES 9
1817 #define MCI_FORMAT_TMSF 10
1819 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1820 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1821 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1823 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1824 ((WORD)(s)<<8)) | \
1825 (((DWORD)(BYTE)(f))<<16)))
1827 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1828 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1829 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1830 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1832 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1833 ((WORD)(m)<<8)) | \
1834 (((DWORD)(BYTE)(s) | \
1835 ((WORD)(f)<<8))<<16)))
1837 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1838 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1839 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1841 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1842 ((WORD)(m)<<8)) | \
1843 (((DWORD)(BYTE)(s))<<16)))
1845 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1846 #define MCI_NOTIFY_SUPERSEDED 0x0002
1847 #define MCI_NOTIFY_ABORTED 0x0004
1848 #define MCI_NOTIFY_FAILURE 0x0008
1850 #define MCI_NOTIFY 0x00000001L
1851 #define MCI_WAIT 0x00000002L
1852 #define MCI_FROM 0x00000004L
1853 #define MCI_TO 0x00000008L
1854 #define MCI_TRACK 0x00000010L
1856 #define MCI_OPEN_SHAREABLE 0x00000100L
1857 #define MCI_OPEN_ELEMENT 0x00000200L
1858 #define MCI_OPEN_ALIAS 0x00000400L
1859 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1860 #define MCI_OPEN_TYPE_ID 0x00001000L
1861 #define MCI_OPEN_TYPE 0x00002000L
1863 #define MCI_SEEK_TO_START 0x00000100L
1864 #define MCI_SEEK_TO_END 0x00000200L
1866 #define MCI_STATUS_ITEM 0x00000100L
1867 #define MCI_STATUS_START 0x00000200L
1869 #define MCI_STATUS_LENGTH 0x00000001L
1870 #define MCI_STATUS_POSITION 0x00000002L
1871 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1872 #define MCI_STATUS_MODE 0x00000004L
1873 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1874 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1875 #define MCI_STATUS_READY 0x00000007L
1876 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1878 #define MCI_INFO_PRODUCT 0x00000100L
1879 #define MCI_INFO_FILE 0x00000200L
1881 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1883 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1884 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1885 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1886 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1887 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1888 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1889 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1890 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1891 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1893 #define MCI_SYSINFO_QUANTITY 0x00000100L
1894 #define MCI_SYSINFO_OPEN 0x00000200L
1895 #define MCI_SYSINFO_NAME 0x00000400L
1896 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1898 #define MCI_SET_DOOR_OPEN 0x00000100L
1899 #define MCI_SET_DOOR_CLOSED 0x00000200L
1900 #define MCI_SET_TIME_FORMAT 0x00000400L
1901 #define MCI_SET_AUDIO 0x00000800L
1902 #define MCI_SET_VIDEO 0x00001000L
1903 #define MCI_SET_ON 0x00002000L
1904 #define MCI_SET_OFF 0x00004000L
1906 #define MCI_SET_AUDIO_ALL 0x00000000L
1907 #define MCI_SET_AUDIO_LEFT 0x00000001L
1908 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1910 #define MCI_BREAK_KEY 0x00000100L
1911 #define MCI_BREAK_HWND 0x00000200L
1912 #define MCI_BREAK_OFF 0x00000400L
1914 #define MCI_RECORD_INSERT 0x00000100L
1915 #define MCI_RECORD_OVERWRITE 0x00000200L
1917 #define MCI_SOUND_NAME 0x00000100L
1919 #define MCI_SAVE_FILE 0x00000100L
1921 #define MCI_LOAD_FILE 0x00000100L
1923 typedef struct {
1924 DWORD dwCallback;
1925 } MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
1927 typedef struct {
1928 DWORD dwCallback;
1929 WORD wDeviceID;
1930 WORD wReserved0;
1931 LPSTR lpstrDeviceType;
1932 LPSTR lpstrElementName;
1933 LPSTR lpstrAlias;
1934 } MCI_OPEN_PARMS16, *LPMCI_OPEN_PARMS16;
1936 typedef struct {
1937 DWORD dwCallback;
1938 MCIDEVICEID wDeviceID;
1939 LPSTR lpstrDeviceType;
1940 LPSTR lpstrElementName;
1941 LPSTR lpstrAlias;
1942 } MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
1944 typedef struct {
1945 DWORD dwCallback;
1946 MCIDEVICEID wDeviceID;
1947 LPWSTR lpstrDeviceType;
1948 LPWSTR lpstrElementName;
1949 LPWSTR lpstrAlias;
1950 } MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
1952 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
1953 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
1955 typedef struct {
1956 DWORD dwCallback;
1957 DWORD dwFrom;
1958 DWORD dwTo;
1959 } MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
1961 typedef struct {
1962 DWORD dwCallback;
1963 DWORD dwTo;
1964 } MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
1966 typedef struct {
1967 DWORD dwCallback;
1968 DWORD dwReturn;
1969 DWORD dwItem;
1970 DWORD dwTrack;
1971 } MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
1973 typedef struct {
1974 DWORD dwCallback;
1975 LPSTR lpstrReturn;
1976 DWORD dwRetSize;
1977 } MCI_INFO_PARMS16, *LPMCI_INFO_PARMS16;
1979 typedef struct {
1980 DWORD dwCallback;
1981 LPSTR lpstrReturn;
1982 DWORD dwRetSize;
1983 } MCI_INFO_PARMSA, *LPMCI_INFO_PARMSA;
1985 typedef struct {
1986 DWORD dwCallback;
1987 LPSTR lpstrReturn;
1988 DWORD dwRetSize;
1989 } MCI_INFO_PARMSW, *LPMCI_INFO_PARMSW;
1991 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
1992 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
1994 typedef struct {
1995 DWORD dwCallback;
1996 DWORD dwReturn;
1997 DWORD dwItem;
1998 } MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
2000 typedef struct {
2001 DWORD dwCallback;
2002 LPSTR lpstrReturn;
2003 DWORD dwRetSize;
2004 DWORD dwNumber;
2005 WORD wDeviceType;
2006 WORD wReserved0;
2007 } MCI_SYSINFO_PARMS16, *LPMCI_SYSINFO_PARMS16;
2009 typedef struct {
2010 DWORD dwCallback;
2011 LPSTR lpstrReturn;
2012 DWORD dwRetSize;
2013 DWORD dwNumber;
2014 UINT wDeviceType;
2015 } MCI_SYSINFO_PARMSA, *LPMCI_SYSINFO_PARMSA;
2017 typedef struct {
2018 DWORD dwCallback;
2019 LPWSTR lpstrReturn;
2020 DWORD dwRetSize;
2021 DWORD dwNumber;
2022 UINT wDeviceType;
2023 } MCI_SYSINFO_PARMSW, *LPMCI_SYSINFO_PARMSW;
2025 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
2026 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
2028 typedef struct {
2029 DWORD dwCallback;
2030 DWORD dwTimeFormat;
2031 DWORD dwAudio;
2032 } MCI_SET_PARMS, *LPMCI_SET_PARMS;
2034 typedef struct {
2035 DWORD dwCallback;
2036 UINT16 nVirtKey;
2037 WORD wReserved0;
2038 HWND16 hwndBreak;
2039 WORD wReserved1;
2040 } MCI_BREAK_PARMS16, *LPMCI_BREAK_PARMS16;
2042 typedef struct {
2043 DWORD dwCallback;
2044 INT nVirtKey;
2045 HWND hwndBreak;
2046 } MCI_BREAK_PARMS, *LPMCI_BREAK_PARMS;
2049 typedef struct {
2050 DWORD dwCallback;
2051 LPCSTR lpstrSoundName;
2052 } MCI_SOUND_PARMS, *LPMCI_SOUND_PARMS;
2054 typedef struct {
2055 DWORD dwCallback;
2056 LPCSTR lpfilename;
2057 } MCI_SAVE_PARMS, *LPMCI_SAVE_PARMS;
2059 typedef struct {
2060 DWORD dwCallback;
2061 LPCSTR lpfilename;
2062 } MCI_LOAD_PARMS16, *LPMCI_LOAD_PARMS16;
2064 typedef struct {
2065 DWORD dwCallback;
2066 LPCSTR lpfilename;
2067 } MCI_LOAD_PARMSA, *LPMCI_LOAD_PARMSA;
2069 typedef struct {
2070 DWORD dwCallback;
2071 LPCWSTR lpfilename;
2072 } MCI_LOAD_PARMSW, *LPMCI_LOAD_PARMSW;
2074 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
2075 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
2077 typedef struct {
2078 DWORD dwCallback;
2079 DWORD dwFrom;
2080 DWORD dwTo;
2081 } MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
2083 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
2085 #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
2086 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
2088 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2090 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2091 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2092 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2094 #define MCI_VD_FORMAT_TRACK 0x4001
2096 #define MCI_VD_PLAY_REVERSE 0x00010000L
2097 #define MCI_VD_PLAY_FAST 0x00020000L
2098 #define MCI_VD_PLAY_SPEED 0x00040000L
2099 #define MCI_VD_PLAY_SCAN 0x00080000L
2100 #define MCI_VD_PLAY_SLOW 0x00100000L
2102 #define MCI_VD_SEEK_REVERSE 0x00010000L
2104 #define MCI_VD_STATUS_SPEED 0x00004002L
2105 #define MCI_VD_STATUS_FORWARD 0x00004003L
2106 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2107 #define MCI_VD_STATUS_SIDE 0x00004005L
2108 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2110 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2111 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2113 #define MCI_VD_SPIN_UP 0x00010000L
2114 #define MCI_VD_SPIN_DOWN 0x00020000L
2116 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2117 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2118 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2119 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2121 #define MCI_VD_STEP_FRAMES 0x00010000L
2122 #define MCI_VD_STEP_REVERSE 0x00020000L
2124 #define MCI_VD_ESCAPE_STRING 0x00000100L
2126 typedef struct {
2127 DWORD dwCallback;
2128 DWORD dwFrom;
2129 DWORD dwTo;
2130 DWORD dwSpeed;
2131 } MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
2133 typedef struct {
2134 DWORD dwCallback;
2135 DWORD dwFrames;
2136 } MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
2138 typedef struct {
2139 DWORD dwCallback;
2140 LPCSTR lpstrCommand;
2141 } MCI_VD_ESCAPE_PARMS16, *LPMCI_VD_ESCAPE_PARMS16;
2143 typedef struct {
2144 DWORD dwCallback;
2145 LPCSTR lpstrCommand;
2146 } MCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA;
2148 typedef struct {
2149 DWORD dwCallback;
2150 LPCWSTR lpstrCommand;
2151 } MCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW;
2153 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
2154 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
2156 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
2158 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
2159 #define MCI_WAVE_SET_CHANNELS 0x00020000L
2160 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2161 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2162 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2163 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2165 #define MCI_WAVE_INPUT 0x00400000L
2166 #define MCI_WAVE_OUTPUT 0x00800000L
2168 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2169 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2170 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2171 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2172 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2173 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2174 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
2176 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
2177 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2179 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2180 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2182 typedef struct {
2183 DWORD dwCallback;
2184 MCIDEVICEID16 wDeviceID;
2185 WORD wReserved0;
2186 SEGPTR lpstrDeviceType;
2187 SEGPTR lpstrElementName;
2188 SEGPTR lpstrAlias;
2189 DWORD dwBufferSeconds;
2190 } MCI_WAVE_OPEN_PARMS16, *LPMCI_WAVE_OPEN_PARMS16;
2192 typedef struct {
2193 DWORD dwCallback;
2194 MCIDEVICEID wDeviceID;
2195 LPCSTR lpstrDeviceType;
2196 LPCSTR lpstrElementName;
2197 LPCSTR lpstrAlias;
2198 DWORD dwBufferSeconds;
2199 } MCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA;
2201 typedef struct {
2202 DWORD dwCallback;
2203 MCIDEVICEID wDeviceID;
2204 LPCWSTR lpstrDeviceType;
2205 LPCWSTR lpstrElementName;
2206 LPCWSTR lpstrAlias;
2207 DWORD dwBufferSeconds;
2208 } MCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW;
2210 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
2211 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
2213 typedef struct {
2214 DWORD dwCallback;
2215 DWORD dwFrom;
2216 DWORD dwTo;
2217 } MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
2219 typedef struct {
2220 DWORD dwCallback;
2221 DWORD dwTimeFormat;
2222 DWORD dwAudio;
2223 UINT16 wInput;
2224 UINT16 wReserved0;
2225 UINT16 wOutput;
2226 UINT16 wReserved1;
2227 UINT16 wFormatTag;
2228 UINT16 wReserved2;
2229 UINT16 nChannels;
2230 UINT16 wReserved3;
2231 DWORD nSamplesPerSec;
2232 DWORD nAvgBytesPerSec;
2233 UINT16 nBlockAlign;
2234 UINT16 wReserved4;
2235 UINT16 wBitsPerSample;
2236 UINT16 wReserved5;
2237 } MCI_WAVE_SET_PARMS16, * LPMCI_WAVE_SET_PARMS16;
2239 typedef struct {
2240 DWORD dwCallback;
2241 DWORD dwTimeFormat;
2242 DWORD dwAudio;
2243 UINT wInput;
2244 UINT wOutput;
2245 UINT wFormatTag;
2246 UINT nChannels;
2247 DWORD nSamplesPerSec;
2248 DWORD nAvgBytesPerSec;
2249 UINT nBlockAlign;
2250 UINT wBitsPerSample;
2251 } MCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS;
2254 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2255 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2256 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2257 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2258 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2260 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2261 #define MCI_SEQ_FILE 0x4002
2262 #define MCI_SEQ_MIDI 0x4003
2263 #define MCI_SEQ_SMPTE 0x4004
2264 #define MCI_SEQ_NONE 65533
2266 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
2267 #define MCI_SEQ_STATUS_PORT 0x00004003L
2268 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
2269 #define MCI_SEQ_STATUS_MASTER 0x00004008L
2270 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
2271 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2273 #define MCI_SEQ_SET_TEMPO 0x00010000L
2274 #define MCI_SEQ_SET_PORT 0x00020000L
2275 #define MCI_SEQ_SET_SLAVE 0x00040000L
2276 #define MCI_SEQ_SET_MASTER 0x00080000L
2277 #define MCI_SEQ_SET_OFFSET 0x01000000L
2279 typedef struct {
2280 DWORD dwCallback;
2281 DWORD dwTimeFormat;
2282 DWORD dwAudio;
2283 DWORD dwTempo;
2284 DWORD dwPort;
2285 DWORD dwSlave;
2286 DWORD dwMaster;
2287 DWORD dwOffset;
2288 } MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
2290 #define MCI_ANIM_OPEN_WS 0x00010000L
2291 #define MCI_ANIM_OPEN_PARENT 0x00020000L
2292 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2294 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2295 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2296 #define MCI_ANIM_PLAY_FAST 0x00040000L
2297 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2298 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2300 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2301 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2303 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2304 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2305 #define MCI_ANIM_STATUS_HWND 0x00004003L
2306 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2307 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2309 #define MCI_ANIM_INFO_TEXT 0x00010000L
2311 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2312 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2313 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2314 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2315 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2316 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2317 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2319 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2320 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2322 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2323 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2324 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2325 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2326 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2328 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2330 #define MCI_ANIM_RECT 0x00010000L
2331 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2332 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2334 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2335 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2337 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2339 typedef struct {
2340 DWORD dwCallback;
2341 UINT16 wDeviceID;
2342 UINT16 wReserved0;
2343 SEGPTR lpstrDeviceType;
2344 SEGPTR lpstrElementName;
2345 SEGPTR lpstrAlias;
2346 DWORD dwStyle;
2347 HWND16 hWndParent;
2348 UINT16 wReserved1;
2349 } MCI_ANIM_OPEN_PARMS16, *LPMCI_ANIM_OPEN_PARMS16;
2351 typedef struct {
2352 DWORD dwCallback;
2353 MCIDEVICEID wDeviceID;
2354 LPCSTR lpstrDeviceType;
2355 LPCSTR lpstrElementName;
2356 LPCSTR lpstrAlias;
2357 DWORD dwStyle;
2358 HWND hWndParent;
2359 } MCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA;
2361 typedef struct {
2362 DWORD dwCallback;
2363 MCIDEVICEID wDeviceID;
2364 LPCWSTR lpstrDeviceType;
2365 LPCWSTR lpstrElementName;
2366 LPCWSTR lpstrAlias;
2367 DWORD dwStyle;
2368 HWND hWndParent;
2369 } MCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW;
2371 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
2372 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
2374 typedef struct {
2375 DWORD dwCallback;
2376 DWORD dwFrom;
2377 DWORD dwTo;
2378 DWORD dwSpeed;
2379 } MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
2381 typedef struct {
2382 DWORD dwCallback;
2383 DWORD dwFrames;
2384 } MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
2386 typedef struct {
2387 DWORD dwCallback;
2388 HWND16 hWnd;
2389 WORD wReserved1;
2390 WORD nCmdShow;
2391 WORD wReserved2;
2392 LPCSTR lpstrText;
2393 } MCI_ANIM_WINDOW_PARMS16, *LPMCI_ANIM_WINDOW_PARMS16;
2395 typedef struct {
2396 DWORD dwCallback;
2397 HWND hWnd;
2398 UINT nCmdShow;
2399 LPCSTR lpstrText;
2400 } MCI_ANIM_WINDOW_PARMSA, *LPMCI_ANIM_WINDOW_PARMSA;
2402 typedef struct {
2403 DWORD dwCallback;
2404 HWND hWnd;
2405 UINT nCmdShow;
2406 LPCWSTR lpstrText;
2407 } MCI_ANIM_WINDOW_PARMSW, *LPMCI_ANIM_WINDOW_PARMSW;
2409 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
2410 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
2412 typedef struct {
2413 DWORD dwCallback;
2414 #ifdef MCI_USE_OFFEXT
2415 POINT16 ptOffset;
2416 POINT16 ptExtent;
2417 #else /* ifdef MCI_USE_OFFEXT */
2418 RECT16 rc;
2419 #endif /* ifdef MCI_USE_OFFEXT */
2420 } MCI_ANIM_RECT_PARMS16, *LPMCI_ANIM_RECT_PARMS16;
2422 typedef struct {
2423 DWORD dwCallback;
2424 #ifdef MCI_USE_OFFEXT
2425 POINT ptOffset;
2426 POINT ptExtent;
2427 #else /* ifdef MCI_USE_OFFEXT */
2428 RECT rc;
2429 #endif /* ifdef MCI_USE_OFFEXT */
2430 } MCI_ANIM_RECT_PARMS, *LPMCI_ANIM_RECT_PARMS;
2433 typedef struct {
2434 DWORD dwCallback;
2435 RECT16 rc;
2436 HDC16 hDC;
2437 } MCI_ANIM_UPDATE_PARMS16, *LPMCI_ANIM_UPDATE_PARMS16;
2439 typedef struct {
2440 DWORD dwCallback;
2441 RECT rc;
2442 HDC hDC;
2443 } MCI_ANIM_UPDATE_PARMS, *LPMCI_ANIM_UPDATE_PARMS;
2446 #define MCI_OVLY_OPEN_WS 0x00010000L
2447 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2449 #define MCI_OVLY_STATUS_HWND 0x00004001L
2450 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2452 #define MCI_OVLY_INFO_TEXT 0x00010000L
2454 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2455 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2456 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2458 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2459 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2460 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2461 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2462 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2464 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2466 #define MCI_OVLY_RECT 0x00010000L
2467 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2468 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2469 #define MCI_OVLY_PUT_FRAME 0x00080000L
2470 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2472 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2473 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2474 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2475 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2477 typedef struct {
2478 DWORD dwCallback;
2479 MCIDEVICEID16 wDeviceID;
2480 WORD wReserved0;
2481 LPCSTR lpstrDeviceType;
2482 LPCSTR lpstrElementName;
2483 LPCSTR lpstrAlias;
2484 DWORD dwStyle;
2485 HWND16 hWndParent;
2486 WORD wReserved1;
2487 } MCI_OVLY_OPEN_PARMS16, *LPMCI_OVLY_OPEN_PARMS16;
2489 typedef struct {
2490 DWORD dwCallback;
2491 MCIDEVICEID wDeviceID;
2492 LPCSTR lpstrDeviceType;
2493 LPCSTR lpstrElementName;
2494 LPCSTR lpstrAlias;
2495 DWORD dwStyle;
2496 HWND hWndParent;
2497 } MCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA;
2499 typedef struct {
2500 DWORD dwCallback;
2501 MCIDEVICEID wDeviceID;
2502 LPCWSTR lpstrDeviceType;
2503 LPCWSTR lpstrElementName;
2504 LPCWSTR lpstrAlias;
2505 DWORD dwStyle;
2506 HWND hWndParent;
2507 } MCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW;
2509 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
2510 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
2512 typedef struct {
2513 DWORD dwCallback;
2514 HWND16 hWnd;
2515 WORD wReserved1;
2516 UINT16 nCmdShow;
2517 WORD wReserved2;
2518 LPCSTR lpstrText;
2519 } MCI_OVLY_WINDOW_PARMS16, *LPMCI_OVLY_WINDOW_PARMS16;
2521 typedef struct {
2522 DWORD dwCallback;
2523 HWND hWnd;
2524 UINT nCmdShow;
2525 LPCSTR lpstrText;
2526 } MCI_OVLY_WINDOW_PARMSA, *LPMCI_OVLY_WINDOW_PARMSA;
2528 typedef struct {
2529 DWORD dwCallback;
2530 HWND hWnd;
2531 UINT nCmdShow;
2532 LPCWSTR lpstrText;
2533 } MCI_OVLY_WINDOW_PARMSW, *LPMCI_OVLY_WINDOW_PARMSW;
2535 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
2536 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
2538 typedef struct {
2539 DWORD dwCallback;
2540 #ifdef MCI_USE_OFFEXT
2541 POINT16 ptOffset;
2542 POINT16 ptExtent;
2543 #else /* ifdef MCI_USE_OFFEXT */
2544 RECT16 rc;
2545 #endif /* ifdef MCI_USE_OFFEXT */
2546 } MCI_OVLY_RECT_PARMS16, *LPMCI_OVLY_RECT_PARMS16;
2548 typedef struct {
2549 DWORD dwCallback;
2550 #ifdef MCI_USE_OFFEXT
2551 POINT ptOffset;
2552 POINT ptExtent;
2553 #else /* ifdef MCI_USE_OFFEXT */
2554 RECT rc;
2555 #endif /* ifdef MCI_USE_OFFEXT */
2556 } MCI_OVLY_RECT_PARMS, *LPMCI_OVLY_RECT_PARMS;
2559 typedef struct {
2560 DWORD dwCallback;
2561 LPCSTR lpfilename;
2562 RECT16 rc;
2563 } MCI_OVLY_SAVE_PARMS16, *LPMCI_OVLY_SAVE_PARMS16;
2565 typedef struct {
2566 DWORD dwCallback;
2567 LPCSTR lpfilename;
2568 RECT rc;
2569 } MCI_OVLY_SAVE_PARMSA, *LPMCI_OVLY_SAVE_PARMSA;
2571 typedef struct {
2572 DWORD dwCallback;
2573 LPCWSTR lpfilename;
2574 RECT rc;
2575 } MCI_OVLY_SAVE_PARMSW, *LPMCI_OVLY_SAVE_PARMSW;
2577 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
2578 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
2580 typedef struct {
2581 DWORD dwCallback;
2582 LPCSTR lpfilename;
2583 RECT16 rc;
2584 } MCI_OVLY_LOAD_PARMS16, *LPMCI_OVLY_LOAD_PARMS16;
2586 typedef struct {
2587 DWORD dwCallback;
2588 LPCSTR lpfilename;
2589 RECT rc;
2590 } MCI_OVLY_LOAD_PARMSA, *LPMCI_OVLY_LOAD_PARMSA;
2592 typedef struct {
2593 DWORD dwCallback;
2594 LPCWSTR lpfilename;
2595 RECT rc;
2596 } MCI_OVLY_LOAD_PARMSW, *LPMCI_OVLY_LOAD_PARMSW;
2598 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
2599 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
2601 /**************************************************************
2602 * Linux MMSYSTEM Internals & Sample Audio Drivers
2605 #define DRVM_INIT 100
2606 #define WODM_INIT DRVM_INIT
2607 #define WIDM_INIT DRVM_INIT
2608 #define MODM_INIT DRVM_INIT
2609 #define MIDM_INIT DRVM_INIT
2610 #define AUXM_INIT DRVM_INIT
2612 #define WODM_GETNUMDEVS 3
2613 #define WODM_GETDEVCAPS 4
2614 #define WODM_OPEN 5
2615 #define WODM_CLOSE 6
2616 #define WODM_PREPARE 7
2617 #define WODM_UNPREPARE 8
2618 #define WODM_WRITE 9
2619 #define WODM_PAUSE 10
2620 #define WODM_RESTART 11
2621 #define WODM_RESET 12
2622 #define WODM_GETPOS 13
2623 #define WODM_GETPITCH 14
2624 #define WODM_SETPITCH 15
2625 #define WODM_GETVOLUME 16
2626 #define WODM_SETVOLUME 17
2627 #define WODM_GETPLAYBACKRATE 18
2628 #define WODM_SETPLAYBACKRATE 19
2629 #define WODM_BREAKLOOP 20
2630 #define WODM_STOP 21
2632 #define WIDM_GETNUMDEVS 50
2633 #define WIDM_GETDEVCAPS 51
2634 #define WIDM_OPEN 52
2635 #define WIDM_CLOSE 53
2636 #define WIDM_PREPARE 54
2637 #define WIDM_UNPREPARE 55
2638 #define WIDM_ADDBUFFER 56
2639 #define WIDM_START 57
2640 #define WIDM_STOP 58
2641 #define WIDM_RESET 59
2642 #define WIDM_GETPOS 60
2643 #define WIDM_PAUSE 61
2645 #define MODM_GETNUMDEVS 1
2646 #define MODM_GETDEVCAPS 2
2647 #define MODM_OPEN 3
2648 #define MODM_CLOSE 4
2649 #define MODM_PREPARE 5
2650 #define MODM_UNPREPARE 6
2651 #define MODM_DATA 7
2652 #define MODM_LONGDATA 8
2653 #define MODM_RESET 9
2654 #define MODM_GETVOLUME 10
2655 #define MODM_SETVOLUME 11
2656 #define MODM_CACHEPATCHES 12
2657 #define MODM_CACHEDRUMPATCHES 13
2659 #define MIDM_GETNUMDEVS 53
2660 #define MIDM_GETDEVCAPS 54
2661 #define MIDM_OPEN 55
2662 #define MIDM_CLOSE 56
2663 #define MIDM_PREPARE 57
2664 #define MIDM_UNPREPARE 58
2665 #define MIDM_ADDBUFFER 59
2666 #define MIDM_START 60
2667 #define MIDM_STOP 61
2668 #define MIDM_RESET 62
2670 #define AUXDM_GETNUMDEVS 3
2671 #define AUXDM_GETDEVCAPS 4
2672 #define AUXDM_GETVOLUME 5
2673 #define AUXDM_SETVOLUME 6
2675 #define MXDM_GETNUMDEVS 1
2676 #define MXDM_GETDEVCAPS 2
2677 #define MXDM_OPEN 3
2678 #define MXDM_CLOSE 4
2679 #define MXDM_GETLINEINFO 5
2680 #define MXDM_GETLINECONTROLS 6
2681 #define MXDM_GETCONTROLDETAILS 7
2682 #define MXDM_SETCONTROLDETAILS 8
2684 #define MCI_MAX_DEVICE_TYPE_LENGTH 80
2686 #define MCI_FALSE (MCI_STRING_OFFSET + 19)
2687 #define MCI_TRUE (MCI_STRING_OFFSET + 20)
2689 #define MCI_FORMAT_RETURN_BASE MCI_FORMAT_MILLISECONDS_S
2690 #define MCI_FORMAT_MILLISECONDS_S (MCI_STRING_OFFSET + 21)
2691 #define MCI_FORMAT_HMS_S (MCI_STRING_OFFSET + 22)
2692 #define MCI_FORMAT_MSF_S (MCI_STRING_OFFSET + 23)
2693 #define MCI_FORMAT_FRAMES_S (MCI_STRING_OFFSET + 24)
2694 #define MCI_FORMAT_SMPTE_24_S (MCI_STRING_OFFSET + 25)
2695 #define MCI_FORMAT_SMPTE_25_S (MCI_STRING_OFFSET + 26)
2696 #define MCI_FORMAT_SMPTE_30_S (MCI_STRING_OFFSET + 27)
2697 #define MCI_FORMAT_SMPTE_30DROP_S (MCI_STRING_OFFSET + 28)
2698 #define MCI_FORMAT_BYTES_S (MCI_STRING_OFFSET + 29)
2699 #define MCI_FORMAT_SAMPLES_S (MCI_STRING_OFFSET + 30)
2700 #define MCI_FORMAT_TMSF_S (MCI_STRING_OFFSET + 31)
2702 #define MCI_VD_FORMAT_TRACK_S (MCI_VD_OFFSET + 5)
2704 #define WAVE_FORMAT_PCM_S (MCI_WAVE_OFFSET + 0)
2705 #define WAVE_MAPPER_S (MCI_WAVE_OFFSET + 1)
2707 #define MCI_SEQ_MAPPER_S (MCI_SEQ_OFFSET + 5)
2708 #define MCI_SEQ_FILE_S (MCI_SEQ_OFFSET + 6)
2709 #define MCI_SEQ_MIDI_S (MCI_SEQ_OFFSET + 7)
2710 #define MCI_SEQ_SMPTE_S (MCI_SEQ_OFFSET + 8)
2711 #define MCI_SEQ_FORMAT_SONGPTR_S (MCI_SEQ_OFFSET + 9)
2712 #define MCI_SEQ_NONE_S (MCI_SEQ_OFFSET + 10)
2713 #define MIDIMAPPER_S (MCI_SEQ_OFFSET + 11)
2715 #define MCI_RESOURCE_RETURNED 0x00010000 /* resource ID */
2716 #define MCI_COLONIZED3_RETURN 0x00020000 /* colonized ID, 3 bytes data */
2717 #define MCI_COLONIZED4_RETURN 0x00040000 /* colonized ID, 4 bytes data */
2718 #define MCI_INTEGER_RETURNED 0x00080000 /* integer conversion needed */
2719 #define MCI_RESOURCE_DRIVER 0x00100000 /* driver owns returned resource */
2721 #define MCI_NO_COMMAND_TABLE 0xFFFF
2723 #define MCI_COMMAND_HEAD 0
2724 #define MCI_STRING 1
2725 #define MCI_INTEGER 2
2726 #define MCI_END_COMMAND 3
2727 #define MCI_RETURN 4
2728 #define MCI_FLAG 5
2729 #define MCI_END_COMMAND_LIST 6
2730 #define MCI_RECT 7
2731 #define MCI_CONSTANT 8
2732 #define MCI_END_CONSTANT 9
2734 /* Mixer flags */
2735 #define MIXER_OBJECTF_HANDLE 0x80000000L
2736 #define MIXER_OBJECTF_MIXER 0x00000000L
2737 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
2738 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
2739 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
2740 #define MIXER_OBJECTF_WAVEIN 0x20000000L
2741 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
2742 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
2743 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
2744 #define MIXER_OBJECTF_MIDIIN 0x40000000L
2745 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
2746 #define MIXER_OBJECTF_AUX 0x50000000L
2748 #define MAKEMCIRESOURCE(wRet, wRes) MAKELRESULT((wRet), (wRes))
2750 /* the 95 DDK defines those slightly different, but they are internal anyway */
2751 typedef struct {
2752 DWORD dwCallback;
2753 DWORD dwInstance;
2754 HMIDIOUT16 hMidi;
2755 DWORD dwFlags;
2756 } PORTALLOC, *LPPORTALLOC;
2758 typedef struct {
2759 HWAVE16 hWave;
2760 LPWAVEFORMAT lpFormat;
2761 DWORD dwCallBack;
2762 DWORD dwInstance;
2763 UINT16 uDeviceID;
2764 } WAVEOPENDESC, *LPWAVEOPENDESC;
2766 typedef struct {
2767 DWORD dwStreamID;
2768 WORD wDeviceID;
2769 } MIDIOPENSTRMID;
2771 /* FIXME: this structure has a different mapping in 16 & 32 bit mode
2772 * Since, I don't plan to add support for native 16 bit low level
2773 * multimedia drivers, it'll do.
2775 typedef struct {
2776 HMIDI16 hMidi;
2777 DWORD dwCallback;
2778 DWORD dwInstance;
2779 UINT16 wDevID;
2780 DWORD dnDevNode;
2781 DWORD cIds;
2782 MIDIOPENSTRMID rgIds;
2783 } MIDIOPENDESC, *LPMIDIOPENDESC;
2785 typedef struct {
2786 UINT16 wDelay;
2787 UINT16 wResolution;
2788 LPTIMECALLBACK16 lpFunction;
2789 DWORD dwUser;
2790 UINT16 wFlags;
2791 } TIMEREVENT, *LPTIMEREVENT;
2793 typedef struct tMIXEROPENDESC
2795 HMIXEROBJ16 hmx;
2796 DWORD dwCallback;
2797 DWORD dwInstance;
2798 UINT16 uDeviceID;
2799 } MIXEROPENDESC,*LPMIXEROPENDESC;
2801 typedef struct {
2802 UINT16 wDeviceID; /* device ID */
2803 LPSTR lpstrParams; /* parameter string for entry in SYSTEM.INI */
2804 UINT16 wCustomCommandTable; /* custom command table (0xFFFF if none)
2805 * filled in by the driver */
2806 UINT16 wType; /* driver type (filled in by the driver) */
2807 } MCI_OPEN_DRIVER_PARMS16, *LPMCI_OPEN_DRIVER_PARMS16;
2809 typedef struct {
2810 UINT wDeviceID; /* device ID */
2811 LPSTR lpstrParams; /* parameter string for entry in SYSTEM.INI */
2812 UINT wCustomCommandTable; /* custom command table (0xFFFF if none) * filled in by the driver */
2813 UINT wType; /* driver type (filled in by the driver) */
2814 } MCI_OPEN_DRIVER_PARMSA, *LPMCI_OPEN_DRIVER_PARMSA;
2816 typedef struct {
2817 UINT wDeviceID; /* device ID */
2818 LPWSTR lpstrParams; /* parameter string for entry in SYSTEM.INI */
2819 UINT wCustomCommandTable; /* custom command table (0xFFFF if none) * filled in by the driver */
2820 UINT wType; /* driver type (filled in by the driver) */
2821 } MCI_OPEN_DRIVER_PARMSW, *LPMCI_OPEN_DRIVER_PARMSW;
2822 DECL_WINELIB_TYPE_AW(MCI_OPEN_DRIVER_PARMS)
2823 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_DRIVER_PARMS)
2825 DWORD WINAPI mciGetDriverData16(UINT16 uDeviceID);
2826 DWORD WINAPI mciGetDriverData(UINT uDeviceID);
2828 BOOL16 WINAPI mciSetDriverData16(UINT16 uDeviceID, DWORD dwData);
2829 BOOL WINAPI mciSetDriverData(UINT uDeviceID, DWORD dwData);
2831 UINT16 WINAPI mciDriverYield16(UINT16 uDeviceID);
2832 UINT WINAPI mciDriverYield(UINT uDeviceID);
2834 BOOL16 WINAPI mciDriverNotify16(HWND16 hwndCallback, UINT16 uDeviceID,
2835 UINT16 uStatus);
2836 BOOL WINAPI mciDriverNotify(HWND hwndCallback, UINT uDeviceID,
2837 UINT uStatus);
2839 UINT16 WINAPI mciLoadCommandResource16(HINSTANCE16 hInstance,
2840 LPCSTR lpResName, UINT16 uType);
2841 UINT WINAPI mciLoadCommandResource(HINSTANCE hInstance,
2842 LPCWSTR lpResName, UINT uType);
2844 BOOL16 WINAPI mciFreeCommandResource16(UINT16 uTable);
2845 BOOL WINAPI mciFreeCommandResource(UINT uTable);
2847 #define DCB_NULL 0x0000
2848 #define DCB_WINDOW 0x0001 /* dwCallback is a HWND */
2849 #define DCB_TASK 0x0002 /* dwCallback is a HTASK */
2850 #define DCB_FUNCTION 0x0003 /* dwCallback is a FARPROC */
2851 #define DCB_EVENT 0x0005 /* dwCallback is an EVENT Handler */
2852 #define DCB_FUNC32 0x0007 /* (ugly hack) 32-bit FARPROC */
2853 #define DCB_TYPEMASK 0x0007
2854 #define DCB_NOSWITCH 0x0008 /* don't switch stacks for callback */
2856 BOOL16 WINAPI DriverCallback16(DWORD dwCallBack, UINT16 uFlags, HANDLE16 hDev,
2857 WORD wMsg, DWORD dwUser, DWORD dwParam1, DWORD dwParam2);
2858 DWORD WINAPI auxMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2859 DWORD dwParam1, DWORD dwParam2);
2860 DWORD WINAPI mixMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2861 DWORD dwParam1, DWORD dwParam2);
2862 DWORD WINAPI midMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2863 DWORD dwParam1, DWORD dwParam2);
2864 DWORD WINAPI modMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2865 DWORD dwParam1, DWORD dwParam2);
2866 DWORD WINAPI widMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2867 DWORD dwParam1, DWORD dwParam2);
2868 DWORD WINAPI wodMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2869 DWORD dwParam1, DWORD dwParam2);
2870 #include "poppack.h"
2872 #ifdef __cplusplus
2874 #endif
2876 #endif /* __WINE_MMSYSTEM_H */