Release 20040914.
[wine/gsoc-2012-control.git] / include / mmsystem.h
blobe80271b25015c5cb0cc2d18b34ec501adbaf6b4d
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_PTR,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_PTR,HDRVR,UINT,LPARAM,LPARAM);
218 /* this sounds odd, but it's the way it is. OpenDriverA even disappeared
219 * from latest SDK
221 HDRVR WINAPI OpenDriverA(LPCSTR szDriverName, LPCSTR szSectionName,
222 LPARAM lParam2);
223 HDRVR WINAPI OpenDriver(LPCWSTR szDriverName, LPCWSTR szSectionName,
224 LPARAM lParam2);
225 LRESULT WINAPI CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2);
226 LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message,
227 LPARAM lParam1, LPARAM lParam2);
228 HMODULE WINAPI GetDriverModuleHandle(HDRVR hDriver);
230 DWORD WINAPI GetDriverFlags(HDRVR hDriver);
232 typedef void (CALLBACK *LPDRVCALLBACK)(HDRVR,UINT,DWORD_PTR,DWORD_PTR,DWORD_PTR);
234 #define MM_MICROSOFT 1 /* Microsoft Corp. */
236 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
237 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
239 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
240 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
241 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
242 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
243 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
245 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
247 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
248 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
250 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
253 UINT WINAPI mmsystemGetVersion(void);
254 BOOL WINAPI sndPlaySoundA(LPCSTR lpszSound, UINT fuSound);
255 BOOL WINAPI sndPlaySoundW(LPCWSTR lpszSound, UINT fuSound);
256 #define sndPlaySound WINELIB_NAME_AW(sndPlaySound)
257 BOOL WINAPI PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
258 BOOL WINAPI PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound);
259 #define PlaySound WINELIB_NAME_AW(PlaySound)
261 #define SND_SYNC 0x0000 /* play synchronously (default) */
262 #define SND_ASYNC 0x0001 /* play asynchronously */
263 #define SND_NODEFAULT 0x0002 /* don't use default sound */
264 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
265 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
266 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
268 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
269 #define SND_ALIAS 0x00010000L /* name is a registry alias */
270 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
271 #define SND_FILENAME 0x00020000L /* name is file name */
272 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
273 #define SND_PURGE 0x00000040L /* purge all sounds */
274 #define SND_APPLICATION 0x00000080L /* look for application specific association */
276 /* waveform audio error return values */
277 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
278 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
279 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
280 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
281 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
283 typedef LPDRVCALLBACK LPWAVECALLBACK;
285 #define WOM_OPEN MM_WOM_OPEN
286 #define WOM_CLOSE MM_WOM_CLOSE
287 #define WOM_DONE MM_WOM_DONE
288 #define WIM_OPEN MM_WIM_OPEN
289 #define WIM_CLOSE MM_WIM_CLOSE
290 #define WIM_DATA MM_WIM_DATA
292 #define WAVE_MAPPER (-1)
294 #define WAVE_FORMAT_QUERY 0x0001
295 #define WAVE_ALLOWSYNC 0x0002
296 #define WAVE_MAPPED 0x0004
297 #define WAVE_FORMAT_DIRECT 0x0008
298 #define WAVE_FORMAT_DIRECT_QUERY (WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT)
300 typedef struct wavehdr_tag {
301 LPSTR lpData;
302 DWORD dwBufferLength;
303 DWORD dwBytesRecorded;
304 DWORD dwUser;
305 DWORD dwFlags;
306 DWORD dwLoops;
307 struct wavehdr_tag *lpNext;
308 DWORD reserved;
309 } WAVEHDR, *PWAVEHDR, *NPWAVEHDR, *LPWAVEHDR;
311 #define WHDR_DONE 0x00000001
312 #define WHDR_PREPARED 0x00000002
313 #define WHDR_BEGINLOOP 0x00000004
314 #define WHDR_ENDLOOP 0x00000008
315 #define WHDR_INQUEUE 0x00000010
317 typedef struct tagWAVEOUTCAPSA {
318 WORD wMid;
319 WORD wPid;
320 MMVERSION vDriverVersion;
321 CHAR szPname[MAXPNAMELEN];
322 DWORD dwFormats;
323 WORD wChannels;
324 WORD wReserved1;
325 DWORD dwSupport;
326 } WAVEOUTCAPSA, *LPWAVEOUTCAPSA;
328 typedef struct tagWAVEOUTCAPSW {
329 WORD wMid;
330 WORD wPid;
331 MMVERSION vDriverVersion;
332 WCHAR szPname[MAXPNAMELEN];
333 DWORD dwFormats;
334 WORD wChannels;
335 WORD wReserved1;
336 DWORD dwSupport;
337 } WAVEOUTCAPSW, *LPWAVEOUTCAPSW;
338 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS)
339 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS)
341 typedef struct tagWAVEOUTCAPS2A {
342 WORD wMid;
343 WORD wPid;
344 MMVERSION vDriverVersion;
345 CHAR szPname[MAXPNAMELEN];
346 DWORD dwFormats;
347 WORD wChannels;
348 WORD wReserved1;
349 DWORD dwSupport;
350 GUID ManufacturerGuid;
351 GUID ProductGuid;
352 GUID NameGuid;
353 } WAVEOUTCAPS2A, *LPWAVEOUTCAPS2A;
355 typedef struct tagWAVEOUTCAPS2W {
356 WORD wMid;
357 WORD wPid;
358 MMVERSION vDriverVersion;
359 WCHAR szPname[MAXPNAMELEN];
360 DWORD dwFormats;
361 WORD wChannels;
362 WORD wReserved1;
363 DWORD dwSupport;
364 GUID ManufacturerGuid;
365 GUID ProductGuid;
366 GUID NameGuid;
367 } WAVEOUTCAPS2W, *LPWAVEOUTCAPS2W;
368 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS2)
369 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS2)
371 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
372 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
373 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
374 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
375 #define WAVECAPS_SYNC 0x0010 /* driver is synchrounous and playing is blocking */
376 #define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
377 #define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
379 typedef struct tagWAVEINCAPSA {
380 WORD wMid;
381 WORD wPid;
382 MMVERSION vDriverVersion;
383 CHAR szPname[MAXPNAMELEN];
384 DWORD dwFormats;
385 WORD wChannels;
386 WORD wReserved1;
387 } WAVEINCAPSA, *LPWAVEINCAPSA;
388 typedef struct tagWAVEINCAPSW {
389 WORD wMid;
390 WORD wPid;
391 MMVERSION vDriverVersion;
392 WCHAR szPname[MAXPNAMELEN];
393 DWORD dwFormats;
394 WORD wChannels;
395 WORD wReserved1;
396 } WAVEINCAPSW, *LPWAVEINCAPSW;
397 DECL_WINELIB_TYPE_AW(WAVEINCAPS)
398 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS)
400 typedef struct tagWAVEINCAPS2A {
401 WORD wMid;
402 WORD wPid;
403 MMVERSION vDriverVersion;
404 CHAR szPname[MAXPNAMELEN];
405 DWORD dwFormats;
406 WORD wChannels;
407 WORD wReserved1;
408 GUID ManufacturerGuid;
409 GUID ProductGuid;
410 GUID NameGuid;
411 } WAVEINCAPS2A, *LPWAVEINCAPS2A;
412 typedef struct tagWAVEINCAPS2W {
413 WORD wMid;
414 WORD wPid;
415 MMVERSION vDriverVersion;
416 WCHAR szPname[MAXPNAMELEN];
417 DWORD dwFormats;
418 WORD wChannels;
419 WORD wReserved1;
420 GUID ManufacturerGuid;
421 GUID ProductGuid;
422 GUID NameGuid;
423 } WAVEINCAPS2W, *LPWAVEINCAPS2W;
424 DECL_WINELIB_TYPE_AW(WAVEINCAPS2)
425 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS2)
427 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
428 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
429 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
430 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
431 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
432 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
433 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
434 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
435 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
436 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
437 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
438 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
439 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
440 #define WAVE_FORMAT_48M08 0x00001000 /* 48 kHz, Mono, 8-bit */
441 #define WAVE_FORMAT_48S08 0x00002000 /* 48 kHz, Stereo, 8-bit */
442 #define WAVE_FORMAT_48M16 0x00004000 /* 48 kHz, Mono, 16-bit */
443 #define WAVE_FORMAT_48S16 0x00008000 /* 48 kHz, Stereo, 16-bit */
444 #define WAVE_FORMAT_96M08 0x00010000 /* 96 kHz, Mono, 8-bit */
445 #define WAVE_FORMAT_96S08 0x00020000 /* 96 kHz, Stereo, 8-bit */
446 #define WAVE_FORMAT_96M16 0x00040000 /* 96 kHz, Mono, 16-bit */
447 #define WAVE_FORMAT_96S16 0x00080000 /* 96 kHz, Stereo, 16-bit */
449 /* General format structure common to all formats, same for Win16 and Win32 */
450 typedef struct {
451 WORD wFormatTag;
452 WORD nChannels;
453 DWORD nSamplesPerSec;
454 DWORD nAvgBytesPerSec;
455 WORD nBlockAlign;
456 } WAVEFORMAT, *LPWAVEFORMAT;
458 #define WAVE_FORMAT_PCM 1
460 typedef struct {
461 WAVEFORMAT wf;
462 WORD wBitsPerSample;
463 } PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
465 #ifndef _WAVEFORMATEX_
466 #define _WAVEFORMATEX_
467 /* dito same for Win16 / Win32 */
468 typedef struct {
469 WORD wFormatTag;
470 WORD nChannels;
471 DWORD nSamplesPerSec;
472 DWORD nAvgBytesPerSec;
473 WORD nBlockAlign;
474 WORD wBitsPerSample;
475 WORD cbSize;
476 } WAVEFORMATEX, *LPWAVEFORMATEX, *NPWAVEFORMATEX, *PWAVEFORMATEX;
477 #endif
479 UINT WINAPI waveOutGetNumDevs(void);
480 UINT WINAPI waveOutGetDevCapsA(UINT_PTR,LPWAVEOUTCAPSA,UINT);
481 UINT WINAPI waveOutGetDevCapsW(UINT_PTR,LPWAVEOUTCAPSW,UINT);
482 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
483 UINT WINAPI waveOutGetVolume(HWAVEOUT,DWORD*);
484 UINT WINAPI waveOutSetVolume(HWAVEOUT,DWORD);
485 UINT WINAPI waveOutGetErrorTextA(UINT,LPSTR,UINT);
486 UINT WINAPI waveOutGetErrorTextW(UINT,LPWSTR,UINT);
487 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
488 UINT WINAPI waveOutOpen(HWAVEOUT*,UINT,const LPWAVEFORMATEX,DWORD_PTR,DWORD_PTR,DWORD);
489 UINT WINAPI waveOutClose(HWAVEOUT);
490 UINT WINAPI waveOutPrepareHeader(HWAVEOUT,WAVEHDR*,UINT);
491 UINT WINAPI waveOutUnprepareHeader(HWAVEOUT,WAVEHDR*,UINT);
492 UINT WINAPI waveOutWrite(HWAVEOUT,WAVEHDR*,UINT);
493 UINT WINAPI waveOutPause(HWAVEOUT);
494 UINT WINAPI waveOutRestart(HWAVEOUT);
495 UINT WINAPI waveOutReset(HWAVEOUT);
496 UINT WINAPI waveOutBreakLoop(HWAVEOUT);
497 UINT WINAPI waveOutGetPosition(HWAVEOUT,LPMMTIME,UINT);
498 UINT WINAPI waveOutGetPitch(HWAVEOUT,DWORD*);
499 UINT WINAPI waveOutSetPitch(HWAVEOUT,DWORD);
500 UINT WINAPI waveOutGetPlaybackRate(HWAVEOUT,DWORD*);
501 UINT WINAPI waveOutSetPlaybackRate(HWAVEOUT,DWORD);
502 UINT WINAPI waveOutGetID(HWAVEOUT,UINT*);
503 UINT WINAPI waveOutMessage(HWAVEOUT,UINT,DWORD_PTR,DWORD_PTR);
504 UINT WINAPI waveInGetNumDevs(void);
505 UINT WINAPI waveInGetDevCapsA(UINT_PTR,LPWAVEINCAPSA,UINT);
506 UINT WINAPI waveInGetDevCapsW(UINT_PTR,LPWAVEINCAPSW,UINT);
507 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
508 UINT WINAPI waveInGetErrorTextA(UINT,LPSTR,UINT);
509 UINT WINAPI waveInGetErrorTextW(UINT,LPWSTR,UINT);
510 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
511 UINT WINAPI waveInOpen(HWAVEIN*,UINT,const LPWAVEFORMATEX,DWORD_PTR,DWORD_PTR,DWORD);
512 UINT WINAPI waveInClose(HWAVEIN);
513 UINT WINAPI waveInPrepareHeader(HWAVEIN,WAVEHDR*,UINT);
514 UINT WINAPI waveInUnprepareHeader(HWAVEIN,WAVEHDR*,UINT);
515 UINT WINAPI waveInAddBuffer(HWAVEIN,WAVEHDR*,UINT);
516 UINT WINAPI waveInStart(HWAVEIN);
517 UINT WINAPI waveInStop(HWAVEIN);
518 UINT WINAPI waveInReset(HWAVEIN);
519 UINT WINAPI waveInGetPosition(HWAVEIN,LPMMTIME,UINT);
520 UINT WINAPI waveInGetID(HWAVEIN,UINT*);
521 UINT WINAPI waveInMessage(HWAVEIN,UINT,DWORD_PTR,DWORD_PTR);
523 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
524 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
525 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
526 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
527 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
528 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
529 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
531 typedef LPDRVCALLBACK LPMIDICALLBACK;
532 #define MIDIPATCHSIZE 128
533 typedef WORD PATCHARRAY[MIDIPATCHSIZE];
534 typedef WORD *LPPATCHARRAY;
535 typedef WORD KEYARRAY[MIDIPATCHSIZE];
536 typedef WORD *LPKEYARRAY;
538 #define MIM_OPEN MM_MIM_OPEN
539 #define MIM_CLOSE MM_MIM_CLOSE
540 #define MIM_DATA MM_MIM_DATA
541 #define MIM_LONGDATA MM_MIM_LONGDATA
542 #define MIM_ERROR MM_MIM_ERROR
543 #define MIM_LONGERROR MM_MIM_LONGERROR
544 #define MIM_MOREDATA MM_MIM_MOREDATA
546 #define MOM_OPEN MM_MOM_OPEN
547 #define MOM_CLOSE MM_MOM_CLOSE
548 #define MOM_DONE MM_MOM_DONE
549 #define MOM_POSITIONCB MM_MOM_POSITIONCB
551 /* device ID for MIDI mapper */
553 #define MIDIMAPPER (-1)
554 #define MIDI_MAPPER (-1)
556 /* Only on Win95 and up */
557 #define MIDI_IO_STATUS 0x00000020L
559 /* flags for wFlags parm of
560 midiOutCachePatches(),
561 midiOutCacheDrumPatches() */
562 #define MIDI_CACHE_ALL 1
563 #define MIDI_CACHE_BESTFIT 2
564 #define MIDI_CACHE_QUERY 3
565 #define MIDI_UNCACHE 4
567 typedef struct tagMIDIOUTCAPSA {
568 WORD wMid;
569 WORD wPid;
570 MMVERSION vDriverVersion;
571 CHAR szPname[MAXPNAMELEN];
572 WORD wTechnology;
573 WORD wVoices;
574 WORD wNotes;
575 WORD wChannelMask;
576 DWORD dwSupport;
577 } MIDIOUTCAPSA, *LPMIDIOUTCAPSA;
579 typedef struct tagMIDIOUTCAPSW {
580 WORD wMid;
581 WORD wPid;
582 MMVERSION vDriverVersion;
583 WCHAR szPname[MAXPNAMELEN];
584 WORD wTechnology;
585 WORD wVoices;
586 WORD wNotes;
587 WORD wChannelMask;
588 DWORD dwSupport;
589 } MIDIOUTCAPSW, *LPMIDIOUTCAPSW;
591 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS)
592 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS)
594 typedef struct tagMIDIOUTCAPS2A {
595 WORD wMid;
596 WORD wPid;
597 MMVERSION vDriverVersion;
598 CHAR szPname[MAXPNAMELEN];
599 WORD wTechnology;
600 WORD wVoices;
601 WORD wNotes;
602 WORD wChannelMask;
603 DWORD dwSupport;
604 GUID ManufacturerGuid;
605 GUID ProductGuid;
606 GUID NameGuid;
607 } MIDIOUTCAPS2A, *LPMIDIOUTCAPS2A;
609 typedef struct tagMIDIOUTCAPS2W {
610 WORD wMid;
611 WORD wPid;
612 MMVERSION vDriverVersion;
613 WCHAR szPname[MAXPNAMELEN];
614 WORD wTechnology;
615 WORD wVoices;
616 WORD wNotes;
617 WORD wChannelMask;
618 DWORD dwSupport;
619 GUID ManufacturerGuid;
620 GUID ProductGuid;
621 GUID NameGuid;
622 } MIDIOUTCAPS2W, *LPMIDIOUTCAPS2W;
624 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS2)
625 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS2)
627 #define MOD_MIDIPORT 1 /* output port */
628 #define MOD_SYNTH 2 /* generic internal synth */
629 #define MOD_SQSYNTH 3 /* square wave internal synth */
630 #define MOD_FMSYNTH 4 /* FM internal synth */
631 #define MOD_MAPPER 5 /* MIDI mapper */
633 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
634 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
635 #define MIDICAPS_CACHE 0x0004
636 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
638 typedef struct tagMIDIINCAPSA {
639 WORD wMid;
640 WORD wPid;
641 MMVERSION vDriverVersion;
642 CHAR szPname[MAXPNAMELEN];
643 DWORD dwSupport;
644 } MIDIINCAPSA, *LPMIDIINCAPSA;
646 typedef struct tagMIDIINCAPSW {
647 WORD wMid;
648 WORD wPid;
649 MMVERSION vDriverVersion;
650 WCHAR szPname[MAXPNAMELEN];
651 DWORD dwSupport;
652 } MIDIINCAPSW, *LPMIDIINCAPSW;
654 DECL_WINELIB_TYPE_AW(MIDIINCAPS)
655 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
657 typedef struct tagMIDIINCAPS2A {
658 WORD wMid;
659 WORD wPid;
660 MMVERSION vDriverVersion;
661 CHAR szPname[MAXPNAMELEN];
662 DWORD dwSupport;
663 GUID ManufacturerGuid;
664 GUID ProductGuid;
665 GUID NameGuid;
666 } MIDIINCAPS2A, *LPMIDIINCAPS2A;
668 typedef struct tagMIDIINCAPS2W {
669 WORD wMid;
670 WORD wPid;
671 MMVERSION vDriverVersion;
672 WCHAR szPname[MAXPNAMELEN];
673 DWORD dwSupport;
674 GUID ManufacturerGuid;
675 GUID ProductGuid;
676 GUID NameGuid;
677 } MIDIINCAPS2W, *LPMIDIINCAPS2W;
679 DECL_WINELIB_TYPE_AW(MIDIINCAPS2)
680 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS2)
682 /* It seems that Win32 has a slightly different structure than Win 16.
683 * sigh....
685 typedef struct midihdr_tag {
686 LPSTR lpData;
687 DWORD dwBufferLength;
688 DWORD dwBytesRecorded;
689 DWORD_PTR dwUser;
690 DWORD dwFlags;
691 struct midihdr_tag *lpNext;
692 DWORD reserved;
693 DWORD dwOffset;
694 DWORD_PTR dwReserved[8];
695 } MIDIHDR, *LPMIDIHDR;
697 #define MHDR_DONE 0x00000001 /* done bit */
698 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
699 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
700 #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
702 typedef struct {
703 DWORD cbStruct;
704 DWORD dwTempo;
705 } MIDIPROPTEMPO, *LPMIDIPROPTEMPO;
707 typedef struct {
708 DWORD cbStruct;
709 DWORD dwTimeDiv;
710 } MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV;
712 #define MIDIPROP_GET 0x40000000
713 #define MIDIPROP_SET 0x80000000
714 #define MIDIPROP_TEMPO 0x00000002
715 #define MIDIPROP_TIMEDIV 0x00000001
717 typedef struct {
718 DWORD dwDeltaTime; /* Time, in MIDI ticks, between the previous
719 * event and the current event. */
720 DWORD dwStreamID; /* Reserved; must be zero. */
721 DWORD dwEvent; /* event => see MEVT_XXX macros */
722 DWORD dwParms[1]; /* extra pmts to dwEvent if F_LONG is set */
723 } MIDIEVENT, *LPMIDIEVENT;
725 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
726 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
728 #define MEVT_F_CALLBACK 0x40000000l
729 #define MEVT_F_LONG 0x80000000l
730 #define MEVT_F_SHORT 0x00000000l
731 #define MEVT_COMMENT ((BYTE)0x82)
732 #define MEVT_LONGMSG ((BYTE)0x80)
733 #define MEVT_NOP ((BYTE)0x02)
734 #define MEVT_SHORTMSG ((BYTE)0x00)
735 #define MEVT_TEMPO ((BYTE)0x01)
736 #define MEVT_VERSION ((BYTE)0x84)
738 UINT WINAPI midiOutGetNumDevs(void);
739 UINT WINAPI midiOutGetDevCapsA(UINT_PTR,LPMIDIOUTCAPSA,UINT);
740 UINT WINAPI midiOutGetDevCapsW(UINT_PTR,LPMIDIOUTCAPSW,UINT);
741 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
742 UINT WINAPI midiOutGetVolume(HMIDIOUT,DWORD*);
743 UINT WINAPI midiOutSetVolume(HMIDIOUT,DWORD);
744 UINT WINAPI midiOutGetErrorTextA(UINT,LPSTR,UINT);
745 UINT WINAPI midiOutGetErrorTextW(UINT,LPWSTR,UINT);
746 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
747 UINT WINAPI midiOutOpen(LPHMIDIOUT,UINT,DWORD_PTR,DWORD_PTR,DWORD);
748 UINT WINAPI midiOutClose(HMIDIOUT);
749 UINT WINAPI midiOutPrepareHeader(HMIDIOUT,MIDIHDR*,UINT);
750 UINT WINAPI midiOutUnprepareHeader(HMIDIOUT,MIDIHDR*,UINT);
751 UINT WINAPI midiOutShortMsg(HMIDIOUT,DWORD);
752 UINT WINAPI midiOutLongMsg(HMIDIOUT,MIDIHDR*,UINT);
753 UINT WINAPI midiOutReset(HMIDIOUT);
754 UINT WINAPI midiOutCachePatches(HMIDIOUT,UINT,WORD*,UINT);
755 UINT WINAPI midiOutCacheDrumPatches(HMIDIOUT,UINT,WORD*,UINT);
756 UINT WINAPI midiOutGetID(HMIDIOUT,UINT*);
757 UINT WINAPI midiOutMessage(HMIDIOUT,UINT,DWORD_PTR,DWORD_PTR);
759 UINT WINAPI midiInGetNumDevs(void);
760 UINT WINAPI midiInGetDevCapsA(UINT_PTR,LPMIDIINCAPSA,UINT);
761 UINT WINAPI midiInGetDevCapsW(UINT_PTR,LPMIDIINCAPSW,UINT);
762 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
763 UINT WINAPI midiInGetErrorTextA(UINT,LPSTR,UINT);
764 UINT WINAPI midiInGetErrorTextW(UINT,LPWSTR,UINT);
765 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
766 UINT WINAPI midiInOpen(LPHMIDIIN,UINT,DWORD_PTR,DWORD_PTR,DWORD);
767 UINT WINAPI midiInClose(HMIDIIN);
768 UINT WINAPI midiInPrepareHeader(HMIDIIN,MIDIHDR*,UINT);
769 UINT WINAPI midiInUnprepareHeader(HMIDIIN,MIDIHDR*,UINT);
770 UINT WINAPI midiInAddBuffer(HMIDIIN,MIDIHDR*,UINT);
771 UINT WINAPI midiInStart(HMIDIIN);
772 UINT WINAPI midiInStop(HMIDIIN);
773 UINT WINAPI midiInReset(HMIDIIN);
774 UINT WINAPI midiInGetID(HMIDIIN,UINT*);
775 UINT WINAPI midiInMessage(HMIDIIN,UINT,DWORD_PTR,DWORD_PTR);
776 MMRESULT WINAPI midiStreamClose(HMIDISTRM hms);
777 MMRESULT WINAPI midiStreamOpen(LPHMIDISTRM,LPUINT,DWORD,DWORD_PTR,DWORD_PTR,DWORD);
778 MMRESULT WINAPI midiStreamOut(HMIDISTRM hms, LPMIDIHDR lpMidiHdr, UINT cbMidiHdr);
779 MMRESULT WINAPI midiStreamPause(HMIDISTRM hms);
780 MMRESULT WINAPI midiStreamPosition(HMIDISTRM hms, LPMMTIME lpmmt, UINT cbmmt);
781 MMRESULT WINAPI midiStreamProperty(HMIDISTRM hms, LPBYTE lpPropData, DWORD dwProperty);
782 MMRESULT WINAPI midiStreamRestart(HMIDISTRM hms);
783 MMRESULT WINAPI midiStreamStop(HMIDISTRM hms);
785 #define AUX_MAPPER (-1)
787 typedef struct tagAUXCAPSA {
788 WORD wMid;
789 WORD wPid;
790 MMVERSION vDriverVersion;
791 CHAR szPname[MAXPNAMELEN];
792 WORD wTechnology;
793 WORD wReserved1;
794 DWORD dwSupport;
795 } AUXCAPSA, *LPAUXCAPSA;
797 typedef struct tagAUXCAPSW {
798 WORD wMid;
799 WORD wPid;
800 MMVERSION vDriverVersion;
801 WCHAR szPname[MAXPNAMELEN];
802 WORD wTechnology;
803 WORD wReserved1;
804 DWORD dwSupport;
805 } AUXCAPSW, *LPAUXCAPSW;
807 DECL_WINELIB_TYPE_AW(AUXCAPS)
808 DECL_WINELIB_TYPE_AW(LPAUXCAPS)
810 typedef struct tagAUXCAPS2A {
811 WORD wMid;
812 WORD wPid;
813 MMVERSION vDriverVersion;
814 CHAR szPname[MAXPNAMELEN];
815 WORD wTechnology;
816 WORD wReserved1;
817 DWORD dwSupport;
818 GUID ManufacturerGuid;
819 GUID ProductGuid;
820 GUID NameGuid;
821 } AUXCAPS2A, *LPAUXCAPS2A;
823 typedef struct tagAUXCAPS2W {
824 WORD wMid;
825 WORD wPid;
826 MMVERSION vDriverVersion;
827 WCHAR szPname[MAXPNAMELEN];
828 WORD wTechnology;
829 WORD wReserved1;
830 DWORD dwSupport;
831 GUID ManufacturerGuid;
832 GUID ProductGuid;
833 GUID NameGuid;
834 } AUXCAPS2W, *LPAUXCAPS2W;
836 DECL_WINELIB_TYPE_AW(AUXCAPS2)
837 DECL_WINELIB_TYPE_AW(LPAUXCAPS2)
839 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
840 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
842 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
843 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
845 UINT WINAPI auxGetNumDevs(void);
846 UINT WINAPI auxGetDevCapsA(UINT_PTR,LPAUXCAPSA,UINT);
847 UINT WINAPI auxGetDevCapsW(UINT_PTR,LPAUXCAPSW,UINT);
848 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
849 UINT WINAPI auxSetVolume(UINT,DWORD);
850 UINT WINAPI auxGetVolume(UINT,LPDWORD);
851 UINT WINAPI auxOutMessage(UINT,UINT,DWORD_PTR,DWORD_PTR);
853 #define TIMERR_NOERROR (0) /* no error */
854 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
855 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
857 typedef void (CALLBACK *LPTIMECALLBACK)(UINT,UINT,DWORD_PTR,DWORD_PTR,DWORD_PTR);
859 #define TIME_ONESHOT 0x0000 /* program timer for single event */
860 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
861 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
862 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
863 #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
864 #define TIME_KILL_SYNCHRONOUS 0x0100
866 typedef struct timecaps_tag {
867 UINT wPeriodMin;
868 UINT wPeriodMax;
869 } TIMECAPS, *LPTIMECAPS;
872 MMRESULT WINAPI timeGetSystemTime(LPMMTIME,UINT);
873 DWORD WINAPI timeGetTime(void); /* same for win32/win16 */
874 MMRESULT WINAPI timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD_PTR,UINT);
875 MMRESULT WINAPI timeKillEvent(UINT);
876 MMRESULT WINAPI timeGetDevCaps(LPTIMECAPS,UINT);
877 MMRESULT WINAPI timeBeginPeriod(UINT);
878 MMRESULT WINAPI timeEndPeriod(UINT);
880 #define JOYERR_NOERROR (0) /* no error */
881 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
882 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
883 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
885 /* JOYINFO, JOYINFOEX, MM_JOY* */
886 #define JOY_BUTTON1 0x0001
887 #define JOY_BUTTON2 0x0002
888 #define JOY_BUTTON3 0x0004
889 #define JOY_BUTTON4 0x0008
890 #define JOY_BUTTON1CHG 0x0100
891 #define JOY_BUTTON2CHG 0x0200
892 #define JOY_BUTTON3CHG 0x0400
893 #define JOY_BUTTON4CHG 0x0800
895 #define JOYSTICKID1 0
896 #define JOYSTICKID2 1
898 /* JOYCAPS.wCaps */
899 #define JOYCAPS_HASZ 0x0001
900 #define JOYCAPS_HASR 0x0002
901 #define JOYCAPS_HASU 0x0004
902 #define JOYCAPS_HASV 0x0008
903 #define JOYCAPS_HASPOV 0x0010
904 #define JOYCAPS_POV4DIR 0x0020
905 #define JOYCAPS_POVCTS 0x0040
907 /* JOYINFOEX stuff */
908 #define JOY_POVCENTERED (WORD) -1
909 #define JOY_POVFORWARD 0
910 #define JOY_POVRIGHT 9000
911 #define JOY_POVBACKWARD 18000
912 #define JOY_POVLEFT 27000
914 #define JOY_RETURNX 0x00000001
915 #define JOY_RETURNY 0x00000002
916 #define JOY_RETURNZ 0x00000004
917 #define JOY_RETURNR 0x00000008
918 #define JOY_RETURNU 0x00000010
919 #define JOY_RETURNV 0x00000020
920 #define JOY_RETURNPOV 0x00000040
921 #define JOY_RETURNBUTTONS 0x00000080
922 #define JOY_RETURNRAWDATA 0x00000100
923 #define JOY_RETURNPOVCTS 0x00000200
924 #define JOY_RETURNCENTERED 0x00000400
925 #define JOY_USEDEADZONE 0x00000800
926 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
927 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
928 JOY_RETURNPOV | JOY_RETURNBUTTONS)
929 #define JOY_CAL_READALWAYS 0x00010000
930 #define JOY_CAL_READXYONLY 0x00020000
931 #define JOY_CAL_READ3 0x00040000
932 #define JOY_CAL_READ4 0x00080000
933 #define JOY_CAL_READXONLY 0x00100000
934 #define JOY_CAL_READYONLY 0x00200000
935 #define JOY_CAL_READ5 0x00400000
936 #define JOY_CAL_READ6 0x00800000
937 #define JOY_CAL_READZONLY 0x01000000
938 #define JOY_CAL_READRONLY 0x02000000
939 #define JOY_CAL_READUONLY 0x04000000
940 #define JOY_CAL_READVONLY 0x08000000
942 typedef struct tagJOYCAPSA {
943 WORD wMid;
944 WORD wPid;
945 CHAR szPname[MAXPNAMELEN];
946 UINT wXmin;
947 UINT wXmax;
948 UINT wYmin;
949 UINT wYmax;
950 UINT wZmin;
951 UINT wZmax;
952 UINT wNumButtons;
953 UINT wPeriodMin;
954 UINT wPeriodMax;
955 UINT wRmin;
956 UINT wRmax;
957 UINT wUmin;
958 UINT wUmax;
959 UINT wVmin;
960 UINT wVmax;
961 UINT wCaps;
962 UINT wMaxAxes;
963 UINT wNumAxes;
964 UINT wMaxButtons;
965 CHAR szRegKey[MAXPNAMELEN];
966 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
967 } JOYCAPSA, *LPJOYCAPSA;
969 typedef struct tagJOYCAPSW {
970 WORD wMid;
971 WORD wPid;
972 WCHAR szPname[MAXPNAMELEN];
973 UINT wXmin;
974 UINT wXmax;
975 UINT wYmin;
976 UINT wYmax;
977 UINT wZmin;
978 UINT wZmax;
979 UINT wNumButtons;
980 UINT wPeriodMin;
981 UINT wPeriodMax;
982 UINT wRmin;
983 UINT wRmax;
984 UINT wUmin;
985 UINT wUmax;
986 UINT wVmin;
987 UINT wVmax;
988 UINT wCaps;
989 UINT wMaxAxes;
990 UINT wNumAxes;
991 UINT wMaxButtons;
992 WCHAR szRegKey[MAXPNAMELEN];
993 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
994 } JOYCAPSW, *LPJOYCAPSW;
995 DECL_WINELIB_TYPE_AW(JOYCAPS)
996 DECL_WINELIB_TYPE_AW(LPJOYCAPS)
998 typedef struct tagJOYCAPS2A {
999 WORD wMid;
1000 WORD wPid;
1001 CHAR szPname[MAXPNAMELEN];
1002 UINT wXmin;
1003 UINT wXmax;
1004 UINT wYmin;
1005 UINT wYmax;
1006 UINT wZmin;
1007 UINT wZmax;
1008 UINT wNumButtons;
1009 UINT wPeriodMin;
1010 UINT wPeriodMax;
1011 UINT wRmin;
1012 UINT wRmax;
1013 UINT wUmin;
1014 UINT wUmax;
1015 UINT wVmin;
1016 UINT wVmax;
1017 UINT wCaps;
1018 UINT wMaxAxes;
1019 UINT wNumAxes;
1020 UINT wMaxButtons;
1021 CHAR szRegKey[MAXPNAMELEN];
1022 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
1023 GUID ManufacturerGuid;
1024 GUID ProductGuid;
1025 GUID NameGuid;
1026 } JOYCAPS2A, *LPJOYCAPS2A;
1028 typedef struct tagJOYCAPS2W {
1029 WORD wMid;
1030 WORD wPid;
1031 WCHAR szPname[MAXPNAMELEN];
1032 UINT wXmin;
1033 UINT wXmax;
1034 UINT wYmin;
1035 UINT wYmax;
1036 UINT wZmin;
1037 UINT wZmax;
1038 UINT wNumButtons;
1039 UINT wPeriodMin;
1040 UINT wPeriodMax;
1041 UINT wRmin;
1042 UINT wRmax;
1043 UINT wUmin;
1044 UINT wUmax;
1045 UINT wVmin;
1046 UINT wVmax;
1047 UINT wCaps;
1048 UINT wMaxAxes;
1049 UINT wNumAxes;
1050 UINT wMaxButtons;
1051 WCHAR szRegKey[MAXPNAMELEN];
1052 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
1053 GUID ManufacturerGuid;
1054 GUID ProductGuid;
1055 GUID NameGuid;
1056 } JOYCAPS2W, *LPJOYCAPS2W;
1057 DECL_WINELIB_TYPE_AW(JOYCAPS2)
1058 DECL_WINELIB_TYPE_AW(LPJOYCAPS2)
1060 typedef struct joyinfo_tag {
1061 UINT wXpos;
1062 UINT wYpos;
1063 UINT wZpos;
1064 UINT wButtons;
1065 } JOYINFO, *LPJOYINFO;
1067 typedef struct joyinfoex_tag {
1068 DWORD dwSize;
1069 DWORD dwFlags;
1070 DWORD dwXpos;
1071 DWORD dwYpos;
1072 DWORD dwZpos;
1073 DWORD dwRpos;
1074 DWORD dwUpos;
1075 DWORD dwVpos;
1076 DWORD dwButtons;
1077 DWORD dwButtonNumber;
1078 DWORD dwPOV;
1079 DWORD dwReserved1;
1080 DWORD dwReserved2;
1081 } JOYINFOEX,*LPJOYINFOEX;
1084 MMRESULT WINAPI joyGetDevCapsA(UINT_PTR,LPJOYCAPSA,UINT);
1085 MMRESULT WINAPI joyGetDevCapsW(UINT_PTR,LPJOYCAPSW,UINT);
1086 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
1087 UINT WINAPI joyGetNumDevs(void);
1088 MMRESULT WINAPI joyGetPos(UINT,LPJOYINFO);
1089 MMRESULT WINAPI joyGetPosEx(UINT,LPJOYINFOEX);
1090 MMRESULT WINAPI joyGetThreshold(UINT,UINT*);
1091 MMRESULT WINAPI joyReleaseCapture(UINT);
1092 MMRESULT WINAPI joySetCapture(HWND,UINT,UINT,BOOL);
1093 MMRESULT WINAPI joySetThreshold(UINT,UINT);
1095 #define MIXERR_BASE 1024
1096 #define MIXERR_INVALLINE (MIXERR_BASE + 0)
1097 #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
1098 #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
1099 #define MIXERR_LASTERROR (MIXERR_BASE + 2)
1101 typedef struct tagMIXERCAPSA {
1102 WORD wMid;
1103 WORD wPid;
1104 MMVERSION vDriverVersion;
1105 CHAR szPname[MAXPNAMELEN];
1106 DWORD fdwSupport;
1107 DWORD cDestinations;
1108 } MIXERCAPSA,*LPMIXERCAPSA;
1110 typedef struct tagMIXERCAPSW {
1111 WORD wMid;
1112 WORD wPid;
1113 MMVERSION vDriverVersion;
1114 WCHAR szPname[MAXPNAMELEN];
1115 DWORD fdwSupport;
1116 DWORD cDestinations;
1117 } MIXERCAPSW,*LPMIXERCAPSW;
1119 DECL_WINELIB_TYPE_AW(MIXERCAPS)
1120 DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
1122 typedef struct tagMIXERCAPS2A {
1123 WORD wMid;
1124 WORD wPid;
1125 MMVERSION vDriverVersion;
1126 CHAR szPname[MAXPNAMELEN];
1127 DWORD fdwSupport;
1128 DWORD cDestinations;
1129 GUID ManufacturerGuid;
1130 GUID ProductGuid;
1131 GUID NameGuid;
1132 } MIXERCAPS2A,*LPMIXERCAPS2A;
1134 typedef struct tagMIXERCAPS2W {
1135 WORD wMid;
1136 WORD wPid;
1137 MMVERSION vDriverVersion;
1138 WCHAR szPname[MAXPNAMELEN];
1139 DWORD fdwSupport;
1140 DWORD cDestinations;
1141 GUID ManufacturerGuid;
1142 GUID ProductGuid;
1143 GUID NameGuid;
1144 } MIXERCAPS2W,*LPMIXERCAPS2W;
1146 DECL_WINELIB_TYPE_AW(MIXERCAPS2)
1147 DECL_WINELIB_TYPE_AW(LPMIXERCAPS2)
1149 #define MIXER_SHORT_NAME_CHARS 16
1150 #define MIXER_LONG_NAME_CHARS 64
1152 /* MIXERLINE.fdwLine */
1153 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1154 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1155 #define MIXERLINE_LINEF_SOURCE 0x80000000
1157 /* Mixer flags */
1158 #define MIXER_OBJECTF_HANDLE 0x80000000L
1159 #define MIXER_OBJECTF_MIXER 0x00000000L
1160 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
1161 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
1162 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
1163 #define MIXER_OBJECTF_WAVEIN 0x20000000L
1164 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
1165 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
1166 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
1167 #define MIXER_OBJECTF_MIDIIN 0x40000000L
1168 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
1169 #define MIXER_OBJECTF_AUX 0x50000000L
1171 /* MIXERLINE.dwComponentType */
1172 /* component types for destinations and sources */
1173 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1174 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1175 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1176 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1177 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1178 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1179 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1180 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1181 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1182 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1183 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1185 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1186 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1187 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1188 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1189 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1190 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1191 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1192 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1193 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1194 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1195 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1196 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1197 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1199 /* MIXERLINE.Target.dwType */
1200 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1201 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1202 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1203 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1204 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1205 #define MIXERLINE_TARGETTYPE_AUX 5
1207 typedef struct {
1208 DWORD cbStruct;
1209 DWORD dwDestination;
1210 DWORD dwSource;
1211 DWORD dwLineID;
1212 DWORD fdwLine;
1213 DWORD dwUser;
1214 DWORD dwComponentType;
1215 DWORD cChannels;
1216 DWORD cConnections;
1217 DWORD cControls;
1218 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1219 CHAR szName[MIXER_LONG_NAME_CHARS];
1220 struct {
1221 DWORD dwType;
1222 DWORD dwDeviceID;
1223 WORD wMid;
1224 WORD wPid;
1225 MMVERSION vDriverVersion;
1226 CHAR szPname[MAXPNAMELEN];
1227 } Target;
1228 } MIXERLINEA, *LPMIXERLINEA;
1230 typedef struct {
1231 DWORD cbStruct;
1232 DWORD dwDestination;
1233 DWORD dwSource;
1234 DWORD dwLineID;
1235 DWORD fdwLine;
1236 DWORD dwUser;
1237 DWORD dwComponentType;
1238 DWORD cChannels;
1239 DWORD cConnections;
1240 DWORD cControls;
1241 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1242 WCHAR szName[MIXER_LONG_NAME_CHARS];
1243 struct {
1244 DWORD dwType;
1245 DWORD dwDeviceID;
1246 WORD wMid;
1247 WORD wPid;
1248 MMVERSION vDriverVersion;
1249 WCHAR szPname[MAXPNAMELEN];
1250 } Target;
1251 } MIXERLINEW, *LPMIXERLINEW;
1253 DECL_WINELIB_TYPE_AW(MIXERLINE)
1254 DECL_WINELIB_TYPE_AW(LPMIXERLINE)
1256 /* MIXERCONTROL.fdwControl */
1257 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1258 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1259 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1261 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1262 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1263 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1264 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1265 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1266 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1267 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1268 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1269 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1270 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1272 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1274 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1275 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1277 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1279 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1280 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1282 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1283 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1285 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1286 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1287 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1288 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1289 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1290 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1291 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1293 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1294 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1295 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1296 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1297 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1298 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1299 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1300 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1301 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1302 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1303 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1304 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1305 #define MIXERCONTROL_CONTROLTYPE_BASS_BOOST (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 0x00002277)
1306 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1307 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1308 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1309 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1310 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1311 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1312 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1313 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1314 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1315 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1316 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1317 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1318 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1319 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1320 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1321 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1322 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1323 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1324 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1327 typedef struct {
1328 DWORD cbStruct;
1329 DWORD dwControlID;
1330 DWORD dwControlType;
1331 DWORD fdwControl;
1332 DWORD cMultipleItems;
1333 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1334 CHAR szName[MIXER_LONG_NAME_CHARS];
1335 union {
1336 struct {
1337 LONG lMinimum;
1338 LONG lMaximum;
1339 } DUMMYSTRUCTNAME;
1340 struct {
1341 DWORD dwMinimum;
1342 DWORD dwMaximum;
1343 } DUMMYSTRUCTNAME1;
1344 DWORD dwReserved[6];
1345 } Bounds;
1346 union {
1347 DWORD cSteps;
1348 DWORD cbCustomData;
1349 DWORD dwReserved[6];
1350 } Metrics;
1351 } MIXERCONTROLA, *LPMIXERCONTROLA;
1353 typedef struct {
1354 DWORD cbStruct;
1355 DWORD dwControlID;
1356 DWORD dwControlType;
1357 DWORD fdwControl;
1358 DWORD cMultipleItems;
1359 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1360 WCHAR szName[MIXER_LONG_NAME_CHARS];
1361 union {
1362 struct {
1363 LONG lMinimum;
1364 LONG lMaximum;
1365 } DUMMYSTRUCTNAME;
1366 struct {
1367 DWORD dwMinimum;
1368 DWORD dwMaximum;
1369 } DUMMYSTRUCTNAME1;
1370 DWORD dwReserved[6];
1371 } Bounds;
1372 union {
1373 DWORD cSteps;
1374 DWORD cbCustomData;
1375 DWORD dwReserved[6];
1376 } Metrics;
1377 } MIXERCONTROLW, *LPMIXERCONTROLW;
1379 DECL_WINELIB_TYPE_AW(MIXERCONTROL)
1380 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
1382 typedef struct {
1383 DWORD cbStruct;
1384 DWORD dwLineID;
1385 union {
1386 DWORD dwControlID;
1387 DWORD dwControlType;
1388 } DUMMYUNIONNAME;
1389 DWORD cControls;
1390 DWORD cbmxctrl;
1391 LPMIXERCONTROLA pamxctrl;
1392 } MIXERLINECONTROLSA, *LPMIXERLINECONTROLSA;
1394 typedef struct {
1395 DWORD cbStruct;
1396 DWORD dwLineID;
1397 union {
1398 DWORD dwControlID;
1399 DWORD dwControlType;
1400 } DUMMYUNIONNAME;
1401 DWORD cControls;
1402 DWORD cbmxctrl;
1403 LPMIXERCONTROLW pamxctrl;
1404 } MIXERLINECONTROLSW, *LPMIXERLINECONTROLSW;
1406 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
1407 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
1409 typedef struct {
1410 DWORD cbStruct;
1411 DWORD dwControlID;
1412 DWORD cChannels;
1413 union {
1414 HWND hwndOwner;
1415 DWORD cMultipleItems;
1416 } DUMMYUNIONNAME;
1417 DWORD cbDetails;
1418 LPVOID paDetails;
1419 } MIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
1421 typedef struct {
1422 DWORD dwParam1;
1423 DWORD dwParam2;
1424 CHAR szName[MIXER_LONG_NAME_CHARS];
1425 } MIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
1427 typedef struct {
1428 DWORD dwParam1;
1429 DWORD dwParam2;
1430 WCHAR szName[MIXER_LONG_NAME_CHARS];
1431 } MIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
1433 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
1434 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
1436 /* MIXER_GETCONTROLDETAILSF_VALUE */
1437 typedef struct {
1438 LONG fValue;
1439 } MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1441 typedef struct {
1442 LONG lValue;
1443 } MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1445 typedef struct {
1446 DWORD dwValue;
1447 } MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1449 /* bits passed to mixerGetLineInfo.fdwInfo */
1450 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1451 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1452 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1453 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1454 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1455 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1457 /* bitmask passed to mixerGetLineControl */
1458 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1459 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1460 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1461 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1463 /* bitmask passed to mixerGetControlDetails */
1464 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1465 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1466 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1468 /* bitmask passed to mixerSetControlDetails */
1469 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1470 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1471 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1473 UINT WINAPI mixerGetNumDevs(void);
1474 UINT WINAPI mixerOpen(LPHMIXER,UINT,DWORD_PTR,DWORD_PTR,DWORD);
1475 UINT WINAPI mixerClose(HMIXER);
1476 UINT WINAPI mixerMessage(HMIXER,UINT,DWORD_PTR,DWORD_PTR);
1477 UINT WINAPI mixerGetDevCapsA(UINT_PTR,LPMIXERCAPSA,UINT);
1478 UINT WINAPI mixerGetDevCapsW(UINT_PTR,LPMIXERCAPSW,UINT);
1479 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1480 UINT WINAPI mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
1481 UINT WINAPI mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
1482 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1483 UINT WINAPI mixerGetID(HMIXEROBJ,LPUINT,DWORD);
1484 UINT WINAPI mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
1485 UINT WINAPI mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
1486 #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1487 UINT WINAPI mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1488 UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1489 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1490 UINT WINAPI mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1492 #define MMIOERR_BASE 256
1493 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1494 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1495 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1496 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1497 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1498 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1499 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1500 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1501 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1502 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1504 #define CFSEPCHAR '+' /* compound file name separator char. */
1506 typedef DWORD FOURCC; /* a four character code */
1507 typedef LRESULT (CALLBACK *LPMMIOPROC) (LPSTR lpmmioinfo, UINT uMessage,
1508 LPARAM lParam1, LPARAM lParam2);
1510 typedef struct {
1511 DWORD dwFlags;
1512 FOURCC fccIOProc;
1513 LPMMIOPROC pIOProc;
1514 UINT wErrorRet;
1515 HTASK hTask;
1516 /* fields maintained by MMIO functions during buffered I/O */
1517 LONG cchBuffer;
1518 HPSTR pchBuffer;
1519 HPSTR pchNext;
1520 HPSTR pchEndRead;
1521 HPSTR pchEndWrite;
1522 LONG lBufOffset;
1523 /* fields maintained by I/O procedure */
1524 LONG lDiskOffset;
1525 DWORD adwInfo[3];
1526 /* other fields maintained by MMIO */
1527 DWORD dwReserved1;
1528 DWORD dwReserved2;
1529 HMMIO hmmio;
1530 } MMIOINFO, *PMMIOINFO, *LPMMIOINFO;
1533 typedef struct _MMCKINFO
1535 FOURCC ckid; /* chunk ID */
1536 DWORD cksize; /* chunk size */
1537 FOURCC fccType; /* form type or list type */
1538 DWORD dwDataOffset; /* offset of data portion of chunk */
1539 DWORD dwFlags; /* flags used by MMIO functions */
1540 } MMCKINFO, *LPMMCKINFO;
1542 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1543 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1545 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1546 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1547 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1548 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1549 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1550 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1552 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1554 #define MMIO_READ 0x00000000 /* open file for reading only */
1555 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1556 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1558 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1559 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1560 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1561 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1562 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1564 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1565 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1566 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1567 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1568 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1569 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1570 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1571 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1572 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1573 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1574 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1575 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1577 #ifndef SEEK_SET
1578 #define SEEK_SET 0
1579 #define SEEK_CUR 1
1580 #define SEEK_END 2
1581 #endif /* SEEK_SET */
1583 #define MMIOM_READ MMIO_READ /* read */
1584 #define MMIOM_WRITE MMIO_WRITE /* write */
1585 #define MMIOM_SEEK 2 /* seek to a new position in file */
1586 #define MMIOM_OPEN 3 /* open file */
1587 #define MMIOM_CLOSE 4 /* close file */
1588 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1590 #define MMIOM_RENAME 6 /* rename specified file */
1592 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1594 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1595 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1597 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1598 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1600 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1602 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1603 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1604 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1606 LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
1607 LPMMIOPROC WINAPI mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
1608 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1610 FOURCC WINAPI mmioStringToFOURCCA(LPCSTR,UINT);
1611 FOURCC WINAPI mmioStringToFOURCCW(LPCWSTR,UINT);
1612 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1613 HMMIO WINAPI mmioOpenA(LPSTR,MMIOINFO*,DWORD);
1614 HMMIO WINAPI mmioOpenW(LPWSTR,MMIOINFO*,DWORD);
1615 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1617 MMRESULT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
1618 const MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1619 MMRESULT WINAPI mmioRenameW(LPCWSTR szFileName, LPCWSTR szNewFileName,
1620 const MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1621 #define mmioRename WINELIB_NAME_AW(mmioRename)
1623 MMRESULT WINAPI mmioClose(HMMIO,UINT);
1624 LONG WINAPI mmioRead(HMMIO,HPSTR,LONG);
1625 LONG WINAPI mmioWrite(HMMIO,HPCSTR,LONG);
1626 LONG WINAPI mmioSeek(HMMIO,LONG,INT);
1627 MMRESULT WINAPI mmioGetInfo(HMMIO,MMIOINFO*,UINT);
1628 MMRESULT WINAPI mmioSetInfo(HMMIO,const MMIOINFO*,UINT);
1629 MMRESULT WINAPI mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
1630 MMRESULT WINAPI mmioFlush(HMMIO,UINT);
1631 MMRESULT WINAPI mmioAdvance(HMMIO,MMIOINFO*,UINT);
1632 LRESULT WINAPI mmioSendMessage(HMMIO,UINT,LPARAM,LPARAM);
1633 MMRESULT WINAPI mmioDescend(HMMIO,MMCKINFO*,const MMCKINFO*,UINT);
1634 MMRESULT WINAPI mmioAscend(HMMIO,MMCKINFO*,UINT);
1635 MMRESULT WINAPI mmioCreateChunk(HMMIO,MMCKINFO*,UINT);
1637 typedef UINT (CALLBACK *YIELDPROC)(MCIDEVICEID,DWORD);
1639 DWORD WINAPI mciSendCommandA(MCIDEVICEID,UINT,DWORD_PTR,DWORD_PTR);
1640 DWORD WINAPI mciSendCommandW(MCIDEVICEID,UINT,DWORD_PTR,DWORD_PTR);
1641 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1642 DWORD WINAPI mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
1643 DWORD WINAPI mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND);
1644 #define mciSendString WINELIB_NAME_AW(mciSendString)
1645 UINT WINAPI mciGetDeviceIDA(LPCSTR);
1646 UINT WINAPI mciGetDeviceIDW(LPCWSTR);
1647 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1648 BOOL WINAPI mciGetErrorStringA(MCIERROR,LPSTR,UINT);
1649 BOOL WINAPI mciGetErrorStringW(MCIERROR,LPWSTR,UINT);
1650 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1651 BOOL WINAPI mciSetYieldProc(MCIDEVICEID,YIELDPROC,DWORD);
1652 HTASK WINAPI mciGetCreatorTask(MCIDEVICEID);
1653 YIELDPROC WINAPI mciGetYieldProc(MCIDEVICEID,DWORD*);
1655 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1656 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1657 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1658 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1659 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1660 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1661 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1662 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1663 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1664 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1665 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1666 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1667 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1668 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1669 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1670 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1671 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1672 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1673 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1674 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1675 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1676 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1677 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1678 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1679 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1680 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1681 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1682 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1683 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1684 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1685 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1686 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1687 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1688 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1689 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1690 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1691 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1692 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1693 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1694 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1695 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1696 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1697 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1698 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1699 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1700 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1701 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1702 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1703 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1704 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1705 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1706 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1708 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1709 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1710 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1711 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1712 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1713 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1714 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1715 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1716 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1717 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1719 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1720 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1721 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1722 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1723 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1724 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1725 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1726 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1728 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1729 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1730 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1731 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1733 #define MCIERR_NO_IDENTITY (MCIERR_BASE + 94)
1735 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1737 #define MCI_OPEN_DRIVER 0x0801
1738 #define MCI_CLOSE_DRIVER 0x0802
1739 #define MCI_OPEN 0x0803
1740 #define MCI_CLOSE 0x0804
1741 #define MCI_ESCAPE 0x0805
1742 #define MCI_PLAY 0x0806
1743 #define MCI_SEEK 0x0807
1744 #define MCI_STOP 0x0808
1745 #define MCI_PAUSE 0x0809
1746 #define MCI_INFO 0x080A
1747 #define MCI_GETDEVCAPS 0x080B
1748 #define MCI_SPIN 0x080C
1749 #define MCI_SET 0x080D
1750 #define MCI_STEP 0x080E
1751 #define MCI_RECORD 0x080F
1752 #define MCI_SYSINFO 0x0810
1753 #define MCI_BREAK 0x0811
1754 #define MCI_SOUND 0x0812
1755 #define MCI_SAVE 0x0813
1756 #define MCI_STATUS 0x0814
1757 #define MCI_CUE 0x0830
1758 #define MCI_REALIZE 0x0840
1759 #define MCI_WINDOW 0x0841
1760 #define MCI_PUT 0x0842
1761 #define MCI_WHERE 0x0843
1762 #define MCI_FREEZE 0x0844
1763 #define MCI_UNFREEZE 0x0845
1764 #define MCI_LOAD 0x0850
1765 #define MCI_CUT 0x0851
1766 #define MCI_COPY 0x0852
1767 #define MCI_PASTE 0x0853
1768 #define MCI_UPDATE 0x0854
1769 #define MCI_RESUME 0x0855
1770 #define MCI_DELETE 0x0856
1772 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1774 #define MCI_ALL_DEVICE_ID 0xFFFF
1776 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1777 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1778 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1779 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1780 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1781 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1782 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1783 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1784 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1785 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1786 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1788 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1789 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1791 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1792 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1793 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1794 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1795 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1796 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1797 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1799 #define MCI_FORMAT_MILLISECONDS 0
1800 #define MCI_FORMAT_HMS 1
1801 #define MCI_FORMAT_MSF 2
1802 #define MCI_FORMAT_FRAMES 3
1803 #define MCI_FORMAT_SMPTE_24 4
1804 #define MCI_FORMAT_SMPTE_25 5
1805 #define MCI_FORMAT_SMPTE_30 6
1806 #define MCI_FORMAT_SMPTE_30DROP 7
1807 #define MCI_FORMAT_BYTES 8
1808 #define MCI_FORMAT_SAMPLES 9
1809 #define MCI_FORMAT_TMSF 10
1811 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1812 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1813 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1815 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1816 ((WORD)(s)<<8)) | \
1817 (((DWORD)(BYTE)(f))<<16)))
1819 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1820 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1821 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1822 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1824 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1825 ((WORD)(m)<<8)) | \
1826 (((DWORD)(BYTE)(s) | \
1827 ((WORD)(f)<<8))<<16)))
1829 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1830 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1831 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1833 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1834 ((WORD)(m)<<8)) | \
1835 (((DWORD)(BYTE)(s))<<16)))
1837 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1838 #define MCI_NOTIFY_SUPERSEDED 0x0002
1839 #define MCI_NOTIFY_ABORTED 0x0004
1840 #define MCI_NOTIFY_FAILURE 0x0008
1842 #define MCI_NOTIFY 0x00000001L
1843 #define MCI_WAIT 0x00000002L
1844 #define MCI_FROM 0x00000004L
1845 #define MCI_TO 0x00000008L
1846 #define MCI_TRACK 0x00000010L
1848 #define MCI_OPEN_SHAREABLE 0x00000100L
1849 #define MCI_OPEN_ELEMENT 0x00000200L
1850 #define MCI_OPEN_ALIAS 0x00000400L
1851 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1852 #define MCI_OPEN_TYPE_ID 0x00001000L
1853 #define MCI_OPEN_TYPE 0x00002000L
1855 #define MCI_SEEK_TO_START 0x00000100L
1856 #define MCI_SEEK_TO_END 0x00000200L
1858 #define MCI_STATUS_ITEM 0x00000100L
1859 #define MCI_STATUS_START 0x00000200L
1861 #define MCI_STATUS_LENGTH 0x00000001L
1862 #define MCI_STATUS_POSITION 0x00000002L
1863 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1864 #define MCI_STATUS_MODE 0x00000004L
1865 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1866 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1867 #define MCI_STATUS_READY 0x00000007L
1868 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1870 #define MCI_INFO_PRODUCT 0x00000100L
1871 #define MCI_INFO_FILE 0x00000200L
1872 #define MCI_INFO_MEDIA_UPC 0x00000400L
1873 #define MCI_INFO_MEDIA_IDENTITY 0x00000800L
1874 #define MCI_INFO_NAME 0x00001000L
1875 #define MCI_INFO_COPYRIGHT 0x00002000L
1877 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1879 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1880 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1881 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1882 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1883 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1884 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1885 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1886 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1887 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1889 #define MCI_SYSINFO_QUANTITY 0x00000100L
1890 #define MCI_SYSINFO_OPEN 0x00000200L
1891 #define MCI_SYSINFO_NAME 0x00000400L
1892 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1894 #define MCI_SET_DOOR_OPEN 0x00000100L
1895 #define MCI_SET_DOOR_CLOSED 0x00000200L
1896 #define MCI_SET_TIME_FORMAT 0x00000400L
1897 #define MCI_SET_AUDIO 0x00000800L
1898 #define MCI_SET_VIDEO 0x00001000L
1899 #define MCI_SET_ON 0x00002000L
1900 #define MCI_SET_OFF 0x00004000L
1902 #define MCI_SET_AUDIO_ALL 0x00000000L
1903 #define MCI_SET_AUDIO_LEFT 0x00000001L
1904 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1906 #define MCI_BREAK_KEY 0x00000100L
1907 #define MCI_BREAK_HWND 0x00000200L
1908 #define MCI_BREAK_OFF 0x00000400L
1910 #define MCI_RECORD_INSERT 0x00000100L
1911 #define MCI_RECORD_OVERWRITE 0x00000200L
1913 #define MCI_SOUND_NAME 0x00000100L
1915 #define MCI_SAVE_FILE 0x00000100L
1917 #define MCI_LOAD_FILE 0x00000100L
1919 typedef struct {
1920 DWORD_PTR dwCallback;
1921 } MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
1923 typedef struct {
1924 DWORD_PTR dwCallback;
1925 MCIDEVICEID wDeviceID;
1926 LPSTR lpstrDeviceType;
1927 LPSTR lpstrElementName;
1928 LPSTR lpstrAlias;
1929 } MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
1931 typedef struct {
1932 DWORD_PTR dwCallback;
1933 MCIDEVICEID wDeviceID;
1934 LPWSTR lpstrDeviceType;
1935 LPWSTR lpstrElementName;
1936 LPWSTR lpstrAlias;
1937 } MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
1939 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
1940 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
1942 typedef struct {
1943 DWORD_PTR dwCallback;
1944 DWORD dwFrom;
1945 DWORD dwTo;
1946 } MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
1948 typedef struct {
1949 DWORD_PTR dwCallback;
1950 DWORD dwTo;
1951 } MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
1953 typedef struct {
1954 DWORD_PTR dwCallback;
1955 DWORD dwReturn;
1956 DWORD dwItem;
1957 DWORD dwTrack;
1958 } MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
1960 typedef struct {
1961 DWORD_PTR dwCallback;
1962 LPSTR lpstrReturn;
1963 DWORD dwRetSize;
1964 } MCI_INFO_PARMSA, *LPMCI_INFO_PARMSA;
1966 typedef struct {
1967 DWORD_PTR dwCallback;
1968 LPSTR lpstrReturn;
1969 DWORD dwRetSize;
1970 } MCI_INFO_PARMSW, *LPMCI_INFO_PARMSW;
1972 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
1973 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
1975 typedef struct {
1976 DWORD_PTR dwCallback;
1977 DWORD dwReturn;
1978 DWORD dwItem;
1979 } MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
1981 typedef struct {
1982 DWORD_PTR dwCallback;
1983 LPSTR lpstrReturn;
1984 DWORD dwRetSize;
1985 DWORD dwNumber;
1986 UINT wDeviceType;
1987 } MCI_SYSINFO_PARMSA, *LPMCI_SYSINFO_PARMSA;
1989 typedef struct {
1990 DWORD_PTR dwCallback;
1991 LPWSTR lpstrReturn;
1992 DWORD dwRetSize;
1993 DWORD dwNumber;
1994 UINT wDeviceType;
1995 } MCI_SYSINFO_PARMSW, *LPMCI_SYSINFO_PARMSW;
1997 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
1998 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
2000 typedef struct {
2001 DWORD_PTR dwCallback;
2002 DWORD dwTimeFormat;
2003 DWORD dwAudio;
2004 } MCI_SET_PARMS, *LPMCI_SET_PARMS;
2006 typedef struct {
2007 DWORD_PTR dwCallback;
2008 INT nVirtKey;
2009 HWND hwndBreak;
2010 } MCI_BREAK_PARMS, *LPMCI_BREAK_PARMS;
2013 typedef struct {
2014 DWORD_PTR dwCallback;
2015 LPCSTR lpstrSoundName;
2016 } MCI_SOUND_PARMS, *LPMCI_SOUND_PARMS;
2018 typedef struct {
2019 DWORD_PTR dwCallback;
2020 LPCSTR lpfilename;
2021 } MCI_SAVE_PARMS, *LPMCI_SAVE_PARMS;
2023 typedef struct {
2024 DWORD_PTR dwCallback;
2025 LPCSTR lpfilename;
2026 } MCI_LOAD_PARMSA, *LPMCI_LOAD_PARMSA;
2028 typedef struct {
2029 DWORD_PTR dwCallback;
2030 LPCWSTR lpfilename;
2031 } MCI_LOAD_PARMSW, *LPMCI_LOAD_PARMSW;
2033 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
2034 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
2036 typedef struct {
2037 DWORD_PTR dwCallback;
2038 DWORD dwFrom;
2039 DWORD dwTo;
2040 } MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
2042 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
2044 #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
2045 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
2047 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2049 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2050 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2051 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2053 #define MCI_VD_FORMAT_TRACK 0x4001
2055 #define MCI_VD_PLAY_REVERSE 0x00010000L
2056 #define MCI_VD_PLAY_FAST 0x00020000L
2057 #define MCI_VD_PLAY_SPEED 0x00040000L
2058 #define MCI_VD_PLAY_SCAN 0x00080000L
2059 #define MCI_VD_PLAY_SLOW 0x00100000L
2061 #define MCI_VD_SEEK_REVERSE 0x00010000L
2063 #define MCI_VD_STATUS_SPEED 0x00004002L
2064 #define MCI_VD_STATUS_FORWARD 0x00004003L
2065 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2066 #define MCI_VD_STATUS_SIDE 0x00004005L
2067 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2069 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2070 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2072 #define MCI_VD_SPIN_UP 0x00010000L
2073 #define MCI_VD_SPIN_DOWN 0x00020000L
2075 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2076 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2077 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2078 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2080 #define MCI_VD_STEP_FRAMES 0x00010000L
2081 #define MCI_VD_STEP_REVERSE 0x00020000L
2083 #define MCI_VD_ESCAPE_STRING 0x00000100L
2085 typedef struct {
2086 DWORD_PTR dwCallback;
2087 DWORD dwFrom;
2088 DWORD dwTo;
2089 DWORD dwSpeed;
2090 } MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
2092 typedef struct {
2093 DWORD_PTR dwCallback;
2094 DWORD dwFrames;
2095 } MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
2097 typedef struct {
2098 DWORD_PTR dwCallback;
2099 LPCSTR lpstrCommand;
2100 } MCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA;
2102 typedef struct {
2103 DWORD_PTR dwCallback;
2104 LPCWSTR lpstrCommand;
2105 } MCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW;
2107 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
2108 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
2110 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
2112 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
2113 #define MCI_WAVE_SET_CHANNELS 0x00020000L
2114 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2115 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2116 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2117 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2119 #define MCI_WAVE_INPUT 0x00400000L
2120 #define MCI_WAVE_OUTPUT 0x00800000L
2122 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2123 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2124 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2125 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2126 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2127 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2128 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
2130 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
2131 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2133 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2134 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2136 typedef struct {
2137 DWORD_PTR dwCallback;
2138 MCIDEVICEID wDeviceID;
2139 LPCSTR lpstrDeviceType;
2140 LPCSTR lpstrElementName;
2141 LPCSTR lpstrAlias;
2142 DWORD dwBufferSeconds;
2143 } MCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA;
2145 typedef struct {
2146 DWORD_PTR dwCallback;
2147 MCIDEVICEID wDeviceID;
2148 LPCWSTR lpstrDeviceType;
2149 LPCWSTR lpstrElementName;
2150 LPCWSTR lpstrAlias;
2151 DWORD dwBufferSeconds;
2152 } MCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW;
2154 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
2155 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
2157 typedef struct {
2158 DWORD_PTR dwCallback;
2159 DWORD dwFrom;
2160 DWORD dwTo;
2161 } MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
2163 typedef struct {
2164 DWORD_PTR dwCallback;
2165 DWORD dwTimeFormat;
2166 DWORD dwAudio;
2167 UINT wInput;
2168 UINT wOutput;
2169 UINT wFormatTag;
2170 UINT nChannels;
2171 DWORD nSamplesPerSec;
2172 DWORD nAvgBytesPerSec;
2173 UINT nBlockAlign;
2174 UINT wBitsPerSample;
2175 } MCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS;
2178 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2179 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2180 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2181 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2182 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2184 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2185 #define MCI_SEQ_FILE 0x4002
2186 #define MCI_SEQ_MIDI 0x4003
2187 #define MCI_SEQ_SMPTE 0x4004
2188 #define MCI_SEQ_NONE 65533
2190 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
2191 #define MCI_SEQ_STATUS_PORT 0x00004003L
2192 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
2193 #define MCI_SEQ_STATUS_MASTER 0x00004008L
2194 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
2195 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2197 #define MCI_SEQ_SET_TEMPO 0x00010000L
2198 #define MCI_SEQ_SET_PORT 0x00020000L
2199 #define MCI_SEQ_SET_SLAVE 0x00040000L
2200 #define MCI_SEQ_SET_MASTER 0x00080000L
2201 #define MCI_SEQ_SET_OFFSET 0x01000000L
2203 typedef struct {
2204 DWORD_PTR dwCallback;
2205 DWORD dwTimeFormat;
2206 DWORD dwAudio;
2207 DWORD dwTempo;
2208 DWORD dwPort;
2209 DWORD dwSlave;
2210 DWORD dwMaster;
2211 DWORD dwOffset;
2212 } MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
2214 #define MCI_ANIM_OPEN_WS 0x00010000L
2215 #define MCI_ANIM_OPEN_PARENT 0x00020000L
2216 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2218 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2219 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2220 #define MCI_ANIM_PLAY_FAST 0x00040000L
2221 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2222 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2224 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2225 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2227 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2228 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2229 #define MCI_ANIM_STATUS_HWND 0x00004003L
2230 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2231 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2233 #define MCI_ANIM_INFO_TEXT 0x00010000L
2235 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2236 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2237 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2238 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2239 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2240 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2241 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2243 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2244 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2246 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2247 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2248 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2249 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2250 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2252 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2254 #define MCI_ANIM_RECT 0x00010000L
2255 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2256 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2258 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2259 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2261 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2263 typedef struct {
2264 DWORD_PTR dwCallback;
2265 MCIDEVICEID wDeviceID;
2266 LPCSTR lpstrDeviceType;
2267 LPCSTR lpstrElementName;
2268 LPCSTR lpstrAlias;
2269 DWORD dwStyle;
2270 HWND hWndParent;
2271 } MCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA;
2273 typedef struct {
2274 DWORD_PTR dwCallback;
2275 MCIDEVICEID wDeviceID;
2276 LPCWSTR lpstrDeviceType;
2277 LPCWSTR lpstrElementName;
2278 LPCWSTR lpstrAlias;
2279 DWORD dwStyle;
2280 HWND hWndParent;
2281 } MCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW;
2283 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
2284 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
2286 typedef struct {
2287 DWORD_PTR dwCallback;
2288 DWORD dwFrom;
2289 DWORD dwTo;
2290 DWORD dwSpeed;
2291 } MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
2293 typedef struct {
2294 DWORD_PTR dwCallback;
2295 DWORD dwFrames;
2296 } MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
2298 typedef struct {
2299 DWORD_PTR dwCallback;
2300 HWND hWnd;
2301 UINT nCmdShow;
2302 LPCSTR lpstrText;
2303 } MCI_ANIM_WINDOW_PARMSA, *LPMCI_ANIM_WINDOW_PARMSA;
2305 typedef struct {
2306 DWORD_PTR dwCallback;
2307 HWND hWnd;
2308 UINT nCmdShow;
2309 LPCWSTR lpstrText;
2310 } MCI_ANIM_WINDOW_PARMSW, *LPMCI_ANIM_WINDOW_PARMSW;
2312 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
2313 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
2315 typedef struct {
2316 DWORD_PTR dwCallback;
2317 #ifdef MCI_USE_OFFEXT
2318 POINT ptOffset;
2319 POINT ptExtent;
2320 #else /* ifdef MCI_USE_OFFEXT */
2321 RECT rc;
2322 #endif /* ifdef MCI_USE_OFFEXT */
2323 } MCI_ANIM_RECT_PARMS, *LPMCI_ANIM_RECT_PARMS;
2326 typedef struct {
2327 DWORD_PTR dwCallback;
2328 RECT rc;
2329 HDC hDC;
2330 } MCI_ANIM_UPDATE_PARMS, *LPMCI_ANIM_UPDATE_PARMS;
2333 #define MCI_OVLY_OPEN_WS 0x00010000L
2334 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2336 #define MCI_OVLY_STATUS_HWND 0x00004001L
2337 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2339 #define MCI_OVLY_INFO_TEXT 0x00010000L
2341 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2342 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2343 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2345 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2346 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2347 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2348 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2349 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2351 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2353 #define MCI_OVLY_RECT 0x00010000L
2354 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2355 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2356 #define MCI_OVLY_PUT_FRAME 0x00080000L
2357 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2359 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2360 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2361 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2362 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2364 typedef struct {
2365 DWORD_PTR dwCallback;
2366 MCIDEVICEID wDeviceID;
2367 LPCSTR lpstrDeviceType;
2368 LPCSTR lpstrElementName;
2369 LPCSTR lpstrAlias;
2370 DWORD dwStyle;
2371 HWND hWndParent;
2372 } MCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA;
2374 typedef struct {
2375 DWORD_PTR dwCallback;
2376 MCIDEVICEID wDeviceID;
2377 LPCWSTR lpstrDeviceType;
2378 LPCWSTR lpstrElementName;
2379 LPCWSTR lpstrAlias;
2380 DWORD dwStyle;
2381 HWND hWndParent;
2382 } MCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW;
2384 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
2385 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
2387 typedef struct {
2388 DWORD_PTR dwCallback;
2389 HWND hWnd;
2390 UINT nCmdShow;
2391 LPCSTR lpstrText;
2392 } MCI_OVLY_WINDOW_PARMSA, *LPMCI_OVLY_WINDOW_PARMSA;
2394 typedef struct {
2395 DWORD_PTR dwCallback;
2396 HWND hWnd;
2397 UINT nCmdShow;
2398 LPCWSTR lpstrText;
2399 } MCI_OVLY_WINDOW_PARMSW, *LPMCI_OVLY_WINDOW_PARMSW;
2401 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
2402 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
2404 typedef struct {
2405 DWORD_PTR dwCallback;
2406 #ifdef MCI_USE_OFFEXT
2407 POINT ptOffset;
2408 POINT ptExtent;
2409 #else /* ifdef MCI_USE_OFFEXT */
2410 RECT rc;
2411 #endif /* ifdef MCI_USE_OFFEXT */
2412 } MCI_OVLY_RECT_PARMS, *LPMCI_OVLY_RECT_PARMS;
2415 typedef struct {
2416 DWORD_PTR dwCallback;
2417 LPCSTR lpfilename;
2418 RECT rc;
2419 } MCI_OVLY_SAVE_PARMSA, *LPMCI_OVLY_SAVE_PARMSA;
2421 typedef struct {
2422 DWORD_PTR dwCallback;
2423 LPCWSTR lpfilename;
2424 RECT rc;
2425 } MCI_OVLY_SAVE_PARMSW, *LPMCI_OVLY_SAVE_PARMSW;
2427 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
2428 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
2430 typedef struct {
2431 DWORD_PTR dwCallback;
2432 LPCSTR lpfilename;
2433 RECT rc;
2434 } MCI_OVLY_LOAD_PARMSA, *LPMCI_OVLY_LOAD_PARMSA;
2436 typedef struct {
2437 DWORD_PTR dwCallback;
2438 LPCWSTR lpfilename;
2439 RECT rc;
2440 } MCI_OVLY_LOAD_PARMSW, *LPMCI_OVLY_LOAD_PARMSW;
2442 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
2443 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
2445 #include <poppack.h>
2447 #ifdef __cplusplus
2449 #endif
2451 #endif /* __WINE_MMSYSTEM_H */