2 * MMSYSTEM - Multimedia Wine Extension ... :-)
4 * Copyright (C) the Wine project
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_MMSYSTEM_H
22 #define __WINE_MMSYSTEM_H
31 #define WINMMAPI DECLSPEC_IMPORT
34 typedef LPSTR HPSTR
; /* a huge version of LPSTR */
35 typedef LPCSTR HPCSTR
; /* a huge version of LPCSTR */
38 DECLARE_HANDLE(HDRVR
);
39 DECLARE_HANDLE(HWAVE
);
40 DECLARE_HANDLE(HWAVEIN
);
41 DECLARE_HANDLE(HWAVEOUT
);
42 DECLARE_HANDLE(HMIDI
);
43 DECLARE_HANDLE(HMIDIIN
);
44 DECLARE_HANDLE(HMIDIOUT
);
45 DECLARE_HANDLE(HMIDISTRM
);
46 DECLARE_HANDLE(HMIXER
);
47 DECLARE_HANDLE(HMIXEROBJ
);
48 DECLARE_HANDLE(HMMIO
);
50 typedef HMIDI
*LPHMIDI
;
51 typedef HMIDIIN
*LPHMIDIIN
;
52 typedef HMIDIOUT
*LPHMIDIOUT
;
53 typedef HMIDISTRM
*LPHMIDISTRM
;
54 typedef HMIXER
*LPHMIXER
;
55 typedef HMIXEROBJ
*LPHMIXEROBJ
;
56 typedef HWAVEIN
*LPHWAVEIN
;
57 typedef HWAVEOUT
*LPHWAVEOUT
;
61 typedef LRESULT (CALLBACK
*DRIVERPROC
)(DWORD_PTR
,HDRVR
,UINT
,LPARAM
,LPARAM
);
63 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
64 #define MAXERRORLENGTH 256 /* max error text length (including NULL) */
65 #define MAX_JOYSTICKOEMVXDNAME 260
69 typedef DWORD MCIERROR
;
71 typedef UINT MMVERSION
;
74 typedef UINT MCIDEVICEID
;
76 typedef UINT MMRESULT
;
78 typedef struct mmtime_tag
{
98 } MMTIME
, *PMMTIME
, *LPMMTIME
;
100 #define TIME_MS 0x0001 /* time in milliseconds */
101 #define TIME_SAMPLES 0x0002 /* number of wave samples */
102 #define TIME_BYTES 0x0004 /* current byte offset */
103 #define TIME_SMPTE 0x0008 /* SMPTE time */
104 #define TIME_MIDI 0x0010 /* MIDI time */
105 #define TIME_TICKS 0x0020 /* MIDI ticks */
107 #define MM_JOY1MOVE 0x3A0 /* joystick */
108 #define MM_JOY2MOVE 0x3A1
109 #define MM_JOY1ZMOVE 0x3A2
110 #define MM_JOY2ZMOVE 0x3A3
111 #define MM_JOY1BUTTONDOWN 0x3B5
112 #define MM_JOY2BUTTONDOWN 0x3B6
113 #define MM_JOY1BUTTONUP 0x3B7
114 #define MM_JOY2BUTTONUP 0x3B8
116 #define MM_MCINOTIFY 0x3B9 /* MCI */
118 #define MM_WOM_OPEN 0x3BB /* waveform output */
119 #define MM_WOM_CLOSE 0x3BC
120 #define MM_WOM_DONE 0x3BD
122 #define MM_WIM_OPEN 0x3BE /* waveform input */
123 #define MM_WIM_CLOSE 0x3BF
124 #define MM_WIM_DATA 0x3C0
126 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
127 #define MM_MIM_CLOSE 0x3C2
128 #define MM_MIM_DATA 0x3C3
129 #define MM_MIM_LONGDATA 0x3C4
130 #define MM_MIM_ERROR 0x3C5
131 #define MM_MIM_LONGERROR 0x3C6
133 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
134 #define MM_MOM_CLOSE 0x3C8
135 #define MM_MOM_DONE 0x3C9
136 #define MM_MOM_POSITIONCB 0x3CA
138 #define MM_MIM_MOREDATA 0x3CC
140 #define MM_MIXM_LINE_CHANGE 0x3D0
141 #define MM_MIXM_CONTROL_CHANGE 0x3D1
143 #define MMSYSERR_BASE 0
144 #define WAVERR_BASE 32
145 #define MIDIERR_BASE 64
146 #define TIMERR_BASE 96
147 #define JOYERR_BASE 160
148 #define MCIERR_BASE 256
150 #define MCI_STRING_OFFSET 512
151 #define MCI_VD_OFFSET 1024
152 #define MCI_CD_OFFSET 1088
153 #define MCI_WAVE_OFFSET 1152
154 #define MCI_SEQ_OFFSET 1216
156 #define MMSYSERR_NOERROR 0
157 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1)
158 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2)
159 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3)
160 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4)
161 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5)
162 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6)
163 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7)
164 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8)
165 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9)
166 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10)
167 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11)
168 #define MMSYSERR_HANDLEBUSY (MMSYSERR_BASE + 12)
169 #define MMSYSERR_INVALIDALIAS (MMSYSERR_BASE + 13)
170 #define MMSYSERR_BADDB (MMSYSERR_BASE + 14)
171 #define MMSYSERR_KEYNOTFOUND (MMSYSERR_BASE + 15)
172 #define MMSYSERR_READERROR (MMSYSERR_BASE + 16)
173 #define MMSYSERR_WRITEERROR (MMSYSERR_BASE + 17)
174 #define MMSYSERR_DELETEERROR (MMSYSERR_BASE + 18)
175 #define MMSYSERR_VALNOTFOUND (MMSYSERR_BASE + 19)
176 #define MMSYSERR_NODRIVERCB (MMSYSERR_BASE + 20)
177 #define MMSYSERR_MOREDATA (MMSYSERR_BASE + 21)
178 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 21)
180 #define CALLBACK_TYPEMASK __MSABI_LONG(0x00070000) /* callback type mask */
181 #define CALLBACK_NULL __MSABI_LONG(0x00000000) /* no callback */
182 #define CALLBACK_WINDOW __MSABI_LONG(0x00010000) /* dwCallback is a HWND */
183 #define CALLBACK_TASK __MSABI_LONG(0x00020000) /* dwCallback is a HTASK */
184 #define CALLBACK_THREAD (CALLBACK_TASK) /* dwCallback is a thread ID */
185 #define CALLBACK_FUNCTION __MSABI_LONG(0x00030000) /* dwCallback is a FARPROC */
186 #define CALLBACK_EVENT __MSABI_LONG(0x00050000) /* dwCallback is an EVENT Handler */
188 #define DRV_LOAD 0x0001
189 #define DRV_ENABLE 0x0002
190 #define DRV_OPEN 0x0003
191 #define DRV_CLOSE 0x0004
192 #define DRV_DISABLE 0x0005
193 #define DRV_FREE 0x0006
194 #define DRV_CONFIGURE 0x0007
195 #define DRV_QUERYCONFIGURE 0x0008
196 #define DRV_INSTALL 0x0009
197 #define DRV_REMOVE 0x000A
198 #define DRV_EXITSESSION 0x000B
199 #define DRV_EXITAPPLICATION 0x000C
200 #define DRV_POWER 0x000F
202 #define DRV_RESERVED 0x0800
203 #define DRV_MCI_FIRST DRV_RESERVED
204 #define DRV_MCI_LAST (0xFFF + DRV_MCI_FIRST)
205 #define DRV_USER 0x4000
207 #define DRVCNF_CANCEL 0x0000
208 #define DRVCNF_OK 0x0001
209 #define DRVCNF_RESTART 0x0002
211 #define DRVEA_NORMALEXIT 0x0001
212 #define DRVEA_ABNORMALEXIT 0x0002
214 #define DRV_SUCCESS 0x0001
215 #define DRV_FAILURE 0x0000
217 #define GND_FIRSTINSTANCEONLY 0x00000001
219 #define GND_FORWARD 0x00000000
220 #define GND_REVERSE 0x00000002
222 typedef struct tagDRVCONFIGINFO
{
224 LPCWSTR lpszDCISectionName
;
225 LPCWSTR lpszDCIAliasName
;
226 } DRVCONFIGINFO
, *LPDRVCONFIGINFO
;
228 typedef struct tagDRVCONFIGINFOEX
{
230 LPCWSTR lpszDCISectionName
;
231 LPCWSTR lpszDCIAliasName
;
233 } DRVCONFIGINFOEX
, *LPDRVCONFIGINFOEX
;
235 WINMMAPI LRESULT WINAPI
DefDriverProc(DWORD_PTR
,HDRVR
,UINT
,LPARAM
,LPARAM
);
236 /* this sounds odd, but it's the way it is. OpenDriverA even disappeared
239 WINMMAPI HDRVR WINAPI
OpenDriverA(LPCSTR szDriverName
, LPCSTR szSectionName
, LPARAM lParam2
);
240 WINMMAPI HDRVR WINAPI
OpenDriver(LPCWSTR szDriverName
, LPCWSTR szSectionName
, LPARAM lParam2
);
241 WINMMAPI LRESULT WINAPI
CloseDriver(HDRVR hDriver
, LPARAM lParam1
, LPARAM lParam2
);
242 WINMMAPI LRESULT WINAPI
SendDriverMessage(HDRVR hDriver
, UINT message
, LPARAM lParam1
, LPARAM lParam2
);
243 WINMMAPI HMODULE WINAPI
GetDriverModuleHandle(HDRVR hDriver
);
244 WINMMAPI DWORD WINAPI
GetDriverFlags(HDRVR hDriver
);
246 typedef void (CALLBACK
*LPDRVCALLBACK
)(HDRVR
,UINT
,DWORD_PTR
,DWORD_PTR
,DWORD_PTR
);
249 #define MM_MICROSOFT 1 /* Microsoft Corp. */
252 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
253 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
255 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
256 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
257 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
258 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
259 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
261 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
263 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
264 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
266 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
268 #define MM_CREATIVE_SBP16_WAVEOUT 104
270 WINMMAPI UINT WINAPI
mmsystemGetVersion(void);
271 WINMMAPI BOOL WINAPI
sndPlaySoundA(LPCSTR lpszSound
, UINT fuSound
);
272 WINMMAPI BOOL WINAPI
sndPlaySoundW(LPCWSTR lpszSound
, UINT fuSound
);
273 #define sndPlaySound WINELIB_NAME_AW(sndPlaySound)
274 WINMMAPI BOOL WINAPI
PlaySoundA(LPCSTR pszSound
, HMODULE hmod
, DWORD fdwSound
);
275 WINMMAPI BOOL WINAPI
PlaySoundW(LPCWSTR pszSound
, HMODULE hmod
, DWORD fdwSound
);
276 #define PlaySound WINELIB_NAME_AW(PlaySound)
278 #define SND_SYNC 0x0000 /* play synchronously (default) */
279 #define SND_ASYNC 0x0001 /* play asynchronously */
280 #define SND_NODEFAULT 0x0002 /* don't use default sound */
281 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
282 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
283 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
285 #define SND_NOWAIT __MSABI_LONG(0x00002000) /* don't wait if the driver is busy */
286 #define SND_ALIAS __MSABI_LONG(0x00010000) /* name is a registry alias */
287 #define SND_ALIAS_ID __MSABI_LONG(0x00110000) /* alias is a predefined ID */
288 #define SND_FILENAME __MSABI_LONG(0x00020000) /* name is file name */
289 #define SND_RESOURCE __MSABI_LONG(0x00040004) /* name is resource name or atom */
290 #define SND_PURGE __MSABI_LONG(0x00000040) /* purge all sounds */
291 #define SND_APPLICATION __MSABI_LONG(0x00000080) /* look for application specific association */
293 #define SND_ALIAS_START 0
295 #define sndAlias(ch0, ch1) (SND_ALIAS_START + ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8)))
297 #define SND_ALIAS_SYSTEMASTERISK sndAlias('S', '*')
298 #define SND_ALIAS_SYSTEMQUESTION sndAlias('S', '?')
299 #define SND_ALIAS_SYSTEMHAND sndAlias('S', 'H')
300 #define SND_ALIAS_SYSTEMEXIT sndAlias('S', 'E')
301 #define SND_ALIAS_SYSTEMSTART sndAlias('S', 'S')
302 #define SND_ALIAS_SYSTEMWELCOME sndAlias('S', 'W')
303 #define SND_ALIAS_SYSTEMEXCLAMATION sndAlias('S', '!')
304 #define SND_ALIAS_SYSTEMDEFAULT sndAlias('S', 'D')
306 /* waveform audio error return values */
307 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
308 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
309 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
310 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
311 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
313 typedef LPDRVCALLBACK LPWAVECALLBACK
;
315 #define WOM_OPEN MM_WOM_OPEN
316 #define WOM_CLOSE MM_WOM_CLOSE
317 #define WOM_DONE MM_WOM_DONE
318 #define WIM_OPEN MM_WIM_OPEN
319 #define WIM_CLOSE MM_WIM_CLOSE
320 #define WIM_DATA MM_WIM_DATA
322 #define WAVE_MAPPER (-1)
324 #define WAVE_FORMAT_QUERY 0x0001
325 #define WAVE_ALLOWSYNC 0x0002
326 #define WAVE_MAPPED 0x0004
327 #define WAVE_FORMAT_DIRECT 0x0008
328 #define WAVE_FORMAT_DIRECT_QUERY (WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT)
330 typedef struct wavehdr_tag
{
332 DWORD dwBufferLength
;
333 DWORD dwBytesRecorded
;
337 struct wavehdr_tag
*lpNext
;
339 } WAVEHDR
, *PWAVEHDR
, *NPWAVEHDR
, *LPWAVEHDR
;
341 #define WHDR_DONE 0x00000001
342 #define WHDR_PREPARED 0x00000002
343 #define WHDR_BEGINLOOP 0x00000004
344 #define WHDR_ENDLOOP 0x00000008
345 #define WHDR_INQUEUE 0x00000010
347 typedef struct tagWAVEOUTCAPSA
{
350 MMVERSION vDriverVersion
;
351 CHAR szPname
[MAXPNAMELEN
];
356 } WAVEOUTCAPSA
, *LPWAVEOUTCAPSA
;
358 typedef struct tagWAVEOUTCAPSW
{
361 MMVERSION vDriverVersion
;
362 WCHAR szPname
[MAXPNAMELEN
];
367 } WAVEOUTCAPSW
, *LPWAVEOUTCAPSW
;
368 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS
)
369 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS
)
371 typedef struct tagWAVEOUTCAPS2A
{
374 MMVERSION vDriverVersion
;
375 CHAR szPname
[MAXPNAMELEN
];
380 GUID ManufacturerGuid
;
383 } WAVEOUTCAPS2A
, *LPWAVEOUTCAPS2A
;
385 typedef struct tagWAVEOUTCAPS2W
{
388 MMVERSION vDriverVersion
;
389 WCHAR szPname
[MAXPNAMELEN
];
394 GUID ManufacturerGuid
;
397 } WAVEOUTCAPS2W
, *LPWAVEOUTCAPS2W
;
398 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS2
)
399 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS2
)
401 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
402 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
403 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
404 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
405 #define WAVECAPS_SYNC 0x0010 /* driver is synchronous and playing is blocking */
406 #define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
407 #define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
409 typedef struct tagWAVEINCAPSA
{
412 MMVERSION vDriverVersion
;
413 CHAR szPname
[MAXPNAMELEN
];
417 } WAVEINCAPSA
, *LPWAVEINCAPSA
;
418 typedef struct tagWAVEINCAPSW
{
421 MMVERSION vDriverVersion
;
422 WCHAR szPname
[MAXPNAMELEN
];
426 } WAVEINCAPSW
, *LPWAVEINCAPSW
;
427 DECL_WINELIB_TYPE_AW(WAVEINCAPS
)
428 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS
)
430 typedef struct tagWAVEINCAPS2A
{
433 MMVERSION vDriverVersion
;
434 CHAR szPname
[MAXPNAMELEN
];
438 GUID ManufacturerGuid
;
441 } WAVEINCAPS2A
, *LPWAVEINCAPS2A
;
442 typedef struct tagWAVEINCAPS2W
{
445 MMVERSION vDriverVersion
;
446 WCHAR szPname
[MAXPNAMELEN
];
450 GUID ManufacturerGuid
;
453 } WAVEINCAPS2W
, *LPWAVEINCAPS2W
;
454 DECL_WINELIB_TYPE_AW(WAVEINCAPS2
)
455 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS2
)
457 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
458 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
459 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
460 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
461 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
462 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
463 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
464 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
465 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
466 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
467 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
468 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
469 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
470 #define WAVE_FORMAT_48M08 0x00001000 /* 48 kHz, Mono, 8-bit */
471 #define WAVE_FORMAT_48S08 0x00002000 /* 48 kHz, Stereo, 8-bit */
472 #define WAVE_FORMAT_48M16 0x00004000 /* 48 kHz, Mono, 16-bit */
473 #define WAVE_FORMAT_48S16 0x00008000 /* 48 kHz, Stereo, 16-bit */
474 #define WAVE_FORMAT_96M08 0x00010000 /* 96 kHz, Mono, 8-bit */
475 #define WAVE_FORMAT_96S08 0x00020000 /* 96 kHz, Stereo, 8-bit */
476 #define WAVE_FORMAT_96M16 0x00040000 /* 96 kHz, Mono, 16-bit */
477 #define WAVE_FORMAT_96S16 0x00080000 /* 96 kHz, Stereo, 16-bit */
479 #ifndef WAVE_FORMAT_PCM
480 /* General format structure common to all formats, same for Win16 and Win32 */
481 typedef struct waveformat_tag
{
484 DWORD nSamplesPerSec
;
485 DWORD nAvgBytesPerSec
;
487 } WAVEFORMAT
, *LPWAVEFORMAT
;
489 #define WAVE_FORMAT_PCM 1
491 typedef struct pcmwaveformat_tag
{
494 } PCMWAVEFORMAT
, *LPPCMWAVEFORMAT
;
497 #ifndef _WAVEFORMATEX_
498 #define _WAVEFORMATEX_
499 /* ditto same for Win16 / Win32 */
500 typedef struct tWAVEFORMATEX
{
503 DWORD nSamplesPerSec
;
504 DWORD nAvgBytesPerSec
;
508 } WAVEFORMATEX
, *LPWAVEFORMATEX
, *NPWAVEFORMATEX
, *PWAVEFORMATEX
;
510 typedef const WAVEFORMATEX
*LPCWAVEFORMATEX
;
512 WINMMAPI UINT WINAPI
waveOutGetNumDevs(void);
513 WINMMAPI UINT WINAPI
waveOutGetDevCapsA(UINT_PTR
,LPWAVEOUTCAPSA
,UINT
);
514 WINMMAPI UINT WINAPI
waveOutGetDevCapsW(UINT_PTR
,LPWAVEOUTCAPSW
,UINT
);
515 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
516 WINMMAPI UINT WINAPI
waveOutGetVolume(HWAVEOUT
,DWORD
*);
517 WINMMAPI UINT WINAPI
waveOutSetVolume(HWAVEOUT
,DWORD
);
518 WINMMAPI UINT WINAPI
waveOutGetErrorTextA(UINT
,LPSTR
,UINT
);
519 WINMMAPI UINT WINAPI
waveOutGetErrorTextW(UINT
,LPWSTR
,UINT
);
520 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
521 WINMMAPI MMRESULT WINAPI
waveOutOpen(HWAVEOUT
*,UINT
,LPCWAVEFORMATEX
,DWORD_PTR
,DWORD_PTR
,DWORD
);
522 WINMMAPI UINT WINAPI
waveOutClose(HWAVEOUT
);
523 WINMMAPI UINT WINAPI
waveOutPrepareHeader(HWAVEOUT
,WAVEHDR
*,UINT
);
524 WINMMAPI UINT WINAPI
waveOutUnprepareHeader(HWAVEOUT
,WAVEHDR
*,UINT
);
525 WINMMAPI UINT WINAPI
waveOutWrite(HWAVEOUT
,WAVEHDR
*,UINT
);
526 WINMMAPI UINT WINAPI
waveOutPause(HWAVEOUT
);
527 WINMMAPI UINT WINAPI
waveOutRestart(HWAVEOUT
);
528 WINMMAPI UINT WINAPI
waveOutReset(HWAVEOUT
);
529 WINMMAPI UINT WINAPI
waveOutBreakLoop(HWAVEOUT
);
530 WINMMAPI UINT WINAPI
waveOutGetPosition(HWAVEOUT
,LPMMTIME
,UINT
);
531 WINMMAPI UINT WINAPI
waveOutGetPitch(HWAVEOUT
,DWORD
*);
532 WINMMAPI UINT WINAPI
waveOutSetPitch(HWAVEOUT
,DWORD
);
533 WINMMAPI UINT WINAPI
waveOutGetPlaybackRate(HWAVEOUT
,DWORD
*);
534 WINMMAPI UINT WINAPI
waveOutSetPlaybackRate(HWAVEOUT
,DWORD
);
535 WINMMAPI UINT WINAPI
waveOutGetID(HWAVEOUT
,UINT
*);
536 WINMMAPI UINT WINAPI
waveOutMessage(HWAVEOUT
,UINT
,DWORD_PTR
,DWORD_PTR
);
537 WINMMAPI UINT WINAPI
waveInGetNumDevs(void);
538 WINMMAPI UINT WINAPI
waveInGetDevCapsA(UINT_PTR
,LPWAVEINCAPSA
,UINT
);
539 WINMMAPI UINT WINAPI
waveInGetDevCapsW(UINT_PTR
,LPWAVEINCAPSW
,UINT
);
540 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
541 WINMMAPI UINT WINAPI
waveInGetErrorTextA(UINT
,LPSTR
,UINT
);
542 WINMMAPI UINT WINAPI
waveInGetErrorTextW(UINT
,LPWSTR
,UINT
);
543 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
544 WINMMAPI MMRESULT WINAPI
waveInOpen(HWAVEIN
*,UINT
,LPCWAVEFORMATEX
,DWORD_PTR
,DWORD_PTR
,DWORD
);
545 WINMMAPI UINT WINAPI
waveInClose(HWAVEIN
);
546 WINMMAPI UINT WINAPI
waveInPrepareHeader(HWAVEIN
,WAVEHDR
*,UINT
);
547 WINMMAPI UINT WINAPI
waveInUnprepareHeader(HWAVEIN
,WAVEHDR
*,UINT
);
548 WINMMAPI UINT WINAPI
waveInAddBuffer(HWAVEIN
,WAVEHDR
*,UINT
);
549 WINMMAPI UINT WINAPI
waveInStart(HWAVEIN
);
550 WINMMAPI UINT WINAPI
waveInStop(HWAVEIN
);
551 WINMMAPI UINT WINAPI
waveInReset(HWAVEIN
);
552 WINMMAPI UINT WINAPI
waveInGetPosition(HWAVEIN
,LPMMTIME
,UINT
);
553 WINMMAPI UINT WINAPI
waveInGetID(HWAVEIN
,UINT
*);
554 WINMMAPI UINT WINAPI
waveInMessage(HWAVEIN
,UINT
,DWORD_PTR
,DWORD_PTR
);
556 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0)
557 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1)
558 #define MIDIERR_NOMAP (MIDIERR_BASE + 2)
559 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3)
560 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4)
561 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5)
562 #define MIDIERR_BADOPENMODE (MIDIERR_BASE + 6)
563 #define MIDIERR_DONT_CONTINUE (MIDIERR_BASE + 7)
564 #define MIDIERR_LASTERROR (MIDIERR_BASE + 7)
566 typedef LPDRVCALLBACK LPMIDICALLBACK
;
567 #define MIDIPATCHSIZE 128
568 typedef WORD PATCHARRAY
[MIDIPATCHSIZE
];
569 typedef WORD
*LPPATCHARRAY
;
570 typedef WORD KEYARRAY
[MIDIPATCHSIZE
];
571 typedef WORD
*LPKEYARRAY
;
573 #define MIM_OPEN MM_MIM_OPEN
574 #define MIM_CLOSE MM_MIM_CLOSE
575 #define MIM_DATA MM_MIM_DATA
576 #define MIM_LONGDATA MM_MIM_LONGDATA
577 #define MIM_ERROR MM_MIM_ERROR
578 #define MIM_LONGERROR MM_MIM_LONGERROR
579 #define MIM_MOREDATA MM_MIM_MOREDATA
581 #define MOM_OPEN MM_MOM_OPEN
582 #define MOM_CLOSE MM_MOM_CLOSE
583 #define MOM_DONE MM_MOM_DONE
584 #define MOM_POSITIONCB MM_MOM_POSITIONCB
586 /* device ID for MIDI mapper */
588 #define MIDIMAPPER (-1)
589 #define MIDI_MAPPER (-1)
591 /* Only on Win95 and up */
592 #define MIDI_IO_STATUS __MSABI_LONG(0x00000020)
594 /* flags for wFlags parm of
595 midiOutCachePatches(),
596 midiOutCacheDrumPatches() */
597 #define MIDI_CACHE_ALL 1
598 #define MIDI_CACHE_BESTFIT 2
599 #define MIDI_CACHE_QUERY 3
600 #define MIDI_UNCACHE 4
602 typedef struct tagMIDIOUTCAPSA
{
605 MMVERSION vDriverVersion
;
606 CHAR szPname
[MAXPNAMELEN
];
612 } MIDIOUTCAPSA
, *LPMIDIOUTCAPSA
;
614 typedef struct tagMIDIOUTCAPSW
{
617 MMVERSION vDriverVersion
;
618 WCHAR szPname
[MAXPNAMELEN
];
624 } MIDIOUTCAPSW
, *LPMIDIOUTCAPSW
;
626 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS
)
627 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS
)
629 typedef struct tagMIDIOUTCAPS2A
{
632 MMVERSION vDriverVersion
;
633 CHAR szPname
[MAXPNAMELEN
];
639 GUID ManufacturerGuid
;
642 } MIDIOUTCAPS2A
, *LPMIDIOUTCAPS2A
;
644 typedef struct tagMIDIOUTCAPS2W
{
647 MMVERSION vDriverVersion
;
648 WCHAR szPname
[MAXPNAMELEN
];
654 GUID ManufacturerGuid
;
657 } MIDIOUTCAPS2W
, *LPMIDIOUTCAPS2W
;
659 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS2
)
660 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS2
)
662 #define MOD_MIDIPORT 1 /* output port */
663 #define MOD_SYNTH 2 /* generic internal synth */
664 #define MOD_SQSYNTH 3 /* square wave internal synth */
665 #define MOD_FMSYNTH 4 /* FM internal synth */
666 #define MOD_MAPPER 5 /* MIDI mapper */
667 #define MOD_WAVETABLE 6 /* hardware wavetable internal synth */
668 #define MOD_SWSYNTH 7 /* software synth */
670 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
671 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
672 #define MIDICAPS_CACHE 0x0004
673 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
675 typedef struct tagMIDIINCAPSA
{
678 MMVERSION vDriverVersion
;
679 CHAR szPname
[MAXPNAMELEN
];
681 } MIDIINCAPSA
, *LPMIDIINCAPSA
;
683 typedef struct tagMIDIINCAPSW
{
686 MMVERSION vDriverVersion
;
687 WCHAR szPname
[MAXPNAMELEN
];
689 } MIDIINCAPSW
, *LPMIDIINCAPSW
;
691 DECL_WINELIB_TYPE_AW(MIDIINCAPS
)
692 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS
)
694 typedef struct tagMIDIINCAPS2A
{
697 MMVERSION vDriverVersion
;
698 CHAR szPname
[MAXPNAMELEN
];
700 GUID ManufacturerGuid
;
703 } MIDIINCAPS2A
, *LPMIDIINCAPS2A
;
705 typedef struct tagMIDIINCAPS2W
{
708 MMVERSION vDriverVersion
;
709 WCHAR szPname
[MAXPNAMELEN
];
711 GUID ManufacturerGuid
;
714 } MIDIINCAPS2W
, *LPMIDIINCAPS2W
;
716 DECL_WINELIB_TYPE_AW(MIDIINCAPS2
)
717 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS2
)
719 /* It seems that Win32 has a slightly different structure than Win 16.
722 typedef struct midihdr_tag
{
724 DWORD dwBufferLength
;
725 DWORD dwBytesRecorded
;
728 struct midihdr_tag
*lpNext
;
730 /* Win 32 extended the structure with these 2 fields */
732 DWORD_PTR dwReserved
[8];
733 } MIDIHDR
, *LPMIDIHDR
;
735 #define MHDR_DONE 0x00000001 /* done bit */
736 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
737 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
738 #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
740 typedef struct midiproptempo_tag
{
743 } MIDIPROPTEMPO
, *LPMIDIPROPTEMPO
;
745 typedef struct midiproptimediv_tag
{
748 } MIDIPROPTIMEDIV
, *LPMIDIPROPTIMEDIV
;
750 #define MIDIPROP_GET 0x40000000
751 #define MIDIPROP_SET 0x80000000
752 #define MIDIPROP_TEMPO 0x00000002
753 #define MIDIPROP_TIMEDIV 0x00000001
755 typedef struct midievent_tag
{
756 DWORD dwDeltaTime
; /* Time, in MIDI ticks, between the previous
757 * event and the current event. */
758 DWORD dwStreamID
; /* Reserved; must be zero. */
759 DWORD dwEvent
; /* event => see MEVT_XXX macros */
760 DWORD dwParms
[1]; /* extra pmts to dwEvent if F_LONG is set */
761 } MIDIEVENT
, *LPMIDIEVENT
;
763 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
764 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFF))
766 #define MEVT_F_CALLBACK __MSABI_LONG(0x40000000)
767 #define MEVT_F_LONG __MSABI_LONG(0x80000000)
768 #define MEVT_F_SHORT __MSABI_LONG(0x00000000)
769 #define MEVT_COMMENT ((BYTE)0x82)
770 #define MEVT_LONGMSG ((BYTE)0x80)
771 #define MEVT_NOP ((BYTE)0x02)
772 #define MEVT_SHORTMSG ((BYTE)0x00)
773 #define MEVT_TEMPO ((BYTE)0x01)
774 #define MEVT_VERSION ((BYTE)0x84)
776 WINMMAPI UINT WINAPI
midiOutGetNumDevs(void);
777 WINMMAPI UINT WINAPI
midiOutGetDevCapsA(UINT_PTR
,LPMIDIOUTCAPSA
,UINT
);
778 WINMMAPI UINT WINAPI
midiOutGetDevCapsW(UINT_PTR
,LPMIDIOUTCAPSW
,UINT
);
779 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
780 WINMMAPI UINT WINAPI
midiOutGetVolume(HMIDIOUT
,DWORD
*);
781 WINMMAPI UINT WINAPI
midiOutSetVolume(HMIDIOUT
,DWORD
);
782 WINMMAPI UINT WINAPI
midiOutGetErrorTextA(UINT
,LPSTR
,UINT
);
783 WINMMAPI UINT WINAPI
midiOutGetErrorTextW(UINT
,LPWSTR
,UINT
);
784 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
785 WINMMAPI MMRESULT WINAPI
midiOutOpen(LPHMIDIOUT
,UINT
,DWORD_PTR
,DWORD_PTR
,DWORD
);
786 WINMMAPI UINT WINAPI
midiOutClose(HMIDIOUT
);
787 WINMMAPI UINT WINAPI
midiOutPrepareHeader(HMIDIOUT
,MIDIHDR
*,UINT
);
788 WINMMAPI UINT WINAPI
midiOutUnprepareHeader(HMIDIOUT
,MIDIHDR
*,UINT
);
789 WINMMAPI UINT WINAPI
midiOutShortMsg(HMIDIOUT
,DWORD
);
790 WINMMAPI UINT WINAPI
midiOutLongMsg(HMIDIOUT
,MIDIHDR
*,UINT
);
791 WINMMAPI UINT WINAPI
midiOutReset(HMIDIOUT
);
792 WINMMAPI UINT WINAPI
midiOutCachePatches(HMIDIOUT
,UINT
,WORD
*,UINT
);
793 WINMMAPI UINT WINAPI
midiOutCacheDrumPatches(HMIDIOUT
,UINT
,WORD
*,UINT
);
794 WINMMAPI UINT WINAPI
midiOutGetID(HMIDIOUT
,UINT
*);
795 WINMMAPI UINT WINAPI
midiOutMessage(HMIDIOUT
,UINT
,DWORD_PTR
,DWORD_PTR
);
796 WINMMAPI UINT WINAPI
midiInGetNumDevs(void);
797 WINMMAPI UINT WINAPI
midiInGetDevCapsA(UINT_PTR
,LPMIDIINCAPSA
,UINT
);
798 WINMMAPI UINT WINAPI
midiInGetDevCapsW(UINT_PTR
,LPMIDIINCAPSW
,UINT
);
799 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
800 WINMMAPI UINT WINAPI
midiInGetErrorTextA(UINT
,LPSTR
,UINT
);
801 WINMMAPI UINT WINAPI
midiInGetErrorTextW(UINT
,LPWSTR
,UINT
);
802 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
803 WINMMAPI MMRESULT WINAPI
midiInOpen(LPHMIDIIN
,UINT
,DWORD_PTR
,DWORD_PTR
,DWORD
);
804 WINMMAPI UINT WINAPI
midiInClose(HMIDIIN
);
805 WINMMAPI UINT WINAPI
midiInPrepareHeader(HMIDIIN
,MIDIHDR
*,UINT
);
806 WINMMAPI UINT WINAPI
midiInUnprepareHeader(HMIDIIN
,MIDIHDR
*,UINT
);
807 WINMMAPI UINT WINAPI
midiInAddBuffer(HMIDIIN
,MIDIHDR
*,UINT
);
808 WINMMAPI UINT WINAPI
midiInStart(HMIDIIN
);
809 WINMMAPI UINT WINAPI
midiInStop(HMIDIIN
);
810 WINMMAPI UINT WINAPI
midiInReset(HMIDIIN
);
811 WINMMAPI UINT WINAPI
midiInGetID(HMIDIIN
,UINT
*);
812 WINMMAPI UINT WINAPI
midiInMessage(HMIDIIN
,UINT
,DWORD_PTR
,DWORD_PTR
);
813 WINMMAPI MMRESULT WINAPI
midiStreamClose(HMIDISTRM hms
);
814 WINMMAPI MMRESULT WINAPI
midiStreamOpen(LPHMIDISTRM
,LPUINT
,DWORD
,DWORD_PTR
,DWORD_PTR
,DWORD
);
815 WINMMAPI MMRESULT WINAPI
midiStreamOut(HMIDISTRM hms
, LPMIDIHDR lpMidiHdr
, UINT cbMidiHdr
);
816 WINMMAPI MMRESULT WINAPI
midiStreamPause(HMIDISTRM hms
);
817 WINMMAPI MMRESULT WINAPI
midiStreamPosition(HMIDISTRM hms
, LPMMTIME lpmmt
, UINT cbmmt
);
818 WINMMAPI MMRESULT WINAPI
midiStreamProperty(HMIDISTRM hms
, LPBYTE lpPropData
, DWORD dwProperty
);
819 WINMMAPI MMRESULT WINAPI
midiStreamRestart(HMIDISTRM hms
);
820 WINMMAPI MMRESULT WINAPI
midiStreamStop(HMIDISTRM hms
);
822 #define AUX_MAPPER (-1)
824 typedef struct tagAUXCAPSA
{
827 MMVERSION vDriverVersion
;
828 CHAR szPname
[MAXPNAMELEN
];
832 } AUXCAPSA
, *LPAUXCAPSA
;
834 typedef struct tagAUXCAPSW
{
837 MMVERSION vDriverVersion
;
838 WCHAR szPname
[MAXPNAMELEN
];
842 } AUXCAPSW
, *LPAUXCAPSW
;
844 DECL_WINELIB_TYPE_AW(AUXCAPS
)
845 DECL_WINELIB_TYPE_AW(LPAUXCAPS
)
847 typedef struct tagAUXCAPS2A
{
850 MMVERSION vDriverVersion
;
851 CHAR szPname
[MAXPNAMELEN
];
855 GUID ManufacturerGuid
;
858 } AUXCAPS2A
, *LPAUXCAPS2A
;
860 typedef struct tagAUXCAPS2W
{
863 MMVERSION vDriverVersion
;
864 WCHAR szPname
[MAXPNAMELEN
];
868 GUID ManufacturerGuid
;
871 } AUXCAPS2W
, *LPAUXCAPS2W
;
873 DECL_WINELIB_TYPE_AW(AUXCAPS2
)
874 DECL_WINELIB_TYPE_AW(LPAUXCAPS2
)
876 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
877 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
879 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
880 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
882 WINMMAPI UINT WINAPI
auxGetNumDevs(void);
883 WINMMAPI UINT WINAPI
auxGetDevCapsA(UINT_PTR
,LPAUXCAPSA
,UINT
);
884 WINMMAPI UINT WINAPI
auxGetDevCapsW(UINT_PTR
,LPAUXCAPSW
,UINT
);
885 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
886 WINMMAPI UINT WINAPI
auxSetVolume(UINT
,DWORD
);
887 WINMMAPI UINT WINAPI
auxGetVolume(UINT
,LPDWORD
);
888 WINMMAPI UINT WINAPI
auxOutMessage(UINT
,UINT
,DWORD_PTR
,DWORD_PTR
);
890 #define TIMERR_NOERROR (0) /* no error */
891 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
892 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
894 typedef void (CALLBACK
*LPTIMECALLBACK
)(UINT
,UINT
,DWORD_PTR
,DWORD_PTR
,DWORD_PTR
);
896 #define TIME_ONESHOT 0x0000 /* program timer for single event */
897 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
898 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
899 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
900 #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
901 #define TIME_KILL_SYNCHRONOUS 0x0100
903 typedef struct timecaps_tag
{
906 } TIMECAPS
, *LPTIMECAPS
;
909 WINMMAPI MMRESULT WINAPI
timeGetSystemTime(LPMMTIME
,UINT
);
910 WINMMAPI DWORD WINAPI
timeGetTime(void);
911 WINMMAPI MMRESULT WINAPI
timeSetEvent(UINT
,UINT
,LPTIMECALLBACK
,DWORD_PTR
,UINT
);
912 WINMMAPI MMRESULT WINAPI
timeKillEvent(UINT
);
913 WINMMAPI MMRESULT WINAPI
timeGetDevCaps(LPTIMECAPS
,UINT
);
914 WINMMAPI MMRESULT WINAPI
timeBeginPeriod(UINT
);
915 WINMMAPI MMRESULT WINAPI
timeEndPeriod(UINT
);
917 #define JOYERR_NOERROR (0) /* no error */
918 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
919 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
920 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
922 /* JOYINFO, JOYINFOEX, MM_JOY* */
923 #define JOY_BUTTON1 0x0001
924 #define JOY_BUTTON2 0x0002
925 #define JOY_BUTTON3 0x0004
926 #define JOY_BUTTON4 0x0008
927 #define JOY_BUTTON1CHG 0x0100
928 #define JOY_BUTTON2CHG 0x0200
929 #define JOY_BUTTON3CHG 0x0400
930 #define JOY_BUTTON4CHG 0x0800
932 #define JOYSTICKID1 0
933 #define JOYSTICKID2 1
936 #define JOYCAPS_HASZ 0x0001
937 #define JOYCAPS_HASR 0x0002
938 #define JOYCAPS_HASU 0x0004
939 #define JOYCAPS_HASV 0x0008
940 #define JOYCAPS_HASPOV 0x0010
941 #define JOYCAPS_POV4DIR 0x0020
942 #define JOYCAPS_POVCTS 0x0040
944 /* JOYINFOEX stuff */
945 #define JOY_POVCENTERED (WORD) -1
946 #define JOY_POVFORWARD 0
947 #define JOY_POVRIGHT 9000
948 #define JOY_POVBACKWARD 18000
949 #define JOY_POVLEFT 27000
951 #define JOY_RETURNX 0x00000001
952 #define JOY_RETURNY 0x00000002
953 #define JOY_RETURNZ 0x00000004
954 #define JOY_RETURNR 0x00000008
955 #define JOY_RETURNU 0x00000010
956 #define JOY_RETURNV 0x00000020
957 #define JOY_RETURNPOV 0x00000040
958 #define JOY_RETURNBUTTONS 0x00000080
959 #define JOY_RETURNRAWDATA 0x00000100
960 #define JOY_RETURNPOVCTS 0x00000200
961 #define JOY_RETURNCENTERED 0x00000400
962 #define JOY_USEDEADZONE 0x00000800
963 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
964 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
965 JOY_RETURNPOV | JOY_RETURNBUTTONS)
966 #define JOY_CAL_READALWAYS 0x00010000
967 #define JOY_CAL_READXYONLY 0x00020000
968 #define JOY_CAL_READ3 0x00040000
969 #define JOY_CAL_READ4 0x00080000
970 #define JOY_CAL_READXONLY 0x00100000
971 #define JOY_CAL_READYONLY 0x00200000
972 #define JOY_CAL_READ5 0x00400000
973 #define JOY_CAL_READ6 0x00800000
974 #define JOY_CAL_READZONLY 0x01000000
975 #define JOY_CAL_READRONLY 0x02000000
976 #define JOY_CAL_READUONLY 0x04000000
977 #define JOY_CAL_READVONLY 0x08000000
979 typedef struct tagJOYCAPSA
{
982 CHAR szPname
[MAXPNAMELEN
];
1002 CHAR szRegKey
[MAXPNAMELEN
];
1003 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
1004 } JOYCAPSA
, *LPJOYCAPSA
;
1006 typedef struct tagJOYCAPSW
{
1009 WCHAR szPname
[MAXPNAMELEN
];
1029 WCHAR szRegKey
[MAXPNAMELEN
];
1030 WCHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
1031 } JOYCAPSW
, *LPJOYCAPSW
;
1032 DECL_WINELIB_TYPE_AW(JOYCAPS
)
1033 DECL_WINELIB_TYPE_AW(LPJOYCAPS
)
1035 typedef struct tagJOYCAPS2A
{
1038 CHAR szPname
[MAXPNAMELEN
];
1058 CHAR szRegKey
[MAXPNAMELEN
];
1059 CHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
1060 GUID ManufacturerGuid
;
1063 } JOYCAPS2A
, *LPJOYCAPS2A
;
1065 typedef struct tagJOYCAPS2W
{
1068 WCHAR szPname
[MAXPNAMELEN
];
1088 WCHAR szRegKey
[MAXPNAMELEN
];
1089 WCHAR szOEMVxD
[MAX_JOYSTICKOEMVXDNAME
];
1090 GUID ManufacturerGuid
;
1093 } JOYCAPS2W
, *LPJOYCAPS2W
;
1094 DECL_WINELIB_TYPE_AW(JOYCAPS2
)
1095 DECL_WINELIB_TYPE_AW(LPJOYCAPS2
)
1097 typedef struct joyinfo_tag
{
1102 } JOYINFO
, *LPJOYINFO
;
1104 typedef struct joyinfoex_tag
{
1114 DWORD dwButtonNumber
;
1118 } JOYINFOEX
,*LPJOYINFOEX
;
1121 WINMMAPI MMRESULT WINAPI
joyGetDevCapsA(UINT_PTR
,LPJOYCAPSA
,UINT
);
1122 WINMMAPI MMRESULT WINAPI
joyGetDevCapsW(UINT_PTR
,LPJOYCAPSW
,UINT
);
1123 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
1124 WINMMAPI UINT WINAPI
joyGetNumDevs(void);
1125 WINMMAPI MMRESULT WINAPI
joyGetPos(UINT
,LPJOYINFO
);
1126 WINMMAPI MMRESULT WINAPI
joyGetPosEx(UINT
,LPJOYINFOEX
);
1127 WINMMAPI MMRESULT WINAPI
joyGetThreshold(UINT
,UINT
*);
1128 WINMMAPI MMRESULT WINAPI
joyReleaseCapture(UINT
);
1129 WINMMAPI MMRESULT WINAPI
joySetCapture(HWND
,UINT
,UINT
,BOOL
);
1130 WINMMAPI MMRESULT WINAPI
joySetThreshold(UINT
,UINT
);
1132 #define MIXERR_BASE 1024
1133 #define MIXERR_INVALLINE (MIXERR_BASE + 0)
1134 #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
1135 #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
1136 #define MIXERR_LASTERROR (MIXERR_BASE + 2)
1138 typedef struct tagMIXERCAPSA
{
1141 MMVERSION vDriverVersion
;
1142 CHAR szPname
[MAXPNAMELEN
];
1144 DWORD cDestinations
;
1145 } MIXERCAPSA
,*LPMIXERCAPSA
;
1147 typedef struct tagMIXERCAPSW
{
1150 MMVERSION vDriverVersion
;
1151 WCHAR szPname
[MAXPNAMELEN
];
1153 DWORD cDestinations
;
1154 } MIXERCAPSW
,*LPMIXERCAPSW
;
1156 DECL_WINELIB_TYPE_AW(MIXERCAPS
)
1157 DECL_WINELIB_TYPE_AW(LPMIXERCAPS
)
1159 typedef struct tagMIXERCAPS2A
{
1162 MMVERSION vDriverVersion
;
1163 CHAR szPname
[MAXPNAMELEN
];
1165 DWORD cDestinations
;
1166 GUID ManufacturerGuid
;
1169 } MIXERCAPS2A
,*LPMIXERCAPS2A
;
1171 typedef struct tagMIXERCAPS2W
{
1174 MMVERSION vDriverVersion
;
1175 WCHAR szPname
[MAXPNAMELEN
];
1177 DWORD cDestinations
;
1178 GUID ManufacturerGuid
;
1181 } MIXERCAPS2W
,*LPMIXERCAPS2W
;
1183 DECL_WINELIB_TYPE_AW(MIXERCAPS2
)
1184 DECL_WINELIB_TYPE_AW(LPMIXERCAPS2
)
1186 #define MIXER_SHORT_NAME_CHARS 16
1187 #define MIXER_LONG_NAME_CHARS 64
1189 /* MIXERLINE.fdwLine */
1190 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1191 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1192 #define MIXERLINE_LINEF_SOURCE 0x80000000
1195 #define MIXER_OBJECTF_HANDLE __MSABI_LONG(0x80000000)
1196 #define MIXER_OBJECTF_MIXER __MSABI_LONG(0x00000000)
1197 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
1198 #define MIXER_OBJECTF_WAVEOUT __MSABI_LONG(0x10000000)
1199 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
1200 #define MIXER_OBJECTF_WAVEIN __MSABI_LONG(0x20000000)
1201 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
1202 #define MIXER_OBJECTF_MIDIOUT __MSABI_LONG(0x30000000)
1203 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
1204 #define MIXER_OBJECTF_MIDIIN __MSABI_LONG(0x40000000)
1205 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
1206 #define MIXER_OBJECTF_AUX __MSABI_LONG(0x50000000)
1208 /* MIXERLINE.dwComponentType */
1209 /* component types for destinations and sources */
1210 #define MIXERLINE_COMPONENTTYPE_DST_FIRST __MSABI_LONG(0x00000000)
1211 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1212 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1213 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1214 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1215 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1216 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1217 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1218 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1219 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1220 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1222 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST __MSABI_LONG(0x00001000)
1223 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1224 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1225 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1226 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1227 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1228 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1229 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1230 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1231 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1232 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1233 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1234 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1236 /* MIXERLINE.Target.dwType */
1237 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1238 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1239 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1240 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1241 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1242 #define MIXERLINE_TARGETTYPE_AUX 5
1244 typedef struct tagMIXERLINEA
{
1246 DWORD dwDestination
;
1251 DWORD dwComponentType
;
1255 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1256 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1262 MMVERSION vDriverVersion
;
1263 CHAR szPname
[MAXPNAMELEN
];
1265 } MIXERLINEA
, *LPMIXERLINEA
;
1267 typedef struct tagMIXERLINEW
{
1269 DWORD dwDestination
;
1274 DWORD dwComponentType
;
1278 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1279 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1285 MMVERSION vDriverVersion
;
1286 WCHAR szPname
[MAXPNAMELEN
];
1288 } MIXERLINEW
, *LPMIXERLINEW
;
1290 DECL_WINELIB_TYPE_AW(MIXERLINE
)
1291 DECL_WINELIB_TYPE_AW(LPMIXERLINE
)
1293 /* MIXERCONTROL.fdwControl */
1294 #define MIXERCONTROL_CONTROLF_UNIFORM __MSABI_LONG(0x00000001)
1295 #define MIXERCONTROL_CONTROLF_MULTIPLE __MSABI_LONG(0x00000002)
1296 #define MIXERCONTROL_CONTROLF_DISABLED __MSABI_LONG(0x80000000)
1298 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1299 #define MIXERCONTROL_CT_CLASS_MASK __MSABI_LONG(0xF0000000)
1300 #define MIXERCONTROL_CT_CLASS_CUSTOM __MSABI_LONG(0x00000000)
1301 #define MIXERCONTROL_CT_CLASS_METER __MSABI_LONG(0x10000000)
1302 #define MIXERCONTROL_CT_CLASS_SWITCH __MSABI_LONG(0x20000000)
1303 #define MIXERCONTROL_CT_CLASS_NUMBER __MSABI_LONG(0x30000000)
1304 #define MIXERCONTROL_CT_CLASS_SLIDER __MSABI_LONG(0x40000000)
1305 #define MIXERCONTROL_CT_CLASS_FADER __MSABI_LONG(0x50000000)
1306 #define MIXERCONTROL_CT_CLASS_TIME __MSABI_LONG(0x60000000)
1307 #define MIXERCONTROL_CT_CLASS_LIST __MSABI_LONG(0x70000000)
1309 #define MIXERCONTROL_CT_SUBCLASS_MASK __MSABI_LONG(0x0F000000)
1311 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN __MSABI_LONG(0x00000000)
1312 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON __MSABI_LONG(0x01000000)
1314 #define MIXERCONTROL_CT_SC_METER_POLLED __MSABI_LONG(0x00000000)
1316 #define MIXERCONTROL_CT_SC_TIME_MICROSECS __MSABI_LONG(0x00000000)
1317 #define MIXERCONTROL_CT_SC_TIME_MILLISECS __MSABI_LONG(0x01000000)
1319 #define MIXERCONTROL_CT_SC_LIST_SINGLE __MSABI_LONG(0x00000000)
1320 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE __MSABI_LONG(0x01000000)
1322 #define MIXERCONTROL_CT_UNITS_MASK __MSABI_LONG(0x00FF0000)
1323 #define MIXERCONTROL_CT_UNITS_CUSTOM __MSABI_LONG(0x00000000)
1324 #define MIXERCONTROL_CT_UNITS_BOOLEAN __MSABI_LONG(0x00010000)
1325 #define MIXERCONTROL_CT_UNITS_SIGNED __MSABI_LONG(0x00020000)
1326 #define MIXERCONTROL_CT_UNITS_UNSIGNED __MSABI_LONG(0x00030000)
1327 #define MIXERCONTROL_CT_UNITS_DECIBELS __MSABI_LONG(0x00040000) /* in 10ths */
1328 #define MIXERCONTROL_CT_UNITS_PERCENT __MSABI_LONG(0x00050000) /* in 10ths */
1330 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1331 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1332 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1333 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1334 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1335 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1336 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1337 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1338 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1339 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1340 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1341 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1342 #define MIXERCONTROL_CONTROLTYPE_BASS_BOOST (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 0x00002277)
1343 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1344 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1345 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1346 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1347 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1348 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1349 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1350 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1351 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1352 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1353 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1354 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1355 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1356 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1357 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1358 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1359 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1360 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1361 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1364 typedef struct tagMIXERCONTROLA
{
1367 DWORD dwControlType
;
1369 DWORD cMultipleItems
;
1370 CHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1371 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1381 DWORD dwReserved
[6];
1386 DWORD dwReserved
[6];
1388 } MIXERCONTROLA
, *LPMIXERCONTROLA
;
1390 typedef struct MIXERCONTROLW
{
1393 DWORD dwControlType
;
1395 DWORD cMultipleItems
;
1396 WCHAR szShortName
[MIXER_SHORT_NAME_CHARS
];
1397 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1407 DWORD dwReserved
[6];
1412 DWORD dwReserved
[6];
1414 } MIXERCONTROLW
, *LPMIXERCONTROLW
;
1416 DECL_WINELIB_TYPE_AW(MIXERCONTROL
)
1417 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL
)
1419 typedef struct tagMIXERLINECONTROLSA
{
1424 DWORD dwControlType
;
1428 LPMIXERCONTROLA pamxctrl
;
1429 } MIXERLINECONTROLSA
, *LPMIXERLINECONTROLSA
;
1431 typedef struct tagMIXERLINECONTROLSW
{
1436 DWORD dwControlType
;
1440 LPMIXERCONTROLW pamxctrl
;
1441 } MIXERLINECONTROLSW
, *LPMIXERLINECONTROLSW
;
1443 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS
)
1444 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS
)
1446 typedef struct tMIXERCONTROLDETAILS
{
1452 DWORD cMultipleItems
;
1456 } MIXERCONTROLDETAILS
,*LPMIXERCONTROLDETAILS
;
1458 typedef struct tagMIXERCONTROLDETAILS_LISTTEXTA
{
1461 CHAR szName
[MIXER_LONG_NAME_CHARS
];
1462 } MIXERCONTROLDETAILS_LISTTEXTA
,*LPMIXERCONTROLDETAILS_LISTTEXTA
;
1464 typedef struct tagMIXERCONTROLDETAILS_LISTTEXTW
{
1467 WCHAR szName
[MIXER_LONG_NAME_CHARS
];
1468 } MIXERCONTROLDETAILS_LISTTEXTW
,*LPMIXERCONTROLDETAILS_LISTTEXTW
;
1470 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT
)
1471 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT
)
1473 /* MIXER_GETCONTROLDETAILSF_VALUE */
1476 } MIXERCONTROLDETAILS_BOOLEAN
,*LPMIXERCONTROLDETAILS_BOOLEAN
;
1480 } MIXERCONTROLDETAILS_SIGNED
,*LPMIXERCONTROLDETAILS_SIGNED
;
1484 } MIXERCONTROLDETAILS_UNSIGNED
,*LPMIXERCONTROLDETAILS_UNSIGNED
;
1486 /* bits passed to mixerGetLineInfo.fdwInfo */
1487 #define MIXER_GETLINEINFOF_DESTINATION __MSABI_LONG(0x00000000)
1488 #define MIXER_GETLINEINFOF_SOURCE __MSABI_LONG(0x00000001)
1489 #define MIXER_GETLINEINFOF_LINEID __MSABI_LONG(0x00000002)
1490 #define MIXER_GETLINEINFOF_COMPONENTTYPE __MSABI_LONG(0x00000003)
1491 #define MIXER_GETLINEINFOF_TARGETTYPE __MSABI_LONG(0x00000004)
1492 #define MIXER_GETLINEINFOF_QUERYMASK __MSABI_LONG(0x0000000F)
1494 /* bitmask passed to mixerGetLineControl */
1495 #define MIXER_GETLINECONTROLSF_ALL __MSABI_LONG(0x00000000)
1496 #define MIXER_GETLINECONTROLSF_ONEBYID __MSABI_LONG(0x00000001)
1497 #define MIXER_GETLINECONTROLSF_ONEBYTYPE __MSABI_LONG(0x00000002)
1498 #define MIXER_GETLINECONTROLSF_QUERYMASK __MSABI_LONG(0x0000000F)
1500 /* bitmask passed to mixerGetControlDetails */
1501 #define MIXER_GETCONTROLDETAILSF_VALUE __MSABI_LONG(0x00000000)
1502 #define MIXER_GETCONTROLDETAILSF_LISTTEXT __MSABI_LONG(0x00000001)
1503 #define MIXER_GETCONTROLDETAILSF_QUERYMASK __MSABI_LONG(0x0000000F)
1505 /* bitmask passed to mixerSetControlDetails */
1506 #define MIXER_SETCONTROLDETAILSF_VALUE __MSABI_LONG(0x00000000)
1507 #define MIXER_SETCONTROLDETAILSF_CUSTOM __MSABI_LONG(0x00000001)
1508 #define MIXER_SETCONTROLDETAILSF_QUERYMASK __MSABI_LONG(0x0000000F)
1510 WINMMAPI UINT WINAPI
mixerGetNumDevs(void);
1511 WINMMAPI UINT WINAPI
mixerOpen(LPHMIXER
,UINT
,DWORD_PTR
,DWORD_PTR
,DWORD
);
1512 WINMMAPI UINT WINAPI
mixerClose(HMIXER
);
1513 WINMMAPI DWORD WINAPI
mixerMessage(HMIXER
,UINT
,DWORD_PTR
,DWORD_PTR
);
1514 WINMMAPI UINT WINAPI
mixerGetDevCapsA(UINT_PTR
,LPMIXERCAPSA
,UINT
);
1515 WINMMAPI UINT WINAPI
mixerGetDevCapsW(UINT_PTR
,LPMIXERCAPSW
,UINT
);
1516 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1517 WINMMAPI UINT WINAPI
mixerGetLineInfoA(HMIXEROBJ
,LPMIXERLINEA
,DWORD
);
1518 WINMMAPI UINT WINAPI
mixerGetLineInfoW(HMIXEROBJ
,LPMIXERLINEW
,DWORD
);
1519 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1520 WINMMAPI UINT WINAPI
mixerGetID(HMIXEROBJ
,LPUINT
,DWORD
);
1521 WINMMAPI UINT WINAPI
mixerGetLineControlsA(HMIXEROBJ
,LPMIXERLINECONTROLSA
,DWORD
);
1522 WINMMAPI UINT WINAPI
mixerGetLineControlsW(HMIXEROBJ
,LPMIXERLINECONTROLSW
,DWORD
);
1523 #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1524 WINMMAPI UINT WINAPI
mixerGetControlDetailsA(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1525 WINMMAPI UINT WINAPI
mixerGetControlDetailsW(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1526 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1527 WINMMAPI UINT WINAPI
mixerSetControlDetails(HMIXEROBJ
,LPMIXERCONTROLDETAILS
,DWORD
);
1529 #define MMIOERR_BASE 256
1530 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1531 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1532 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1533 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1534 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1535 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1536 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1537 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1538 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1539 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1540 #define MMIOERR_PATHNOTFOUND (MMIOERR_BASE + 11)
1541 #define MMIOERR_ACCESSDENIED (MMIOERR_BASE + 12)
1542 #define MMIOERR_SHARINGVIOLATION (MMIOERR_BASE + 13)
1543 #define MMIOERR_NETWORKERROR (MMIOERR_BASE + 14)
1544 #define MMIOERR_TOOMANYOPENFILES (MMIOERR_BASE + 15)
1545 #define MMIOERR_INVALIDFILE (MMIOERR_BASE + 16)
1547 #define CFSEPCHAR '+' /* compound file name separator char. */
1549 typedef DWORD FOURCC
; /* a four character code */
1550 typedef LRESULT (CALLBACK
*LPMMIOPROC
) (LPSTR lpmmioinfo
, UINT uMessage
,
1551 LPARAM lParam1
, LPARAM lParam2
);
1553 typedef struct _MMIOINFO
{
1559 /* fields maintained by MMIO functions during buffered I/O */
1566 /* fields maintained by I/O procedure */
1569 /* other fields maintained by MMIO */
1573 } MMIOINFO
, *PMMIOINFO
, *LPMMIOINFO
;
1576 typedef struct _MMCKINFO
1578 FOURCC ckid
; /* chunk ID */
1579 DWORD cksize
; /* chunk size */
1580 FOURCC fccType
; /* form type or list type */
1581 DWORD dwDataOffset
; /* offset of data portion of chunk */
1582 DWORD dwFlags
; /* flags used by MMIO functions */
1583 } MMCKINFO
, *LPMMCKINFO
;
1585 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1586 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1588 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1589 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1590 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1591 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1592 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1593 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1595 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1597 #define MMIO_READ 0x00000000 /* open file for reading only */
1598 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1599 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1601 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1602 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1603 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1604 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1605 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1607 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1608 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1609 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1610 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1611 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1612 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1613 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1614 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1615 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1616 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1617 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1618 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1624 #endif /* SEEK_SET */
1626 #define MMIOM_READ MMIO_READ /* read */
1627 #define MMIOM_WRITE MMIO_WRITE /* write */
1628 #define MMIOM_SEEK 2 /* seek to a new position in file */
1629 #define MMIOM_OPEN 3 /* open file */
1630 #define MMIOM_CLOSE 4 /* close file */
1631 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1633 #define MMIOM_RENAME 6 /* rename specified file */
1635 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1637 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1638 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1640 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1641 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1643 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1645 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1646 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1647 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1649 WINMMAPI LPMMIOPROC WINAPI
mmioInstallIOProcA(FOURCC
,LPMMIOPROC
,DWORD
);
1650 WINMMAPI LPMMIOPROC WINAPI
mmioInstallIOProcW(FOURCC
,LPMMIOPROC
,DWORD
);
1651 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1652 WINMMAPI FOURCC WINAPI
mmioStringToFOURCCA(LPCSTR
,UINT
);
1653 WINMMAPI FOURCC WINAPI
mmioStringToFOURCCW(LPCWSTR
,UINT
);
1654 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1655 WINMMAPI HMMIO WINAPI
mmioOpenA(LPSTR
,MMIOINFO
*,DWORD
);
1656 WINMMAPI HMMIO WINAPI
mmioOpenW(LPWSTR
,MMIOINFO
*,DWORD
);
1657 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1658 WINMMAPI MMRESULT WINAPI
mmioRenameA(LPCSTR szFileName
, LPCSTR szNewFileName
, const MMIOINFO
* lpmmioinfo
, DWORD dwRenameFlags
);
1659 WINMMAPI MMRESULT WINAPI
mmioRenameW(LPCWSTR szFileName
, LPCWSTR szNewFileName
, const MMIOINFO
* lpmmioinfo
, DWORD dwRenameFlags
);
1660 #define mmioRename WINELIB_NAME_AW(mmioRename)
1661 WINMMAPI MMRESULT WINAPI
mmioClose(HMMIO
,UINT
);
1662 WINMMAPI LONG WINAPI
mmioRead(HMMIO
,HPSTR
,LONG
);
1663 WINMMAPI LONG WINAPI
mmioWrite(HMMIO
,HPCSTR
,LONG
);
1664 WINMMAPI LONG WINAPI
mmioSeek(HMMIO
,LONG
,INT
);
1665 WINMMAPI MMRESULT WINAPI
mmioGetInfo(HMMIO
,MMIOINFO
*,UINT
);
1666 WINMMAPI MMRESULT WINAPI
mmioSetInfo(HMMIO
,const MMIOINFO
*,UINT
);
1667 WINMMAPI MMRESULT WINAPI
mmioSetBuffer(HMMIO
,LPSTR
,LONG
,UINT
);
1668 WINMMAPI MMRESULT WINAPI
mmioFlush(HMMIO
,UINT
);
1669 WINMMAPI MMRESULT WINAPI
mmioAdvance(HMMIO
,MMIOINFO
*,UINT
);
1670 WINMMAPI LRESULT WINAPI
mmioSendMessage(HMMIO
,UINT
,LPARAM
,LPARAM
);
1671 WINMMAPI MMRESULT WINAPI
mmioDescend(HMMIO
,MMCKINFO
*,const MMCKINFO
*,UINT
);
1672 WINMMAPI MMRESULT WINAPI
mmioAscend(HMMIO
,MMCKINFO
*,UINT
);
1673 WINMMAPI MMRESULT WINAPI
mmioCreateChunk(HMMIO
,MMCKINFO
*,UINT
);
1675 typedef UINT (CALLBACK
*YIELDPROC
)(MCIDEVICEID
,DWORD
);
1677 WINMMAPI BOOL WINAPI
mciExecute(LPCSTR
);
1678 WINMMAPI DWORD WINAPI
mciSendCommandA(MCIDEVICEID
,UINT
,DWORD_PTR
,DWORD_PTR
);
1679 WINMMAPI DWORD WINAPI
mciSendCommandW(MCIDEVICEID
,UINT
,DWORD_PTR
,DWORD_PTR
);
1680 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1681 WINMMAPI DWORD WINAPI
mciSendStringA(LPCSTR
,LPSTR
,UINT
,HWND
);
1682 WINMMAPI DWORD WINAPI
mciSendStringW(LPCWSTR
,LPWSTR
,UINT
,HWND
);
1683 #define mciSendString WINELIB_NAME_AW(mciSendString)
1684 WINMMAPI MCIDEVICEID WINAPI
mciGetDeviceIDA(LPCSTR
);
1685 WINMMAPI MCIDEVICEID WINAPI
mciGetDeviceIDW(LPCWSTR
);
1686 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1687 WINMMAPI MCIDEVICEID WINAPI
mciGetDeviceIDFromElementIDA(DWORD
,LPCSTR
);
1688 WINMMAPI MCIDEVICEID WINAPI
mciGetDeviceIDFromElementIDW(DWORD
,LPCWSTR
);
1689 #define mciGetDeviceIDFromElementID WINELIB_NAME_AW(mciGetDeviceIDFromElementID)
1690 WINMMAPI BOOL WINAPI
mciGetErrorStringA(MCIERROR
,LPSTR
,UINT
);
1691 WINMMAPI BOOL WINAPI
mciGetErrorStringW(MCIERROR
,LPWSTR
,UINT
);
1692 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1693 WINMMAPI BOOL WINAPI
mciSetYieldProc(MCIDEVICEID
,YIELDPROC
,DWORD
);
1694 WINMMAPI HTASK WINAPI
mciGetCreatorTask(MCIDEVICEID
);
1695 WINMMAPI YIELDPROC WINAPI
mciGetYieldProc(MCIDEVICEID
,DWORD
*);
1697 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1698 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1699 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1700 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1701 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1702 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1703 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1704 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1705 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1706 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1707 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1708 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1709 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1710 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1711 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1712 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1713 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1714 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1715 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1716 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1717 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1718 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1719 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1720 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1721 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1722 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1723 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1724 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1725 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1726 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1727 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1728 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1729 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1730 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1731 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1732 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1733 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1734 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1735 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1736 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1737 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1738 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1739 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1740 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1741 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1742 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1743 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1744 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1745 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1746 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1747 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1748 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1750 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1751 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1752 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1753 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1754 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1755 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1756 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1757 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1758 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1759 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1761 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1762 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1763 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1764 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1765 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1766 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1767 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1768 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1770 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1771 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1772 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1773 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1775 #define MCIERR_NO_IDENTITY (MCIERR_BASE + 94)
1777 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1779 #define MCI_OPEN_DRIVER 0x0801
1780 #define MCI_CLOSE_DRIVER 0x0802
1781 #define MCI_OPEN 0x0803
1782 #define MCI_CLOSE 0x0804
1783 #define MCI_ESCAPE 0x0805
1784 #define MCI_PLAY 0x0806
1785 #define MCI_SEEK 0x0807
1786 #define MCI_STOP 0x0808
1787 #define MCI_PAUSE 0x0809
1788 #define MCI_INFO 0x080A
1789 #define MCI_GETDEVCAPS 0x080B
1790 #define MCI_SPIN 0x080C
1791 #define MCI_SET 0x080D
1792 #define MCI_STEP 0x080E
1793 #define MCI_RECORD 0x080F
1794 #define MCI_SYSINFO 0x0810
1795 #define MCI_BREAK 0x0811
1796 #define MCI_SOUND 0x0812
1797 #define MCI_SAVE 0x0813
1798 #define MCI_STATUS 0x0814
1799 #define MCI_CUE 0x0830
1800 #define MCI_REALIZE 0x0840
1801 #define MCI_WINDOW 0x0841
1802 #define MCI_PUT 0x0842
1803 #define MCI_WHERE 0x0843
1804 #define MCI_FREEZE 0x0844
1805 #define MCI_UNFREEZE 0x0845
1806 #define MCI_LOAD 0x0850
1807 #define MCI_CUT 0x0851
1808 #define MCI_COPY 0x0852
1809 #define MCI_PASTE 0x0853
1810 #define MCI_UPDATE 0x0854
1811 #define MCI_RESUME 0x0855
1812 #define MCI_DELETE 0x0856
1814 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1816 #define MCI_ALL_DEVICE_ID 0xFFFFFFFF
1818 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1819 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1820 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1821 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1822 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1823 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1824 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1825 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1826 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1827 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1828 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1830 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1831 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1833 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1834 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1835 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1836 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1837 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1838 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1839 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1841 #define MCI_FORMAT_MILLISECONDS 0
1842 #define MCI_FORMAT_HMS 1
1843 #define MCI_FORMAT_MSF 2
1844 #define MCI_FORMAT_FRAMES 3
1845 #define MCI_FORMAT_SMPTE_24 4
1846 #define MCI_FORMAT_SMPTE_25 5
1847 #define MCI_FORMAT_SMPTE_30 6
1848 #define MCI_FORMAT_SMPTE_30DROP 7
1849 #define MCI_FORMAT_BYTES 8
1850 #define MCI_FORMAT_SAMPLES 9
1851 #define MCI_FORMAT_TMSF 10
1853 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1854 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1855 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1857 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1859 (((DWORD)(BYTE)(f))<<16)))
1861 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1862 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1863 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1864 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1866 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1868 (((DWORD)(BYTE)(s) | \
1869 ((WORD)(f)<<8))<<16)))
1871 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1872 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1873 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1875 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1877 (((DWORD)(BYTE)(s))<<16)))
1879 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1880 #define MCI_NOTIFY_SUPERSEDED 0x0002
1881 #define MCI_NOTIFY_ABORTED 0x0004
1882 #define MCI_NOTIFY_FAILURE 0x0008
1884 #define MCI_NOTIFY __MSABI_LONG(0x00000001)
1885 #define MCI_WAIT __MSABI_LONG(0x00000002)
1886 #define MCI_FROM __MSABI_LONG(0x00000004)
1887 #define MCI_TO __MSABI_LONG(0x00000008)
1888 #define MCI_TRACK __MSABI_LONG(0x00000010)
1890 #define MCI_OPEN_SHAREABLE __MSABI_LONG(0x00000100)
1891 #define MCI_OPEN_ELEMENT __MSABI_LONG(0x00000200)
1892 #define MCI_OPEN_ALIAS __MSABI_LONG(0x00000400)
1893 #define MCI_OPEN_ELEMENT_ID __MSABI_LONG(0x00000800)
1894 #define MCI_OPEN_TYPE_ID __MSABI_LONG(0x00001000)
1895 #define MCI_OPEN_TYPE __MSABI_LONG(0x00002000)
1897 #define MCI_SEEK_TO_START __MSABI_LONG(0x00000100)
1898 #define MCI_SEEK_TO_END __MSABI_LONG(0x00000200)
1900 #define MCI_STATUS_ITEM __MSABI_LONG(0x00000100)
1901 #define MCI_STATUS_START __MSABI_LONG(0x00000200)
1903 #define MCI_STATUS_LENGTH __MSABI_LONG(0x00000001)
1904 #define MCI_STATUS_POSITION __MSABI_LONG(0x00000002)
1905 #define MCI_STATUS_NUMBER_OF_TRACKS __MSABI_LONG(0x00000003)
1906 #define MCI_STATUS_MODE __MSABI_LONG(0x00000004)
1907 #define MCI_STATUS_MEDIA_PRESENT __MSABI_LONG(0x00000005)
1908 #define MCI_STATUS_TIME_FORMAT __MSABI_LONG(0x00000006)
1909 #define MCI_STATUS_READY __MSABI_LONG(0x00000007)
1910 #define MCI_STATUS_CURRENT_TRACK __MSABI_LONG(0x00000008)
1912 #define MCI_INFO_PRODUCT __MSABI_LONG(0x00000100)
1913 #define MCI_INFO_FILE __MSABI_LONG(0x00000200)
1914 #define MCI_INFO_MEDIA_UPC __MSABI_LONG(0x00000400)
1915 #define MCI_INFO_MEDIA_IDENTITY __MSABI_LONG(0x00000800)
1916 #define MCI_INFO_NAME __MSABI_LONG(0x00001000)
1917 #define MCI_INFO_COPYRIGHT __MSABI_LONG(0x00002000)
1919 #define MCI_GETDEVCAPS_ITEM __MSABI_LONG(0x00000100)
1921 #define MCI_GETDEVCAPS_CAN_RECORD __MSABI_LONG(0x00000001)
1922 #define MCI_GETDEVCAPS_HAS_AUDIO __MSABI_LONG(0x00000002)
1923 #define MCI_GETDEVCAPS_HAS_VIDEO __MSABI_LONG(0x00000003)
1924 #define MCI_GETDEVCAPS_DEVICE_TYPE __MSABI_LONG(0x00000004)
1925 #define MCI_GETDEVCAPS_USES_FILES __MSABI_LONG(0x00000005)
1926 #define MCI_GETDEVCAPS_COMPOUND_DEVICE __MSABI_LONG(0x00000006)
1927 #define MCI_GETDEVCAPS_CAN_EJECT __MSABI_LONG(0x00000007)
1928 #define MCI_GETDEVCAPS_CAN_PLAY __MSABI_LONG(0x00000008)
1929 #define MCI_GETDEVCAPS_CAN_SAVE __MSABI_LONG(0x00000009)
1931 #define MCI_SYSINFO_QUANTITY __MSABI_LONG(0x00000100)
1932 #define MCI_SYSINFO_OPEN __MSABI_LONG(0x00000200)
1933 #define MCI_SYSINFO_NAME __MSABI_LONG(0x00000400)
1934 #define MCI_SYSINFO_INSTALLNAME __MSABI_LONG(0x00000800)
1936 #define MCI_SET_DOOR_OPEN __MSABI_LONG(0x00000100)
1937 #define MCI_SET_DOOR_CLOSED __MSABI_LONG(0x00000200)
1938 #define MCI_SET_TIME_FORMAT __MSABI_LONG(0x00000400)
1939 #define MCI_SET_AUDIO __MSABI_LONG(0x00000800)
1940 #define MCI_SET_VIDEO __MSABI_LONG(0x00001000)
1941 #define MCI_SET_ON __MSABI_LONG(0x00002000)
1942 #define MCI_SET_OFF __MSABI_LONG(0x00004000)
1944 #define MCI_SET_AUDIO_ALL __MSABI_LONG(0x00000000)
1945 #define MCI_SET_AUDIO_LEFT __MSABI_LONG(0x00000001)
1946 #define MCI_SET_AUDIO_RIGHT __MSABI_LONG(0x00000002)
1948 #define MCI_BREAK_KEY __MSABI_LONG(0x00000100)
1949 #define MCI_BREAK_HWND __MSABI_LONG(0x00000200)
1950 #define MCI_BREAK_OFF __MSABI_LONG(0x00000400)
1952 #define MCI_RECORD_INSERT __MSABI_LONG(0x00000100)
1953 #define MCI_RECORD_OVERWRITE __MSABI_LONG(0x00000200)
1955 #define MCI_SOUND_NAME __MSABI_LONG(0x00000100)
1957 #define MCI_SAVE_FILE __MSABI_LONG(0x00000100)
1959 #define MCI_LOAD_FILE __MSABI_LONG(0x00000100)
1961 typedef struct tagMCI_GENERIC_PARMS
{
1962 DWORD_PTR dwCallback
;
1963 } MCI_GENERIC_PARMS
, *LPMCI_GENERIC_PARMS
;
1965 typedef struct tagMCI_OPEN_PARMSA
{
1966 DWORD_PTR dwCallback
;
1967 MCIDEVICEID wDeviceID
;
1968 LPCSTR lpstrDeviceType
;
1969 LPCSTR lpstrElementName
;
1971 } MCI_OPEN_PARMSA
, *LPMCI_OPEN_PARMSA
;
1973 typedef struct tagMCI_OPEN_PARMSW
{
1974 DWORD_PTR dwCallback
;
1975 MCIDEVICEID wDeviceID
;
1976 LPCWSTR lpstrDeviceType
;
1977 LPCWSTR lpstrElementName
;
1979 } MCI_OPEN_PARMSW
, *LPMCI_OPEN_PARMSW
;
1981 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS
)
1982 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS
)
1984 typedef struct tagMCI_PLAY_PARMS
{
1985 DWORD_PTR dwCallback
;
1988 } MCI_PLAY_PARMS
, *LPMCI_PLAY_PARMS
;
1990 typedef struct tagMCI_SEEK_PARMS
{
1991 DWORD_PTR dwCallback
;
1993 } MCI_SEEK_PARMS
, *LPMCI_SEEK_PARMS
;
1995 typedef struct tagMCI_STATUS_PARMS
{
1996 DWORD_PTR dwCallback
;
2000 } MCI_STATUS_PARMS
, *LPMCI_STATUS_PARMS
;
2002 typedef struct tagMCI_INFO_PARMSA
{
2003 DWORD_PTR dwCallback
;
2006 } MCI_INFO_PARMSA
, *LPMCI_INFO_PARMSA
;
2008 typedef struct tagMCI_INFO_PARMSW
{
2009 DWORD_PTR dwCallback
;
2012 } MCI_INFO_PARMSW
, *LPMCI_INFO_PARMSW
;
2014 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS
)
2015 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS
)
2017 typedef struct tagMCI_GETDEVCAPS_PARMS
{
2018 DWORD_PTR dwCallback
;
2021 } MCI_GETDEVCAPS_PARMS
, *LPMCI_GETDEVCAPS_PARMS
;
2023 typedef struct tagMCI_SYSINFO_PARMSA
{
2024 DWORD_PTR dwCallback
;
2029 } MCI_SYSINFO_PARMSA
, *LPMCI_SYSINFO_PARMSA
;
2031 typedef struct tagMCI_SYSINFO_PARMSW
{
2032 DWORD_PTR dwCallback
;
2037 } MCI_SYSINFO_PARMSW
, *LPMCI_SYSINFO_PARMSW
;
2039 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS
)
2040 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS
)
2042 typedef struct tagMCI_SET_PARMS
{
2043 DWORD_PTR dwCallback
;
2046 } MCI_SET_PARMS
, *LPMCI_SET_PARMS
;
2048 typedef struct tagMCI_BREAK_PARMS
{
2049 DWORD_PTR dwCallback
;
2052 } MCI_BREAK_PARMS
, *LPMCI_BREAK_PARMS
;
2055 typedef struct tagMCI_SOUND_PARMSA
{
2056 DWORD_PTR dwCallback
;
2057 LPCSTR lpstrSoundName
;
2058 } MCI_SOUND_PARMSA
, *LPMCI_SOUND_PARMSA
;
2060 typedef struct tagMCI_SOUND_PARMSW
{
2061 DWORD_PTR dwCallback
;
2062 LPCWSTR lpstrSoundName
;
2063 } MCI_SOUND_PARMSW
, *LPMCI_SOUND_PARMSW
;
2065 DECL_WINELIB_TYPE_AW(MCI_SOUND_PARMS
)
2066 DECL_WINELIB_TYPE_AW(LPMCI_SOUND_PARMS
)
2068 typedef struct tagMCI_SAVE_PARMSA
{
2069 DWORD_PTR dwCallback
;
2071 } MCI_SAVE_PARMSA
, *LPMCI_SAVE_PARMSA
;
2073 typedef struct tagMCI_SAVE_PARMSW
{
2074 DWORD_PTR dwCallback
;
2076 } MCI_SAVE_PARMSW
, *LPMCI_SAVE_PARMSW
;
2078 DECL_WINELIB_TYPE_AW(MCI_SAVE_PARMS
)
2079 DECL_WINELIB_TYPE_AW(LPMCI_SAVE_PARMS
)
2081 typedef struct tagMCI_LOAD_PARMSA
{
2082 DWORD_PTR dwCallback
;
2084 } MCI_LOAD_PARMSA
, *LPMCI_LOAD_PARMSA
;
2086 typedef struct tagMCI_LOAD_PARMSW
{
2087 DWORD_PTR dwCallback
;
2089 } MCI_LOAD_PARMSW
, *LPMCI_LOAD_PARMSW
;
2091 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS
)
2092 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS
)
2094 typedef struct tagMCI_RECORD_PARMS
{
2095 DWORD_PTR dwCallback
;
2098 } MCI_RECORD_PARMS
, *LPMCI_RECORD_PARMS
;
2100 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
2102 #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
2103 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
2105 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2107 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2108 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2109 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2111 #define MCI_VD_FORMAT_TRACK 0x4001
2113 #define MCI_VD_PLAY_REVERSE __MSABI_LONG(0x00010000)
2114 #define MCI_VD_PLAY_FAST __MSABI_LONG(0x00020000)
2115 #define MCI_VD_PLAY_SPEED __MSABI_LONG(0x00040000)
2116 #define MCI_VD_PLAY_SCAN __MSABI_LONG(0x00080000)
2117 #define MCI_VD_PLAY_SLOW __MSABI_LONG(0x00100000)
2119 #define MCI_VD_SEEK_REVERSE __MSABI_LONG(0x00010000)
2121 #define MCI_VD_STATUS_SPEED __MSABI_LONG(0x00004002)
2122 #define MCI_VD_STATUS_FORWARD __MSABI_LONG(0x00004003)
2123 #define MCI_VD_STATUS_MEDIA_TYPE __MSABI_LONG(0x00004004)
2124 #define MCI_VD_STATUS_SIDE __MSABI_LONG(0x00004005)
2125 #define MCI_VD_STATUS_DISC_SIZE __MSABI_LONG(0x00004006)
2127 #define MCI_VD_GETDEVCAPS_CLV __MSABI_LONG(0x00010000)
2128 #define MCI_VD_GETDEVCAPS_CAV __MSABI_LONG(0x00020000)
2130 #define MCI_VD_SPIN_UP __MSABI_LONG(0x00010000)
2131 #define MCI_VD_SPIN_DOWN __MSABI_LONG(0x00020000)
2133 #define MCI_VD_GETDEVCAPS_CAN_REVERSE __MSABI_LONG(0x00004002)
2134 #define MCI_VD_GETDEVCAPS_FAST_RATE __MSABI_LONG(0x00004003)
2135 #define MCI_VD_GETDEVCAPS_SLOW_RATE __MSABI_LONG(0x00004004)
2136 #define MCI_VD_GETDEVCAPS_NORMAL_RATE __MSABI_LONG(0x00004005)
2138 #define MCI_VD_STEP_FRAMES __MSABI_LONG(0x00010000)
2139 #define MCI_VD_STEP_REVERSE __MSABI_LONG(0x00020000)
2141 #define MCI_VD_ESCAPE_STRING __MSABI_LONG(0x00000100)
2143 typedef struct tagMCI_VD_PLAY_PARMS
{
2144 DWORD_PTR dwCallback
;
2148 } MCI_VD_PLAY_PARMS
, *LPMCI_VD_PLAY_PARMS
;
2150 typedef struct tagMCI_VD_STEP_PARMS
{
2151 DWORD_PTR dwCallback
;
2153 } MCI_VD_STEP_PARMS
, *LPMCI_VD_STEP_PARMS
;
2155 typedef struct tagMCI_VD_ESCAPE_PARMSA
{
2156 DWORD_PTR dwCallback
;
2157 LPCSTR lpstrCommand
;
2158 } MCI_VD_ESCAPE_PARMSA
, *LPMCI_VD_ESCAPE_PARMSA
;
2160 typedef struct tagMCI_VD_ESCAPE_PARMSW
{
2161 DWORD_PTR dwCallback
;
2162 LPCWSTR lpstrCommand
;
2163 } MCI_VD_ESCAPE_PARMSW
, *LPMCI_VD_ESCAPE_PARMSW
;
2165 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS
)
2166 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS
)
2168 #define MCI_WAVE_OPEN_BUFFER __MSABI_LONG(0x00010000)
2170 #define MCI_WAVE_SET_FORMATTAG __MSABI_LONG(0x00010000)
2171 #define MCI_WAVE_SET_CHANNELS __MSABI_LONG(0x00020000)
2172 #define MCI_WAVE_SET_SAMPLESPERSEC __MSABI_LONG(0x00040000)
2173 #define MCI_WAVE_SET_AVGBYTESPERSEC __MSABI_LONG(0x00080000)
2174 #define MCI_WAVE_SET_BLOCKALIGN __MSABI_LONG(0x00100000)
2175 #define MCI_WAVE_SET_BITSPERSAMPLE __MSABI_LONG(0x00200000)
2177 #define MCI_WAVE_INPUT __MSABI_LONG(0x00400000)
2178 #define MCI_WAVE_OUTPUT __MSABI_LONG(0x00800000)
2180 #define MCI_WAVE_STATUS_FORMATTAG __MSABI_LONG(0x00004001)
2181 #define MCI_WAVE_STATUS_CHANNELS __MSABI_LONG(0x00004002)
2182 #define MCI_WAVE_STATUS_SAMPLESPERSEC __MSABI_LONG(0x00004003)
2183 #define MCI_WAVE_STATUS_AVGBYTESPERSEC __MSABI_LONG(0x00004004)
2184 #define MCI_WAVE_STATUS_BLOCKALIGN __MSABI_LONG(0x00004005)
2185 #define MCI_WAVE_STATUS_BITSPERSAMPLE __MSABI_LONG(0x00004006)
2186 #define MCI_WAVE_STATUS_LEVEL __MSABI_LONG(0x00004007)
2188 #define MCI_WAVE_SET_ANYINPUT __MSABI_LONG(0x04000000)
2189 #define MCI_WAVE_SET_ANYOUTPUT __MSABI_LONG(0x08000000)
2191 #define MCI_WAVE_GETDEVCAPS_INPUTS __MSABI_LONG(0x00004001)
2192 #define MCI_WAVE_GETDEVCAPS_OUTPUTS __MSABI_LONG(0x00004002)
2194 typedef struct tagMCI_WAVE_OPEN_PARMSA
{
2195 DWORD_PTR dwCallback
;
2196 MCIDEVICEID wDeviceID
;
2197 LPCSTR lpstrDeviceType
;
2198 LPCSTR lpstrElementName
;
2200 DWORD dwBufferSeconds
;
2201 } MCI_WAVE_OPEN_PARMSA
, *LPMCI_WAVE_OPEN_PARMSA
;
2203 typedef struct tagMCI_WAVE_OPEN_PARMSW
{
2204 DWORD_PTR dwCallback
;
2205 MCIDEVICEID wDeviceID
;
2206 LPCWSTR lpstrDeviceType
;
2207 LPCWSTR lpstrElementName
;
2209 DWORD dwBufferSeconds
;
2210 } MCI_WAVE_OPEN_PARMSW
, *LPMCI_WAVE_OPEN_PARMSW
;
2212 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS
)
2213 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS
)
2215 typedef struct tagMCI_WAVE_DELETE_PARMS
{
2216 DWORD_PTR dwCallback
;
2219 } MCI_WAVE_DELETE_PARMS
, *LPMCI_WAVE_DELETE_PARMS
;
2221 typedef struct tagMCI_WAVE_SET_PARMS
{
2222 DWORD_PTR dwCallback
;
2229 DWORD nSamplesPerSec
;
2230 DWORD nAvgBytesPerSec
;
2232 UINT wBitsPerSample
;
2233 } MCI_WAVE_SET_PARMS
, * LPMCI_WAVE_SET_PARMS
;
2236 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2237 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2238 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2239 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2240 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2242 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2243 #define MCI_SEQ_FILE 0x4002
2244 #define MCI_SEQ_MIDI 0x4003
2245 #define MCI_SEQ_SMPTE 0x4004
2246 #define MCI_SEQ_NONE 65533
2248 #define MCI_SEQ_STATUS_TEMPO __MSABI_LONG(0x00004002)
2249 #define MCI_SEQ_STATUS_PORT __MSABI_LONG(0x00004003)
2250 #define MCI_SEQ_STATUS_SLAVE __MSABI_LONG(0x00004007)
2251 #define MCI_SEQ_STATUS_MASTER __MSABI_LONG(0x00004008)
2252 #define MCI_SEQ_STATUS_OFFSET __MSABI_LONG(0x00004009)
2253 #define MCI_SEQ_STATUS_DIVTYPE __MSABI_LONG(0x0000400A)
2255 #define MCI_SEQ_SET_TEMPO __MSABI_LONG(0x00010000)
2256 #define MCI_SEQ_SET_PORT __MSABI_LONG(0x00020000)
2257 #define MCI_SEQ_SET_SLAVE __MSABI_LONG(0x00040000)
2258 #define MCI_SEQ_SET_MASTER __MSABI_LONG(0x00080000)
2259 #define MCI_SEQ_SET_OFFSET __MSABI_LONG(0x01000000)
2261 typedef struct tagMCI_SEQ_SET_PARMS
{
2262 DWORD_PTR dwCallback
;
2270 } MCI_SEQ_SET_PARMS
, *LPMCI_SEQ_SET_PARMS
;
2272 #define MCI_ANIM_OPEN_WS __MSABI_LONG(0x00010000)
2273 #define MCI_ANIM_OPEN_PARENT __MSABI_LONG(0x00020000)
2274 #define MCI_ANIM_OPEN_NOSTATIC __MSABI_LONG(0x00040000)
2276 #define MCI_ANIM_PLAY_SPEED __MSABI_LONG(0x00010000)
2277 #define MCI_ANIM_PLAY_REVERSE __MSABI_LONG(0x00020000)
2278 #define MCI_ANIM_PLAY_FAST __MSABI_LONG(0x00040000)
2279 #define MCI_ANIM_PLAY_SLOW __MSABI_LONG(0x00080000)
2280 #define MCI_ANIM_PLAY_SCAN __MSABI_LONG(0x00100000)
2282 #define MCI_ANIM_STEP_REVERSE __MSABI_LONG(0x00010000)
2283 #define MCI_ANIM_STEP_FRAMES __MSABI_LONG(0x00020000)
2285 #define MCI_ANIM_STATUS_SPEED __MSABI_LONG(0x00004001)
2286 #define MCI_ANIM_STATUS_FORWARD __MSABI_LONG(0x00004002)
2287 #define MCI_ANIM_STATUS_HWND __MSABI_LONG(0x00004003)
2288 #define MCI_ANIM_STATUS_HPAL __MSABI_LONG(0x00004004)
2289 #define MCI_ANIM_STATUS_STRETCH __MSABI_LONG(0x00004005)
2291 #define MCI_ANIM_INFO_TEXT __MSABI_LONG(0x00010000)
2293 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE __MSABI_LONG(0x00004001)
2294 #define MCI_ANIM_GETDEVCAPS_FAST_RATE __MSABI_LONG(0x00004002)
2295 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE __MSABI_LONG(0x00004003)
2296 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE __MSABI_LONG(0x00004004)
2297 #define MCI_ANIM_GETDEVCAPS_PALETTES __MSABI_LONG(0x00004006)
2298 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH __MSABI_LONG(0x00004007)
2299 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS __MSABI_LONG(0x00004008)
2301 #define MCI_ANIM_REALIZE_NORM __MSABI_LONG(0x00010000)
2302 #define MCI_ANIM_REALIZE_BKGD __MSABI_LONG(0x00020000)
2304 #define MCI_ANIM_WINDOW_HWND __MSABI_LONG(0x00010000)
2305 #define MCI_ANIM_WINDOW_STATE __MSABI_LONG(0x00040000)
2306 #define MCI_ANIM_WINDOW_TEXT __MSABI_LONG(0x00080000)
2307 #define MCI_ANIM_WINDOW_ENABLE_STRETCH __MSABI_LONG(0x00100000)
2308 #define MCI_ANIM_WINDOW_DISABLE_STRETCH __MSABI_LONG(0x00200000)
2310 #define MCI_ANIM_WINDOW_DEFAULT __MSABI_LONG(0x00000000)
2312 #define MCI_ANIM_RECT __MSABI_LONG(0x00010000)
2313 #define MCI_ANIM_PUT_SOURCE __MSABI_LONG(0x00020000)
2314 #define MCI_ANIM_PUT_DESTINATION __MSABI_LONG(0x00040000)
2316 #define MCI_ANIM_WHERE_SOURCE __MSABI_LONG(0x00020000)
2317 #define MCI_ANIM_WHERE_DESTINATION __MSABI_LONG(0x00040000)
2319 #define MCI_ANIM_UPDATE_HDC __MSABI_LONG(0x00020000)
2321 typedef struct tagMCI_ANIM_OPEN_PARMSA
{
2322 DWORD_PTR dwCallback
;
2323 MCIDEVICEID wDeviceID
;
2324 LPCSTR lpstrDeviceType
;
2325 LPCSTR lpstrElementName
;
2329 } MCI_ANIM_OPEN_PARMSA
, *LPMCI_ANIM_OPEN_PARMSA
;
2331 typedef struct tagMCI_ANIM_OPEN_PARMSW
{
2332 DWORD_PTR dwCallback
;
2333 MCIDEVICEID wDeviceID
;
2334 LPCWSTR lpstrDeviceType
;
2335 LPCWSTR lpstrElementName
;
2339 } MCI_ANIM_OPEN_PARMSW
, *LPMCI_ANIM_OPEN_PARMSW
;
2341 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS
)
2342 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS
)
2344 typedef struct tagMCI_ANIM_PLAY_PARMS
{
2345 DWORD_PTR dwCallback
;
2349 } MCI_ANIM_PLAY_PARMS
, *LPMCI_ANIM_PLAY_PARMS
;
2351 typedef struct tagMCI_ANIM_STEP_PARMS
{
2352 DWORD_PTR dwCallback
;
2354 } MCI_ANIM_STEP_PARMS
, *LPMCI_ANIM_STEP_PARMS
;
2356 typedef struct tagMCI_ANIM_WINDOW_PARMSA
{
2357 DWORD_PTR dwCallback
;
2361 } MCI_ANIM_WINDOW_PARMSA
, *LPMCI_ANIM_WINDOW_PARMSA
;
2363 typedef struct tagMCI_ANIM_WINDOW_PARMSW
{
2364 DWORD_PTR dwCallback
;
2368 } MCI_ANIM_WINDOW_PARMSW
, *LPMCI_ANIM_WINDOW_PARMSW
;
2370 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS
)
2371 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS
)
2373 typedef struct tagMCI_ANIM_RECT_PARMS
{
2374 DWORD_PTR dwCallback
;
2375 #ifdef MCI_USE_OFFEXT
2378 #else /* ifdef MCI_USE_OFFEXT */
2380 #endif /* ifdef MCI_USE_OFFEXT */
2381 } MCI_ANIM_RECT_PARMS
, *LPMCI_ANIM_RECT_PARMS
;
2384 typedef struct tagMCI_ANIM_UPDATE_PARMS
{
2385 DWORD_PTR dwCallback
;
2388 } MCI_ANIM_UPDATE_PARMS
, *LPMCI_ANIM_UPDATE_PARMS
;
2391 #define MCI_OVLY_OPEN_WS __MSABI_LONG(0x00010000)
2392 #define MCI_OVLY_OPEN_PARENT __MSABI_LONG(0x00020000)
2394 #define MCI_OVLY_STATUS_HWND __MSABI_LONG(0x00004001)
2395 #define MCI_OVLY_STATUS_STRETCH __MSABI_LONG(0x00004002)
2397 #define MCI_OVLY_INFO_TEXT __MSABI_LONG(0x00010000)
2399 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH __MSABI_LONG(0x00004001)
2400 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE __MSABI_LONG(0x00004002)
2401 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS __MSABI_LONG(0x00004003)
2403 #define MCI_OVLY_WINDOW_HWND __MSABI_LONG(0x00010000)
2404 #define MCI_OVLY_WINDOW_STATE __MSABI_LONG(0x00040000)
2405 #define MCI_OVLY_WINDOW_TEXT __MSABI_LONG(0x00080000)
2406 #define MCI_OVLY_WINDOW_ENABLE_STRETCH __MSABI_LONG(0x00100000)
2407 #define MCI_OVLY_WINDOW_DISABLE_STRETCH __MSABI_LONG(0x00200000)
2409 #define MCI_OVLY_WINDOW_DEFAULT __MSABI_LONG(0x00000000)
2411 #define MCI_OVLY_RECT __MSABI_LONG(0x00010000)
2412 #define MCI_OVLY_PUT_SOURCE __MSABI_LONG(0x00020000)
2413 #define MCI_OVLY_PUT_DESTINATION __MSABI_LONG(0x00040000)
2414 #define MCI_OVLY_PUT_FRAME __MSABI_LONG(0x00080000)
2415 #define MCI_OVLY_PUT_VIDEO __MSABI_LONG(0x00100000)
2417 #define MCI_OVLY_WHERE_SOURCE __MSABI_LONG(0x00020000)
2418 #define MCI_OVLY_WHERE_DESTINATION __MSABI_LONG(0x00040000)
2419 #define MCI_OVLY_WHERE_FRAME __MSABI_LONG(0x00080000)
2420 #define MCI_OVLY_WHERE_VIDEO __MSABI_LONG(0x00100000)
2422 typedef struct tagMCI_OVLY_OPEN_PARMSA
{
2423 DWORD_PTR dwCallback
;
2424 MCIDEVICEID wDeviceID
;
2425 LPCSTR lpstrDeviceType
;
2426 LPCSTR lpstrElementName
;
2430 } MCI_OVLY_OPEN_PARMSA
, *LPMCI_OVLY_OPEN_PARMSA
;
2432 typedef struct tagMCI_OVLY_OPEN_PARMSW
{
2433 DWORD_PTR dwCallback
;
2434 MCIDEVICEID wDeviceID
;
2435 LPCWSTR lpstrDeviceType
;
2436 LPCWSTR lpstrElementName
;
2440 } MCI_OVLY_OPEN_PARMSW
, *LPMCI_OVLY_OPEN_PARMSW
;
2442 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS
)
2443 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS
)
2445 typedef struct tagMCI_OVLY_WINDOW_PARMSA
{
2446 DWORD_PTR dwCallback
;
2450 } MCI_OVLY_WINDOW_PARMSA
, *LPMCI_OVLY_WINDOW_PARMSA
;
2452 typedef struct tagMCI_OVLY_WINDOW_PARMSW
{
2453 DWORD_PTR dwCallback
;
2457 } MCI_OVLY_WINDOW_PARMSW
, *LPMCI_OVLY_WINDOW_PARMSW
;
2459 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS
)
2460 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS
)
2462 typedef struct tagMCI_OVLY_RECT_PARMS
{
2463 DWORD_PTR dwCallback
;
2464 #ifdef MCI_USE_OFFEXT
2467 #else /* ifdef MCI_USE_OFFEXT */
2469 #endif /* ifdef MCI_USE_OFFEXT */
2470 } MCI_OVLY_RECT_PARMS
, *LPMCI_OVLY_RECT_PARMS
;
2473 typedef struct tagMCI_OVLY_SAVE_PARMSA
{
2474 DWORD_PTR dwCallback
;
2477 } MCI_OVLY_SAVE_PARMSA
, *LPMCI_OVLY_SAVE_PARMSA
;
2479 typedef struct tagMCI_OVLY_SAVE_PARMSW
{
2480 DWORD_PTR dwCallback
;
2483 } MCI_OVLY_SAVE_PARMSW
, *LPMCI_OVLY_SAVE_PARMSW
;
2485 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS
)
2486 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS
)
2488 typedef struct tagMCI_OVLY_LOAD_PARMSA
{
2489 DWORD_PTR dwCallback
;
2492 } MCI_OVLY_LOAD_PARMSA
, *LPMCI_OVLY_LOAD_PARMSA
;
2494 typedef struct tagMCI_OVLY_LOAD_PARMSW
{
2495 DWORD_PTR dwCallback
;
2498 } MCI_OVLY_LOAD_PARMSW
, *LPMCI_OVLY_LOAD_PARMSW
;
2500 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS
)
2501 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS
)
2503 #ifndef NEWTRANSPARENT
2504 #define NEWTRANSPARENT 3
2505 #define QUERYROPSUPPORT 40
2508 #define SELECTDIB 41
2509 #define DIBINDEX(n) MAKELONG((n),0x10FF)
2511 #ifndef SC_SCREENSAVE
2512 #define SC_SCREENSAVE 0xf140
2515 #include <poppack.h>
2521 #endif /* __WINE_MMSYSTEM_H */