Update winapi and c2man so they know about -ret16. Remove support for
[wine.git] / include / mmsystem.h
blob2722b17689acd418d18cd8df600ae7410a6ffa82
1 /*
2 * MMSYSTEM - Multimedia Wine Extension ... :-)
4 * Copyright (C) the Wine project
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_MMSYSTEM_H
22 #define __WINE_MMSYSTEM_H
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
28 typedef LPSTR HPSTR; /* a huge version of LPSTR */
29 typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
30 typedef UINT* LPUINT;
32 DECLARE_HANDLE(HDRVR);
33 DECLARE_HANDLE(HWAVE);
34 DECLARE_HANDLE(HWAVEIN);
35 DECLARE_HANDLE(HWAVEOUT);
36 DECLARE_HANDLE(HMIDI);
37 DECLARE_HANDLE(HMIDIIN);
38 DECLARE_HANDLE(HMIDIOUT);
39 DECLARE_HANDLE(HMIDISTRM);
40 DECLARE_HANDLE(HMIXER);
41 DECLARE_HANDLE(HMIXEROBJ);
42 DECLARE_HANDLE(HMMIO);
44 typedef HMIDI *LPHMIDI;
45 typedef HMIDIIN *LPHMIDIIN;
46 typedef HMIDIOUT *LPHMIDIOUT;
47 typedef HMIDISTRM *LPHMIDISTRM;
48 typedef HMIXER *LPHMIXER;
49 typedef HMIXEROBJ *LPHMIXEROBJ;
50 typedef HWAVEIN *LPHWAVEIN;
51 typedef HWAVEOUT *LPHWAVEOUT;
53 #include <pshpack1.h>
55 typedef LRESULT (CALLBACK *DRIVERPROC)(DWORD,HDRVR,UINT,LPARAM,LPARAM);
57 #define MAXWAVEDRIVERS 10
58 #define MAXMIDIDRIVERS 10
59 #define MAXAUXDRIVERS 10
60 #define MAXMCIDRIVERS 32
61 #define MAXMIXERDRIVERS 10
63 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
64 #define MAXERRORLENGTH 128 /* max error text length (including NULL) */
65 #define MAX_JOYSTICKOEMVXDNAME 260
67 #ifndef _MCIERROR_
68 #define _MCIERROR_
69 typedef DWORD MCIERROR;
70 #endif
71 typedef UINT MMVERSION;
72 #ifndef _MCIDEVICEID_
73 #define _MCIDEVICEID_
74 typedef UINT MCIDEVICEID;
75 #endif
76 typedef UINT MMRESULT;
78 typedef struct {
79 UINT wType;
80 union {
81 DWORD ms;
82 DWORD sample;
83 DWORD cb;
84 DWORD ticks;
85 struct {
86 BYTE hour;
87 BYTE min;
88 BYTE sec;
89 BYTE frame;
90 BYTE fps;
91 BYTE dummy;
92 BYTE pad[2];
93 } smpte;
94 struct {
95 DWORD songptrpos;
96 } midi;
97 } u;
98 } MMTIME, *LPMMTIME;
100 #define TIME_MS 0x0001 /* time in milliseconds */
101 #define TIME_SAMPLES 0x0002 /* number of wave samples */
102 #define TIME_BYTES 0x0004 /* current byte offset */
103 #define TIME_SMPTE 0x0008 /* SMPTE time */
104 #define TIME_MIDI 0x0010 /* MIDI time */
105 #define TIME_TICKS 0x0020 /* MIDI ticks */
107 #define MM_JOY1MOVE 0x3A0 /* joystick */
108 #define MM_JOY2MOVE 0x3A1
109 #define MM_JOY1ZMOVE 0x3A2
110 #define MM_JOY2ZMOVE 0x3A3
111 #define MM_JOY1BUTTONDOWN 0x3B5
112 #define MM_JOY2BUTTONDOWN 0x3B6
113 #define MM_JOY1BUTTONUP 0x3B7
114 #define MM_JOY2BUTTONUP 0x3B8
116 #define MM_MCINOTIFY 0x3B9 /* MCI */
118 #define MM_WOM_OPEN 0x3BB /* waveform output */
119 #define MM_WOM_CLOSE 0x3BC
120 #define MM_WOM_DONE 0x3BD
122 #define MM_WIM_OPEN 0x3BE /* waveform input */
123 #define MM_WIM_CLOSE 0x3BF
124 #define MM_WIM_DATA 0x3C0
126 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
127 #define MM_MIM_CLOSE 0x3C2
128 #define MM_MIM_DATA 0x3C3
129 #define MM_MIM_LONGDATA 0x3C4
130 #define MM_MIM_ERROR 0x3C5
131 #define MM_MIM_LONGERROR 0x3C6
133 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
134 #define MM_MOM_CLOSE 0x3C8
135 #define MM_MOM_DONE 0x3C9
136 #define MM_MOM_POSITIONCB 0x3CA
138 #define MM_MIM_MOREDATA 0x3CC
140 #define MM_MIXM_LINE_CHANGE 0x3D0
141 #define MM_MIXM_CONTROL_CHANGE 0x3D1
143 #define MMSYSERR_BASE 0
144 #define WAVERR_BASE 32
145 #define MIDIERR_BASE 64
146 #define TIMERR_BASE 96
147 #define JOYERR_BASE 160
148 #define MCIERR_BASE 256
150 #define MCI_STRING_OFFSET 512
151 #define MCI_VD_OFFSET 1024
152 #define MCI_CD_OFFSET 1088
153 #define MCI_WAVE_OFFSET 1152
154 #define MCI_SEQ_OFFSET 1216
156 #define MMSYSERR_NOERROR 0 /* no error */
157 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
158 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
159 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
160 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
161 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
162 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
163 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
164 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
165 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
166 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
167 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
168 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
170 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
171 #define CALLBACK_NULL 0x00000000l /* no callback */
172 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
173 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
174 #define CALLBACK_THREAD (CALLBACK_TASK) /* dwCallback is a thread ID */
175 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
176 #define CALLBACK_EVENT 0x00050000l /* dwCallback is an EVENT Handler */
178 #define DRV_LOAD 0x0001
179 #define DRV_ENABLE 0x0002
180 #define DRV_OPEN 0x0003
181 #define DRV_CLOSE 0x0004
182 #define DRV_DISABLE 0x0005
183 #define DRV_FREE 0x0006
184 #define DRV_CONFIGURE 0x0007
185 #define DRV_QUERYCONFIGURE 0x0008
186 #define DRV_INSTALL 0x0009
187 #define DRV_REMOVE 0x000A
188 #define DRV_EXITSESSION 0x000B
189 #define DRV_EXITAPPLICATION 0x000C
190 #define DRV_POWER 0x000F
192 #define DRV_RESERVED 0x0800
193 #define DRV_USER 0x4000
195 #define DRVCNF_CANCEL 0x0000
196 #define DRVCNF_OK 0x0001
197 #define DRVCNF_RESTART 0x0002
199 #define DRVEA_NORMALEXIT 0x0001
200 #define DRVEA_ABNORMALEXIT 0x0002
202 #define DRV_SUCCESS 0x0001
203 #define DRV_FAILURE 0x0000
205 #define GND_FIRSTINSTANCEONLY 0x00000001
207 #define GND_FORWARD 0x00000000
208 #define GND_REVERSE 0x00000002
210 typedef struct {
211 DWORD dwDCISize;
212 LPCWSTR lpszDCISectionName;
213 LPCWSTR lpszDCIAliasName;
214 } DRVCONFIGINFO, *LPDRVCONFIGINFO;
217 LRESULT WINAPI DefDriverProc(DWORD dwDriverIdentifier, HDRVR hdrvr,
218 UINT Msg, LPARAM lParam1, LPARAM lParam2);
219 /* this sounds odd, but it's the way it is. OpenDriverA even disapeared
220 * from latest SDK
222 HDRVR WINAPI OpenDriverA(LPCSTR szDriverName, LPCSTR szSectionName,
223 LPARAM lParam2);
224 HDRVR WINAPI OpenDriver(LPCWSTR szDriverName, LPCWSTR szSectionName,
225 LPARAM lParam2);
226 LRESULT WINAPI CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2);
227 LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message,
228 LPARAM lParam1, LPARAM lParam2);
229 HMODULE WINAPI GetDriverModuleHandle(HDRVR hDriver);
231 DWORD WINAPI GetDriverFlags(HDRVR hDriver);
233 typedef void (CALLBACK *LPDRVCALLBACK) (HDRVR h, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
235 #define MM_MICROSOFT 1 /* Microsoft Corp. */
237 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
238 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
240 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
241 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
242 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
243 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
244 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
246 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
248 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
249 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
251 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
254 UINT WINAPI mmsystemGetVersion(void);
255 BOOL WINAPI sndPlaySoundA(LPCSTR lpszSound, UINT fuSound);
256 BOOL WINAPI sndPlaySoundW(LPCWSTR lpszSound, UINT fuSound);
257 #define sndPlaySound WINELIB_NAME_AW(sndPlaySound)
258 BOOL WINAPI PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
259 BOOL WINAPI PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound);
260 #define PlaySound WINELIB_NAME_AW(PlaySound)
262 #define SND_SYNC 0x0000 /* play synchronously (default) */
263 #define SND_ASYNC 0x0001 /* play asynchronously */
264 #define SND_NODEFAULT 0x0002 /* don't use default sound */
265 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
266 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
267 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
269 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
270 #define SND_ALIAS 0x00010000L /* name is a registry alias */
271 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
272 #define SND_FILENAME 0x00020000L /* name is file name */
273 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
274 #define SND_PURGE 0x00000040L /* purge all sounds */
275 #define SND_APPLICATION 0x00000080L /* look for application specific association */
277 /* waveform audio error return values */
278 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
279 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
280 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
281 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
282 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
284 typedef LPDRVCALLBACK LPWAVECALLBACK;
286 #define WOM_OPEN MM_WOM_OPEN
287 #define WOM_CLOSE MM_WOM_CLOSE
288 #define WOM_DONE MM_WOM_DONE
289 #define WIM_OPEN MM_WIM_OPEN
290 #define WIM_CLOSE MM_WIM_CLOSE
291 #define WIM_DATA MM_WIM_DATA
293 #define WAVE_MAPPER (-1)
295 #define WAVE_FORMAT_QUERY 0x0001
296 #define WAVE_ALLOWSYNC 0x0002
297 #define WAVE_MAPPED 0x0004
298 #define WAVE_FORMAT_DIRECT 0x0008
299 #define WAVE_FORMAT_DIRECT_QUERY (WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT)
301 typedef struct wavehdr_tag {
302 LPSTR lpData; /* pointer to locked data buffer */
303 DWORD dwBufferLength; /* length of data buffer */
304 DWORD dwBytesRecorded;/* used for input only */
305 DWORD dwUser; /* for client's use */
306 DWORD dwFlags; /* assorted flags (see defines) */
307 DWORD dwLoops; /* loop control counter */
309 struct wavehdr_tag *lpNext; /* reserved for driver */
310 DWORD reserved; /* reserved for driver */
311 } WAVEHDR, *PWAVEHDR, *NPWAVEHDR, *LPWAVEHDR;
313 #define WHDR_DONE 0x00000001 /* done bit */
314 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
315 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
316 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
317 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
319 typedef struct {
320 WORD wMid; /* manufacturer ID */
321 WORD wPid; /* product ID */
322 MMVERSION vDriverVersion; /* version of the driver */
323 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
324 DWORD dwFormats; /* formats supported */
325 WORD wChannels; /* number of sources supported */
326 WORD wReserved1; /* padding */
327 DWORD dwSupport; /* functionality supported by driver */
328 } WAVEOUTCAPSA, *LPWAVEOUTCAPSA;
330 typedef struct {
331 WORD wMid; /* manufacturer ID */
332 WORD wPid; /* product ID */
333 MMVERSION vDriverVersion; /* version of the driver */
334 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
335 DWORD dwFormats; /* formats supported */
336 WORD wChannels; /* number of sources supported */
337 WORD wReserved1; /* padding */
338 DWORD dwSupport; /* functionality supported by driver */
339 } WAVEOUTCAPSW, *LPWAVEOUTCAPSW;
340 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS)
341 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS)
343 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
344 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
345 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
346 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
347 #define WAVECAPS_SYNC 0x0010 /* driver is synchrounous and playing is blocking */
348 #define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
349 #define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
351 typedef struct {
352 WORD wMid; /* manufacturer ID */
353 WORD wPid; /* product ID */
354 MMVERSION vDriverVersion; /* version of the driver */
355 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
356 DWORD dwFormats; /* formats supported */
357 WORD wChannels; /* number of channels supported */
358 WORD wReserved1;
359 } WAVEINCAPSA, *LPWAVEINCAPSA;
360 typedef struct {
361 WORD wMid; /* manufacturer ID */
362 WORD wPid; /* product ID */
363 MMVERSION vDriverVersion; /* version of the driver */
364 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
365 DWORD dwFormats; /* formats supported */
366 WORD wChannels; /* number of channels supported */
367 WORD wReserved1;
368 } WAVEINCAPSW, *LPWAVEINCAPSW;
369 DECL_WINELIB_TYPE_AW(WAVEINCAPS)
370 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS)
372 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
373 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
374 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
375 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
376 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
377 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
378 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
379 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
380 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
381 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
382 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
383 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
384 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
385 #define WAVE_FORMAT_48M08 0x00001000 /* 48 kHz, Mono, 8-bit */
386 #define WAVE_FORMAT_48S08 0x00002000 /* 48 kHz, Stereo, 8-bit */
387 #define WAVE_FORMAT_48M16 0x00004000 /* 48 kHz, Mono, 16-bit */
388 #define WAVE_FORMAT_48S16 0x00008000 /* 48 kHz, Stereo, 16-bit */
389 #define WAVE_FORMAT_96M08 0x00010000 /* 96 kHz, Mono, 8-bit */
390 #define WAVE_FORMAT_96S08 0x00020000 /* 96 kHz, Stereo, 8-bit */
391 #define WAVE_FORMAT_96M16 0x00040000 /* 96 kHz, Mono, 16-bit */
392 #define WAVE_FORMAT_96S16 0x00080000 /* 96 kHz, Stereo, 16-bit */
394 /* General format structure common to all formats, same for Win16 and Win32 */
395 typedef struct {
396 WORD wFormatTag; /* format type */
397 WORD nChannels; /* number of channels */
398 DWORD nSamplesPerSec; /* sample rate */
399 DWORD nAvgBytesPerSec;/* for buffer estimation */
400 WORD nBlockAlign; /* block size of data */
401 } WAVEFORMAT, *LPWAVEFORMAT;
403 #define WAVE_FORMAT_PCM 1
405 typedef struct {
406 WAVEFORMAT wf;
407 WORD wBitsPerSample;
408 } PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
410 #ifndef _WAVEFORMATEX_
411 #define _WAVEFORMATEX_
412 /* dito same for Win16 / Win32 */
413 typedef struct {
414 WORD wFormatTag; /* format type */
415 WORD nChannels; /* number of channels (i.e. mono, stereo...) */
416 DWORD nSamplesPerSec; /* sample rate */
417 DWORD nAvgBytesPerSec;/* for buffer estimation */
418 WORD nBlockAlign; /* block size of data */
419 WORD wBitsPerSample; /* number of bits per sample of mono data */
420 WORD cbSize; /* the count in bytes of the size of */
421 /* extra information (after cbSize) */
422 } WAVEFORMATEX, *LPWAVEFORMATEX, *NPWAVEFORMATEX, *PWAVEFORMATEX;
423 #endif
425 UINT WINAPI waveOutGetNumDevs(void);
426 UINT WINAPI waveOutGetDevCapsA(UINT,LPWAVEOUTCAPSA,UINT);
427 UINT WINAPI waveOutGetDevCapsW(UINT,LPWAVEOUTCAPSW,UINT);
428 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
429 UINT WINAPI waveOutGetVolume(HWAVEOUT,DWORD*);
430 UINT WINAPI waveOutSetVolume(HWAVEOUT,DWORD);
431 UINT WINAPI waveOutGetErrorTextA(UINT,LPSTR,UINT);
432 UINT WINAPI waveOutGetErrorTextW(UINT,LPWSTR,UINT);
433 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
434 UINT WINAPI waveOutOpen(HWAVEOUT*,UINT,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
435 UINT WINAPI waveOutClose(HWAVEOUT);
436 UINT WINAPI waveOutPrepareHeader(HWAVEOUT,WAVEHDR*,UINT);
437 UINT WINAPI waveOutUnprepareHeader(HWAVEOUT,WAVEHDR*,UINT);
438 UINT WINAPI waveOutWrite(HWAVEOUT,WAVEHDR*,UINT);
439 UINT WINAPI waveOutPause(HWAVEOUT);
440 UINT WINAPI waveOutRestart(HWAVEOUT);
441 UINT WINAPI waveOutReset(HWAVEOUT);
442 UINT WINAPI waveOutBreakLoop(HWAVEOUT);
443 UINT WINAPI waveOutGetPosition(HWAVEOUT,LPMMTIME,UINT);
444 UINT WINAPI waveOutGetPitch(HWAVEOUT,DWORD*);
445 UINT WINAPI waveOutSetPitch(HWAVEOUT,DWORD);
446 UINT WINAPI waveOutGetPlaybackRate(HWAVEOUT,DWORD*);
447 UINT WINAPI waveOutSetPlaybackRate(HWAVEOUT,DWORD);
448 UINT WINAPI waveOutGetID(HWAVEOUT,UINT*);
449 UINT WINAPI waveOutMessage(HWAVEOUT,UINT,DWORD,DWORD);
450 UINT WINAPI waveInGetNumDevs(void);
451 UINT WINAPI waveInGetDevCapsA(UINT,LPWAVEINCAPSA,UINT);
452 UINT WINAPI waveInGetDevCapsW(UINT,LPWAVEINCAPSW,UINT);
453 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
454 UINT WINAPI waveInGetErrorTextA(UINT,LPSTR,UINT);
455 UINT WINAPI waveInGetErrorTextW(UINT,LPWSTR,UINT);
456 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
457 UINT WINAPI waveInOpen(HWAVEIN*,UINT,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
458 UINT WINAPI waveInClose(HWAVEIN);
459 UINT WINAPI waveInPrepareHeader(HWAVEIN,WAVEHDR*,UINT);
460 UINT WINAPI waveInUnprepareHeader(HWAVEIN,WAVEHDR*,UINT);
461 UINT WINAPI waveInAddBuffer(HWAVEIN,WAVEHDR*,UINT);
462 UINT WINAPI waveInStart(HWAVEIN);
463 UINT WINAPI waveInStop(HWAVEIN);
464 UINT WINAPI waveInReset(HWAVEIN);
465 UINT WINAPI waveInGetPosition(HWAVEIN,LPMMTIME,UINT);
466 UINT WINAPI waveInGetID(HWAVEIN,UINT*);
467 UINT WINAPI waveInMessage(HWAVEIN,UINT,DWORD,DWORD);
469 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
470 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
471 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
472 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
473 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
474 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
475 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
477 typedef LPDRVCALLBACK LPMIDICALLBACK;
478 #define MIDIPATCHSIZE 128
479 typedef WORD PATCHARRAY[MIDIPATCHSIZE];
480 typedef WORD *LPPATCHARRAY;
481 typedef WORD KEYARRAY[MIDIPATCHSIZE];
482 typedef WORD *LPKEYARRAY;
484 #define MIM_OPEN MM_MIM_OPEN
485 #define MIM_CLOSE MM_MIM_CLOSE
486 #define MIM_DATA MM_MIM_DATA
487 #define MIM_LONGDATA MM_MIM_LONGDATA
488 #define MIM_ERROR MM_MIM_ERROR
489 #define MIM_LONGERROR MM_MIM_LONGERROR
490 #define MIM_MOREDATA MM_MIM_MOREDATA
492 #define MOM_OPEN MM_MOM_OPEN
493 #define MOM_CLOSE MM_MOM_CLOSE
494 #define MOM_DONE MM_MOM_DONE
495 #define MOM_POSITIONCB MM_MOM_POSITIONCB
497 /* device ID for MIDI mapper */
499 #define MIDIMAPPER (-1)
500 #define MIDI_MAPPER (-1)
502 /* Only on Win95 and up */
503 #define MIDI_IO_STATUS 0x00000020L
505 /* flags for wFlags parm of
506 midiOutCachePatches(),
507 midiOutCacheDrumPatches() */
508 #define MIDI_CACHE_ALL 1
509 #define MIDI_CACHE_BESTFIT 2
510 #define MIDI_CACHE_QUERY 3
511 #define MIDI_UNCACHE 4
513 typedef struct {
514 WORD wMid; /* manufacturer ID */
515 WORD wPid; /* product ID */
516 MMVERSION vDriverVersion; /* version of the driver */
517 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
518 WORD wTechnology; /* type of device */
519 WORD wVoices; /* # of voices (internal synth only) */
520 WORD wNotes; /* max # of notes (internal synth only) */
521 WORD wChannelMask; /* channels used (internal synth only) */
522 DWORD dwSupport; /* functionality supported by driver */
523 } MIDIOUTCAPSA, *LPMIDIOUTCAPSA;
525 typedef struct {
526 WORD wMid; /* manufacturer ID */
527 WORD wPid; /* product ID */
528 MMVERSION vDriverVersion; /* version of the driver */
529 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
530 WORD wTechnology; /* type of device */
531 WORD wVoices; /* # of voices (internal synth only) */
532 WORD wNotes; /* max # of notes (internal synth only) */
533 WORD wChannelMask; /* channels used (internal synth only) */
534 DWORD dwSupport; /* functionality supported by driver */
535 } MIDIOUTCAPSW, *LPMIDIOUTCAPSW;
537 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS)
538 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS)
540 #define MOD_MIDIPORT 1 /* output port */
541 #define MOD_SYNTH 2 /* generic internal synth */
542 #define MOD_SQSYNTH 3 /* square wave internal synth */
543 #define MOD_FMSYNTH 4 /* FM internal synth */
544 #define MOD_MAPPER 5 /* MIDI mapper */
546 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
547 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
548 #define MIDICAPS_CACHE 0x0004
549 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
551 typedef struct {
552 WORD wMid; /* manufacturer ID */
553 WORD wPid; /* product ID */
554 MMVERSION vDriverVersion; /* version of the driver */
555 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
556 DWORD dwSupport; /* included in win95 and higher */
557 } MIDIINCAPSA, *LPMIDIINCAPSA;
559 typedef struct {
560 WORD wMid; /* manufacturer ID */
561 WORD wPid; /* product ID */
562 MMVERSION vDriverVersion; /* version of the driver */
563 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
564 DWORD dwSupport; /* included in win95 and higher */
565 } MIDIINCAPSW, *LPMIDIINCAPSW;
567 DECL_WINELIB_TYPE_AW(MIDIINCAPS)
568 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
570 /* It seems that Win32 has a slightly different structure than Win 16.
571 * sigh....
573 typedef struct midihdr_tag {
574 LPSTR lpData; /* pointer to locked data block */
575 DWORD dwBufferLength; /* length of data in data block */
576 DWORD dwBytesRecorded;/* used for input only */
577 DWORD_PTR dwUser; /* for client's use */
578 DWORD dwFlags; /* assorted flags (see defines) */
579 struct midihdr_tag *lpNext; /* reserved for driver */
580 DWORD reserved; /* reserved for driver */
581 DWORD dwOffset; /* offset of playback in case of
582 * MIDISTRM buffer */
583 DWORD_PTR dwReserved[8]; /* reserved for driver */
584 } MIDIHDR, *LPMIDIHDR;
586 #define MHDR_DONE 0x00000001 /* done bit */
587 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
588 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
589 #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
591 typedef struct {
592 DWORD cbStruct;
593 DWORD dwTempo;
594 } MIDIPROPTEMPO, *LPMIDIPROPTEMPO;
596 typedef struct {
597 DWORD cbStruct;
598 DWORD dwTimeDiv;
599 } MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV;
601 #define MIDIPROP_GET 0x40000000
602 #define MIDIPROP_SET 0x80000000
603 #define MIDIPROP_TEMPO 0x00000002
604 #define MIDIPROP_TIMEDIV 0x00000001
606 typedef struct {
607 DWORD dwDeltaTime; /* Time, in MIDI ticks, between the previous
608 * event and the current event. */
609 DWORD dwStreamID; /* Reserved; must be zero. */
610 DWORD dwEvent; /* event => see MEVT_XXX macros */
611 DWORD dwParms[1]; /* extra pmts to dwEvent if F_LONG is set */
612 } MIDIEVENT, *LPMIDIEVENT;
614 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
615 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
617 #define MEVT_F_CALLBACK 0x40000000l
618 #define MEVT_F_LONG 0x80000000l
619 #define MEVT_F_SHORT 0x00000000l
620 #define MEVT_COMMENT ((BYTE)0x82)
621 #define MEVT_LONGMSG ((BYTE)0x80)
622 #define MEVT_NOP ((BYTE)0x02)
623 #define MEVT_SHORTMSG ((BYTE)0x00)
624 #define MEVT_TEMPO ((BYTE)0x01)
625 #define MEVT_VERSION ((BYTE)0x84)
627 UINT WINAPI midiOutGetNumDevs(void);
628 UINT WINAPI midiOutGetDevCapsA(UINT,LPMIDIOUTCAPSA,UINT);
629 UINT WINAPI midiOutGetDevCapsW(UINT,LPMIDIOUTCAPSW,UINT);
630 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
631 UINT WINAPI midiOutGetVolume(HMIDIOUT,DWORD*);
632 UINT WINAPI midiOutSetVolume(HMIDIOUT,DWORD);
633 UINT WINAPI midiOutGetErrorTextA(UINT,LPSTR,UINT);
634 UINT WINAPI midiOutGetErrorTextW(UINT,LPWSTR,UINT);
635 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
636 UINT WINAPI midiOutOpen(HMIDIOUT*,UINT,DWORD,DWORD,DWORD);
637 UINT WINAPI midiOutClose(HMIDIOUT);
638 UINT WINAPI midiOutPrepareHeader(HMIDIOUT,MIDIHDR*,UINT);
639 UINT WINAPI midiOutUnprepareHeader(HMIDIOUT,MIDIHDR*,UINT);
640 UINT WINAPI midiOutShortMsg(HMIDIOUT,DWORD);
641 UINT WINAPI midiOutLongMsg(HMIDIOUT,MIDIHDR*,UINT);
642 UINT WINAPI midiOutReset(HMIDIOUT);
643 UINT WINAPI midiOutCachePatches(HMIDIOUT,UINT,WORD*,UINT);
644 UINT WINAPI midiOutCacheDrumPatches(HMIDIOUT,UINT,WORD*,UINT);
645 UINT WINAPI midiOutGetID(HMIDIOUT,UINT*);
646 UINT WINAPI midiOutMessage(HMIDIOUT,UINT,DWORD,DWORD);
648 UINT WINAPI midiInGetNumDevs(void);
649 UINT WINAPI midiInGetDevCapsA(UINT,LPMIDIINCAPSA,UINT);
650 UINT WINAPI midiInGetDevCapsW(UINT,LPMIDIINCAPSW,UINT);
651 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
652 UINT WINAPI midiInGetErrorTextA(UINT,LPSTR,UINT);
653 UINT WINAPI midiInGetErrorTextW(UINT,LPWSTR,UINT);
654 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
655 UINT WINAPI midiInOpen(HMIDIIN*,UINT,DWORD,DWORD,DWORD);
656 UINT WINAPI midiInClose(HMIDIIN);
657 UINT WINAPI midiInPrepareHeader(HMIDIIN,MIDIHDR*,UINT);
658 UINT WINAPI midiInUnprepareHeader(HMIDIIN,MIDIHDR*,UINT);
659 UINT WINAPI midiInAddBuffer(HMIDIIN,MIDIHDR*,UINT);
660 UINT WINAPI midiInStart(HMIDIIN);
661 UINT WINAPI midiInStop(HMIDIIN);
662 UINT WINAPI midiInReset(HMIDIIN);
663 UINT WINAPI midiInGetID(HMIDIIN,UINT*);
664 UINT WINAPI midiInMessage(HMIDIIN,UINT,DWORD,DWORD);
665 MMRESULT WINAPI midiStreamClose(HMIDISTRM hms);
666 MMRESULT WINAPI midiStreamOpen(HMIDISTRM* phms, LPUINT uDeviceID, DWORD cMidi,
667 DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen);
668 MMRESULT WINAPI midiStreamOut(HMIDISTRM hms, LPMIDIHDR lpMidiHdr, UINT cbMidiHdr);
669 MMRESULT WINAPI midiStreamPause(HMIDISTRM hms);
670 MMRESULT WINAPI midiStreamPosition(HMIDISTRM hms, LPMMTIME lpmmt, UINT cbmmt);
671 MMRESULT WINAPI midiStreamProperty(HMIDISTRM hms, LPBYTE lpPropData, DWORD dwProperty);
672 MMRESULT WINAPI midiStreamRestart(HMIDISTRM hms);
673 MMRESULT WINAPI midiStreamStop(HMIDISTRM hms);
675 #define AUX_MAPPER (-1)
677 typedef struct {
678 WORD wMid; /* manufacturer ID */
679 WORD wPid; /* product ID */
680 MMVERSION vDriverVersion; /* version of the driver */
681 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
682 WORD wTechnology; /* type of device */
683 WORD wReserved1; /* padding */
684 DWORD dwSupport; /* functionality supported by driver */
685 } AUXCAPSA, *LPAUXCAPSA;
687 typedef struct {
688 WORD wMid; /* manufacturer ID */
689 WORD wPid; /* product ID */
690 MMVERSION vDriverVersion; /* version of the driver */
691 WCHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
692 WORD wTechnology; /* type of device */
693 WORD wReserved1; /* padding */
694 DWORD dwSupport; /* functionality supported by driver */
695 } AUXCAPSW, *LPAUXCAPSW;
697 DECL_WINELIB_TYPE_AW(AUXCAPS)
698 DECL_WINELIB_TYPE_AW(LPAUXCAPS)
700 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
701 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
703 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
704 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
706 UINT WINAPI auxGetNumDevs(void);
707 UINT WINAPI auxGetDevCapsA(UINT,LPAUXCAPSA,UINT);
708 UINT WINAPI auxGetDevCapsW(UINT,LPAUXCAPSW,UINT);
709 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
710 UINT WINAPI auxSetVolume(UINT,DWORD);
711 UINT WINAPI auxGetVolume(UINT,LPDWORD);
712 UINT WINAPI auxOutMessage(UINT,UINT,DWORD,DWORD);
714 #define TIMERR_NOERROR (0) /* no error */
715 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
716 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
718 typedef void (CALLBACK *LPTIMECALLBACK)(UINT uTimerID, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
720 #define TIME_ONESHOT 0x0000 /* program timer for single event */
721 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
722 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
723 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
724 #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
725 #define TIME_KILL_SYNCHRONOUS 0x0100
727 typedef struct {
728 UINT wPeriodMin;
729 UINT wPeriodMax;
730 } TIMECAPS, *LPTIMECAPS;
733 MMRESULT WINAPI timeGetSystemTime(LPMMTIME,UINT);
734 DWORD WINAPI timeGetTime(void); /* same for win32/win16 */
735 MMRESULT WINAPI timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD,UINT);
736 MMRESULT WINAPI timeKillEvent(UINT);
737 MMRESULT WINAPI timeGetDevCaps(LPTIMECAPS,UINT);
738 MMRESULT WINAPI timeBeginPeriod(UINT);
739 MMRESULT WINAPI timeEndPeriod(UINT);
741 #define JOYERR_NOERROR (0) /* no error */
742 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
743 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
744 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
746 /* JOYINFO, JOYINFOEX, MM_JOY* */
747 #define JOY_BUTTON1 0x0001
748 #define JOY_BUTTON2 0x0002
749 #define JOY_BUTTON3 0x0004
750 #define JOY_BUTTON4 0x0008
751 #define JOY_BUTTON1CHG 0x0100
752 #define JOY_BUTTON2CHG 0x0200
753 #define JOY_BUTTON3CHG 0x0400
754 #define JOY_BUTTON4CHG 0x0800
756 #define JOYSTICKID1 0
757 #define JOYSTICKID2 1
759 /* JOYCAPS.wCaps */
760 #define JOYCAPS_HASZ 0x0001
761 #define JOYCAPS_HASR 0x0002
762 #define JOYCAPS_HASU 0x0004
763 #define JOYCAPS_HASV 0x0008
764 #define JOYCAPS_HASPOV 0x0010
765 #define JOYCAPS_POV4DIR 0x0020
766 #define JOYCAPS_POVCTS 0x0040
768 /* JOYINFOEX stuff */
769 #define JOY_POVCENTERED (WORD) -1
770 #define JOY_POVFORWARD 0
771 #define JOY_POVRIGHT 9000
772 #define JOY_POVBACKWARD 18000
773 #define JOY_POVLEFT 27000
775 #define JOY_RETURNX 0x00000001
776 #define JOY_RETURNY 0x00000002
777 #define JOY_RETURNZ 0x00000004
778 #define JOY_RETURNR 0x00000008
779 #define JOY_RETURNU 0x00000010
780 #define JOY_RETURNV 0x00000020
781 #define JOY_RETURNPOV 0x00000040
782 #define JOY_RETURNBUTTONS 0x00000080
783 #define JOY_RETURNRAWDATA 0x00000100
784 #define JOY_RETURNPOVCTS 0x00000200
785 #define JOY_RETURNCENTERED 0x00000400
786 #define JOY_USEDEADZONE 0x00000800
787 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
788 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
789 JOY_RETURNPOV | JOY_RETURNBUTTONS)
790 #define JOY_CAL_READALWAYS 0x00010000
791 #define JOY_CAL_READXYONLY 0x00020000
792 #define JOY_CAL_READ3 0x00040000
793 #define JOY_CAL_READ4 0x00080000
794 #define JOY_CAL_READXONLY 0x00100000
795 #define JOY_CAL_READYONLY 0x00200000
796 #define JOY_CAL_READ5 0x00400000
797 #define JOY_CAL_READ6 0x00800000
798 #define JOY_CAL_READZONLY 0x01000000
799 #define JOY_CAL_READRONLY 0x02000000
800 #define JOY_CAL_READUONLY 0x04000000
801 #define JOY_CAL_READVONLY 0x08000000
803 typedef struct {
804 WORD wMid;
805 WORD wPid;
806 CHAR szPname[MAXPNAMELEN];
807 UINT wXmin;
808 UINT wXmax;
809 UINT wYmin;
810 UINT wYmax;
811 UINT wZmin;
812 UINT wZmax;
813 UINT wNumButtons;
814 UINT wPeriodMin;
815 UINT wPeriodMax;
816 UINT wRmin;
817 UINT wRmax;
818 UINT wUmin;
819 UINT wUmax;
820 UINT wVmin;
821 UINT wVmax;
822 UINT wCaps;
823 UINT wMaxAxes;
824 UINT wNumAxes;
825 UINT wMaxButtons;
826 CHAR szRegKey[MAXPNAMELEN];
827 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
828 } JOYCAPSA, *LPJOYCAPSA;
830 typedef struct {
831 WORD wMid;
832 WORD wPid;
833 WCHAR szPname[MAXPNAMELEN];
834 UINT wXmin;
835 UINT wXmax;
836 UINT wYmin;
837 UINT wYmax;
838 UINT wZmin;
839 UINT wZmax;
840 UINT wNumButtons;
841 UINT wPeriodMin;
842 UINT wPeriodMax;
843 UINT wRmin;
844 UINT wRmax;
845 UINT wUmin;
846 UINT wUmax;
847 UINT wVmin;
848 UINT wVmax;
849 UINT wCaps;
850 UINT wMaxAxes;
851 UINT wNumAxes;
852 UINT wMaxButtons;
853 WCHAR szRegKey[MAXPNAMELEN];
854 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
855 } JOYCAPSW, *LPJOYCAPSW;
856 DECL_WINELIB_TYPE_AW(JOYCAPS)
857 DECL_WINELIB_TYPE_AW(LPJOYCAPS)
859 typedef struct {
860 UINT wXpos;
861 UINT wYpos;
862 UINT wZpos;
863 UINT wButtons;
864 } JOYINFO, *LPJOYINFO;
866 typedef struct {
867 DWORD dwSize; /* size of structure */
868 DWORD dwFlags; /* flags to indicate what to return */
869 DWORD dwXpos; /* x position */
870 DWORD dwYpos; /* y position */
871 DWORD dwZpos; /* z position */
872 DWORD dwRpos; /* rudder/4th axis position */
873 DWORD dwUpos; /* 5th axis position */
874 DWORD dwVpos; /* 6th axis position */
875 DWORD dwButtons; /* button states */
876 DWORD dwButtonNumber; /* current button number pressed */
877 DWORD dwPOV; /* point of view state */
878 DWORD dwReserved1; /* reserved for communication between winmm & driver */
879 DWORD dwReserved2; /* reserved for future expansion */
880 } JOYINFOEX,*LPJOYINFOEX;
883 MMRESULT WINAPI joyGetDevCapsA(UINT,LPJOYCAPSA,UINT);
884 MMRESULT WINAPI joyGetDevCapsW(UINT,LPJOYCAPSW,UINT);
885 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
886 UINT WINAPI joyGetNumDevs(void);
887 MMRESULT WINAPI joyGetPos(UINT,LPJOYINFO);
888 MMRESULT WINAPI joyGetPosEx(UINT,LPJOYINFOEX);
889 MMRESULT WINAPI joyGetThreshold(UINT,UINT*);
890 MMRESULT WINAPI joyReleaseCapture(UINT);
891 MMRESULT WINAPI joySetCapture(HWND,UINT,UINT,BOOL);
892 MMRESULT WINAPI joySetThreshold(UINT,UINT);
894 #define MIXERR_BASE 1024
895 #define MIXERR_INVALLINE (MIXERR_BASE + 0)
896 #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
897 #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
898 #define MIXERR_LASTERROR (MIXERR_BASE + 2)
900 typedef struct {
901 WORD wMid;
902 WORD wPid;
903 MMVERSION vDriverVersion;
904 CHAR szPname[MAXPNAMELEN];
905 DWORD fdwSupport;
906 DWORD cDestinations;
907 } MIXERCAPSA,*LPMIXERCAPSA;
909 typedef struct {
910 WORD wMid;
911 WORD wPid;
912 MMVERSION vDriverVersion;
913 WCHAR szPname[MAXPNAMELEN];
914 DWORD fdwSupport;
915 DWORD cDestinations;
916 } MIXERCAPSW,*LPMIXERCAPSW;
918 DECL_WINELIB_TYPE_AW(MIXERCAPS)
919 DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
921 #define MIXER_SHORT_NAME_CHARS 16
922 #define MIXER_LONG_NAME_CHARS 64
924 /* MIXERLINE.fdwLine */
925 #define MIXERLINE_LINEF_ACTIVE 0x00000001
926 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
927 #define MIXERLINE_LINEF_SOURCE 0x80000000
929 /* Mixer flags */
930 #define MIXER_OBJECTF_HANDLE 0x80000000L
931 #define MIXER_OBJECTF_MIXER 0x00000000L
932 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
933 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
934 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
935 #define MIXER_OBJECTF_WAVEIN 0x20000000L
936 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
937 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
938 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
939 #define MIXER_OBJECTF_MIDIIN 0x40000000L
940 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
941 #define MIXER_OBJECTF_AUX 0x50000000L
943 /* MIXERLINE.dwComponentType */
944 /* component types for destinations and sources */
945 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
946 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
947 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
948 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
949 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
950 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
951 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
952 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
953 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
954 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
955 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
957 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
958 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
959 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
960 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
961 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
962 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
963 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
964 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
965 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
966 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
967 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
968 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
969 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
971 /* MIXERLINE.Target.dwType */
972 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
973 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
974 #define MIXERLINE_TARGETTYPE_WAVEIN 2
975 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
976 #define MIXERLINE_TARGETTYPE_MIDIIN 4
977 #define MIXERLINE_TARGETTYPE_AUX 5
979 typedef struct {
980 DWORD cbStruct;
981 DWORD dwDestination;
982 DWORD dwSource;
983 DWORD dwLineID;
984 DWORD fdwLine;
985 DWORD dwUser;
986 DWORD dwComponentType;
987 DWORD cChannels;
988 DWORD cConnections;
989 DWORD cControls;
990 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
991 CHAR szName[MIXER_LONG_NAME_CHARS];
992 struct {
993 DWORD dwType;
994 DWORD dwDeviceID;
995 WORD wMid;
996 WORD wPid;
997 MMVERSION vDriverVersion;
998 CHAR szPname[MAXPNAMELEN];
999 } Target;
1000 } MIXERLINEA, *LPMIXERLINEA;
1002 typedef struct {
1003 DWORD cbStruct;
1004 DWORD dwDestination;
1005 DWORD dwSource;
1006 DWORD dwLineID;
1007 DWORD fdwLine;
1008 DWORD dwUser;
1009 DWORD dwComponentType;
1010 DWORD cChannels;
1011 DWORD cConnections;
1012 DWORD cControls;
1013 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1014 WCHAR szName[MIXER_LONG_NAME_CHARS];
1015 struct {
1016 DWORD dwType;
1017 DWORD dwDeviceID;
1018 WORD wMid;
1019 WORD wPid;
1020 MMVERSION vDriverVersion;
1021 WCHAR szPname[MAXPNAMELEN];
1022 } Target;
1023 } MIXERLINEW, *LPMIXERLINEW;
1025 DECL_WINELIB_TYPE_AW(MIXERLINE)
1026 DECL_WINELIB_TYPE_AW(LPMIXERLINE)
1028 /* MIXERCONTROL.fdwControl */
1029 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1030 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1031 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1033 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1034 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1035 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1036 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1037 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1038 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1039 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1040 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1041 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1042 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1044 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1046 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1047 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1049 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1051 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1052 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1054 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1055 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1057 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1058 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1059 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1060 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1061 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1062 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1063 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1065 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1066 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1067 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1068 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1069 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1070 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1071 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1072 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1073 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1074 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1075 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1076 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1077 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1078 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1079 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1080 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1081 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1082 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1083 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1084 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1085 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1086 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1087 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1088 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1089 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1090 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1091 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1092 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1093 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1094 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1095 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1098 typedef struct {
1099 DWORD cbStruct;
1100 DWORD dwControlID;
1101 DWORD dwControlType;
1102 DWORD fdwControl;
1103 DWORD cMultipleItems;
1104 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1105 CHAR szName[MIXER_LONG_NAME_CHARS];
1106 union {
1107 struct {
1108 LONG lMinimum;
1109 LONG lMaximum;
1110 } DUMMYSTRUCTNAME;
1111 struct {
1112 DWORD dwMinimum;
1113 DWORD dwMaximum;
1114 } DUMMYSTRUCTNAME1;
1115 DWORD dwReserved[6];
1116 } Bounds;
1117 union {
1118 DWORD cSteps;
1119 DWORD cbCustomData;
1120 DWORD dwReserved[6];
1121 } Metrics;
1122 } MIXERCONTROLA, *LPMIXERCONTROLA;
1124 typedef struct {
1125 DWORD cbStruct;
1126 DWORD dwControlID;
1127 DWORD dwControlType;
1128 DWORD fdwControl;
1129 DWORD cMultipleItems;
1130 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1131 WCHAR szName[MIXER_LONG_NAME_CHARS];
1132 union {
1133 struct {
1134 LONG lMinimum;
1135 LONG lMaximum;
1136 } DUMMYSTRUCTNAME;
1137 struct {
1138 DWORD dwMinimum;
1139 DWORD dwMaximum;
1140 } DUMMYSTRUCTNAME1;
1141 DWORD dwReserved[6];
1142 } Bounds;
1143 union {
1144 DWORD cSteps;
1145 DWORD cbCustomData;
1146 DWORD dwReserved[6];
1147 } Metrics;
1148 } MIXERCONTROLW, *LPMIXERCONTROLW;
1150 DECL_WINELIB_TYPE_AW(MIXERCONTROL)
1151 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
1153 typedef struct {
1154 DWORD cbStruct;
1155 DWORD dwLineID;
1156 union {
1157 DWORD dwControlID;
1158 DWORD dwControlType;
1159 } DUMMYUNIONNAME;
1160 DWORD cControls;
1161 DWORD cbmxctrl;
1162 LPMIXERCONTROLA pamxctrl;
1163 } MIXERLINECONTROLSA, *LPMIXERLINECONTROLSA;
1165 typedef struct {
1166 DWORD cbStruct;
1167 DWORD dwLineID;
1168 union {
1169 DWORD dwControlID;
1170 DWORD dwControlType;
1171 } DUMMYUNIONNAME;
1172 DWORD cControls;
1173 DWORD cbmxctrl;
1174 LPMIXERCONTROLW pamxctrl;
1175 } MIXERLINECONTROLSW, *LPMIXERLINECONTROLSW;
1177 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
1178 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
1180 typedef struct {
1181 DWORD cbStruct;
1182 DWORD dwControlID;
1183 DWORD cChannels;
1184 union {
1185 HWND hwndOwner;
1186 DWORD cMultipleItems;
1187 } DUMMYUNIONNAME;
1188 DWORD cbDetails;
1189 LPVOID paDetails;
1190 } MIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
1192 typedef struct {
1193 DWORD dwParam1;
1194 DWORD dwParam2;
1195 CHAR szName[MIXER_LONG_NAME_CHARS];
1196 } MIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
1198 typedef struct {
1199 DWORD dwParam1;
1200 DWORD dwParam2;
1201 WCHAR szName[MIXER_LONG_NAME_CHARS];
1202 } MIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
1204 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
1205 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
1207 /* MIXER_GETCONTROLDETAILSF_VALUE */
1208 typedef struct {
1209 LONG fValue;
1210 } MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1212 typedef struct {
1213 LONG lValue;
1214 } MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1216 typedef struct {
1217 DWORD dwValue;
1218 } MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1220 /* bits passed to mixerGetLineInfo.fdwInfo */
1221 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1222 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1223 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1224 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1225 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1226 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1228 /* bitmask passed to mixerGetLineControl */
1229 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1230 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1231 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1232 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1234 /* bitmask passed to mixerGetControlDetails */
1235 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1236 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1237 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1239 /* bitmask passed to mixerSetControlDetails */
1240 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1241 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1242 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1244 UINT WINAPI mixerGetNumDevs(void);
1245 UINT WINAPI mixerOpen(LPHMIXER,UINT,DWORD,DWORD,DWORD);
1246 UINT WINAPI mixerClose(HMIXER);
1247 UINT WINAPI mixerMessage(HMIXER,UINT,DWORD,DWORD);
1248 UINT WINAPI mixerGetDevCapsA(UINT,LPMIXERCAPSA,UINT);
1249 UINT WINAPI mixerGetDevCapsW(UINT,LPMIXERCAPSW,UINT);
1250 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1251 UINT WINAPI mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
1252 UINT WINAPI mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
1253 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1254 UINT WINAPI mixerGetID(HMIXEROBJ,LPUINT,DWORD);
1255 UINT WINAPI mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
1256 UINT WINAPI mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
1257 #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1258 UINT WINAPI mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1259 UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1260 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1261 UINT WINAPI mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1263 #define MMIOERR_BASE 256
1264 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1265 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1266 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1267 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1268 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1269 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1270 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1271 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1272 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1273 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1275 #define CFSEPCHAR '+' /* compound file name separator char. */
1277 typedef DWORD FOURCC; /* a four character code */
1278 typedef LRESULT (CALLBACK *LPMMIOPROC) (LPSTR lpmmioinfo, UINT uMessage,
1279 LPARAM lParam1, LPARAM lParam2);
1281 typedef struct {
1282 DWORD dwFlags;
1283 FOURCC fccIOProc;
1284 LPMMIOPROC pIOProc;
1285 UINT wErrorRet;
1286 HTASK hTask;
1287 /* fields maintained by MMIO functions during buffered I/O */
1288 LONG cchBuffer;
1289 HPSTR pchBuffer;
1290 HPSTR pchNext;
1291 HPSTR pchEndRead;
1292 HPSTR pchEndWrite;
1293 LONG lBufOffset;
1294 /* fields maintained by I/O procedure */
1295 LONG lDiskOffset;
1296 DWORD adwInfo[3];
1297 /* other fields maintained by MMIO */
1298 DWORD dwReserved1;
1299 DWORD dwReserved2;
1300 HMMIO hmmio;
1301 } MMIOINFO, *PMMIOINFO, *LPMMIOINFO;
1304 typedef struct _MMCKINFO
1306 FOURCC ckid; /* chunk ID */
1307 DWORD cksize; /* chunk size */
1308 FOURCC fccType; /* form type or list type */
1309 DWORD dwDataOffset; /* offset of data portion of chunk */
1310 DWORD dwFlags; /* flags used by MMIO functions */
1311 } MMCKINFO, *LPMMCKINFO;
1313 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1314 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1316 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1317 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1318 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1319 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1320 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1321 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1323 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1325 #define MMIO_READ 0x00000000 /* open file for reading only */
1326 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1327 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1329 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1330 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1331 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1332 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1333 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1335 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1336 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1337 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1338 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1339 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1340 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1341 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1342 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1343 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1344 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1345 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1346 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1348 #ifndef SEEK_SET
1349 #define SEEK_SET 0
1350 #define SEEK_CUR 1
1351 #define SEEK_END 2
1352 #endif /* SEEK_SET */
1354 #define MMIOM_READ MMIO_READ /* read */
1355 #define MMIOM_WRITE MMIO_WRITE /* write */
1356 #define MMIOM_SEEK 2 /* seek to a new position in file */
1357 #define MMIOM_OPEN 3 /* open file */
1358 #define MMIOM_CLOSE 4 /* close file */
1359 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1361 #define MMIOM_RENAME 6 /* rename specified file */
1363 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1365 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1366 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1368 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1369 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1371 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1373 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1374 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1375 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1377 LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
1378 LPMMIOPROC WINAPI mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
1379 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1381 FOURCC WINAPI mmioStringToFOURCCA(LPCSTR,UINT);
1382 FOURCC WINAPI mmioStringToFOURCCW(LPCWSTR,UINT);
1383 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1384 HMMIO WINAPI mmioOpenA(LPSTR,MMIOINFO*,DWORD);
1385 HMMIO WINAPI mmioOpenW(LPWSTR,MMIOINFO*,DWORD);
1386 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1388 MMRESULT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
1389 const MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1390 MMRESULT WINAPI mmioRenameW(LPCWSTR szFileName, LPCWSTR szNewFileName,
1391 const MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1392 #define mmioRename WINELIB_NAME_AW(mmioRename)
1394 MMRESULT WINAPI mmioClose(HMMIO,UINT);
1395 LONG WINAPI mmioRead(HMMIO,HPSTR,LONG);
1396 LONG WINAPI mmioWrite(HMMIO,HPCSTR,LONG);
1397 LONG WINAPI mmioSeek(HMMIO,LONG,INT);
1398 MMRESULT WINAPI mmioGetInfo(HMMIO,MMIOINFO*,UINT);
1399 MMRESULT WINAPI mmioSetInfo(HMMIO,const MMIOINFO*,UINT);
1400 MMRESULT WINAPI mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
1401 MMRESULT WINAPI mmioFlush(HMMIO,UINT);
1402 MMRESULT WINAPI mmioAdvance(HMMIO,MMIOINFO*,UINT);
1403 LRESULT WINAPI mmioSendMessage(HMMIO,UINT,LPARAM,LPARAM);
1404 MMRESULT WINAPI mmioDescend(HMMIO,MMCKINFO*,const MMCKINFO*,UINT);
1405 MMRESULT WINAPI mmioAscend(HMMIO,MMCKINFO*,UINT);
1406 MMRESULT WINAPI mmioCreateChunk(HMMIO,MMCKINFO*,UINT);
1408 typedef UINT (CALLBACK *YIELDPROC)(MCIDEVICEID,DWORD);
1410 DWORD WINAPI mciSendCommandA(UINT,UINT,DWORD,DWORD);
1411 DWORD WINAPI mciSendCommandW(UINT,UINT,DWORD,DWORD);
1412 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1413 DWORD WINAPI mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
1414 DWORD WINAPI mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND);
1415 #define mciSendString WINELIB_NAME_AW(mciSendString)
1416 UINT WINAPI mciGetDeviceIDA(LPCSTR);
1417 UINT WINAPI mciGetDeviceIDW(LPCWSTR);
1418 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1419 BOOL WINAPI mciGetErrorStringA(DWORD,LPSTR,UINT);
1420 BOOL WINAPI mciGetErrorStringW(DWORD,LPWSTR,UINT);
1421 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1422 BOOL WINAPI mciSetYieldProc(UINT,YIELDPROC,DWORD);
1423 HTASK WINAPI mciGetCreatorTask(UINT);
1424 YIELDPROC WINAPI mciGetYieldProc(UINT,DWORD*);
1426 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1427 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1428 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1429 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1430 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1431 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1432 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1433 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1434 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1435 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1436 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1437 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1438 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1439 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1440 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1441 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1442 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1443 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1444 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1445 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1446 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1447 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1448 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1449 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1450 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1451 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1452 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1453 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1454 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1455 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1456 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1457 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1458 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1459 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1460 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1461 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1462 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1463 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1464 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1465 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1466 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1467 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1468 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1469 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1470 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1471 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1472 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1473 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1474 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1475 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1476 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1477 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1479 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1480 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1481 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1482 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1483 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1484 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1485 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1486 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1487 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1488 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1490 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1491 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1492 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1493 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1494 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1495 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1496 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1497 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1499 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1500 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1501 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1502 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1504 #define MCIERR_NO_IDENTITY (MCIERR_BASE + 94)
1506 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1508 #define MCI_OPEN_DRIVER 0x0801
1509 #define MCI_CLOSE_DRIVER 0x0802
1510 #define MCI_OPEN 0x0803
1511 #define MCI_CLOSE 0x0804
1512 #define MCI_ESCAPE 0x0805
1513 #define MCI_PLAY 0x0806
1514 #define MCI_SEEK 0x0807
1515 #define MCI_STOP 0x0808
1516 #define MCI_PAUSE 0x0809
1517 #define MCI_INFO 0x080A
1518 #define MCI_GETDEVCAPS 0x080B
1519 #define MCI_SPIN 0x080C
1520 #define MCI_SET 0x080D
1521 #define MCI_STEP 0x080E
1522 #define MCI_RECORD 0x080F
1523 #define MCI_SYSINFO 0x0810
1524 #define MCI_BREAK 0x0811
1525 #define MCI_SOUND 0x0812
1526 #define MCI_SAVE 0x0813
1527 #define MCI_STATUS 0x0814
1528 #define MCI_CUE 0x0830
1529 #define MCI_REALIZE 0x0840
1530 #define MCI_WINDOW 0x0841
1531 #define MCI_PUT 0x0842
1532 #define MCI_WHERE 0x0843
1533 #define MCI_FREEZE 0x0844
1534 #define MCI_UNFREEZE 0x0845
1535 #define MCI_LOAD 0x0850
1536 #define MCI_CUT 0x0851
1537 #define MCI_COPY 0x0852
1538 #define MCI_PASTE 0x0853
1539 #define MCI_UPDATE 0x0854
1540 #define MCI_RESUME 0x0855
1541 #define MCI_DELETE 0x0856
1543 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1545 #define MCI_ALL_DEVICE_ID 0xFFFF
1547 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1548 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1549 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1550 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1551 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1552 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1553 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1554 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1555 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1556 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1557 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1559 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1560 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1562 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1563 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1564 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1565 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1566 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1567 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1568 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1570 #define MCI_FORMAT_MILLISECONDS 0
1571 #define MCI_FORMAT_HMS 1
1572 #define MCI_FORMAT_MSF 2
1573 #define MCI_FORMAT_FRAMES 3
1574 #define MCI_FORMAT_SMPTE_24 4
1575 #define MCI_FORMAT_SMPTE_25 5
1576 #define MCI_FORMAT_SMPTE_30 6
1577 #define MCI_FORMAT_SMPTE_30DROP 7
1578 #define MCI_FORMAT_BYTES 8
1579 #define MCI_FORMAT_SAMPLES 9
1580 #define MCI_FORMAT_TMSF 10
1582 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1583 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1584 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1586 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1587 ((WORD)(s)<<8)) | \
1588 (((DWORD)(BYTE)(f))<<16)))
1590 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1591 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1592 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1593 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1595 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1596 ((WORD)(m)<<8)) | \
1597 (((DWORD)(BYTE)(s) | \
1598 ((WORD)(f)<<8))<<16)))
1600 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1601 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1602 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1604 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1605 ((WORD)(m)<<8)) | \
1606 (((DWORD)(BYTE)(s))<<16)))
1608 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1609 #define MCI_NOTIFY_SUPERSEDED 0x0002
1610 #define MCI_NOTIFY_ABORTED 0x0004
1611 #define MCI_NOTIFY_FAILURE 0x0008
1613 #define MCI_NOTIFY 0x00000001L
1614 #define MCI_WAIT 0x00000002L
1615 #define MCI_FROM 0x00000004L
1616 #define MCI_TO 0x00000008L
1617 #define MCI_TRACK 0x00000010L
1619 #define MCI_OPEN_SHAREABLE 0x00000100L
1620 #define MCI_OPEN_ELEMENT 0x00000200L
1621 #define MCI_OPEN_ALIAS 0x00000400L
1622 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1623 #define MCI_OPEN_TYPE_ID 0x00001000L
1624 #define MCI_OPEN_TYPE 0x00002000L
1626 #define MCI_SEEK_TO_START 0x00000100L
1627 #define MCI_SEEK_TO_END 0x00000200L
1629 #define MCI_STATUS_ITEM 0x00000100L
1630 #define MCI_STATUS_START 0x00000200L
1632 #define MCI_STATUS_LENGTH 0x00000001L
1633 #define MCI_STATUS_POSITION 0x00000002L
1634 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1635 #define MCI_STATUS_MODE 0x00000004L
1636 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1637 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1638 #define MCI_STATUS_READY 0x00000007L
1639 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1641 #define MCI_INFO_PRODUCT 0x00000100L
1642 #define MCI_INFO_FILE 0x00000200L
1643 #define MCI_INFO_MEDIA_UPC 0x00000400L
1644 #define MCI_INFO_MEDIA_IDENTITY 0x00000800L
1645 #define MCI_INFO_NAME 0x00001000L
1646 #define MCI_INFO_COPYRIGHT 0x00002000L
1648 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1650 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1651 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1652 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1653 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1654 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1655 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1656 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1657 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1658 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1660 #define MCI_SYSINFO_QUANTITY 0x00000100L
1661 #define MCI_SYSINFO_OPEN 0x00000200L
1662 #define MCI_SYSINFO_NAME 0x00000400L
1663 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1665 #define MCI_SET_DOOR_OPEN 0x00000100L
1666 #define MCI_SET_DOOR_CLOSED 0x00000200L
1667 #define MCI_SET_TIME_FORMAT 0x00000400L
1668 #define MCI_SET_AUDIO 0x00000800L
1669 #define MCI_SET_VIDEO 0x00001000L
1670 #define MCI_SET_ON 0x00002000L
1671 #define MCI_SET_OFF 0x00004000L
1673 #define MCI_SET_AUDIO_ALL 0x00000000L
1674 #define MCI_SET_AUDIO_LEFT 0x00000001L
1675 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1677 #define MCI_BREAK_KEY 0x00000100L
1678 #define MCI_BREAK_HWND 0x00000200L
1679 #define MCI_BREAK_OFF 0x00000400L
1681 #define MCI_RECORD_INSERT 0x00000100L
1682 #define MCI_RECORD_OVERWRITE 0x00000200L
1684 #define MCI_SOUND_NAME 0x00000100L
1686 #define MCI_SAVE_FILE 0x00000100L
1688 #define MCI_LOAD_FILE 0x00000100L
1690 typedef struct {
1691 DWORD dwCallback;
1692 } MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
1694 typedef struct {
1695 DWORD dwCallback;
1696 MCIDEVICEID wDeviceID;
1697 LPSTR lpstrDeviceType;
1698 LPSTR lpstrElementName;
1699 LPSTR lpstrAlias;
1700 } MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
1702 typedef struct {
1703 DWORD dwCallback;
1704 MCIDEVICEID wDeviceID;
1705 LPWSTR lpstrDeviceType;
1706 LPWSTR lpstrElementName;
1707 LPWSTR lpstrAlias;
1708 } MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
1710 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
1711 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
1713 typedef struct {
1714 DWORD dwCallback;
1715 DWORD dwFrom;
1716 DWORD dwTo;
1717 } MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
1719 typedef struct {
1720 DWORD dwCallback;
1721 DWORD dwTo;
1722 } MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
1724 typedef struct {
1725 DWORD dwCallback;
1726 DWORD dwReturn;
1727 DWORD dwItem;
1728 DWORD dwTrack;
1729 } MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
1731 typedef struct {
1732 DWORD dwCallback;
1733 LPSTR lpstrReturn;
1734 DWORD dwRetSize;
1735 } MCI_INFO_PARMSA, *LPMCI_INFO_PARMSA;
1737 typedef struct {
1738 DWORD dwCallback;
1739 LPSTR lpstrReturn;
1740 DWORD dwRetSize;
1741 } MCI_INFO_PARMSW, *LPMCI_INFO_PARMSW;
1743 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
1744 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
1746 typedef struct {
1747 DWORD dwCallback;
1748 DWORD dwReturn;
1749 DWORD dwItem;
1750 } MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
1752 typedef struct {
1753 DWORD dwCallback;
1754 LPSTR lpstrReturn;
1755 DWORD dwRetSize;
1756 DWORD dwNumber;
1757 UINT wDeviceType;
1758 } MCI_SYSINFO_PARMSA, *LPMCI_SYSINFO_PARMSA;
1760 typedef struct {
1761 DWORD dwCallback;
1762 LPWSTR lpstrReturn;
1763 DWORD dwRetSize;
1764 DWORD dwNumber;
1765 UINT wDeviceType;
1766 } MCI_SYSINFO_PARMSW, *LPMCI_SYSINFO_PARMSW;
1768 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
1769 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
1771 typedef struct {
1772 DWORD dwCallback;
1773 DWORD dwTimeFormat;
1774 DWORD dwAudio;
1775 } MCI_SET_PARMS, *LPMCI_SET_PARMS;
1777 typedef struct {
1778 DWORD dwCallback;
1779 INT nVirtKey;
1780 HWND hwndBreak;
1781 } MCI_BREAK_PARMS, *LPMCI_BREAK_PARMS;
1784 typedef struct {
1785 DWORD dwCallback;
1786 LPCSTR lpstrSoundName;
1787 } MCI_SOUND_PARMS, *LPMCI_SOUND_PARMS;
1789 typedef struct {
1790 DWORD dwCallback;
1791 LPCSTR lpfilename;
1792 } MCI_SAVE_PARMS, *LPMCI_SAVE_PARMS;
1794 typedef struct {
1795 DWORD dwCallback;
1796 LPCSTR lpfilename;
1797 } MCI_LOAD_PARMSA, *LPMCI_LOAD_PARMSA;
1799 typedef struct {
1800 DWORD dwCallback;
1801 LPCWSTR lpfilename;
1802 } MCI_LOAD_PARMSW, *LPMCI_LOAD_PARMSW;
1804 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
1805 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
1807 typedef struct {
1808 DWORD dwCallback;
1809 DWORD dwFrom;
1810 DWORD dwTo;
1811 } MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
1813 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
1815 #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
1816 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
1818 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
1820 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
1821 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
1822 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
1824 #define MCI_VD_FORMAT_TRACK 0x4001
1826 #define MCI_VD_PLAY_REVERSE 0x00010000L
1827 #define MCI_VD_PLAY_FAST 0x00020000L
1828 #define MCI_VD_PLAY_SPEED 0x00040000L
1829 #define MCI_VD_PLAY_SCAN 0x00080000L
1830 #define MCI_VD_PLAY_SLOW 0x00100000L
1832 #define MCI_VD_SEEK_REVERSE 0x00010000L
1834 #define MCI_VD_STATUS_SPEED 0x00004002L
1835 #define MCI_VD_STATUS_FORWARD 0x00004003L
1836 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
1837 #define MCI_VD_STATUS_SIDE 0x00004005L
1838 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
1840 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
1841 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
1843 #define MCI_VD_SPIN_UP 0x00010000L
1844 #define MCI_VD_SPIN_DOWN 0x00020000L
1846 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
1847 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
1848 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
1849 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
1851 #define MCI_VD_STEP_FRAMES 0x00010000L
1852 #define MCI_VD_STEP_REVERSE 0x00020000L
1854 #define MCI_VD_ESCAPE_STRING 0x00000100L
1856 typedef struct {
1857 DWORD dwCallback;
1858 DWORD dwFrom;
1859 DWORD dwTo;
1860 DWORD dwSpeed;
1861 } MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
1863 typedef struct {
1864 DWORD dwCallback;
1865 DWORD dwFrames;
1866 } MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
1868 typedef struct {
1869 DWORD dwCallback;
1870 LPCSTR lpstrCommand;
1871 } MCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA;
1873 typedef struct {
1874 DWORD dwCallback;
1875 LPCWSTR lpstrCommand;
1876 } MCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW;
1878 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
1879 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
1881 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
1883 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
1884 #define MCI_WAVE_SET_CHANNELS 0x00020000L
1885 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
1886 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
1887 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
1888 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
1890 #define MCI_WAVE_INPUT 0x00400000L
1891 #define MCI_WAVE_OUTPUT 0x00800000L
1893 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
1894 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
1895 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
1896 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
1897 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
1898 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
1899 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
1901 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
1902 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
1904 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
1905 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
1907 typedef struct {
1908 DWORD dwCallback;
1909 MCIDEVICEID wDeviceID;
1910 LPCSTR lpstrDeviceType;
1911 LPCSTR lpstrElementName;
1912 LPCSTR lpstrAlias;
1913 DWORD dwBufferSeconds;
1914 } MCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA;
1916 typedef struct {
1917 DWORD dwCallback;
1918 MCIDEVICEID wDeviceID;
1919 LPCWSTR lpstrDeviceType;
1920 LPCWSTR lpstrElementName;
1921 LPCWSTR lpstrAlias;
1922 DWORD dwBufferSeconds;
1923 } MCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW;
1925 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
1926 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
1928 typedef struct {
1929 DWORD dwCallback;
1930 DWORD dwFrom;
1931 DWORD dwTo;
1932 } MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
1934 typedef struct {
1935 DWORD dwCallback;
1936 DWORD dwTimeFormat;
1937 DWORD dwAudio;
1938 UINT wInput;
1939 UINT wOutput;
1940 UINT wFormatTag;
1941 UINT nChannels;
1942 DWORD nSamplesPerSec;
1943 DWORD nAvgBytesPerSec;
1944 UINT nBlockAlign;
1945 UINT wBitsPerSample;
1946 } MCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS;
1949 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
1950 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
1951 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
1952 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
1953 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
1955 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
1956 #define MCI_SEQ_FILE 0x4002
1957 #define MCI_SEQ_MIDI 0x4003
1958 #define MCI_SEQ_SMPTE 0x4004
1959 #define MCI_SEQ_NONE 65533
1961 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
1962 #define MCI_SEQ_STATUS_PORT 0x00004003L
1963 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
1964 #define MCI_SEQ_STATUS_MASTER 0x00004008L
1965 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
1966 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
1968 #define MCI_SEQ_SET_TEMPO 0x00010000L
1969 #define MCI_SEQ_SET_PORT 0x00020000L
1970 #define MCI_SEQ_SET_SLAVE 0x00040000L
1971 #define MCI_SEQ_SET_MASTER 0x00080000L
1972 #define MCI_SEQ_SET_OFFSET 0x01000000L
1974 typedef struct {
1975 DWORD dwCallback;
1976 DWORD dwTimeFormat;
1977 DWORD dwAudio;
1978 DWORD dwTempo;
1979 DWORD dwPort;
1980 DWORD dwSlave;
1981 DWORD dwMaster;
1982 DWORD dwOffset;
1983 } MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
1985 #define MCI_ANIM_OPEN_WS 0x00010000L
1986 #define MCI_ANIM_OPEN_PARENT 0x00020000L
1987 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
1989 #define MCI_ANIM_PLAY_SPEED 0x00010000L
1990 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
1991 #define MCI_ANIM_PLAY_FAST 0x00040000L
1992 #define MCI_ANIM_PLAY_SLOW 0x00080000L
1993 #define MCI_ANIM_PLAY_SCAN 0x00100000L
1995 #define MCI_ANIM_STEP_REVERSE 0x00010000L
1996 #define MCI_ANIM_STEP_FRAMES 0x00020000L
1998 #define MCI_ANIM_STATUS_SPEED 0x00004001L
1999 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2000 #define MCI_ANIM_STATUS_HWND 0x00004003L
2001 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2002 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2004 #define MCI_ANIM_INFO_TEXT 0x00010000L
2006 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2007 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2008 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2009 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2010 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2011 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2012 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2014 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2015 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2017 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2018 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2019 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2020 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2021 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2023 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2025 #define MCI_ANIM_RECT 0x00010000L
2026 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2027 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2029 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2030 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2032 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2034 typedef struct {
2035 DWORD dwCallback;
2036 MCIDEVICEID wDeviceID;
2037 LPCSTR lpstrDeviceType;
2038 LPCSTR lpstrElementName;
2039 LPCSTR lpstrAlias;
2040 DWORD dwStyle;
2041 HWND hWndParent;
2042 } MCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA;
2044 typedef struct {
2045 DWORD dwCallback;
2046 MCIDEVICEID wDeviceID;
2047 LPCWSTR lpstrDeviceType;
2048 LPCWSTR lpstrElementName;
2049 LPCWSTR lpstrAlias;
2050 DWORD dwStyle;
2051 HWND hWndParent;
2052 } MCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW;
2054 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
2055 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
2057 typedef struct {
2058 DWORD dwCallback;
2059 DWORD dwFrom;
2060 DWORD dwTo;
2061 DWORD dwSpeed;
2062 } MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
2064 typedef struct {
2065 DWORD dwCallback;
2066 DWORD dwFrames;
2067 } MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
2069 typedef struct {
2070 DWORD dwCallback;
2071 HWND hWnd;
2072 UINT nCmdShow;
2073 LPCSTR lpstrText;
2074 } MCI_ANIM_WINDOW_PARMSA, *LPMCI_ANIM_WINDOW_PARMSA;
2076 typedef struct {
2077 DWORD dwCallback;
2078 HWND hWnd;
2079 UINT nCmdShow;
2080 LPCWSTR lpstrText;
2081 } MCI_ANIM_WINDOW_PARMSW, *LPMCI_ANIM_WINDOW_PARMSW;
2083 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
2084 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
2086 typedef struct {
2087 DWORD dwCallback;
2088 #ifdef MCI_USE_OFFEXT
2089 POINT ptOffset;
2090 POINT ptExtent;
2091 #else /* ifdef MCI_USE_OFFEXT */
2092 RECT rc;
2093 #endif /* ifdef MCI_USE_OFFEXT */
2094 } MCI_ANIM_RECT_PARMS, *LPMCI_ANIM_RECT_PARMS;
2097 typedef struct {
2098 DWORD dwCallback;
2099 RECT rc;
2100 HDC hDC;
2101 } MCI_ANIM_UPDATE_PARMS, *LPMCI_ANIM_UPDATE_PARMS;
2104 #define MCI_OVLY_OPEN_WS 0x00010000L
2105 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2107 #define MCI_OVLY_STATUS_HWND 0x00004001L
2108 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2110 #define MCI_OVLY_INFO_TEXT 0x00010000L
2112 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2113 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2114 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2116 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2117 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2118 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2119 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2120 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2122 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2124 #define MCI_OVLY_RECT 0x00010000L
2125 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2126 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2127 #define MCI_OVLY_PUT_FRAME 0x00080000L
2128 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2130 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2131 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2132 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2133 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2135 typedef struct {
2136 DWORD dwCallback;
2137 MCIDEVICEID wDeviceID;
2138 LPCSTR lpstrDeviceType;
2139 LPCSTR lpstrElementName;
2140 LPCSTR lpstrAlias;
2141 DWORD dwStyle;
2142 HWND hWndParent;
2143 } MCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA;
2145 typedef struct {
2146 DWORD dwCallback;
2147 MCIDEVICEID wDeviceID;
2148 LPCWSTR lpstrDeviceType;
2149 LPCWSTR lpstrElementName;
2150 LPCWSTR lpstrAlias;
2151 DWORD dwStyle;
2152 HWND hWndParent;
2153 } MCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW;
2155 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
2156 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
2158 typedef struct {
2159 DWORD dwCallback;
2160 HWND hWnd;
2161 UINT nCmdShow;
2162 LPCSTR lpstrText;
2163 } MCI_OVLY_WINDOW_PARMSA, *LPMCI_OVLY_WINDOW_PARMSA;
2165 typedef struct {
2166 DWORD dwCallback;
2167 HWND hWnd;
2168 UINT nCmdShow;
2169 LPCWSTR lpstrText;
2170 } MCI_OVLY_WINDOW_PARMSW, *LPMCI_OVLY_WINDOW_PARMSW;
2172 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
2173 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
2175 typedef struct {
2176 DWORD dwCallback;
2177 #ifdef MCI_USE_OFFEXT
2178 POINT ptOffset;
2179 POINT ptExtent;
2180 #else /* ifdef MCI_USE_OFFEXT */
2181 RECT rc;
2182 #endif /* ifdef MCI_USE_OFFEXT */
2183 } MCI_OVLY_RECT_PARMS, *LPMCI_OVLY_RECT_PARMS;
2186 typedef struct {
2187 DWORD dwCallback;
2188 LPCSTR lpfilename;
2189 RECT rc;
2190 } MCI_OVLY_SAVE_PARMSA, *LPMCI_OVLY_SAVE_PARMSA;
2192 typedef struct {
2193 DWORD dwCallback;
2194 LPCWSTR lpfilename;
2195 RECT rc;
2196 } MCI_OVLY_SAVE_PARMSW, *LPMCI_OVLY_SAVE_PARMSW;
2198 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
2199 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
2201 typedef struct {
2202 DWORD dwCallback;
2203 LPCSTR lpfilename;
2204 RECT rc;
2205 } MCI_OVLY_LOAD_PARMSA, *LPMCI_OVLY_LOAD_PARMSA;
2207 typedef struct {
2208 DWORD dwCallback;
2209 LPCWSTR lpfilename;
2210 RECT rc;
2211 } MCI_OVLY_LOAD_PARMSW, *LPMCI_OVLY_LOAD_PARMSW;
2213 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
2214 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
2216 #include <poppack.h>
2218 #ifdef __cplusplus
2220 #endif
2222 #endif /* __WINE_MMSYSTEM_H */