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

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

update

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