VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/mmsystem.h@ 16410

最後變更 在這個檔案從16410是 16410,由 vboxsync 提交於 16 年 前

export the Wine stuff to OSE

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette