32-bit clipboard support.
[wine/multimedia.git] / include / mmsystem.h
bloba1d7e67c56bc84894d816622da83d84ed4d7bd72
1 /*
2 * MMSYSTEM - Multimedia Wine Extension ... :-)
3 */
5 #ifndef __WINE_MMSYSTEM_H
6 #define __WINE_MMSYSTEM_H
8 typedef LPSTR HPSTR; /* a huge version of LPSTR */
9 typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
11 #pragma pack(1)
13 #define MAXWAVEDRIVERS 10
14 #define MAXMIDIDRIVERS 10
15 #define MAXAUXDRIVERS 10
16 #define MAXMCIDRIVERS 32
17 #define MAXMIXERDRIVERS 10
19 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
20 #define MAXERRORLENGTH 128 /* max error text length (including NULL) */
21 #define MAX_JOYSTICKOEMVXDNAME 260
23 typedef WORD VERSION; /* major (high byte), minor (low byte) */
25 typedef UINT16 MMVERSION16;
26 typedef UINT32 MMVERSION32;
27 DECL_WINELIB_TYPE(MMVERSION)
28 typedef UINT16 MCIDEVICEID16;
29 typedef UINT32 MCIDEVICEID32;
30 DECL_WINELIB_TYPE(MCIDEVICEID)
31 typedef UINT16 MMRESULT16;
32 typedef UINT32 MMRESULT32;
33 DECL_WINELIB_TYPE(MMRESULT)
35 typedef struct {
36 UINT16 wType; /* indicates the contents of the union */
37 union {
38 DWORD ms; /* milliseconds */
39 DWORD sample; /* samples */
40 DWORD cb; /* byte count */
41 struct { /* SMPTE */
42 BYTE hour; /* hours */
43 BYTE min; /* minutes */
44 BYTE sec; /* seconds */
45 BYTE frame; /* frames */
46 BYTE fps; /* frames per second */
47 BYTE dummy; /* pad */
48 } smpte;
49 struct { /* MIDI */
50 DWORD songptrpos; /* song pointer position */
51 } midi;
52 } u;
53 } MMTIME16, *LPMMTIME16;
55 typedef struct {
56 UINT32 wType;
57 union {
58 DWORD ms;
59 DWORD sample;
60 DWORD cb;
61 struct {
62 BYTE hour;
63 BYTE min;
64 BYTE sec;
65 BYTE frame;
66 BYTE fps;
67 BYTE dummy;
68 BYTE pad[2];
69 } smpte;
70 struct {
71 DWORD songptrpos;
72 } midi;
73 } u;
74 } MMTIME32, *LPMMTIME32;
75 DECL_WINELIB_TYPE(MMTIME)
76 DECL_WINELIB_TYPE(LPMMTIME)
78 #define TIME_MS 0x0001 /* time in milliseconds */
79 #define TIME_SAMPLES 0x0002 /* number of wave samples */
80 #define TIME_BYTES 0x0004 /* current byte offset */
81 #define TIME_SMPTE 0x0008 /* SMPTE time */
82 #define TIME_MIDI 0x0010 /* MIDI time */
84 #define MM_JOY1MOVE 0x3A0 /* joystick */
85 #define MM_JOY2MOVE 0x3A1
86 #define MM_JOY1ZMOVE 0x3A2
87 #define MM_JOY2ZMOVE 0x3A3
88 #define MM_JOY1BUTTONDOWN 0x3B5
89 #define MM_JOY2BUTTONDOWN 0x3B6
90 #define MM_JOY1BUTTONUP 0x3B7
91 #define MM_JOY2BUTTONUP 0x3B8
93 #define MM_MCINOTIFY 0x3B9 /* MCI */
95 #define MM_WOM_OPEN 0x3BB /* waveform output */
96 #define MM_WOM_CLOSE 0x3BC
97 #define MM_WOM_DONE 0x3BD
99 #define MM_WIM_OPEN 0x3BE /* waveform input */
100 #define MM_WIM_CLOSE 0x3BF
101 #define MM_WIM_DATA 0x3C0
103 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
104 #define MM_MIM_CLOSE 0x3C2
105 #define MM_MIM_DATA 0x3C3
106 #define MM_MIM_LONGDATA 0x3C4
107 #define MM_MIM_ERROR 0x3C5
108 #define MM_MIM_LONGERROR 0x3C6
110 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
111 #define MM_MOM_CLOSE 0x3C8
112 #define MM_MOM_DONE 0x3C9
115 #define MMSYSERR_BASE 0
116 #define WAVERR_BASE 32
117 #define MIDIERR_BASE 64
118 #define TIMERR_BASE 96
119 #define JOYERR_BASE 160
120 #define MCIERR_BASE 256
122 #define MCI_STRING_OFFSET 512
123 #define MCI_VD_OFFSET 1024
124 #define MCI_CD_OFFSET 1088
125 #define MCI_WAVE_OFFSET 1152
126 #define MCI_SEQ_OFFSET 1216
128 #define MMSYSERR_NOERROR 0 /* no error */
129 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
130 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
131 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
132 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
133 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
134 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
135 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
136 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
137 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
138 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
139 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
140 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
142 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
143 #define CALLBACK_NULL 0x00000000l /* no callback */
144 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
145 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
146 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
147 #define CALLBACK_FUNC32 0x00070000l /* (ugly hack) 32-bit FARPROC */
148 #define CALLBACK32CONV(x) ((((x)&CALLBACK_TYPEMASK)==CALLBACK_FUNCTION) ? \
149 (((x)&~CALLBACK_TYPEMASK)|CALLBACK_FUNC32) : (x))
151 typedef void (CALLBACK *LPDRVCALLBACK16) (HDRVR16 h, UINT16 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
152 typedef void (CALLBACK *LPDRVCALLBACK32) (HDRVR32 h, UINT32 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
153 DECL_WINELIB_TYPE(LPDRVCALLBACK)
155 #define MM_MICROSOFT 1 /* Microsoft Corp. */
157 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
158 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
160 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
161 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
162 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
163 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
164 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
166 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
168 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
169 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
171 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
174 UINT16 WINAPI mmsystemGetVersion16(void);
175 UINT32 WINAPI mmsystemGetVersion32(void);
176 #define mmsystemGetVersion WINELIB_NAME(mmsystemGetVersion)
177 BOOL16 WINAPI sndPlaySound(LPCSTR lpszSoundName, UINT16 uFlags);
178 BOOL32 WINAPI PlaySound32A(LPCSTR pszSound, HMODULE32 hmod, DWORD fdwSound);
179 BOOL32 WINAPI PlaySound32W(LPCWSTR pszSound, HMODULE32 hmod, DWORD fdwSound);
180 #define PlaySound WINELIB_NAME_AW(PlaySound)
182 #define SND_SYNC 0x0000 /* play synchronously (default) */
183 #define SND_ASYNC 0x0001 /* play asynchronously */
184 #define SND_NODEFAULT 0x0002 /* don't use default sound */
185 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
186 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
187 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
189 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
190 #define SND_ALIAS 0x00010000L /* name is a registry alias */
191 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
192 #define SND_FILENAME 0x00020000L /* name is file name */
193 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
194 #define SND_PURGE 0x00000040L /* purge all sounds */
196 /* waveform audio error return values */
197 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
198 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
199 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
200 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
201 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
203 typedef HWAVEIN16 *LPHWAVEIN16;
204 typedef HWAVEOUT16 *LPHWAVEOUT16;
205 typedef LPDRVCALLBACK16 LPWAVECALLBACK16;
206 typedef LPDRVCALLBACK32 LPWAVECALLBACK32;
207 DECL_WINELIB_TYPE(LPWAVECALLBACK)
208 typedef HMIXER16 *LPHMIXER16;
209 typedef HMIXER32 *LPHMIXER32;
211 #define WOM_OPEN MM_WOM_OPEN
212 #define WOM_CLOSE MM_WOM_CLOSE
213 #define WOM_DONE MM_WOM_DONE
214 #define WIM_OPEN MM_WIM_OPEN
215 #define WIM_CLOSE MM_WIM_CLOSE
216 #define WIM_DATA MM_WIM_DATA
218 #define WAVE_MAPPER (-1)
220 #define WAVE_FORMAT_QUERY 0x0001
221 #define WAVE_ALLOWSYNC 0x0002
223 typedef struct wavehdr_tag {
224 LPSTR lpData; /* pointer to locked data buffer */
225 DWORD dwBufferLength; /* length of data buffer */
226 DWORD dwBytesRecorded;/* used for input only */
227 DWORD dwUser; /* for client's use */
228 DWORD dwFlags; /* assorted flags (see defines) */
229 DWORD dwLoops; /* loop control counter */
231 struct wavehdr_tag *lpNext; /* reserved for driver */
232 DWORD reserved; /* reserved for driver */
233 } WAVEHDR, *LPWAVEHDR;
235 #define WHDR_DONE 0x00000001 /* done bit */
236 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
237 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
238 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
239 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
241 typedef struct {
242 WORD wMid; /* manufacturer ID */
243 WORD wPid; /* product ID */
244 MMVERSION16 vDriverVersion; /* version of the driver */
245 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
246 DWORD dwFormats; /* formats supported */
247 WORD wChannels; /* number of sources supported */
248 DWORD dwSupport; /* functionality supported by driver */
249 } WAVEOUTCAPS16, *LPWAVEOUTCAPS16;
251 typedef struct {
252 WORD wMid; /* manufacturer ID */
253 WORD wPid; /* product ID */
254 MMVERSION32 vDriverVersion; /* version of the driver */
255 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
256 DWORD dwFormats; /* formats supported */
257 WORD wChannels; /* number of sources supported */
258 WORD wReserved1; /* padding */
259 DWORD dwSupport; /* functionality supported by driver */
260 } WAVEOUTCAPS32A, *LPWAVEOUTCAPS32A;
262 typedef struct {
263 WORD wMid; /* manufacturer ID */
264 WORD wPid; /* product ID */
265 MMVERSION32 vDriverVersion; /* version of the driver */
266 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
267 DWORD dwFormats; /* formats supported */
268 WORD wChannels; /* number of sources supported */
269 WORD wReserved1; /* padding */
270 DWORD dwSupport; /* functionality supported by driver */
271 } WAVEOUTCAPS32W, *LPWAVEOUTCAPS32W;
272 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS)
273 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS)
275 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
276 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
277 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
278 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
279 #define WAVECAPS_SYNC 0x0010
281 typedef struct {
282 WORD wMid; /* manufacturer ID */
283 WORD wPid; /* product ID */
284 MMVERSION16 vDriverVersion; /* version of the driver */
285 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
286 DWORD dwFormats; /* formats supported */
287 WORD wChannels; /* number of channels supported */
288 } WAVEINCAPS16, *LPWAVEINCAPS16;
290 typedef struct {
291 WORD wMid; /* manufacturer ID */
292 WORD wPid; /* product ID */
293 MMVERSION32 vDriverVersion; /* version of the driver */
294 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
295 DWORD dwFormats; /* formats supported */
296 WORD wChannels; /* number of channels supported */
297 WORD wReserved1;
298 } WAVEINCAPS32A, *LPWAVEINCAPS32A;
299 typedef struct {
300 WORD wMid; /* manufacturer ID */
301 WORD wPid; /* product ID */
302 MMVERSION32 vDriverVersion; /* version of the driver */
303 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
304 DWORD dwFormats; /* formats supported */
305 WORD wChannels; /* number of channels supported */
306 WORD wReserved1;
307 } WAVEINCAPS32W, *LPWAVEINCAPS32W;
308 DECL_WINELIB_TYPE_AW(WAVEINCAPS)
309 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS)
311 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
312 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
313 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
314 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
315 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
316 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
317 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
318 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
319 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
320 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
321 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
322 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
323 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
325 /* General format structure common to all formats, same for Win16 and Win32 */
326 typedef struct {
327 WORD wFormatTag; /* format type */
328 WORD nChannels; /* number of channels */
329 DWORD nSamplesPerSec; /* sample rate */
330 DWORD nAvgBytesPerSec;/* for buffer estimation */
331 WORD nBlockAlign; /* block size of data */
332 } WAVEFORMAT, *LPWAVEFORMAT;
334 #define WAVE_FORMAT_PCM 1
336 typedef struct {
337 WAVEFORMAT wf;
338 WORD wBitsPerSample;
339 } PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
341 /* dito same for Win16 / Win32 */
342 typedef struct {
343 WORD wFormatTag; /* format type */
344 WORD nChannels; /* number of channels (i.e. mono, stereo...) */
345 DWORD nSamplesPerSec; /* sample rate */
346 DWORD nAvgBytesPerSec;/* for buffer estimation */
347 WORD nBlockAlign; /* block size of data */
348 WORD wBitsPerSample; /* number of bits per sample of mono data */
349 WORD cbSize; /* the count in bytes of the size of */
350 /* extra information (after cbSize) */
351 } WAVEFORMATEX,*LPWAVEFORMATEX;
353 UINT16 WINAPI waveOutGetNumDevs16();
354 UINT32 WINAPI waveOutGetNumDevs32();
355 #define waveOutGetNumDevs WINELIB_NAME(waveOutGetNumDevs)
356 UINT16 WINAPI waveOutGetDevCaps16(UINT16,LPWAVEOUTCAPS16,UINT16);
357 UINT32 WINAPI waveOutGetDevCaps32A(UINT32,LPWAVEOUTCAPS32A,UINT32);
358 UINT32 WINAPI waveOutGetDevCaps32W(UINT32,LPWAVEOUTCAPS32W,UINT32);
359 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
360 UINT16 WINAPI waveOutGetVolume16(UINT16,DWORD*);
361 UINT32 WINAPI waveOutGetVolume32(UINT32,DWORD*);
362 #define waveOutGetVolume WINELIB_NAME(waveOutGetVolume)
363 UINT16 WINAPI waveOutSetVolume16(UINT16,DWORD);
364 UINT32 WINAPI waveOutSetVolume32(UINT32,DWORD);
365 #define waveOutSetVolume WINELIB_NAME(waveOutSetVolume)
366 UINT16 WINAPI waveOutGetErrorText16(UINT16,LPSTR,UINT16);
367 UINT32 WINAPI waveOutGetErrorText32A(UINT32,LPSTR,UINT32);
368 UINT32 WINAPI waveOutGetErrorText32W(UINT32,LPWSTR,UINT32);
369 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
370 UINT16 WINAPI waveOutOpen16(HWAVEOUT16*,UINT16,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
371 UINT32 WINAPI waveOutOpen32(HWAVEOUT32*,UINT32,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
372 #define waveOutOpen WINELIB_NAME(waveOutOpen)
373 UINT16 WINAPI waveOutClose16(HWAVEOUT16);
374 UINT32 WINAPI waveOutClose32(HWAVEOUT32);
375 #define waveOutClose WINELIB_NAME(waveOutClose)
376 UINT16 WINAPI waveOutPrepareHeader16(HWAVEOUT16,WAVEHDR*,UINT16);
377 UINT32 WINAPI waveOutPrepareHeader32(HWAVEOUT32,WAVEHDR*,UINT32);
378 #define waveOutPrepareHeader WINELIB_NAME(waveOutPrepareHeader)
379 UINT16 WINAPI waveOutUnprepareHeader16(HWAVEOUT16,WAVEHDR*,UINT16);
380 UINT32 WINAPI waveOutUnprepareHeader32(HWAVEOUT32,WAVEHDR*,UINT32);
381 #define waveOutUnprepareHeader WINELIB_NAME(waveOutUnprepareHeader)
382 UINT16 WINAPI waveOutWrite16(HWAVEOUT16,WAVEHDR*,UINT16);
383 UINT32 WINAPI waveOutWrite32(HWAVEOUT32,WAVEHDR*,UINT32);
384 #define waveOutWrite WINELIB_NAME(waveOutWrite)
385 UINT16 WINAPI waveOutPause16(HWAVEOUT16);
386 UINT32 WINAPI waveOutPause32(HWAVEOUT32);
387 #define waveOutPause WINELIB_NAME(waveOutPause)
388 UINT16 WINAPI waveOutRestart16(HWAVEOUT16);
389 UINT32 WINAPI waveOutRestart32(HWAVEOUT32);
390 #define waveOutRestart WINELIB_NAME(waveOutRestart)
391 UINT16 WINAPI waveOutReset16(HWAVEOUT16);
392 UINT32 WINAPI waveOutReset32(HWAVEOUT32);
393 #define waveOutReset WINELIB_NAME(waveOutReset)
394 UINT16 WINAPI waveOutBreakLoop16(HWAVEOUT16);
395 UINT32 WINAPI waveOutBreakLoop32(HWAVEOUT32);
396 #define waveOutBreakLoop WINELIB_NAME(waveOutBreakLoop)
397 UINT16 WINAPI waveOutGetPosition16(HWAVEOUT16,LPMMTIME16,UINT16);
398 UINT32 WINAPI waveOutGetPosition32(HWAVEOUT32,LPMMTIME32,UINT32);
399 #define waveOutGetPosition WINELIB_NAME(waveOutGetPosition)
400 UINT16 WINAPI waveOutGetPitch16(HWAVEOUT16,DWORD*);
401 UINT32 WINAPI waveOutGetPitch32(HWAVEOUT32,DWORD*);
402 #define waveOutGetPitch WINELIB_NAME(waveOutGetPitch)
403 UINT16 WINAPI waveOutSetPitch16(HWAVEOUT16,DWORD);
404 UINT32 WINAPI waveOutSetPitch32(HWAVEOUT32,DWORD);
405 #define waveOutSetPitch WINELIB_NAME(waveOutSetPitch)
406 UINT16 WINAPI waveOutGetPlaybackRate16(HWAVEOUT16,DWORD*);
407 UINT32 WINAPI waveOutGetPlaybackRate32(HWAVEOUT32,DWORD*);
408 #define waveOutGetPlaybackRate WINELIB_NAME(waveOutGetPlaybackRate)
409 UINT16 WINAPI waveOutSetPlaybackRate16(HWAVEOUT16,DWORD);
410 UINT32 WINAPI waveOutSetPlaybackRate32(HWAVEOUT32,DWORD);
411 #define waveOutSetPlaybackRate WINELIB_NAME(waveOutSetPlaybackRate)
412 UINT16 WINAPI waveOutGetID16(HWAVEOUT16,UINT16*);
413 UINT32 WINAPI waveOutGetID32(HWAVEOUT32,UINT32*);
414 #define waveOutGetID WINELIB_NAME(waveOutGetID)
415 DWORD WINAPI waveOutMessage16(HWAVEOUT16,UINT16,DWORD,DWORD);
416 DWORD WINAPI waveOutMessage32(HWAVEOUT32,UINT32,DWORD,DWORD);
417 #define waveOutMessage WINELIB_NAME(waveOutMessage)
419 UINT16 WINAPI waveInGetNumDevs16();
420 UINT32 WINAPI waveInGetNumDevs32();
421 #define waveInGetNumDevs WINELIB_NAME(waveInGetNumDevs)
422 UINT16 WINAPI waveInGetDevCaps16(UINT16,LPWAVEINCAPS16,UINT16);
423 UINT32 WINAPI waveInGetDevCaps32A(UINT32,LPWAVEINCAPS32A,UINT32);
424 UINT32 WINAPI waveInGetDevCaps32W(UINT32,LPWAVEINCAPS32W,UINT32);
425 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
426 UINT16 WINAPI waveInGetErrorText16(UINT16,LPSTR,UINT16);
427 UINT32 WINAPI waveInGetErrorText32A(UINT32,LPSTR,UINT32);
428 UINT32 WINAPI waveInGetErrorText32W(UINT32,LPWSTR,UINT32);
429 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
430 UINT16 WINAPI waveInOpen16(HWAVEIN16*,UINT16,const LPWAVEFORMAT,DWORD,DWORD,DWORD);
431 UINT32 WINAPI waveInOpen32(HWAVEIN32*,UINT32,const LPWAVEFORMAT,DWORD,DWORD,DWORD);
432 #define waveInOpen WINELIB_NAME(waveInOpen)
433 UINT16 WINAPI waveInClose16(HWAVEIN16);
434 UINT32 WINAPI waveInClose32(HWAVEIN32);
435 #define waveInClose WINELIB_TYPE(waveInClose)
436 UINT16 WINAPI waveInPrepareHeader16(HWAVEIN16,WAVEHDR*,UINT16);
437 UINT32 WINAPI waveInPrepareHeader32(HWAVEIN32,WAVEHDR*,UINT32);
438 #define waveInPrepareHeader WINELIB_NAME(waveInPrepareHeader)
439 UINT16 WINAPI waveInUnprepareHeader16(HWAVEIN16,WAVEHDR*,UINT16);
440 UINT32 WINAPI waveInUnprepareHeader32(HWAVEIN32,WAVEHDR*,UINT32);
441 #define waveInUnprepareHeader WINELIB_NAME(waveInUnprepareHeader)
442 UINT16 WINAPI waveInAddBuffer16(HWAVEIN16,WAVEHDR*,UINT16);
443 UINT32 WINAPI waveInAddBuffer32(HWAVEIN32,WAVEHDR*,UINT32);
444 #define waveInAddBuffer WINELIB_NAME(waveInAddBuffer)
445 UINT16 WINAPI waveInStart16(HWAVEIN16);
446 UINT32 WINAPI waveInStart32(HWAVEIN32);
447 #define waveInStart WINELIB_NAME(waveInStart)
448 UINT16 WINAPI waveInStop16(HWAVEIN16);
449 UINT32 WINAPI waveInStop32(HWAVEIN32);
450 #define waveInStop WINELIB_NAME(waveInStop)
451 UINT16 WINAPI waveInReset16(HWAVEIN16);
452 UINT32 WINAPI waveInReset32(HWAVEIN32);
453 #define waveInReset WINELIB_NAME(waveInReset)
454 UINT16 WINAPI waveInGetPosition16(HWAVEIN16,LPMMTIME16,UINT16);
455 UINT32 WINAPI waveInGetPosition32(HWAVEIN32,LPMMTIME32,UINT32);
456 #define waveInGetPosition WINELIB_NAME(waveInGetPosition)
457 UINT16 WINAPI waveInGetID16(HWAVEIN16,UINT16*);
458 UINT32 WINAPI waveInGetID32(HWAVEIN32,UINT32*);
459 #define waveInGetID WINELIB_NAME(waveInGetID)
461 DWORD WINAPI waveInMessage16(HWAVEIN16,UINT16,DWORD,DWORD);
462 DWORD WINAPI waveInMessage32(HWAVEIN32,UINT32,DWORD,DWORD);
463 #define waveInMessage WINELIB_NAME(waveInMessage)
465 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
466 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
467 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
468 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
469 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
470 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
471 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
473 typedef HMIDIIN16 *LPHMIDIIN16;
474 typedef HMIDIOUT16 *LPHMIDIOUT16;
475 typedef LPDRVCALLBACK16 LPMIDICALLBACK16;
476 typedef LPDRVCALLBACK32 LPMIDICALLBACK32;
477 DECL_WINELIB_TYPE(LPMIDICALLBACK)
478 #define MIDIPATCHSIZE 128
479 typedef WORD PATCHARRAY[MIDIPATCHSIZE];
480 typedef WORD *LPPATCHARRAY;
481 typedef WORD KEYARRAY[MIDIPATCHSIZE];
482 typedef WORD *LPKEYARRAY;
484 #define MIM_OPEN MM_MIM_OPEN
485 #define MIM_CLOSE MM_MIM_CLOSE
486 #define MIM_DATA MM_MIM_DATA
487 #define MIM_LONGDATA MM_MIM_LONGDATA
488 #define MIM_ERROR MM_MIM_ERROR
489 #define MIM_LONGERROR MM_MIM_LONGERROR
490 #define MOM_OPEN MM_MOM_OPEN
491 #define MOM_CLOSE MM_MOM_CLOSE
492 #define MOM_DONE MM_MOM_DONE
494 /* device ID for MIDI mapper */
496 #define MIDIMAPPER (-1)
497 #define MIDI_MAPPER (-1)
499 /* flags for wFlags parm of
500 midiOutCachePatches(),
501 midiOutCacheDrumPatches() */
502 #define MIDI_CACHE_ALL 1
503 #define MIDI_CACHE_BESTFIT 2
504 #define MIDI_CACHE_QUERY 3
505 #define MIDI_UNCACHE 4
507 typedef struct {
508 WORD wMid; /* manufacturer ID */
509 WORD wPid; /* product ID */
510 MMVERSION16 vDriverVersion; /* version of the driver */
511 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
512 WORD wTechnology; /* type of device */
513 WORD wVoices; /* # of voices (internal synth only) */
514 WORD wNotes; /* max # of notes (internal synth only) */
515 WORD wChannelMask; /* channels used (internal synth only) */
516 DWORD dwSupport; /* functionality supported by driver */
517 } MIDIOUTCAPS16, *LPMIDIOUTCAPS16;
519 typedef struct {
520 WORD wMid; /* manufacturer ID */
521 WORD wPid; /* product ID */
522 MMVERSION32 vDriverVersion; /* version of the driver */
523 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
524 WORD wTechnology; /* type of device */
525 WORD wVoices; /* # of voices (internal synth only) */
526 WORD wNotes; /* max # of notes (internal synth only) */
527 WORD wChannelMask; /* channels used (internal synth only) */
528 DWORD dwSupport; /* functionality supported by driver */
529 } MIDIOUTCAPS32A, *LPMIDIOUTCAPS32A;
531 typedef struct {
532 WORD wMid; /* manufacturer ID */
533 WORD wPid; /* product ID */
534 MMVERSION32 vDriverVersion; /* version of the driver */
535 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
536 WORD wTechnology; /* type of device */
537 WORD wVoices; /* # of voices (internal synth only) */
538 WORD wNotes; /* max # of notes (internal synth only) */
539 WORD wChannelMask; /* channels used (internal synth only) */
540 DWORD dwSupport; /* functionality supported by driver */
541 } MIDIOUTCAPS32W, *LPMIDIOUTCAPS32W;
543 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS)
544 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS)
546 #define MOD_MIDIPORT 1 /* output port */
547 #define MOD_SYNTH 2 /* generic internal synth */
548 #define MOD_SQSYNTH 3 /* square wave internal synth */
549 #define MOD_FMSYNTH 4 /* FM internal synth */
550 #define MOD_MAPPER 5 /* MIDI mapper */
552 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
553 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
554 #define MIDICAPS_CACHE 0x0004
556 typedef struct {
557 WORD wMid; /* manufacturer ID */
558 WORD wPid; /* product ID */
559 MMVERSION16 vDriverVersion; /* version of the driver */
560 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
561 DWORD dwSupport; /* included in win95 and higher */
562 } MIDIINCAPS16, *LPMIDIINCAPS16;
564 typedef struct {
565 WORD wMid; /* manufacturer ID */
566 WORD wPid; /* product ID */
567 MMVERSION32 vDriverVersion; /* version of the driver */
568 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
569 DWORD dwSupport; /* included in win95 and higher */
570 } MIDIINCAPS32A, *LPMIDIINCAPS32A;
572 typedef struct {
573 WORD wMid; /* manufacturer ID */
574 WORD wPid; /* product ID */
575 MMVERSION32 vDriverVersion; /* version of the driver */
576 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
577 DWORD dwSupport; /* included in win95 and higher */
578 } MIDIINCAPS32W, *LPMIDIINCAPS32W;
580 DECL_WINELIB_TYPE_AW(MIDIINCAPS)
581 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
583 typedef struct {
584 LPSTR lpData; /* pointer to locked data block */
585 DWORD dwBufferLength; /* length of data in data block */
586 DWORD dwBytesRecorded;/* used for input only */
587 DWORD dwUser; /* for client's use */
588 DWORD dwFlags; /* assorted flags (see defines) */
589 struct midihdr_tag *lpNext; /* reserved for driver */
590 DWORD reserved; /* reserved for driver */
591 } MIDIHDR, *LPMIDIHDR;
593 #define MHDR_DONE 0x00000001 /* done bit */
594 #define MHDR_PREPARED 0x00000002 /* set if header prepared */
595 #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
597 UINT16 WINAPI midiOutGetNumDevs16();
598 UINT32 WINAPI midiOutGetNumDevs32();
599 #define midiOutGetNumDevs WINELIB_NAME(midiOutGetNumDevs)
600 UINT16 WINAPI midiOutGetDevCaps16(UINT16,LPMIDIOUTCAPS16,UINT16);
601 UINT32 WINAPI midiOutGetDevCaps32A(UINT32,LPMIDIOUTCAPS32A,UINT32);
602 UINT32 WINAPI midiOutGetDevCaps32W(UINT32,LPMIDIOUTCAPS32W,UINT32);
603 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
604 UINT16 WINAPI midiOutGetVolume16(UINT16,DWORD*);
605 UINT32 WINAPI midiOutGetVolume32(UINT32,DWORD*);
606 #define midiOutGetVolume WINELIB_NAME(midiOutGetVolume)
607 UINT16 WINAPI midiOutSetVolume16(UINT16,DWORD);
608 UINT32 WINAPI midiOutSetVolume32(UINT32,DWORD);
609 #define midiOutSetVolume WINELIB_NAME(midiOutSetVolume)
610 UINT16 WINAPI midiOutGetErrorText16(UINT16,LPSTR,UINT16);
611 UINT32 WINAPI midiOutGetErrorText32A(UINT32,LPSTR,UINT32);
612 UINT32 WINAPI midiOutGetErrorText32W(UINT32,LPWSTR,UINT32);
613 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
614 UINT16 WINAPI midiGetErrorText(UINT16,LPSTR,UINT16);
615 UINT16 WINAPI midiOutOpen16(HMIDIOUT16*,UINT16,DWORD,DWORD,DWORD);
616 UINT32 WINAPI midiOutOpen32(HMIDIOUT32*,UINT32,DWORD,DWORD,DWORD);
617 #define midiOutOpen WINELIB_NAME(midiOutOpen)
618 UINT16 WINAPI midiOutClose16(HMIDIOUT16);
619 UINT32 WINAPI midiOutClose32(HMIDIOUT32);
620 #define midiOutClose WINELIB_NAME(midiOutClose)
621 UINT16 WINAPI midiOutPrepareHeader16(HMIDIOUT16,MIDIHDR*,UINT16);
622 UINT32 WINAPI midiOutPrepareHeader32(HMIDIOUT32,MIDIHDR*,UINT32);
623 #define midiOutPrepareHeader WINELIB_NAME(midiOutPrepareHeader)
624 UINT16 WINAPI midiOutUnprepareHeader16(HMIDIOUT16,MIDIHDR*,UINT16);
625 UINT32 WINAPI midiOutUnprepareHeader32(HMIDIOUT32,MIDIHDR*,UINT32);
626 #define midiOutUnprepareHeader WINELIB_NAME(midiOutUnprepareHeader)
627 UINT16 WINAPI midiOutShortMsg16(HMIDIOUT16,DWORD);
628 UINT32 WINAPI midiOutShortMsg32(HMIDIOUT32,DWORD);
629 #define midiOutShortMsg WINELIB_NAME(midiOutShortMsg)
630 UINT16 WINAPI midiOutLongMsg16(HMIDIOUT16,MIDIHDR*,UINT16);
631 UINT32 WINAPI midiOutLongMsg32(HMIDIOUT32,MIDIHDR*,UINT32);
632 #define midiOutLongMsg WINELIB_NAME(midiOutLongMsg)
633 UINT16 WINAPI midiOutReset16(HMIDIOUT16);
634 UINT32 WINAPI midiOutReset32(HMIDIOUT32);
635 #define midiOutReset WINELIB_NAME(midiOutReset)
636 UINT16 WINAPI midiOutCachePatches16(HMIDIOUT16,UINT16,WORD*,UINT16);
637 UINT32 WINAPI midiOutCachePatches32(HMIDIOUT32,UINT32,WORD*,UINT32);
638 #define midiOutCachePatches WINELIB_NAME(midiOutCachePatches)
639 UINT16 WINAPI midiOutCacheDrumPatches16(HMIDIOUT16,UINT16,WORD*,UINT16);
640 UINT32 WINAPI midiOutCacheDrumPatches32(HMIDIOUT32,UINT32,WORD*,UINT32);
641 #define midiOutCacheDrumPatches WINELIB_NAME(midiOutCacheDrumPatches)
642 UINT16 WINAPI midiOutGetID16(HMIDIOUT16,UINT16*);
643 UINT32 WINAPI midiOutGetID32(HMIDIOUT32,UINT32*);
644 #define midiOutGetID WINELIB_NAME(midiOutGetID)
646 DWORD WINAPI midiOutMessage16(HMIDIOUT16,UINT16,DWORD,DWORD);
647 DWORD WINAPI midiOutMessage32(HMIDIOUT32,UINT32,DWORD,DWORD);
648 #define midiOutMessage WINELIB_NAME(midiOutMessage)
650 UINT16 WINAPI midiInGetNumDevs16(void);
651 UINT32 WINAPI midiInGetNumDevs32(void);
652 #define midiInGetNumDevs WINELIB_NAME(midiInGetNumDevs)
653 UINT16 WINAPI midiInGetDevCaps16(UINT16,LPMIDIINCAPS16,UINT16);
654 UINT32 WINAPI midiInGetDevCaps32A(UINT32,LPMIDIINCAPS32A,UINT32);
655 UINT32 WINAPI midiInGetDevCaps32W(UINT32,LPMIDIINCAPS32W,UINT32);
656 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
657 UINT16 WINAPI midiInGetErrorText16(UINT16,LPSTR,UINT16);
658 UINT32 WINAPI midiInGetErrorText32A(UINT32,LPSTR,UINT32);
659 UINT32 WINAPI midiInGetErrorText32W(UINT32,LPWSTR,UINT32);
660 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
661 UINT16 WINAPI midiInOpen16(HMIDIIN16*,UINT16,DWORD,DWORD,DWORD);
662 UINT32 WINAPI midiInOpen32(HMIDIIN32*,UINT32,DWORD,DWORD,DWORD);
663 #define midiInOpen WINELIB_NAME(midiInOpen)
664 UINT16 WINAPI midiInClose16(HMIDIIN16);
665 UINT32 WINAPI midiInClose32(HMIDIIN32);
666 #define midiInClose WINELIB_NAME(midiInClose)
667 UINT16 WINAPI midiInPrepareHeader16(HMIDIIN16,MIDIHDR*,UINT16);
668 UINT32 WINAPI midiInPrepareHeader32(HMIDIIN32,MIDIHDR*,UINT32);
669 #define midiInPrepareHeader WINELIB_NAME(midiInPrepareHeader)
670 UINT16 WINAPI midiInUnprepareHeader16(HMIDIIN16,MIDIHDR*,UINT16);
671 UINT32 WINAPI midiInUnprepareHeader32(HMIDIIN32,MIDIHDR*,UINT32);
672 #define midiInUnprepareHeader WINELIB_NAME(midiInUnprepareHeader)
673 UINT16 WINAPI midiInAddBuffer16(HMIDIIN16,MIDIHDR*,UINT16);
674 UINT32 WINAPI midiInAddBuffer32(HMIDIIN32,MIDIHDR*,UINT32);
675 #define midiInAddBuffer WINELIB_NAME(midiInAddBuffer)
676 UINT16 WINAPI midiInStart16(HMIDIIN16);
677 UINT32 WINAPI midiInStart32(HMIDIIN32);
678 #define midiInStart WINELIB_NAME(midiInStart)
679 UINT16 WINAPI midiInStop16(HMIDIIN16);
680 UINT32 WINAPI midiInStop32(HMIDIIN32);
681 #define midiInStop WINELIB_NAME(midiInStop)
682 UINT16 WINAPI midiInReset16(HMIDIIN16);
683 UINT32 WINAPI midiInReset32(HMIDIIN32);
684 #define midiInReset WINELIB_NAME(midiInReset)
685 UINT16 WINAPI midiInGetID16(HMIDIIN16,UINT16*);
686 UINT32 WINAPI midiInGetID32(HMIDIIN32,UINT32*);
687 #define midiInGetID WINELIB_NAME(midiInGetID)
688 DWORD WINAPI midiInMessage16(HMIDIIN16,UINT16,DWORD,DWORD);
689 DWORD WINAPI midiInMessage32(HMIDIIN32,UINT32,DWORD,DWORD);
690 #define midiInMessage WINELIB_NAME(midiInMessage)
692 #define AUX_MAPPER (-1)
694 typedef struct {
695 WORD wMid; /* manufacturer ID */
696 WORD wPid; /* product ID */
697 MMVERSION16 vDriverVersion; /* version of the driver */
698 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
699 WORD wTechnology; /* type of device */
700 DWORD dwSupport; /* functionality supported by driver */
701 } AUXCAPS16, *LPAUXCAPS16;
703 typedef struct {
704 WORD wMid; /* manufacturer ID */
705 WORD wPid; /* product ID */
706 MMVERSION32 vDriverVersion; /* version of the driver */
707 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
708 WORD wTechnology; /* type of device */
709 WORD wReserved1; /* padding */
710 DWORD dwSupport; /* functionality supported by driver */
711 } AUXCAPS32A, *LPAUXCAPS32A;
713 typedef struct {
714 WORD wMid; /* manufacturer ID */
715 WORD wPid; /* product ID */
716 MMVERSION32 vDriverVersion; /* version of the driver */
717 WCHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
718 WORD wTechnology; /* type of device */
719 WORD wReserved1; /* padding */
720 DWORD dwSupport; /* functionality supported by driver */
721 } AUXCAPS32W, *LPAUXCAPS32W;
723 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
724 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
726 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
727 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
729 UINT16 WINAPI auxGetNumDevs16();
730 UINT32 WINAPI auxGetNumDevs32();
731 #define auxGetNumDevs WINELIB_NAME(auxGetNumDevs)
732 UINT16 WINAPI auxGetDevCaps16 (UINT16,LPAUXCAPS16,UINT16);
733 UINT32 WINAPI auxGetDevCaps32A(UINT32,LPAUXCAPS32A,UINT32);
734 UINT32 WINAPI auxGetDevCaps32W(UINT32,LPAUXCAPS32W,UINT32);
735 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
736 UINT16 WINAPI auxSetVolume16(UINT16,DWORD);
737 UINT32 WINAPI auxSetVolume32(UINT32,DWORD);
738 #define auxSetVolume WINELIB_NAME(auxSetVolume)
740 UINT16 WINAPI auxGetVolume16(UINT16,LPDWORD);
741 UINT32 WINAPI auxGetVolume32(UINT32,LPDWORD);
742 #define auxGetVolume WINELIB_NAME(auxGetVolume)
744 DWORD WINAPI auxOutMessage16(UINT16,UINT16,DWORD,DWORD);
745 DWORD WINAPI auxOutMessage32(UINT32,UINT32,DWORD,DWORD);
746 #define auxOutMessage WINELIB_NAME(auxOutMessage)
748 #define TIMERR_NOERROR (0) /* no error */
749 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
750 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
752 typedef void (CALLBACK *LPTIMECALLBACK16)(UINT16 uTimerID, UINT16 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
753 typedef void (CALLBACK *LPTIMECALLBACK32)(UINT32 uTimerID, UINT32 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
754 DECL_WINELIB_TYPE(LPTIMECALLBACK)
756 #define TIME_ONESHOT 0x0000 /* program timer for single event */
757 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
758 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
759 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
760 #define TIME_CALLBACK_EVENT_PULSE 0x0020/* callback is event - use PulseEvent */
762 typedef struct {
763 UINT16 wPeriodMin; /* minimum period supported */
764 UINT16 wPeriodMax; /* maximum period supported */
765 } TIMECAPS16,*LPTIMECAPS16;
767 typedef struct {
768 UINT32 wPeriodMin;
769 UINT32 wPeriodMax;
770 } TIMECAPS32, *LPTIMECAPS32;
772 DECL_WINELIB_TYPE(TIMECAPS)
773 DECL_WINELIB_TYPE(LPTIMECAPS)
775 MMRESULT16 WINAPI timeGetSystemTime16(LPMMTIME16,UINT16);
776 MMRESULT32 WINAPI timeGetSystemTime32(LPMMTIME32,UINT32);
777 #define timeGetSystemTime WINELIB_NAME(timeGetSystemTime)
778 DWORD WINAPI timeGetTime(); /* same for win32/win16 */
779 MMRESULT16 WINAPI timeSetEvent16(UINT16,UINT16,LPTIMECALLBACK16,DWORD,UINT16);
780 MMRESULT32 WINAPI timeSetEvent32(UINT32,UINT32,LPTIMECALLBACK32,DWORD,UINT32);
781 #define timeSetEvent WINELIB_NAME(timeSetEvent)
782 MMRESULT16 WINAPI timeKillEvent16(UINT16);
783 MMRESULT32 WINAPI timeKillEvent32(UINT32);
784 #define timeKillEvent WINELIB_NAME(timeKillEvent)
785 MMRESULT16 WINAPI timeGetDevCaps16(LPTIMECAPS16,UINT16);
786 MMRESULT32 WINAPI timeGetDevCaps32(LPTIMECAPS32,UINT32);
787 #define timeGetDevCaps WINELIB_NAME(timeGetDevCaps)
788 MMRESULT16 WINAPI timeBeginPeriod16(UINT16);
789 MMRESULT32 WINAPI timeBeginPeriod32(UINT32);
790 #define timeBeginPeriod WINELIB_NAME(timeBeginPeriod)
791 MMRESULT16 WINAPI timeEndPeriod16(UINT16);
792 MMRESULT32 WINAPI timeEndPeriod32(UINT32);
793 #define timeEndPeriod WINELIB_NAME(timeEndPeriod)
795 #define JOYERR_NOERROR (0) /* no error */
796 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
797 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
798 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
800 /* JOYINFO, JOYINFOEX, MM_JOY* */
801 #define JOY_BUTTON1 0x0001
802 #define JOY_BUTTON2 0x0002
803 #define JOY_BUTTON3 0x0004
804 #define JOY_BUTTON4 0x0008
805 #define JOY_BUTTON1CHG 0x0100
806 #define JOY_BUTTON2CHG 0x0200
807 #define JOY_BUTTON3CHG 0x0400
808 #define JOY_BUTTON4CHG 0x0800
810 #define JOYSTICKID1 0
811 #define JOYSTICKID2 1
813 /* JOYCAPS.wCaps */
814 #define JOYCAPS_HASZ 0x0001
815 #define JOYCAPS_HASR 0x0002
816 #define JOYCAPS_HASU 0x0004
817 #define JOYCAPS_HASV 0x0008
818 #define JOYCAPS_HASPOV 0x0010
819 #define JOYCAPS_POV4DIR 0x0020
820 #define JOYCAPS_POVCTS 0x0040
822 /* JOYINFOEX stuff */
823 #define JOY_POVCENTERED (WORD) -1
824 #define JOY_POVFORWARD 0
825 #define JOY_POVRIGHT 9000
826 #define JOY_POVBACKWARD 18000
827 #define JOY_POVLEFT 27000
829 #define JOY_RETURNX 0x00000001
830 #define JOY_RETURNY 0x00000002
831 #define JOY_RETURNZ 0x00000004
832 #define JOY_RETURNR 0x00000008
833 #define JOY_RETURNU 0x00000010
834 #define JOY_RETURNV 0x00000020
835 #define JOY_RETURNPOV 0x00000040
836 #define JOY_RETURNBUTTONS 0x00000080
837 #define JOY_RETURNRAWDATA 0x00000100
838 #define JOY_RETURNPOVCTS 0x00000200
839 #define JOY_RETURNCENTERED 0x00000400
840 #define JOY_USEDEADZONE 0x00000800
841 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
842 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
843 JOY_RETURNPOV | JOY_RETURNBUTTONS)
844 #define JOY_CAL_READALWAYS 0x00010000
845 #define JOY_CAL_READXYONLY 0x00020000
846 #define JOY_CAL_READ3 0x00040000
847 #define JOY_CAL_READ4 0x00080000
848 #define JOY_CAL_READXONLY 0x00100000
849 #define JOY_CAL_READYONLY 0x00200000
850 #define JOY_CAL_READ5 0x00400000
851 #define JOY_CAL_READ6 0x00800000
852 #define JOY_CAL_READZONLY 0x01000000
853 #define JOY_CAL_READRONLY 0x02000000
854 #define JOY_CAL_READUONLY 0x04000000
855 #define JOY_CAL_READVONLY 0x08000000
857 typedef struct {
858 WORD wMid; /* manufacturer ID */
859 WORD wPid; /* product ID */
860 char szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
861 UINT16 wXmin; /* minimum x position value */
862 UINT16 wXmax; /* maximum x position value */
863 UINT16 wYmin; /* minimum y position value */
864 UINT16 wYmax; /* maximum y position value */
865 UINT16 wZmin; /* minimum z position value */
866 UINT16 wZmax; /* maximum z position value */
867 UINT16 wNumButtons; /* number of buttons */
868 UINT16 wPeriodMin; /* minimum message period when captured */
869 UINT16 wPeriodMax; /* maximum message period when captured */
870 /* win95,nt4 additions: */
871 UINT16 wRmin; /* minimum r position value */
872 UINT16 wRmax; /* maximum r position value */
873 UINT16 wUmin; /* minimum u (5th axis) position value */
874 UINT16 wUmax; /* maximum u (5th axis) position value */
875 UINT16 wVmin; /* minimum v (6th axis) position value */
876 UINT16 wVmax; /* maximum v (6th axis) position value */
877 UINT16 wCaps; /* joystick capabilites */
878 UINT16 wMaxAxes; /* maximum number of axes supported */
879 UINT16 wNumAxes; /* number of axes in use */
880 UINT16 wMaxButtons; /* maximum number of buttons supported */
881 CHAR szRegKey[MAXPNAMELEN]; /* registry key */
882 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME]; /* OEM VxD in use */
883 } JOYCAPS16, *LPJOYCAPS16;
885 typedef struct {
886 WORD wMid;
887 WORD wPid;
888 CHAR szPname[MAXPNAMELEN];
889 UINT32 wXmin;
890 UINT32 wXmax;
891 UINT32 wYmin;
892 UINT32 wYmax;
893 UINT32 wZmin;
894 UINT32 wZmax;
895 UINT32 wNumButtons;
896 UINT32 wPeriodMin;
897 UINT32 wPeriodMax;
898 UINT32 wRmin;
899 UINT32 wRmax;
900 UINT32 wUmin;
901 UINT32 wUmax;
902 UINT32 wVmin;
903 UINT32 wVmax;
904 UINT32 wCaps;
905 UINT32 wMaxAxes;
906 UINT32 wNumAxes;
907 UINT32 wMaxButtons;
908 CHAR szRegKey[MAXPNAMELEN];
909 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
910 } JOYCAPS32A, *LPJOYCAPS32A;
912 typedef struct {
913 WORD wMid;
914 WORD wPid;
915 WCHAR szPname[MAXPNAMELEN];
916 UINT32 wXmin;
917 UINT32 wXmax;
918 UINT32 wYmin;
919 UINT32 wYmax;
920 UINT32 wZmin;
921 UINT32 wZmax;
922 UINT32 wNumButtons;
923 UINT32 wPeriodMin;
924 UINT32 wPeriodMax;
925 UINT32 wRmin;
926 UINT32 wRmax;
927 UINT32 wUmin;
928 UINT32 wUmax;
929 UINT32 wVmin;
930 UINT32 wVmax;
931 UINT32 wCaps;
932 UINT32 wMaxAxes;
933 UINT32 wNumAxes;
934 UINT32 wMaxButtons;
935 WCHAR szRegKey[MAXPNAMELEN];
936 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
937 } JOYCAPS32W, *LPJOYCAPS32W;
938 DECL_WINELIB_TYPE_AW(JOYCAPS)
939 DECL_WINELIB_TYPE_AW(LPJOYCAPS)
941 typedef struct {
942 UINT16 wXpos; /* x position */
943 UINT16 wYpos; /* y position */
944 UINT16 wZpos; /* z position */
945 UINT16 wButtons; /* button states */
946 } JOYINFO16, *LPJOYINFO16;
948 typedef struct {
949 UINT32 wXpos;
950 UINT32 wYpos;
951 UINT32 wZpos;
952 UINT32 wButtons;
953 } JOYINFO32, *LPJOYINFO32;
955 typedef struct {
956 DWORD dwSize; /* size of structure */
957 DWORD dwFlags; /* flags to indicate what to return */
958 DWORD dwXpos; /* x position */
959 DWORD dwYpos; /* y position */
960 DWORD dwZpos; /* z position */
961 DWORD dwRpos; /* rudder/4th axis position */
962 DWORD dwUpos; /* 5th axis position */
963 DWORD dwVpos; /* 6th axis position */
964 DWORD dwButtons; /* button states */
965 DWORD dwButtonNumber; /* current button number pressed */
966 DWORD dwPOV; /* point of view state */
967 DWORD dwReserved1; /* reserved for communication between winmm & driver */
968 DWORD dwReserved2; /* reserved for future expansion */
969 } JOYINFOEX,*LPJOYINFOEX;
971 DECL_WINELIB_TYPE(JOYINFO)
972 DECL_WINELIB_TYPE(LPJOYINFO)
974 MMRESULT16 WINAPI joyGetDevCaps16 (UINT16,LPJOYCAPS16 ,UINT16);
975 MMRESULT32 WINAPI joyGetDevCaps32A(UINT32,LPJOYCAPS32A,UINT32);
976 MMRESULT32 WINAPI joyGetDevCaps32W(UINT32,LPJOYCAPS32W,UINT32);
977 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
978 UINT16 WINAPI joyGetNumDevs16(void);
979 UINT32 WINAPI joyGetNumDevs32(void);
980 #define joyGetNumDevs WINELIB_NAME(joyGetNumDevs)
981 MMRESULT16 WINAPI joyGetPos16(UINT16,LPJOYINFO16);
982 MMRESULT32 WINAPI joyGetPos32(UINT32,LPJOYINFO32);
983 #define joyGetPos WINELIB_NAME(joyGetPos)
984 MMRESULT32 WINAPI joyGetPosEx(UINT32,LPJOYINFOEX);
985 MMRESULT16 WINAPI joyGetThreshold16(UINT16,UINT16*);
986 MMRESULT32 WINAPI joyGetThreshold32(UINT32,UINT32*);
987 #define joyGetThreshold WINELIB_NAME(joyGetThreshold)
988 MMRESULT16 WINAPI joyReleaseCapture16(UINT16);
989 MMRESULT32 WINAPI joyReleaseCapture32(UINT32);
990 #define joyReleaseCapture WINELIB_NAME(joyReleaseCapture)
991 MMRESULT16 WINAPI joySetCapture16(HWND16,UINT16,UINT16,BOOL16);
992 MMRESULT32 WINAPI joySetCapture32(HWND32,UINT32,UINT32,BOOL32);
993 #define joySetCapture WINELIB_NAME(joySetCapture)
994 MMRESULT16 WINAPI joySetThreshold16(UINT16,UINT16);
995 MMRESULT32 WINAPI joySetThreshold32(UINT32,UINT32);
996 #define joySetThreshold WINELIB_NAME(joySetThreshold)
998 typedef struct {
999 WORD wMid; /* manufacturer id */
1000 WORD wPid; /* product id */
1001 MMVERSION16 vDriverVersion; /* version of the driver */
1002 CHAR szPname[MAXPNAMELEN]; /* product name */
1003 DWORD fdwSupport; /* misc. support bits */
1004 DWORD cDestinations; /* count of destinations */
1005 } MIXERCAPS16,*LPMIXERCAPS16;
1007 typedef struct {
1008 WORD wMid;
1009 WORD wPid;
1010 MMVERSION32 vDriverVersion;
1011 CHAR szPname[MAXPNAMELEN];
1012 DWORD fdwSupport;
1013 DWORD cDestinations;
1014 } MIXERCAPS32A,*LPMIXERCAPS32A;
1016 typedef struct {
1017 WORD wMid;
1018 WORD wPid;
1019 MMVERSION32 vDriverVersion;
1020 WCHAR szPname[MAXPNAMELEN];
1021 DWORD fdwSupport;
1022 DWORD cDestinations;
1023 } MIXERCAPS32W,*LPMIXERCAPS32W;
1025 DECL_WINELIB_TYPE_AW(MIXERCAPS)
1026 DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
1028 #define MIXER_SHORT_NAME_CHARS 16
1029 #define MIXER_LONG_NAME_CHARS 64
1031 /* MIXERLINE.fdwLine */
1032 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1033 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1034 #define MIXERLINE_LINEF_SOURCE 0x80000000
1036 /* MIXERLINE.dwComponentType */
1037 /* component types for destinations and sources */
1038 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1039 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1040 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1041 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1042 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1043 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1044 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1045 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1046 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1047 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1048 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1050 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1051 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1052 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1053 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1054 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1055 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1056 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1057 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1058 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1059 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1060 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1061 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1062 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1064 /* MIXERLINE.Target.dwType */
1065 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1066 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1067 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1068 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1069 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1070 #define MIXERLINE_TARGETTYPE_AUX 5
1072 typedef struct {
1073 DWORD cbStruct; /* size of MIXERLINE structure */
1074 DWORD dwDestination; /* zero based destination index */
1075 DWORD dwSource; /* zero based source index (if source) */
1076 DWORD dwLineID; /* unique line id for mixer device */
1077 DWORD fdwLine; /* state/information about line */
1078 DWORD dwUser; /* driver specific information */
1079 DWORD dwComponentType; /* component type line connects to */
1080 DWORD cChannels; /* number of channels line supports */
1081 DWORD cConnections; /* number of connections [possible] */
1082 DWORD cControls; /* number of controls at this line */
1083 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1084 CHAR szName[MIXER_LONG_NAME_CHARS];
1085 struct {
1086 DWORD dwType; /* MIXERLINE_TARGETTYPE_xxxx */
1087 DWORD dwDeviceID; /* target device ID of device type */
1088 WORD wMid; /* of target device */
1089 WORD wPid; /* " */
1090 MMVERSION16 vDriverVersion; /* " */
1091 CHAR szPname[MAXPNAMELEN]; /* " */
1092 } Target;
1093 } MIXERLINE16, *LPMIXERLINE16;
1095 typedef struct {
1096 DWORD cbStruct;
1097 DWORD dwDestination;
1098 DWORD dwSource;
1099 DWORD dwLineID;
1100 DWORD fdwLine;
1101 DWORD dwUser;
1102 DWORD dwComponentType;
1103 DWORD cChannels;
1104 DWORD cConnections;
1105 DWORD cControls;
1106 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1107 CHAR szName[MIXER_LONG_NAME_CHARS];
1108 struct {
1109 DWORD dwType;
1110 DWORD dwDeviceID;
1111 WORD wMid;
1112 WORD wPid;
1113 MMVERSION32 vDriverVersion;
1114 CHAR szPname[MAXPNAMELEN];
1115 } Target;
1116 } MIXERLINE32A, *LPMIXERLINE32A;
1118 typedef struct {
1119 DWORD cbStruct;
1120 DWORD dwDestination;
1121 DWORD dwSource;
1122 DWORD dwLineID;
1123 DWORD fdwLine;
1124 DWORD dwUser;
1125 DWORD dwComponentType;
1126 DWORD cChannels;
1127 DWORD cConnections;
1128 DWORD cControls;
1129 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1130 WCHAR szName[MIXER_LONG_NAME_CHARS];
1131 struct {
1132 DWORD dwType;
1133 DWORD dwDeviceID;
1134 WORD wMid;
1135 WORD wPid;
1136 MMVERSION32 vDriverVersion;
1137 WCHAR szPname[MAXPNAMELEN];
1138 } Target;
1139 } MIXERLINE32W, *LPMIXERLINE32W;
1141 DECL_WINELIB_TYPE_AW(MIXERLINE)
1142 DECL_WINELIB_TYPE_AW(LPMIXERLINE)
1144 /* MIXERCONTROL.fdwControl */
1145 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1146 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1147 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1149 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1150 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1151 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1152 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1153 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1154 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1155 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1156 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1157 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1158 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1160 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1162 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1163 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1165 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1167 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1168 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1170 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1171 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1173 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1174 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1175 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1176 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1177 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1178 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1179 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1181 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1182 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1183 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1184 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1185 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1186 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1187 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1188 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1189 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1190 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1191 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1192 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1193 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1194 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1195 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1196 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1197 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1198 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1199 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1200 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1201 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1202 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1203 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1204 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1205 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1206 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1207 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1208 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1209 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1210 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1211 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1214 typedef struct {
1215 DWORD cbStruct; /* size in bytes of MIXERCONTROL */
1216 DWORD dwControlID; /* unique control id for mixer device */
1217 DWORD dwControlType; /* MIXERCONTROL_CONTROLTYPE_xxx */
1218 DWORD fdwControl; /* MIXERCONTROL_CONTROLF_xxx */
1219 DWORD cMultipleItems; /* if MIXERCONTROL_CONTROLF_MULTIPLE set */
1220 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1221 CHAR szName[MIXER_LONG_NAME_CHARS];
1222 union {
1223 struct {
1224 LONG lMinimum; /* signed minimum for this control */
1225 LONG lMaximum; /* signed maximum for this control */
1226 } l;
1227 struct {
1228 DWORD dwMinimum; /* unsigned minimum for this control */
1229 DWORD dwMaximum; /* unsigned maximum for this control */
1230 } dw;
1231 DWORD dwReserved[6];
1232 } Bounds;
1233 union {
1234 DWORD cSteps; /* # of steps between min & max */
1235 DWORD cbCustomData; /* size in bytes of custom data */
1236 DWORD dwReserved[6]; /* !!! needed? we have cbStruct.... */
1237 } Metrics;
1238 } MIXERCONTROL16, *LPMIXERCONTROL16;
1240 typedef struct {
1241 DWORD cbStruct;
1242 DWORD dwControlID;
1243 DWORD dwControlType;
1244 DWORD fdwControl;
1245 DWORD cMultipleItems;
1246 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1247 CHAR szName[MIXER_LONG_NAME_CHARS];
1248 union {
1249 struct {
1250 LONG lMinimum;
1251 LONG lMaximum;
1252 } l;
1253 struct {
1254 DWORD dwMinimum;
1255 DWORD dwMaximum;
1256 } dw;
1257 DWORD dwReserved[6];
1258 } Bounds;
1259 union {
1260 DWORD cSteps;
1261 DWORD cbCustomData;
1262 DWORD dwReserved[6];
1263 } Metrics;
1264 } MIXERCONTROL32A, *LPMIXERCONTROL32A;
1266 typedef struct {
1267 DWORD cbStruct;
1268 DWORD dwControlID;
1269 DWORD dwControlType;
1270 DWORD fdwControl;
1271 DWORD cMultipleItems;
1272 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1273 WCHAR szName[MIXER_LONG_NAME_CHARS];
1274 union {
1275 struct {
1276 LONG lMinimum;
1277 LONG lMaximum;
1278 } l;
1279 struct {
1280 DWORD dwMinimum;
1281 DWORD dwMaximum;
1282 } dw;
1283 DWORD dwReserved[6];
1284 } Bounds;
1285 union {
1286 DWORD cSteps;
1287 DWORD cbCustomData;
1288 DWORD dwReserved[6];
1289 } Metrics;
1290 } MIXERCONTROL32W, *LPMIXERCONTROL32W;
1292 DECL_WINELIB_TYPE_AW(MIXERCONTROL)
1293 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
1295 typedef struct {
1296 DWORD cbStruct; /* size in bytes of MIXERLINECONTROLS */
1297 DWORD dwLineID; /* line id (from MIXERLINE.dwLineID) */
1298 union {
1299 DWORD dwControlID; /* MIXER_GETLINECONTROLSF_ONEBYID */
1300 DWORD dwControlType; /* MIXER_GETLINECONTROLSF_ONEBYTYPE */
1301 } u;
1302 DWORD cControls; /* count of controls pmxctrl points to */
1303 DWORD cbmxctrl; /* size in bytes of _one_ MIXERCONTROL */
1304 LPMIXERCONTROL16 pamxctrl;/* pointer to first MIXERCONTROL array */
1305 } MIXERLINECONTROLS16, *LPMIXERLINECONTROLS16;
1307 typedef struct {
1308 DWORD cbStruct;
1309 DWORD dwLineID;
1310 union {
1311 DWORD dwControlID;
1312 DWORD dwControlType;
1313 } u;
1314 DWORD cControls;
1315 DWORD cbmxctrl;
1316 LPMIXERCONTROL32A pamxctrl;
1317 } MIXERLINECONTROLS32A, *LPMIXERLINECONTROLS32A;
1319 typedef struct {
1320 DWORD cbStruct;
1321 DWORD dwLineID;
1322 union {
1323 DWORD dwControlID;
1324 DWORD dwControlType;
1325 } u;
1326 DWORD cControls;
1327 DWORD cbmxctrl;
1328 LPMIXERCONTROL32W pamxctrl;
1329 } MIXERLINECONTROLS32W, *LPMIXERLINECONTROLS32W;
1331 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
1332 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
1334 typedef struct {
1335 DWORD cbStruct; /* size in bytes of MIXERCONTROLDETAILS */
1336 DWORD dwControlID; /* control id to get/set details on */
1337 DWORD cChannels; /* number of channels in paDetails array */
1338 union {
1339 HWND16 hwndOwner; /* for MIXER_SETCONTROLDETAILSF_CUSTOM */
1340 DWORD cMultipleItems; /* if _MULTIPLE, the number of items per channel */
1341 } u;
1342 DWORD cbDetails; /* size of _one_ details_XX struct */
1343 LPVOID paDetails; /* pointer to array of details_XX structs */
1344 } MIXERCONTROLDETAILS16,*LPMIXERCONTROLDETAILS16;
1346 typedef struct {
1347 DWORD cbStruct;
1348 DWORD dwControlID;
1349 DWORD cChannels;
1350 union {
1351 HWND32 hwndOwner;
1352 DWORD cMultipleItems;
1353 } u;
1354 DWORD cbDetails;
1355 LPVOID paDetails;
1356 } MIXERCONTROLDETAILS32,*LPMIXERCONTROLDETAILS32;
1358 DECL_WINELIB_TYPE(MIXERCONTROLDETAILS)
1359 DECL_WINELIB_TYPE(LPMIXERCONTROLDETAILS)
1361 typedef struct {
1362 DWORD dwParam1;
1363 DWORD dwParam2;
1364 CHAR szName[MIXER_LONG_NAME_CHARS];
1365 } MIXERCONTROLDETAILS_LISTTEXT16,*LPMIXERCONTROLDETAILS_LISTTEXT16;
1367 typedef struct {
1368 DWORD dwParam1;
1369 DWORD dwParam2;
1370 CHAR szName[MIXER_LONG_NAME_CHARS];
1371 } MIXERCONTROLDETAILS_LISTTEXT32A,*LPMIXERCONTROLDETAILS_LISTTEXT32A;
1373 typedef struct {
1374 DWORD dwParam1;
1375 DWORD dwParam2;
1376 WCHAR szName[MIXER_LONG_NAME_CHARS];
1377 } MIXERCONTROLDETAILS_LISTTEXT32W,*LPMIXERCONTROLDETAILS_LISTTEXT32W;
1379 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
1380 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
1382 /* MIXER_GETCONTROLDETAILSF_VALUE */
1383 typedef struct {
1384 LONG fValue;
1385 } MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1387 typedef struct {
1388 LONG lValue;
1389 } MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1391 typedef struct {
1392 DWORD dwValue;
1393 } MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1395 /* bits passed to mixerGetLineInfo.fdwInfo */
1396 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1397 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1398 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1399 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1400 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1401 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1403 /* bitmask passed to mixerGetLineControl */
1404 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1405 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1406 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1407 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1409 /* bitmask passed to mixerGetControlDetails */
1410 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1411 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1412 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1414 /* bitmask passed to mixerSetControlDetails */
1415 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1416 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1417 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1419 UINT16 WINAPI mixerGetNumDevs16();
1420 UINT32 WINAPI mixerGetNumDevs32();
1421 #define mixerGetNumDevs WINELIB_NAME(mixerGetNumDevs)
1422 UINT16 WINAPI mixerOpen16(LPHMIXER16,UINT16,DWORD,DWORD,DWORD);
1423 UINT32 WINAPI mixerOpen32(LPHMIXER32,UINT32,DWORD,DWORD,DWORD);
1424 #define mixerOpen WINELIB_NAME(mixerOpen)
1425 UINT16 WINAPI mixerClose16(HMIXER16);
1426 UINT32 WINAPI mixerClose32(HMIXER32);
1427 #define mixerClose WINELIB_NAME(mixerClose)
1428 UINT16 WINAPI mixerMessage16(HMIXER16,UINT16,DWORD,DWORD);
1429 UINT32 WINAPI mixerMessage32(HMIXER32,UINT32,DWORD,DWORD);
1430 #define mixerMessage WINELIB_NAME(mixerMessage)
1431 UINT16 WINAPI mixerGetDevCaps16(UINT16,LPMIXERCAPS16,UINT16);
1432 UINT32 WINAPI mixerGetDevCaps32A(UINT32,LPMIXERCAPS32A,UINT32);
1433 UINT32 WINAPI mixerGetDevCaps32W(UINT32,LPMIXERCAPS32W,UINT32);
1434 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1435 UINT16 WINAPI mixerGetLineInfo16(HMIXEROBJ16,LPMIXERLINE16,DWORD);
1436 UINT32 WINAPI mixerGetLineInfo32A(HMIXEROBJ32,LPMIXERLINE32A,DWORD);
1437 UINT32 WINAPI mixerGetLineInfo32W(HMIXEROBJ32,LPMIXERLINE32W,DWORD);
1438 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1439 UINT16 WINAPI mixerGetID16(HMIXEROBJ16,LPUINT16,DWORD);
1440 UINT32 WINAPI mixerGetID32(HMIXEROBJ32,LPUINT32,DWORD);
1441 #define mixerGetID WINELIB_NAME(mixerGetID)
1442 UINT16 WINAPI mixerGetLineControls16(HMIXEROBJ16,LPMIXERLINECONTROLS16,DWORD);
1443 UINT32 WINAPI mixerGetLineControls32A(HMIXEROBJ32,LPMIXERLINECONTROLS32A,DWORD);
1444 UINT32 WINAPI mixerGetLineControls32W(HMIXEROBJ32,LPMIXERLINECONTROLS32W,DWORD);
1445 #define mixerGetLineControl WINELIB_NAME_AW(mixerGetLineControl)
1446 UINT16 WINAPI mixerGetControlDetails16(HMIXEROBJ16,LPMIXERCONTROLDETAILS16,DWORD);
1447 UINT32 WINAPI mixerGetControlDetails32A(HMIXEROBJ32,LPMIXERCONTROLDETAILS32,DWORD);
1448 UINT32 WINAPI mixerGetControlDetails32W(HMIXEROBJ32,LPMIXERCONTROLDETAILS32,DWORD);
1449 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1450 UINT16 WINAPI mixerSetControlDetails16(HMIXEROBJ16,LPMIXERCONTROLDETAILS16,DWORD);
1451 UINT32 WINAPI mixerSetControlDetails32A(HMIXEROBJ16,LPMIXERCONTROLDETAILS32,DWORD);
1452 UINT32 WINAPI mixerSetControlDetails32W(HMIXEROBJ16,LPMIXERCONTROLDETAILS32,DWORD);
1453 #define mixerSetControlDetails WINELIB_NAME_AW(mixerSetControlDetails)
1455 #define MMIOERR_BASE 256
1456 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1457 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1458 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1459 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1460 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1461 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1462 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1463 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1464 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1465 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1467 #define CFSEPCHAR '+' /* compound file name separator char. */
1469 typedef DWORD FOURCC; /* a four character code */
1470 typedef LONG (CALLBACK *LPMMIOPROC16)(LPSTR lpmmioinfo, UINT16 uMessage,
1471 LPARAM lParam1, LPARAM lParam2);
1472 typedef LONG (CALLBACK *LPMMIOPROC32)(LPSTR lpmmioinfo, UINT32 uMessage,
1473 LPARAM lParam1, LPARAM lParam2);
1474 DECL_WINELIB_TYPE(LPMMIOPROC)
1476 typedef struct {
1477 DWORD dwFlags; /* general status flags */
1478 FOURCC fccIOProc; /* pointer to I/O procedure */
1479 LPMMIOPROC16 pIOProc; /* pointer to I/O procedure */
1480 UINT16 wErrorRet; /* place for error to be returned */
1481 HTASK16 htask; /* alternate local task */
1482 /* fields maintained by MMIO functions during buffered I/O */
1483 LONG cchBuffer; /* size of I/O buffer (or 0L) */
1484 HPSTR pchBuffer; /* start of I/O buffer (or NULL) */
1485 HPSTR pchNext; /* pointer to next byte to read/write */
1486 HPSTR pchEndRead; /* pointer to last valid byte to read */
1487 HPSTR pchEndWrite; /* pointer to last byte to write */
1488 LONG lBufOffset; /* disk offset of start of buffer */
1489 /* fields maintained by I/O procedure */
1490 LONG lDiskOffset; /* disk offset of next read or write */
1491 DWORD adwInfo[3]; /* data specific to type of MMIOPROC */
1492 /* other fields maintained by MMIO */
1493 DWORD dwReserved1; /* reserved for MMIO use */
1494 DWORD dwReserved2; /* reserved for MMIO use */
1495 HMMIO16 hmmio; /* handle to open file */
1496 } MMIOINFO16, *LPMMIOINFO16;
1498 typedef struct {
1499 DWORD dwFlags;
1500 FOURCC fccIOProc;
1501 LPMMIOPROC32 pIOProc;
1502 UINT32 wErrorRet;
1503 HTASK32 htask;
1504 /* fields maintained by MMIO functions during buffered I/O */
1505 LONG cchBuffer;
1506 HPSTR pchBuffer;
1507 HPSTR pchNext;
1508 HPSTR pchEndRead;
1509 HPSTR pchEndWrite;
1510 LONG lBufOffset;
1511 /* fields maintained by I/O procedure */
1512 LONG lDiskOffset;
1513 DWORD adwInfo[3];
1514 /* other fields maintained by MMIO */
1515 DWORD dwReserved1;
1516 DWORD dwReserved2;
1517 HMMIO32 hmmio;
1518 } MMIOINFO32, *LPMMIOINFO32;
1520 typedef struct _MMCKINFO
1522 FOURCC ckid; /* chunk ID */
1523 DWORD cksize; /* chunk size */
1524 FOURCC fccType; /* form type or list type */
1525 DWORD dwDataOffset; /* offset of data portion of chunk */
1526 DWORD dwFlags; /* flags used by MMIO functions */
1527 } MMCKINFO, *LPMMCKINFO;
1529 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1530 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1532 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1533 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1534 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1535 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1536 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1537 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1539 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1541 #define MMIO_READ 0x00000000 /* open file for reading only */
1542 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1543 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1545 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1546 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1547 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1548 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1549 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1551 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1552 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1553 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1554 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1555 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1556 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1557 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1558 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1559 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1560 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1561 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1562 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1564 #define SEEK_SET 0
1565 #define SEEK_CUR 1
1566 #define SEEK_END 2
1568 #define MMIOM_READ MMIO_READ /* read */
1569 #define MMIOM_WRITE MMIO_WRITE /* write */
1570 #define MMIOM_SEEK 2 /* seek to a new position in file */
1571 #define MMIOM_OPEN 3 /* open file */
1572 #define MMIOM_CLOSE 4 /* close file */
1573 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1575 #define MMIOM_RENAME 6 /* rename specified file */
1577 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1579 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1580 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1582 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1583 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1585 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1587 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1588 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1589 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1591 LPMMIOPROC16 WINAPI mmioInstallIOProc16(FOURCC,LPMMIOPROC16,DWORD);
1592 LPMMIOPROC32 WINAPI mmioInstallIOProc32A(FOURCC,LPMMIOPROC32,DWORD);
1593 LPMMIOPROC32 WINAPI mmioInstallIOProc32W(FOURCC,LPMMIOPROC32,DWORD);
1594 #define mmioInstallIOPro WINELIB_NAME_AW(mmioInstallIOProc)
1596 FOURCC WINAPI mmioStringToFOURCC16(LPCSTR,UINT16);
1597 FOURCC WINAPI mmioStringToFOURCC32A(LPCSTR,UINT32);
1598 FOURCC WINAPI mmioStringToFOURCC32W(LPCWSTR,UINT32);
1599 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1600 HMMIO16 WINAPI mmioOpen16 (LPSTR ,MMIOINFO16*,DWORD);
1601 HMMIO32 WINAPI mmioOpen32A(LPSTR ,MMIOINFO32*,DWORD);
1602 HMMIO32 WINAPI mmioOpen32W(LPWSTR,MMIOINFO32*,DWORD);
1603 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1605 UINT16 WINAPI mmioRename(LPCSTR szFileName, LPCSTR szNewFileName,
1606 MMIOINFO16 * lpmmioinfo, DWORD dwRenameFlags);
1608 MMRESULT16 WINAPI mmioClose16(HMMIO16,UINT16);
1609 MMRESULT32 WINAPI mmioClose32(HMMIO32,UINT32);
1610 #define mmioClose WINELIB_NAME(mmioClose)
1611 LONG WINAPI mmioRead16(HMMIO16,HPSTR,LONG);
1612 LONG WINAPI mmioRead32(HMMIO32,HPSTR,LONG);
1613 #define mmioRead WINELIB_NAME(mmioRead)
1614 LONG WINAPI mmioWrite16(HMMIO16,HPCSTR,LONG);
1615 LONG WINAPI mmioWrite32(HMMIO32,HPCSTR,LONG);
1616 #define mmioWrite WINELIB_NAME(mmioWrite)
1617 LONG WINAPI mmioSeek16(HMMIO16,LONG,INT16);
1618 LONG WINAPI mmioSeek32(HMMIO32,LONG,INT32);
1619 #define mmioSeek WINELIB_NAME(mmioSeek)
1620 MMRESULT16 WINAPI mmioGetInfo16(HMMIO16,MMIOINFO16*,UINT16);
1621 MMRESULT32 WINAPI mmioGetInfo32(HMMIO32,MMIOINFO32*,UINT32);
1622 #define mmioGetInfo WINELIB_NAME(mmioGetInfo)
1623 MMRESULT16 WINAPI mmioSetInfo16(HMMIO16,const MMIOINFO16*,UINT16);
1624 MMRESULT32 WINAPI mmioSetInfo32(HMMIO32,const MMIOINFO32*,UINT32);
1625 #define mmioSetInfo WINELIB_NAME(mmioSetInfo)
1627 UINT16 WINAPI mmioSetBuffer(HMMIO16,LPSTR,LONG,UINT16);
1629 UINT16 WINAPI mmioFlush16(HMMIO16,UINT16);
1630 UINT32 WINAPI mmioFlush32(HMMIO32,UINT32);
1631 #define mmioFlush WINELIB_NAME(mmioFlush)
1633 UINT16 WINAPI mmioAdvance16(HMMIO16,MMIOINFO16*,UINT16);
1634 UINT32 WINAPI mmioAdvance32(HMMIO32,MMIOINFO32*,UINT32);
1635 #define mmioAdvance WINELIB_NAME(mmioAdvance)
1636 LONG WINAPI mmioSendMessage(HMMIO16,UINT16,LPARAM,LPARAM);
1637 UINT16 WINAPI mmioDescend(HMMIO16,MMCKINFO*,const MMCKINFO*,UINT16);
1638 UINT16 WINAPI mmioAscend16(HMMIO16,MMCKINFO*,UINT16);
1639 UINT32 WINAPI mmioAscend32(HMMIO32,MMCKINFO*,UINT32);
1640 #define mmioAscend WINELIB_NAME(mmioAscend)
1641 UINT16 WINAPI mmioCreateChunk(HMMIO16,MMCKINFO*,UINT16);
1643 typedef UINT16 (CALLBACK *YIELDPROC)(UINT16,DWORD);
1645 DWORD WINAPI mciSendCommand (UINT16,UINT16,DWORD,DWORD);
1646 DWORD WINAPI mciSendString (LPCSTR,LPSTR,UINT16,HWND16);
1647 UINT16 WINAPI mciGetDeviceID(LPCSTR);
1648 UINT16 WINAPI mciGetDeviceIDFromElementID(DWORD,LPCSTR);
1649 BOOL16 WINAPI mciGetErrorString16 (DWORD,LPSTR,UINT16);
1650 BOOL32 WINAPI mciGetErrorString32A(DWORD,LPSTR,UINT32);
1651 BOOL32 WINAPI mciGetErrorString32W(DWORD,LPWSTR,UINT32);
1652 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1653 BOOL16 WINAPI mciSetYieldProc (UINT16,YIELDPROC,DWORD);
1655 HTASK16 WINAPI mciGetCreatorTask(UINT16);
1656 YIELDPROC WINAPI mciGetYieldProc(UINT16,DWORD*);
1658 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1659 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1660 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1661 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1662 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1663 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1664 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1665 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1666 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1667 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1668 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1669 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1670 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1671 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1672 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1673 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1674 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1675 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1676 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1677 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1678 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1679 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1680 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1681 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1682 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1683 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1684 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1685 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1686 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1687 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1688 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1689 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1690 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1691 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1692 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1693 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1694 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1695 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1696 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1697 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1698 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1699 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1700 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1701 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1702 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1703 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1704 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1705 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1706 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1707 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1708 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1709 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1711 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1712 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1713 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1714 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1715 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1716 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1717 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1718 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1719 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1720 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1722 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1723 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1724 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1725 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1726 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1727 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1728 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1729 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1731 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1732 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1733 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1734 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1736 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1738 #define MCI_OPEN_DRIVER 0x0801
1739 #define MCI_CLOSE_DRIVER 0x0802
1740 #define MCI_OPEN 0x0803
1741 #define MCI_CLOSE 0x0804
1742 #define MCI_ESCAPE 0x0805
1743 #define MCI_PLAY 0x0806
1744 #define MCI_SEEK 0x0807
1745 #define MCI_STOP 0x0808
1746 #define MCI_PAUSE 0x0809
1747 #define MCI_INFO 0x080A
1748 #define MCI_GETDEVCAPS 0x080B
1749 #define MCI_SPIN 0x080C
1750 #define MCI_SET 0x080D
1751 #define MCI_STEP 0x080E
1752 #define MCI_RECORD 0x080F
1753 #define MCI_SYSINFO 0x0810
1754 #define MCI_BREAK 0x0811
1755 #define MCI_SOUND 0x0812
1756 #define MCI_SAVE 0x0813
1757 #define MCI_STATUS 0x0814
1758 #define MCI_CUE 0x0830
1759 #define MCI_REALIZE 0x0840
1760 #define MCI_WINDOW 0x0841
1761 #define MCI_PUT 0x0842
1762 #define MCI_WHERE 0x0843
1763 #define MCI_FREEZE 0x0844
1764 #define MCI_UNFREEZE 0x0845
1765 #define MCI_LOAD 0x0850
1766 #define MCI_CUT 0x0851
1767 #define MCI_COPY 0x0852
1768 #define MCI_PASTE 0x0853
1769 #define MCI_UPDATE 0x0854
1770 #define MCI_RESUME 0x0855
1771 #define MCI_DELETE 0x0856
1773 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1775 #define MCI_ALL_DEVICE_ID 0xFFFF
1777 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1778 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1779 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1780 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1781 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1782 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1783 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1784 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1785 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1786 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1787 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1789 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1790 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1792 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1793 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1794 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1795 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1796 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1797 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1798 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1800 #define MCI_FORMAT_MILLISECONDS 0
1801 #define MCI_FORMAT_HMS 1
1802 #define MCI_FORMAT_MSF 2
1803 #define MCI_FORMAT_FRAMES 3
1804 #define MCI_FORMAT_SMPTE_24 4
1805 #define MCI_FORMAT_SMPTE_25 5
1806 #define MCI_FORMAT_SMPTE_30 6
1807 #define MCI_FORMAT_SMPTE_30DROP 7
1808 #define MCI_FORMAT_BYTES 8
1809 #define MCI_FORMAT_SAMPLES 9
1810 #define MCI_FORMAT_TMSF 10
1812 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1813 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1814 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1816 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1817 ((WORD)(s)<<8)) | \
1818 (((DWORD)(BYTE)(f))<<16)))
1820 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1821 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1822 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1823 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1825 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1826 ((WORD)(m)<<8)) | \
1827 (((DWORD)(BYTE)(s) | \
1828 ((WORD)(f)<<8))<<16)))
1830 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1831 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1832 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1834 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1835 ((WORD)(m)<<8)) | \
1836 (((DWORD)(BYTE)(s))<<16)))
1838 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1839 #define MCI_NOTIFY_SUPERSEDED 0x0002
1840 #define MCI_NOTIFY_ABORTED 0x0004
1841 #define MCI_NOTIFY_FAILURE 0x0008
1843 #define MCI_NOTIFY 0x00000001L
1844 #define MCI_WAIT 0x00000002L
1845 #define MCI_FROM 0x00000004L
1846 #define MCI_TO 0x00000008L
1847 #define MCI_TRACK 0x00000010L
1849 #define MCI_OPEN_SHAREABLE 0x00000100L
1850 #define MCI_OPEN_ELEMENT 0x00000200L
1851 #define MCI_OPEN_ALIAS 0x00000400L
1852 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1853 #define MCI_OPEN_TYPE_ID 0x00001000L
1854 #define MCI_OPEN_TYPE 0x00002000L
1856 #define MCI_SEEK_TO_START 0x00000100L
1857 #define MCI_SEEK_TO_END 0x00000200L
1859 #define MCI_STATUS_ITEM 0x00000100L
1860 #define MCI_STATUS_START 0x00000200L
1862 #define MCI_STATUS_LENGTH 0x00000001L
1863 #define MCI_STATUS_POSITION 0x00000002L
1864 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1865 #define MCI_STATUS_MODE 0x00000004L
1866 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1867 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1868 #define MCI_STATUS_READY 0x00000007L
1869 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1871 #define MCI_INFO_PRODUCT 0x00000100L
1872 #define MCI_INFO_FILE 0x00000200L
1874 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1876 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1877 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1878 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1879 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1880 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1881 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1882 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1883 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1884 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1886 #define MCI_SYSINFO_QUANTITY 0x00000100L
1887 #define MCI_SYSINFO_OPEN 0x00000200L
1888 #define MCI_SYSINFO_NAME 0x00000400L
1889 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1891 #define MCI_SET_DOOR_OPEN 0x00000100L
1892 #define MCI_SET_DOOR_CLOSED 0x00000200L
1893 #define MCI_SET_TIME_FORMAT 0x00000400L
1894 #define MCI_SET_AUDIO 0x00000800L
1895 #define MCI_SET_VIDEO 0x00001000L
1896 #define MCI_SET_ON 0x00002000L
1897 #define MCI_SET_OFF 0x00004000L
1899 #define MCI_SET_AUDIO_ALL 0x00000000L
1900 #define MCI_SET_AUDIO_LEFT 0x00000001L
1901 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1903 #define MCI_BREAK_KEY 0x00000100L
1904 #define MCI_BREAK_HWND 0x00000200L
1905 #define MCI_BREAK_OFF 0x00000400L
1907 #define MCI_RECORD_INSERT 0x00000100L
1908 #define MCI_RECORD_OVERWRITE 0x00000200L
1910 #define MCI_SOUND_NAME 0x00000100L
1912 #define MCI_SAVE_FILE 0x00000100L
1914 #define MCI_LOAD_FILE 0x00000100L
1916 typedef struct {
1917 DWORD dwCallback;
1918 } MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
1920 typedef struct {
1921 DWORD dwCallback;
1922 WORD wDeviceID;
1923 WORD wReserved0;
1924 LPSTR lpstrDeviceType;
1925 LPSTR lpstrElementName;
1926 LPSTR lpstrAlias;
1927 } MCI_OPEN_PARMS16, *LPMCI_OPEN_PARMS16;
1929 typedef struct {
1930 DWORD dwCallback;
1931 MCIDEVICEID32 wDeviceID;
1932 LPSTR lpstrDeviceType;
1933 LPSTR lpstrElementName;
1934 LPSTR lpstrAlias;
1935 } MCI_OPEN_PARMS32A, *LPMCI_OPEN_PARMS32A;
1937 typedef struct {
1938 DWORD dwCallback;
1939 MCIDEVICEID32 wDeviceID;
1940 LPWSTR lpstrDeviceType;
1941 LPWSTR lpstrElementName;
1942 LPWSTR lpstrAlias;
1943 } MCI_OPEN_PARMS32W, *LPMCI_OPEN_PARMS32W;
1945 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
1946 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
1948 typedef struct {
1949 DWORD dwCallback;
1950 DWORD dwFrom;
1951 DWORD dwTo;
1952 } MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
1954 typedef struct {
1955 DWORD dwCallback;
1956 DWORD dwTo;
1957 } MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
1959 typedef struct {
1960 DWORD dwCallback;
1961 DWORD dwReturn;
1962 DWORD dwItem;
1963 DWORD dwTrack;
1964 } MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
1966 typedef struct {
1967 DWORD dwCallback;
1968 LPSTR lpstrReturn;
1969 DWORD dwRetSize;
1970 } MCI_INFO_PARMS16, *LPMCI_INFO_PARMS16;
1972 typedef struct {
1973 DWORD dwCallback;
1974 LPSTR lpstrReturn;
1975 DWORD dwRetSize;
1976 } MCI_INFO_PARMS32A, *LPMCI_INFO_PARMS32A;
1978 typedef struct {
1979 DWORD dwCallback;
1980 LPSTR lpstrReturn;
1981 DWORD dwRetSize;
1982 } MCI_INFO_PARMS32W, *LPMCI_INFO_PARMS32W;
1984 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
1985 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
1987 typedef struct {
1988 DWORD dwCallback;
1989 DWORD dwReturn;
1990 DWORD dwItem;
1991 } MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
1993 typedef struct {
1994 DWORD dwCallback;
1995 LPSTR lpstrReturn;
1996 DWORD dwRetSize;
1997 DWORD dwNumber;
1998 WORD wDeviceType;
1999 WORD wReserved0;
2000 } MCI_SYSINFO_PARMS16, *LPMCI_SYSINFO_PARMS16;
2002 typedef struct {
2003 DWORD dwCallback;
2004 LPSTR lpstrReturn;
2005 DWORD dwRetSize;
2006 DWORD dwNumber;
2007 UINT32 wDeviceType;
2008 } MCI_SYSINFO_PARMS32A, *LPMCI_SYSINFO_PARMS32A;
2010 typedef struct {
2011 DWORD dwCallback;
2012 LPWSTR lpstrReturn;
2013 DWORD dwRetSize;
2014 DWORD dwNumber;
2015 UINT32 wDeviceType;
2016 } MCI_SYSINFO_PARMS32W, *LPMCI_SYSINFO_PARMS32W;
2018 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
2019 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
2021 typedef struct {
2022 DWORD dwCallback;
2023 DWORD dwTimeFormat;
2024 DWORD dwAudio;
2025 } MCI_SET_PARMS, *LPMCI_SET_PARMS;
2027 typedef struct {
2028 DWORD dwCallback;
2029 UINT16 nVirtKey;
2030 WORD wReserved0;
2031 HWND16 hwndBreak;
2032 WORD wReserved1;
2033 } MCI_BREAK_PARMS16, *LPMCI_BREAK_PARMS16;
2035 typedef struct {
2036 DWORD dwCallback;
2037 INT32 nVirtKey;
2038 HWND32 hwndBreak;
2039 } MCI_BREAK_PARMS32, *LPMCI_BREAK_PARMS32;
2041 DECL_WINELIB_TYPE(MCI_BREAK_PARMS)
2042 DECL_WINELIB_TYPE(LPMCI_BREAK_PARMS)
2044 typedef struct {
2045 DWORD dwCallback;
2046 LPCSTR lpstrSoundName;
2047 } MCI_SOUND_PARMS, *LPMCI_SOUND_PARMS;
2049 typedef struct {
2050 DWORD dwCallback;
2051 LPCSTR lpfilename;
2052 } MCI_SAVE_PARMS, *LPMCI_SAVE_PARMS;
2054 typedef struct {
2055 DWORD dwCallback;
2056 LPCSTR lpfilename;
2057 } MCI_LOAD_PARMS16, *LPMCI_LOAD_PARMS16;
2059 typedef struct {
2060 DWORD dwCallback;
2061 LPCSTR lpfilename;
2062 } MCI_LOAD_PARMS32A, *LPMCI_LOAD_PARMS32A;
2064 typedef struct {
2065 DWORD dwCallback;
2066 LPCWSTR lpfilename;
2067 } MCI_LOAD_PARMS32W, *LPMCI_LOAD_PARMS32W;
2069 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
2070 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
2072 typedef struct {
2073 DWORD dwCallback;
2074 DWORD dwFrom;
2075 DWORD dwTo;
2076 } MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
2078 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2080 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2081 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2082 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2084 #define MCI_VD_FORMAT_TRACK 0x4001
2086 #define MCI_VD_PLAY_REVERSE 0x00010000L
2087 #define MCI_VD_PLAY_FAST 0x00020000L
2088 #define MCI_VD_PLAY_SPEED 0x00040000L
2089 #define MCI_VD_PLAY_SCAN 0x00080000L
2090 #define MCI_VD_PLAY_SLOW 0x00100000L
2092 #define MCI_VD_SEEK_REVERSE 0x00010000L
2094 #define MCI_VD_STATUS_SPEED 0x00004002L
2095 #define MCI_VD_STATUS_FORWARD 0x00004003L
2096 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2097 #define MCI_VD_STATUS_SIDE 0x00004005L
2098 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2100 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2101 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2103 #define MCI_VD_SPIN_UP 0x00010000L
2104 #define MCI_VD_SPIN_DOWN 0x00020000L
2106 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2107 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2108 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2109 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2111 #define MCI_VD_STEP_FRAMES 0x00010000L
2112 #define MCI_VD_STEP_REVERSE 0x00020000L
2114 #define MCI_VD_ESCAPE_STRING 0x00000100L
2116 typedef struct {
2117 DWORD dwCallback;
2118 DWORD dwFrom;
2119 DWORD dwTo;
2120 DWORD dwSpeed;
2121 } MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
2123 typedef struct {
2124 DWORD dwCallback;
2125 DWORD dwFrames;
2126 } MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
2128 typedef struct {
2129 DWORD dwCallback;
2130 LPCSTR lpstrCommand;
2131 } MCI_VD_ESCAPE_PARMS16, *LPMCI_VD_ESCAPE_PARMS16;
2133 typedef struct {
2134 DWORD dwCallback;
2135 LPCSTR lpstrCommand;
2136 } MCI_VD_ESCAPE_PARMS32A, *LPMCI_VD_ESCAPE_PARMS32A;
2138 typedef struct {
2139 DWORD dwCallback;
2140 LPCWSTR lpstrCommand;
2141 } MCI_VD_ESCAPE_PARMS32W, *LPMCI_VD_ESCAPE_PARMS32W;
2143 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
2144 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
2146 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
2148 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
2149 #define MCI_WAVE_SET_CHANNELS 0x00020000L
2150 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2151 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2152 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2153 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2155 #define MCI_WAVE_INPUT 0x00400000L
2156 #define MCI_WAVE_OUTPUT 0x00800000L
2158 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2159 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2160 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2161 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2162 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2163 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2164 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
2166 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
2167 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2169 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2170 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2172 typedef struct {
2173 DWORD dwCallback;
2174 MCIDEVICEID16 wDeviceID;
2175 WORD wReserved0;
2176 SEGPTR lpstrDeviceType;
2177 SEGPTR lpstrElementName;
2178 SEGPTR lpstrAlias;
2179 DWORD dwBufferSeconds;
2180 } MCI_WAVE_OPEN_PARMS16, *LPMCI_WAVE_OPEN_PARMS16;
2182 typedef struct {
2183 DWORD dwCallback;
2184 MCIDEVICEID32 wDeviceID;
2185 LPCSTR lpstrDeviceType;
2186 LPCSTR lpstrElementName;
2187 LPCSTR lpstrAlias;
2188 DWORD dwBufferSeconds;
2189 } MCI_WAVE_OPEN_PARMS32A, *LPMCI_WAVE_OPEN_PARMS32A;
2191 typedef struct {
2192 DWORD dwCallback;
2193 MCIDEVICEID32 wDeviceID;
2194 LPCWSTR lpstrDeviceType;
2195 LPCWSTR lpstrElementName;
2196 LPCWSTR lpstrAlias;
2197 DWORD dwBufferSeconds;
2198 } MCI_WAVE_OPEN_PARMS32W, *LPMCI_WAVE_OPEN_PARMS32W;
2200 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
2201 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
2203 typedef struct {
2204 DWORD dwCallback;
2205 DWORD dwFrom;
2206 DWORD dwTo;
2207 } MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
2209 typedef struct {
2210 DWORD dwCallback;
2211 DWORD dwTimeFormat;
2212 DWORD dwAudio;
2213 UINT16 wInput;
2214 UINT16 wReserved0;
2215 UINT16 wOutput;
2216 UINT16 wReserved1;
2217 UINT16 wFormatTag;
2218 UINT16 wReserved2;
2219 UINT16 nChannels;
2220 UINT16 wReserved3;
2221 DWORD nSamplesPerSec;
2222 DWORD nAvgBytesPerSec;
2223 UINT16 nBlockAlign;
2224 UINT16 wReserved4;
2225 UINT16 wBitsPerSample;
2226 UINT16 wReserved5;
2227 } MCI_WAVE_SET_PARMS16, * LPMCI_WAVE_SET_PARMS16;
2229 typedef struct {
2230 DWORD dwCallback;
2231 DWORD dwTimeFormat;
2232 DWORD dwAudio;
2233 UINT32 wInput;
2234 UINT32 wOutput;
2235 UINT32 wFormatTag;
2236 UINT32 nChannels;
2237 DWORD nSamplesPerSec;
2238 DWORD nAvgBytesPerSec;
2239 UINT32 nBlockAlign;
2240 UINT32 wBitsPerSample;
2241 } MCI_WAVE_SET_PARMS32, * LPMCI_WAVE_SET_PARMS32;
2243 DECL_WINELIB_TYPE(MCI_WAVE_SET_PARMS)
2244 DECL_WINELIB_TYPE(LPMCI_WAVE_SET_PARMS)
2246 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2247 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2248 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2249 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2250 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2252 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2253 #define MCI_SEQ_FILE 0x4002
2254 #define MCI_SEQ_MIDI 0x4003
2255 #define MCI_SEQ_SMPTE 0x4004
2256 #define MCI_SEQ_NONE 65533
2258 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
2259 #define MCI_SEQ_STATUS_PORT 0x00004003L
2260 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
2261 #define MCI_SEQ_STATUS_MASTER 0x00004008L
2262 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
2263 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2265 #define MCI_SEQ_SET_TEMPO 0x00010000L
2266 #define MCI_SEQ_SET_PORT 0x00020000L
2267 #define MCI_SEQ_SET_SLAVE 0x00040000L
2268 #define MCI_SEQ_SET_MASTER 0x00080000L
2269 #define MCI_SEQ_SET_OFFSET 0x01000000L
2271 typedef struct {
2272 DWORD dwCallback;
2273 DWORD dwTimeFormat;
2274 DWORD dwAudio;
2275 DWORD dwTempo;
2276 DWORD dwPort;
2277 DWORD dwSlave;
2278 DWORD dwMaster;
2279 DWORD dwOffset;
2280 } MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
2282 #define MCI_ANIM_OPEN_WS 0x00010000L
2283 #define MCI_ANIM_OPEN_PARENT 0x00020000L
2284 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2286 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2287 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2288 #define MCI_ANIM_PLAY_FAST 0x00040000L
2289 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2290 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2292 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2293 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2295 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2296 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2297 #define MCI_ANIM_STATUS_HWND 0x00004003L
2298 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2299 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2301 #define MCI_ANIM_INFO_TEXT 0x00010000L
2303 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2304 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2305 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2306 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2307 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2308 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2309 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2311 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2312 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2314 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2315 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2316 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2317 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2318 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2320 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2322 #define MCI_ANIM_RECT 0x00010000L
2323 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2324 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2326 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2327 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2329 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2331 typedef struct {
2332 DWORD dwCallback;
2333 UINT16 wDeviceID;
2334 UINT16 wReserved0;
2335 SEGPTR lpstrDeviceType;
2336 SEGPTR lpstrElementName;
2337 SEGPTR lpstrAlias;
2338 DWORD dwStyle;
2339 HWND16 hWndParent;
2340 UINT16 wReserved1;
2341 } MCI_ANIM_OPEN_PARMS16, *LPMCI_ANIM_OPEN_PARMS16;
2343 typedef struct {
2344 DWORD dwCallback;
2345 MCIDEVICEID32 wDeviceID;
2346 LPCSTR lpstrDeviceType;
2347 LPCSTR lpstrElementName;
2348 LPCSTR lpstrAlias;
2349 DWORD dwStyle;
2350 HWND32 hWndParent;
2351 } MCI_ANIM_OPEN_PARMS32A, *LPMCI_ANIM_OPEN_PARMS32A;
2353 typedef struct {
2354 DWORD dwCallback;
2355 MCIDEVICEID32 wDeviceID;
2356 LPCSTR lpstrDeviceType;
2357 LPCSTR lpstrElementName;
2358 LPCSTR lpstrAlias;
2359 DWORD dwStyle;
2360 HWND32 hWndParent;
2361 } MCI_ANIM_OPEN_PARMS32W, *LPMCI_ANIM_OPEN_PARMS32W;
2363 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
2364 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
2366 typedef struct {
2367 DWORD dwCallback;
2368 DWORD dwFrom;
2369 DWORD dwTo;
2370 DWORD dwSpeed;
2371 } MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
2373 typedef struct {
2374 DWORD dwCallback;
2375 DWORD dwFrames;
2376 } MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
2378 typedef struct {
2379 DWORD dwCallback;
2380 HWND16 hWnd;
2381 WORD wReserved1;
2382 WORD nCmdShow;
2383 WORD wReserved2;
2384 LPCSTR lpstrText;
2385 } MCI_ANIM_WINDOW_PARMS16, *LPMCI_ANIM_WINDOW_PARMS16;
2387 typedef struct {
2388 DWORD dwCallback;
2389 HWND32 hWnd;
2390 UINT32 nCmdShow;
2391 LPCSTR lpstrText;
2392 } MCI_ANIM_WINDOW_PARMS32A, *LPMCI_ANIM_WINDOW_PARMS32A;
2394 typedef struct {
2395 DWORD dwCallback;
2396 HWND32 hWnd;
2397 UINT32 nCmdShow;
2398 LPCWSTR lpstrText;
2399 } MCI_ANIM_WINDOW_PARMS32W, *LPMCI_ANIM_WINDOW_PARMS32W;
2401 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
2402 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
2404 typedef struct {
2405 DWORD dwCallback;
2406 #ifdef MCI_USE_OFFEXT
2407 POINT16 ptOffset;
2408 POINT16 ptExtent;
2409 #else /* ifdef MCI_USE_OFFEXT */
2410 RECT16 rc;
2411 #endif /* ifdef MCI_USE_OFFEXT */
2412 } MCI_ANIM_RECT_PARMS16, *LPMCI_ANIM_RECT_PARMS16;
2414 typedef struct {
2415 DWORD dwCallback;
2416 #ifdef MCI_USE_OFFEXT
2417 POINT32 ptOffset;
2418 POINT32 ptExtent;
2419 #else /* ifdef MCI_USE_OFFEXT */
2420 RECT32 rc;
2421 #endif /* ifdef MCI_USE_OFFEXT */
2422 } MCI_ANIM_RECT_PARMS32, *LPMCI_ANIM_RECT_PARMS32;
2424 DECL_WINELIB_TYPE(MCI_ANIM_RECT_PARMS)
2425 DECL_WINELIB_TYPE(LPMCI_ANIM_RECT_PARMS)
2427 typedef struct {
2428 DWORD dwCallback;
2429 RECT16 rc;
2430 HDC16 hDC;
2431 } MCI_ANIM_UPDATE_PARMS16, *LPMCI_ANIM_UPDATE_PARMS16;
2433 typedef struct {
2434 DWORD dwCallback;
2435 RECT32 rc;
2436 HDC32 hDC;
2437 } MCI_ANIM_UPDATE_PARMS32, *LPMCI_ANIM_UPDATE_PARMS32;
2439 DECL_WINELIB_TYPE(MCI_ANIM_UPDATE_PARMS)
2440 DECL_WINELIB_TYPE(LPMCI_ANIM_UPDATE_PARMS)
2442 #define MCI_OVLY_OPEN_WS 0x00010000L
2443 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2445 #define MCI_OVLY_STATUS_HWND 0x00004001L
2446 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2448 #define MCI_OVLY_INFO_TEXT 0x00010000L
2450 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2451 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2452 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2454 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2455 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2456 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2457 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2458 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2460 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2462 #define MCI_OVLY_RECT 0x00010000L
2463 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2464 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2465 #define MCI_OVLY_PUT_FRAME 0x00080000L
2466 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2468 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2469 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2470 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2471 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2473 typedef struct {
2474 DWORD dwCallback;
2475 MCIDEVICEID16 wDeviceID;
2476 WORD wReserved0;
2477 LPCSTR lpstrDeviceType;
2478 LPCSTR lpstrElementName;
2479 LPCSTR lpstrAlias;
2480 DWORD dwStyle;
2481 HWND16 hWndParent;
2482 WORD wReserved1;
2483 } MCI_OVLY_OPEN_PARMS16, *LPMCI_OVLY_OPEN_PARMS16;
2485 typedef struct {
2486 DWORD dwCallback;
2487 MCIDEVICEID32 wDeviceID;
2488 LPCSTR lpstrDeviceType;
2489 LPCSTR lpstrElementName;
2490 LPCSTR lpstrAlias;
2491 DWORD dwStyle;
2492 HWND32 hWndParent;
2493 } MCI_OVLY_OPEN_PARMS32A, *LPMCI_OVLY_OPEN_PARMS32A;
2495 typedef struct {
2496 DWORD dwCallback;
2497 MCIDEVICEID32 wDeviceID;
2498 LPCWSTR lpstrDeviceType;
2499 LPCWSTR lpstrElementName;
2500 LPCWSTR lpstrAlias;
2501 DWORD dwStyle;
2502 HWND32 hWndParent;
2503 } MCI_OVLY_OPEN_PARMS32W, *LPMCI_OVLY_OPEN_PARMS32W;
2505 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
2506 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
2508 typedef struct {
2509 DWORD dwCallback;
2510 HWND16 hWnd;
2511 WORD wReserved1;
2512 UINT16 nCmdShow;
2513 WORD wReserved2;
2514 LPCSTR lpstrText;
2515 } MCI_OVLY_WINDOW_PARMS16, *LPMCI_OVLY_WINDOW_PARMS16;
2517 typedef struct {
2518 DWORD dwCallback;
2519 HWND32 hWnd;
2520 UINT32 nCmdShow;
2521 LPCSTR lpstrText;
2522 } MCI_OVLY_WINDOW_PARMS32A, *LPMCI_OVLY_WINDOW_PARMS32A;
2524 typedef struct {
2525 DWORD dwCallback;
2526 HWND32 hWnd;
2527 UINT32 nCmdShow;
2528 LPCWSTR lpstrText;
2529 } MCI_OVLY_WINDOW_PARMS32W, *LPMCI_OVLY_WINDOW_PARMS32W;
2531 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
2532 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
2534 typedef struct {
2535 DWORD dwCallback;
2536 #ifdef MCI_USE_OFFEXT
2537 POINT16 ptOffset;
2538 POINT16 ptExtent;
2539 #else /* ifdef MCI_USE_OFFEXT */
2540 RECT16 rc;
2541 #endif /* ifdef MCI_USE_OFFEXT */
2542 } MCI_OVLY_RECT_PARMS16, *LPMCI_OVLY_RECT_PARMS16;
2544 typedef struct {
2545 DWORD dwCallback;
2546 #ifdef MCI_USE_OFFEXT
2547 POINT32 ptOffset;
2548 POINT32 ptExtent;
2549 #else /* ifdef MCI_USE_OFFEXT */
2550 RECT32 rc;
2551 #endif /* ifdef MCI_USE_OFFEXT */
2552 } MCI_OVLY_RECT_PARMS32, *LPMCI_OVLY_RECT_PARMS32;
2554 DECL_WINELIB_TYPE(MCI_OVLY_RECT_PARMS)
2555 DECL_WINELIB_TYPE(LPMCI_OVLY_RECT_PARMS)
2557 typedef struct {
2558 DWORD dwCallback;
2559 LPCSTR lpfilename;
2560 RECT16 rc;
2561 } MCI_OVLY_SAVE_PARMS16, *LPMCI_OVLY_SAVE_PARMS16;
2563 typedef struct {
2564 DWORD dwCallback;
2565 LPCSTR lpfilename;
2566 RECT32 rc;
2567 } MCI_OVLY_SAVE_PARMS32A, *LPMCI_OVLY_SAVE_PARMS32A;
2569 typedef struct {
2570 DWORD dwCallback;
2571 LPCWSTR lpfilename;
2572 RECT32 rc;
2573 } MCI_OVLY_SAVE_PARMS32W, *LPMCI_OVLY_SAVE_PARMS32W;
2575 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
2576 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
2578 typedef struct {
2579 DWORD dwCallback;
2580 LPCSTR lpfilename;
2581 RECT16 rc;
2582 } MCI_OVLY_LOAD_PARMS16, *LPMCI_OVLY_LOAD_PARMS16;
2584 typedef struct {
2585 DWORD dwCallback;
2586 LPCSTR lpfilename;
2587 RECT32 rc;
2588 } MCI_OVLY_LOAD_PARMS32A, *LPMCI_OVLY_LOAD_PARMS32A;
2590 typedef struct {
2591 DWORD dwCallback;
2592 LPCWSTR lpfilename;
2593 RECT32 rc;
2594 } MCI_OVLY_LOAD_PARMS32W, *LPMCI_OVLY_LOAD_PARMS32W;
2596 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
2597 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
2599 /**************************************************************
2600 * Linux MMSYSTEM Internals & Sample Audio Drivers
2603 #define DRVM_INIT 100
2604 #define WODM_INIT DRVM_INIT
2605 #define WIDM_INIT DRVM_INIT
2606 #define MODM_INIT DRVM_INIT
2607 #define MIDM_INIT DRVM_INIT
2608 #define AUXM_INIT DRVM_INIT
2610 #define WODM_GETNUMDEVS 3
2611 #define WODM_GETDEVCAPS 4
2612 #define WODM_OPEN 5
2613 #define WODM_CLOSE 6
2614 #define WODM_PREPARE 7
2615 #define WODM_UNPREPARE 8
2616 #define WODM_WRITE 9
2617 #define WODM_PAUSE 10
2618 #define WODM_RESTART 11
2619 #define WODM_RESET 12
2620 #define WODM_GETPOS 13
2621 #define WODM_GETPITCH 14
2622 #define WODM_SETPITCH 15
2623 #define WODM_GETVOLUME 16
2624 #define WODM_SETVOLUME 17
2625 #define WODM_GETPLAYBACKRATE 18
2626 #define WODM_SETPLAYBACKRATE 19
2627 #define WODM_BREAKLOOP 20
2628 #define WODM_STOP 21
2630 #define WIDM_GETNUMDEVS 50
2631 #define WIDM_GETDEVCAPS 51
2632 #define WIDM_OPEN 52
2633 #define WIDM_CLOSE 53
2634 #define WIDM_PREPARE 54
2635 #define WIDM_UNPREPARE 55
2636 #define WIDM_ADDBUFFER 56
2637 #define WIDM_START 57
2638 #define WIDM_STOP 58
2639 #define WIDM_RESET 59
2640 #define WIDM_GETPOS 60
2641 #define WIDM_PAUSE 61
2643 #define MODM_GETNUMDEVS 1
2644 #define MODM_GETDEVCAPS 2
2645 #define MODM_OPEN 3
2646 #define MODM_CLOSE 4
2647 #define MODM_PREPARE 5
2648 #define MODM_UNPREPARE 6
2649 #define MODM_DATA 7
2650 #define MODM_LONGDATA 8
2651 #define MODM_RESET 9
2652 #define MODM_GETVOLUME 10
2653 #define MODM_SETVOLUME 11
2654 #define MODM_CACHEPATCHES 12
2655 #define MODM_CACHEDRUMPATCHES 13
2657 #define MIDM_GETNUMDEVS 53
2658 #define MIDM_GETDEVCAPS 54
2659 #define MIDM_OPEN 55
2660 #define MIDM_CLOSE 56
2661 #define MIDM_PREPARE 57
2662 #define MIDM_UNPREPARE 58
2663 #define MIDM_ADDBUFFER 59
2664 #define MIDM_START 60
2665 #define MIDM_STOP 61
2666 #define MIDM_RESET 62
2668 #define AUXDM_GETNUMDEVS 3
2669 #define AUXDM_GETDEVCAPS 4
2670 #define AUXDM_GETVOLUME 5
2671 #define AUXDM_SETVOLUME 6
2673 #define MXDM_GETNUMDEVS 1
2674 #define MXDM_GETDEVCAPS 2
2675 #define MXDM_OPEN 3
2676 #define MXDM_CLOSE 4
2677 #define MXDM_GETLINEINFO 5
2678 #define MXDM_GETLINECONTROLS 6
2679 #define MXDM_GETCONTROLDETAILS 7
2680 #define MXDM_SETCONTROLDETAILS 8
2682 #define MCI_MAX_DEVICE_TYPE_LENGTH 80
2684 #define MCI_FALSE (MCI_STRING_OFFSET + 19)
2685 #define MCI_TRUE (MCI_STRING_OFFSET + 20)
2687 #define MCI_FORMAT_RETURN_BASE MCI_FORMAT_MILLISECONDS_S
2688 #define MCI_FORMAT_MILLISECONDS_S (MCI_STRING_OFFSET + 21)
2689 #define MCI_FORMAT_HMS_S (MCI_STRING_OFFSET + 22)
2690 #define MCI_FORMAT_MSF_S (MCI_STRING_OFFSET + 23)
2691 #define MCI_FORMAT_FRAMES_S (MCI_STRING_OFFSET + 24)
2692 #define MCI_FORMAT_SMPTE_24_S (MCI_STRING_OFFSET + 25)
2693 #define MCI_FORMAT_SMPTE_25_S (MCI_STRING_OFFSET + 26)
2694 #define MCI_FORMAT_SMPTE_30_S (MCI_STRING_OFFSET + 27)
2695 #define MCI_FORMAT_SMPTE_30DROP_S (MCI_STRING_OFFSET + 28)
2696 #define MCI_FORMAT_BYTES_S (MCI_STRING_OFFSET + 29)
2697 #define MCI_FORMAT_SAMPLES_S (MCI_STRING_OFFSET + 30)
2698 #define MCI_FORMAT_TMSF_S (MCI_STRING_OFFSET + 31)
2700 #define MCI_VD_FORMAT_TRACK_S (MCI_VD_OFFSET + 5)
2702 #define WAVE_FORMAT_PCM_S (MCI_WAVE_OFFSET + 0)
2703 #define WAVE_MAPPER_S (MCI_WAVE_OFFSET + 1)
2705 #define MCI_SEQ_MAPPER_S (MCI_SEQ_OFFSET + 5)
2706 #define MCI_SEQ_FILE_S (MCI_SEQ_OFFSET + 6)
2707 #define MCI_SEQ_MIDI_S (MCI_SEQ_OFFSET + 7)
2708 #define MCI_SEQ_SMPTE_S (MCI_SEQ_OFFSET + 8)
2709 #define MCI_SEQ_FORMAT_SONGPTR_S (MCI_SEQ_OFFSET + 9)
2710 #define MCI_SEQ_NONE_S (MCI_SEQ_OFFSET + 10)
2711 #define MIDIMAPPER_S (MCI_SEQ_OFFSET + 11)
2713 #define MCI_RESOURCE_RETURNED 0x00010000 /* resource ID */
2714 #define MCI_COLONIZED3_RETURN 0x00020000 /* colonized ID, 3 bytes data */
2715 #define MCI_COLONIZED4_RETURN 0x00040000 /* colonized ID, 4 bytes data */
2716 #define MCI_INTEGER_RETURNED 0x00080000 /* integer conversion needed */
2717 #define MCI_RESOURCE_DRIVER 0x00100000 /* driver owns returned resource */
2719 #define MCI_NO_COMMAND_TABLE 0xFFFF
2721 #define MCI_COMMAND_HEAD 0
2722 #define MCI_STRING 1
2723 #define MCI_INTEGER 2
2724 #define MCI_END_COMMAND 3
2725 #define MCI_RETURN 4
2726 #define MCI_FLAG 5
2727 #define MCI_END_COMMAND_LIST 6
2728 #define MCI_RECT 7
2729 #define MCI_CONSTANT 8
2730 #define MCI_END_CONSTANT 9
2732 /* Mixer flags */
2733 #define MIXER_OBJECTF_HANDLE 0x80000000L
2734 #define MIXER_OBJECTF_MIXER 0x00000000L
2735 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
2736 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
2737 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
2738 #define MIXER_OBJECTF_WAVEIN 0x20000000L
2739 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
2740 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
2741 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
2742 #define MIXER_OBJECTF_MIDIIN 0x40000000L
2743 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
2744 #define MIXER_OBJECTF_AUX 0x50000000L
2746 #define MAKEMCIRESOURCE(wRet, wRes) MAKELRESULT((wRet), (wRes))
2748 /* the 95 DDK defines those slightly different, but they are internal anyway */
2749 typedef struct {
2750 DWORD dwCallback;
2751 DWORD dwInstance;
2752 HMIDIOUT16 hMidi;
2753 DWORD dwFlags;
2754 } PORTALLOC, *LPPORTALLOC;
2756 typedef struct {
2757 HWAVE16 hWave;
2758 LPWAVEFORMAT lpFormat;
2759 DWORD dwCallBack;
2760 DWORD dwInstance;
2761 UINT16 uDeviceID;
2762 } WAVEOPENDESC, *LPWAVEOPENDESC;
2764 typedef struct {
2765 HMIDI16 hMidi;
2766 DWORD dwCallback;
2767 DWORD dwInstance;
2768 UINT16 wDevID;
2769 } MIDIOPENDESC, *LPMIDIOPENDESC;
2771 typedef struct {
2772 UINT16 wDelay;
2773 UINT16 wResolution;
2774 LPTIMECALLBACK16 lpFunction;
2775 DWORD dwUser;
2776 UINT16 wFlags;
2777 } TIMEREVENT, *LPTIMEREVENT;
2779 typedef struct tMIXEROPENDESC
2781 HMIXEROBJ16 hmx;
2782 DWORD dwCallback;
2783 DWORD dwInstance;
2784 UINT16 uDeviceID;
2785 } MIXEROPENDESC,*LPMIXEROPENDESC;
2787 typedef struct {
2788 UINT16 wDeviceID; /* device ID */
2789 LPSTR lpstrParams; /* parameter string for entry in SYSTEM.INI */
2790 UINT16 wCustomCommandTable; /* custom command table (0xFFFF if none)
2791 * filled in by the driver */
2792 UINT16 wType; /* driver type (filled in by the driver) */
2793 } MCI_OPEN_DRIVER_PARMS, *LPMCI_OPEN_DRIVER_PARMS;
2795 DWORD WINAPI mciGetDriverData(UINT16 uDeviceID);
2796 BOOL16 WINAPI mciSetDriverData(UINT16 uDeviceID, DWORD dwData);
2797 UINT16 WINAPI mciDriverYield(UINT16 uDeviceID);
2798 BOOL16 WINAPI mciDriverNotify(HWND16 hwndCallback, UINT16 uDeviceID,
2799 UINT16 uStatus);
2800 UINT16 WINAPI mciLoadCommandResource(HINSTANCE16 hInstance,
2801 LPCSTR lpResName, UINT16 uType);
2802 BOOL16 WINAPI mciFreeCommandResource(UINT16 uTable);
2804 #define DCB_NULL 0x0000
2805 #define DCB_WINDOW 0x0001 /* dwCallback is a HWND */
2806 #define DCB_TASK 0x0002 /* dwCallback is a HTASK */
2807 #define DCB_FUNCTION 0x0003 /* dwCallback is a FARPROC */
2808 #define DCB_FUNC32 0x0007 /* (ugly hack) 32-bit FARPROC */
2809 #define DCB_TYPEMASK 0x0007
2810 #define DCB_NOSWITCH 0x0008 /* don't switch stacks for callback */
2812 BOOL16 WINAPI DriverCallback(DWORD dwCallBack, UINT16 uFlags, HANDLE16 hDev,
2813 WORD wMsg, DWORD dwUser, DWORD dwParam1, DWORD dwParam2);
2814 DWORD WINAPI auxMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2815 DWORD dwParam1, DWORD dwParam2);
2817 #pragma pack(4)
2818 DWORD WINAPI mixMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2819 DWORD dwParam1, DWORD dwParam2);
2820 DWORD WINAPI midMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2821 DWORD dwParam1, DWORD dwParam2);
2822 DWORD WINAPI modMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2823 DWORD dwParam1, DWORD dwParam2);
2824 DWORD WINAPI widMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2825 DWORD dwParam1, DWORD dwParam2);
2826 DWORD WINAPI wodMessage(WORD wDevID, WORD wMsg, DWORD dwUser,
2827 DWORD dwParam1, DWORD dwParam2);
2828 #pragma pack(4)
2830 LONG WAVE_DriverProc16(DWORD dwDevID, HDRVR16 hDriv, WORD wMsg,
2831 DWORD dwParam1, DWORD dwParam2);
2832 LONG WAVE_DriverProc32(DWORD dwDevID, HDRVR16 hDriv, DWORD wMsg,
2833 DWORD dwParam1, DWORD dwParam2);
2834 LONG MIDI_DriverProc16(DWORD dwDevID, HDRVR16 hDriv, WORD wMsg,
2835 DWORD dwParam1, DWORD dwParam2);
2836 LONG MIDI_DriverProc32(DWORD dwDevID, HDRVR16 hDriv, DWORD wMsg,
2837 DWORD dwParam1, DWORD dwParam2);
2838 LONG CDAUDIO_DriverProc16(DWORD dwDevID, HDRVR16 hDriv, WORD wMsg,
2839 DWORD dwParam1, DWORD dwParam2);
2840 LONG CDAUDIO_DriverProc32(DWORD dwDevID, HDRVR16 hDriv, DWORD wMsg,
2841 DWORD dwParam1, DWORD dwParam2);
2842 LONG ANIM_DriverProc16(DWORD dwDevID, HDRVR16 hDriv, WORD wMsg,
2843 DWORD dwParam1, DWORD dwParam2);
2844 LONG ANIM_DriverProc32(DWORD dwDevID, HDRVR16 hDriv, DWORD wMsg,
2845 DWORD dwParam1, DWORD dwParam2);
2847 #endif /* __WINE_MMSYSTEM_H */