blob: 463176245f6235011242f0189d8f01f6f8616a1d [file] [log] [blame]
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00001/*
Alexandre Julliard58199531994-04-21 01:20:00 +00002 * MMSYSTEM - Multimedia Wine Extension ... :-)
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00003 *
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
Jonathan Ernst360a3f92006-05-18 14:49:52 +020018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Alexandre Julliard58199531994-04-21 01:20:00 +000019 */
20
Alexandre Julliardc6c09441997-01-12 18:32:19 +000021#ifndef __WINE_MMSYSTEM_H
22#define __WINE_MMSYSTEM_H
Alexandre Julliard58199531994-04-21 01:20:00 +000023
Alexandre Julliardf4eb65b1999-02-09 14:22:01 +000024#ifdef __cplusplus
25extern "C" {
Vincent Béron9a624912002-05-31 23:06:46 +000026#endif
Alexandre Julliardf4eb65b1999-02-09 14:22:01 +000027
Eric Pouecha9ffdcf1999-03-15 15:42:26 +000028typedef LPSTR HPSTR; /* a huge version of LPSTR */
29typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
Francois Gougetbba4bb12002-09-17 01:35:09 +000030typedef UINT* LPUINT;
Alexandre Julliarde54cf7b2001-07-30 18:57:18 +000031
Michael Stefaniucec7d7b72002-08-09 01:02:25 +000032DECLARE_HANDLE(HDRVR);
Michael Stefaniucbacc1b32002-08-02 19:02:49 +000033DECLARE_HANDLE(HWAVE);
34DECLARE_HANDLE(HWAVEIN);
35DECLARE_HANDLE(HWAVEOUT);
Alexandre Julliard7cae2012002-08-01 18:17:51 +000036DECLARE_HANDLE(HMIDI);
37DECLARE_HANDLE(HMIDIIN);
38DECLARE_HANDLE(HMIDIOUT);
39DECLARE_HANDLE(HMIDISTRM);
Michael Stefaniucc4143442002-08-03 00:14:43 +000040DECLARE_HANDLE(HMIXER);
41DECLARE_HANDLE(HMIXEROBJ);
Michael Stefaniucc8ff4da2002-08-09 19:51:01 +000042DECLARE_HANDLE(HMMIO);
Alexandre Julliarde54cf7b2001-07-30 18:57:18 +000043
Alexandre Julliard5cf56a32002-10-03 19:46:27 +000044typedef HMIDI *LPHMIDI;
45typedef HMIDIIN *LPHMIDIIN;
46typedef HMIDIOUT *LPHMIDIOUT;
47typedef HMIDISTRM *LPHMIDISTRM;
48typedef HMIXER *LPHMIXER;
49typedef HMIXEROBJ *LPHMIXEROBJ;
50typedef HWAVEIN *LPHWAVEIN;
51typedef HWAVEOUT *LPHWAVEOUT;
52
Dimitrie O. Paun53f9c212003-08-28 21:43:34 +000053#include <pshpack1.h>
Vincent Béron9a624912002-05-31 23:06:46 +000054
Dmitry Timoshkov97415892003-12-31 23:49:45 +000055typedef LRESULT (CALLBACK *DRIVERPROC)(DWORD_PTR,HDRVR,UINT,LPARAM,LPARAM);
François Gougetf53b0e82001-01-04 19:32:22 +000056
Alexandre Julliard491502b1997-11-01 19:08:16 +000057#define MAXWAVEDRIVERS 10
58#define MAXMIDIDRIVERS 10
59#define MAXAUXDRIVERS 10
60#define MAXMCIDRIVERS 32
61#define MAXMIXERDRIVERS 10
Vincent Béron9a624912002-05-31 23:06:46 +000062
Alexandre Julliard58199531994-04-21 01:20:00 +000063#define MAXPNAMELEN 32 /* max product name length (including NULL) */
Rémi Assailly101e1f22004-11-21 15:32:31 +000064#define MAXERRORLENGTH 256 /* max error text length (including NULL) */
Alexandre Julliard44ed71f1997-12-21 19:17:50 +000065#define MAX_JOYSTICKOEMVXDNAME 260
Vincent Béron9a624912002-05-31 23:06:46 +000066
Eric Pouech28b8ac82001-01-04 20:58:05 +000067#ifndef _MCIERROR_
68#define _MCIERROR_
Francois Gougetf2e65752000-09-22 21:04:30 +000069typedef DWORD MCIERROR;
Eric Pouech28b8ac82001-01-04 20:58:05 +000070#endif
Alexandre Julliarda3960291999-02-26 11:11:13 +000071typedef UINT MMVERSION;
Eric Pouech28b8ac82001-01-04 20:58:05 +000072#ifndef _MCIDEVICEID_
73#define _MCIDEVICEID_
Alexandre Julliarda3960291999-02-26 11:11:13 +000074typedef UINT MCIDEVICEID;
Eric Pouech28b8ac82001-01-04 20:58:05 +000075#endif
Alexandre Julliarda3960291999-02-26 11:11:13 +000076typedef UINT MMRESULT;
Alexandre Julliard491502b1997-11-01 19:08:16 +000077
Rémi Assailly101e1f22004-11-21 15:32:31 +000078typedef struct mmtime_tag {
Alexandre Julliarda3960291999-02-26 11:11:13 +000079 UINT wType;
Alexandre Julliard491502b1997-11-01 19:08:16 +000080 union {
81 DWORD ms;
82 DWORD sample;
83 DWORD cb;
Eric Pouecha4165ae1999-04-11 12:14:17 +000084 DWORD ticks;
Alexandre Julliard491502b1997-11-01 19:08:16 +000085 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;
Rémi Assailly101e1f22004-11-21 15:32:31 +000098} MMTIME, *PMMTIME, *LPMMTIME;
Alexandre Julliard58199531994-04-21 01:20:00 +000099
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 */
Eric Pouecha4165ae1999-04-11 12:14:17 +0000105#define TIME_TICKS 0x0020 /* MIDI ticks */
Alexandre Julliard58199531994-04-21 01:20:00 +0000106
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
Eric Pouecha4165ae1999-04-11 12:14:17 +0000136#define MM_MOM_POSITIONCB 0x3CA
Alexandre Julliard58199531994-04-21 01:20:00 +0000137
Eric Pouech29ebdb71999-12-05 02:19:24 +0000138#define MM_MIM_MOREDATA 0x3CC
139
Vincent Bérona79c9602003-04-13 01:05:17 +0000140#define MM_MIXM_LINE_CHANGE 0x3D0
141#define MM_MIXM_CONTROL_CHANGE 0x3D1
142
Alexandre Julliard58199531994-04-21 01:20:00 +0000143#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
Rémi Assailly101e1f22004-11-21 15:32:31 +0000156#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)
Alexandre Julliard58199531994-04-21 01:20:00 +0000179
Eric Pouecha4165ae1999-04-11 12:14:17 +0000180#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 */
Alexandre Julliard58199531994-04-21 01:20:00 +0000187
Eric Pouech731e9f52000-07-26 18:07:04 +0000188#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
Rémi Assailly101e1f22004-11-21 15:32:31 +0000220typedef struct tagDRVCONFIGINFO {
Eric Pouech731e9f52000-07-26 18:07:04 +0000221 DWORD dwDCISize;
Eric Pouech731e9f52000-07-26 18:07:04 +0000222 LPCWSTR lpszDCISectionName;
223 LPCWSTR lpszDCIAliasName;
224} DRVCONFIGINFO, *LPDRVCONFIGINFO;
225
226
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000227LRESULT WINAPI DefDriverProc(DWORD_PTR,HDRVR,UINT,LPARAM,LPARAM);
Francois Gouget817c5202004-07-16 19:15:40 +0000228/* this sounds odd, but it's the way it is. OpenDriverA even disappeared
Eric Pouech5061d3a2003-07-02 00:40:14 +0000229 * from latest SDK
230 */
Eric Pouech731e9f52000-07-26 18:07:04 +0000231HDRVR WINAPI OpenDriverA(LPCSTR szDriverName, LPCSTR szSectionName,
232 LPARAM lParam2);
Eric Pouech5061d3a2003-07-02 00:40:14 +0000233HDRVR WINAPI OpenDriver(LPCWSTR szDriverName, LPCWSTR szSectionName,
234 LPARAM lParam2);
Eric Pouech731e9f52000-07-26 18:07:04 +0000235LRESULT WINAPI CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2);
Eric Pouech731e9f52000-07-26 18:07:04 +0000236LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message,
237 LPARAM lParam1, LPARAM lParam2);
Eric Pouech731e9f52000-07-26 18:07:04 +0000238HMODULE WINAPI GetDriverModuleHandle(HDRVR hDriver);
239
Eric Pouech731e9f52000-07-26 18:07:04 +0000240DWORD WINAPI GetDriverFlags(HDRVR hDriver);
Eric Pouech731e9f52000-07-26 18:07:04 +0000241
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000242typedef void (CALLBACK *LPDRVCALLBACK)(HDRVR,UINT,DWORD_PTR,DWORD_PTR,DWORD_PTR);
Alexandre Julliard58199531994-04-21 01:20:00 +0000243
244#define MM_MICROSOFT 1 /* Microsoft Corp. */
Jeremy Whiteddf70d72005-06-20 15:34:59 +0000245#define MM_CREATIVE 2 /* Creative labs */
Alexandre Julliard58199531994-04-21 01:20:00 +0000246
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
Jeremy Whiteddf70d72005-06-20 15:34:59 +0000263#define MM_CREATIVE_SBP16_WAVEOUT 104
Alexandre Julliard58199531994-04-21 01:20:00 +0000264
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000265UINT WINAPI mmsystemGetVersion(void);
Eric Pouech668228a1999-09-05 16:39:23 +0000266BOOL WINAPI sndPlaySoundA(LPCSTR lpszSound, UINT fuSound);
267BOOL WINAPI sndPlaySoundW(LPCWSTR lpszSound, UINT fuSound);
Vincent Béron9a624912002-05-31 23:06:46 +0000268#define sndPlaySound WINELIB_NAME_AW(sndPlaySound)
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000269BOOL WINAPI PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
270BOOL WINAPI PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound);
271#define PlaySound WINELIB_NAME_AW(PlaySound)
Alexandre Julliard58199531994-04-21 01:20:00 +0000272
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000273#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 */
Alexandre Julliard58199531994-04-21 01:20:00 +0000279
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000280#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 */
Alexandre Julliard3db94ef1997-09-28 17:43:24 +0000287
Eric Pouech2dbc7d52009-03-29 17:22:43 +0200288#define SND_ALIAS_START 0
289
290#define sndAlias(ch0, ch1) (SND_ALIAS_START + ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8)))
291
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')
300
Alexandre Julliard58199531994-04-21 01:20:00 +0000301/* 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 */
307
Alexandre Julliarda3960291999-02-26 11:11:13 +0000308typedef LPDRVCALLBACK LPWAVECALLBACK;
Alexandre Julliard58199531994-04-21 01:20:00 +0000309
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
316
317#define WAVE_MAPPER (-1)
318
Eric Pouech668228a1999-09-05 16:39:23 +0000319#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)
Alexandre Julliard58199531994-04-21 01:20:00 +0000324
Alexandre Julliard6b81b391994-07-07 16:23:58 +0000325typedef struct wavehdr_tag {
Robert Reif7d18f572004-08-06 18:57:36 +0000326 LPSTR lpData;
327 DWORD dwBufferLength;
328 DWORD dwBytesRecorded;
Alexandre Julliardec1b28e2009-01-09 17:46:46 +0100329 DWORD_PTR dwUser;
Robert Reif7d18f572004-08-06 18:57:36 +0000330 DWORD dwFlags;
331 DWORD dwLoops;
332 struct wavehdr_tag *lpNext;
Alexandre Julliardec1b28e2009-01-09 17:46:46 +0100333 DWORD_PTR reserved;
Francois Gougetf2e65752000-09-22 21:04:30 +0000334} WAVEHDR, *PWAVEHDR, *NPWAVEHDR, *LPWAVEHDR;
Alexandre Julliard58199531994-04-21 01:20:00 +0000335
Robert Reif7d18f572004-08-06 18:57:36 +0000336#define WHDR_DONE 0x00000001
337#define WHDR_PREPARED 0x00000002
338#define WHDR_BEGINLOOP 0x00000004
339#define WHDR_ENDLOOP 0x00000008
340#define WHDR_INQUEUE 0x00000010
Alexandre Julliard58199531994-04-21 01:20:00 +0000341
Robert Reif7d18f572004-08-06 18:57:36 +0000342typedef 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;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000351} WAVEOUTCAPSA, *LPWAVEOUTCAPSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +0000352
Robert Reif7d18f572004-08-06 18:57:36 +0000353typedef 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;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000362} WAVEOUTCAPSW, *LPWAVEOUTCAPSW;
Alexandre Julliarda845b881998-06-01 10:44:35 +0000363DECL_WINELIB_TYPE_AW(WAVEOUTCAPS)
364DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS)
Alexandre Julliard58199531994-04-21 01:20:00 +0000365
Robert Reif7d18f572004-08-06 18:57:36 +0000366typedef 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;
379
380typedef 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;
393DECL_WINELIB_TYPE_AW(WAVEOUTCAPS2)
394DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS2)
395
Alexandre Julliard58199531994-04-21 01:20:00 +0000396#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 */
Zach Goldberg17651d02008-01-02 20:23:41 -0500400#define WAVECAPS_SYNC 0x0010 /* driver is synchronous and playing is blocking */
Eric Pouecha4165ae1999-04-11 12:14:17 +0000401#define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
402#define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
Alexandre Julliard58199531994-04-21 01:20:00 +0000403
Robert Reif7d18f572004-08-06 18:57:36 +0000404typedef struct tagWAVEINCAPSA {
405 WORD wMid;
406 WORD wPid;
407 MMVERSION vDriverVersion;
408 CHAR szPname[MAXPNAMELEN];
409 DWORD dwFormats;
410 WORD wChannels;
Alexandre Julliard491502b1997-11-01 19:08:16 +0000411 WORD wReserved1;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000412} WAVEINCAPSA, *LPWAVEINCAPSA;
Robert Reif7d18f572004-08-06 18:57:36 +0000413typedef struct tagWAVEINCAPSW {
414 WORD wMid;
415 WORD wPid;
416 MMVERSION vDriverVersion;
417 WCHAR szPname[MAXPNAMELEN];
418 DWORD dwFormats;
419 WORD wChannels;
Alexandre Julliard491502b1997-11-01 19:08:16 +0000420 WORD wReserved1;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000421} WAVEINCAPSW, *LPWAVEINCAPSW;
Alexandre Julliarda845b881998-06-01 10:44:35 +0000422DECL_WINELIB_TYPE_AW(WAVEINCAPS)
423DECL_WINELIB_TYPE_AW(LPWAVEINCAPS)
Alexandre Julliard58199531994-04-21 01:20:00 +0000424
Robert Reif7d18f572004-08-06 18:57:36 +0000425typedef 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;
437typedef 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;
449DECL_WINELIB_TYPE_AW(WAVEINCAPS2)
450DECL_WINELIB_TYPE_AW(LPWAVEINCAPS2)
451
Francois Gouget10c5d272002-11-30 01:50:06 +0000452#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 */
Alexandre Julliard58199531994-04-21 01:20:00 +0000473
Alexandre Julliard491502b1997-11-01 19:08:16 +0000474/* General format structure common to all formats, same for Win16 and Win32 */
Rémi Assailly101e1f22004-11-21 15:32:31 +0000475typedef struct waveformat_tag {
Robert Reif7d18f572004-08-06 18:57:36 +0000476 WORD wFormatTag;
477 WORD nChannels;
478 DWORD nSamplesPerSec;
479 DWORD nAvgBytesPerSec;
480 WORD nBlockAlign;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +0000481} WAVEFORMAT, *LPWAVEFORMAT;
Alexandre Julliard58199531994-04-21 01:20:00 +0000482
483#define WAVE_FORMAT_PCM 1
484
Rémi Assailly101e1f22004-11-21 15:32:31 +0000485typedef struct pcmwaveformat_tag {
Alexandre Julliard491502b1997-11-01 19:08:16 +0000486 WAVEFORMAT wf;
487 WORD wBitsPerSample;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +0000488} PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
Alexandre Julliard58199531994-04-21 01:20:00 +0000489
Bertho Stultiens27a0ced1999-02-14 09:41:42 +0000490#ifndef _WAVEFORMATEX_
491#define _WAVEFORMATEX_
Francois Gouget44b52b12008-01-16 12:20:50 +0100492/* ditto same for Win16 / Win32 */
Rémi Assailly101e1f22004-11-21 15:32:31 +0000493typedef struct tWAVEFORMATEX {
Robert Reif7d18f572004-08-06 18:57:36 +0000494 WORD wFormatTag;
495 WORD nChannels;
496 DWORD nSamplesPerSec;
497 DWORD nAvgBytesPerSec;
498 WORD nBlockAlign;
499 WORD wBitsPerSample;
500 WORD cbSize;
Bertho Stultiens27a0ced1999-02-14 09:41:42 +0000501} WAVEFORMATEX, *LPWAVEFORMATEX, *NPWAVEFORMATEX, *PWAVEFORMATEX;
502#endif
Ge van Geldorpc24ca672004-12-08 13:57:55 +0000503typedef const WAVEFORMATEX *LPCWAVEFORMATEX;
Alexandre Julliard58199531994-04-21 01:20:00 +0000504
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000505UINT WINAPI waveOutGetNumDevs(void);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000506UINT WINAPI waveOutGetDevCapsA(UINT_PTR,LPWAVEOUTCAPSA,UINT);
507UINT WINAPI waveOutGetDevCapsW(UINT_PTR,LPWAVEOUTCAPSW,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000508#define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
Francois Gouget8b97a3a2002-12-15 02:59:50 +0000509UINT WINAPI waveOutGetVolume(HWAVEOUT,DWORD*);
510UINT WINAPI waveOutSetVolume(HWAVEOUT,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000511UINT WINAPI waveOutGetErrorTextA(UINT,LPSTR,UINT);
512UINT WINAPI waveOutGetErrorTextW(UINT,LPWSTR,UINT);
513#define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
Ge van Geldorpc24ca672004-12-08 13:57:55 +0000514MMRESULT WINAPI waveOutOpen(HWAVEOUT*,UINT,LPCWAVEFORMATEX,DWORD_PTR,DWORD_PTR,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000515UINT WINAPI waveOutClose(HWAVEOUT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000516UINT WINAPI waveOutPrepareHeader(HWAVEOUT,WAVEHDR*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000517UINT WINAPI waveOutUnprepareHeader(HWAVEOUT,WAVEHDR*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000518UINT WINAPI waveOutWrite(HWAVEOUT,WAVEHDR*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000519UINT WINAPI waveOutPause(HWAVEOUT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000520UINT WINAPI waveOutRestart(HWAVEOUT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000521UINT WINAPI waveOutReset(HWAVEOUT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000522UINT WINAPI waveOutBreakLoop(HWAVEOUT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000523UINT WINAPI waveOutGetPosition(HWAVEOUT,LPMMTIME,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000524UINT WINAPI waveOutGetPitch(HWAVEOUT,DWORD*);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000525UINT WINAPI waveOutSetPitch(HWAVEOUT,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000526UINT WINAPI waveOutGetPlaybackRate(HWAVEOUT,DWORD*);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000527UINT WINAPI waveOutSetPlaybackRate(HWAVEOUT,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000528UINT WINAPI waveOutGetID(HWAVEOUT,UINT*);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000529UINT WINAPI waveOutMessage(HWAVEOUT,UINT,DWORD_PTR,DWORD_PTR);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000530UINT WINAPI waveInGetNumDevs(void);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000531UINT WINAPI waveInGetDevCapsA(UINT_PTR,LPWAVEINCAPSA,UINT);
532UINT WINAPI waveInGetDevCapsW(UINT_PTR,LPWAVEINCAPSW,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000533#define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000534UINT WINAPI waveInGetErrorTextA(UINT,LPSTR,UINT);
535UINT WINAPI waveInGetErrorTextW(UINT,LPWSTR,UINT);
536#define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
Ge van Geldorpc24ca672004-12-08 13:57:55 +0000537MMRESULT WINAPI waveInOpen(HWAVEIN*,UINT,LPCWAVEFORMATEX,DWORD_PTR,DWORD_PTR,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000538UINT WINAPI waveInClose(HWAVEIN);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000539UINT WINAPI waveInPrepareHeader(HWAVEIN,WAVEHDR*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000540UINT WINAPI waveInUnprepareHeader(HWAVEIN,WAVEHDR*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000541UINT WINAPI waveInAddBuffer(HWAVEIN,WAVEHDR*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000542UINT WINAPI waveInStart(HWAVEIN);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000543UINT WINAPI waveInStop(HWAVEIN);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000544UINT WINAPI waveInReset(HWAVEIN);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000545UINT WINAPI waveInGetPosition(HWAVEIN,LPMMTIME,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000546UINT WINAPI waveInGetID(HWAVEIN,UINT*);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000547UINT WINAPI waveInMessage(HWAVEIN,UINT,DWORD_PTR,DWORD_PTR);
Alexandre Julliard58199531994-04-21 01:20:00 +0000548
Rémi Assailly101e1f22004-11-21 15:32:31 +0000549#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)
Alexandre Julliard58199531994-04-21 01:20:00 +0000558
Alexandre Julliarda3960291999-02-26 11:11:13 +0000559typedef LPDRVCALLBACK LPMIDICALLBACK;
Alexandre Julliard58199531994-04-21 01:20:00 +0000560#define MIDIPATCHSIZE 128
561typedef WORD PATCHARRAY[MIDIPATCHSIZE];
Alexandre Julliard1285c2f1996-05-06 16:06:24 +0000562typedef WORD *LPPATCHARRAY;
Alexandre Julliard58199531994-04-21 01:20:00 +0000563typedef WORD KEYARRAY[MIDIPATCHSIZE];
Alexandre Julliard1285c2f1996-05-06 16:06:24 +0000564typedef WORD *LPKEYARRAY;
Alexandre Julliard58199531994-04-21 01:20:00 +0000565
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
Eric Pouech843ea291999-09-22 16:46:22 +0000572#define MIM_MOREDATA MM_MIM_MOREDATA
573
Alexandre Julliard58199531994-04-21 01:20:00 +0000574#define MOM_OPEN MM_MOM_OPEN
575#define MOM_CLOSE MM_MOM_CLOSE
576#define MOM_DONE MM_MOM_DONE
Eric Pouech843ea291999-09-22 16:46:22 +0000577#define MOM_POSITIONCB MM_MOM_POSITIONCB
Alexandre Julliard58199531994-04-21 01:20:00 +0000578
Alexandre Julliard54c27111998-03-29 19:44:57 +0000579/* device ID for MIDI mapper */
580
Alexandre Julliard58199531994-04-21 01:20:00 +0000581#define MIDIMAPPER (-1)
582#define MIDI_MAPPER (-1)
583
Eric Pouech29ebdb71999-12-05 02:19:24 +0000584/* Only on Win95 and up */
585#define MIDI_IO_STATUS 0x00000020L
586
Vincent Béron9a624912002-05-31 23:06:46 +0000587/* flags for wFlags parm of
588 midiOutCachePatches(),
Alexandre Julliard58199531994-04-21 01:20:00 +0000589 midiOutCacheDrumPatches() */
590#define MIDI_CACHE_ALL 1
591#define MIDI_CACHE_BESTFIT 2
592#define MIDI_CACHE_QUERY 3
593#define MIDI_UNCACHE 4
594
Robert Reif7d18f572004-08-06 18:57:36 +0000595typedef 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;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000605} MIDIOUTCAPSA, *LPMIDIOUTCAPSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +0000606
Robert Reif7d18f572004-08-06 18:57:36 +0000607typedef 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;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000617} MIDIOUTCAPSW, *LPMIDIOUTCAPSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +0000618
Alexandre Julliarda845b881998-06-01 10:44:35 +0000619DECL_WINELIB_TYPE_AW(MIDIOUTCAPS)
620DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS)
Alexandre Julliard58199531994-04-21 01:20:00 +0000621
Robert Reif7d18f572004-08-06 18:57:36 +0000622typedef 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;
636
637typedef 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;
651
652DECL_WINELIB_TYPE_AW(MIDIOUTCAPS2)
653DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS2)
654
Alexandre Julliard58199531994-04-21 01:20:00 +0000655#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 */
Jörg Höhleb3315252010-03-23 21:52:28 +0100660#define MOD_WAVETABLE 6 /* hardware watetable internal synth */
661#define MOD_SWSYNTH 7 /* software synth */
Alexandre Julliard58199531994-04-21 01:20:00 +0000662
Alexandre Julliard491502b1997-11-01 19:08:16 +0000663#define MIDICAPS_VOLUME 0x0001 /* supports volume control */
664#define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
665#define MIDICAPS_CACHE 0x0004
Eric Pouech9b3801f1998-11-24 14:50:42 +0000666#define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
Alexandre Julliard58199531994-04-21 01:20:00 +0000667
Robert Reif7d18f572004-08-06 18:57:36 +0000668typedef struct tagMIDIINCAPSA {
669 WORD wMid;
670 WORD wPid;
671 MMVERSION vDriverVersion;
672 CHAR szPname[MAXPNAMELEN];
673 DWORD dwSupport;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000674} MIDIINCAPSA, *LPMIDIINCAPSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +0000675
Robert Reif7d18f572004-08-06 18:57:36 +0000676typedef struct tagMIDIINCAPSW {
677 WORD wMid;
678 WORD wPid;
679 MMVERSION vDriverVersion;
680 WCHAR szPname[MAXPNAMELEN];
681 DWORD dwSupport;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000682} MIDIINCAPSW, *LPMIDIINCAPSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +0000683
Alexandre Julliarda845b881998-06-01 10:44:35 +0000684DECL_WINELIB_TYPE_AW(MIDIINCAPS)
685DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
Alexandre Julliard491502b1997-11-01 19:08:16 +0000686
Robert Reif7d18f572004-08-06 18:57:36 +0000687typedef struct tagMIDIINCAPS2A {
688 WORD wMid;
689 WORD wPid;
690 MMVERSION vDriverVersion;
691 CHAR szPname[MAXPNAMELEN];
692 DWORD dwSupport;
693 GUID ManufacturerGuid;
694 GUID ProductGuid;
695 GUID NameGuid;
696} MIDIINCAPS2A, *LPMIDIINCAPS2A;
697
698typedef struct tagMIDIINCAPS2W {
699 WORD wMid;
700 WORD wPid;
701 MMVERSION vDriverVersion;
702 WCHAR szPname[MAXPNAMELEN];
703 DWORD dwSupport;
704 GUID ManufacturerGuid;
705 GUID ProductGuid;
706 GUID NameGuid;
707} MIDIINCAPS2W, *LPMIDIINCAPS2W;
708
709DECL_WINELIB_TYPE_AW(MIDIINCAPS2)
710DECL_WINELIB_TYPE_AW(LPMIDIINCAPS2)
711
Eric Pouech9b3801f1998-11-24 14:50:42 +0000712/* It seems that Win32 has a slightly different structure than Win 16.
713 * sigh....
714 */
Eric Pouech28237782000-01-04 01:04:48 +0000715typedef struct midihdr_tag {
Robert Reif7d18f572004-08-06 18:57:36 +0000716 LPSTR lpData;
717 DWORD dwBufferLength;
718 DWORD dwBytesRecorded;
719 DWORD_PTR dwUser;
720 DWORD dwFlags;
721 struct midihdr_tag *lpNext;
Alexandre Julliardec1b28e2009-01-09 17:46:46 +0100722 DWORD_PTR reserved;
Jörg Höhle64b62872010-02-16 09:32:53 +0100723 /* Win 32 extended the structure with these 2 fields */
Robert Reif7d18f572004-08-06 18:57:36 +0000724 DWORD dwOffset;
725 DWORD_PTR dwReserved[8];
Alexandre Julliarda3960291999-02-26 11:11:13 +0000726} MIDIHDR, *LPMIDIHDR;
Eric Pouech9b3801f1998-11-24 14:50:42 +0000727
Alexandre Julliard58199531994-04-21 01:20:00 +0000728#define MHDR_DONE 0x00000001 /* done bit */
729#define MHDR_PREPARED 0x00000002 /* set if header prepared */
730#define MHDR_INQUEUE 0x00000004 /* reserved for driver */
Eric Pouecha4165ae1999-04-11 12:14:17 +0000731#define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
732
Rémi Assailly101e1f22004-11-21 15:32:31 +0000733typedef struct midiproptempo_tag {
Eric Pouech9b3801f1998-11-24 14:50:42 +0000734 DWORD cbStruct;
735 DWORD dwTempo;
736} MIDIPROPTEMPO, *LPMIDIPROPTEMPO;
737
Rémi Assailly101e1f22004-11-21 15:32:31 +0000738typedef struct midiproptimediv_tag {
Eric Pouech9b3801f1998-11-24 14:50:42 +0000739 DWORD cbStruct;
740 DWORD dwTimeDiv;
741} MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV;
742
743#define MIDIPROP_GET 0x40000000
744#define MIDIPROP_SET 0x80000000
745#define MIDIPROP_TEMPO 0x00000002
746#define MIDIPROP_TIMEDIV 0x00000001
747
Rémi Assailly101e1f22004-11-21 15:32:31 +0000748typedef struct midievent_tag {
Vincent Béron9a624912002-05-31 23:06:46 +0000749 DWORD dwDeltaTime; /* Time, in MIDI ticks, between the previous
Eric Pouech9b3801f1998-11-24 14:50:42 +0000750 * event and the current event. */
Vincent Béron9a624912002-05-31 23:06:46 +0000751 DWORD dwStreamID; /* Reserved; must be zero. */
Eric Pouech9b3801f1998-11-24 14:50:42 +0000752 DWORD dwEvent; /* event => see MEVT_XXX macros */
Alexandre Julliardab170a92000-09-27 00:25:24 +0000753 DWORD dwParms[1]; /* extra pmts to dwEvent if F_LONG is set */
Eric Pouech9b3801f1998-11-24 14:50:42 +0000754} MIDIEVENT, *LPMIDIEVENT;
Vincent Béron9a624912002-05-31 23:06:46 +0000755
Eric Pouech9b3801f1998-11-24 14:50:42 +0000756#define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
757#define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
758
Eric Pouecha4165ae1999-04-11 12:14:17 +0000759#define MEVT_F_CALLBACK 0x40000000l
760#define MEVT_F_LONG 0x80000000l
761#define MEVT_F_SHORT 0x00000000l
762#define MEVT_COMMENT ((BYTE)0x82)
763#define MEVT_LONGMSG ((BYTE)0x80)
764#define MEVT_NOP ((BYTE)0x02)
765#define MEVT_SHORTMSG ((BYTE)0x00)
766#define MEVT_TEMPO ((BYTE)0x01)
767#define MEVT_VERSION ((BYTE)0x84)
Alexandre Julliard58199531994-04-21 01:20:00 +0000768
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000769UINT WINAPI midiOutGetNumDevs(void);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000770UINT WINAPI midiOutGetDevCapsA(UINT_PTR,LPMIDIOUTCAPSA,UINT);
771UINT WINAPI midiOutGetDevCapsW(UINT_PTR,LPMIDIOUTCAPSW,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000772#define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
Francois Gouget8b97a3a2002-12-15 02:59:50 +0000773UINT WINAPI midiOutGetVolume(HMIDIOUT,DWORD*);
774UINT WINAPI midiOutSetVolume(HMIDIOUT,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000775UINT WINAPI midiOutGetErrorTextA(UINT,LPSTR,UINT);
776UINT WINAPI midiOutGetErrorTextW(UINT,LPWSTR,UINT);
777#define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000778UINT WINAPI midiOutOpen(LPHMIDIOUT,UINT,DWORD_PTR,DWORD_PTR,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000779UINT WINAPI midiOutClose(HMIDIOUT);
Eric Pouecha4165ae1999-04-11 12:14:17 +0000780UINT WINAPI midiOutPrepareHeader(HMIDIOUT,MIDIHDR*,UINT);
Eric Pouecha4165ae1999-04-11 12:14:17 +0000781UINT WINAPI midiOutUnprepareHeader(HMIDIOUT,MIDIHDR*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000782UINT WINAPI midiOutShortMsg(HMIDIOUT,DWORD);
Eric Pouecha4165ae1999-04-11 12:14:17 +0000783UINT WINAPI midiOutLongMsg(HMIDIOUT,MIDIHDR*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000784UINT WINAPI midiOutReset(HMIDIOUT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000785UINT WINAPI midiOutCachePatches(HMIDIOUT,UINT,WORD*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000786UINT WINAPI midiOutCacheDrumPatches(HMIDIOUT,UINT,WORD*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000787UINT WINAPI midiOutGetID(HMIDIOUT,UINT*);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000788UINT WINAPI midiOutMessage(HMIDIOUT,UINT,DWORD_PTR,DWORD_PTR);
Alexandre Julliard58199531994-04-21 01:20:00 +0000789
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000790UINT WINAPI midiInGetNumDevs(void);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000791UINT WINAPI midiInGetDevCapsA(UINT_PTR,LPMIDIINCAPSA,UINT);
792UINT WINAPI midiInGetDevCapsW(UINT_PTR,LPMIDIINCAPSW,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000793#define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000794UINT WINAPI midiInGetErrorTextA(UINT,LPSTR,UINT);
795UINT WINAPI midiInGetErrorTextW(UINT,LPWSTR,UINT);
796#define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000797UINT WINAPI midiInOpen(LPHMIDIIN,UINT,DWORD_PTR,DWORD_PTR,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000798UINT WINAPI midiInClose(HMIDIIN);
Eric Pouecha4165ae1999-04-11 12:14:17 +0000799UINT WINAPI midiInPrepareHeader(HMIDIIN,MIDIHDR*,UINT);
Eric Pouecha4165ae1999-04-11 12:14:17 +0000800UINT WINAPI midiInUnprepareHeader(HMIDIIN,MIDIHDR*,UINT);
Eric Pouecha4165ae1999-04-11 12:14:17 +0000801UINT WINAPI midiInAddBuffer(HMIDIIN,MIDIHDR*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000802UINT WINAPI midiInStart(HMIDIIN);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000803UINT WINAPI midiInStop(HMIDIIN);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000804UINT WINAPI midiInReset(HMIDIIN);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000805UINT WINAPI midiInGetID(HMIDIIN,UINT*);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000806UINT WINAPI midiInMessage(HMIDIIN,UINT,DWORD_PTR,DWORD_PTR);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000807MMRESULT WINAPI midiStreamClose(HMIDISTRM hms);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000808MMRESULT WINAPI midiStreamOpen(LPHMIDISTRM,LPUINT,DWORD,DWORD_PTR,DWORD_PTR,DWORD);
Eric Pouecha4165ae1999-04-11 12:14:17 +0000809MMRESULT WINAPI midiStreamOut(HMIDISTRM hms, LPMIDIHDR lpMidiHdr, UINT cbMidiHdr);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000810MMRESULT WINAPI midiStreamPause(HMIDISTRM hms);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000811MMRESULT WINAPI midiStreamPosition(HMIDISTRM hms, LPMMTIME lpmmt, UINT cbmmt);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000812MMRESULT WINAPI midiStreamProperty(HMIDISTRM hms, LPBYTE lpPropData, DWORD dwProperty);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000813MMRESULT WINAPI midiStreamRestart(HMIDISTRM hms);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000814MMRESULT WINAPI midiStreamStop(HMIDISTRM hms);
Eric Pouech9b3801f1998-11-24 14:50:42 +0000815
Alexandre Julliard58199531994-04-21 01:20:00 +0000816#define AUX_MAPPER (-1)
817
Robert Reif7d18f572004-08-06 18:57:36 +0000818typedef struct tagAUXCAPSA {
819 WORD wMid;
820 WORD wPid;
821 MMVERSION vDriverVersion;
822 CHAR szPname[MAXPNAMELEN];
823 WORD wTechnology;
824 WORD wReserved1;
825 DWORD dwSupport;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000826} AUXCAPSA, *LPAUXCAPSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +0000827
Robert Reif7d18f572004-08-06 18:57:36 +0000828typedef struct tagAUXCAPSW {
829 WORD wMid;
830 WORD wPid;
831 MMVERSION vDriverVersion;
832 WCHAR szPname[MAXPNAMELEN];
833 WORD wTechnology;
834 WORD wReserved1;
835 DWORD dwSupport;
Alexandre Julliarda3960291999-02-26 11:11:13 +0000836} AUXCAPSW, *LPAUXCAPSW;
Alexandre Julliard58199531994-04-21 01:20:00 +0000837
Steve Langasekc0dabf02000-01-12 04:57:38 +0000838DECL_WINELIB_TYPE_AW(AUXCAPS)
839DECL_WINELIB_TYPE_AW(LPAUXCAPS)
840
Robert Reif7d18f572004-08-06 18:57:36 +0000841typedef struct tagAUXCAPS2A {
842 WORD wMid;
843 WORD wPid;
844 MMVERSION vDriverVersion;
845 CHAR szPname[MAXPNAMELEN];
846 WORD wTechnology;
847 WORD wReserved1;
848 DWORD dwSupport;
849 GUID ManufacturerGuid;
850 GUID ProductGuid;
851 GUID NameGuid;
852} AUXCAPS2A, *LPAUXCAPS2A;
853
854typedef struct tagAUXCAPS2W {
855 WORD wMid;
856 WORD wPid;
857 MMVERSION vDriverVersion;
858 WCHAR szPname[MAXPNAMELEN];
859 WORD wTechnology;
860 WORD wReserved1;
861 DWORD dwSupport;
862 GUID ManufacturerGuid;
863 GUID ProductGuid;
864 GUID NameGuid;
865} AUXCAPS2W, *LPAUXCAPS2W;
866
867DECL_WINELIB_TYPE_AW(AUXCAPS2)
868DECL_WINELIB_TYPE_AW(LPAUXCAPS2)
869
Alexandre Julliard58199531994-04-21 01:20:00 +0000870#define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
871#define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
872
873#define AUXCAPS_VOLUME 0x0001 /* supports volume control */
874#define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
875
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000876UINT WINAPI auxGetNumDevs(void);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000877UINT WINAPI auxGetDevCapsA(UINT_PTR,LPAUXCAPSA,UINT);
878UINT WINAPI auxGetDevCapsW(UINT_PTR,LPAUXCAPSW,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000879#define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000880UINT WINAPI auxSetVolume(UINT,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000881UINT WINAPI auxGetVolume(UINT,LPDWORD);
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000882UINT WINAPI auxOutMessage(UINT,UINT,DWORD_PTR,DWORD_PTR);
Alexandre Julliard58199531994-04-21 01:20:00 +0000883
884#define TIMERR_NOERROR (0) /* no error */
885#define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
886#define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
887
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000888typedef void (CALLBACK *LPTIMECALLBACK)(UINT,UINT,DWORD_PTR,DWORD_PTR,DWORD_PTR);
Alexandre Julliard58199531994-04-21 01:20:00 +0000889
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000890#define TIME_ONESHOT 0x0000 /* program timer for single event */
891#define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
892#define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
893#define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
894#define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
Francois Gouget63d228a2003-01-03 22:32:14 +0000895#define TIME_KILL_SYNCHRONOUS 0x0100
Alexandre Julliard58199531994-04-21 01:20:00 +0000896
Robert Reif7d18f572004-08-06 18:57:36 +0000897typedef struct timecaps_tag {
Alexandre Julliarda3960291999-02-26 11:11:13 +0000898 UINT wPeriodMin;
899 UINT wPeriodMax;
900} TIMECAPS, *LPTIMECAPS;
Alexandre Julliard44ed71f1997-12-21 19:17:50 +0000901
Alexandre Julliard44ed71f1997-12-21 19:17:50 +0000902
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000903MMRESULT WINAPI timeGetSystemTime(LPMMTIME,UINT);
904DWORD WINAPI timeGetTime(void); /* same for win32/win16 */
Dmitry Timoshkov97415892003-12-31 23:49:45 +0000905MMRESULT WINAPI timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD_PTR,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000906MMRESULT WINAPI timeKillEvent(UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000907MMRESULT WINAPI timeGetDevCaps(LPTIMECAPS,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000908MMRESULT WINAPI timeBeginPeriod(UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000909MMRESULT WINAPI timeEndPeriod(UINT);
Alexandre Julliard58199531994-04-21 01:20:00 +0000910
911#define JOYERR_NOERROR (0) /* no error */
912#define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
913#define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
914#define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
915
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000916/* JOYINFO, JOYINFOEX, MM_JOY* */
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000917#define JOY_BUTTON1 0x0001
918#define JOY_BUTTON2 0x0002
919#define JOY_BUTTON3 0x0004
920#define JOY_BUTTON4 0x0008
921#define JOY_BUTTON1CHG 0x0100
922#define JOY_BUTTON2CHG 0x0200
923#define JOY_BUTTON3CHG 0x0400
924#define JOY_BUTTON4CHG 0x0800
Alexandre Julliard58199531994-04-21 01:20:00 +0000925
Eric Pouecha9ffdcf1999-03-15 15:42:26 +0000926#define JOYSTICKID1 0
927#define JOYSTICKID2 1
Alexandre Julliard58199531994-04-21 01:20:00 +0000928
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000929/* JOYCAPS.wCaps */
930#define JOYCAPS_HASZ 0x0001
931#define JOYCAPS_HASR 0x0002
932#define JOYCAPS_HASU 0x0004
933#define JOYCAPS_HASV 0x0008
934#define JOYCAPS_HASPOV 0x0010
935#define JOYCAPS_POV4DIR 0x0020
936#define JOYCAPS_POVCTS 0x0040
937
938/* JOYINFOEX stuff */
939#define JOY_POVCENTERED (WORD) -1
940#define JOY_POVFORWARD 0
941#define JOY_POVRIGHT 9000
942#define JOY_POVBACKWARD 18000
943#define JOY_POVLEFT 27000
944
945#define JOY_RETURNX 0x00000001
946#define JOY_RETURNY 0x00000002
947#define JOY_RETURNZ 0x00000004
948#define JOY_RETURNR 0x00000008
949#define JOY_RETURNU 0x00000010
950#define JOY_RETURNV 0x00000020
951#define JOY_RETURNPOV 0x00000040
952#define JOY_RETURNBUTTONS 0x00000080
953#define JOY_RETURNRAWDATA 0x00000100
954#define JOY_RETURNPOVCTS 0x00000200
955#define JOY_RETURNCENTERED 0x00000400
956#define JOY_USEDEADZONE 0x00000800
957#define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
958 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
959 JOY_RETURNPOV | JOY_RETURNBUTTONS)
960#define JOY_CAL_READALWAYS 0x00010000
961#define JOY_CAL_READXYONLY 0x00020000
962#define JOY_CAL_READ3 0x00040000
963#define JOY_CAL_READ4 0x00080000
964#define JOY_CAL_READXONLY 0x00100000
965#define JOY_CAL_READYONLY 0x00200000
966#define JOY_CAL_READ5 0x00400000
967#define JOY_CAL_READ6 0x00800000
968#define JOY_CAL_READZONLY 0x01000000
969#define JOY_CAL_READRONLY 0x02000000
970#define JOY_CAL_READUONLY 0x04000000
971#define JOY_CAL_READVONLY 0x08000000
972
Robert Reif7d18f572004-08-06 18:57:36 +0000973typedef struct tagJOYCAPSA {
Alexandre Julliard44ed71f1997-12-21 19:17:50 +0000974 WORD wMid;
975 WORD wPid;
976 CHAR szPname[MAXPNAMELEN];
Alexandre Julliarda3960291999-02-26 11:11:13 +0000977 UINT wXmin;
978 UINT wXmax;
979 UINT wYmin;
980 UINT wYmax;
981 UINT wZmin;
982 UINT wZmax;
983 UINT wNumButtons;
984 UINT wPeriodMin;
985 UINT wPeriodMax;
986 UINT wRmin;
987 UINT wRmax;
988 UINT wUmin;
989 UINT wUmax;
990 UINT wVmin;
991 UINT wVmax;
992 UINT wCaps;
993 UINT wMaxAxes;
994 UINT wNumAxes;
995 UINT wMaxButtons;
Alexandre Julliard44ed71f1997-12-21 19:17:50 +0000996 CHAR szRegKey[MAXPNAMELEN];
997 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
Alexandre Julliarda3960291999-02-26 11:11:13 +0000998} JOYCAPSA, *LPJOYCAPSA;
Alexandre Julliard44ed71f1997-12-21 19:17:50 +0000999
Robert Reif7d18f572004-08-06 18:57:36 +00001000typedef struct tagJOYCAPSW {
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001001 WORD wMid;
1002 WORD wPid;
1003 WCHAR szPname[MAXPNAMELEN];
Alexandre Julliarda3960291999-02-26 11:11:13 +00001004 UINT wXmin;
1005 UINT wXmax;
1006 UINT wYmin;
1007 UINT wYmax;
1008 UINT wZmin;
1009 UINT wZmax;
1010 UINT wNumButtons;
1011 UINT wPeriodMin;
1012 UINT wPeriodMax;
1013 UINT wRmin;
1014 UINT wRmax;
1015 UINT wUmin;
1016 UINT wUmax;
1017 UINT wVmin;
1018 UINT wVmax;
1019 UINT wCaps;
1020 UINT wMaxAxes;
1021 UINT wNumAxes;
1022 UINT wMaxButtons;
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001023 WCHAR szRegKey[MAXPNAMELEN];
1024 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
Alexandre Julliarda3960291999-02-26 11:11:13 +00001025} JOYCAPSW, *LPJOYCAPSW;
Alexandre Julliarda845b881998-06-01 10:44:35 +00001026DECL_WINELIB_TYPE_AW(JOYCAPS)
1027DECL_WINELIB_TYPE_AW(LPJOYCAPS)
Alexandre Julliard58199531994-04-21 01:20:00 +00001028
Robert Reif7d18f572004-08-06 18:57:36 +00001029typedef struct tagJOYCAPS2A {
1030 WORD wMid;
1031 WORD wPid;
1032 CHAR szPname[MAXPNAMELEN];
1033 UINT wXmin;
1034 UINT wXmax;
1035 UINT wYmin;
1036 UINT wYmax;
1037 UINT wZmin;
1038 UINT wZmax;
1039 UINT wNumButtons;
1040 UINT wPeriodMin;
1041 UINT wPeriodMax;
1042 UINT wRmin;
1043 UINT wRmax;
1044 UINT wUmin;
1045 UINT wUmax;
1046 UINT wVmin;
1047 UINT wVmax;
1048 UINT wCaps;
1049 UINT wMaxAxes;
1050 UINT wNumAxes;
1051 UINT wMaxButtons;
1052 CHAR szRegKey[MAXPNAMELEN];
1053 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
1054 GUID ManufacturerGuid;
1055 GUID ProductGuid;
1056 GUID NameGuid;
1057} JOYCAPS2A, *LPJOYCAPS2A;
1058
1059typedef struct tagJOYCAPS2W {
1060 WORD wMid;
1061 WORD wPid;
1062 WCHAR szPname[MAXPNAMELEN];
1063 UINT wXmin;
1064 UINT wXmax;
1065 UINT wYmin;
1066 UINT wYmax;
1067 UINT wZmin;
1068 UINT wZmax;
1069 UINT wNumButtons;
1070 UINT wPeriodMin;
1071 UINT wPeriodMax;
1072 UINT wRmin;
1073 UINT wRmax;
1074 UINT wUmin;
1075 UINT wUmax;
1076 UINT wVmin;
1077 UINT wVmax;
1078 UINT wCaps;
1079 UINT wMaxAxes;
1080 UINT wNumAxes;
1081 UINT wMaxButtons;
1082 WCHAR szRegKey[MAXPNAMELEN];
1083 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
1084 GUID ManufacturerGuid;
1085 GUID ProductGuid;
1086 GUID NameGuid;
1087} JOYCAPS2W, *LPJOYCAPS2W;
1088DECL_WINELIB_TYPE_AW(JOYCAPS2)
1089DECL_WINELIB_TYPE_AW(LPJOYCAPS2)
1090
1091typedef struct joyinfo_tag {
Alexandre Julliarda3960291999-02-26 11:11:13 +00001092 UINT wXpos;
1093 UINT wYpos;
1094 UINT wZpos;
1095 UINT wButtons;
1096} JOYINFO, *LPJOYINFO;
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001097
Robert Reif7d18f572004-08-06 18:57:36 +00001098typedef struct joyinfoex_tag {
1099 DWORD dwSize;
1100 DWORD dwFlags;
1101 DWORD dwXpos;
1102 DWORD dwYpos;
1103 DWORD dwZpos;
1104 DWORD dwRpos;
1105 DWORD dwUpos;
1106 DWORD dwVpos;
1107 DWORD dwButtons;
1108 DWORD dwButtonNumber;
1109 DWORD dwPOV;
1110 DWORD dwReserved1;
1111 DWORD dwReserved2;
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00001112} JOYINFOEX,*LPJOYINFOEX;
1113
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001114
Dmitry Timoshkov97415892003-12-31 23:49:45 +00001115MMRESULT WINAPI joyGetDevCapsA(UINT_PTR,LPJOYCAPSA,UINT);
1116MMRESULT WINAPI joyGetDevCapsW(UINT_PTR,LPJOYCAPSW,UINT);
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001117#define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001118UINT WINAPI joyGetNumDevs(void);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001119MMRESULT WINAPI joyGetPos(UINT,LPJOYINFO);
1120MMRESULT WINAPI joyGetPosEx(UINT,LPJOYINFOEX);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001121MMRESULT WINAPI joyGetThreshold(UINT,UINT*);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001122MMRESULT WINAPI joyReleaseCapture(UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001123MMRESULT WINAPI joySetCapture(HWND,UINT,UINT,BOOL);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001124MMRESULT WINAPI joySetThreshold(UINT,UINT);
Alexandre Julliard58199531994-04-21 01:20:00 +00001125
Eric Pouechad863111999-03-22 14:48:40 +00001126#define MIXERR_BASE 1024
1127#define MIXERR_INVALLINE (MIXERR_BASE + 0)
1128#define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
1129#define MIXERR_INVALVALUE (MIXERR_BASE + 2)
1130#define MIXERR_LASTERROR (MIXERR_BASE + 2)
1131
Robert Reif7d18f572004-08-06 18:57:36 +00001132typedef struct tagMIXERCAPSA {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001133 WORD wMid;
1134 WORD wPid;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001135 MMVERSION vDriverVersion;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001136 CHAR szPname[MAXPNAMELEN];
1137 DWORD fdwSupport;
1138 DWORD cDestinations;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001139} MIXERCAPSA,*LPMIXERCAPSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001140
Robert Reif7d18f572004-08-06 18:57:36 +00001141typedef struct tagMIXERCAPSW {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001142 WORD wMid;
1143 WORD wPid;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001144 MMVERSION vDriverVersion;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001145 WCHAR szPname[MAXPNAMELEN];
1146 DWORD fdwSupport;
1147 DWORD cDestinations;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001148} MIXERCAPSW,*LPMIXERCAPSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001149
Alexandre Julliarda845b881998-06-01 10:44:35 +00001150DECL_WINELIB_TYPE_AW(MIXERCAPS)
1151DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
Alexandre Julliard491502b1997-11-01 19:08:16 +00001152
Robert Reif7d18f572004-08-06 18:57:36 +00001153typedef struct tagMIXERCAPS2A {
1154 WORD wMid;
1155 WORD wPid;
1156 MMVERSION vDriverVersion;
1157 CHAR szPname[MAXPNAMELEN];
1158 DWORD fdwSupport;
1159 DWORD cDestinations;
1160 GUID ManufacturerGuid;
1161 GUID ProductGuid;
1162 GUID NameGuid;
1163} MIXERCAPS2A,*LPMIXERCAPS2A;
1164
1165typedef struct tagMIXERCAPS2W {
1166 WORD wMid;
1167 WORD wPid;
1168 MMVERSION vDriverVersion;
1169 WCHAR szPname[MAXPNAMELEN];
1170 DWORD fdwSupport;
1171 DWORD cDestinations;
1172 GUID ManufacturerGuid;
1173 GUID ProductGuid;
1174 GUID NameGuid;
1175} MIXERCAPS2W,*LPMIXERCAPS2W;
1176
1177DECL_WINELIB_TYPE_AW(MIXERCAPS2)
1178DECL_WINELIB_TYPE_AW(LPMIXERCAPS2)
1179
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001180#define MIXER_SHORT_NAME_CHARS 16
1181#define MIXER_LONG_NAME_CHARS 64
Alexandre Julliard491502b1997-11-01 19:08:16 +00001182
1183/* MIXERLINE.fdwLine */
1184#define MIXERLINE_LINEF_ACTIVE 0x00000001
1185#define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1186#define MIXERLINE_LINEF_SOURCE 0x80000000
1187
Eric Pouech668228a1999-09-05 16:39:23 +00001188/* Mixer flags */
1189#define MIXER_OBJECTF_HANDLE 0x80000000L
1190#define MIXER_OBJECTF_MIXER 0x00000000L
1191#define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
1192#define MIXER_OBJECTF_WAVEOUT 0x10000000L
1193#define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
1194#define MIXER_OBJECTF_WAVEIN 0x20000000L
1195#define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
1196#define MIXER_OBJECTF_MIDIOUT 0x30000000L
1197#define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
1198#define MIXER_OBJECTF_MIDIIN 0x40000000L
1199#define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
1200#define MIXER_OBJECTF_AUX 0x50000000L
1201
Alexandre Julliard491502b1997-11-01 19:08:16 +00001202/* MIXERLINE.dwComponentType */
1203/* component types for destinations and sources */
1204#define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1205#define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1206#define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1207#define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1208#define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1209#define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1210#define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1211#define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1212#define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1213#define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1214#define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1215
1216#define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1217#define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1218#define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1219#define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1220#define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1221#define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1222#define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1223#define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1224#define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1225#define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1226#define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1227#define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1228#define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1229
1230/* MIXERLINE.Target.dwType */
1231#define MIXERLINE_TARGETTYPE_UNDEFINED 0
1232#define MIXERLINE_TARGETTYPE_WAVEOUT 1
1233#define MIXERLINE_TARGETTYPE_WAVEIN 2
1234#define MIXERLINE_TARGETTYPE_MIDIOUT 3
1235#define MIXERLINE_TARGETTYPE_MIDIIN 4
1236#define MIXERLINE_TARGETTYPE_AUX 5
1237
Rémi Assailly101e1f22004-11-21 15:32:31 +00001238typedef struct tagMIXERLINEA {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001239 DWORD cbStruct;
1240 DWORD dwDestination;
1241 DWORD dwSource;
1242 DWORD dwLineID;
1243 DWORD fdwLine;
Alexandre Julliardec1b28e2009-01-09 17:46:46 +01001244 DWORD_PTR dwUser;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001245 DWORD dwComponentType;
1246 DWORD cChannels;
1247 DWORD cConnections;
1248 DWORD cControls;
1249 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1250 CHAR szName[MIXER_LONG_NAME_CHARS];
1251 struct {
1252 DWORD dwType;
1253 DWORD dwDeviceID;
1254 WORD wMid;
1255 WORD wPid;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001256 MMVERSION vDriverVersion;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001257 CHAR szPname[MAXPNAMELEN];
1258 } Target;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001259} MIXERLINEA, *LPMIXERLINEA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001260
Rémi Assailly101e1f22004-11-21 15:32:31 +00001261typedef struct tagMIXERLINEW {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001262 DWORD cbStruct;
1263 DWORD dwDestination;
1264 DWORD dwSource;
1265 DWORD dwLineID;
1266 DWORD fdwLine;
Alexandre Julliardec1b28e2009-01-09 17:46:46 +01001267 DWORD_PTR dwUser;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001268 DWORD dwComponentType;
1269 DWORD cChannels;
1270 DWORD cConnections;
1271 DWORD cControls;
1272 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1273 WCHAR szName[MIXER_LONG_NAME_CHARS];
1274 struct {
1275 DWORD dwType;
1276 DWORD dwDeviceID;
1277 WORD wMid;
1278 WORD wPid;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001279 MMVERSION vDriverVersion;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001280 WCHAR szPname[MAXPNAMELEN];
1281 } Target;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001282} MIXERLINEW, *LPMIXERLINEW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001283
Alexandre Julliarda845b881998-06-01 10:44:35 +00001284DECL_WINELIB_TYPE_AW(MIXERLINE)
1285DECL_WINELIB_TYPE_AW(LPMIXERLINE)
Alexandre Julliard491502b1997-11-01 19:08:16 +00001286
1287/* MIXERCONTROL.fdwControl */
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001288#define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1289#define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1290#define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
Alexandre Julliard491502b1997-11-01 19:08:16 +00001291
1292/* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1293#define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1294#define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1295#define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1296#define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1297#define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1298#define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1299#define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1300#define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1301#define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1302
1303#define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1304
1305#define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1306#define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1307
1308#define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1309
1310#define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1311#define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1312
1313#define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1314#define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1315
1316#define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1317#define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1318#define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1319#define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1320#define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1321#define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1322#define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1323
1324/* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1325#define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1326#define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1327#define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1328#define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1329#define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1330#define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1331#define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1332#define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1333#define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1334#define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1335#define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
Robert Reif8abc3ab2004-08-09 18:44:45 +00001336#define MIXERCONTROL_CONTROLTYPE_BASS_BOOST (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 0x00002277)
Alexandre Julliard491502b1997-11-01 19:08:16 +00001337#define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1338#define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1339#define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1340#define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1341#define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1342#define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1343#define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1344#define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1345#define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1346#define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1347#define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1348#define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1349#define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1350#define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1351#define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1352#define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1353#define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1354#define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1355#define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1356
1357
Rémi Assailly101e1f22004-11-21 15:32:31 +00001358typedef struct tagMIXERCONTROLA {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001359 DWORD cbStruct;
1360 DWORD dwControlID;
1361 DWORD dwControlType;
1362 DWORD fdwControl;
1363 DWORD cMultipleItems;
1364 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1365 CHAR szName[MIXER_LONG_NAME_CHARS];
1366 union {
1367 struct {
1368 LONG lMinimum;
1369 LONG lMaximum;
Patrik Stridvall32b43251999-09-14 07:52:16 +00001370 } DUMMYSTRUCTNAME;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001371 struct {
1372 DWORD dwMinimum;
1373 DWORD dwMaximum;
Patrik Stridvall32b43251999-09-14 07:52:16 +00001374 } DUMMYSTRUCTNAME1;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001375 DWORD dwReserved[6];
1376 } Bounds;
1377 union {
1378 DWORD cSteps;
1379 DWORD cbCustomData;
1380 DWORD dwReserved[6];
1381 } Metrics;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001382} MIXERCONTROLA, *LPMIXERCONTROLA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001383
Rémi Assailly101e1f22004-11-21 15:32:31 +00001384typedef struct MIXERCONTROLW {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001385 DWORD cbStruct;
1386 DWORD dwControlID;
1387 DWORD dwControlType;
1388 DWORD fdwControl;
1389 DWORD cMultipleItems;
1390 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1391 WCHAR szName[MIXER_LONG_NAME_CHARS];
1392 union {
1393 struct {
1394 LONG lMinimum;
1395 LONG lMaximum;
Patrik Stridvall32b43251999-09-14 07:52:16 +00001396 } DUMMYSTRUCTNAME;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001397 struct {
1398 DWORD dwMinimum;
1399 DWORD dwMaximum;
Patrik Stridvall32b43251999-09-14 07:52:16 +00001400 } DUMMYSTRUCTNAME1;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001401 DWORD dwReserved[6];
1402 } Bounds;
1403 union {
1404 DWORD cSteps;
1405 DWORD cbCustomData;
1406 DWORD dwReserved[6];
1407 } Metrics;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001408} MIXERCONTROLW, *LPMIXERCONTROLW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001409
Alexandre Julliarda845b881998-06-01 10:44:35 +00001410DECL_WINELIB_TYPE_AW(MIXERCONTROL)
1411DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
Alexandre Julliard491502b1997-11-01 19:08:16 +00001412
Rémi Assailly101e1f22004-11-21 15:32:31 +00001413typedef struct tagMIXERLINECONTROLSA {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001414 DWORD cbStruct;
1415 DWORD dwLineID;
1416 union {
1417 DWORD dwControlID;
1418 DWORD dwControlType;
Patrik Stridvall32b43251999-09-14 07:52:16 +00001419 } DUMMYUNIONNAME;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001420 DWORD cControls;
1421 DWORD cbmxctrl;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001422 LPMIXERCONTROLA pamxctrl;
1423} MIXERLINECONTROLSA, *LPMIXERLINECONTROLSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001424
Rémi Assailly101e1f22004-11-21 15:32:31 +00001425typedef struct tagMIXERLINECONTROLSW {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001426 DWORD cbStruct;
1427 DWORD dwLineID;
1428 union {
1429 DWORD dwControlID;
1430 DWORD dwControlType;
Patrik Stridvall32b43251999-09-14 07:52:16 +00001431 } DUMMYUNIONNAME;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001432 DWORD cControls;
1433 DWORD cbmxctrl;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001434 LPMIXERCONTROLW pamxctrl;
1435} MIXERLINECONTROLSW, *LPMIXERLINECONTROLSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001436
Alexandre Julliarda845b881998-06-01 10:44:35 +00001437DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
1438DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
Alexandre Julliard491502b1997-11-01 19:08:16 +00001439
Rémi Assailly101e1f22004-11-21 15:32:31 +00001440typedef struct tMIXERCONTROLDETAILS {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001441 DWORD cbStruct;
1442 DWORD dwControlID;
1443 DWORD cChannels;
1444 union {
Alexandre Julliarda3960291999-02-26 11:11:13 +00001445 HWND hwndOwner;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001446 DWORD cMultipleItems;
Patrik Stridvall32b43251999-09-14 07:52:16 +00001447 } DUMMYUNIONNAME;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001448 DWORD cbDetails;
1449 LPVOID paDetails;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001450} MIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001451
Rémi Assailly101e1f22004-11-21 15:32:31 +00001452typedef struct tagMIXERCONTROLDETAILS_LISTTEXTA {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001453 DWORD dwParam1;
1454 DWORD dwParam2;
1455 CHAR szName[MIXER_LONG_NAME_CHARS];
Alexandre Julliarda3960291999-02-26 11:11:13 +00001456} MIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001457
Rémi Assailly101e1f22004-11-21 15:32:31 +00001458typedef struct tagMIXERCONTROLDETAILS_LISTTEXTW {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001459 DWORD dwParam1;
1460 DWORD dwParam2;
1461 WCHAR szName[MIXER_LONG_NAME_CHARS];
Alexandre Julliarda3960291999-02-26 11:11:13 +00001462} MIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001463
Alexandre Julliarda845b881998-06-01 10:44:35 +00001464DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
1465DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
Alexandre Julliard491502b1997-11-01 19:08:16 +00001466
1467/* MIXER_GETCONTROLDETAILSF_VALUE */
1468typedef struct {
1469 LONG fValue;
1470} MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1471
1472typedef struct {
1473 LONG lValue;
1474} MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1475
1476typedef struct {
1477 DWORD dwValue;
1478} MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1479
1480/* bits passed to mixerGetLineInfo.fdwInfo */
1481#define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1482#define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1483#define MIXER_GETLINEINFOF_LINEID 0x00000002L
1484#define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1485#define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1486#define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1487
1488/* bitmask passed to mixerGetLineControl */
1489#define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1490#define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1491#define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1492#define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1493
1494/* bitmask passed to mixerGetControlDetails */
1495#define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1496#define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1497#define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1498
1499/* bitmask passed to mixerSetControlDetails */
1500#define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1501#define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1502#define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1503
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001504UINT WINAPI mixerGetNumDevs(void);
Dmitry Timoshkov97415892003-12-31 23:49:45 +00001505UINT WINAPI mixerOpen(LPHMIXER,UINT,DWORD_PTR,DWORD_PTR,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001506UINT WINAPI mixerClose(HMIXER);
Ge van Geldorpc24ca672004-12-08 13:57:55 +00001507DWORD WINAPI mixerMessage(HMIXER,UINT,DWORD_PTR,DWORD_PTR);
Dmitry Timoshkov97415892003-12-31 23:49:45 +00001508UINT WINAPI mixerGetDevCapsA(UINT_PTR,LPMIXERCAPSA,UINT);
1509UINT WINAPI mixerGetDevCapsW(UINT_PTR,LPMIXERCAPSW,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001510#define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001511UINT WINAPI mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
1512UINT WINAPI mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
1513#define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001514UINT WINAPI mixerGetID(HMIXEROBJ,LPUINT,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001515UINT WINAPI mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
1516UINT WINAPI mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
Eric Pouechad863111999-03-22 14:48:40 +00001517#define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001518UINT WINAPI mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1519UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1520#define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001521UINT WINAPI mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
Alexandre Julliard491502b1997-11-01 19:08:16 +00001522
Alexandre Julliard58199531994-04-21 01:20:00 +00001523#define MMIOERR_BASE 256
1524#define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1525#define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1526#define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1527#define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1528#define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1529#define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1530#define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1531#define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1532#define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1533#define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
Dmitry Timoshkov08de86c2005-09-16 19:40:27 +00001534#define MMIOERR_PATHNOTFOUND (MMIOERR_BASE + 11)
1535#define MMIOERR_ACCESSDENIED (MMIOERR_BASE + 12)
1536#define MMIOERR_SHARINGVIOLATION (MMIOERR_BASE + 13)
1537#define MMIOERR_NETWORKERROR (MMIOERR_BASE + 14)
1538#define MMIOERR_TOOMANYOPENFILES (MMIOERR_BASE + 15)
1539#define MMIOERR_INVALIDFILE (MMIOERR_BASE + 16)
Alexandre Julliard58199531994-04-21 01:20:00 +00001540
1541#define CFSEPCHAR '+' /* compound file name separator char. */
1542
1543typedef DWORD FOURCC; /* a four character code */
Patrik Stridvallf94462f2002-01-31 23:22:07 +00001544typedef LRESULT (CALLBACK *LPMMIOPROC) (LPSTR lpmmioinfo, UINT uMessage,
Eric Pouech737db5f2000-06-25 12:50:11 +00001545 LPARAM lParam1, LPARAM lParam2);
Alexandre Julliard58199531994-04-21 01:20:00 +00001546
Rémi Assailly101e1f22004-11-21 15:32:31 +00001547typedef struct _MMIOINFO {
Alexandre Julliard491502b1997-11-01 19:08:16 +00001548 DWORD dwFlags;
1549 FOURCC fccIOProc;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001550 LPMMIOPROC pIOProc;
1551 UINT wErrorRet;
Eric Pouechf8fe3662000-03-19 21:16:37 +00001552 HTASK hTask;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001553 /* fields maintained by MMIO functions during buffered I/O */
1554 LONG cchBuffer;
1555 HPSTR pchBuffer;
1556 HPSTR pchNext;
1557 HPSTR pchEndRead;
1558 HPSTR pchEndWrite;
1559 LONG lBufOffset;
1560 /* fields maintained by I/O procedure */
1561 LONG lDiskOffset;
1562 DWORD adwInfo[3];
1563 /* other fields maintained by MMIO */
1564 DWORD dwReserved1;
1565 DWORD dwReserved2;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001566 HMMIO hmmio;
1567} MMIOINFO, *PMMIOINFO, *LPMMIOINFO;
Alexandre Julliardf4eb65b1999-02-09 14:22:01 +00001568
Alexandre Julliard58199531994-04-21 01:20:00 +00001569
1570typedef struct _MMCKINFO
1571{
1572 FOURCC ckid; /* chunk ID */
1573 DWORD cksize; /* chunk size */
1574 FOURCC fccType; /* form type or list type */
1575 DWORD dwDataOffset; /* offset of data portion of chunk */
1576 DWORD dwFlags; /* flags used by MMIO functions */
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00001577} MMCKINFO, *LPMMCKINFO;
Alexandre Julliard58199531994-04-21 01:20:00 +00001578
1579#define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1580#define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1581
1582#define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1583#define MMIO_PARSE 0x00000100 /* parse new file returning path */
1584#define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1585#define MMIO_EXIST 0x00004000 /* checks for existence of file */
1586#define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1587#define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1588
1589#define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1590
1591#define MMIO_READ 0x00000000 /* open file for reading only */
1592#define MMIO_WRITE 0x00000001 /* open file for writing only */
1593#define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1594
1595#define MMIO_COMPAT 0x00000000 /* compatibility mode */
1596#define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1597#define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1598#define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1599#define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1600
1601#define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1602#define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1603#define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1604#define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1605#define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1606#define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1607#define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1608#define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1609#define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1610#define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1611#define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1612#define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1613
Steven Edwards882e8ad2002-04-25 23:04:27 +00001614#ifndef SEEK_SET
Alexandre Julliard7e50df31994-08-06 11:22:41 +00001615#define SEEK_SET 0
1616#define SEEK_CUR 1
1617#define SEEK_END 2
Steven Edwards882e8ad2002-04-25 23:04:27 +00001618#endif /* SEEK_SET */
Alexandre Julliard7e50df31994-08-06 11:22:41 +00001619
Alexandre Julliard58199531994-04-21 01:20:00 +00001620#define MMIOM_READ MMIO_READ /* read */
1621#define MMIOM_WRITE MMIO_WRITE /* write */
1622#define MMIOM_SEEK 2 /* seek to a new position in file */
1623#define MMIOM_OPEN 3 /* open file */
1624#define MMIOM_CLOSE 4 /* close file */
1625#define MMIOM_WRITEFLUSH 5 /* write and flush */
1626
1627#define MMIOM_RENAME 6 /* rename specified file */
1628
1629#define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1630
1631#define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1632#define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1633
1634#define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1635#define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1636
1637#define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1638
1639#define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1640 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1641 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1642
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001643LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
1644LPMMIOPROC WINAPI mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
1645#define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
Alexandre Julliard3db94ef1997-09-28 17:43:24 +00001646
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001647FOURCC WINAPI mmioStringToFOURCCA(LPCSTR,UINT);
1648FOURCC WINAPI mmioStringToFOURCCW(LPCWSTR,UINT);
1649#define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
Eric Pouechf8fe3662000-03-19 21:16:37 +00001650HMMIO WINAPI mmioOpenA(LPSTR,MMIOINFO*,DWORD);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001651HMMIO WINAPI mmioOpenW(LPWSTR,MMIOINFO*,DWORD);
1652#define mmioOpen WINELIB_NAME_AW(mmioOpen)
Alexandre Julliard58199531994-04-21 01:20:00 +00001653
Eric Pouechd585e7a2001-12-04 19:40:28 +00001654MMRESULT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
Eric Pouech78b50f22003-09-15 20:13:30 +00001655 const MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
Eric Pouechd585e7a2001-12-04 19:40:28 +00001656MMRESULT WINAPI mmioRenameW(LPCWSTR szFileName, LPCWSTR szNewFileName,
Eric Pouech78b50f22003-09-15 20:13:30 +00001657 const MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001658#define mmioRename WINELIB_NAME_AW(mmioRename)
Alexandre Julliard58199531994-04-21 01:20:00 +00001659
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001660MMRESULT WINAPI mmioClose(HMMIO,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001661LONG WINAPI mmioRead(HMMIO,HPSTR,LONG);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001662LONG WINAPI mmioWrite(HMMIO,HPCSTR,LONG);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001663LONG WINAPI mmioSeek(HMMIO,LONG,INT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001664MMRESULT WINAPI mmioGetInfo(HMMIO,MMIOINFO*,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001665MMRESULT WINAPI mmioSetInfo(HMMIO,const MMIOINFO*,UINT);
Eric Pouechd585e7a2001-12-04 19:40:28 +00001666MMRESULT WINAPI mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
1667MMRESULT WINAPI mmioFlush(HMMIO,UINT);
1668MMRESULT WINAPI mmioAdvance(HMMIO,MMIOINFO*,UINT);
1669LRESULT WINAPI mmioSendMessage(HMMIO,UINT,LPARAM,LPARAM);
1670MMRESULT WINAPI mmioDescend(HMMIO,MMCKINFO*,const MMCKINFO*,UINT);
1671MMRESULT WINAPI mmioAscend(HMMIO,MMCKINFO*,UINT);
1672MMRESULT WINAPI mmioCreateChunk(HMMIO,MMCKINFO*,UINT);
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001673
Patrik Stridvallf94462f2002-01-31 23:22:07 +00001674typedef UINT (CALLBACK *YIELDPROC)(MCIDEVICEID,DWORD);
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001675
Eric Pouech1eed5522005-02-09 22:26:25 +00001676BOOL WINAPI mciExecute(LPCSTR);
1677DWORD WINAPI mciSendCommandA(MCIDEVICEID,UINT,DWORD_PTR,DWORD_PTR);
1678DWORD WINAPI mciSendCommandW(MCIDEVICEID,UINT,DWORD_PTR,DWORD_PTR);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001679#define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001680DWORD WINAPI mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
Eric Pouech78b50f22003-09-15 20:13:30 +00001681DWORD WINAPI mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001682#define mciSendString WINELIB_NAME_AW(mciSendString)
Eric Pouech1eed5522005-02-09 22:26:25 +00001683MCIDEVICEID WINAPI mciGetDeviceIDA(LPCSTR);
1684MCIDEVICEID WINAPI mciGetDeviceIDW(LPCWSTR);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001685#define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
Eric Pouech1eed5522005-02-09 22:26:25 +00001686MCIDEVICEID WINAPI mciGetDeviceIDFromElementIDA(DWORD,LPCSTR);
1687MCIDEVICEID WINAPI mciGetDeviceIDFromElementIDW(DWORD,LPCWSTR);
1688#define mciGetDeviceIDFromElementID WINELIB_NAME_AW(mciGetDeviceIDFromElementID)
1689BOOL WINAPI mciGetErrorStringA(MCIERROR,LPSTR,UINT);
1690BOOL WINAPI mciGetErrorStringW(MCIERROR,LPWSTR,UINT);
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001691#define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
Eric Pouech1eed5522005-02-09 22:26:25 +00001692BOOL WINAPI mciSetYieldProc(MCIDEVICEID,YIELDPROC,DWORD);
1693HTASK WINAPI mciGetCreatorTask(MCIDEVICEID);
1694YIELDPROC WINAPI mciGetYieldProc(MCIDEVICEID,DWORD*);
Alexandre Julliard58199531994-04-21 01:20:00 +00001695
1696#define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1697#define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1698#define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1699#define MCIERR_HARDWARE (MCIERR_BASE + 6)
1700#define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1701#define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1702#define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1703#define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1704#define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1705#define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1706#define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1707#define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1708#define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1709#define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1710#define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1711#define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1712#define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1713#define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1714#define MCIERR_INTERNAL (MCIERR_BASE + 21)
1715#define MCIERR_DRIVER (MCIERR_BASE + 22)
1716#define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1717#define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1718#define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1719#define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1720#define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1721#define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1722#define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1723#define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1724#define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1725#define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1726#define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1727#define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1728#define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1729#define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1730#define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1731#define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1732#define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1733#define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1734#define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1735#define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1736#define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1737#define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1738#define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1739#define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1740#define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1741#define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1742#define MCIERR_GET_CD (MCIERR_BASE + 51)
1743#define MCIERR_SET_CD (MCIERR_BASE + 52)
1744#define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1745#define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1746#define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1747#define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1748
1749#define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1750#define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1751#define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1752#define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1753#define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1754#define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1755#define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1756#define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1757#define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1758#define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1759
1760#define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1761#define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1762#define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1763#define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1764#define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1765#define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1766#define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1767#define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1768
1769#define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1770#define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1771#define MCIERR_FILE_READ (MCIERR_BASE + 92)
1772#define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1773
Eric Pouechf919cf31999-12-25 22:54:11 +00001774#define MCIERR_NO_IDENTITY (MCIERR_BASE + 94)
1775
Alexandre Julliard58199531994-04-21 01:20:00 +00001776#define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1777
Eric Pouecha9ffdcf1999-03-15 15:42:26 +00001778#define MCI_OPEN_DRIVER 0x0801
1779#define MCI_CLOSE_DRIVER 0x0802
1780#define MCI_OPEN 0x0803
1781#define MCI_CLOSE 0x0804
Alexandre Julliard58199531994-04-21 01:20:00 +00001782#define MCI_ESCAPE 0x0805
1783#define MCI_PLAY 0x0806
1784#define MCI_SEEK 0x0807
1785#define MCI_STOP 0x0808
1786#define MCI_PAUSE 0x0809
1787#define MCI_INFO 0x080A
1788#define MCI_GETDEVCAPS 0x080B
1789#define MCI_SPIN 0x080C
1790#define MCI_SET 0x080D
1791#define MCI_STEP 0x080E
1792#define MCI_RECORD 0x080F
1793#define MCI_SYSINFO 0x0810
1794#define MCI_BREAK 0x0811
1795#define MCI_SOUND 0x0812
1796#define MCI_SAVE 0x0813
1797#define MCI_STATUS 0x0814
1798#define MCI_CUE 0x0830
1799#define MCI_REALIZE 0x0840
1800#define MCI_WINDOW 0x0841
1801#define MCI_PUT 0x0842
1802#define MCI_WHERE 0x0843
1803#define MCI_FREEZE 0x0844
1804#define MCI_UNFREEZE 0x0845
1805#define MCI_LOAD 0x0850
1806#define MCI_CUT 0x0851
1807#define MCI_COPY 0x0852
1808#define MCI_PASTE 0x0853
1809#define MCI_UPDATE 0x0854
1810#define MCI_RESUME 0x0855
1811#define MCI_DELETE 0x0856
1812
1813#define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1814
Jörg Höhle65011132009-11-14 14:40:04 +01001815#define MCI_ALL_DEVICE_ID 0xFFFFFFFF
Alexandre Julliard58199531994-04-21 01:20:00 +00001816
1817#define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1818#define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1819#define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1820#define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1821#define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1822#define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1823#define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1824#define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1825#define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1826#define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1827#define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1828
1829#define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1830#define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1831
1832#define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1833#define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1834#define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1835#define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1836#define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1837#define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1838#define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1839
1840#define MCI_FORMAT_MILLISECONDS 0
1841#define MCI_FORMAT_HMS 1
1842#define MCI_FORMAT_MSF 2
1843#define MCI_FORMAT_FRAMES 3
1844#define MCI_FORMAT_SMPTE_24 4
1845#define MCI_FORMAT_SMPTE_25 5
1846#define MCI_FORMAT_SMPTE_30 6
1847#define MCI_FORMAT_SMPTE_30DROP 7
1848#define MCI_FORMAT_BYTES 8
1849#define MCI_FORMAT_SAMPLES 9
1850#define MCI_FORMAT_TMSF 10
1851
1852#define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1853#define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1854#define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1855
1856#define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1857 ((WORD)(s)<<8)) | \
1858 (((DWORD)(BYTE)(f))<<16)))
1859
1860#define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1861#define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1862#define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1863#define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1864
1865#define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1866 ((WORD)(m)<<8)) | \
1867 (((DWORD)(BYTE)(s) | \
1868 ((WORD)(f)<<8))<<16)))
1869
1870#define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1871#define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1872#define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1873
1874#define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1875 ((WORD)(m)<<8)) | \
1876 (((DWORD)(BYTE)(s))<<16)))
1877
1878#define MCI_NOTIFY_SUCCESSFUL 0x0001
1879#define MCI_NOTIFY_SUPERSEDED 0x0002
1880#define MCI_NOTIFY_ABORTED 0x0004
1881#define MCI_NOTIFY_FAILURE 0x0008
1882
1883#define MCI_NOTIFY 0x00000001L
1884#define MCI_WAIT 0x00000002L
1885#define MCI_FROM 0x00000004L
1886#define MCI_TO 0x00000008L
1887#define MCI_TRACK 0x00000010L
1888
1889#define MCI_OPEN_SHAREABLE 0x00000100L
1890#define MCI_OPEN_ELEMENT 0x00000200L
1891#define MCI_OPEN_ALIAS 0x00000400L
1892#define MCI_OPEN_ELEMENT_ID 0x00000800L
1893#define MCI_OPEN_TYPE_ID 0x00001000L
1894#define MCI_OPEN_TYPE 0x00002000L
1895
1896#define MCI_SEEK_TO_START 0x00000100L
1897#define MCI_SEEK_TO_END 0x00000200L
1898
1899#define MCI_STATUS_ITEM 0x00000100L
1900#define MCI_STATUS_START 0x00000200L
1901
1902#define MCI_STATUS_LENGTH 0x00000001L
1903#define MCI_STATUS_POSITION 0x00000002L
1904#define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1905#define MCI_STATUS_MODE 0x00000004L
1906#define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1907#define MCI_STATUS_TIME_FORMAT 0x00000006L
1908#define MCI_STATUS_READY 0x00000007L
1909#define MCI_STATUS_CURRENT_TRACK 0x00000008L
1910
1911#define MCI_INFO_PRODUCT 0x00000100L
1912#define MCI_INFO_FILE 0x00000200L
Eric Pouechf919cf31999-12-25 22:54:11 +00001913#define MCI_INFO_MEDIA_UPC 0x00000400L
1914#define MCI_INFO_MEDIA_IDENTITY 0x00000800L
1915#define MCI_INFO_NAME 0x00001000L
1916#define MCI_INFO_COPYRIGHT 0x00002000L
Alexandre Julliard58199531994-04-21 01:20:00 +00001917
1918#define MCI_GETDEVCAPS_ITEM 0x00000100L
1919
1920#define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1921#define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1922#define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1923#define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1924#define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1925#define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1926#define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1927#define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1928#define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1929
1930#define MCI_SYSINFO_QUANTITY 0x00000100L
1931#define MCI_SYSINFO_OPEN 0x00000200L
1932#define MCI_SYSINFO_NAME 0x00000400L
1933#define MCI_SYSINFO_INSTALLNAME 0x00000800L
1934
1935#define MCI_SET_DOOR_OPEN 0x00000100L
1936#define MCI_SET_DOOR_CLOSED 0x00000200L
1937#define MCI_SET_TIME_FORMAT 0x00000400L
1938#define MCI_SET_AUDIO 0x00000800L
1939#define MCI_SET_VIDEO 0x00001000L
1940#define MCI_SET_ON 0x00002000L
1941#define MCI_SET_OFF 0x00004000L
1942
1943#define MCI_SET_AUDIO_ALL 0x00000000L
1944#define MCI_SET_AUDIO_LEFT 0x00000001L
1945#define MCI_SET_AUDIO_RIGHT 0x00000002L
1946
1947#define MCI_BREAK_KEY 0x00000100L
1948#define MCI_BREAK_HWND 0x00000200L
1949#define MCI_BREAK_OFF 0x00000400L
1950
1951#define MCI_RECORD_INSERT 0x00000100L
1952#define MCI_RECORD_OVERWRITE 0x00000200L
1953
1954#define MCI_SOUND_NAME 0x00000100L
1955
1956#define MCI_SAVE_FILE 0x00000100L
1957
1958#define MCI_LOAD_FILE 0x00000100L
1959
Rémi Assailly101e1f22004-11-21 15:32:31 +00001960typedef struct tagMCI_GENERIC_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00001961 DWORD_PTR dwCallback;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00001962} MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00001963
Rémi Assailly101e1f22004-11-21 15:32:31 +00001964typedef struct tagMCI_OPEN_PARMSA {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00001965 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001966 MCIDEVICEID wDeviceID;
Felix Nawothnig7f6554b2005-08-18 10:53:58 +00001967 LPCSTR lpstrDeviceType;
1968 LPCSTR lpstrElementName;
1969 LPCSTR lpstrAlias;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001970} MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001971
Rémi Assailly101e1f22004-11-21 15:32:31 +00001972typedef struct tagMCI_OPEN_PARMSW {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00001973 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001974 MCIDEVICEID wDeviceID;
Felix Nawothnig7f6554b2005-08-18 10:53:58 +00001975 LPCWSTR lpstrDeviceType;
1976 LPCWSTR lpstrElementName;
1977 LPCWSTR lpstrAlias;
Alexandre Julliarda3960291999-02-26 11:11:13 +00001978} MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00001979
Alexandre Julliarda845b881998-06-01 10:44:35 +00001980DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
1981DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00001982
Rémi Assailly101e1f22004-11-21 15:32:31 +00001983typedef struct tagMCI_PLAY_PARMS{
Dmitry Timoshkov97415892003-12-31 23:49:45 +00001984 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00001985 DWORD dwFrom;
1986 DWORD dwTo;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00001987} MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00001988
Rémi Assailly101e1f22004-11-21 15:32:31 +00001989typedef struct tagMCI_SEEK_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00001990 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00001991 DWORD dwTo;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00001992} MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00001993
Rémi Assailly101e1f22004-11-21 15:32:31 +00001994typedef struct tagMCI_STATUS_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00001995 DWORD_PTR dwCallback;
Alexandre Julliardec1b28e2009-01-09 17:46:46 +01001996 DWORD_PTR dwReturn;
Alexandre Julliard58199531994-04-21 01:20:00 +00001997 DWORD dwItem;
1998 DWORD dwTrack;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00001999} MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00002000
Rémi Assailly101e1f22004-11-21 15:32:31 +00002001typedef struct tagMCI_INFO_PARMSA {
Eric Pouech1eed5522005-02-09 22:26:25 +00002002 DWORD_PTR dwCallback;
2003 LPSTR lpstrReturn;
2004 DWORD dwRetSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002005} MCI_INFO_PARMSA, *LPMCI_INFO_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002006
Rémi Assailly101e1f22004-11-21 15:32:31 +00002007typedef struct tagMCI_INFO_PARMSW {
Eric Pouech1eed5522005-02-09 22:26:25 +00002008 DWORD_PTR dwCallback;
2009 LPWSTR lpstrReturn;
2010 DWORD dwRetSize;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002011} MCI_INFO_PARMSW, *LPMCI_INFO_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002012
Alexandre Julliarda845b881998-06-01 10:44:35 +00002013DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
2014DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00002015
Rémi Assailly101e1f22004-11-21 15:32:31 +00002016typedef struct tagMCI_GETDEVCAPS_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002017 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002018 DWORD dwReturn;
2019 DWORD dwItem;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002020} MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00002021
Eric Pouech1eed5522005-02-09 22:26:25 +00002022typedef struct tagMCI_SYSINFO_PARMSA {
2023 DWORD_PTR dwCallback;
2024 LPSTR lpstrReturn;
2025 DWORD dwRetSize;
2026 DWORD dwNumber;
2027 UINT wDeviceType;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002028} MCI_SYSINFO_PARMSA, *LPMCI_SYSINFO_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002029
Eric Pouech1eed5522005-02-09 22:26:25 +00002030typedef struct tagMCI_SYSINFO_PARMSW {
2031 DWORD_PTR dwCallback;
2032 LPWSTR lpstrReturn;
2033 DWORD dwRetSize;
2034 DWORD dwNumber;
2035 UINT wDeviceType;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002036} MCI_SYSINFO_PARMSW, *LPMCI_SYSINFO_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002037
Alexandre Julliarda845b881998-06-01 10:44:35 +00002038DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
2039DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00002040
Rémi Assailly101e1f22004-11-21 15:32:31 +00002041typedef struct tagMCI_SET_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002042 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002043 DWORD dwTimeFormat;
2044 DWORD dwAudio;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002045} MCI_SET_PARMS, *LPMCI_SET_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00002046
Rémi Assailly101e1f22004-11-21 15:32:31 +00002047typedef struct tagMCI_BREAK_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002048 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002049 INT nVirtKey;
2050 HWND hwndBreak;
2051} MCI_BREAK_PARMS, *LPMCI_BREAK_PARMS;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002052
Alexandre Julliard58199531994-04-21 01:20:00 +00002053
Eric Pouech1eed5522005-02-09 22:26:25 +00002054typedef struct tagMCI_SOUND_PARMSA {
2055 DWORD_PTR dwCallback;
2056 LPCSTR lpstrSoundName;
2057} MCI_SOUND_PARMSA, *LPMCI_SOUND_PARMSA;
Alexandre Julliard58199531994-04-21 01:20:00 +00002058
Eric Pouech1eed5522005-02-09 22:26:25 +00002059typedef struct tagMCI_SOUND_PARMSW {
2060 DWORD_PTR dwCallback;
2061 LPCWSTR lpstrSoundName;
2062} MCI_SOUND_PARMSW, *LPMCI_SOUND_PARMSW;
2063
Markus Amsler60519ea2005-12-09 14:52:39 +01002064DECL_WINELIB_TYPE_AW(MCI_SOUND_PARMS)
2065DECL_WINELIB_TYPE_AW(LPMCI_SOUND_PARMS)
Eric Pouech1eed5522005-02-09 22:26:25 +00002066
2067typedef struct tagMCI_SAVE_PARMSA {
2068 DWORD_PTR dwCallback;
2069 LPCSTR lpfilename;
2070} MCI_SAVE_PARMSA, *LPMCI_SAVE_PARMSA;
2071
2072typedef struct tagMCI_SAVE_PARMSW {
2073 DWORD_PTR dwCallback;
2074 LPCWSTR lpfilename;
2075} MCI_SAVE_PARMSW, *LPMCI_SAVE_PARMSW;
2076
Markus Amsler60519ea2005-12-09 14:52:39 +01002077DECL_WINELIB_TYPE_AW(MCI_SAVE_PARMS)
2078DECL_WINELIB_TYPE_AW(LPMCI_SAVE_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00002079
Rémi Assailly101e1f22004-11-21 15:32:31 +00002080typedef struct tagMCI_LOAD_PARMSA {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002081 DWORD_PTR dwCallback;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002082 LPCSTR lpfilename;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002083} MCI_LOAD_PARMSA, *LPMCI_LOAD_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002084
Rémi Assailly101e1f22004-11-21 15:32:31 +00002085typedef struct tagMCI_LOAD_PARMSW {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002086 DWORD_PTR dwCallback;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002087 LPCWSTR lpfilename;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002088} MCI_LOAD_PARMSW, *LPMCI_LOAD_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002089
Alexandre Julliarda845b881998-06-01 10:44:35 +00002090DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
2091DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00002092
Rémi Assailly101e1f22004-11-21 15:32:31 +00002093typedef struct tagMCI_RECORD_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002094 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002095 DWORD dwFrom;
2096 DWORD dwTo;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002097} MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00002098
Eric Pouech9b3801f1998-11-24 14:50:42 +00002099#define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
2100
Eric Pouecha4165ae1999-04-11 12:14:17 +00002101#define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
2102#define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
Eric Pouech9b3801f1998-11-24 14:50:42 +00002103
Alexandre Julliard58199531994-04-21 01:20:00 +00002104#define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2105
2106#define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2107#define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2108#define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2109
2110#define MCI_VD_FORMAT_TRACK 0x4001
2111
2112#define MCI_VD_PLAY_REVERSE 0x00010000L
2113#define MCI_VD_PLAY_FAST 0x00020000L
2114#define MCI_VD_PLAY_SPEED 0x00040000L
2115#define MCI_VD_PLAY_SCAN 0x00080000L
2116#define MCI_VD_PLAY_SLOW 0x00100000L
2117
2118#define MCI_VD_SEEK_REVERSE 0x00010000L
2119
2120#define MCI_VD_STATUS_SPEED 0x00004002L
2121#define MCI_VD_STATUS_FORWARD 0x00004003L
2122#define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2123#define MCI_VD_STATUS_SIDE 0x00004005L
2124#define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2125
2126#define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2127#define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2128
2129#define MCI_VD_SPIN_UP 0x00010000L
2130#define MCI_VD_SPIN_DOWN 0x00020000L
2131
2132#define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2133#define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2134#define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2135#define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2136
2137#define MCI_VD_STEP_FRAMES 0x00010000L
2138#define MCI_VD_STEP_REVERSE 0x00020000L
2139
2140#define MCI_VD_ESCAPE_STRING 0x00000100L
2141
Rémi Assailly101e1f22004-11-21 15:32:31 +00002142typedef struct tagMCI_VD_PLAY_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002143 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002144 DWORD dwFrom;
2145 DWORD dwTo;
2146 DWORD dwSpeed;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002147} MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00002148
Rémi Assailly101e1f22004-11-21 15:32:31 +00002149typedef struct tagMCI_VD_STEP_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002150 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002151 DWORD dwFrames;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002152} MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00002153
Rémi Assailly101e1f22004-11-21 15:32:31 +00002154typedef struct tagMCI_VD_ESCAPE_PARMSA {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002155 DWORD_PTR dwCallback;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002156 LPCSTR lpstrCommand;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002157} MCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002158
Rémi Assailly101e1f22004-11-21 15:32:31 +00002159typedef struct tagMCI_VD_ESCAPE_PARMSW {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002160 DWORD_PTR dwCallback;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002161 LPCWSTR lpstrCommand;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002162} MCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002163
Alexandre Julliarda845b881998-06-01 10:44:35 +00002164DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
2165DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00002166
2167#define MCI_WAVE_OPEN_BUFFER 0x00010000L
2168
2169#define MCI_WAVE_SET_FORMATTAG 0x00010000L
2170#define MCI_WAVE_SET_CHANNELS 0x00020000L
2171#define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2172#define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2173#define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2174#define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2175
2176#define MCI_WAVE_INPUT 0x00400000L
2177#define MCI_WAVE_OUTPUT 0x00800000L
2178
2179#define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2180#define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2181#define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2182#define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2183#define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2184#define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2185#define MCI_WAVE_STATUS_LEVEL 0x00004007L
2186
2187#define MCI_WAVE_SET_ANYINPUT 0x04000000L
2188#define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2189
2190#define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2191#define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2192
Rémi Assailly101e1f22004-11-21 15:32:31 +00002193typedef struct tagMCI_WAVE_OPEN_PARMSA {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002194 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002195 MCIDEVICEID wDeviceID;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002196 LPCSTR lpstrDeviceType;
2197 LPCSTR lpstrElementName;
2198 LPCSTR lpstrAlias;
2199 DWORD dwBufferSeconds;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002200} MCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002201
Rémi Assailly101e1f22004-11-21 15:32:31 +00002202typedef struct tagMCI_WAVE_OPEN_PARMSW {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002203 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002204 MCIDEVICEID wDeviceID;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002205 LPCWSTR lpstrDeviceType;
2206 LPCWSTR lpstrElementName;
2207 LPCWSTR lpstrAlias;
2208 DWORD dwBufferSeconds;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002209} MCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002210
Alexandre Julliarda845b881998-06-01 10:44:35 +00002211DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
2212DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00002213
Rémi Assailly101e1f22004-11-21 15:32:31 +00002214typedef struct tagMCI_WAVE_DELETE_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002215 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002216 DWORD dwFrom;
2217 DWORD dwTo;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002218} MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00002219
Rémi Assailly101e1f22004-11-21 15:32:31 +00002220typedef struct tagMCI_WAVE_SET_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002221 DWORD_PTR dwCallback;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002222 DWORD dwTimeFormat;
2223 DWORD dwAudio;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002224 UINT wInput;
2225 UINT wOutput;
2226 UINT wFormatTag;
2227 UINT nChannels;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002228 DWORD nSamplesPerSec;
2229 DWORD nAvgBytesPerSec;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002230 UINT nBlockAlign;
2231 UINT wBitsPerSample;
2232} MCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002233
Alexandre Julliard58199531994-04-21 01:20:00 +00002234
2235#define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2236#define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2237#define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2238#define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2239#define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2240
2241#define MCI_SEQ_FORMAT_SONGPTR 0x4001
2242#define MCI_SEQ_FILE 0x4002
2243#define MCI_SEQ_MIDI 0x4003
2244#define MCI_SEQ_SMPTE 0x4004
2245#define MCI_SEQ_NONE 65533
2246
2247#define MCI_SEQ_STATUS_TEMPO 0x00004002L
2248#define MCI_SEQ_STATUS_PORT 0x00004003L
2249#define MCI_SEQ_STATUS_SLAVE 0x00004007L
2250#define MCI_SEQ_STATUS_MASTER 0x00004008L
2251#define MCI_SEQ_STATUS_OFFSET 0x00004009L
2252#define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2253
2254#define MCI_SEQ_SET_TEMPO 0x00010000L
2255#define MCI_SEQ_SET_PORT 0x00020000L
2256#define MCI_SEQ_SET_SLAVE 0x00040000L
2257#define MCI_SEQ_SET_MASTER 0x00080000L
2258#define MCI_SEQ_SET_OFFSET 0x01000000L
2259
Rémi Assailly101e1f22004-11-21 15:32:31 +00002260typedef struct tagMCI_SEQ_SET_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002261 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002262 DWORD dwTimeFormat;
2263 DWORD dwAudio;
2264 DWORD dwTempo;
2265 DWORD dwPort;
2266 DWORD dwSlave;
2267 DWORD dwMaster;
2268 DWORD dwOffset;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002269} MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00002270
2271#define MCI_ANIM_OPEN_WS 0x00010000L
2272#define MCI_ANIM_OPEN_PARENT 0x00020000L
2273#define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2274
2275#define MCI_ANIM_PLAY_SPEED 0x00010000L
2276#define MCI_ANIM_PLAY_REVERSE 0x00020000L
2277#define MCI_ANIM_PLAY_FAST 0x00040000L
2278#define MCI_ANIM_PLAY_SLOW 0x00080000L
2279#define MCI_ANIM_PLAY_SCAN 0x00100000L
2280
2281#define MCI_ANIM_STEP_REVERSE 0x00010000L
2282#define MCI_ANIM_STEP_FRAMES 0x00020000L
2283
2284#define MCI_ANIM_STATUS_SPEED 0x00004001L
2285#define MCI_ANIM_STATUS_FORWARD 0x00004002L
2286#define MCI_ANIM_STATUS_HWND 0x00004003L
2287#define MCI_ANIM_STATUS_HPAL 0x00004004L
2288#define MCI_ANIM_STATUS_STRETCH 0x00004005L
2289
2290#define MCI_ANIM_INFO_TEXT 0x00010000L
2291
2292#define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2293#define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2294#define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2295#define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2296#define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2297#define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2298#define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2299
2300#define MCI_ANIM_REALIZE_NORM 0x00010000L
2301#define MCI_ANIM_REALIZE_BKGD 0x00020000L
2302
2303#define MCI_ANIM_WINDOW_HWND 0x00010000L
2304#define MCI_ANIM_WINDOW_STATE 0x00040000L
2305#define MCI_ANIM_WINDOW_TEXT 0x00080000L
2306#define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2307#define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2308
2309#define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2310
2311#define MCI_ANIM_RECT 0x00010000L
2312#define MCI_ANIM_PUT_SOURCE 0x00020000L
2313#define MCI_ANIM_PUT_DESTINATION 0x00040000L
2314
2315#define MCI_ANIM_WHERE_SOURCE 0x00020000L
2316#define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2317
2318#define MCI_ANIM_UPDATE_HDC 0x00020000L
2319
Rémi Assailly101e1f22004-11-21 15:32:31 +00002320typedef struct tagMCI_ANIM_OPEN_PARMSA {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002321 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002322 MCIDEVICEID wDeviceID;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002323 LPCSTR lpstrDeviceType;
2324 LPCSTR lpstrElementName;
2325 LPCSTR lpstrAlias;
2326 DWORD dwStyle;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002327 HWND hWndParent;
2328} MCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002329
Rémi Assailly101e1f22004-11-21 15:32:31 +00002330typedef struct tagMCI_ANIM_OPEN_PARMSW {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002331 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002332 MCIDEVICEID wDeviceID;
Marcus Meissner89b1fc91999-05-01 10:39:28 +00002333 LPCWSTR lpstrDeviceType;
2334 LPCWSTR lpstrElementName;
2335 LPCWSTR lpstrAlias;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002336 DWORD dwStyle;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002337 HWND hWndParent;
2338} MCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002339
Alexandre Julliarda845b881998-06-01 10:44:35 +00002340DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
2341DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00002342
Rémi Assailly101e1f22004-11-21 15:32:31 +00002343typedef struct tagMCI_ANIM_PLAY_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002344 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002345 DWORD dwFrom;
2346 DWORD dwTo;
2347 DWORD dwSpeed;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002348} MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00002349
Rémi Assailly101e1f22004-11-21 15:32:31 +00002350typedef struct tagMCI_ANIM_STEP_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002351 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002352 DWORD dwFrames;
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002353} MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
Alexandre Julliard58199531994-04-21 01:20:00 +00002354
Rémi Assailly101e1f22004-11-21 15:32:31 +00002355typedef struct tagMCI_ANIM_WINDOW_PARMSA {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002356 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002357 HWND hWnd;
2358 UINT nCmdShow;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002359 LPCSTR lpstrText;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002360} MCI_ANIM_WINDOW_PARMSA, *LPMCI_ANIM_WINDOW_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002361
Rémi Assailly101e1f22004-11-21 15:32:31 +00002362typedef struct tagMCI_ANIM_WINDOW_PARMSW {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002363 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002364 HWND hWnd;
2365 UINT nCmdShow;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002366 LPCWSTR lpstrText;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002367} MCI_ANIM_WINDOW_PARMSW, *LPMCI_ANIM_WINDOW_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002368
Alexandre Julliarda845b881998-06-01 10:44:35 +00002369DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
2370DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00002371
Rémi Assailly101e1f22004-11-21 15:32:31 +00002372typedef struct tagMCI_ANIM_RECT_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002373 DWORD_PTR dwCallback;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002374#ifdef MCI_USE_OFFEXT
Alexandre Julliarda3960291999-02-26 11:11:13 +00002375 POINT ptOffset;
2376 POINT ptExtent;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002377#else /* ifdef MCI_USE_OFFEXT */
Alexandre Julliarda3960291999-02-26 11:11:13 +00002378 RECT rc;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002379#endif /* ifdef MCI_USE_OFFEXT */
Alexandre Julliarda3960291999-02-26 11:11:13 +00002380} MCI_ANIM_RECT_PARMS, *LPMCI_ANIM_RECT_PARMS;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002381
Alexandre Julliard58199531994-04-21 01:20:00 +00002382
Rémi Assailly101e1f22004-11-21 15:32:31 +00002383typedef struct tagMCI_ANIM_UPDATE_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002384 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002385 RECT rc;
2386 HDC hDC;
2387} MCI_ANIM_UPDATE_PARMS, *LPMCI_ANIM_UPDATE_PARMS;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002388
Alexandre Julliard58199531994-04-21 01:20:00 +00002389
2390#define MCI_OVLY_OPEN_WS 0x00010000L
2391#define MCI_OVLY_OPEN_PARENT 0x00020000L
2392
2393#define MCI_OVLY_STATUS_HWND 0x00004001L
2394#define MCI_OVLY_STATUS_STRETCH 0x00004002L
2395
2396#define MCI_OVLY_INFO_TEXT 0x00010000L
2397
2398#define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2399#define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2400#define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2401
2402#define MCI_OVLY_WINDOW_HWND 0x00010000L
2403#define MCI_OVLY_WINDOW_STATE 0x00040000L
2404#define MCI_OVLY_WINDOW_TEXT 0x00080000L
2405#define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2406#define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2407
2408#define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2409
2410#define MCI_OVLY_RECT 0x00010000L
2411#define MCI_OVLY_PUT_SOURCE 0x00020000L
2412#define MCI_OVLY_PUT_DESTINATION 0x00040000L
2413#define MCI_OVLY_PUT_FRAME 0x00080000L
2414#define MCI_OVLY_PUT_VIDEO 0x00100000L
2415
2416#define MCI_OVLY_WHERE_SOURCE 0x00020000L
2417#define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2418#define MCI_OVLY_WHERE_FRAME 0x00080000L
2419#define MCI_OVLY_WHERE_VIDEO 0x00100000L
2420
Rémi Assailly101e1f22004-11-21 15:32:31 +00002421typedef struct tagMCI_OVLY_OPEN_PARMSA {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002422 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002423 MCIDEVICEID wDeviceID;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002424 LPCSTR lpstrDeviceType;
2425 LPCSTR lpstrElementName;
2426 LPCSTR lpstrAlias;
2427 DWORD dwStyle;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002428 HWND hWndParent;
2429} MCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002430
Rémi Assailly101e1f22004-11-21 15:32:31 +00002431typedef struct tagMCI_OVLY_OPEN_PARMSW {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002432 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002433 MCIDEVICEID wDeviceID;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002434 LPCWSTR lpstrDeviceType;
2435 LPCWSTR lpstrElementName;
2436 LPCWSTR lpstrAlias;
2437 DWORD dwStyle;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002438 HWND hWndParent;
2439} MCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002440
Alexandre Julliarda845b881998-06-01 10:44:35 +00002441DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
2442DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
Alexandre Julliard491502b1997-11-01 19:08:16 +00002443
Rémi Assailly101e1f22004-11-21 15:32:31 +00002444typedef struct tagMCI_OVLY_WINDOW_PARMSA {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002445 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002446 HWND hWnd;
2447 UINT nCmdShow;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002448 LPCSTR lpstrText;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002449} MCI_OVLY_WINDOW_PARMSA, *LPMCI_OVLY_WINDOW_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002450
Rémi Assailly101e1f22004-11-21 15:32:31 +00002451typedef struct tagMCI_OVLY_WINDOW_PARMSW {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002452 DWORD_PTR dwCallback;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002453 HWND hWnd;
2454 UINT nCmdShow;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002455 LPCWSTR lpstrText;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002456} MCI_OVLY_WINDOW_PARMSW, *LPMCI_OVLY_WINDOW_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002457
Alexandre Julliarda845b881998-06-01 10:44:35 +00002458DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
2459DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00002460
Rémi Assailly101e1f22004-11-21 15:32:31 +00002461typedef struct tagMCI_OVLY_RECT_PARMS {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002462 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002463#ifdef MCI_USE_OFFEXT
Alexandre Julliarda3960291999-02-26 11:11:13 +00002464 POINT ptOffset;
2465 POINT ptExtent;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002466#else /* ifdef MCI_USE_OFFEXT */
Alexandre Julliarda3960291999-02-26 11:11:13 +00002467 RECT rc;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002468#endif /* ifdef MCI_USE_OFFEXT */
Alexandre Julliarda3960291999-02-26 11:11:13 +00002469} MCI_OVLY_RECT_PARMS, *LPMCI_OVLY_RECT_PARMS;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002470
Alexandre Julliard58199531994-04-21 01:20:00 +00002471
Rémi Assailly101e1f22004-11-21 15:32:31 +00002472typedef struct tagMCI_OVLY_SAVE_PARMSA {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002473 DWORD_PTR dwCallback;
Alexandre Julliard58199531994-04-21 01:20:00 +00002474 LPCSTR lpfilename;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002475 RECT rc;
2476} MCI_OVLY_SAVE_PARMSA, *LPMCI_OVLY_SAVE_PARMSA;
Alexandre Julliard58199531994-04-21 01:20:00 +00002477
Rémi Assailly101e1f22004-11-21 15:32:31 +00002478typedef struct tagMCI_OVLY_SAVE_PARMSW {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002479 DWORD_PTR dwCallback;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002480 LPCWSTR lpfilename;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002481 RECT rc;
2482} MCI_OVLY_SAVE_PARMSW, *LPMCI_OVLY_SAVE_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002483
Alexandre Julliarda845b881998-06-01 10:44:35 +00002484DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
2485DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
Alexandre Julliard491502b1997-11-01 19:08:16 +00002486
Rémi Assailly101e1f22004-11-21 15:32:31 +00002487typedef struct tagMCI_OVLY_LOAD_PARMSA {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002488 DWORD_PTR dwCallback;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002489 LPCSTR lpfilename;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002490 RECT rc;
2491} MCI_OVLY_LOAD_PARMSA, *LPMCI_OVLY_LOAD_PARMSA;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002492
Rémi Assailly101e1f22004-11-21 15:32:31 +00002493typedef struct tagMCI_OVLY_LOAD_PARMSW {
Dmitry Timoshkov97415892003-12-31 23:49:45 +00002494 DWORD_PTR dwCallback;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002495 LPCWSTR lpfilename;
Alexandre Julliarda3960291999-02-26 11:11:13 +00002496 RECT rc;
2497} MCI_OVLY_LOAD_PARMSW, *LPMCI_OVLY_LOAD_PARMSW;
Alexandre Julliard491502b1997-11-01 19:08:16 +00002498
Alexandre Julliarda845b881998-06-01 10:44:35 +00002499DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
2500DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
Alexandre Julliard58199531994-04-21 01:20:00 +00002501
Lauri Tulmin26c92d72005-02-02 19:10:28 +00002502#ifndef NEWTRANSPARENT
2503#define NEWTRANSPARENT 3
2504#define QUERYROPSUPPORT 40
2505#endif
2506
2507#define SELECTDIB 41
2508#define DIBINDEX(n) MAKELONG((n),0x10FF)
2509
2510#ifndef SC_SCREENSAVE
2511#define SC_SCREENSAVE 0xf140
2512#endif
2513
Dimitrie O. Paun53f9c212003-08-28 21:43:34 +00002514#include <poppack.h>
Alexandre Julliard36ca1361994-06-02 22:38:20 +00002515
Alexandre Julliardf4eb65b1999-02-09 14:22:01 +00002516#ifdef __cplusplus
2517}
Vincent Béron9a624912002-05-31 23:06:46 +00002518#endif
Alexandre Julliardf4eb65b1999-02-09 14:22:01 +00002519
Alexandre Julliardc6c09441997-01-12 18:32:19 +00002520#endif /* __WINE_MMSYSTEM_H */