source: trunk/include/win/mmsystem.h@ 3354

Last change on this file since 3354 was 3354, checked in by sandervl, 25 years ago

YD: header changes/fixes

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