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