Remove some obsolete and/or redundant info.
[wine/multimedia.git] / include / mmsystem.h
blob4865a13f91522e5913fe6821c13a3e399587351b
1 /*
2 * MMSYSTEM - Multimedia Wine Extension ... :-)
4 * Copyright (C) the Wine project
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_MMSYSTEM_H
22 #define __WINE_MMSYSTEM_H
24 #include "windef.h"
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
30 typedef LPSTR HPSTR; /* a huge version of LPSTR */
31 typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
32 typedef UINT* LPUINT;
34 DECLARE_HANDLE(HDRVR);
35 DECLARE_HANDLE(HWAVE);
36 DECLARE_HANDLE(HWAVEIN);
37 DECLARE_HANDLE(HWAVEOUT);
38 DECLARE_HANDLE(HMIDI);
39 DECLARE_HANDLE(HMIDIIN);
40 DECLARE_HANDLE(HMIDIOUT);
41 DECLARE_HANDLE(HMIDISTRM);
42 DECLARE_HANDLE(HMIXER);
43 DECLARE_HANDLE(HMIXEROBJ);
44 DECLARE_HANDLE(HMMIO);
46 typedef HMIDI *LPHMIDI;
47 typedef HMIDIIN *LPHMIDIIN;
48 typedef HMIDIOUT *LPHMIDIOUT;
49 typedef HMIDISTRM *LPHMIDISTRM;
50 typedef HMIXER *LPHMIXER;
51 typedef HMIXEROBJ *LPHMIXEROBJ;
52 typedef HWAVEIN *LPHWAVEIN;
53 typedef HWAVEOUT *LPHWAVEOUT;
55 #include "pshpack1.h"
57 typedef LRESULT (CALLBACK *DRIVERPROC)(DWORD,HDRVR,UINT,LPARAM,LPARAM);
59 #define MAXWAVEDRIVERS 10
60 #define MAXMIDIDRIVERS 10
61 #define MAXAUXDRIVERS 10
62 #define MAXMCIDRIVERS 32
63 #define MAXMIXERDRIVERS 10
65 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
66 #define MAXERRORLENGTH 128 /* max error text length (including NULL) */
67 #define MAX_JOYSTICKOEMVXDNAME 260
69 typedef WORD VERSION; /* major (high byte), minor (low byte) */
71 #ifndef _MCIERROR_
72 #define _MCIERROR_
73 typedef DWORD MCIERROR;
74 #endif
75 typedef UINT MMVERSION;
76 #ifndef _MCIDEVICEID_
77 #define _MCIDEVICEID_
78 typedef UINT MCIDEVICEID;
79 #endif
80 typedef UINT MMRESULT;
82 typedef struct {
83 UINT wType;
84 union {
85 DWORD ms;
86 DWORD sample;
87 DWORD cb;
88 DWORD ticks;
89 struct {
90 BYTE hour;
91 BYTE min;
92 BYTE sec;
93 BYTE frame;
94 BYTE fps;
95 BYTE dummy;
96 BYTE pad[2];
97 } smpte;
98 struct {
99 DWORD songptrpos;
100 } midi;
101 } u;
102 } MMTIME, *LPMMTIME;
104 #define TIME_MS 0x0001 /* time in milliseconds */
105 #define TIME_SAMPLES 0x0002 /* number of wave samples */
106 #define TIME_BYTES 0x0004 /* current byte offset */
107 #define TIME_SMPTE 0x0008 /* SMPTE time */
108 #define TIME_MIDI 0x0010 /* MIDI time */
109 #define TIME_TICKS 0x0020 /* MIDI ticks */
111 #define MM_JOY1MOVE 0x3A0 /* joystick */
112 #define MM_JOY2MOVE 0x3A1
113 #define MM_JOY1ZMOVE 0x3A2
114 #define MM_JOY2ZMOVE 0x3A3
115 #define MM_JOY1BUTTONDOWN 0x3B5
116 #define MM_JOY2BUTTONDOWN 0x3B6
117 #define MM_JOY1BUTTONUP 0x3B7
118 #define MM_JOY2BUTTONUP 0x3B8
120 #define MM_MCINOTIFY 0x3B9 /* MCI */
122 #define MM_WOM_OPEN 0x3BB /* waveform output */
123 #define MM_WOM_CLOSE 0x3BC
124 #define MM_WOM_DONE 0x3BD
126 #define MM_WIM_OPEN 0x3BE /* waveform input */
127 #define MM_WIM_CLOSE 0x3BF
128 #define MM_WIM_DATA 0x3C0
130 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
131 #define MM_MIM_CLOSE 0x3C2
132 #define MM_MIM_DATA 0x3C3
133 #define MM_MIM_LONGDATA 0x3C4
134 #define MM_MIM_ERROR 0x3C5
135 #define MM_MIM_LONGERROR 0x3C6
137 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
138 #define MM_MOM_CLOSE 0x3C8
139 #define MM_MOM_DONE 0x3C9
140 #define MM_MOM_POSITIONCB 0x3CA
142 #define MM_MIM_MOREDATA 0x3CC
144 #define MM_MIXM_LINE_CHANGE 0x3D0
145 #define MM_MIXM_CONTROL_CHANGE 0x3D1
147 #define MMSYSERR_BASE 0
148 #define WAVERR_BASE 32
149 #define MIDIERR_BASE 64
150 #define TIMERR_BASE 96
151 #define JOYERR_BASE 160
152 #define MCIERR_BASE 256
154 #define MCI_STRING_OFFSET 512
155 #define MCI_VD_OFFSET 1024
156 #define MCI_CD_OFFSET 1088
157 #define MCI_WAVE_OFFSET 1152
158 #define MCI_SEQ_OFFSET 1216
160 #define MMSYSERR_NOERROR 0 /* no error */
161 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
162 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
163 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
164 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
165 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
166 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
167 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
168 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
169 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
170 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
171 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
172 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
174 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
175 #define CALLBACK_NULL 0x00000000l /* no callback */
176 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
177 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
178 #define CALLBACK_THREAD (CALLBACK_TASK) /* dwCallback is a thread ID */
179 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
180 #define CALLBACK_EVENT 0x00050000l /* dwCallback is an EVENT Handler */
182 #define DRV_LOAD 0x0001
183 #define DRV_ENABLE 0x0002
184 #define DRV_OPEN 0x0003
185 #define DRV_CLOSE 0x0004
186 #define DRV_DISABLE 0x0005
187 #define DRV_FREE 0x0006
188 #define DRV_CONFIGURE 0x0007
189 #define DRV_QUERYCONFIGURE 0x0008
190 #define DRV_INSTALL 0x0009
191 #define DRV_REMOVE 0x000A
192 #define DRV_EXITSESSION 0x000B
193 #define DRV_EXITAPPLICATION 0x000C
194 #define DRV_POWER 0x000F
196 #define DRV_RESERVED 0x0800
197 #define DRV_USER 0x4000
199 #define DRVCNF_CANCEL 0x0000
200 #define DRVCNF_OK 0x0001
201 #define DRVCNF_RESTART 0x0002
203 #define DRVEA_NORMALEXIT 0x0001
204 #define DRVEA_ABNORMALEXIT 0x0002
206 #define DRV_SUCCESS 0x0001
207 #define DRV_FAILURE 0x0000
209 #define GND_FIRSTINSTANCEONLY 0x00000001
211 #define GND_FORWARD 0x00000000
212 #define GND_REVERSE 0x00000002
214 typedef struct {
215 DWORD dwDCISize;
216 LPCWSTR lpszDCISectionName;
217 LPCWSTR lpszDCIAliasName;
218 } DRVCONFIGINFO, *LPDRVCONFIGINFO;
221 LRESULT WINAPI DefDriverProc(DWORD dwDriverIdentifier, HDRVR hdrvr,
222 UINT Msg, LPARAM lParam1, LPARAM lParam2);
223 HDRVR WINAPI OpenDriverA(LPCSTR szDriverName, LPCSTR szSectionName,
224 LPARAM lParam2);
225 HDRVR WINAPI OpenDriverW(LPCWSTR szDriverName, LPCWSTR szSectionName,
226 LPARAM lParam2);
227 #define OpenDriver WINELIB_NAME_AW(OpenDriver)
228 LRESULT WINAPI CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2);
229 LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message,
230 LPARAM lParam1, LPARAM lParam2);
231 HMODULE WINAPI GetDriverModuleHandle(HDRVR hDriver);
233 DWORD WINAPI GetDriverFlags(HDRVR hDriver);
234 #ifdef __WINESRC__
235 /* this call (GetDriverFlags) is not documented, nor the flags returned.
236 * here are Wine only definitions
238 #define WINE_GDF_EXIST 0x80000000
239 #define WINE_GDF_16BIT 0x10000000
240 #endif
242 typedef void (CALLBACK *LPDRVCALLBACK) (HDRVR h, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
244 #define MM_MICROSOFT 1 /* Microsoft Corp. */
246 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
247 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
249 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
250 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
251 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
252 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
253 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
255 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
257 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
258 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
260 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
263 UINT WINAPI mmsystemGetVersion(void);
264 BOOL WINAPI sndPlaySoundA(LPCSTR lpszSound, UINT fuSound);
265 BOOL WINAPI sndPlaySoundW(LPCWSTR lpszSound, UINT fuSound);
266 #define sndPlaySound WINELIB_NAME_AW(sndPlaySound)
267 BOOL WINAPI PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
268 BOOL WINAPI PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound);
269 #define PlaySound WINELIB_NAME_AW(PlaySound)
271 #define SND_SYNC 0x0000 /* play synchronously (default) */
272 #define SND_ASYNC 0x0001 /* play asynchronously */
273 #define SND_NODEFAULT 0x0002 /* don't use default sound */
274 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
275 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
276 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
278 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
279 #define SND_ALIAS 0x00010000L /* name is a registry alias */
280 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
281 #define SND_FILENAME 0x00020000L /* name is file name */
282 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
283 #define SND_PURGE 0x00000040L /* purge all sounds */
284 #define SND_APPLICATION 0x00000080L /* look for application specific association */
286 /* waveform audio error return values */
287 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
288 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
289 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
290 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
291 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
293 typedef LPDRVCALLBACK LPWAVECALLBACK;
295 #define WOM_OPEN MM_WOM_OPEN
296 #define WOM_CLOSE MM_WOM_CLOSE
297 #define WOM_DONE MM_WOM_DONE
298 #define WIM_OPEN MM_WIM_OPEN
299 #define WIM_CLOSE MM_WIM_CLOSE
300 #define WIM_DATA MM_WIM_DATA
302 #define WAVE_MAPPER (-1)
304 #define WAVE_FORMAT_QUERY 0x0001
305 #define WAVE_ALLOWSYNC 0x0002
306 #define WAVE_MAPPED 0x0004
307 #define WAVE_FORMAT_DIRECT 0x0008
308 #define WAVE_FORMAT_DIRECT_QUERY (WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT)
309 #ifdef __WINESRC__
310 #define WAVE_DIRECTSOUND 0x0080
311 #endif
313 typedef struct wavehdr_tag {
314 LPSTR lpData; /* pointer to locked data buffer */
315 DWORD dwBufferLength; /* length of data buffer */
316 DWORD dwBytesRecorded;/* used for input only */
317 DWORD dwUser; /* for client's use */
318 DWORD dwFlags; /* assorted flags (see defines) */
319 DWORD dwLoops; /* loop control counter */
321 struct wavehdr_tag *lpNext; /* reserved for driver */
322 DWORD reserved; /* reserved for driver */
323 } WAVEHDR, *PWAVEHDR, *NPWAVEHDR, *LPWAVEHDR;
325 #define WHDR_DONE 0x00000001 /* done bit */
326 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
327 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
328 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
329 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
331 typedef struct {
332 WORD wMid; /* manufacturer ID */
333 WORD wPid; /* product ID */
334 MMVERSION vDriverVersion; /* version of the driver */
335 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
336 DWORD dwFormats; /* formats supported */
337 WORD wChannels; /* number of sources supported */
338 WORD wReserved1; /* padding */
339 DWORD dwSupport; /* functionality supported by driver */
340 } WAVEOUTCAPSA, *LPWAVEOUTCAPSA;
342 typedef struct {
343 WORD wMid; /* manufacturer ID */
344 WORD wPid; /* product ID */
345 MMVERSION vDriverVersion; /* version of the driver */
346 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
347 DWORD dwFormats; /* formats supported */
348 WORD wChannels; /* number of sources supported */
349 WORD wReserved1; /* padding */
350 DWORD dwSupport; /* functionality supported by driver */
351 } WAVEOUTCAPSW, *LPWAVEOUTCAPSW;
352 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS)
353 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS)
355 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
356 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
357 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
358 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
359 #define WAVECAPS_SYNC 0x0010 /* driver is synchrounous and playing is blocking */
360 #define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
361 #define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
363 typedef struct {
364 WORD wMid; /* manufacturer ID */
365 WORD wPid; /* product ID */
366 MMVERSION vDriverVersion; /* version of the driver */
367 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
368 DWORD dwFormats; /* formats supported */
369 WORD wChannels; /* number of channels supported */
370 WORD wReserved1;
371 } WAVEINCAPSA, *LPWAVEINCAPSA;
372 typedef struct {
373 WORD wMid; /* manufacturer ID */
374 WORD wPid; /* product ID */
375 MMVERSION vDriverVersion; /* version of the driver */
376 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
377 DWORD dwFormats; /* formats supported */
378 WORD wChannels; /* number of channels supported */
379 WORD wReserved1;
380 } WAVEINCAPSW, *LPWAVEINCAPSW;
381 DECL_WINELIB_TYPE_AW(WAVEINCAPS)
382 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS)
384 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
385 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
386 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
387 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
388 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
389 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
390 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
391 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
392 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
393 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
394 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
395 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
396 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
397 #define WAVE_FORMAT_48M08 0x00001000 /* 48 kHz, Mono, 8-bit */
398 #define WAVE_FORMAT_48S08 0x00002000 /* 48 kHz, Stereo, 8-bit */
399 #define WAVE_FORMAT_48M16 0x00004000 /* 48 kHz, Mono, 16-bit */
400 #define WAVE_FORMAT_48S16 0x00008000 /* 48 kHz, Stereo, 16-bit */
401 #define WAVE_FORMAT_96M08 0x00010000 /* 96 kHz, Mono, 8-bit */
402 #define WAVE_FORMAT_96S08 0x00020000 /* 96 kHz, Stereo, 8-bit */
403 #define WAVE_FORMAT_96M16 0x00040000 /* 96 kHz, Mono, 16-bit */
404 #define WAVE_FORMAT_96S16 0x00080000 /* 96 kHz, Stereo, 16-bit */
406 /* General format structure common to all formats, same for Win16 and Win32 */
407 typedef struct {
408 WORD wFormatTag; /* format type */
409 WORD nChannels; /* number of channels */
410 DWORD nSamplesPerSec; /* sample rate */
411 DWORD nAvgBytesPerSec;/* for buffer estimation */
412 WORD nBlockAlign; /* block size of data */
413 } WAVEFORMAT, *LPWAVEFORMAT;
415 #define WAVE_FORMAT_PCM 1
417 typedef struct {
418 WAVEFORMAT wf;
419 WORD wBitsPerSample;
420 } PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
422 #ifndef _WAVEFORMATEX_
423 #define _WAVEFORMATEX_
424 /* dito same for Win16 / Win32 */
425 typedef struct {
426 WORD wFormatTag; /* format type */
427 WORD nChannels; /* number of channels (i.e. mono, stereo...) */
428 DWORD nSamplesPerSec; /* sample rate */
429 DWORD nAvgBytesPerSec;/* for buffer estimation */
430 WORD nBlockAlign; /* block size of data */
431 WORD wBitsPerSample; /* number of bits per sample of mono data */
432 WORD cbSize; /* the count in bytes of the size of */
433 /* extra information (after cbSize) */
434 } WAVEFORMATEX, *LPWAVEFORMATEX, *NPWAVEFORMATEX, *PWAVEFORMATEX;
435 #endif
437 UINT WINAPI waveOutGetNumDevs(void);
438 UINT WINAPI waveOutGetDevCapsA(UINT,LPWAVEOUTCAPSA,UINT);
439 UINT WINAPI waveOutGetDevCapsW(UINT,LPWAVEOUTCAPSW,UINT);
440 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
441 UINT WINAPI waveOutGetVolume(HWAVEOUT,DWORD*);
442 UINT WINAPI waveOutSetVolume(HWAVEOUT,DWORD);
443 UINT WINAPI waveOutGetErrorTextA(UINT,LPSTR,UINT);
444 UINT WINAPI waveOutGetErrorTextW(UINT,LPWSTR,UINT);
445 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
446 UINT WINAPI waveOutOpen(HWAVEOUT*,UINT,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
447 UINT WINAPI waveOutClose(HWAVEOUT);
448 UINT WINAPI waveOutPrepareHeader(HWAVEOUT,WAVEHDR*,UINT);
449 UINT WINAPI waveOutUnprepareHeader(HWAVEOUT,WAVEHDR*,UINT);
450 UINT WINAPI waveOutWrite(HWAVEOUT,WAVEHDR*,UINT);
451 UINT WINAPI waveOutPause(HWAVEOUT);
452 UINT WINAPI waveOutRestart(HWAVEOUT);
453 UINT WINAPI waveOutReset(HWAVEOUT);
454 UINT WINAPI waveOutBreakLoop(HWAVEOUT);
455 UINT WINAPI waveOutGetPosition(HWAVEOUT,LPMMTIME,UINT);
456 UINT WINAPI waveOutGetPitch(HWAVEOUT,DWORD*);
457 UINT WINAPI waveOutSetPitch(HWAVEOUT,DWORD);
458 UINT WINAPI waveOutGetPlaybackRate(HWAVEOUT,DWORD*);
459 UINT WINAPI waveOutSetPlaybackRate(HWAVEOUT,DWORD);
460 UINT WINAPI waveOutGetID(HWAVEOUT,UINT*);
461 DWORD WINAPI waveOutMessage(HWAVEOUT,UINT,DWORD,DWORD);
462 UINT WINAPI waveInGetNumDevs(void);
463 UINT WINAPI waveInGetDevCapsA(UINT,LPWAVEINCAPSA,UINT);
464 UINT WINAPI waveInGetDevCapsW(UINT,LPWAVEINCAPSW,UINT);
465 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
466 UINT WINAPI waveInGetErrorTextA(UINT,LPSTR,UINT);
467 UINT WINAPI waveInGetErrorTextW(UINT,LPWSTR,UINT);
468 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
469 UINT WINAPI waveInOpen(HWAVEIN*,UINT,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
470 UINT WINAPI waveInClose(HWAVEIN);
471 UINT WINAPI waveInPrepareHeader(HWAVEIN,WAVEHDR*,UINT);
472 UINT WINAPI waveInUnprepareHeader(HWAVEIN,WAVEHDR*,UINT);
473 UINT WINAPI waveInAddBuffer(HWAVEIN,WAVEHDR*,UINT);
474 UINT WINAPI waveInStart(HWAVEIN);
475 UINT WINAPI waveInStop(HWAVEIN);
476 UINT WINAPI waveInReset(HWAVEIN);
477 UINT WINAPI waveInGetPosition(HWAVEIN,LPMMTIME,UINT);
478 UINT WINAPI waveInGetID(HWAVEIN,UINT*);
479 DWORD WINAPI waveInMessage(HWAVEIN,UINT,DWORD,DWORD);
481 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
482 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
483 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
484 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
485 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
486 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
487 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
489 typedef LPDRVCALLBACK LPMIDICALLBACK;
490 #define MIDIPATCHSIZE 128
491 typedef WORD PATCHARRAY[MIDIPATCHSIZE];
492 typedef WORD *LPPATCHARRAY;
493 typedef WORD KEYARRAY[MIDIPATCHSIZE];
494 typedef WORD *LPKEYARRAY;
496 #define MIM_OPEN MM_MIM_OPEN
497 #define MIM_CLOSE MM_MIM_CLOSE
498 #define MIM_DATA MM_MIM_DATA
499 #define MIM_LONGDATA MM_MIM_LONGDATA
500 #define MIM_ERROR MM_MIM_ERROR
501 #define MIM_LONGERROR MM_MIM_LONGERROR
502 #define MIM_MOREDATA MM_MIM_MOREDATA
504 #define MOM_OPEN MM_MOM_OPEN
505 #define MOM_CLOSE MM_MOM_CLOSE
506 #define MOM_DONE MM_MOM_DONE
507 #define MOM_POSITIONCB MM_MOM_POSITIONCB
509 /* device ID for MIDI mapper */
511 #define MIDIMAPPER (-1)
512 #define MIDI_MAPPER (-1)
514 /* Only on Win95 and up */
515 #define MIDI_IO_STATUS 0x00000020L
517 /* flags for wFlags parm of
518 midiOutCachePatches(),
519 midiOutCacheDrumPatches() */
520 #define MIDI_CACHE_ALL 1
521 #define MIDI_CACHE_BESTFIT 2
522 #define MIDI_CACHE_QUERY 3
523 #define MIDI_UNCACHE 4
525 typedef struct {
526 WORD wMid; /* manufacturer ID */
527 WORD wPid; /* product ID */
528 MMVERSION vDriverVersion; /* version of the driver */
529 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
530 WORD wTechnology; /* type of device */
531 WORD wVoices; /* # of voices (internal synth only) */
532 WORD wNotes; /* max # of notes (internal synth only) */
533 WORD wChannelMask; /* channels used (internal synth only) */
534 DWORD dwSupport; /* functionality supported by driver */
535 } MIDIOUTCAPSA, *LPMIDIOUTCAPSA;
537 typedef struct {
538 WORD wMid; /* manufacturer ID */
539 WORD wPid; /* product ID */
540 MMVERSION vDriverVersion; /* version of the driver */
541 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
542 WORD wTechnology; /* type of device */
543 WORD wVoices; /* # of voices (internal synth only) */
544 WORD wNotes; /* max # of notes (internal synth only) */
545 WORD wChannelMask; /* channels used (internal synth only) */
546 DWORD dwSupport; /* functionality supported by driver */
547 } MIDIOUTCAPSW, *LPMIDIOUTCAPSW;
549 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS)
550 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS)
552 #define MOD_MIDIPORT 1 /* output port */
553 #define MOD_SYNTH 2 /* generic internal synth */
554 #define MOD_SQSYNTH 3 /* square wave internal synth */
555 #define MOD_FMSYNTH 4 /* FM internal synth */
556 #define MOD_MAPPER 5 /* MIDI mapper */
558 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
559 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
560 #define MIDICAPS_CACHE 0x0004
561 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
563 typedef struct {
564 WORD wMid; /* manufacturer ID */
565 WORD wPid; /* product ID */
566 MMVERSION vDriverVersion; /* version of the driver */
567 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
568 DWORD dwSupport; /* included in win95 and higher */
569 } MIDIINCAPSA, *LPMIDIINCAPSA;
571 typedef struct {
572 WORD wMid; /* manufacturer ID */
573 WORD wPid; /* product ID */
574 MMVERSION vDriverVersion; /* version of the driver */
575 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
576 DWORD dwSupport; /* included in win95 and higher */
577 } MIDIINCAPSW, *LPMIDIINCAPSW;
579 DECL_WINELIB_TYPE_AW(MIDIINCAPS)
580 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
582 /* It seems that Win32 has a slightly different structure than Win 16.
583 * sigh....
585 typedef struct midihdr_tag {
586 LPSTR lpData; /* pointer to locked data block */
587 DWORD dwBufferLength; /* length of data in data block */
588 DWORD dwBytesRecorded;/* used for input only */
589 DWORD_PTR dwUser; /* for client's use */
590 DWORD dwFlags; /* assorted flags (see defines) */
591 struct midihdr_tag *lpNext; /* reserved for driver */
592 DWORD reserved; /* reserved for driver */
593 DWORD dwOffset; /* offset of playback in case of
594 * MIDISTRM buffer */
595 DWORD_PTR dwReserved[8]; /* reserved for driver */
596 } MIDIHDR, *LPMIDIHDR;
598 #define MHDR_DONE 0x00000001 /* done bit */
599 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
600 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
601 #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
603 typedef struct {
604 DWORD cbStruct;
605 DWORD dwTempo;
606 } MIDIPROPTEMPO, *LPMIDIPROPTEMPO;
608 typedef struct {
609 DWORD cbStruct;
610 DWORD dwTimeDiv;
611 } MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV;
613 #define MIDIPROP_GET 0x40000000
614 #define MIDIPROP_SET 0x80000000
615 #define MIDIPROP_TEMPO 0x00000002
616 #define MIDIPROP_TIMEDIV 0x00000001
618 typedef struct {
619 DWORD dwDeltaTime; /* Time, in MIDI ticks, between the previous
620 * event and the current event. */
621 DWORD dwStreamID; /* Reserved; must be zero. */
622 DWORD dwEvent; /* event => see MEVT_XXX macros */
623 DWORD dwParms[1]; /* extra pmts to dwEvent if F_LONG is set */
624 } MIDIEVENT, *LPMIDIEVENT;
626 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
627 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
629 #define MEVT_F_CALLBACK 0x40000000l
630 #define MEVT_F_LONG 0x80000000l
631 #define MEVT_F_SHORT 0x00000000l
632 #define MEVT_COMMENT ((BYTE)0x82)
633 #define MEVT_LONGMSG ((BYTE)0x80)
634 #define MEVT_NOP ((BYTE)0x02)
635 #define MEVT_SHORTMSG ((BYTE)0x00)
636 #define MEVT_TEMPO ((BYTE)0x01)
637 #define MEVT_VERSION ((BYTE)0x84)
639 UINT WINAPI midiOutGetNumDevs(void);
640 UINT WINAPI midiOutGetDevCapsA(UINT,LPMIDIOUTCAPSA,UINT);
641 UINT WINAPI midiOutGetDevCapsW(UINT,LPMIDIOUTCAPSW,UINT);
642 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
643 UINT WINAPI midiOutGetVolume(HMIDIOUT,DWORD*);
644 UINT WINAPI midiOutSetVolume(HMIDIOUT,DWORD);
645 UINT WINAPI midiOutGetErrorTextA(UINT,LPSTR,UINT);
646 UINT WINAPI midiOutGetErrorTextW(UINT,LPWSTR,UINT);
647 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
648 UINT WINAPI midiOutOpen(HMIDIOUT*,UINT,DWORD,DWORD,DWORD);
649 UINT WINAPI midiOutClose(HMIDIOUT);
650 UINT WINAPI midiOutPrepareHeader(HMIDIOUT,MIDIHDR*,UINT);
651 UINT WINAPI midiOutUnprepareHeader(HMIDIOUT,MIDIHDR*,UINT);
652 UINT WINAPI midiOutShortMsg(HMIDIOUT,DWORD);
653 UINT WINAPI midiOutLongMsg(HMIDIOUT,MIDIHDR*,UINT);
654 UINT WINAPI midiOutReset(HMIDIOUT);
655 UINT WINAPI midiOutCachePatches(HMIDIOUT,UINT,WORD*,UINT);
656 UINT WINAPI midiOutCacheDrumPatches(HMIDIOUT,UINT,WORD*,UINT);
657 UINT WINAPI midiOutGetID(HMIDIOUT,UINT*);
658 DWORD WINAPI midiOutMessage(HMIDIOUT,UINT,DWORD,DWORD);
660 UINT WINAPI midiInGetNumDevs(void);
661 UINT WINAPI midiInGetDevCapsA(UINT,LPMIDIINCAPSA,UINT);
662 UINT WINAPI midiInGetDevCapsW(UINT,LPMIDIINCAPSW,UINT);
663 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
664 UINT WINAPI midiInGetErrorTextA(UINT,LPSTR,UINT);
665 UINT WINAPI midiInGetErrorTextW(UINT,LPWSTR,UINT);
666 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
667 UINT WINAPI midiInOpen(HMIDIIN*,UINT,DWORD,DWORD,DWORD);
668 UINT WINAPI midiInClose(HMIDIIN);
669 UINT WINAPI midiInPrepareHeader(HMIDIIN,MIDIHDR*,UINT);
670 UINT WINAPI midiInUnprepareHeader(HMIDIIN,MIDIHDR*,UINT);
671 UINT WINAPI midiInAddBuffer(HMIDIIN,MIDIHDR*,UINT);
672 UINT WINAPI midiInStart(HMIDIIN);
673 UINT WINAPI midiInStop(HMIDIIN);
674 UINT WINAPI midiInReset(HMIDIIN);
675 UINT WINAPI midiInGetID(HMIDIIN,UINT*);
676 DWORD WINAPI midiInMessage(HMIDIIN,UINT,DWORD,DWORD);
677 MMRESULT WINAPI midiStreamClose(HMIDISTRM hms);
678 MMRESULT WINAPI midiStreamOpen(HMIDISTRM* phms, LPUINT uDeviceID, DWORD cMidi,
679 DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen);
680 MMRESULT WINAPI midiStreamOut(HMIDISTRM hms, LPMIDIHDR lpMidiHdr, UINT cbMidiHdr);
681 MMRESULT WINAPI midiStreamPause(HMIDISTRM hms);
682 MMRESULT WINAPI midiStreamPosition(HMIDISTRM hms, LPMMTIME lpmmt, UINT cbmmt);
683 MMRESULT WINAPI midiStreamProperty(HMIDISTRM hms, LPBYTE lpPropData, DWORD dwProperty);
684 MMRESULT WINAPI midiStreamRestart(HMIDISTRM hms);
685 MMRESULT WINAPI midiStreamStop(HMIDISTRM hms);
687 #define AUX_MAPPER (-1)
689 typedef struct {
690 WORD wMid; /* manufacturer ID */
691 WORD wPid; /* product ID */
692 MMVERSION vDriverVersion; /* version of the driver */
693 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
694 WORD wTechnology; /* type of device */
695 WORD wReserved1; /* padding */
696 DWORD dwSupport; /* functionality supported by driver */
697 } AUXCAPSA, *LPAUXCAPSA;
699 typedef struct {
700 WORD wMid; /* manufacturer ID */
701 WORD wPid; /* product ID */
702 MMVERSION vDriverVersion; /* version of the driver */
703 WCHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
704 WORD wTechnology; /* type of device */
705 WORD wReserved1; /* padding */
706 DWORD dwSupport; /* functionality supported by driver */
707 } AUXCAPSW, *LPAUXCAPSW;
709 DECL_WINELIB_TYPE_AW(AUXCAPS)
710 DECL_WINELIB_TYPE_AW(LPAUXCAPS)
712 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
713 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
715 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
716 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
718 UINT WINAPI auxGetNumDevs(void);
719 UINT WINAPI auxGetDevCapsA(UINT,LPAUXCAPSA,UINT);
720 UINT WINAPI auxGetDevCapsW(UINT,LPAUXCAPSW,UINT);
721 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
722 UINT WINAPI auxSetVolume(UINT,DWORD);
723 UINT WINAPI auxGetVolume(UINT,LPDWORD);
724 DWORD WINAPI auxOutMessage(UINT,UINT,DWORD,DWORD);
726 #define TIMERR_NOERROR (0) /* no error */
727 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
728 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
730 typedef void (CALLBACK *LPTIMECALLBACK)(UINT uTimerID, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
732 #define TIME_ONESHOT 0x0000 /* program timer for single event */
733 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
734 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
735 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
736 #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
737 #define TIME_KILL_SYNCHRONOUS 0x0100
739 typedef struct {
740 UINT wPeriodMin;
741 UINT wPeriodMax;
742 } TIMECAPS, *LPTIMECAPS;
745 MMRESULT WINAPI timeGetSystemTime(LPMMTIME,UINT);
746 DWORD WINAPI timeGetTime(void); /* same for win32/win16 */
747 MMRESULT WINAPI timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD,UINT);
748 MMRESULT WINAPI timeKillEvent(UINT);
749 MMRESULT WINAPI timeGetDevCaps(LPTIMECAPS,UINT);
750 MMRESULT WINAPI timeBeginPeriod(UINT);
751 MMRESULT WINAPI timeEndPeriod(UINT);
753 #define JOYERR_NOERROR (0) /* no error */
754 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
755 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
756 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
758 /* JOYINFO, JOYINFOEX, MM_JOY* */
759 #define JOY_BUTTON1 0x0001
760 #define JOY_BUTTON2 0x0002
761 #define JOY_BUTTON3 0x0004
762 #define JOY_BUTTON4 0x0008
763 #define JOY_BUTTON1CHG 0x0100
764 #define JOY_BUTTON2CHG 0x0200
765 #define JOY_BUTTON3CHG 0x0400
766 #define JOY_BUTTON4CHG 0x0800
768 #define JOYSTICKID1 0
769 #define JOYSTICKID2 1
771 /* JOYCAPS.wCaps */
772 #define JOYCAPS_HASZ 0x0001
773 #define JOYCAPS_HASR 0x0002
774 #define JOYCAPS_HASU 0x0004
775 #define JOYCAPS_HASV 0x0008
776 #define JOYCAPS_HASPOV 0x0010
777 #define JOYCAPS_POV4DIR 0x0020
778 #define JOYCAPS_POVCTS 0x0040
780 /* JOYINFOEX stuff */
781 #define JOY_POVCENTERED (WORD) -1
782 #define JOY_POVFORWARD 0
783 #define JOY_POVRIGHT 9000
784 #define JOY_POVBACKWARD 18000
785 #define JOY_POVLEFT 27000
787 #define JOY_RETURNX 0x00000001
788 #define JOY_RETURNY 0x00000002
789 #define JOY_RETURNZ 0x00000004
790 #define JOY_RETURNR 0x00000008
791 #define JOY_RETURNU 0x00000010
792 #define JOY_RETURNV 0x00000020
793 #define JOY_RETURNPOV 0x00000040
794 #define JOY_RETURNBUTTONS 0x00000080
795 #define JOY_RETURNRAWDATA 0x00000100
796 #define JOY_RETURNPOVCTS 0x00000200
797 #define JOY_RETURNCENTERED 0x00000400
798 #define JOY_USEDEADZONE 0x00000800
799 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
800 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
801 JOY_RETURNPOV | JOY_RETURNBUTTONS)
802 #define JOY_CAL_READALWAYS 0x00010000
803 #define JOY_CAL_READXYONLY 0x00020000
804 #define JOY_CAL_READ3 0x00040000
805 #define JOY_CAL_READ4 0x00080000
806 #define JOY_CAL_READXONLY 0x00100000
807 #define JOY_CAL_READYONLY 0x00200000
808 #define JOY_CAL_READ5 0x00400000
809 #define JOY_CAL_READ6 0x00800000
810 #define JOY_CAL_READZONLY 0x01000000
811 #define JOY_CAL_READRONLY 0x02000000
812 #define JOY_CAL_READUONLY 0x04000000
813 #define JOY_CAL_READVONLY 0x08000000
815 typedef struct {
816 WORD wMid;
817 WORD wPid;
818 CHAR szPname[MAXPNAMELEN];
819 UINT wXmin;
820 UINT wXmax;
821 UINT wYmin;
822 UINT wYmax;
823 UINT wZmin;
824 UINT wZmax;
825 UINT wNumButtons;
826 UINT wPeriodMin;
827 UINT wPeriodMax;
828 UINT wRmin;
829 UINT wRmax;
830 UINT wUmin;
831 UINT wUmax;
832 UINT wVmin;
833 UINT wVmax;
834 UINT wCaps;
835 UINT wMaxAxes;
836 UINT wNumAxes;
837 UINT wMaxButtons;
838 CHAR szRegKey[MAXPNAMELEN];
839 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
840 } JOYCAPSA, *LPJOYCAPSA;
842 typedef struct {
843 WORD wMid;
844 WORD wPid;
845 WCHAR szPname[MAXPNAMELEN];
846 UINT wXmin;
847 UINT wXmax;
848 UINT wYmin;
849 UINT wYmax;
850 UINT wZmin;
851 UINT wZmax;
852 UINT wNumButtons;
853 UINT wPeriodMin;
854 UINT wPeriodMax;
855 UINT wRmin;
856 UINT wRmax;
857 UINT wUmin;
858 UINT wUmax;
859 UINT wVmin;
860 UINT wVmax;
861 UINT wCaps;
862 UINT wMaxAxes;
863 UINT wNumAxes;
864 UINT wMaxButtons;
865 WCHAR szRegKey[MAXPNAMELEN];
866 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
867 } JOYCAPSW, *LPJOYCAPSW;
868 DECL_WINELIB_TYPE_AW(JOYCAPS)
869 DECL_WINELIB_TYPE_AW(LPJOYCAPS)
871 typedef struct {
872 UINT wXpos;
873 UINT wYpos;
874 UINT wZpos;
875 UINT wButtons;
876 } JOYINFO, *LPJOYINFO;
878 typedef struct {
879 DWORD dwSize; /* size of structure */
880 DWORD dwFlags; /* flags to indicate what to return */
881 DWORD dwXpos; /* x position */
882 DWORD dwYpos; /* y position */
883 DWORD dwZpos; /* z position */
884 DWORD dwRpos; /* rudder/4th axis position */
885 DWORD dwUpos; /* 5th axis position */
886 DWORD dwVpos; /* 6th axis position */
887 DWORD dwButtons; /* button states */
888 DWORD dwButtonNumber; /* current button number pressed */
889 DWORD dwPOV; /* point of view state */
890 DWORD dwReserved1; /* reserved for communication between winmm & driver */
891 DWORD dwReserved2; /* reserved for future expansion */
892 } JOYINFOEX,*LPJOYINFOEX;
895 MMRESULT WINAPI joyGetDevCapsA(UINT,LPJOYCAPSA,UINT);
896 MMRESULT WINAPI joyGetDevCapsW(UINT,LPJOYCAPSW,UINT);
897 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
898 UINT WINAPI joyGetNumDevs(void);
899 MMRESULT WINAPI joyGetPos(UINT,LPJOYINFO);
900 MMRESULT WINAPI joyGetPosEx(UINT,LPJOYINFOEX);
901 MMRESULT WINAPI joyGetThreshold(UINT,UINT*);
902 MMRESULT WINAPI joyReleaseCapture(UINT);
903 MMRESULT WINAPI joySetCapture(HWND,UINT,UINT,BOOL);
904 MMRESULT WINAPI joySetThreshold(UINT,UINT);
906 #define MIXERR_BASE 1024
907 #define MIXERR_INVALLINE (MIXERR_BASE + 0)
908 #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
909 #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
910 #define MIXERR_LASTERROR (MIXERR_BASE + 2)
912 typedef struct {
913 WORD wMid;
914 WORD wPid;
915 MMVERSION vDriverVersion;
916 CHAR szPname[MAXPNAMELEN];
917 DWORD fdwSupport;
918 DWORD cDestinations;
919 } MIXERCAPSA,*LPMIXERCAPSA;
921 typedef struct {
922 WORD wMid;
923 WORD wPid;
924 MMVERSION vDriverVersion;
925 WCHAR szPname[MAXPNAMELEN];
926 DWORD fdwSupport;
927 DWORD cDestinations;
928 } MIXERCAPSW,*LPMIXERCAPSW;
930 DECL_WINELIB_TYPE_AW(MIXERCAPS)
931 DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
933 #define MIXER_SHORT_NAME_CHARS 16
934 #define MIXER_LONG_NAME_CHARS 64
936 /* MIXERLINE.fdwLine */
937 #define MIXERLINE_LINEF_ACTIVE 0x00000001
938 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
939 #define MIXERLINE_LINEF_SOURCE 0x80000000
941 /* Mixer flags */
942 #define MIXER_OBJECTF_HANDLE 0x80000000L
943 #define MIXER_OBJECTF_MIXER 0x00000000L
944 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
945 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
946 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
947 #define MIXER_OBJECTF_WAVEIN 0x20000000L
948 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
949 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
950 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
951 #define MIXER_OBJECTF_MIDIIN 0x40000000L
952 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
953 #define MIXER_OBJECTF_AUX 0x50000000L
955 /* MIXERLINE.dwComponentType */
956 /* component types for destinations and sources */
957 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
958 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
959 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
960 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
961 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
962 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
963 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
964 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
965 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
966 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
967 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
969 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
970 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
971 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
972 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
973 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
974 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
975 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
976 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
977 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
978 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
979 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
980 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
981 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
983 /* MIXERLINE.Target.dwType */
984 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
985 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
986 #define MIXERLINE_TARGETTYPE_WAVEIN 2
987 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
988 #define MIXERLINE_TARGETTYPE_MIDIIN 4
989 #define MIXERLINE_TARGETTYPE_AUX 5
991 typedef struct {
992 DWORD cbStruct;
993 DWORD dwDestination;
994 DWORD dwSource;
995 DWORD dwLineID;
996 DWORD fdwLine;
997 DWORD dwUser;
998 DWORD dwComponentType;
999 DWORD cChannels;
1000 DWORD cConnections;
1001 DWORD cControls;
1002 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1003 CHAR szName[MIXER_LONG_NAME_CHARS];
1004 struct {
1005 DWORD dwType;
1006 DWORD dwDeviceID;
1007 WORD wMid;
1008 WORD wPid;
1009 MMVERSION vDriverVersion;
1010 CHAR szPname[MAXPNAMELEN];
1011 } Target;
1012 } MIXERLINEA, *LPMIXERLINEA;
1014 typedef struct {
1015 DWORD cbStruct;
1016 DWORD dwDestination;
1017 DWORD dwSource;
1018 DWORD dwLineID;
1019 DWORD fdwLine;
1020 DWORD dwUser;
1021 DWORD dwComponentType;
1022 DWORD cChannels;
1023 DWORD cConnections;
1024 DWORD cControls;
1025 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1026 WCHAR szName[MIXER_LONG_NAME_CHARS];
1027 struct {
1028 DWORD dwType;
1029 DWORD dwDeviceID;
1030 WORD wMid;
1031 WORD wPid;
1032 MMVERSION vDriverVersion;
1033 WCHAR szPname[MAXPNAMELEN];
1034 } Target;
1035 } MIXERLINEW, *LPMIXERLINEW;
1037 DECL_WINELIB_TYPE_AW(MIXERLINE)
1038 DECL_WINELIB_TYPE_AW(LPMIXERLINE)
1040 /* MIXERCONTROL.fdwControl */
1041 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1042 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1043 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1045 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1046 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1047 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1048 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1049 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1050 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1051 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1052 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1053 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1054 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1056 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1058 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1059 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1061 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1063 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1064 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1066 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1067 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1069 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1070 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1071 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1072 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1073 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1074 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1075 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1077 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1078 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1079 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1080 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1081 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1082 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1083 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1084 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1085 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1086 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1087 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1088 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1089 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1090 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1091 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1092 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1093 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1094 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1095 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1096 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1097 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1098 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1099 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1100 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1101 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1102 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1103 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1104 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1105 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1106 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1107 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1110 typedef struct {
1111 DWORD cbStruct;
1112 DWORD dwControlID;
1113 DWORD dwControlType;
1114 DWORD fdwControl;
1115 DWORD cMultipleItems;
1116 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1117 CHAR szName[MIXER_LONG_NAME_CHARS];
1118 union {
1119 struct {
1120 LONG lMinimum;
1121 LONG lMaximum;
1122 } DUMMYSTRUCTNAME;
1123 struct {
1124 DWORD dwMinimum;
1125 DWORD dwMaximum;
1126 } DUMMYSTRUCTNAME1;
1127 DWORD dwReserved[6];
1128 } Bounds;
1129 union {
1130 DWORD cSteps;
1131 DWORD cbCustomData;
1132 DWORD dwReserved[6];
1133 } Metrics;
1134 } MIXERCONTROLA, *LPMIXERCONTROLA;
1136 typedef struct {
1137 DWORD cbStruct;
1138 DWORD dwControlID;
1139 DWORD dwControlType;
1140 DWORD fdwControl;
1141 DWORD cMultipleItems;
1142 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1143 WCHAR szName[MIXER_LONG_NAME_CHARS];
1144 union {
1145 struct {
1146 LONG lMinimum;
1147 LONG lMaximum;
1148 } DUMMYSTRUCTNAME;
1149 struct {
1150 DWORD dwMinimum;
1151 DWORD dwMaximum;
1152 } DUMMYSTRUCTNAME1;
1153 DWORD dwReserved[6];
1154 } Bounds;
1155 union {
1156 DWORD cSteps;
1157 DWORD cbCustomData;
1158 DWORD dwReserved[6];
1159 } Metrics;
1160 } MIXERCONTROLW, *LPMIXERCONTROLW;
1162 DECL_WINELIB_TYPE_AW(MIXERCONTROL)
1163 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
1165 typedef struct {
1166 DWORD cbStruct;
1167 DWORD dwLineID;
1168 union {
1169 DWORD dwControlID;
1170 DWORD dwControlType;
1171 } DUMMYUNIONNAME;
1172 DWORD cControls;
1173 DWORD cbmxctrl;
1174 LPMIXERCONTROLA pamxctrl;
1175 } MIXERLINECONTROLSA, *LPMIXERLINECONTROLSA;
1177 typedef struct {
1178 DWORD cbStruct;
1179 DWORD dwLineID;
1180 union {
1181 DWORD dwControlID;
1182 DWORD dwControlType;
1183 } DUMMYUNIONNAME;
1184 DWORD cControls;
1185 DWORD cbmxctrl;
1186 LPMIXERCONTROLW pamxctrl;
1187 } MIXERLINECONTROLSW, *LPMIXERLINECONTROLSW;
1189 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
1190 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
1192 typedef struct {
1193 DWORD cbStruct;
1194 DWORD dwControlID;
1195 DWORD cChannels;
1196 union {
1197 HWND hwndOwner;
1198 DWORD cMultipleItems;
1199 } DUMMYUNIONNAME;
1200 DWORD cbDetails;
1201 LPVOID paDetails;
1202 } MIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
1204 typedef struct {
1205 DWORD dwParam1;
1206 DWORD dwParam2;
1207 CHAR szName[MIXER_LONG_NAME_CHARS];
1208 } MIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
1210 typedef struct {
1211 DWORD dwParam1;
1212 DWORD dwParam2;
1213 WCHAR szName[MIXER_LONG_NAME_CHARS];
1214 } MIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
1216 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
1217 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
1219 /* MIXER_GETCONTROLDETAILSF_VALUE */
1220 typedef struct {
1221 LONG fValue;
1222 } MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1224 typedef struct {
1225 LONG lValue;
1226 } MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1228 typedef struct {
1229 DWORD dwValue;
1230 } MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1232 /* bits passed to mixerGetLineInfo.fdwInfo */
1233 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1234 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1235 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1236 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1237 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1238 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1240 /* bitmask passed to mixerGetLineControl */
1241 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1242 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1243 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1244 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1246 /* bitmask passed to mixerGetControlDetails */
1247 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1248 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1249 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1251 /* bitmask passed to mixerSetControlDetails */
1252 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1253 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1254 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1256 UINT WINAPI mixerGetNumDevs(void);
1257 UINT WINAPI mixerOpen(LPHMIXER,UINT,DWORD,DWORD,DWORD);
1258 UINT WINAPI mixerClose(HMIXER);
1259 UINT WINAPI mixerMessage(HMIXER,UINT,DWORD,DWORD);
1260 UINT WINAPI mixerGetDevCapsA(UINT,LPMIXERCAPSA,UINT);
1261 UINT WINAPI mixerGetDevCapsW(UINT,LPMIXERCAPSW,UINT);
1262 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1263 UINT WINAPI mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
1264 UINT WINAPI mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
1265 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1266 UINT WINAPI mixerGetID(HMIXEROBJ,LPUINT,DWORD);
1267 UINT WINAPI mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
1268 UINT WINAPI mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
1269 #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1270 UINT WINAPI mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1271 UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1272 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1273 UINT WINAPI mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1275 #define MMIOERR_BASE 256
1276 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1277 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1278 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1279 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1280 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1281 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1282 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1283 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1284 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1285 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1287 #define CFSEPCHAR '+' /* compound file name separator char. */
1289 typedef DWORD FOURCC; /* a four character code */
1290 typedef LRESULT (CALLBACK *LPMMIOPROC) (LPSTR lpmmioinfo, UINT uMessage,
1291 LPARAM lParam1, LPARAM lParam2);
1293 typedef struct {
1294 DWORD dwFlags;
1295 FOURCC fccIOProc;
1296 LPMMIOPROC pIOProc;
1297 UINT wErrorRet;
1298 HTASK hTask;
1299 /* fields maintained by MMIO functions during buffered I/O */
1300 LONG cchBuffer;
1301 HPSTR pchBuffer;
1302 HPSTR pchNext;
1303 HPSTR pchEndRead;
1304 HPSTR pchEndWrite;
1305 LONG lBufOffset;
1306 /* fields maintained by I/O procedure */
1307 LONG lDiskOffset;
1308 DWORD adwInfo[3];
1309 /* other fields maintained by MMIO */
1310 DWORD dwReserved1;
1311 DWORD dwReserved2;
1312 HMMIO hmmio;
1313 } MMIOINFO, *PMMIOINFO, *LPMMIOINFO;
1316 typedef struct _MMCKINFO
1318 FOURCC ckid; /* chunk ID */
1319 DWORD cksize; /* chunk size */
1320 FOURCC fccType; /* form type or list type */
1321 DWORD dwDataOffset; /* offset of data portion of chunk */
1322 DWORD dwFlags; /* flags used by MMIO functions */
1323 } MMCKINFO, *LPMMCKINFO;
1325 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1326 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1328 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1329 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1330 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1331 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1332 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1333 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1335 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1337 #define MMIO_READ 0x00000000 /* open file for reading only */
1338 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1339 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1341 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1342 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1343 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1344 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1345 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1347 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1348 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1349 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1350 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1351 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1352 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1353 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1354 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1355 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1356 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1357 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1358 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1360 #ifndef SEEK_SET
1361 #define SEEK_SET 0
1362 #define SEEK_CUR 1
1363 #define SEEK_END 2
1364 #endif /* SEEK_SET */
1366 #define MMIOM_READ MMIO_READ /* read */
1367 #define MMIOM_WRITE MMIO_WRITE /* write */
1368 #define MMIOM_SEEK 2 /* seek to a new position in file */
1369 #define MMIOM_OPEN 3 /* open file */
1370 #define MMIOM_CLOSE 4 /* close file */
1371 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1373 #define MMIOM_RENAME 6 /* rename specified file */
1375 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1377 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1378 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1380 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1381 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1383 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1385 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1386 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1387 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1389 LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
1390 LPMMIOPROC WINAPI mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
1391 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1393 FOURCC WINAPI mmioStringToFOURCCA(LPCSTR,UINT);
1394 FOURCC WINAPI mmioStringToFOURCCW(LPCWSTR,UINT);
1395 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1396 HMMIO WINAPI mmioOpenA(LPSTR,MMIOINFO*,DWORD);
1397 HMMIO WINAPI mmioOpenW(LPWSTR,MMIOINFO*,DWORD);
1398 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1400 MMRESULT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
1401 MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1402 MMRESULT WINAPI mmioRenameW(LPCWSTR szFileName, LPCWSTR szNewFileName,
1403 MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1404 #define mmioRename WINELIB_NAME_AW(mmioRename)
1406 MMRESULT WINAPI mmioClose(HMMIO,UINT);
1407 LONG WINAPI mmioRead(HMMIO,HPSTR,LONG);
1408 LONG WINAPI mmioWrite(HMMIO,HPCSTR,LONG);
1409 LONG WINAPI mmioSeek(HMMIO,LONG,INT);
1410 MMRESULT WINAPI mmioGetInfo(HMMIO,MMIOINFO*,UINT);
1411 MMRESULT WINAPI mmioSetInfo(HMMIO,const MMIOINFO*,UINT);
1412 MMRESULT WINAPI mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
1413 MMRESULT WINAPI mmioFlush(HMMIO,UINT);
1414 MMRESULT WINAPI mmioAdvance(HMMIO,MMIOINFO*,UINT);
1415 LRESULT WINAPI mmioSendMessage(HMMIO,UINT,LPARAM,LPARAM);
1416 MMRESULT WINAPI mmioDescend(HMMIO,MMCKINFO*,const MMCKINFO*,UINT);
1417 MMRESULT WINAPI mmioAscend(HMMIO,MMCKINFO*,UINT);
1418 MMRESULT WINAPI mmioCreateChunk(HMMIO,MMCKINFO*,UINT);
1420 typedef UINT (CALLBACK *YIELDPROC)(MCIDEVICEID,DWORD);
1422 DWORD WINAPI mciSendCommandA(UINT,UINT,DWORD,DWORD);
1423 DWORD WINAPI mciSendCommandW(UINT,UINT,DWORD,DWORD);
1424 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1425 DWORD WINAPI mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
1426 DWORD WINAPI mciSendStringW(LPCWSTR,LPSTR,UINT,HWND);
1427 #define mciSendString WINELIB_NAME_AW(mciSendString)
1428 UINT WINAPI mciGetDeviceIDA(LPCSTR);
1429 UINT WINAPI mciGetDeviceIDW(LPCWSTR);
1430 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1431 BOOL WINAPI mciGetErrorStringA(DWORD,LPSTR,UINT);
1432 BOOL WINAPI mciGetErrorStringW(DWORD,LPWSTR,UINT);
1433 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1434 BOOL WINAPI mciSetYieldProc(UINT,YIELDPROC,DWORD);
1435 HTASK WINAPI mciGetCreatorTask(UINT);
1436 YIELDPROC WINAPI mciGetYieldProc(UINT,DWORD*);
1438 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1439 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1440 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1441 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1442 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1443 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1444 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1445 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1446 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1447 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1448 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1449 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1450 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1451 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1452 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1453 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1454 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1455 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1456 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1457 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1458 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1459 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1460 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1461 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1462 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1463 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1464 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1465 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1466 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1467 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1468 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1469 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1470 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1471 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1472 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1473 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1474 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1475 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1476 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1477 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1478 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1479 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1480 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1481 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1482 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1483 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1484 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1485 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1486 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1487 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1488 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1489 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1491 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1492 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1493 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1494 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1495 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1496 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1497 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1498 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1499 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1500 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1502 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1503 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1504 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1505 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1506 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1507 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1508 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1509 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1511 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1512 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1513 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1514 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1516 #define MCIERR_NO_IDENTITY (MCIERR_BASE + 94)
1518 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1520 #define MCI_OPEN_DRIVER 0x0801
1521 #define MCI_CLOSE_DRIVER 0x0802
1522 #define MCI_OPEN 0x0803
1523 #define MCI_CLOSE 0x0804
1524 #define MCI_ESCAPE 0x0805
1525 #define MCI_PLAY 0x0806
1526 #define MCI_SEEK 0x0807
1527 #define MCI_STOP 0x0808
1528 #define MCI_PAUSE 0x0809
1529 #define MCI_INFO 0x080A
1530 #define MCI_GETDEVCAPS 0x080B
1531 #define MCI_SPIN 0x080C
1532 #define MCI_SET 0x080D
1533 #define MCI_STEP 0x080E
1534 #define MCI_RECORD 0x080F
1535 #define MCI_SYSINFO 0x0810
1536 #define MCI_BREAK 0x0811
1537 #define MCI_SOUND 0x0812
1538 #define MCI_SAVE 0x0813
1539 #define MCI_STATUS 0x0814
1540 #define MCI_CUE 0x0830
1541 #define MCI_REALIZE 0x0840
1542 #define MCI_WINDOW 0x0841
1543 #define MCI_PUT 0x0842
1544 #define MCI_WHERE 0x0843
1545 #define MCI_FREEZE 0x0844
1546 #define MCI_UNFREEZE 0x0845
1547 #define MCI_LOAD 0x0850
1548 #define MCI_CUT 0x0851
1549 #define MCI_COPY 0x0852
1550 #define MCI_PASTE 0x0853
1551 #define MCI_UPDATE 0x0854
1552 #define MCI_RESUME 0x0855
1553 #define MCI_DELETE 0x0856
1555 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1557 #define MCI_ALL_DEVICE_ID 0xFFFF
1559 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1560 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1561 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1562 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1563 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1564 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1565 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1566 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1567 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1568 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1569 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1571 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1572 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1574 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1575 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1576 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1577 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1578 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1579 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1580 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1582 #define MCI_FORMAT_MILLISECONDS 0
1583 #define MCI_FORMAT_HMS 1
1584 #define MCI_FORMAT_MSF 2
1585 #define MCI_FORMAT_FRAMES 3
1586 #define MCI_FORMAT_SMPTE_24 4
1587 #define MCI_FORMAT_SMPTE_25 5
1588 #define MCI_FORMAT_SMPTE_30 6
1589 #define MCI_FORMAT_SMPTE_30DROP 7
1590 #define MCI_FORMAT_BYTES 8
1591 #define MCI_FORMAT_SAMPLES 9
1592 #define MCI_FORMAT_TMSF 10
1594 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1595 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1596 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1598 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1599 ((WORD)(s)<<8)) | \
1600 (((DWORD)(BYTE)(f))<<16)))
1602 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1603 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1604 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1605 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1607 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1608 ((WORD)(m)<<8)) | \
1609 (((DWORD)(BYTE)(s) | \
1610 ((WORD)(f)<<8))<<16)))
1612 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1613 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1614 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1616 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1617 ((WORD)(m)<<8)) | \
1618 (((DWORD)(BYTE)(s))<<16)))
1620 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1621 #define MCI_NOTIFY_SUPERSEDED 0x0002
1622 #define MCI_NOTIFY_ABORTED 0x0004
1623 #define MCI_NOTIFY_FAILURE 0x0008
1625 #define MCI_NOTIFY 0x00000001L
1626 #define MCI_WAIT 0x00000002L
1627 #define MCI_FROM 0x00000004L
1628 #define MCI_TO 0x00000008L
1629 #define MCI_TRACK 0x00000010L
1631 #define MCI_OPEN_SHAREABLE 0x00000100L
1632 #define MCI_OPEN_ELEMENT 0x00000200L
1633 #define MCI_OPEN_ALIAS 0x00000400L
1634 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1635 #define MCI_OPEN_TYPE_ID 0x00001000L
1636 #define MCI_OPEN_TYPE 0x00002000L
1638 #define MCI_SEEK_TO_START 0x00000100L
1639 #define MCI_SEEK_TO_END 0x00000200L
1641 #define MCI_STATUS_ITEM 0x00000100L
1642 #define MCI_STATUS_START 0x00000200L
1644 #define MCI_STATUS_LENGTH 0x00000001L
1645 #define MCI_STATUS_POSITION 0x00000002L
1646 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1647 #define MCI_STATUS_MODE 0x00000004L
1648 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1649 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1650 #define MCI_STATUS_READY 0x00000007L
1651 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1653 #define MCI_INFO_PRODUCT 0x00000100L
1654 #define MCI_INFO_FILE 0x00000200L
1655 #define MCI_INFO_MEDIA_UPC 0x00000400L
1656 #define MCI_INFO_MEDIA_IDENTITY 0x00000800L
1657 #define MCI_INFO_NAME 0x00001000L
1658 #define MCI_INFO_COPYRIGHT 0x00002000L
1660 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1662 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1663 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1664 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1665 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1666 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1667 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1668 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1669 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1670 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1672 #define MCI_SYSINFO_QUANTITY 0x00000100L
1673 #define MCI_SYSINFO_OPEN 0x00000200L
1674 #define MCI_SYSINFO_NAME 0x00000400L
1675 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1677 #define MCI_SET_DOOR_OPEN 0x00000100L
1678 #define MCI_SET_DOOR_CLOSED 0x00000200L
1679 #define MCI_SET_TIME_FORMAT 0x00000400L
1680 #define MCI_SET_AUDIO 0x00000800L
1681 #define MCI_SET_VIDEO 0x00001000L
1682 #define MCI_SET_ON 0x00002000L
1683 #define MCI_SET_OFF 0x00004000L
1685 #define MCI_SET_AUDIO_ALL 0x00000000L
1686 #define MCI_SET_AUDIO_LEFT 0x00000001L
1687 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1689 #define MCI_BREAK_KEY 0x00000100L
1690 #define MCI_BREAK_HWND 0x00000200L
1691 #define MCI_BREAK_OFF 0x00000400L
1693 #define MCI_RECORD_INSERT 0x00000100L
1694 #define MCI_RECORD_OVERWRITE 0x00000200L
1696 #define MCI_SOUND_NAME 0x00000100L
1698 #define MCI_SAVE_FILE 0x00000100L
1700 #define MCI_LOAD_FILE 0x00000100L
1702 typedef struct {
1703 DWORD dwCallback;
1704 } MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
1706 typedef struct {
1707 DWORD dwCallback;
1708 MCIDEVICEID wDeviceID;
1709 LPSTR lpstrDeviceType;
1710 LPSTR lpstrElementName;
1711 LPSTR lpstrAlias;
1712 } MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
1714 typedef struct {
1715 DWORD dwCallback;
1716 MCIDEVICEID wDeviceID;
1717 LPWSTR lpstrDeviceType;
1718 LPWSTR lpstrElementName;
1719 LPWSTR lpstrAlias;
1720 } MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
1722 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
1723 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
1725 typedef struct {
1726 DWORD dwCallback;
1727 DWORD dwFrom;
1728 DWORD dwTo;
1729 } MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
1731 typedef struct {
1732 DWORD dwCallback;
1733 DWORD dwTo;
1734 } MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
1736 typedef struct {
1737 DWORD dwCallback;
1738 DWORD dwReturn;
1739 DWORD dwItem;
1740 DWORD dwTrack;
1741 } MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
1743 typedef struct {
1744 DWORD dwCallback;
1745 LPSTR lpstrReturn;
1746 DWORD dwRetSize;
1747 } MCI_INFO_PARMSA, *LPMCI_INFO_PARMSA;
1749 typedef struct {
1750 DWORD dwCallback;
1751 LPSTR lpstrReturn;
1752 DWORD dwRetSize;
1753 } MCI_INFO_PARMSW, *LPMCI_INFO_PARMSW;
1755 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
1756 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
1758 typedef struct {
1759 DWORD dwCallback;
1760 DWORD dwReturn;
1761 DWORD dwItem;
1762 } MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
1764 typedef struct {
1765 DWORD dwCallback;
1766 LPSTR lpstrReturn;
1767 DWORD dwRetSize;
1768 DWORD dwNumber;
1769 UINT wDeviceType;
1770 } MCI_SYSINFO_PARMSA, *LPMCI_SYSINFO_PARMSA;
1772 typedef struct {
1773 DWORD dwCallback;
1774 LPWSTR lpstrReturn;
1775 DWORD dwRetSize;
1776 DWORD dwNumber;
1777 UINT wDeviceType;
1778 } MCI_SYSINFO_PARMSW, *LPMCI_SYSINFO_PARMSW;
1780 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
1781 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
1783 typedef struct {
1784 DWORD dwCallback;
1785 DWORD dwTimeFormat;
1786 DWORD dwAudio;
1787 } MCI_SET_PARMS, *LPMCI_SET_PARMS;
1789 typedef struct {
1790 DWORD dwCallback;
1791 INT nVirtKey;
1792 HWND hwndBreak;
1793 } MCI_BREAK_PARMS, *LPMCI_BREAK_PARMS;
1796 typedef struct {
1797 DWORD dwCallback;
1798 LPCSTR lpstrSoundName;
1799 } MCI_SOUND_PARMS, *LPMCI_SOUND_PARMS;
1801 typedef struct {
1802 DWORD dwCallback;
1803 LPCSTR lpfilename;
1804 } MCI_SAVE_PARMS, *LPMCI_SAVE_PARMS;
1806 typedef struct {
1807 DWORD dwCallback;
1808 LPCSTR lpfilename;
1809 } MCI_LOAD_PARMSA, *LPMCI_LOAD_PARMSA;
1811 typedef struct {
1812 DWORD dwCallback;
1813 LPCWSTR lpfilename;
1814 } MCI_LOAD_PARMSW, *LPMCI_LOAD_PARMSW;
1816 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
1817 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
1819 typedef struct {
1820 DWORD dwCallback;
1821 DWORD dwFrom;
1822 DWORD dwTo;
1823 } MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
1825 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
1827 #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
1828 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
1830 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
1832 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
1833 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
1834 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
1836 #define MCI_VD_FORMAT_TRACK 0x4001
1838 #define MCI_VD_PLAY_REVERSE 0x00010000L
1839 #define MCI_VD_PLAY_FAST 0x00020000L
1840 #define MCI_VD_PLAY_SPEED 0x00040000L
1841 #define MCI_VD_PLAY_SCAN 0x00080000L
1842 #define MCI_VD_PLAY_SLOW 0x00100000L
1844 #define MCI_VD_SEEK_REVERSE 0x00010000L
1846 #define MCI_VD_STATUS_SPEED 0x00004002L
1847 #define MCI_VD_STATUS_FORWARD 0x00004003L
1848 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
1849 #define MCI_VD_STATUS_SIDE 0x00004005L
1850 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
1852 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
1853 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
1855 #define MCI_VD_SPIN_UP 0x00010000L
1856 #define MCI_VD_SPIN_DOWN 0x00020000L
1858 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
1859 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
1860 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
1861 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
1863 #define MCI_VD_STEP_FRAMES 0x00010000L
1864 #define MCI_VD_STEP_REVERSE 0x00020000L
1866 #define MCI_VD_ESCAPE_STRING 0x00000100L
1868 typedef struct {
1869 DWORD dwCallback;
1870 DWORD dwFrom;
1871 DWORD dwTo;
1872 DWORD dwSpeed;
1873 } MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
1875 typedef struct {
1876 DWORD dwCallback;
1877 DWORD dwFrames;
1878 } MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
1880 typedef struct {
1881 DWORD dwCallback;
1882 LPCSTR lpstrCommand;
1883 } MCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA;
1885 typedef struct {
1886 DWORD dwCallback;
1887 LPCWSTR lpstrCommand;
1888 } MCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW;
1890 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
1891 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
1893 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
1895 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
1896 #define MCI_WAVE_SET_CHANNELS 0x00020000L
1897 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
1898 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
1899 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
1900 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
1902 #define MCI_WAVE_INPUT 0x00400000L
1903 #define MCI_WAVE_OUTPUT 0x00800000L
1905 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
1906 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
1907 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
1908 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
1909 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
1910 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
1911 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
1913 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
1914 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
1916 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
1917 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
1919 typedef struct {
1920 DWORD dwCallback;
1921 MCIDEVICEID wDeviceID;
1922 LPCSTR lpstrDeviceType;
1923 LPCSTR lpstrElementName;
1924 LPCSTR lpstrAlias;
1925 DWORD dwBufferSeconds;
1926 } MCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA;
1928 typedef struct {
1929 DWORD dwCallback;
1930 MCIDEVICEID wDeviceID;
1931 LPCWSTR lpstrDeviceType;
1932 LPCWSTR lpstrElementName;
1933 LPCWSTR lpstrAlias;
1934 DWORD dwBufferSeconds;
1935 } MCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW;
1937 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
1938 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
1940 typedef struct {
1941 DWORD dwCallback;
1942 DWORD dwFrom;
1943 DWORD dwTo;
1944 } MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
1946 typedef struct {
1947 DWORD dwCallback;
1948 DWORD dwTimeFormat;
1949 DWORD dwAudio;
1950 UINT wInput;
1951 UINT wOutput;
1952 UINT wFormatTag;
1953 UINT nChannels;
1954 DWORD nSamplesPerSec;
1955 DWORD nAvgBytesPerSec;
1956 UINT nBlockAlign;
1957 UINT wBitsPerSample;
1958 } MCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS;
1961 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
1962 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
1963 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
1964 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
1965 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
1967 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
1968 #define MCI_SEQ_FILE 0x4002
1969 #define MCI_SEQ_MIDI 0x4003
1970 #define MCI_SEQ_SMPTE 0x4004
1971 #define MCI_SEQ_NONE 65533
1973 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
1974 #define MCI_SEQ_STATUS_PORT 0x00004003L
1975 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
1976 #define MCI_SEQ_STATUS_MASTER 0x00004008L
1977 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
1978 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
1980 #define MCI_SEQ_SET_TEMPO 0x00010000L
1981 #define MCI_SEQ_SET_PORT 0x00020000L
1982 #define MCI_SEQ_SET_SLAVE 0x00040000L
1983 #define MCI_SEQ_SET_MASTER 0x00080000L
1984 #define MCI_SEQ_SET_OFFSET 0x01000000L
1986 typedef struct {
1987 DWORD dwCallback;
1988 DWORD dwTimeFormat;
1989 DWORD dwAudio;
1990 DWORD dwTempo;
1991 DWORD dwPort;
1992 DWORD dwSlave;
1993 DWORD dwMaster;
1994 DWORD dwOffset;
1995 } MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
1997 #define MCI_ANIM_OPEN_WS 0x00010000L
1998 #define MCI_ANIM_OPEN_PARENT 0x00020000L
1999 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2001 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2002 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2003 #define MCI_ANIM_PLAY_FAST 0x00040000L
2004 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2005 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2007 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2008 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2010 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2011 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2012 #define MCI_ANIM_STATUS_HWND 0x00004003L
2013 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2014 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2016 #define MCI_ANIM_INFO_TEXT 0x00010000L
2018 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2019 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2020 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2021 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2022 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2023 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2024 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2026 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2027 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2029 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2030 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2031 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2032 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2033 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2035 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2037 #define MCI_ANIM_RECT 0x00010000L
2038 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2039 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2041 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2042 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2044 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2046 typedef struct {
2047 DWORD dwCallback;
2048 MCIDEVICEID wDeviceID;
2049 LPCSTR lpstrDeviceType;
2050 LPCSTR lpstrElementName;
2051 LPCSTR lpstrAlias;
2052 DWORD dwStyle;
2053 HWND hWndParent;
2054 } MCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA;
2056 typedef struct {
2057 DWORD dwCallback;
2058 MCIDEVICEID wDeviceID;
2059 LPCWSTR lpstrDeviceType;
2060 LPCWSTR lpstrElementName;
2061 LPCWSTR lpstrAlias;
2062 DWORD dwStyle;
2063 HWND hWndParent;
2064 } MCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW;
2066 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
2067 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
2069 typedef struct {
2070 DWORD dwCallback;
2071 DWORD dwFrom;
2072 DWORD dwTo;
2073 DWORD dwSpeed;
2074 } MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
2076 typedef struct {
2077 DWORD dwCallback;
2078 DWORD dwFrames;
2079 } MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
2081 typedef struct {
2082 DWORD dwCallback;
2083 HWND hWnd;
2084 UINT nCmdShow;
2085 LPCSTR lpstrText;
2086 } MCI_ANIM_WINDOW_PARMSA, *LPMCI_ANIM_WINDOW_PARMSA;
2088 typedef struct {
2089 DWORD dwCallback;
2090 HWND hWnd;
2091 UINT nCmdShow;
2092 LPCWSTR lpstrText;
2093 } MCI_ANIM_WINDOW_PARMSW, *LPMCI_ANIM_WINDOW_PARMSW;
2095 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
2096 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
2098 typedef struct {
2099 DWORD dwCallback;
2100 #ifdef MCI_USE_OFFEXT
2101 POINT ptOffset;
2102 POINT ptExtent;
2103 #else /* ifdef MCI_USE_OFFEXT */
2104 RECT rc;
2105 #endif /* ifdef MCI_USE_OFFEXT */
2106 } MCI_ANIM_RECT_PARMS, *LPMCI_ANIM_RECT_PARMS;
2109 typedef struct {
2110 DWORD dwCallback;
2111 RECT rc;
2112 HDC hDC;
2113 } MCI_ANIM_UPDATE_PARMS, *LPMCI_ANIM_UPDATE_PARMS;
2116 #define MCI_OVLY_OPEN_WS 0x00010000L
2117 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2119 #define MCI_OVLY_STATUS_HWND 0x00004001L
2120 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2122 #define MCI_OVLY_INFO_TEXT 0x00010000L
2124 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2125 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2126 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2128 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2129 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2130 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2131 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2132 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2134 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2136 #define MCI_OVLY_RECT 0x00010000L
2137 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2138 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2139 #define MCI_OVLY_PUT_FRAME 0x00080000L
2140 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2142 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2143 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2144 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2145 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2147 typedef struct {
2148 DWORD dwCallback;
2149 MCIDEVICEID wDeviceID;
2150 LPCSTR lpstrDeviceType;
2151 LPCSTR lpstrElementName;
2152 LPCSTR lpstrAlias;
2153 DWORD dwStyle;
2154 HWND hWndParent;
2155 } MCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA;
2157 typedef struct {
2158 DWORD dwCallback;
2159 MCIDEVICEID wDeviceID;
2160 LPCWSTR lpstrDeviceType;
2161 LPCWSTR lpstrElementName;
2162 LPCWSTR lpstrAlias;
2163 DWORD dwStyle;
2164 HWND hWndParent;
2165 } MCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW;
2167 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
2168 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
2170 typedef struct {
2171 DWORD dwCallback;
2172 HWND hWnd;
2173 UINT nCmdShow;
2174 LPCSTR lpstrText;
2175 } MCI_OVLY_WINDOW_PARMSA, *LPMCI_OVLY_WINDOW_PARMSA;
2177 typedef struct {
2178 DWORD dwCallback;
2179 HWND hWnd;
2180 UINT nCmdShow;
2181 LPCWSTR lpstrText;
2182 } MCI_OVLY_WINDOW_PARMSW, *LPMCI_OVLY_WINDOW_PARMSW;
2184 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
2185 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
2187 typedef struct {
2188 DWORD dwCallback;
2189 #ifdef MCI_USE_OFFEXT
2190 POINT ptOffset;
2191 POINT ptExtent;
2192 #else /* ifdef MCI_USE_OFFEXT */
2193 RECT rc;
2194 #endif /* ifdef MCI_USE_OFFEXT */
2195 } MCI_OVLY_RECT_PARMS, *LPMCI_OVLY_RECT_PARMS;
2198 typedef struct {
2199 DWORD dwCallback;
2200 LPCSTR lpfilename;
2201 RECT rc;
2202 } MCI_OVLY_SAVE_PARMSA, *LPMCI_OVLY_SAVE_PARMSA;
2204 typedef struct {
2205 DWORD dwCallback;
2206 LPCWSTR lpfilename;
2207 RECT rc;
2208 } MCI_OVLY_SAVE_PARMSW, *LPMCI_OVLY_SAVE_PARMSW;
2210 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
2211 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
2213 typedef struct {
2214 DWORD dwCallback;
2215 LPCSTR lpfilename;
2216 RECT rc;
2217 } MCI_OVLY_LOAD_PARMSA, *LPMCI_OVLY_LOAD_PARMSA;
2219 typedef struct {
2220 DWORD dwCallback;
2221 LPCWSTR lpfilename;
2222 RECT rc;
2223 } MCI_OVLY_LOAD_PARMSW, *LPMCI_OVLY_LOAD_PARMSW;
2225 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
2226 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
2228 #include "poppack.h"
2230 #ifdef __cplusplus
2232 #endif
2234 #endif /* __WINE_MMSYSTEM_H */