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

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

nameless union fixes

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