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

Last change on this file since 2524 was 2524, checked in by sandervl, 26 years ago

header changes

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