Adapted to cursor/icon handling changes.
[wine/multimedia.git] / include / mmsystem.h
blobc8e7f4d2de414d5ea571d3a7ee866547bf738afe
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 "wintypes.h"
13 typedef LPSTR HPSTR; /* a huge version of LPSTR */
14 typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
16 #pragma pack(1)
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 struct {
64 BYTE hour;
65 BYTE min;
66 BYTE sec;
67 BYTE frame;
68 BYTE fps;
69 BYTE dummy;
70 BYTE pad[2];
71 } smpte;
72 struct {
73 DWORD songptrpos;
74 } midi;
75 } u;
76 } MMTIME, *LPMMTIME;
78 #define TIME_MS 0x0001 /* time in milliseconds */
79 #define TIME_SAMPLES 0x0002 /* number of wave samples */
80 #define TIME_BYTES 0x0004 /* current byte offset */
81 #define TIME_SMPTE 0x0008 /* SMPTE time */
82 #define TIME_MIDI 0x0010 /* MIDI time */
84 #define MM_JOY1MOVE 0x3A0 /* joystick */
85 #define MM_JOY2MOVE 0x3A1
86 #define MM_JOY1ZMOVE 0x3A2
87 #define MM_JOY2ZMOVE 0x3A3
88 #define MM_JOY1BUTTONDOWN 0x3B5
89 #define MM_JOY2BUTTONDOWN 0x3B6
90 #define MM_JOY1BUTTONUP 0x3B7
91 #define MM_JOY2BUTTONUP 0x3B8
93 #define MM_MCINOTIFY 0x3B9 /* MCI */
95 #define MM_WOM_OPEN 0x3BB /* waveform output */
96 #define MM_WOM_CLOSE 0x3BC
97 #define MM_WOM_DONE 0x3BD
99 #define MM_WIM_OPEN 0x3BE /* waveform input */
100 #define MM_WIM_CLOSE 0x3BF
101 #define MM_WIM_DATA 0x3C0
103 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
104 #define MM_MIM_CLOSE 0x3C2
105 #define MM_MIM_DATA 0x3C3
106 #define MM_MIM_LONGDATA 0x3C4
107 #define MM_MIM_ERROR 0x3C5
108 #define MM_MIM_LONGERROR 0x3C6
110 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
111 #define MM_MOM_CLOSE 0x3C8
112 #define MM_MOM_DONE 0x3C9
115 #define MMSYSERR_BASE 0
116 #define WAVERR_BASE 32
117 #define MIDIERR_BASE 64
118 #define TIMERR_BASE 96
119 #define JOYERR_BASE 160
120 #define MCIERR_BASE 256
122 #define MCI_STRING_OFFSET 512
123 #define MCI_VD_OFFSET 1024
124 #define MCI_CD_OFFSET 1088
125 #define MCI_WAVE_OFFSET 1152
126 #define MCI_SEQ_OFFSET 1216
128 #define MMSYSERR_NOERROR 0 /* no error */
129 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
130 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
131 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
132 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
133 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
134 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
135 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
136 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
137 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
138 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
139 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
140 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
142 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
143 #define CALLBACK_NULL 0x00000000l /* no callback */
144 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
145 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
146 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
147 #define CALLBACK_FUNC 0x00070000l /* (ugly hack) 32-bit FARPROC */
148 #define CALLBACK32CONV(x) ((((x)&CALLBACK_TYPEMASK)==CALLBACK_FUNCTION) ? \
149 (((x)&~CALLBACK_TYPEMASK)|CALLBACK_FUNC) : (x))
151 typedef void (CALLBACK *LPDRVCALLBACK16) (HDRVR16 h, UINT16 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
152 typedef void (CALLBACK *LPDRVCALLBACK) (HDRVR h, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
154 #define MM_MICROSOFT 1 /* Microsoft Corp. */
156 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
157 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
159 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
160 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
161 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
162 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
163 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
165 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
167 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
168 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
170 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
173 UINT16 WINAPI mmsystemGetVersion16(void);
174 UINT WINAPI mmsystemGetVersion(void);
175 BOOL16 WINAPI sndPlaySound(LPCSTR lpszSoundName, UINT16 uFlags);
176 BOOL WINAPI PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
177 BOOL WINAPI PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound);
178 #define PlaySound WINELIB_NAME_AW(PlaySound)
180 #define SND_SYNC 0x0000 /* play synchronously (default) */
181 #define SND_ASYNC 0x0001 /* play asynchronously */
182 #define SND_NODEFAULT 0x0002 /* don't use default sound */
183 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
184 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
185 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
187 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
188 #define SND_ALIAS 0x00010000L /* name is a registry alias */
189 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
190 #define SND_FILENAME 0x00020000L /* name is file name */
191 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
192 #define SND_PURGE 0x00000040L /* purge all sounds */
193 #define SND_APPLICATION 0x00000080L /* look for application specific association */
195 /* waveform audio error return values */
196 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
197 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
198 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
199 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
200 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
202 typedef HWAVEIN16 *LPHWAVEIN16;
203 typedef HWAVEOUT16 *LPHWAVEOUT16;
204 typedef LPDRVCALLBACK16 LPWAVECALLBACK16;
205 typedef LPDRVCALLBACK LPWAVECALLBACK;
206 typedef HMIXER16 *LPHMIXER16;
207 typedef HMIXER *LPHMIXER;
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
279 typedef struct {
280 WORD wMid; /* manufacturer ID */
281 WORD wPid; /* product ID */
282 MMVERSION16 vDriverVersion; /* version of the driver */
283 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
284 DWORD dwFormats; /* formats supported */
285 WORD wChannels; /* number of channels supported */
286 } WAVEINCAPS16, *LPWAVEINCAPS16;
288 typedef struct {
289 WORD wMid; /* manufacturer ID */
290 WORD wPid; /* product ID */
291 MMVERSION vDriverVersion; /* version of the driver */
292 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
293 DWORD dwFormats; /* formats supported */
294 WORD wChannels; /* number of channels supported */
295 WORD wReserved1;
296 } WAVEINCAPSA, *LPWAVEINCAPSA;
297 typedef struct {
298 WORD wMid; /* manufacturer ID */
299 WORD wPid; /* product ID */
300 MMVERSION vDriverVersion; /* version of the driver */
301 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
302 DWORD dwFormats; /* formats supported */
303 WORD wChannels; /* number of channels supported */
304 WORD wReserved1;
305 } WAVEINCAPSW, *LPWAVEINCAPSW;
306 DECL_WINELIB_TYPE_AW(WAVEINCAPS)
307 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS)
309 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
310 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
311 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
312 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
313 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
314 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
315 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
316 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
317 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
318 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
319 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
320 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
321 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
323 /* General format structure common to all formats, same for Win16 and Win32 */
324 typedef struct {
325 WORD wFormatTag; /* format type */
326 WORD nChannels; /* number of channels */
327 DWORD nSamplesPerSec; /* sample rate */
328 DWORD nAvgBytesPerSec;/* for buffer estimation */
329 WORD nBlockAlign; /* block size of data */
330 } WAVEFORMAT, *LPWAVEFORMAT;
332 #define WAVE_FORMAT_PCM 1
334 typedef struct {
335 WAVEFORMAT wf;
336 WORD wBitsPerSample;
337 } PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
339 #ifndef _WAVEFORMATEX_
340 #define _WAVEFORMATEX_
341 /* dito same for Win16 / Win32 */
342 typedef struct {
343 WORD wFormatTag; /* format type */
344 WORD nChannels; /* number of channels (i.e. mono, stereo...) */
345 DWORD nSamplesPerSec; /* sample rate */
346 DWORD nAvgBytesPerSec;/* for buffer estimation */
347 WORD nBlockAlign; /* block size of data */
348 WORD wBitsPerSample; /* number of bits per sample of mono data */
349 WORD cbSize; /* the count in bytes of the size of */
350 /* extra information (after cbSize) */
351 } WAVEFORMATEX, *LPWAVEFORMATEX, *NPWAVEFORMATEX, *PWAVEFORMATEX;
352 #endif
354 UINT16 WINAPI waveOutGetNumDevs16(void);
355 UINT WINAPI waveOutGetNumDevs(void);
356 UINT16 WINAPI waveOutGetDevCaps16(UINT16,LPWAVEOUTCAPS16,UINT16);
357 UINT WINAPI waveOutGetDevCapsA(UINT,LPWAVEOUTCAPSA,UINT);
358 UINT WINAPI waveOutGetDevCapsW(UINT,LPWAVEOUTCAPSW,UINT);
359 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
360 UINT16 WINAPI waveOutGetVolume16(UINT16,DWORD*);
361 UINT WINAPI waveOutGetVolume(UINT,DWORD*);
362 UINT16 WINAPI waveOutSetVolume16(UINT16,DWORD);
363 UINT WINAPI waveOutSetVolume(UINT,DWORD);
364 UINT16 WINAPI waveOutGetErrorText16(UINT16,LPSTR,UINT16);
365 UINT WINAPI waveOutGetErrorTextA(UINT,LPSTR,UINT);
366 UINT WINAPI waveOutGetErrorTextW(UINT,LPWSTR,UINT);
367 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
368 UINT16 WINAPI waveOutOpen16(HWAVEOUT16*,UINT16,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
369 UINT WINAPI waveOutOpen(HWAVEOUT*,UINT,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
370 UINT16 WINAPI waveOutClose16(HWAVEOUT16);
371 UINT WINAPI waveOutClose(HWAVEOUT);
372 UINT16 WINAPI waveOutPrepareHeader16(HWAVEOUT16,WAVEHDR*,UINT16);
373 UINT WINAPI waveOutPrepareHeader(HWAVEOUT,WAVEHDR*,UINT);
374 UINT16 WINAPI waveOutUnprepareHeader16(HWAVEOUT16,WAVEHDR*,UINT16);
375 UINT WINAPI waveOutUnprepareHeader(HWAVEOUT,WAVEHDR*,UINT);
376 UINT16 WINAPI waveOutWrite16(HWAVEOUT16,WAVEHDR*,UINT16);
377 UINT WINAPI waveOutWrite(HWAVEOUT,WAVEHDR*,UINT);
378 UINT16 WINAPI waveOutPause16(HWAVEOUT16);
379 UINT WINAPI waveOutPause(HWAVEOUT);
380 UINT16 WINAPI waveOutRestart16(HWAVEOUT16);
381 UINT WINAPI waveOutRestart(HWAVEOUT);
382 UINT16 WINAPI waveOutReset16(HWAVEOUT16);
383 UINT WINAPI waveOutReset(HWAVEOUT);
384 UINT16 WINAPI waveOutBreakLoop16(HWAVEOUT16);
385 UINT WINAPI waveOutBreakLoop(HWAVEOUT);
386 UINT16 WINAPI waveOutGetPosition16(HWAVEOUT16,LPMMTIME16,UINT16);
387 UINT WINAPI waveOutGetPosition(HWAVEOUT,LPMMTIME,UINT);
388 UINT16 WINAPI waveOutGetPitch16(HWAVEOUT16,DWORD*);
389 UINT WINAPI waveOutGetPitch(HWAVEOUT,DWORD*);
390 UINT16 WINAPI waveOutSetPitch16(HWAVEOUT16,DWORD);
391 UINT WINAPI waveOutSetPitch(HWAVEOUT,DWORD);
392 UINT16 WINAPI waveOutGetPlaybackRate16(HWAVEOUT16,DWORD*);
393 UINT WINAPI waveOutGetPlaybackRate(HWAVEOUT,DWORD*);
394 UINT16 WINAPI waveOutSetPlaybackRate16(HWAVEOUT16,DWORD);
395 UINT WINAPI waveOutSetPlaybackRate(HWAVEOUT,DWORD);
396 UINT16 WINAPI waveOutGetID16(HWAVEOUT16,UINT16*);
397 UINT WINAPI waveOutGetID(HWAVEOUT,UINT*);
398 DWORD WINAPI waveOutMessage16(HWAVEOUT16,UINT16,DWORD,DWORD);
399 DWORD WINAPI waveOutMessage(HWAVEOUT,UINT,DWORD,DWORD);
401 UINT16 WINAPI waveInGetNumDevs16(void);
402 UINT WINAPI waveInGetNumDevs(void);
403 UINT16 WINAPI waveInGetDevCaps16(UINT16,LPWAVEINCAPS16,UINT16);
404 UINT WINAPI waveInGetDevCapsA(UINT,LPWAVEINCAPSA,UINT);
405 UINT WINAPI waveInGetDevCapsW(UINT,LPWAVEINCAPSW,UINT);
406 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
407 UINT16 WINAPI waveInGetErrorText16(UINT16,LPSTR,UINT16);
408 UINT WINAPI waveInGetErrorTextA(UINT,LPSTR,UINT);
409 UINT WINAPI waveInGetErrorTextW(UINT,LPWSTR,UINT);
410 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
411 UINT16 WINAPI waveInOpen16(HWAVEIN16*,UINT16,const LPWAVEFORMAT,DWORD,DWORD,DWORD);
412 UINT WINAPI waveInOpen(HWAVEIN*,UINT,const LPWAVEFORMAT,DWORD,DWORD,DWORD);
413 UINT16 WINAPI waveInClose16(HWAVEIN16);
414 UINT WINAPI waveInClose(HWAVEIN);
415 UINT16 WINAPI waveInPrepareHeader16(HWAVEIN16,WAVEHDR*,UINT16);
416 UINT WINAPI waveInPrepareHeader(HWAVEIN,WAVEHDR*,UINT);
417 UINT16 WINAPI waveInUnprepareHeader16(HWAVEIN16,WAVEHDR*,UINT16);
418 UINT WINAPI waveInUnprepareHeader(HWAVEIN,WAVEHDR*,UINT);
419 UINT16 WINAPI waveInAddBuffer16(HWAVEIN16,WAVEHDR*,UINT16);
420 UINT WINAPI waveInAddBuffer(HWAVEIN,WAVEHDR*,UINT);
421 UINT16 WINAPI waveInStart16(HWAVEIN16);
422 UINT WINAPI waveInStart(HWAVEIN);
423 UINT16 WINAPI waveInStop16(HWAVEIN16);
424 UINT WINAPI waveInStop(HWAVEIN);
425 UINT16 WINAPI waveInReset16(HWAVEIN16);
426 UINT WINAPI waveInReset(HWAVEIN);
427 UINT16 WINAPI waveInGetPosition16(HWAVEIN16,LPMMTIME16,UINT16);
428 UINT WINAPI waveInGetPosition(HWAVEIN,LPMMTIME,UINT);
429 UINT16 WINAPI waveInGetID16(HWAVEIN16,UINT16*);
430 UINT WINAPI waveInGetID(HWAVEIN,UINT*);
432 DWORD WINAPI waveInMessage16(HWAVEIN16,UINT16,DWORD,DWORD);
433 DWORD WINAPI waveInMessage(HWAVEIN,UINT,DWORD,DWORD);
435 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
436 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
437 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
438 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
439 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
440 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
441 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
443 typedef HMIDIIN16 *LPHMIDIIN16;
444 typedef HMIDIOUT16 *LPHMIDIOUT16;
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 /* FIXME is this a correct
583 * value ? Win32 only*/
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 0x40000000
611 #define MEVT_F_LONG 0x80000000
612 #define MEVT_F_SHORT 0x00000000
613 #define MEVT_COMMENT 0x82
614 #define MEVT_LONGMSG 0x80
615 #define MEVT_NOP 0x02
616 #define MEVT_SHORTMSG 0x00
617 #define MEVT_TEMPO 0x01
618 #define MEVT_VERSION 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,MIDIHDR16*,UINT);
641 UINT16 WINAPI midiOutUnprepareHeader16(HMIDIOUT16,MIDIHDR16*,UINT16);
642 UINT WINAPI midiOutUnprepareHeader(HMIDIOUT,MIDIHDR16*,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,MIDIHDR16*,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,MIDIHDR16*,UINT);
675 UINT16 WINAPI midiInUnprepareHeader16(HMIDIIN16,MIDIHDR16*,UINT16);
676 UINT WINAPI midiInUnprepareHeader(HMIDIIN,MIDIHDR16*,UINT);
677 UINT16 WINAPI midiInAddBuffer16(HMIDIIN16,MIDIHDR16*,UINT16);
678 UINT WINAPI midiInAddBuffer(HMIDIIN,MIDIHDR16*,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, LPMIDIHDR16 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 typedef struct {
995 WORD wMid; /* manufacturer id */
996 WORD wPid; /* product id */
997 MMVERSION16 vDriverVersion; /* version of the driver */
998 CHAR szPname[MAXPNAMELEN]; /* product name */
999 DWORD fdwSupport; /* misc. support bits */
1000 DWORD cDestinations; /* count of destinations */
1001 } MIXERCAPS16,*LPMIXERCAPS16;
1003 typedef struct {
1004 WORD wMid;
1005 WORD wPid;
1006 MMVERSION vDriverVersion;
1007 CHAR szPname[MAXPNAMELEN];
1008 DWORD fdwSupport;
1009 DWORD cDestinations;
1010 } MIXERCAPSA,*LPMIXERCAPSA;
1012 typedef struct {
1013 WORD wMid;
1014 WORD wPid;
1015 MMVERSION vDriverVersion;
1016 WCHAR szPname[MAXPNAMELEN];
1017 DWORD fdwSupport;
1018 DWORD cDestinations;
1019 } MIXERCAPSW,*LPMIXERCAPSW;
1021 DECL_WINELIB_TYPE_AW(MIXERCAPS)
1022 DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
1024 #define MIXER_SHORT_NAME_CHARS 16
1025 #define MIXER_LONG_NAME_CHARS 64
1027 /* MIXERLINE.fdwLine */
1028 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1029 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1030 #define MIXERLINE_LINEF_SOURCE 0x80000000
1032 /* MIXERLINE.dwComponentType */
1033 /* component types for destinations and sources */
1034 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1035 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1036 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1037 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1038 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1039 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1040 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1041 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1042 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1043 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1044 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1046 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1047 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1048 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1049 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1050 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1051 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1052 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1053 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1054 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1055 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1056 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1057 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1058 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1060 /* MIXERLINE.Target.dwType */
1061 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1062 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1063 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1064 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1065 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1066 #define MIXERLINE_TARGETTYPE_AUX 5
1068 typedef struct {
1069 DWORD cbStruct; /* size of MIXERLINE structure */
1070 DWORD dwDestination; /* zero based destination index */
1071 DWORD dwSource; /* zero based source index (if source) */
1072 DWORD dwLineID; /* unique line id for mixer device */
1073 DWORD fdwLine; /* state/information about line */
1074 DWORD dwUser; /* driver specific information */
1075 DWORD dwComponentType; /* component type line connects to */
1076 DWORD cChannels; /* number of channels line supports */
1077 DWORD cConnections; /* number of connections [possible] */
1078 DWORD cControls; /* number of controls at this line */
1079 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1080 CHAR szName[MIXER_LONG_NAME_CHARS];
1081 struct {
1082 DWORD dwType; /* MIXERLINE_TARGETTYPE_xxxx */
1083 DWORD dwDeviceID; /* target device ID of device type */
1084 WORD wMid; /* of target device */
1085 WORD wPid; /* " */
1086 MMVERSION16 vDriverVersion; /* " */
1087 CHAR szPname[MAXPNAMELEN]; /* " */
1088 } Target;
1089 } MIXERLINE16, *LPMIXERLINE16;
1091 typedef struct {
1092 DWORD cbStruct;
1093 DWORD dwDestination;
1094 DWORD dwSource;
1095 DWORD dwLineID;
1096 DWORD fdwLine;
1097 DWORD dwUser;
1098 DWORD dwComponentType;
1099 DWORD cChannels;
1100 DWORD cConnections;
1101 DWORD cControls;
1102 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1103 CHAR szName[MIXER_LONG_NAME_CHARS];
1104 struct {
1105 DWORD dwType;
1106 DWORD dwDeviceID;
1107 WORD wMid;
1108 WORD wPid;
1109 MMVERSION vDriverVersion;
1110 CHAR szPname[MAXPNAMELEN];
1111 } Target;
1112 } MIXERLINEA, *LPMIXERLINEA;
1114 typedef struct {
1115 DWORD cbStruct;
1116 DWORD dwDestination;
1117 DWORD dwSource;
1118 DWORD dwLineID;
1119 DWORD fdwLine;
1120 DWORD dwUser;
1121 DWORD dwComponentType;
1122 DWORD cChannels;
1123 DWORD cConnections;
1124 DWORD cControls;
1125 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1126 WCHAR szName[MIXER_LONG_NAME_CHARS];
1127 struct {
1128 DWORD dwType;
1129 DWORD dwDeviceID;
1130 WORD wMid;
1131 WORD wPid;
1132 MMVERSION vDriverVersion;
1133 WCHAR szPname[MAXPNAMELEN];
1134 } Target;
1135 } MIXERLINEW, *LPMIXERLINEW;
1137 DECL_WINELIB_TYPE_AW(MIXERLINE)
1138 DECL_WINELIB_TYPE_AW(LPMIXERLINE)
1140 /* MIXERCONTROL.fdwControl */
1141 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1142 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1143 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1145 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1146 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1147 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1148 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1149 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1150 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1151 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1152 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1153 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1154 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1156 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1158 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1159 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1161 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1163 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1164 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1166 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1167 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1169 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1170 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1171 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1172 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1173 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1174 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1175 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1177 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1178 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1179 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1180 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1181 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1182 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1183 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1184 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1185 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1186 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1187 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1188 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1189 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1190 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1191 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1192 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1193 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1194 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1195 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1196 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1197 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1198 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1199 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1200 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1201 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1202 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1203 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1204 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1205 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1206 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1207 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1210 typedef struct {
1211 DWORD cbStruct; /* size in bytes of MIXERCONTROL */
1212 DWORD dwControlID; /* unique control id for mixer device */
1213 DWORD dwControlType; /* MIXERCONTROL_CONTROLTYPE_xxx */
1214 DWORD fdwControl; /* MIXERCONTROL_CONTROLF_xxx */
1215 DWORD cMultipleItems; /* if MIXERCONTROL_CONTROLF_MULTIPLE set */
1216 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1217 CHAR szName[MIXER_LONG_NAME_CHARS];
1218 union {
1219 struct {
1220 LONG lMinimum; /* signed minimum for this control */
1221 LONG lMaximum; /* signed maximum for this control */
1222 } l;
1223 struct {
1224 DWORD dwMinimum; /* unsigned minimum for this control */
1225 DWORD dwMaximum; /* unsigned maximum for this control */
1226 } dw;
1227 DWORD dwReserved[6];
1228 } Bounds;
1229 union {
1230 DWORD cSteps; /* # of steps between min & max */
1231 DWORD cbCustomData; /* size in bytes of custom data */
1232 DWORD dwReserved[6]; /* !!! needed? we have cbStruct.... */
1233 } Metrics;
1234 } MIXERCONTROL16, *LPMIXERCONTROL16;
1236 typedef struct {
1237 DWORD cbStruct;
1238 DWORD dwControlID;
1239 DWORD dwControlType;
1240 DWORD fdwControl;
1241 DWORD cMultipleItems;
1242 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1243 CHAR szName[MIXER_LONG_NAME_CHARS];
1244 union {
1245 struct {
1246 LONG lMinimum;
1247 LONG lMaximum;
1248 } l;
1249 struct {
1250 DWORD dwMinimum;
1251 DWORD dwMaximum;
1252 } dw;
1253 DWORD dwReserved[6];
1254 } Bounds;
1255 union {
1256 DWORD cSteps;
1257 DWORD cbCustomData;
1258 DWORD dwReserved[6];
1259 } Metrics;
1260 } MIXERCONTROLA, *LPMIXERCONTROLA;
1262 typedef struct {
1263 DWORD cbStruct;
1264 DWORD dwControlID;
1265 DWORD dwControlType;
1266 DWORD fdwControl;
1267 DWORD cMultipleItems;
1268 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1269 WCHAR szName[MIXER_LONG_NAME_CHARS];
1270 union {
1271 struct {
1272 LONG lMinimum;
1273 LONG lMaximum;
1274 } l;
1275 struct {
1276 DWORD dwMinimum;
1277 DWORD dwMaximum;
1278 } dw;
1279 DWORD dwReserved[6];
1280 } Bounds;
1281 union {
1282 DWORD cSteps;
1283 DWORD cbCustomData;
1284 DWORD dwReserved[6];
1285 } Metrics;
1286 } MIXERCONTROLW, *LPMIXERCONTROLW;
1288 DECL_WINELIB_TYPE_AW(MIXERCONTROL)
1289 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
1291 typedef struct {
1292 DWORD cbStruct; /* size in bytes of MIXERLINECONTROLS */
1293 DWORD dwLineID; /* line id (from MIXERLINE.dwLineID) */
1294 union {
1295 DWORD dwControlID; /* MIXER_GETLINECONTROLSF_ONEBYID */
1296 DWORD dwControlType; /* MIXER_GETLINECONTROLSF_ONEBYTYPE */
1297 } u;
1298 DWORD cControls; /* count of controls pmxctrl points to */
1299 DWORD cbmxctrl; /* size in bytes of _one_ MIXERCONTROL */
1300 LPMIXERCONTROL16 pamxctrl;/* pointer to first MIXERCONTROL array */
1301 } MIXERLINECONTROLS16, *LPMIXERLINECONTROLS16;
1303 typedef struct {
1304 DWORD cbStruct;
1305 DWORD dwLineID;
1306 union {
1307 DWORD dwControlID;
1308 DWORD dwControlType;
1309 } u;
1310 DWORD cControls;
1311 DWORD cbmxctrl;
1312 LPMIXERCONTROLA pamxctrl;
1313 } MIXERLINECONTROLSA, *LPMIXERLINECONTROLSA;
1315 typedef struct {
1316 DWORD cbStruct;
1317 DWORD dwLineID;
1318 union {
1319 DWORD dwControlID;
1320 DWORD dwControlType;
1321 } u;
1322 DWORD cControls;
1323 DWORD cbmxctrl;
1324 LPMIXERCONTROLW pamxctrl;
1325 } MIXERLINECONTROLSW, *LPMIXERLINECONTROLSW;
1327 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
1328 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
1330 typedef struct {
1331 DWORD cbStruct; /* size in bytes of MIXERCONTROLDETAILS */
1332 DWORD dwControlID; /* control id to get/set details on */
1333 DWORD cChannels; /* number of channels in paDetails array */
1334 union {
1335 HWND16 hwndOwner; /* for MIXER_SETCONTROLDETAILSF_CUSTOM */
1336 DWORD cMultipleItems; /* if _MULTIPLE, the number of items per channel */
1337 } u;
1338 DWORD cbDetails; /* size of _one_ details_XX struct */
1339 LPVOID paDetails; /* pointer to array of details_XX structs */
1340 } MIXERCONTROLDETAILS16,*LPMIXERCONTROLDETAILS16;
1342 typedef struct {
1343 DWORD cbStruct;
1344 DWORD dwControlID;
1345 DWORD cChannels;
1346 union {
1347 HWND hwndOwner;
1348 DWORD cMultipleItems;
1349 } u;
1350 DWORD cbDetails;
1351 LPVOID paDetails;
1352 } MIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
1355 typedef struct {
1356 DWORD dwParam1;
1357 DWORD dwParam2;
1358 CHAR szName[MIXER_LONG_NAME_CHARS];
1359 } MIXERCONTROLDETAILS_LISTTEXT16,*LPMIXERCONTROLDETAILS_LISTTEXT16;
1361 typedef struct {
1362 DWORD dwParam1;
1363 DWORD dwParam2;
1364 CHAR szName[MIXER_LONG_NAME_CHARS];
1365 } MIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
1367 typedef struct {
1368 DWORD dwParam1;
1369 DWORD dwParam2;
1370 WCHAR szName[MIXER_LONG_NAME_CHARS];
1371 } MIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
1373 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
1374 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
1376 /* MIXER_GETCONTROLDETAILSF_VALUE */
1377 typedef struct {
1378 LONG fValue;
1379 } MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1381 typedef struct {
1382 LONG lValue;
1383 } MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1385 typedef struct {
1386 DWORD dwValue;
1387 } MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1389 /* bits passed to mixerGetLineInfo.fdwInfo */
1390 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1391 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1392 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1393 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1394 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1395 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1397 /* bitmask passed to mixerGetLineControl */
1398 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1399 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1400 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1401 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1403 /* bitmask passed to mixerGetControlDetails */
1404 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1405 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1406 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1408 /* bitmask passed to mixerSetControlDetails */
1409 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1410 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1411 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1413 UINT16 WINAPI mixerGetNumDevs16(void);
1414 UINT WINAPI mixerGetNumDevs(void);
1415 UINT16 WINAPI mixerOpen16(LPHMIXER16,UINT16,DWORD,DWORD,DWORD);
1416 UINT WINAPI mixerOpen(LPHMIXER,UINT,DWORD,DWORD,DWORD);
1417 UINT16 WINAPI mixerClose16(HMIXER16);
1418 UINT WINAPI mixerClose(HMIXER);
1419 UINT16 WINAPI mixerMessage16(HMIXER16,UINT16,DWORD,DWORD);
1420 UINT WINAPI mixerMessage(HMIXER,UINT,DWORD,DWORD);
1421 UINT16 WINAPI mixerGetDevCaps16(UINT16,LPMIXERCAPS16,UINT16);
1422 UINT WINAPI mixerGetDevCapsA(UINT,LPMIXERCAPSA,UINT);
1423 UINT WINAPI mixerGetDevCapsW(UINT,LPMIXERCAPSW,UINT);
1424 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1425 UINT16 WINAPI mixerGetLineInfo16(HMIXEROBJ16,LPMIXERLINE16,DWORD);
1426 UINT WINAPI mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
1427 UINT WINAPI mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
1428 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1429 UINT16 WINAPI mixerGetID16(HMIXEROBJ16,LPUINT16,DWORD);
1430 UINT WINAPI mixerGetID(HMIXEROBJ,LPUINT,DWORD);
1431 UINT16 WINAPI mixerGetLineControls16(HMIXEROBJ16,LPMIXERLINECONTROLS16,DWORD);
1432 UINT WINAPI mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
1433 UINT WINAPI mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
1434 #define mixerGetLineControl WINELIB_NAME_AW(mixerGetLineControl)
1435 UINT16 WINAPI mixerGetControlDetails16(HMIXEROBJ16,LPMIXERCONTROLDETAILS16,DWORD);
1436 UINT WINAPI mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1437 UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1438 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1439 UINT16 WINAPI mixerSetControlDetails16(HMIXEROBJ16,LPMIXERCONTROLDETAILS16,DWORD);
1440 UINT WINAPI mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1442 #define MMIOERR_BASE 256
1443 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1444 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1445 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1446 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1447 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1448 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1449 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1450 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1451 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1452 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1454 #define CFSEPCHAR '+' /* compound file name separator char. */
1456 typedef DWORD FOURCC; /* a four character code */
1457 typedef LONG (CALLBACK *LPMMIOPROC16)(LPSTR lpmmioinfo, UINT16 uMessage,
1458 LPARAM lParam1, LPARAM lParam2);
1459 typedef LONG (CALLBACK *LPMMIOPROC)(LPSTR lpmmioinfo, UINT uMessage,
1460 LPARAM lParam1, LPARAM lParam2);
1462 typedef struct {
1463 DWORD dwFlags; /* general status flags */
1464 FOURCC fccIOProc; /* pointer to I/O procedure */
1465 LPMMIOPROC16 pIOProc; /* pointer to I/O procedure */
1466 UINT16 wErrorRet; /* place for error to be returned */
1467 HTASK16 htask; /* alternate local task */
1468 /* fields maintained by MMIO functions during buffered I/O */
1469 LONG cchBuffer; /* size of I/O buffer (or 0L) */
1470 HPSTR pchBuffer; /* start of I/O buffer (or NULL) */
1471 HPSTR pchNext; /* pointer to next byte to read/write */
1472 HPSTR pchEndRead; /* pointer to last valid byte to read */
1473 HPSTR pchEndWrite; /* pointer to last byte to write */
1474 LONG lBufOffset; /* disk offset of start of buffer */
1475 /* fields maintained by I/O procedure */
1476 LONG lDiskOffset; /* disk offset of next read or write */
1477 DWORD adwInfo[3]; /* data specific to type of MMIOPROC */
1478 /* other fields maintained by MMIO */
1479 DWORD dwReserved1; /* reserved for MMIO use */
1480 DWORD dwReserved2; /* reserved for MMIO use */
1481 HMMIO16 hmmio; /* handle to open file */
1482 } MMIOINFO16, *LPMMIOINFO16;
1484 typedef struct {
1485 DWORD dwFlags;
1486 FOURCC fccIOProc;
1487 LPMMIOPROC pIOProc;
1488 UINT wErrorRet;
1489 HTASK htask;
1490 /* fields maintained by MMIO functions during buffered I/O */
1491 LONG cchBuffer;
1492 HPSTR pchBuffer;
1493 HPSTR pchNext;
1494 HPSTR pchEndRead;
1495 HPSTR pchEndWrite;
1496 LONG lBufOffset;
1497 /* fields maintained by I/O procedure */
1498 LONG lDiskOffset;
1499 DWORD adwInfo[3];
1500 /* other fields maintained by MMIO */
1501 DWORD dwReserved1;
1502 DWORD dwReserved2;
1503 HMMIO hmmio;
1504 } MMIOINFO, *PMMIOINFO, *LPMMIOINFO;
1507 typedef struct _MMCKINFO
1509 FOURCC ckid; /* chunk ID */
1510 DWORD cksize; /* chunk size */
1511 FOURCC fccType; /* form type or list type */
1512 DWORD dwDataOffset; /* offset of data portion of chunk */
1513 DWORD dwFlags; /* flags used by MMIO functions */
1514 } MMCKINFO, *LPMMCKINFO;
1516 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1517 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1519 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1520 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1521 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1522 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1523 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1524 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1526 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1528 #define MMIO_READ 0x00000000 /* open file for reading only */
1529 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1530 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1532 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1533 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1534 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1535 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1536 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1538 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1539 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1540 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1541 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1542 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1543 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1544 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1545 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1546 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1547 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1548 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1549 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1551 #define SEEK_SET 0
1552 #define SEEK_CUR 1
1553 #define SEEK_END 2
1555 #define MMIOM_READ MMIO_READ /* read */
1556 #define MMIOM_WRITE MMIO_WRITE /* write */
1557 #define MMIOM_SEEK 2 /* seek to a new position in file */
1558 #define MMIOM_OPEN 3 /* open file */
1559 #define MMIOM_CLOSE 4 /* close file */
1560 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1562 #define MMIOM_RENAME 6 /* rename specified file */
1564 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1566 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1567 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1569 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1570 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1572 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1574 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1575 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1576 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1578 LPMMIOPROC16 WINAPI mmioInstallIOProc16(FOURCC,LPMMIOPROC16,DWORD);
1579 LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
1580 LPMMIOPROC WINAPI mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
1581 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1583 FOURCC WINAPI mmioStringToFOURCC16(LPCSTR,UINT16);
1584 FOURCC WINAPI mmioStringToFOURCCA(LPCSTR,UINT);
1585 FOURCC WINAPI mmioStringToFOURCCW(LPCWSTR,UINT);
1586 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1587 HMMIO16 WINAPI mmioOpen16 (LPSTR ,MMIOINFO16*,DWORD);
1588 HMMIO WINAPI mmioOpenA(LPSTR ,MMIOINFO*,DWORD);
1589 HMMIO WINAPI mmioOpenW(LPWSTR,MMIOINFO*,DWORD);
1590 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1592 UINT16 WINAPI mmioRename16(LPCSTR szFileName, LPCSTR szNewFileName,
1593 MMIOINFO16 * lpmmioinfo, DWORD dwRenameFlags);
1594 UINT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
1595 MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1596 UINT WINAPI mmioRenameW(LPCWSTR szFileName, LPCWSTR szNewFileName,
1597 MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1598 #define mmioRename WINELIB_NAME_AW(mmioRename)
1600 MMRESULT16 WINAPI mmioClose16(HMMIO16,UINT16);
1601 MMRESULT WINAPI mmioClose(HMMIO,UINT);
1602 LONG WINAPI mmioRead16(HMMIO16,HPSTR,LONG);
1603 LONG WINAPI mmioRead(HMMIO,HPSTR,LONG);
1604 LONG WINAPI mmioWrite16(HMMIO16,HPCSTR,LONG);
1605 LONG WINAPI mmioWrite(HMMIO,HPCSTR,LONG);
1606 LONG WINAPI mmioSeek16(HMMIO16,LONG,INT16);
1607 LONG WINAPI mmioSeek(HMMIO,LONG,INT);
1608 MMRESULT16 WINAPI mmioGetInfo16(HMMIO16,MMIOINFO16*,UINT16);
1609 MMRESULT WINAPI mmioGetInfo(HMMIO,MMIOINFO*,UINT);
1610 MMRESULT16 WINAPI mmioSetInfo16(HMMIO16,const MMIOINFO16*,UINT16);
1611 MMRESULT WINAPI mmioSetInfo(HMMIO,const MMIOINFO*,UINT);
1612 UINT16 WINAPI mmioSetBuffer16(HMMIO16,LPSTR,LONG,UINT16);
1613 UINT WINAPI mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
1614 UINT16 WINAPI mmioFlush16(HMMIO16,UINT16);
1615 UINT WINAPI mmioFlush(HMMIO,UINT);
1616 UINT16 WINAPI mmioAdvance16(HMMIO16,MMIOINFO16*,UINT16);
1617 UINT WINAPI mmioAdvance(HMMIO,MMIOINFO*,UINT);
1618 LONG WINAPI mmioSendMessage(HMMIO16,UINT16,LPARAM,LPARAM);
1619 UINT16 WINAPI mmioDescend(HMMIO16,MMCKINFO*,const MMCKINFO*,UINT16);
1621 UINT16 WINAPI mmioAscend16(HMMIO16,MMCKINFO*,UINT16);
1622 UINT WINAPI mmioAscend(HMMIO,MMCKINFO*,UINT);
1623 UINT16 WINAPI mmioCreateChunk16(HMMIO16,MMCKINFO*,UINT16);
1624 UINT WINAPI mmioCreateChunk(HMMIO,MMCKINFO*,UINT);
1626 typedef UINT16 (CALLBACK *YIELDPROC)(UINT16,DWORD);
1628 DWORD WINAPI mciSendCommand16(UINT16,UINT16,DWORD,DWORD);
1629 DWORD WINAPI mciSendCommandA(UINT,UINT,DWORD,DWORD);
1630 DWORD WINAPI mciSendCommandW(UINT,UINT,DWORD,DWORD);
1631 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1633 DWORD WINAPI mciSendString16(LPCSTR,LPSTR,UINT16,HWND16);
1634 DWORD WINAPI mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
1635 DWORD WINAPI mciSendStringW(LPCWSTR,LPSTR,UINT,HWND);
1636 #define mciSendString WINELIB_NAME_AW(mciSendString)
1638 UINT16 WINAPI mciGetDeviceID16(LPCSTR);
1639 UINT WINAPI mciGetDeviceIDA(LPCSTR);
1640 UINT WINAPI mciGetDeviceIDW(LPCWSTR);
1641 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1643 UINT16 WINAPI mciGetDeviceIDFromElementID16(DWORD,LPCSTR);
1645 BOOL16 WINAPI mciGetErrorString16 (DWORD,LPSTR,UINT16);
1646 BOOL WINAPI mciGetErrorStringA(DWORD,LPSTR,UINT);
1647 BOOL WINAPI mciGetErrorStringW(DWORD,LPWSTR,UINT);
1648 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1650 BOOL16 WINAPI mciSetYieldProc16(UINT16,YIELDPROC,DWORD);
1651 BOOL WINAPI mciSetYieldProc(UINT,YIELDPROC,DWORD);
1653 HTASK16 WINAPI mciGetCreatorTask16(UINT16);
1654 HTASK WINAPI mciGetCreatorTask(UINT);
1656 YIELDPROC WINAPI mciGetYieldProc16(UINT16,DWORD*);
1657 YIELDPROC WINAPI mciGetYieldProc(UINT,DWORD*);
1659 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1660 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1661 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1662 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1663 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1664 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1665 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1666 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1667 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1668 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1669 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1670 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1671 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1672 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1673 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1674 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1675 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1676 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1677 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1678 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1679 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1680 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1681 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1682 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1683 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1684 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1685 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1686 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1687 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1688 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1689 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1690 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1691 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1692 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1693 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1694 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1695 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1696 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1697 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1698 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1699 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1700 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1701 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1702 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1703 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1704 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1705 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1706 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1707 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1708 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1709 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1710 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1712 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1713 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1714 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1715 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1716 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1717 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1718 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1719 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1720 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1721 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1723 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1724 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1725 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1726 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1727 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1728 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1729 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1730 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1732 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1733 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1734 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1735 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1737 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1739 #define MCI_OPEN_DRIVER 0x0801
1740 #define MCI_CLOSE_DRIVER 0x0802
1741 #define MCI_OPEN 0x0803
1742 #define MCI_CLOSE 0x0804
1743 #define MCI_ESCAPE 0x0805
1744 #define MCI_PLAY 0x0806
1745 #define MCI_SEEK 0x0807
1746 #define MCI_STOP 0x0808
1747 #define MCI_PAUSE 0x0809
1748 #define MCI_INFO 0x080A
1749 #define MCI_GETDEVCAPS 0x080B
1750 #define MCI_SPIN 0x080C
1751 #define MCI_SET 0x080D
1752 #define MCI_STEP 0x080E
1753 #define MCI_RECORD 0x080F
1754 #define MCI_SYSINFO 0x0810
1755 #define MCI_BREAK 0x0811
1756 #define MCI_SOUND 0x0812
1757 #define MCI_SAVE 0x0813
1758 #define MCI_STATUS 0x0814
1759 #define MCI_CUE 0x0830
1760 #define MCI_REALIZE 0x0840
1761 #define MCI_WINDOW 0x0841
1762 #define MCI_PUT 0x0842
1763 #define MCI_WHERE 0x0843
1764 #define MCI_FREEZE 0x0844
1765 #define MCI_UNFREEZE 0x0845
1766 #define MCI_LOAD 0x0850
1767 #define MCI_CUT 0x0851
1768 #define MCI_COPY 0x0852
1769 #define MCI_PASTE 0x0853
1770 #define MCI_UPDATE 0x0854
1771 #define MCI_RESUME 0x0855
1772 #define MCI_DELETE 0x0856
1774 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1776 #define MCI_ALL_DEVICE_ID 0xFFFF
1778 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1779 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1780 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1781 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1782 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1783 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1784 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1785 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1786 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1787 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1788 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1790 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1791 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1793 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1794 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1795 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1796 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1797 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1798 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1799 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1801 #define MCI_FORMAT_MILLISECONDS 0
1802 #define MCI_FORMAT_HMS 1
1803 #define MCI_FORMAT_MSF 2
1804 #define MCI_FORMAT_FRAMES 3
1805 #define MCI_FORMAT_SMPTE_24 4
1806 #define MCI_FORMAT_SMPTE_25 5
1807 #define MCI_FORMAT_SMPTE_30 6
1808 #define MCI_FORMAT_SMPTE_30DROP 7
1809 #define MCI_FORMAT_BYTES 8
1810 #define MCI_FORMAT_SAMPLES 9
1811 #define MCI_FORMAT_TMSF 10
1813 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1814 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1815 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1817 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1818 ((WORD)(s)<<8)) | \
1819 (((DWORD)(BYTE)(f))<<16)))
1821 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1822 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1823 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1824 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1826 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1827 ((WORD)(m)<<8)) | \
1828 (((DWORD)(BYTE)(s) | \
1829 ((WORD)(f)<<8))<<16)))
1831 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1832 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1833 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1835 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1836 ((WORD)(m)<<8)) | \
1837 (((DWORD)(BYTE)(s))<<16)))
1839 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1840 #define MCI_NOTIFY_SUPERSEDED 0x0002
1841 #define MCI_NOTIFY_ABORTED 0x0004
1842 #define MCI_NOTIFY_FAILURE 0x0008
1844 #define MCI_NOTIFY 0x00000001L
1845 #define MCI_WAIT 0x00000002L
1846 #define MCI_FROM 0x00000004L
1847 #define MCI_TO 0x00000008L
1848 #define MCI_TRACK 0x00000010L
1850 #define MCI_OPEN_SHAREABLE 0x00000100L
1851 #define MCI_OPEN_ELEMENT 0x00000200L
1852 #define MCI_OPEN_ALIAS 0x00000400L
1853 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1854 #define MCI_OPEN_TYPE_ID 0x00001000L
1855 #define MCI_OPEN_TYPE 0x00002000L
1857 #define MCI_SEEK_TO_START 0x00000100L
1858 #define MCI_SEEK_TO_END 0x00000200L
1860 #define MCI_STATUS_ITEM 0x00000100L
1861 #define MCI_STATUS_START 0x00000200L
1863 #define MCI_STATUS_LENGTH 0x00000001L
1864 #define MCI_STATUS_POSITION 0x00000002L
1865 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1866 #define MCI_STATUS_MODE 0x00000004L
1867 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1868 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1869 #define MCI_STATUS_READY 0x00000007L
1870 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1872 #define MCI_INFO_PRODUCT 0x00000100L
1873 #define MCI_INFO_FILE 0x00000200L
1875 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1877 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1878 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1879 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1880 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1881 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1882 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1883 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1884 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1885 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1887 #define MCI_SYSINFO_QUANTITY 0x00000100L
1888 #define MCI_SYSINFO_OPEN 0x00000200L
1889 #define MCI_SYSINFO_NAME 0x00000400L
1890 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1892 #define MCI_SET_DOOR_OPEN 0x00000100L
1893 #define MCI_SET_DOOR_CLOSED 0x00000200L
1894 #define MCI_SET_TIME_FORMAT 0x00000400L
1895 #define MCI_SET_AUDIO 0x00000800L
1896 #define MCI_SET_VIDEO 0x00001000L
1897 #define MCI_SET_ON 0x00002000L
1898 #define MCI_SET_OFF 0x00004000L
1900 #define MCI_SET_AUDIO_ALL 0x00000000L
1901 #define MCI_SET_AUDIO_LEFT 0x00000001L
1902 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1904 #define MCI_BREAK_KEY 0x00000100L
1905 #define MCI_BREAK_HWND 0x00000200L
1906 #define MCI_BREAK_OFF 0x00000400L
1908 #define MCI_RECORD_INSERT 0x00000100L
1909 #define MCI_RECORD_OVERWRITE 0x00000200L
1911 #define MCI_SOUND_NAME 0x00000100L
1913 #define MCI_SAVE_FILE 0x00000100L
1915 #define MCI_LOAD_FILE 0x00000100L
1917 typedef struct {
1918 DWORD dwCallback;
1919 } MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
1921 typedef struct {
1922 DWORD dwCallback;
1923 WORD wDeviceID;
1924 WORD wReserved0;
1925 LPSTR lpstrDeviceType;
1926 LPSTR lpstrElementName;
1927 LPSTR lpstrAlias;
1928 } MCI_OPEN_PARMS16, *LPMCI_OPEN_PARMS16;
1930 typedef struct {
1931 DWORD dwCallback;
1932 MCIDEVICEID wDeviceID;
1933 LPSTR lpstrDeviceType;
1934 LPSTR lpstrElementName;
1935 LPSTR lpstrAlias;
1936 } MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
1938 typedef struct {
1939 DWORD dwCallback;
1940 MCIDEVICEID wDeviceID;
1941 LPWSTR lpstrDeviceType;
1942 LPWSTR lpstrElementName;
1943 LPWSTR lpstrAlias;
1944 } MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
1946 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
1947 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
1949 typedef struct {
1950 DWORD dwCallback;
1951 DWORD dwFrom;
1952 DWORD dwTo;
1953 } MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
1955 typedef struct {
1956 DWORD dwCallback;
1957 DWORD dwTo;
1958 } MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
1960 typedef struct {
1961 DWORD dwCallback;
1962 DWORD dwReturn;
1963 DWORD dwItem;
1964 DWORD dwTrack;
1965 } MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
1967 typedef struct {
1968 DWORD dwCallback;
1969 LPSTR lpstrReturn;
1970 DWORD dwRetSize;
1971 } MCI_INFO_PARMS16, *LPMCI_INFO_PARMS16;
1973 typedef struct {
1974 DWORD dwCallback;
1975 LPSTR lpstrReturn;
1976 DWORD dwRetSize;
1977 } MCI_INFO_PARMSA, *LPMCI_INFO_PARMSA;
1979 typedef struct {
1980 DWORD dwCallback;
1981 LPSTR lpstrReturn;
1982 DWORD dwRetSize;
1983 } MCI_INFO_PARMSW, *LPMCI_INFO_PARMSW;
1985 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
1986 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
1988 typedef struct {
1989 DWORD dwCallback;
1990 DWORD dwReturn;
1991 DWORD dwItem;
1992 } MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
1994 typedef struct {
1995 DWORD dwCallback;
1996 LPSTR lpstrReturn;
1997 DWORD dwRetSize;
1998 DWORD dwNumber;
1999 WORD wDeviceType;
2000 WORD wReserved0;
2001 } MCI_SYSINFO_PARMS16, *LPMCI_SYSINFO_PARMS16;
2003 typedef struct {
2004 DWORD dwCallback;
2005 LPSTR lpstrReturn;
2006 DWORD dwRetSize;
2007 DWORD dwNumber;
2008 UINT wDeviceType;
2009 } MCI_SYSINFO_PARMSA, *LPMCI_SYSINFO_PARMSA;
2011 typedef struct {
2012 DWORD dwCallback;
2013 LPWSTR lpstrReturn;
2014 DWORD dwRetSize;
2015 DWORD dwNumber;
2016 UINT wDeviceType;
2017 } MCI_SYSINFO_PARMSW, *LPMCI_SYSINFO_PARMSW;
2019 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
2020 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
2022 typedef struct {
2023 DWORD dwCallback;
2024 DWORD dwTimeFormat;
2025 DWORD dwAudio;
2026 } MCI_SET_PARMS, *LPMCI_SET_PARMS;
2028 typedef struct {
2029 DWORD dwCallback;
2030 UINT16 nVirtKey;
2031 WORD wReserved0;
2032 HWND16 hwndBreak;
2033 WORD wReserved1;
2034 } MCI_BREAK_PARMS16, *LPMCI_BREAK_PARMS16;
2036 typedef struct {
2037 DWORD dwCallback;
2038 INT nVirtKey;
2039 HWND hwndBreak;
2040 } MCI_BREAK_PARMS, *LPMCI_BREAK_PARMS;
2043 typedef struct {
2044 DWORD dwCallback;
2045 LPCSTR lpstrSoundName;
2046 } MCI_SOUND_PARMS, *LPMCI_SOUND_PARMS;
2048 typedef struct {
2049 DWORD dwCallback;
2050 LPCSTR lpfilename;
2051 } MCI_SAVE_PARMS, *LPMCI_SAVE_PARMS;
2053 typedef struct {
2054 DWORD dwCallback;
2055 LPCSTR lpfilename;
2056 } MCI_LOAD_PARMS16, *LPMCI_LOAD_PARMS16;
2058 typedef struct {
2059 DWORD dwCallback;
2060 LPCSTR lpfilename;
2061 } MCI_LOAD_PARMSA, *LPMCI_LOAD_PARMSA;
2063 typedef struct {
2064 DWORD dwCallback;
2065 LPCWSTR lpfilename;
2066 } MCI_LOAD_PARMSW, *LPMCI_LOAD_PARMSW;
2068 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
2069 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
2071 typedef struct {
2072 DWORD dwCallback;
2073 DWORD dwFrom;
2074 DWORD dwTo;
2075 } MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
2077 /* FIXME: are those constants correct ? */
2078 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
2080 #define MCI_CDA_TRACK_AUDIO 0x00000440
2081 #define MCI_CDA_TRACK_OTHER 0x00000441
2083 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2085 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2086 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2087 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2089 #define MCI_VD_FORMAT_TRACK 0x4001
2091 #define MCI_VD_PLAY_REVERSE 0x00010000L
2092 #define MCI_VD_PLAY_FAST 0x00020000L
2093 #define MCI_VD_PLAY_SPEED 0x00040000L
2094 #define MCI_VD_PLAY_SCAN 0x00080000L
2095 #define MCI_VD_PLAY_SLOW 0x00100000L
2097 #define MCI_VD_SEEK_REVERSE 0x00010000L
2099 #define MCI_VD_STATUS_SPEED 0x00004002L
2100 #define MCI_VD_STATUS_FORWARD 0x00004003L
2101 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2102 #define MCI_VD_STATUS_SIDE 0x00004005L
2103 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2105 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2106 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2108 #define MCI_VD_SPIN_UP 0x00010000L
2109 #define MCI_VD_SPIN_DOWN 0x00020000L
2111 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2112 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2113 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2114 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2116 #define MCI_VD_STEP_FRAMES 0x00010000L
2117 #define MCI_VD_STEP_REVERSE 0x00020000L
2119 #define MCI_VD_ESCAPE_STRING 0x00000100L
2121 typedef struct {
2122 DWORD dwCallback;
2123 DWORD dwFrom;
2124 DWORD dwTo;
2125 DWORD dwSpeed;
2126 } MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
2128 typedef struct {
2129 DWORD dwCallback;
2130 DWORD dwFrames;
2131 } MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
2133 typedef struct {
2134 DWORD dwCallback;
2135 LPCSTR lpstrCommand;
2136 } MCI_VD_ESCAPE_PARMS16, *LPMCI_VD_ESCAPE_PARMS16;
2138 typedef struct {
2139 DWORD dwCallback;
2140 LPCSTR lpstrCommand;
2141 } MCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA;
2143 typedef struct {
2144 DWORD dwCallback;
2145 LPCWSTR lpstrCommand;
2146 } MCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW;
2148 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
2149 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
2151 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
2153 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
2154 #define MCI_WAVE_SET_CHANNELS 0x00020000L
2155 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2156 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2157 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2158 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2160 #define MCI_WAVE_INPUT 0x00400000L
2161 #define MCI_WAVE_OUTPUT 0x00800000L
2163 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2164 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2165 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2166 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2167 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2168 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2169 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
2171 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
2172 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2174 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2175 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2177 typedef struct {
2178 DWORD dwCallback;
2179 MCIDEVICEID16 wDeviceID;
2180 WORD wReserved0;
2181 SEGPTR lpstrDeviceType;
2182 SEGPTR lpstrElementName;
2183 SEGPTR lpstrAlias;
2184 DWORD dwBufferSeconds;
2185 } MCI_WAVE_OPEN_PARMS16, *LPMCI_WAVE_OPEN_PARMS16;
2187 typedef struct {
2188 DWORD dwCallback;
2189 MCIDEVICEID wDeviceID;
2190 LPCSTR lpstrDeviceType;
2191 LPCSTR lpstrElementName;
2192 LPCSTR lpstrAlias;
2193 DWORD dwBufferSeconds;
2194 } MCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA;
2196 typedef struct {
2197 DWORD dwCallback;
2198 MCIDEVICEID wDeviceID;
2199 LPCWSTR lpstrDeviceType;
2200 LPCWSTR lpstrElementName;
2201 LPCWSTR lpstrAlias;
2202 DWORD dwBufferSeconds;
2203 } MCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW;
2205 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
2206 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
2208 typedef struct {
2209 DWORD dwCallback;
2210 DWORD dwFrom;
2211 DWORD dwTo;
2212 } MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
2214 typedef struct {
2215 DWORD dwCallback;
2216 DWORD dwTimeFormat;
2217 DWORD dwAudio;
2218 UINT16 wInput;
2219 UINT16 wReserved0;
2220 UINT16 wOutput;
2221 UINT16 wReserved1;
2222 UINT16 wFormatTag;
2223 UINT16 wReserved2;
2224 UINT16 nChannels;
2225 UINT16 wReserved3;
2226 DWORD nSamplesPerSec;
2227 DWORD nAvgBytesPerSec;
2228 UINT16 nBlockAlign;
2229 UINT16 wReserved4;
2230 UINT16 wBitsPerSample;
2231 UINT16 wReserved5;
2232 } MCI_WAVE_SET_PARMS16, * LPMCI_WAVE_SET_PARMS16;
2234 typedef struct {
2235 DWORD dwCallback;
2236 DWORD dwTimeFormat;
2237 DWORD dwAudio;
2238 UINT wInput;
2239 UINT wOutput;
2240 UINT wFormatTag;
2241 UINT nChannels;
2242 DWORD nSamplesPerSec;
2243 DWORD nAvgBytesPerSec;
2244 UINT nBlockAlign;
2245 UINT wBitsPerSample;
2246 } MCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS;
2249 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2250 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2251 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2252 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2253 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2255 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2256 #define MCI_SEQ_FILE 0x4002
2257 #define MCI_SEQ_MIDI 0x4003
2258 #define MCI_SEQ_SMPTE 0x4004
2259 #define MCI_SEQ_NONE 65533
2261 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
2262 #define MCI_SEQ_STATUS_PORT 0x00004003L
2263 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
2264 #define MCI_SEQ_STATUS_MASTER 0x00004008L
2265 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
2266 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2268 #define MCI_SEQ_SET_TEMPO 0x00010000L
2269 #define MCI_SEQ_SET_PORT 0x00020000L
2270 #define MCI_SEQ_SET_SLAVE 0x00040000L
2271 #define MCI_SEQ_SET_MASTER 0x00080000L
2272 #define MCI_SEQ_SET_OFFSET 0x01000000L
2274 typedef struct {
2275 DWORD dwCallback;
2276 DWORD dwTimeFormat;
2277 DWORD dwAudio;
2278 DWORD dwTempo;
2279 DWORD dwPort;
2280 DWORD dwSlave;
2281 DWORD dwMaster;
2282 DWORD dwOffset;
2283 } MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
2285 #define MCI_ANIM_OPEN_WS 0x00010000L
2286 #define MCI_ANIM_OPEN_PARENT 0x00020000L
2287 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2289 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2290 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2291 #define MCI_ANIM_PLAY_FAST 0x00040000L
2292 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2293 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2295 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2296 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2298 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2299 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2300 #define MCI_ANIM_STATUS_HWND 0x00004003L
2301 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2302 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2304 #define MCI_ANIM_INFO_TEXT 0x00010000L
2306 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2307 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2308 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2309 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2310 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2311 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2312 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2314 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2315 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2317 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2318 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2319 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2320 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2321 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2323 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2325 #define MCI_ANIM_RECT 0x00010000L
2326 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2327 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2329 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2330 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2332 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2334 typedef struct {
2335 DWORD dwCallback;
2336 UINT16 wDeviceID;
2337 UINT16 wReserved0;
2338 SEGPTR lpstrDeviceType;
2339 SEGPTR lpstrElementName;
2340 SEGPTR lpstrAlias;
2341 DWORD dwStyle;
2342 HWND16 hWndParent;
2343 UINT16 wReserved1;
2344 } MCI_ANIM_OPEN_PARMS16, *LPMCI_ANIM_OPEN_PARMS16;
2346 typedef struct {
2347 DWORD dwCallback;
2348 MCIDEVICEID wDeviceID;
2349 LPCSTR lpstrDeviceType;
2350 LPCSTR lpstrElementName;
2351 LPCSTR lpstrAlias;
2352 DWORD dwStyle;
2353 HWND hWndParent;
2354 } MCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA;
2356 typedef struct {
2357 DWORD dwCallback;
2358 MCIDEVICEID wDeviceID;
2359 LPCSTR lpstrDeviceType;
2360 LPCSTR lpstrElementName;
2361 LPCSTR lpstrAlias;
2362 DWORD dwStyle;
2363 HWND hWndParent;
2364 } MCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW;
2366 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
2367 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
2369 typedef struct {
2370 DWORD dwCallback;
2371 DWORD dwFrom;
2372 DWORD dwTo;
2373 DWORD dwSpeed;
2374 } MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
2376 typedef struct {
2377 DWORD dwCallback;
2378 DWORD dwFrames;
2379 } MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
2381 typedef struct {
2382 DWORD dwCallback;
2383 HWND16 hWnd;
2384 WORD wReserved1;
2385 WORD nCmdShow;
2386 WORD wReserved2;
2387 LPCSTR lpstrText;
2388 } MCI_ANIM_WINDOW_PARMS16, *LPMCI_ANIM_WINDOW_PARMS16;
2390 typedef struct {
2391 DWORD dwCallback;
2392 HWND hWnd;
2393 UINT nCmdShow;
2394 LPCSTR lpstrText;
2395 } MCI_ANIM_WINDOW_PARMSA, *LPMCI_ANIM_WINDOW_PARMSA;
2397 typedef struct {
2398 DWORD dwCallback;
2399 HWND hWnd;
2400 UINT nCmdShow;
2401 LPCWSTR lpstrText;
2402 } MCI_ANIM_WINDOW_PARMSW, *LPMCI_ANIM_WINDOW_PARMSW;
2404 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
2405 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
2407 typedef struct {
2408 DWORD dwCallback;
2409 #ifdef MCI_USE_OFFEXT
2410 POINT16 ptOffset;
2411 POINT16 ptExtent;
2412 #else /* ifdef MCI_USE_OFFEXT */
2413 RECT16 rc;
2414 #endif /* ifdef MCI_USE_OFFEXT */
2415 } MCI_ANIM_RECT_PARMS16, *LPMCI_ANIM_RECT_PARMS16;
2417 typedef struct {
2418 DWORD dwCallback;
2419 #ifdef MCI_USE_OFFEXT
2420 POINT ptOffset;
2421 POINT ptExtent;
2422 #else /* ifdef MCI_USE_OFFEXT */
2423 RECT rc;
2424 #endif /* ifdef MCI_USE_OFFEXT */
2425 } MCI_ANIM_RECT_PARMS, *LPMCI_ANIM_RECT_PARMS;
2428 typedef struct {
2429 DWORD dwCallback;
2430 RECT16 rc;
2431 HDC16 hDC;
2432 } MCI_ANIM_UPDATE_PARMS16, *LPMCI_ANIM_UPDATE_PARMS16;
2434 typedef struct {
2435 DWORD dwCallback;
2436 RECT rc;
2437 HDC hDC;
2438 } MCI_ANIM_UPDATE_PARMS, *LPMCI_ANIM_UPDATE_PARMS;
2441 #define MCI_OVLY_OPEN_WS 0x00010000L
2442 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2444 #define MCI_OVLY_STATUS_HWND 0x00004001L
2445 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2447 #define MCI_OVLY_INFO_TEXT 0x00010000L
2449 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2450 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2451 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2453 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2454 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2455 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2456 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2457 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2459 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2461 #define MCI_OVLY_RECT 0x00010000L
2462 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2463 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2464 #define MCI_OVLY_PUT_FRAME 0x00080000L
2465 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2467 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2468 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2469 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2470 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2472 typedef struct {
2473 DWORD dwCallback;
2474 MCIDEVICEID16 wDeviceID;
2475 WORD wReserved0;
2476 LPCSTR lpstrDeviceType;
2477 LPCSTR lpstrElementName;
2478 LPCSTR lpstrAlias;
2479 DWORD dwStyle;
2480 HWND16 hWndParent;
2481 WORD wReserved1;
2482 } MCI_OVLY_OPEN_PARMS16, *LPMCI_OVLY_OPEN_PARMS16;
2484 typedef struct {
2485 DWORD dwCallback;
2486 MCIDEVICEID wDeviceID;
2487 LPCSTR lpstrDeviceType;
2488 LPCSTR lpstrElementName;
2489 LPCSTR lpstrAlias;
2490 DWORD dwStyle;
2491 HWND hWndParent;
2492 } MCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA;
2494 typedef struct {
2495 DWORD dwCallback;
2496 MCIDEVICEID wDeviceID;
2497 LPCWSTR lpstrDeviceType;
2498 LPCWSTR lpstrElementName;
2499 LPCWSTR lpstrAlias;
2500 DWORD dwStyle;
2501 HWND hWndParent;
2502 } MCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW;
2504 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
2505 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
2507 typedef struct {
2508 DWORD dwCallback;
2509 HWND16 hWnd;
2510 WORD wReserved1;
2511 UINT16 nCmdShow;
2512 WORD wReserved2;
2513 LPCSTR lpstrText;
2514 } MCI_OVLY_WINDOW_PARMS16, *LPMCI_OVLY_WINDOW_PARMS16;
2516 typedef struct {
2517 DWORD dwCallback;
2518 HWND hWnd;
2519 UINT nCmdShow;
2520 LPCSTR lpstrText;
2521 } MCI_OVLY_WINDOW_PARMSA, *LPMCI_OVLY_WINDOW_PARMSA;
2523 typedef struct {
2524 DWORD dwCallback;
2525 HWND hWnd;
2526 UINT nCmdShow;
2527 LPCWSTR lpstrText;
2528 } MCI_OVLY_WINDOW_PARMSW, *LPMCI_OVLY_WINDOW_PARMSW;
2530 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
2531 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
2533 typedef struct {
2534 DWORD dwCallback;
2535 #ifdef MCI_USE_OFFEXT
2536 POINT16 ptOffset;
2537 POINT16 ptExtent;
2538 #else /* ifdef MCI_USE_OFFEXT */
2539 RECT16 rc;
2540 #endif /* ifdef MCI_USE_OFFEXT */
2541 } MCI_OVLY_RECT_PARMS16, *LPMCI_OVLY_RECT_PARMS16;
2543 typedef struct {
2544 DWORD dwCallback;
2545 #ifdef MCI_USE_OFFEXT
2546 POINT ptOffset;
2547 POINT ptExtent;
2548 #else /* ifdef MCI_USE_OFFEXT */
2549 RECT rc;
2550 #endif /* ifdef MCI_USE_OFFEXT */
2551 } MCI_OVLY_RECT_PARMS, *LPMCI_OVLY_RECT_PARMS;
2554 typedef struct {
2555 DWORD dwCallback;
2556 LPCSTR lpfilename;
2557 RECT16 rc;
2558 } MCI_OVLY_SAVE_PARMS16, *LPMCI_OVLY_SAVE_PARMS16;
2560 typedef struct {
2561 DWORD dwCallback;
2562 LPCSTR lpfilename;
2563 RECT rc;
2564 } MCI_OVLY_SAVE_PARMSA, *LPMCI_OVLY_SAVE_PARMSA;
2566 typedef struct {
2567 DWORD dwCallback;
2568 LPCWSTR lpfilename;
2569 RECT rc;
2570 } MCI_OVLY_SAVE_PARMSW, *LPMCI_OVLY_SAVE_PARMSW;
2572 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
2573 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
2575 typedef struct {
2576 DWORD dwCallback;
2577 LPCSTR lpfilename;
2578 RECT16 rc;
2579 } MCI_OVLY_LOAD_PARMS16, *LPMCI_OVLY_LOAD_PARMS16;
2581 typedef struct {
2582 DWORD dwCallback;
2583 LPCSTR lpfilename;
2584 RECT rc;
2585 } MCI_OVLY_LOAD_PARMSA, *LPMCI_OVLY_LOAD_PARMSA;
2587 typedef struct {
2588 DWORD dwCallback;
2589 LPCWSTR lpfilename;
2590 RECT rc;
2591 } MCI_OVLY_LOAD_PARMSW, *LPMCI_OVLY_LOAD_PARMSW;
2593 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
2594 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
2596 /**************************************************************
2597 * Linux MMSYSTEM Internals & Sample Audio Drivers
2600 #define DRVM_INIT 100
2601 #define WODM_INIT DRVM_INIT
2602 #define WIDM_INIT DRVM_INIT
2603 #define MODM_INIT DRVM_INIT
2604 #define MIDM_INIT DRVM_INIT
2605 #define AUXM_INIT DRVM_INIT
2607 #define WODM_GETNUMDEVS 3
2608 #define WODM_GETDEVCAPS 4
2609 #define WODM_OPEN 5
2610 #define WODM_CLOSE 6
2611 #define WODM_PREPARE 7
2612 #define WODM_UNPREPARE 8
2613 #define WODM_WRITE 9
2614 #define WODM_PAUSE 10
2615 #define WODM_RESTART 11
2616 #define WODM_RESET 12
2617 #define WODM_GETPOS 13
2618 #define WODM_GETPITCH 14
2619 #define WODM_SETPITCH 15
2620 #define WODM_GETVOLUME 16
2621 #define WODM_SETVOLUME 17
2622 #define WODM_GETPLAYBACKRATE 18
2623 #define WODM_SETPLAYBACKRATE 19
2624 #define WODM_BREAKLOOP 20
2625 #define WODM_STOP 21
2627 #define WIDM_GETNUMDEVS 50
2628 #define WIDM_GETDEVCAPS 51
2629 #define WIDM_OPEN 52
2630 #define WIDM_CLOSE 53
2631 #define WIDM_PREPARE 54
2632 #define WIDM_UNPREPARE 55
2633 #define WIDM_ADDBUFFER 56
2634 #define WIDM_START 57
2635 #define WIDM_STOP 58
2636 #define WIDM_RESET 59
2637 #define WIDM_GETPOS 60
2638 #define WIDM_PAUSE 61
2640 #define MODM_GETNUMDEVS 1
2641 #define MODM_GETDEVCAPS 2
2642 #define MODM_OPEN 3
2643 #define MODM_CLOSE 4
2644 #define MODM_PREPARE 5
2645 #define MODM_UNPREPARE 6
2646 #define MODM_DATA 7
2647 #define MODM_LONGDATA 8
2648 #define MODM_RESET 9
2649 #define MODM_GETVOLUME 10
2650 #define MODM_SETVOLUME 11
2651 #define MODM_CACHEPATCHES 12
2652 #define MODM_CACHEDRUMPATCHES 13
2654 #define MIDM_GETNUMDEVS 53
2655 #define MIDM_GETDEVCAPS 54
2656 #define MIDM_OPEN 55
2657 #define MIDM_CLOSE 56
2658 #define MIDM_PREPARE 57
2659 #define MIDM_UNPREPARE 58
2660 #define MIDM_ADDBUFFER 59
2661 #define MIDM_START 60
2662 #define MIDM_STOP 61
2663 #define MIDM_RESET 62
2665 #define AUXDM_GETNUMDEVS 3
2666 #define AUXDM_GETDEVCAPS 4
2667 #define AUXDM_GETVOLUME 5
2668 #define AUXDM_SETVOLUME 6
2670 #define MXDM_GETNUMDEVS 1
2671 #define MXDM_GETDEVCAPS 2
2672 #define MXDM_OPEN 3
2673 #define MXDM_CLOSE 4
2674 #define MXDM_GETLINEINFO 5
2675 #define MXDM_GETLINECONTROLS 6
2676 #define MXDM_GETCONTROLDETAILS 7
2677 #define MXDM_SETCONTROLDETAILS 8
2679 #define MCI_MAX_DEVICE_TYPE_LENGTH 80
2681 #define MCI_FALSE (MCI_STRING_OFFSET + 19)
2682 #define MCI_TRUE (MCI_STRING_OFFSET + 20)
2684 #define MCI_FORMAT_RETURN_BASE MCI_FORMAT_MILLISECONDS_S
2685 #define MCI_FORMAT_MILLISECONDS_S (MCI_STRING_OFFSET + 21)
2686 #define MCI_FORMAT_HMS_S (MCI_STRING_OFFSET + 22)
2687 #define MCI_FORMAT_MSF_S (MCI_STRING_OFFSET + 23)
2688 #define MCI_FORMAT_FRAMES_S (MCI_STRING_OFFSET + 24)
2689 #define MCI_FORMAT_SMPTE_24_S (MCI_STRING_OFFSET + 25)
2690 #define MCI_FORMAT_SMPTE_25_S (MCI_STRING_OFFSET + 26)
2691 #define MCI_FORMAT_SMPTE_30_S (MCI_STRING_OFFSET + 27)
2692 #define MCI_FORMAT_SMPTE_30DROP_S (MCI_STRING_OFFSET + 28)
2693 #define MCI_FORMAT_BYTES_S (MCI_STRING_OFFSET + 29)
2694 #define MCI_FORMAT_SAMPLES_S (MCI_STRING_OFFSET + 30)
2695 #define MCI_FORMAT_TMSF_S (MCI_STRING_OFFSET + 31)
2697 #define MCI_VD_FORMAT_TRACK_S (MCI_VD_OFFSET + 5)
2699 #define WAVE_FORMAT_PCM_S (MCI_WAVE_OFFSET + 0)
2700 #define WAVE_MAPPER_S (MCI_WAVE_OFFSET + 1)
2702 #define MCI_SEQ_MAPPER_S (MCI_SEQ_OFFSET + 5)
2703 #define MCI_SEQ_FILE_S (MCI_SEQ_OFFSET + 6)
2704 #define MCI_SEQ_MIDI_S (MCI_SEQ_OFFSET + 7)
2705 #define MCI_SEQ_SMPTE_S (MCI_SEQ_OFFSET + 8)
2706 #define MCI_SEQ_FORMAT_SONGPTR_S (MCI_SEQ_OFFSET + 9)
2707 #define MCI_SEQ_NONE_S (MCI_SEQ_OFFSET + 10)
2708 #define MIDIMAPPER_S (MCI_SEQ_OFFSET + 11)
2710 #define MCI_RESOURCE_RETURNED 0x00010000 /* resource ID */
2711 #define MCI_COLONIZED3_RETURN 0x00020000 /* colonized ID, 3 bytes data */
2712 #define MCI_COLONIZED4_RETURN 0x00040000 /* colonized ID, 4 bytes data */
2713 #define MCI_INTEGER_RETURNED 0x00080000 /* integer conversion needed */
2714 #define MCI_RESOURCE_DRIVER 0x00100000 /* driver owns returned resource */
2716 #define MCI_NO_COMMAND_TABLE 0xFFFF
2718 #define MCI_COMMAND_HEAD 0
2719 #define MCI_STRING 1
2720 #define MCI_INTEGER 2
2721 #define MCI_END_COMMAND 3
2722 #define MCI_RETURN 4
2723 #define MCI_FLAG 5
2724 #define MCI_END_COMMAND_LIST 6
2725 #define MCI_RECT 7
2726 #define MCI_CONSTANT 8
2727 #define MCI_END_CONSTANT 9
2729 /* Mixer flags */
2730 #define MIXER_OBJECTF_HANDLE 0x80000000L
2731 #define MIXER_OBJECTF_MIXER 0x00000000L
2732 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
2733 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
2734 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
2735 #define MIXER_OBJECTF_WAVEIN 0x20000000L
2736 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
2737 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
2738 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
2739 #define MIXER_OBJECTF_MIDIIN 0x40000000L
2740 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
2741 #define MIXER_OBJECTF_AUX 0x50000000L
2743 #define MAKEMCIRESOURCE(wRet, wRes) MAKELRESULT((wRet), (wRes))
2745 /* the 95 DDK defines those slightly different, but they are internal anyway */
2746 typedef struct {
2747 DWORD dwCallback;
2748 DWORD dwInstance;
2749 HMIDIOUT16 hMidi;
2750 DWORD dwFlags;
2751 } PORTALLOC, *LPPORTALLOC;
2753 typedef struct {
2754 HWAVE16 hWave;
2755 LPWAVEFORMAT lpFormat;
2756 DWORD dwCallBack;
2757 DWORD dwInstance;
2758 UINT16 uDeviceID;
2759 } WAVEOPENDESC, *LPWAVEOPENDESC;
2761 typedef struct {
2762 HMIDI16 hMidi;
2763 DWORD dwCallback;
2764 DWORD dwInstance;
2765 UINT16 wDevID;
2766 } MIDIOPENDESC, *LPMIDIOPENDESC;
2768 typedef struct {
2769 UINT16 wDelay;
2770 UINT16 wResolution;
2771 LPTIMECALLBACK16 lpFunction;
2772 DWORD dwUser;
2773 UINT16 wFlags;
2774 } TIMEREVENT, *LPTIMEREVENT;
2776 typedef struct tMIXEROPENDESC
2778 HMIXEROBJ16 hmx;
2779 DWORD dwCallback;
2780 DWORD dwInstance;
2781 UINT16 uDeviceID;
2782 } MIXEROPENDESC,*LPMIXEROPENDESC;
2784 typedef struct {
2785 UINT16 wDeviceID; /* device ID */
2786 LPSTR lpstrParams; /* parameter string for entry in SYSTEM.INI */
2787 UINT16 wCustomCommandTable; /* custom command table (0xFFFF if none)
2788 * filled in by the driver */
2789 UINT16 wType; /* driver type (filled in by the driver) */
2790 } MCI_OPEN_DRIVER_PARMS16, *LPMCI_OPEN_DRIVER_PARMS16;
2792 typedef struct {
2793 UINT wDeviceID; /* device ID */
2794 LPSTR lpstrParams; /* parameter string for entry in SYSTEM.INI */
2795 UINT wCustomCommandTable; /* custom command table (0xFFFF if none) * filled in by the driver */
2796 UINT wType; /* driver type (filled in by the driver) */
2797 } MCI_OPEN_DRIVER_PARMSA, *LPMCI_OPEN_DRIVER_PARMSA;
2799 typedef struct {
2800 UINT wDeviceID; /* device ID */
2801 LPWSTR lpstrParams; /* parameter string for entry in SYSTEM.INI */
2802 UINT wCustomCommandTable; /* custom command table (0xFFFF if none) * filled in by the driver */
2803 UINT wType; /* driver type (filled in by the driver) */
2804 } MCI_OPEN_DRIVER_PARMSW, *LPMCI_OPEN_DRIVER_PARMSW;
2806 DWORD WINAPI mciGetDriverData16(UINT16 uDeviceID);
2807 DWORD WINAPI mciGetDriverData(UINT uDeviceID);
2809 BOOL16 WINAPI mciSetDriverData16(UINT16 uDeviceID, DWORD dwData);
2810 BOOL WINAPI mciSetDriverData(UINT uDeviceID, DWORD dwData);
2812 UINT16 WINAPI mciDriverYield16(UINT16 uDeviceID);
2813 UINT WINAPI mciDriverYield(UINT uDeviceID);
2815 BOOL16 WINAPI mciDriverNotify16(HWND16 hwndCallback, UINT16 uDeviceID,
2816 UINT16 uStatus);
2817 BOOL WINAPI mciDriverNotify(HWND hwndCallback, UINT uDeviceID,
2818 UINT uStatus);
2820 UINT16 WINAPI mciLoadCommandResource16(HINSTANCE16 hInstance,
2821 LPCSTR lpResName, UINT16 uType);
2822 UINT WINAPI mciLoadCommandResource(HINSTANCE hInstance,
2823 LPCWSTR lpResName, UINT uType);
2825 BOOL16 WINAPI mciFreeCommandResource16(UINT16 uTable);
2826 BOOL WINAPI mciFreeCommandResource(UINT uTable);
2828 #define DCB_NULL 0x0000
2829 #define DCB_WINDOW 0x0001 /* dwCallback is a HWND */
2830 #define DCB_TASK 0x0002 /* dwCallback is a HTASK */
2831 #define DCB_FUNCTION 0x0003 /* dwCallback is a FARPROC */
2832 #define DCB_FUNC32 0x0007 /* (ugly hack) 32-bit FARPROC */
2833 #define DCB_TYPEMASK 0x0007
2834 #define DCB_NOSWITCH 0x0008 /* don't switch stacks for callback */
2836 BOOL16 WINAPI DriverCallback16(DWORD dwCallBack, UINT16 uFlags, HANDLE16 hDev,
2837 WORD wMsg, DWORD dwUser, DWORD dwParam1, DWORD dwParam2);
2838 DWORD WINAPI auxMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2839 DWORD dwParam1, DWORD dwParam2);
2841 #pragma pack(4)
2842 DWORD WINAPI mixMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2843 DWORD dwParam1, DWORD dwParam2);
2844 DWORD WINAPI midMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2845 DWORD dwParam1, DWORD dwParam2);
2846 DWORD WINAPI modMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2847 DWORD dwParam1, DWORD dwParam2);
2848 DWORD WINAPI widMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2849 DWORD dwParam1, DWORD dwParam2);
2850 DWORD WINAPI wodMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2851 DWORD dwParam1, DWORD dwParam2);
2852 #pragma pack(4)
2854 #ifdef __cplusplus
2856 #endif
2858 #endif /* __WINE_MMSYSTEM_H */