Fixed TOOLBAR_DrawString() to offset button text if infoPtr->himlDef
[wine/gsoc_dplay.git] / include / mmsystem.h
blob2f5829df8c6ec28ab848c3d6f2b4111246e151f1
1 /*
2 * MMSYSTEM - Multimedia Wine Extension ... :-)
3 */
5 #ifndef __WINE_MMSYSTEM_H
6 #define __WINE_MMSYSTEM_H
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 #include "windef.h"
13 typedef LPSTR HPSTR; /* a huge version of LPSTR */
14 typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
16 #include "pshpack1.h"
18 #define MAXWAVEDRIVERS 10
19 #define MAXMIDIDRIVERS 10
20 #define MAXAUXDRIVERS 10
21 #define MAXMCIDRIVERS 32
22 #define MAXMIXERDRIVERS 10
24 #define MAXPNAMELEN 32 /* max product name length (including NULL) */
25 #define MAXERRORLENGTH 128 /* max error text length (including NULL) */
26 #define MAX_JOYSTICKOEMVXDNAME 260
28 typedef WORD VERSION; /* major (high byte), minor (low byte) */
30 typedef UINT16 MMVERSION16;
31 typedef UINT MMVERSION;
32 typedef UINT16 MCIDEVICEID16;
33 typedef UINT MCIDEVICEID;
34 typedef UINT16 MMRESULT16;
35 typedef UINT MMRESULT;
37 typedef struct {
38 UINT16 wType; /* indicates the contents of the union */
39 union {
40 DWORD ms; /* milliseconds */
41 DWORD sample; /* samples */
42 DWORD cb; /* byte count */
43 struct { /* SMPTE */
44 BYTE hour; /* hours */
45 BYTE min; /* minutes */
46 BYTE sec; /* seconds */
47 BYTE frame; /* frames */
48 BYTE fps; /* frames per second */
49 BYTE dummy; /* pad */
50 } smpte;
51 struct { /* MIDI */
52 DWORD songptrpos; /* song pointer position */
53 } midi;
54 } u;
55 } MMTIME16, *LPMMTIME16;
57 typedef struct {
58 UINT wType;
59 union {
60 DWORD ms;
61 DWORD sample;
62 DWORD cb;
63 DWORD ticks;
64 struct {
65 BYTE hour;
66 BYTE min;
67 BYTE sec;
68 BYTE frame;
69 BYTE fps;
70 BYTE dummy;
71 BYTE pad[2];
72 } smpte;
73 struct {
74 DWORD songptrpos;
75 } midi;
76 } u;
77 } MMTIME, *LPMMTIME;
79 #define TIME_MS 0x0001 /* time in milliseconds */
80 #define TIME_SAMPLES 0x0002 /* number of wave samples */
81 #define TIME_BYTES 0x0004 /* current byte offset */
82 #define TIME_SMPTE 0x0008 /* SMPTE time */
83 #define TIME_MIDI 0x0010 /* MIDI time */
84 #define TIME_TICKS 0x0020 /* MIDI ticks */
86 #define MM_JOY1MOVE 0x3A0 /* joystick */
87 #define MM_JOY2MOVE 0x3A1
88 #define MM_JOY1ZMOVE 0x3A2
89 #define MM_JOY2ZMOVE 0x3A3
90 #define MM_JOY1BUTTONDOWN 0x3B5
91 #define MM_JOY2BUTTONDOWN 0x3B6
92 #define MM_JOY1BUTTONUP 0x3B7
93 #define MM_JOY2BUTTONUP 0x3B8
95 #define MM_MCINOTIFY 0x3B9 /* MCI */
97 #define MM_WOM_OPEN 0x3BB /* waveform output */
98 #define MM_WOM_CLOSE 0x3BC
99 #define MM_WOM_DONE 0x3BD
101 #define MM_WIM_OPEN 0x3BE /* waveform input */
102 #define MM_WIM_CLOSE 0x3BF
103 #define MM_WIM_DATA 0x3C0
105 #define MM_MIM_OPEN 0x3C1 /* MIDI input */
106 #define MM_MIM_CLOSE 0x3C2
107 #define MM_MIM_DATA 0x3C3
108 #define MM_MIM_LONGDATA 0x3C4
109 #define MM_MIM_ERROR 0x3C5
110 #define MM_MIM_LONGERROR 0x3C6
112 #define MM_MOM_OPEN 0x3C7 /* MIDI output */
113 #define MM_MOM_CLOSE 0x3C8
114 #define MM_MOM_DONE 0x3C9
115 #define MM_MOM_POSITIONCB 0x3CA
117 #define MM_MIM_MOREDATA 0x3CC
119 #define MMSYSERR_BASE 0
120 #define WAVERR_BASE 32
121 #define MIDIERR_BASE 64
122 #define TIMERR_BASE 96
123 #define JOYERR_BASE 160
124 #define MCIERR_BASE 256
126 #define MCI_STRING_OFFSET 512
127 #define MCI_VD_OFFSET 1024
128 #define MCI_CD_OFFSET 1088
129 #define MCI_WAVE_OFFSET 1152
130 #define MCI_SEQ_OFFSET 1216
132 #define MMSYSERR_NOERROR 0 /* no error */
133 #define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
134 #define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
135 #define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
136 #define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
137 #define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
138 #define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
139 #define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
140 #define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
141 #define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
142 #define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
143 #define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
144 #define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
146 #define CALLBACK_TYPEMASK 0x00070000l /* callback type mask */
147 #define CALLBACK_NULL 0x00000000l /* no callback */
148 #define CALLBACK_WINDOW 0x00010000l /* dwCallback is a HWND */
149 #define CALLBACK_TASK 0x00020000l /* dwCallback is a HTASK */
150 #define CALLBACK_THREAD (CALLBACK_TASK) /* dwCallback is a thread ID */
151 #define CALLBACK_FUNCTION 0x00030000l /* dwCallback is a FARPROC */
152 #define CALLBACK_EVENT 0x00050000l /* dwCallback is an EVENT Handler */
154 typedef void CALLBACK (*LPDRVCALLBACK16) (HDRVR16 h, UINT16 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
155 typedef void CALLBACK (*LPDRVCALLBACK) (HDRVR h, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
157 #define MM_MICROSOFT 1 /* Microsoft Corp. */
159 #define MM_MIDI_MAPPER 1 /* MIDI Mapper */
160 #define MM_WAVE_MAPPER 2 /* Wave Mapper */
162 #define MM_SNDBLST_MIDIOUT 3 /* Sound Blaster MIDI output port */
163 #define MM_SNDBLST_MIDIIN 4 /* Sound Blaster MIDI input port */
164 #define MM_SNDBLST_SYNTH 5 /* Sound Blaster internal synthesizer */
165 #define MM_SNDBLST_WAVEOUT 6 /* Sound Blaster waveform output */
166 #define MM_SNDBLST_WAVEIN 7 /* Sound Blaster waveform input */
168 #define MM_ADLIB 9 /* Ad Lib-compatible synthesizer */
170 #define MM_MPU401_MIDIOUT 10 /* MPU401-compatible MIDI output port */
171 #define MM_MPU401_MIDIIN 11 /* MPU401-compatible MIDI input port */
173 #define MM_PC_JOYSTICK 12 /* Joystick adapter */
176 UINT16 WINAPI mmsystemGetVersion16(void);
177 UINT WINAPI mmsystemGetVersion(void);
178 BOOL16 WINAPI sndPlaySound(LPCSTR lpszSoundName, UINT16 uFlags);
179 BOOL WINAPI sndPlaySoundA(LPCSTR lpszSound, UINT fuSound);
180 BOOL WINAPI sndPlaySoundW(LPCWSTR lpszSound, UINT fuSound);
181 #define sndPlaySound WINELIB_NAME_AW(sndPlaySound)
182 BOOL WINAPI PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
183 BOOL WINAPI PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound);
184 #define PlaySound WINELIB_NAME_AW(PlaySound)
186 #define SND_SYNC 0x0000 /* play synchronously (default) */
187 #define SND_ASYNC 0x0001 /* play asynchronously */
188 #define SND_NODEFAULT 0x0002 /* don't use default sound */
189 #define SND_MEMORY 0x0004 /* lpszSoundName points to a memory file */
190 #define SND_LOOP 0x0008 /* loop the sound until next sndPlaySound */
191 #define SND_NOSTOP 0x0010 /* don't stop any currently playing sound */
193 #define SND_NOWAIT 0x00002000L /* don't wait if the driver is busy */
194 #define SND_ALIAS 0x00010000L /* name is a registry alias */
195 #define SND_ALIAS_ID 0x00110000L /* alias is a predefined ID */
196 #define SND_FILENAME 0x00020000L /* name is file name */
197 #define SND_RESOURCE 0x00040004L /* name is resource name or atom */
198 #define SND_PURGE 0x00000040L /* purge all sounds */
199 #define SND_APPLICATION 0x00000080L /* look for application specific association */
201 /* waveform audio error return values */
202 #define WAVERR_BADFORMAT (WAVERR_BASE + 0) /* unsupported wave format */
203 #define WAVERR_STILLPLAYING (WAVERR_BASE + 1) /* still something playing */
204 #define WAVERR_UNPREPARED (WAVERR_BASE + 2) /* header not prepared */
205 #define WAVERR_SYNC (WAVERR_BASE + 3) /* device is synchronous */
206 #define WAVERR_LASTERROR (WAVERR_BASE + 3) /* last error in range */
208 typedef LPDRVCALLBACK16 LPWAVECALLBACK16;
209 typedef LPDRVCALLBACK LPWAVECALLBACK;
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
222 #define WAVE_MAPPED 0x0004
223 #define WAVE_FORMAT_DIRECT 0x0008
224 #define WAVE_FORMAT_DIRECT_QUERY (WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT)
225 #ifdef __WINE__
226 #define WAVE_DIRECTSOUND 0x0080
227 #endif
229 typedef struct wavehdr_tag {
230 LPSTR lpData; /* pointer to locked data buffer */
231 DWORD dwBufferLength; /* length of data buffer */
232 DWORD dwBytesRecorded;/* used for input only */
233 DWORD dwUser; /* for client's use */
234 DWORD dwFlags; /* assorted flags (see defines) */
235 DWORD dwLoops; /* loop control counter */
237 struct wavehdr_tag *lpNext; /* reserved for driver */
238 DWORD reserved; /* reserved for driver */
239 } WAVEHDR, *LPWAVEHDR;
241 #define WHDR_DONE 0x00000001 /* done bit */
242 #define WHDR_PREPARED 0x00000002 /* set if this header has been prepared */
243 #define WHDR_BEGINLOOP 0x00000004 /* loop start block */
244 #define WHDR_ENDLOOP 0x00000008 /* loop end block */
245 #define WHDR_INQUEUE 0x00000010 /* reserved for driver */
247 typedef struct {
248 WORD wMid; /* manufacturer ID */
249 WORD wPid; /* product ID */
250 MMVERSION16 vDriverVersion; /* version of the driver */
251 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
252 DWORD dwFormats; /* formats supported */
253 WORD wChannels; /* number of sources supported */
254 DWORD dwSupport; /* functionality supported by driver */
255 } WAVEOUTCAPS16, *LPWAVEOUTCAPS16;
257 typedef struct {
258 WORD wMid; /* manufacturer ID */
259 WORD wPid; /* product ID */
260 MMVERSION vDriverVersion; /* version of the driver */
261 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
262 DWORD dwFormats; /* formats supported */
263 WORD wChannels; /* number of sources supported */
264 WORD wReserved1; /* padding */
265 DWORD dwSupport; /* functionality supported by driver */
266 } WAVEOUTCAPSA, *LPWAVEOUTCAPSA;
268 typedef struct {
269 WORD wMid; /* manufacturer ID */
270 WORD wPid; /* product ID */
271 MMVERSION vDriverVersion; /* version of the driver */
272 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
273 DWORD dwFormats; /* formats supported */
274 WORD wChannels; /* number of sources supported */
275 WORD wReserved1; /* padding */
276 DWORD dwSupport; /* functionality supported by driver */
277 } WAVEOUTCAPSW, *LPWAVEOUTCAPSW;
278 DECL_WINELIB_TYPE_AW(WAVEOUTCAPS)
279 DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS)
281 #define WAVECAPS_PITCH 0x0001 /* supports pitch control */
282 #define WAVECAPS_PLAYBACKRATE 0x0002 /* supports playback rate control */
283 #define WAVECAPS_VOLUME 0x0004 /* supports volume control */
284 #define WAVECAPS_LRVOLUME 0x0008 /* separate left-right volume control */
285 #define WAVECAPS_SYNC 0x0010 /* driver is synchrounous and playing is blocking */
286 #define WAVECAPS_SAMPLEACCURATE 0x0020 /* position is sample accurate */
287 #define WAVECAPS_DIRECTSOUND 0x0040 /* ? */
289 typedef struct {
290 WORD wMid; /* manufacturer ID */
291 WORD wPid; /* product ID */
292 MMVERSION16 vDriverVersion; /* version of the driver */
293 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
294 DWORD dwFormats; /* formats supported */
295 WORD wChannels; /* number of channels supported */
296 } WAVEINCAPS16, *LPWAVEINCAPS16;
298 typedef struct {
299 WORD wMid; /* manufacturer ID */
300 WORD wPid; /* product ID */
301 MMVERSION vDriverVersion; /* version of the driver */
302 CHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
303 DWORD dwFormats; /* formats supported */
304 WORD wChannels; /* number of channels supported */
305 WORD wReserved1;
306 } WAVEINCAPSA, *LPWAVEINCAPSA;
307 typedef struct {
308 WORD wMid; /* manufacturer ID */
309 WORD wPid; /* product ID */
310 MMVERSION vDriverVersion; /* version of the driver */
311 WCHAR szPname[MAXPNAMELEN]; /* product name (0 terminated string) */
312 DWORD dwFormats; /* formats supported */
313 WORD wChannels; /* number of channels supported */
314 WORD wReserved1;
315 } WAVEINCAPSW, *LPWAVEINCAPSW;
316 DECL_WINELIB_TYPE_AW(WAVEINCAPS)
317 DECL_WINELIB_TYPE_AW(LPWAVEINCAPS)
319 #define WAVE_INVALIDFORMAT 0x00000000 /* invalid format */
320 #define WAVE_FORMAT_1M08 0x00000001 /* 11.025 kHz, Mono, 8-bit */
321 #define WAVE_FORMAT_1S08 0x00000002 /* 11.025 kHz, Stereo, 8-bit */
322 #define WAVE_FORMAT_1M16 0x00000004 /* 11.025 kHz, Mono, 16-bit */
323 #define WAVE_FORMAT_1S16 0x00000008 /* 11.025 kHz, Stereo, 16-bit */
324 #define WAVE_FORMAT_2M08 0x00000010 /* 22.05 kHz, Mono, 8-bit */
325 #define WAVE_FORMAT_2S08 0x00000020 /* 22.05 kHz, Stereo, 8-bit */
326 #define WAVE_FORMAT_2M16 0x00000040 /* 22.05 kHz, Mono, 16-bit */
327 #define WAVE_FORMAT_2S16 0x00000080 /* 22.05 kHz, Stereo, 16-bit */
328 #define WAVE_FORMAT_4M08 0x00000100 /* 44.1 kHz, Mono, 8-bit */
329 #define WAVE_FORMAT_4S08 0x00000200 /* 44.1 kHz, Stereo, 8-bit */
330 #define WAVE_FORMAT_4M16 0x00000400 /* 44.1 kHz, Mono, 16-bit */
331 #define WAVE_FORMAT_4S16 0x00000800 /* 44.1 kHz, Stereo, 16-bit */
333 /* General format structure common to all formats, same for Win16 and Win32 */
334 typedef struct {
335 WORD wFormatTag; /* format type */
336 WORD nChannels; /* number of channels */
337 DWORD nSamplesPerSec; /* sample rate */
338 DWORD nAvgBytesPerSec;/* for buffer estimation */
339 WORD nBlockAlign; /* block size of data */
340 } WAVEFORMAT, *LPWAVEFORMAT;
342 #define WAVE_FORMAT_PCM 1
344 typedef struct {
345 WAVEFORMAT wf;
346 WORD wBitsPerSample;
347 } PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
349 #ifndef _WAVEFORMATEX_
350 #define _WAVEFORMATEX_
351 /* dito same for Win16 / Win32 */
352 typedef struct {
353 WORD wFormatTag; /* format type */
354 WORD nChannels; /* number of channels (i.e. mono, stereo...) */
355 DWORD nSamplesPerSec; /* sample rate */
356 DWORD nAvgBytesPerSec;/* for buffer estimation */
357 WORD nBlockAlign; /* block size of data */
358 WORD wBitsPerSample; /* number of bits per sample of mono data */
359 WORD cbSize; /* the count in bytes of the size of */
360 /* extra information (after cbSize) */
361 } WAVEFORMATEX, *LPWAVEFORMATEX, *NPWAVEFORMATEX, *PWAVEFORMATEX;
362 #endif
364 UINT16 WINAPI waveOutGetNumDevs16(void);
365 UINT WINAPI waveOutGetNumDevs(void);
366 UINT16 WINAPI waveOutGetDevCaps16(UINT16,LPWAVEOUTCAPS16,UINT16);
367 UINT WINAPI waveOutGetDevCapsA(UINT,LPWAVEOUTCAPSA,UINT);
368 UINT WINAPI waveOutGetDevCapsW(UINT,LPWAVEOUTCAPSW,UINT);
369 #define waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
370 UINT16 WINAPI waveOutGetVolume16(UINT16,DWORD*);
371 UINT WINAPI waveOutGetVolume(UINT,DWORD*);
372 UINT16 WINAPI waveOutSetVolume16(UINT16,DWORD);
373 UINT WINAPI waveOutSetVolume(UINT,DWORD);
374 UINT16 WINAPI waveOutGetErrorText16(UINT16,LPSTR,UINT16);
375 UINT WINAPI waveOutGetErrorTextA(UINT,LPSTR,UINT);
376 UINT WINAPI waveOutGetErrorTextW(UINT,LPWSTR,UINT);
377 #define waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
378 UINT16 WINAPI waveOutOpen16(HWAVEOUT16*,UINT16,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
379 UINT WINAPI waveOutOpen(HWAVEOUT*,UINT,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
380 UINT16 WINAPI waveOutClose16(HWAVEOUT16);
381 UINT WINAPI waveOutClose(HWAVEOUT);
382 UINT16 WINAPI waveOutPrepareHeader16(HWAVEOUT16,WAVEHDR*,UINT16);
383 UINT WINAPI waveOutPrepareHeader(HWAVEOUT,WAVEHDR*,UINT);
384 UINT16 WINAPI waveOutUnprepareHeader16(HWAVEOUT16,WAVEHDR*,UINT16);
385 UINT WINAPI waveOutUnprepareHeader(HWAVEOUT,WAVEHDR*,UINT);
386 UINT16 WINAPI waveOutWrite16(HWAVEOUT16,WAVEHDR*,UINT16);
387 UINT WINAPI waveOutWrite(HWAVEOUT,WAVEHDR*,UINT);
388 UINT16 WINAPI waveOutPause16(HWAVEOUT16);
389 UINT WINAPI waveOutPause(HWAVEOUT);
390 UINT16 WINAPI waveOutRestart16(HWAVEOUT16);
391 UINT WINAPI waveOutRestart(HWAVEOUT);
392 UINT16 WINAPI waveOutReset16(HWAVEOUT16);
393 UINT WINAPI waveOutReset(HWAVEOUT);
394 UINT16 WINAPI waveOutBreakLoop16(HWAVEOUT16);
395 UINT WINAPI waveOutBreakLoop(HWAVEOUT);
396 UINT16 WINAPI waveOutGetPosition16(HWAVEOUT16,LPMMTIME16,UINT16);
397 UINT WINAPI waveOutGetPosition(HWAVEOUT,LPMMTIME,UINT);
398 UINT16 WINAPI waveOutGetPitch16(HWAVEOUT16,DWORD*);
399 UINT WINAPI waveOutGetPitch(HWAVEOUT,DWORD*);
400 UINT16 WINAPI waveOutSetPitch16(HWAVEOUT16,DWORD);
401 UINT WINAPI waveOutSetPitch(HWAVEOUT,DWORD);
402 UINT16 WINAPI waveOutGetPlaybackRate16(HWAVEOUT16,DWORD*);
403 UINT WINAPI waveOutGetPlaybackRate(HWAVEOUT,DWORD*);
404 UINT16 WINAPI waveOutSetPlaybackRate16(HWAVEOUT16,DWORD);
405 UINT WINAPI waveOutSetPlaybackRate(HWAVEOUT,DWORD);
406 UINT16 WINAPI waveOutGetID16(HWAVEOUT16,UINT16*);
407 UINT WINAPI waveOutGetID(HWAVEOUT,UINT*);
408 DWORD WINAPI waveOutMessage16(HWAVEOUT16,UINT16,DWORD,DWORD);
409 DWORD WINAPI waveOutMessage(HWAVEOUT,UINT,DWORD,DWORD);
411 UINT16 WINAPI waveInGetNumDevs16(void);
412 UINT WINAPI waveInGetNumDevs(void);
413 UINT16 WINAPI waveInGetDevCaps16(UINT16,LPWAVEINCAPS16,UINT16);
414 UINT WINAPI waveInGetDevCapsA(UINT,LPWAVEINCAPSA,UINT);
415 UINT WINAPI waveInGetDevCapsW(UINT,LPWAVEINCAPSW,UINT);
416 #define waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
417 UINT16 WINAPI waveInGetErrorText16(UINT16,LPSTR,UINT16);
418 UINT WINAPI waveInGetErrorTextA(UINT,LPSTR,UINT);
419 UINT WINAPI waveInGetErrorTextW(UINT,LPWSTR,UINT);
420 #define waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
421 UINT16 WINAPI waveInOpen16(HWAVEIN16*,UINT16,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
422 UINT WINAPI waveInOpen(HWAVEIN*,UINT,const LPWAVEFORMATEX,DWORD,DWORD,DWORD);
423 UINT16 WINAPI waveInClose16(HWAVEIN16);
424 UINT WINAPI waveInClose(HWAVEIN);
425 UINT16 WINAPI waveInPrepareHeader16(HWAVEIN16,WAVEHDR*,UINT16);
426 UINT WINAPI waveInPrepareHeader(HWAVEIN,WAVEHDR*,UINT);
427 UINT16 WINAPI waveInUnprepareHeader16(HWAVEIN16,WAVEHDR*,UINT16);
428 UINT WINAPI waveInUnprepareHeader(HWAVEIN,WAVEHDR*,UINT);
429 UINT16 WINAPI waveInAddBuffer16(HWAVEIN16,WAVEHDR*,UINT16);
430 UINT WINAPI waveInAddBuffer(HWAVEIN,WAVEHDR*,UINT);
431 UINT16 WINAPI waveInStart16(HWAVEIN16);
432 UINT WINAPI waveInStart(HWAVEIN);
433 UINT16 WINAPI waveInStop16(HWAVEIN16);
434 UINT WINAPI waveInStop(HWAVEIN);
435 UINT16 WINAPI waveInReset16(HWAVEIN16);
436 UINT WINAPI waveInReset(HWAVEIN);
437 UINT16 WINAPI waveInGetPosition16(HWAVEIN16,LPMMTIME16,UINT16);
438 UINT WINAPI waveInGetPosition(HWAVEIN,LPMMTIME,UINT);
439 UINT16 WINAPI waveInGetID16(HWAVEIN16,UINT16*);
440 UINT WINAPI waveInGetID(HWAVEIN,UINT*);
442 DWORD WINAPI waveInMessage16(HWAVEIN16,UINT16,DWORD,DWORD);
443 DWORD WINAPI waveInMessage(HWAVEIN,UINT,DWORD,DWORD);
445 #define MIDIERR_UNPREPARED (MIDIERR_BASE + 0) /* header not prepared */
446 #define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1) /* still something playing */
447 #define MIDIERR_NOMAP (MIDIERR_BASE + 2) /* no current map */
448 #define MIDIERR_NOTREADY (MIDIERR_BASE + 3) /* hardware is still busy */
449 #define MIDIERR_NODEVICE (MIDIERR_BASE + 4) /* port no longer connected */
450 #define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5) /* invalid setup */
451 #define MIDIERR_LASTERROR (MIDIERR_BASE + 5) /* last error in range */
453 typedef LPDRVCALLBACK16 LPMIDICALLBACK16;
454 typedef LPDRVCALLBACK LPMIDICALLBACK;
455 #define MIDIPATCHSIZE 128
456 typedef WORD PATCHARRAY[MIDIPATCHSIZE];
457 typedef WORD *LPPATCHARRAY;
458 typedef WORD KEYARRAY[MIDIPATCHSIZE];
459 typedef WORD *LPKEYARRAY;
461 #define MIM_OPEN MM_MIM_OPEN
462 #define MIM_CLOSE MM_MIM_CLOSE
463 #define MIM_DATA MM_MIM_DATA
464 #define MIM_LONGDATA MM_MIM_LONGDATA
465 #define MIM_ERROR MM_MIM_ERROR
466 #define MIM_LONGERROR MM_MIM_LONGERROR
467 #define MIM_MOREDATA MM_MIM_MOREDATA
469 #define MOM_OPEN MM_MOM_OPEN
470 #define MOM_CLOSE MM_MOM_CLOSE
471 #define MOM_DONE MM_MOM_DONE
472 #define MOM_POSITIONCB MM_MOM_POSITIONCB
474 /* device ID for MIDI mapper */
476 #define MIDIMAPPER (-1)
477 #define MIDI_MAPPER (-1)
479 /* Only on Win95 and up */
480 #define MIDI_IO_STATUS 0x00000020L
482 /* flags for wFlags parm of
483 midiOutCachePatches(),
484 midiOutCacheDrumPatches() */
485 #define MIDI_CACHE_ALL 1
486 #define MIDI_CACHE_BESTFIT 2
487 #define MIDI_CACHE_QUERY 3
488 #define MIDI_UNCACHE 4
490 typedef struct {
491 WORD wMid; /* manufacturer ID */
492 WORD wPid; /* product ID */
493 MMVERSION16 vDriverVersion; /* version of the driver */
494 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
495 WORD wTechnology; /* type of device */
496 WORD wVoices; /* # of voices (internal synth only) */
497 WORD wNotes; /* max # of notes (internal synth only) */
498 WORD wChannelMask; /* channels used (internal synth only) */
499 DWORD dwSupport; /* functionality supported by driver */
500 } MIDIOUTCAPS16, *LPMIDIOUTCAPS16;
502 typedef struct {
503 WORD wMid; /* manufacturer ID */
504 WORD wPid; /* product ID */
505 MMVERSION vDriverVersion; /* version of the driver */
506 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
507 WORD wTechnology; /* type of device */
508 WORD wVoices; /* # of voices (internal synth only) */
509 WORD wNotes; /* max # of notes (internal synth only) */
510 WORD wChannelMask; /* channels used (internal synth only) */
511 DWORD dwSupport; /* functionality supported by driver */
512 } MIDIOUTCAPSA, *LPMIDIOUTCAPSA;
514 typedef struct {
515 WORD wMid; /* manufacturer ID */
516 WORD wPid; /* product ID */
517 MMVERSION vDriverVersion; /* version of the driver */
518 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
519 WORD wTechnology; /* type of device */
520 WORD wVoices; /* # of voices (internal synth only) */
521 WORD wNotes; /* max # of notes (internal synth only) */
522 WORD wChannelMask; /* channels used (internal synth only) */
523 DWORD dwSupport; /* functionality supported by driver */
524 } MIDIOUTCAPSW, *LPMIDIOUTCAPSW;
526 DECL_WINELIB_TYPE_AW(MIDIOUTCAPS)
527 DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS)
529 #define MOD_MIDIPORT 1 /* output port */
530 #define MOD_SYNTH 2 /* generic internal synth */
531 #define MOD_SQSYNTH 3 /* square wave internal synth */
532 #define MOD_FMSYNTH 4 /* FM internal synth */
533 #define MOD_MAPPER 5 /* MIDI mapper */
535 #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
536 #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
537 #define MIDICAPS_CACHE 0x0004
538 #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
540 typedef struct {
541 WORD wMid; /* manufacturer ID */
542 WORD wPid; /* product ID */
543 MMVERSION16 vDriverVersion; /* version of the driver */
544 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
545 DWORD dwSupport; /* included in win95 and higher */
546 } MIDIINCAPS16, *LPMIDIINCAPS16;
548 typedef struct {
549 WORD wMid; /* manufacturer ID */
550 WORD wPid; /* product ID */
551 MMVERSION vDriverVersion; /* version of the driver */
552 CHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
553 DWORD dwSupport; /* included in win95 and higher */
554 } MIDIINCAPSA, *LPMIDIINCAPSA;
556 typedef struct {
557 WORD wMid; /* manufacturer ID */
558 WORD wPid; /* product ID */
559 MMVERSION vDriverVersion; /* version of the driver */
560 WCHAR szPname[MAXPNAMELEN];/* product name (NULL terminated string) */
561 DWORD dwSupport; /* included in win95 and higher */
562 } MIDIINCAPSW, *LPMIDIINCAPSW;
564 DECL_WINELIB_TYPE_AW(MIDIINCAPS)
565 DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
567 typedef struct midihdr16_tag {
568 LPSTR lpData; /* pointer to locked data block */
569 DWORD dwBufferLength; /* length of data in data block */
570 DWORD dwBytesRecorded;/* used for input only */
571 DWORD dwUser; /* for client's use */
572 DWORD dwFlags; /* assorted flags (see defines) */
573 struct midihdr16_tag *lpNext; /* reserved for driver */
574 DWORD reserved; /* reserved for driver */
575 } MIDIHDR16, *LPMIDIHDR16;
577 /* It seems that Win32 has a slightly different structure than Win 16.
578 * sigh....
580 typedef struct midihdr_tag {
581 LPSTR lpData; /* pointer to locked data block */
582 DWORD dwBufferLength; /* length of data in data block */
583 DWORD dwBytesRecorded;/* used for input only */
584 DWORD dwUser; /* for client's use */
585 DWORD dwFlags; /* assorted flags (see defines) */
586 struct midihdr_tag *lpNext; /* reserved for driver */
587 DWORD reserved; /* reserved for driver */
588 DWORD dwOffset; /* offset of playback in case of
589 * MIDISTRM buffer */
590 DWORD dwReserved[4]; /* 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 */
596 #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
598 typedef struct {
599 DWORD cbStruct;
600 DWORD dwTempo;
601 } MIDIPROPTEMPO, *LPMIDIPROPTEMPO;
603 typedef struct {
604 DWORD cbStruct;
605 DWORD dwTimeDiv;
606 } MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV;
608 #define MIDIPROP_GET 0x40000000
609 #define MIDIPROP_SET 0x80000000
610 #define MIDIPROP_TEMPO 0x00000002
611 #define MIDIPROP_TIMEDIV 0x00000001
613 typedef struct {
614 DWORD dwDeltaTime; /* Time, in MIDI ticks, between the previous
615 * event and the current event. */
616 DWORD dwStreamID; /* Reserved; must be zero. */
617 DWORD dwEvent; /* event => see MEVT_XXX macros */
618 DWORD dwParms[0]; /* extra pmts to dwEvent if F_LONG is set */
619 } MIDIEVENT, *LPMIDIEVENT;
621 #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
622 #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
624 #define MEVT_F_CALLBACK 0x40000000l
625 #define MEVT_F_LONG 0x80000000l
626 #define MEVT_F_SHORT 0x00000000l
627 #define MEVT_COMMENT ((BYTE)0x82)
628 #define MEVT_LONGMSG ((BYTE)0x80)
629 #define MEVT_NOP ((BYTE)0x02)
630 #define MEVT_SHORTMSG ((BYTE)0x00)
631 #define MEVT_TEMPO ((BYTE)0x01)
632 #define MEVT_VERSION ((BYTE)0x84)
634 UINT16 WINAPI midiOutGetNumDevs16(void);
635 UINT WINAPI midiOutGetNumDevs(void);
636 UINT16 WINAPI midiOutGetDevCaps16(UINT16,LPMIDIOUTCAPS16,UINT16);
637 UINT WINAPI midiOutGetDevCapsA(UINT,LPMIDIOUTCAPSA,UINT);
638 UINT WINAPI midiOutGetDevCapsW(UINT,LPMIDIOUTCAPSW,UINT);
639 #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
640 UINT16 WINAPI midiOutGetVolume16(UINT16,DWORD*);
641 UINT WINAPI midiOutGetVolume(UINT,DWORD*);
642 UINT16 WINAPI midiOutSetVolume16(UINT16,DWORD);
643 UINT WINAPI midiOutSetVolume(UINT,DWORD);
644 UINT16 WINAPI midiOutGetErrorText16(UINT16,LPSTR,UINT16);
645 UINT WINAPI midiOutGetErrorTextA(UINT,LPSTR,UINT);
646 UINT WINAPI midiOutGetErrorTextW(UINT,LPWSTR,UINT);
647 #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
648 UINT16 WINAPI midiOutOpen16(HMIDIOUT16*,UINT16,DWORD,DWORD,DWORD);
649 UINT WINAPI midiOutOpen(HMIDIOUT*,UINT,DWORD,DWORD,DWORD);
650 UINT16 WINAPI midiOutClose16(HMIDIOUT16);
651 UINT WINAPI midiOutClose(HMIDIOUT);
652 UINT16 WINAPI midiOutPrepareHeader16(HMIDIOUT16,MIDIHDR16*,UINT16);
653 UINT WINAPI midiOutPrepareHeader(HMIDIOUT,MIDIHDR*,UINT);
654 UINT16 WINAPI midiOutUnprepareHeader16(HMIDIOUT16,MIDIHDR16*,UINT16);
655 UINT WINAPI midiOutUnprepareHeader(HMIDIOUT,MIDIHDR*,UINT);
656 UINT16 WINAPI midiOutShortMsg16(HMIDIOUT16,DWORD);
657 UINT WINAPI midiOutShortMsg(HMIDIOUT,DWORD);
658 UINT16 WINAPI midiOutLongMsg16(HMIDIOUT16,MIDIHDR16*,UINT16);
659 UINT WINAPI midiOutLongMsg(HMIDIOUT,MIDIHDR*,UINT);
660 UINT16 WINAPI midiOutReset16(HMIDIOUT16);
661 UINT WINAPI midiOutReset(HMIDIOUT);
662 UINT16 WINAPI midiOutCachePatches16(HMIDIOUT16,UINT16,WORD*,UINT16);
663 UINT WINAPI midiOutCachePatches(HMIDIOUT,UINT,WORD*,UINT);
664 UINT16 WINAPI midiOutCacheDrumPatches16(HMIDIOUT16,UINT16,WORD*,UINT16);
665 UINT WINAPI midiOutCacheDrumPatches(HMIDIOUT,UINT,WORD*,UINT);
666 UINT16 WINAPI midiOutGetID16(HMIDIOUT16,UINT16*);
667 UINT WINAPI midiOutGetID(HMIDIOUT,UINT*);
669 DWORD WINAPI midiOutMessage16(HMIDIOUT16,UINT16,DWORD,DWORD);
670 DWORD WINAPI midiOutMessage(HMIDIOUT,UINT,DWORD,DWORD);
672 UINT16 WINAPI midiInGetNumDevs16(void);
673 UINT WINAPI midiInGetNumDevs(void);
674 UINT16 WINAPI midiInGetDevCaps16(UINT16,LPMIDIINCAPS16,UINT16);
675 UINT WINAPI midiInGetDevCapsA(UINT,LPMIDIINCAPSA,UINT);
676 UINT WINAPI midiInGetDevCapsW(UINT,LPMIDIINCAPSW,UINT);
677 #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
678 UINT16 WINAPI midiInGetErrorText16(UINT16,LPSTR,UINT16);
679 UINT WINAPI midiInGetErrorTextA(UINT,LPSTR,UINT);
680 UINT WINAPI midiInGetErrorTextW(UINT,LPWSTR,UINT);
681 #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
682 UINT16 WINAPI midiInOpen16(HMIDIIN16*,UINT16,DWORD,DWORD,DWORD);
683 UINT WINAPI midiInOpen(HMIDIIN*,UINT,DWORD,DWORD,DWORD);
684 UINT16 WINAPI midiInClose16(HMIDIIN16);
685 UINT WINAPI midiInClose(HMIDIIN);
686 UINT16 WINAPI midiInPrepareHeader16(HMIDIIN16,MIDIHDR16*,UINT16);
687 UINT WINAPI midiInPrepareHeader(HMIDIIN,MIDIHDR*,UINT);
688 UINT16 WINAPI midiInUnprepareHeader16(HMIDIIN16,MIDIHDR16*,UINT16);
689 UINT WINAPI midiInUnprepareHeader(HMIDIIN,MIDIHDR*,UINT);
690 UINT16 WINAPI midiInAddBuffer16(HMIDIIN16,MIDIHDR16*,UINT16);
691 UINT WINAPI midiInAddBuffer(HMIDIIN,MIDIHDR*,UINT);
692 UINT16 WINAPI midiInStart16(HMIDIIN16);
693 UINT WINAPI midiInStart(HMIDIIN);
694 UINT16 WINAPI midiInStop16(HMIDIIN16);
695 UINT WINAPI midiInStop(HMIDIIN);
696 UINT16 WINAPI midiInReset16(HMIDIIN16);
697 UINT WINAPI midiInReset(HMIDIIN);
698 UINT16 WINAPI midiInGetID16(HMIDIIN16,UINT16*);
699 UINT WINAPI midiInGetID(HMIDIIN,UINT*);
700 DWORD WINAPI midiInMessage16(HMIDIIN16,UINT16,DWORD,DWORD);
701 DWORD WINAPI midiInMessage(HMIDIIN,UINT,DWORD,DWORD);
703 MMRESULT16 WINAPI midiStreamClose16(HMIDISTRM16 hms);
704 MMRESULT WINAPI midiStreamClose(HMIDISTRM hms);
705 MMRESULT WINAPI midiStreamOpen(HMIDISTRM* phms, LPUINT uDeviceID, DWORD cMidi,
706 DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen);
707 MMRESULT16 WINAPI midiStreamOpen16(HMIDISTRM16* phms, LPUINT16 devid, DWORD cMidi,
708 DWORD dwCallback, DWORD dwInstance, DWORD fdwOpen);
709 MMRESULT16 WINAPI midiStreamOut16(HMIDISTRM16 hms, LPMIDIHDR16 lpMidiHdr, UINT16 cbMidiHdr);
710 MMRESULT WINAPI midiStreamOut(HMIDISTRM hms, LPMIDIHDR lpMidiHdr, UINT cbMidiHdr);
711 MMRESULT16 WINAPI midiStreamPause16(HMIDISTRM16 hms);
712 MMRESULT WINAPI midiStreamPause(HMIDISTRM hms);
713 MMRESULT16 WINAPI midiStreamPosition16(HMIDISTRM16 hms, LPMMTIME16 lpmmt, UINT16 cbmmt);
714 MMRESULT WINAPI midiStreamPosition(HMIDISTRM hms, LPMMTIME lpmmt, UINT cbmmt);
715 MMRESULT16 WINAPI midiStreamProperty16(HMIDISTRM16 hms, LPBYTE lpPropData, DWORD dwProperty);
716 MMRESULT WINAPI midiStreamProperty(HMIDISTRM hms, LPBYTE lpPropData, DWORD dwProperty);
717 MMRESULT16 WINAPI midiStreamRestart16(HMIDISTRM16 hms);
718 MMRESULT WINAPI midiStreamRestart(HMIDISTRM hms);
719 MMRESULT16 WINAPI midiStreamStop16(HMIDISTRM16 hms);
720 MMRESULT WINAPI midiStreamStop(HMIDISTRM hms);
722 #define AUX_MAPPER (-1)
724 typedef struct {
725 WORD wMid; /* manufacturer ID */
726 WORD wPid; /* product ID */
727 MMVERSION16 vDriverVersion; /* version of the driver */
728 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
729 WORD wTechnology; /* type of device */
730 DWORD dwSupport; /* functionality supported by driver */
731 } AUXCAPS16, *LPAUXCAPS16;
733 typedef struct {
734 WORD wMid; /* manufacturer ID */
735 WORD wPid; /* product ID */
736 MMVERSION vDriverVersion; /* version of the driver */
737 CHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
738 WORD wTechnology; /* type of device */
739 WORD wReserved1; /* padding */
740 DWORD dwSupport; /* functionality supported by driver */
741 } AUXCAPSA, *LPAUXCAPSA;
743 typedef struct {
744 WORD wMid; /* manufacturer ID */
745 WORD wPid; /* product ID */
746 MMVERSION vDriverVersion; /* version of the driver */
747 WCHAR szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
748 WORD wTechnology; /* type of device */
749 WORD wReserved1; /* padding */
750 DWORD dwSupport; /* functionality supported by driver */
751 } AUXCAPSW, *LPAUXCAPSW;
753 DECL_WINELIB_TYPE_AW(AUXCAPS)
754 DECL_WINELIB_TYPE_AW(LPAUXCAPS)
756 #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
757 #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
759 #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
760 #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
762 UINT16 WINAPI auxGetNumDevs16(void);
763 UINT WINAPI auxGetNumDevs(void);
764 UINT16 WINAPI auxGetDevCaps16 (UINT16,LPAUXCAPS16,UINT16);
765 UINT WINAPI auxGetDevCapsA(UINT,LPAUXCAPSA,UINT);
766 UINT WINAPI auxGetDevCapsW(UINT,LPAUXCAPSW,UINT);
767 #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
768 UINT16 WINAPI auxSetVolume16(UINT16,DWORD);
769 UINT WINAPI auxSetVolume(UINT,DWORD);
771 UINT16 WINAPI auxGetVolume16(UINT16,LPDWORD);
772 UINT WINAPI auxGetVolume(UINT,LPDWORD);
774 DWORD WINAPI auxOutMessage16(UINT16,UINT16,DWORD,DWORD);
775 DWORD WINAPI auxOutMessage(UINT,UINT,DWORD,DWORD);
777 #define TIMERR_NOERROR (0) /* no error */
778 #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
779 #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
781 typedef void CALLBACK (*LPTIMECALLBACK16)(UINT16 uTimerID, UINT16 uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
782 typedef void CALLBACK (*LPTIMECALLBACK)(UINT uTimerID, UINT uMessage, DWORD dwUser, DWORD dw1, DWORD dw2);
784 #define TIME_ONESHOT 0x0000 /* program timer for single event */
785 #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
786 #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
787 #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
788 #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
790 typedef struct {
791 UINT16 wPeriodMin; /* minimum period supported */
792 UINT16 wPeriodMax; /* maximum period supported */
793 } TIMECAPS16,*LPTIMECAPS16;
795 typedef struct {
796 UINT wPeriodMin;
797 UINT wPeriodMax;
798 } TIMECAPS, *LPTIMECAPS;
801 MMRESULT16 WINAPI timeGetSystemTime16(LPMMTIME16,UINT16);
802 MMRESULT WINAPI timeGetSystemTime(LPMMTIME,UINT);
803 DWORD WINAPI timeGetTime(void); /* same for win32/win16 */
804 MMRESULT16 WINAPI timeSetEvent16(UINT16,UINT16,LPTIMECALLBACK16,DWORD,UINT16);
805 MMRESULT WINAPI timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD,UINT);
806 MMRESULT16 WINAPI timeKillEvent16(UINT16);
807 MMRESULT WINAPI timeKillEvent(UINT);
808 MMRESULT16 WINAPI timeGetDevCaps16(LPTIMECAPS16,UINT16);
809 MMRESULT WINAPI timeGetDevCaps(LPTIMECAPS,UINT);
810 MMRESULT16 WINAPI timeBeginPeriod16(UINT16);
811 MMRESULT WINAPI timeBeginPeriod(UINT);
812 MMRESULT16 WINAPI timeEndPeriod16(UINT16);
813 MMRESULT WINAPI timeEndPeriod(UINT);
815 #define JOYERR_NOERROR (0) /* no error */
816 #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
817 #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
818 #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
820 /* JOYINFO, JOYINFOEX, MM_JOY* */
821 #define JOY_BUTTON1 0x0001
822 #define JOY_BUTTON2 0x0002
823 #define JOY_BUTTON3 0x0004
824 #define JOY_BUTTON4 0x0008
825 #define JOY_BUTTON1CHG 0x0100
826 #define JOY_BUTTON2CHG 0x0200
827 #define JOY_BUTTON3CHG 0x0400
828 #define JOY_BUTTON4CHG 0x0800
830 #define JOYSTICKID1 0
831 #define JOYSTICKID2 1
833 /* JOYCAPS.wCaps */
834 #define JOYCAPS_HASZ 0x0001
835 #define JOYCAPS_HASR 0x0002
836 #define JOYCAPS_HASU 0x0004
837 #define JOYCAPS_HASV 0x0008
838 #define JOYCAPS_HASPOV 0x0010
839 #define JOYCAPS_POV4DIR 0x0020
840 #define JOYCAPS_POVCTS 0x0040
842 /* JOYINFOEX stuff */
843 #define JOY_POVCENTERED (WORD) -1
844 #define JOY_POVFORWARD 0
845 #define JOY_POVRIGHT 9000
846 #define JOY_POVBACKWARD 18000
847 #define JOY_POVLEFT 27000
849 #define JOY_RETURNX 0x00000001
850 #define JOY_RETURNY 0x00000002
851 #define JOY_RETURNZ 0x00000004
852 #define JOY_RETURNR 0x00000008
853 #define JOY_RETURNU 0x00000010
854 #define JOY_RETURNV 0x00000020
855 #define JOY_RETURNPOV 0x00000040
856 #define JOY_RETURNBUTTONS 0x00000080
857 #define JOY_RETURNRAWDATA 0x00000100
858 #define JOY_RETURNPOVCTS 0x00000200
859 #define JOY_RETURNCENTERED 0x00000400
860 #define JOY_USEDEADZONE 0x00000800
861 #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
862 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
863 JOY_RETURNPOV | JOY_RETURNBUTTONS)
864 #define JOY_CAL_READALWAYS 0x00010000
865 #define JOY_CAL_READXYONLY 0x00020000
866 #define JOY_CAL_READ3 0x00040000
867 #define JOY_CAL_READ4 0x00080000
868 #define JOY_CAL_READXONLY 0x00100000
869 #define JOY_CAL_READYONLY 0x00200000
870 #define JOY_CAL_READ5 0x00400000
871 #define JOY_CAL_READ6 0x00800000
872 #define JOY_CAL_READZONLY 0x01000000
873 #define JOY_CAL_READRONLY 0x02000000
874 #define JOY_CAL_READUONLY 0x04000000
875 #define JOY_CAL_READVONLY 0x08000000
877 typedef struct {
878 WORD wMid; /* manufacturer ID */
879 WORD wPid; /* product ID */
880 char szPname[MAXPNAMELEN]; /* product name (NULL terminated string) */
881 UINT16 wXmin; /* minimum x position value */
882 UINT16 wXmax; /* maximum x position value */
883 UINT16 wYmin; /* minimum y position value */
884 UINT16 wYmax; /* maximum y position value */
885 UINT16 wZmin; /* minimum z position value */
886 UINT16 wZmax; /* maximum z position value */
887 UINT16 wNumButtons; /* number of buttons */
888 UINT16 wPeriodMin; /* minimum message period when captured */
889 UINT16 wPeriodMax; /* maximum message period when captured */
890 /* win95,nt4 additions: */
891 UINT16 wRmin; /* minimum r position value */
892 UINT16 wRmax; /* maximum r position value */
893 UINT16 wUmin; /* minimum u (5th axis) position value */
894 UINT16 wUmax; /* maximum u (5th axis) position value */
895 UINT16 wVmin; /* minimum v (6th axis) position value */
896 UINT16 wVmax; /* maximum v (6th axis) position value */
897 UINT16 wCaps; /* joystick capabilites */
898 UINT16 wMaxAxes; /* maximum number of axes supported */
899 UINT16 wNumAxes; /* number of axes in use */
900 UINT16 wMaxButtons; /* maximum number of buttons supported */
901 CHAR szRegKey[MAXPNAMELEN]; /* registry key */
902 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME]; /* OEM VxD in use */
903 } JOYCAPS16, *LPJOYCAPS16;
905 typedef struct {
906 WORD wMid;
907 WORD wPid;
908 CHAR szPname[MAXPNAMELEN];
909 UINT wXmin;
910 UINT wXmax;
911 UINT wYmin;
912 UINT wYmax;
913 UINT wZmin;
914 UINT wZmax;
915 UINT wNumButtons;
916 UINT wPeriodMin;
917 UINT wPeriodMax;
918 UINT wRmin;
919 UINT wRmax;
920 UINT wUmin;
921 UINT wUmax;
922 UINT wVmin;
923 UINT wVmax;
924 UINT wCaps;
925 UINT wMaxAxes;
926 UINT wNumAxes;
927 UINT wMaxButtons;
928 CHAR szRegKey[MAXPNAMELEN];
929 CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
930 } JOYCAPSA, *LPJOYCAPSA;
932 typedef struct {
933 WORD wMid;
934 WORD wPid;
935 WCHAR szPname[MAXPNAMELEN];
936 UINT wXmin;
937 UINT wXmax;
938 UINT wYmin;
939 UINT wYmax;
940 UINT wZmin;
941 UINT wZmax;
942 UINT wNumButtons;
943 UINT wPeriodMin;
944 UINT wPeriodMax;
945 UINT wRmin;
946 UINT wRmax;
947 UINT wUmin;
948 UINT wUmax;
949 UINT wVmin;
950 UINT wVmax;
951 UINT wCaps;
952 UINT wMaxAxes;
953 UINT wNumAxes;
954 UINT wMaxButtons;
955 WCHAR szRegKey[MAXPNAMELEN];
956 WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
957 } JOYCAPSW, *LPJOYCAPSW;
958 DECL_WINELIB_TYPE_AW(JOYCAPS)
959 DECL_WINELIB_TYPE_AW(LPJOYCAPS)
961 typedef struct {
962 UINT16 wXpos; /* x position */
963 UINT16 wYpos; /* y position */
964 UINT16 wZpos; /* z position */
965 UINT16 wButtons; /* button states */
966 } JOYINFO16, *LPJOYINFO16;
968 typedef struct {
969 UINT wXpos;
970 UINT wYpos;
971 UINT wZpos;
972 UINT wButtons;
973 } JOYINFO, *LPJOYINFO;
975 typedef struct {
976 DWORD dwSize; /* size of structure */
977 DWORD dwFlags; /* flags to indicate what to return */
978 DWORD dwXpos; /* x position */
979 DWORD dwYpos; /* y position */
980 DWORD dwZpos; /* z position */
981 DWORD dwRpos; /* rudder/4th axis position */
982 DWORD dwUpos; /* 5th axis position */
983 DWORD dwVpos; /* 6th axis position */
984 DWORD dwButtons; /* button states */
985 DWORD dwButtonNumber; /* current button number pressed */
986 DWORD dwPOV; /* point of view state */
987 DWORD dwReserved1; /* reserved for communication between winmm & driver */
988 DWORD dwReserved2; /* reserved for future expansion */
989 } JOYINFOEX,*LPJOYINFOEX;
992 MMRESULT16 WINAPI joyGetDevCaps16 (UINT16,LPJOYCAPS16 ,UINT16);
993 MMRESULT WINAPI joyGetDevCapsA(UINT,LPJOYCAPSA,UINT);
994 MMRESULT WINAPI joyGetDevCapsW(UINT,LPJOYCAPSW,UINT);
995 #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
996 UINT16 WINAPI joyGetNumDevs16(void);
997 UINT WINAPI joyGetNumDevs(void);
998 MMRESULT16 WINAPI joyGetPos16(UINT16,LPJOYINFO16);
999 MMRESULT WINAPI joyGetPos(UINT,LPJOYINFO);
1000 MMRESULT16 WINAPI joyGetPosEx16(UINT16,LPJOYINFOEX);
1001 MMRESULT WINAPI joyGetPosEx(UINT,LPJOYINFOEX);
1002 MMRESULT16 WINAPI joyGetThreshold16(UINT16,UINT16*);
1003 MMRESULT WINAPI joyGetThreshold(UINT,UINT*);
1004 MMRESULT16 WINAPI joyReleaseCapture16(UINT16);
1005 MMRESULT WINAPI joyReleaseCapture(UINT);
1006 MMRESULT16 WINAPI joySetCapture16(HWND16,UINT16,UINT16,BOOL16);
1007 MMRESULT WINAPI joySetCapture(HWND,UINT,UINT,BOOL);
1008 MMRESULT16 WINAPI joySetThreshold16(UINT16,UINT16);
1009 MMRESULT WINAPI joySetThreshold(UINT,UINT);
1011 #define MIXERR_BASE 1024
1012 #define MIXERR_INVALLINE (MIXERR_BASE + 0)
1013 #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
1014 #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
1015 #define MIXERR_LASTERROR (MIXERR_BASE + 2)
1017 typedef struct {
1018 WORD wMid; /* manufacturer id */
1019 WORD wPid; /* product id */
1020 MMVERSION16 vDriverVersion; /* version of the driver */
1021 CHAR szPname[MAXPNAMELEN]; /* product name */
1022 DWORD fdwSupport; /* misc. support bits */
1023 DWORD cDestinations; /* count of destinations */
1024 } MIXERCAPS16,*LPMIXERCAPS16;
1026 typedef struct {
1027 WORD wMid;
1028 WORD wPid;
1029 MMVERSION vDriverVersion;
1030 CHAR szPname[MAXPNAMELEN];
1031 DWORD fdwSupport;
1032 DWORD cDestinations;
1033 } MIXERCAPSA,*LPMIXERCAPSA;
1035 typedef struct {
1036 WORD wMid;
1037 WORD wPid;
1038 MMVERSION vDriverVersion;
1039 WCHAR szPname[MAXPNAMELEN];
1040 DWORD fdwSupport;
1041 DWORD cDestinations;
1042 } MIXERCAPSW,*LPMIXERCAPSW;
1044 DECL_WINELIB_TYPE_AW(MIXERCAPS)
1045 DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
1047 #define MIXER_SHORT_NAME_CHARS 16
1048 #define MIXER_LONG_NAME_CHARS 64
1050 /* MIXERLINE.fdwLine */
1051 #define MIXERLINE_LINEF_ACTIVE 0x00000001
1052 #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
1053 #define MIXERLINE_LINEF_SOURCE 0x80000000
1055 /* Mixer flags */
1056 #define MIXER_OBJECTF_HANDLE 0x80000000L
1057 #define MIXER_OBJECTF_MIXER 0x00000000L
1058 #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
1059 #define MIXER_OBJECTF_WAVEOUT 0x10000000L
1060 #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
1061 #define MIXER_OBJECTF_WAVEIN 0x20000000L
1062 #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
1063 #define MIXER_OBJECTF_MIDIOUT 0x30000000L
1064 #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
1065 #define MIXER_OBJECTF_MIDIIN 0x40000000L
1066 #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
1067 #define MIXER_OBJECTF_AUX 0x50000000L
1069 /* MIXERLINE.dwComponentType */
1070 /* component types for destinations and sources */
1071 #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
1072 #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
1073 #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
1074 #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
1075 #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
1076 #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
1077 #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
1078 #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
1079 #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
1080 #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1081 #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
1083 #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
1084 #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
1085 #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
1086 #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
1087 #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
1088 #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
1089 #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
1090 #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
1091 #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
1092 #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
1093 #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
1094 #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1095 #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
1097 /* MIXERLINE.Target.dwType */
1098 #define MIXERLINE_TARGETTYPE_UNDEFINED 0
1099 #define MIXERLINE_TARGETTYPE_WAVEOUT 1
1100 #define MIXERLINE_TARGETTYPE_WAVEIN 2
1101 #define MIXERLINE_TARGETTYPE_MIDIOUT 3
1102 #define MIXERLINE_TARGETTYPE_MIDIIN 4
1103 #define MIXERLINE_TARGETTYPE_AUX 5
1105 typedef struct {
1106 DWORD cbStruct; /* size of MIXERLINE structure */
1107 DWORD dwDestination; /* zero based destination index */
1108 DWORD dwSource; /* zero based source index (if source) */
1109 DWORD dwLineID; /* unique line id for mixer device */
1110 DWORD fdwLine; /* state/information about line */
1111 DWORD dwUser; /* driver specific information */
1112 DWORD dwComponentType; /* component type line connects to */
1113 DWORD cChannels; /* number of channels line supports */
1114 DWORD cConnections; /* number of connections [possible] */
1115 DWORD cControls; /* number of controls at this line */
1116 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1117 CHAR szName[MIXER_LONG_NAME_CHARS];
1118 struct {
1119 DWORD dwType; /* MIXERLINE_TARGETTYPE_xxxx */
1120 DWORD dwDeviceID; /* target device ID of device type */
1121 WORD wMid; /* of target device */
1122 WORD wPid; /* " */
1123 MMVERSION16 vDriverVersion; /* " */
1124 CHAR szPname[MAXPNAMELEN]; /* " */
1125 } Target;
1126 } MIXERLINE16, *LPMIXERLINE16;
1128 typedef struct {
1129 DWORD cbStruct;
1130 DWORD dwDestination;
1131 DWORD dwSource;
1132 DWORD dwLineID;
1133 DWORD fdwLine;
1134 DWORD dwUser;
1135 DWORD dwComponentType;
1136 DWORD cChannels;
1137 DWORD cConnections;
1138 DWORD cControls;
1139 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1140 CHAR szName[MIXER_LONG_NAME_CHARS];
1141 struct {
1142 DWORD dwType;
1143 DWORD dwDeviceID;
1144 WORD wMid;
1145 WORD wPid;
1146 MMVERSION vDriverVersion;
1147 CHAR szPname[MAXPNAMELEN];
1148 } Target;
1149 } MIXERLINEA, *LPMIXERLINEA;
1151 typedef struct {
1152 DWORD cbStruct;
1153 DWORD dwDestination;
1154 DWORD dwSource;
1155 DWORD dwLineID;
1156 DWORD fdwLine;
1157 DWORD dwUser;
1158 DWORD dwComponentType;
1159 DWORD cChannels;
1160 DWORD cConnections;
1161 DWORD cControls;
1162 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1163 WCHAR szName[MIXER_LONG_NAME_CHARS];
1164 struct {
1165 DWORD dwType;
1166 DWORD dwDeviceID;
1167 WORD wMid;
1168 WORD wPid;
1169 MMVERSION vDriverVersion;
1170 WCHAR szPname[MAXPNAMELEN];
1171 } Target;
1172 } MIXERLINEW, *LPMIXERLINEW;
1174 DECL_WINELIB_TYPE_AW(MIXERLINE)
1175 DECL_WINELIB_TYPE_AW(LPMIXERLINE)
1177 /* MIXERCONTROL.fdwControl */
1178 #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
1179 #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
1180 #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
1182 /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1183 #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
1184 #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
1185 #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
1186 #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
1187 #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
1188 #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
1189 #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
1190 #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
1191 #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
1193 #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
1195 #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
1196 #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
1198 #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
1200 #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
1201 #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
1203 #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
1204 #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
1206 #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
1207 #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
1208 #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
1209 #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
1210 #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
1211 #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
1212 #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
1214 /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
1215 #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
1216 #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
1217 #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
1218 #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
1219 #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
1220 #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
1221 #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
1222 #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
1223 #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
1224 #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
1225 #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
1226 #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
1227 #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
1228 #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
1229 #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1230 #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
1231 #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
1232 #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
1233 #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
1234 #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
1235 #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
1236 #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
1237 #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
1238 #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
1239 #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1240 #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
1241 #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
1242 #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
1243 #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1244 #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
1247 typedef struct {
1248 DWORD cbStruct; /* size in bytes of MIXERCONTROL */
1249 DWORD dwControlID; /* unique control id for mixer device */
1250 DWORD dwControlType; /* MIXERCONTROL_CONTROLTYPE_xxx */
1251 DWORD fdwControl; /* MIXERCONTROL_CONTROLF_xxx */
1252 DWORD cMultipleItems; /* if MIXERCONTROL_CONTROLF_MULTIPLE set */
1253 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1254 CHAR szName[MIXER_LONG_NAME_CHARS];
1255 union {
1256 struct {
1257 LONG lMinimum; /* signed minimum for this control */
1258 LONG lMaximum; /* signed maximum for this control */
1259 } DUMMYSTRUCTNAME;
1260 struct {
1261 DWORD dwMinimum; /* unsigned minimum for this control */
1262 DWORD dwMaximum; /* unsigned maximum for this control */
1263 } DUMMYSTRUCTNAME1;
1264 DWORD dwReserved[6];
1265 } Bounds;
1266 union {
1267 DWORD cSteps; /* # of steps between min & max */
1268 DWORD cbCustomData; /* size in bytes of custom data */
1269 DWORD dwReserved[6]; /* !!! needed? we have cbStruct.... */
1270 } Metrics;
1271 } MIXERCONTROL16, *LPMIXERCONTROL16;
1273 typedef struct {
1274 DWORD cbStruct;
1275 DWORD dwControlID;
1276 DWORD dwControlType;
1277 DWORD fdwControl;
1278 DWORD cMultipleItems;
1279 CHAR szShortName[MIXER_SHORT_NAME_CHARS];
1280 CHAR szName[MIXER_LONG_NAME_CHARS];
1281 union {
1282 struct {
1283 LONG lMinimum;
1284 LONG lMaximum;
1285 } DUMMYSTRUCTNAME;
1286 struct {
1287 DWORD dwMinimum;
1288 DWORD dwMaximum;
1289 } DUMMYSTRUCTNAME1;
1290 DWORD dwReserved[6];
1291 } Bounds;
1292 union {
1293 DWORD cSteps;
1294 DWORD cbCustomData;
1295 DWORD dwReserved[6];
1296 } Metrics;
1297 } MIXERCONTROLA, *LPMIXERCONTROLA;
1299 typedef struct {
1300 DWORD cbStruct;
1301 DWORD dwControlID;
1302 DWORD dwControlType;
1303 DWORD fdwControl;
1304 DWORD cMultipleItems;
1305 WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
1306 WCHAR szName[MIXER_LONG_NAME_CHARS];
1307 union {
1308 struct {
1309 LONG lMinimum;
1310 LONG lMaximum;
1311 } DUMMYSTRUCTNAME;
1312 struct {
1313 DWORD dwMinimum;
1314 DWORD dwMaximum;
1315 } DUMMYSTRUCTNAME1;
1316 DWORD dwReserved[6];
1317 } Bounds;
1318 union {
1319 DWORD cSteps;
1320 DWORD cbCustomData;
1321 DWORD dwReserved[6];
1322 } Metrics;
1323 } MIXERCONTROLW, *LPMIXERCONTROLW;
1325 DECL_WINELIB_TYPE_AW(MIXERCONTROL)
1326 DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
1328 typedef struct {
1329 DWORD cbStruct; /* size in bytes of MIXERLINECONTROLS */
1330 DWORD dwLineID; /* line id (from MIXERLINE.dwLineID) */
1331 union {
1332 DWORD dwControlID; /* MIXER_GETLINECONTROLSF_ONEBYID */
1333 DWORD dwControlType; /* MIXER_GETLINECONTROLSF_ONEBYTYPE */
1334 } DUMMYUNIONNAME;
1335 DWORD cControls; /* count of controls pmxctrl points to */
1336 DWORD cbmxctrl; /* size in bytes of _one_ MIXERCONTROL */
1337 LPMIXERCONTROL16 pamxctrl;/* pointer to first MIXERCONTROL array */
1338 } MIXERLINECONTROLS16, *LPMIXERLINECONTROLS16;
1340 typedef struct {
1341 DWORD cbStruct;
1342 DWORD dwLineID;
1343 union {
1344 DWORD dwControlID;
1345 DWORD dwControlType;
1346 } DUMMYUNIONNAME;
1347 DWORD cControls;
1348 DWORD cbmxctrl;
1349 LPMIXERCONTROLA pamxctrl;
1350 } MIXERLINECONTROLSA, *LPMIXERLINECONTROLSA;
1352 typedef struct {
1353 DWORD cbStruct;
1354 DWORD dwLineID;
1355 union {
1356 DWORD dwControlID;
1357 DWORD dwControlType;
1358 } DUMMYUNIONNAME;
1359 DWORD cControls;
1360 DWORD cbmxctrl;
1361 LPMIXERCONTROLW pamxctrl;
1362 } MIXERLINECONTROLSW, *LPMIXERLINECONTROLSW;
1364 DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
1365 DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
1367 typedef struct {
1368 DWORD cbStruct; /* size in bytes of MIXERCONTROLDETAILS */
1369 DWORD dwControlID; /* control id to get/set details on */
1370 DWORD cChannels; /* number of channels in paDetails array */
1371 union {
1372 HWND16 hwndOwner; /* for MIXER_SETCONTROLDETAILSF_CUSTOM */
1373 DWORD cMultipleItems; /* if _MULTIPLE, the number of items per channel */
1374 } DUMMYUNIONNAME;
1375 DWORD cbDetails; /* size of _one_ details_XX struct */
1376 LPVOID paDetails; /* pointer to array of details_XX structs */
1377 } MIXERCONTROLDETAILS16,*LPMIXERCONTROLDETAILS16;
1379 typedef struct {
1380 DWORD cbStruct;
1381 DWORD dwControlID;
1382 DWORD cChannels;
1383 union {
1384 HWND hwndOwner;
1385 DWORD cMultipleItems;
1386 } DUMMYUNIONNAME;
1387 DWORD cbDetails;
1388 LPVOID paDetails;
1389 } MIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
1392 typedef struct {
1393 DWORD dwParam1;
1394 DWORD dwParam2;
1395 CHAR szName[MIXER_LONG_NAME_CHARS];
1396 } MIXERCONTROLDETAILS_LISTTEXT16,*LPMIXERCONTROLDETAILS_LISTTEXT16;
1398 typedef struct {
1399 DWORD dwParam1;
1400 DWORD dwParam2;
1401 CHAR szName[MIXER_LONG_NAME_CHARS];
1402 } MIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
1404 typedef struct {
1405 DWORD dwParam1;
1406 DWORD dwParam2;
1407 WCHAR szName[MIXER_LONG_NAME_CHARS];
1408 } MIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
1410 DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
1411 DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
1413 /* MIXER_GETCONTROLDETAILSF_VALUE */
1414 typedef struct {
1415 LONG fValue;
1416 } MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
1418 typedef struct {
1419 LONG lValue;
1420 } MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
1422 typedef struct {
1423 DWORD dwValue;
1424 } MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
1426 /* bits passed to mixerGetLineInfo.fdwInfo */
1427 #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
1428 #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
1429 #define MIXER_GETLINEINFOF_LINEID 0x00000002L
1430 #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
1431 #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
1432 #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
1434 /* bitmask passed to mixerGetLineControl */
1435 #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
1436 #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
1437 #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
1438 #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
1440 /* bitmask passed to mixerGetControlDetails */
1441 #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
1442 #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
1443 #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1445 /* bitmask passed to mixerSetControlDetails */
1446 #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
1447 #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
1448 #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
1450 UINT16 WINAPI mixerGetNumDevs16(void);
1451 UINT WINAPI mixerGetNumDevs(void);
1452 UINT16 WINAPI mixerOpen16(LPHMIXER16,UINT16,DWORD,DWORD,DWORD);
1453 UINT WINAPI mixerOpen(LPHMIXER,UINT,DWORD,DWORD,DWORD);
1454 UINT16 WINAPI mixerClose16(HMIXER16);
1455 UINT WINAPI mixerClose(HMIXER);
1456 UINT16 WINAPI mixerMessage16(HMIXER16,UINT16,DWORD,DWORD);
1457 UINT WINAPI mixerMessage(HMIXER,UINT,DWORD,DWORD);
1458 UINT16 WINAPI mixerGetDevCaps16(UINT16,LPMIXERCAPS16,UINT16);
1459 UINT WINAPI mixerGetDevCapsA(UINT,LPMIXERCAPSA,UINT);
1460 UINT WINAPI mixerGetDevCapsW(UINT,LPMIXERCAPSW,UINT);
1461 #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
1462 UINT16 WINAPI mixerGetLineInfo16(HMIXEROBJ16,LPMIXERLINE16,DWORD);
1463 UINT WINAPI mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
1464 UINT WINAPI mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
1465 #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
1466 UINT16 WINAPI mixerGetID16(HMIXEROBJ16,LPUINT16,DWORD);
1467 UINT WINAPI mixerGetID(HMIXEROBJ,LPUINT,DWORD);
1468 UINT16 WINAPI mixerGetLineControls16(HMIXEROBJ16,LPMIXERLINECONTROLS16,DWORD);
1469 UINT WINAPI mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
1470 UINT WINAPI mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
1471 #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1472 UINT16 WINAPI mixerGetControlDetails16(HMIXEROBJ16,LPMIXERCONTROLDETAILS16,DWORD);
1473 UINT WINAPI mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1474 UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1475 #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
1476 UINT16 WINAPI mixerSetControlDetails16(HMIXEROBJ16,LPMIXERCONTROLDETAILS16,DWORD);
1477 UINT WINAPI mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
1479 #define MMIOERR_BASE 256
1480 #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
1481 #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
1482 #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
1483 #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
1484 #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
1485 #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
1486 #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
1487 #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
1488 #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
1489 #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
1491 #define CFSEPCHAR '+' /* compound file name separator char. */
1493 typedef DWORD FOURCC; /* a four character code */
1494 typedef LRESULT CALLBACK (*LPMMIOPROC16)(LPSTR lpmmioinfo, UINT16 uMessage,
1495 LPARAM lParam1, LPARAM lParam2);
1496 typedef LRESULT CALLBACK (*LPMMIOPROC) (LPSTR lpmmioinfo, UINT uMessage,
1497 LPARAM lParam1, LPARAM lParam2);
1499 typedef struct {
1500 DWORD dwFlags; /* general status flags */
1501 FOURCC fccIOProc; /* pointer to I/O procedure */
1502 LPMMIOPROC16 pIOProc; /* pointer to I/O procedure */
1503 UINT16 wErrorRet; /* place for error to be returned */
1504 HTASK16 hTask; /* alternate local task */
1505 /* fields maintained by MMIO functions during buffered I/O */
1506 LONG cchBuffer; /* size of I/O buffer (or 0L) */
1507 HPSTR pchBuffer; /* start of I/O buffer (or NULL) */
1508 HPSTR pchNext; /* pointer to next byte to read/write */
1509 HPSTR pchEndRead; /* pointer to last valid byte to read */
1510 HPSTR pchEndWrite; /* pointer to last byte to write */
1511 LONG lBufOffset; /* disk offset of start of buffer */
1512 /* fields maintained by I/O procedure */
1513 LONG lDiskOffset; /* disk offset of next read or write */
1514 DWORD adwInfo[3]; /* data specific to type of MMIOPROC */
1515 /* other fields maintained by MMIO */
1516 DWORD dwReserved1; /* reserved for MMIO use */
1517 DWORD dwReserved2; /* reserved for MMIO use */
1518 HMMIO16 hmmio; /* handle to open file */
1519 } MMIOINFO16, *LPMMIOINFO16;
1521 typedef struct {
1522 DWORD dwFlags;
1523 FOURCC fccIOProc;
1524 LPMMIOPROC pIOProc;
1525 UINT wErrorRet;
1526 HTASK hTask;
1527 /* fields maintained by MMIO functions during buffered I/O */
1528 LONG cchBuffer;
1529 HPSTR pchBuffer;
1530 HPSTR pchNext;
1531 HPSTR pchEndRead;
1532 HPSTR pchEndWrite;
1533 LONG lBufOffset;
1534 /* fields maintained by I/O procedure */
1535 LONG lDiskOffset;
1536 DWORD adwInfo[3];
1537 /* other fields maintained by MMIO */
1538 DWORD dwReserved1;
1539 DWORD dwReserved2;
1540 HMMIO hmmio;
1541 } MMIOINFO, *PMMIOINFO, *LPMMIOINFO;
1544 typedef struct _MMCKINFO
1546 FOURCC ckid; /* chunk ID */
1547 DWORD cksize; /* chunk size */
1548 FOURCC fccType; /* form type or list type */
1549 DWORD dwDataOffset; /* offset of data portion of chunk */
1550 DWORD dwFlags; /* flags used by MMIO functions */
1551 } MMCKINFO, *LPMMCKINFO;
1553 #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
1554 #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
1556 #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
1557 #define MMIO_PARSE 0x00000100 /* parse new file returning path */
1558 #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
1559 #define MMIO_EXIST 0x00004000 /* checks for existence of file */
1560 #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
1561 #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
1563 #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
1565 #define MMIO_READ 0x00000000 /* open file for reading only */
1566 #define MMIO_WRITE 0x00000001 /* open file for writing only */
1567 #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
1569 #define MMIO_COMPAT 0x00000000 /* compatibility mode */
1570 #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
1571 #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
1572 #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
1573 #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
1575 #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
1576 #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
1577 #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
1578 #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
1579 #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
1580 #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
1581 #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
1582 #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
1583 #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
1584 #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
1585 #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
1586 #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
1588 #define SEEK_SET 0
1589 #define SEEK_CUR 1
1590 #define SEEK_END 2
1592 #define MMIOM_READ MMIO_READ /* read */
1593 #define MMIOM_WRITE MMIO_WRITE /* write */
1594 #define MMIOM_SEEK 2 /* seek to a new position in file */
1595 #define MMIOM_OPEN 3 /* open file */
1596 #define MMIOM_CLOSE 4 /* close file */
1597 #define MMIOM_WRITEFLUSH 5 /* write and flush */
1599 #define MMIOM_RENAME 6 /* rename specified file */
1601 #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
1603 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
1604 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
1606 #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
1607 #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
1609 #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
1611 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
1612 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
1613 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
1615 LPMMIOPROC16 WINAPI mmioInstallIOProc16(FOURCC,LPMMIOPROC16,DWORD);
1616 LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
1617 LPMMIOPROC WINAPI mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
1618 #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
1620 FOURCC WINAPI mmioStringToFOURCC16(LPCSTR,UINT16);
1621 FOURCC WINAPI mmioStringToFOURCCA(LPCSTR,UINT);
1622 FOURCC WINAPI mmioStringToFOURCCW(LPCWSTR,UINT);
1623 #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1624 HMMIO16 WINAPI mmioOpen16(LPSTR,MMIOINFO16*,DWORD);
1625 HMMIO WINAPI mmioOpenA(LPSTR,MMIOINFO*,DWORD);
1626 HMMIO WINAPI mmioOpenW(LPWSTR,MMIOINFO*,DWORD);
1627 #define mmioOpen WINELIB_NAME_AW(mmioOpen)
1629 UINT16 WINAPI mmioRename16(LPCSTR szFileName, LPCSTR szNewFileName,
1630 MMIOINFO16 * lpmmioinfo, DWORD dwRenameFlags);
1631 UINT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
1632 MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1633 UINT WINAPI mmioRenameW(LPCWSTR szFileName, LPCWSTR szNewFileName,
1634 MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1635 #define mmioRename WINELIB_NAME_AW(mmioRename)
1637 MMRESULT16 WINAPI mmioClose16(HMMIO16,UINT16);
1638 MMRESULT WINAPI mmioClose(HMMIO,UINT);
1639 LONG WINAPI mmioRead16(HMMIO16,HPSTR,LONG);
1640 LONG WINAPI mmioRead(HMMIO,HPSTR,LONG);
1641 LONG WINAPI mmioWrite16(HMMIO16,HPCSTR,LONG);
1642 LONG WINAPI mmioWrite(HMMIO,HPCSTR,LONG);
1643 LONG WINAPI mmioSeek16(HMMIO16,LONG,INT16);
1644 LONG WINAPI mmioSeek(HMMIO,LONG,INT);
1645 MMRESULT16 WINAPI mmioGetInfo16(HMMIO16,MMIOINFO16*,UINT16);
1646 MMRESULT WINAPI mmioGetInfo(HMMIO,MMIOINFO*,UINT);
1647 MMRESULT16 WINAPI mmioSetInfo16(HMMIO16,const MMIOINFO16*,UINT16);
1648 MMRESULT WINAPI mmioSetInfo(HMMIO,const MMIOINFO*,UINT);
1649 UINT16 WINAPI mmioSetBuffer16(HMMIO16,LPSTR,LONG,UINT16);
1650 UINT WINAPI mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
1651 UINT16 WINAPI mmioFlush16(HMMIO16,UINT16);
1652 UINT WINAPI mmioFlush(HMMIO,UINT);
1653 UINT16 WINAPI mmioAdvance16(HMMIO16,MMIOINFO16*,UINT16);
1654 UINT WINAPI mmioAdvance(HMMIO,MMIOINFO*,UINT);
1655 LONG WINAPI mmioSendMessage16(HMMIO16,UINT16,LPARAM,LPARAM);
1656 LONG WINAPI mmioSendMessage(HMMIO,UINT,LPARAM,LPARAM);
1657 UINT16 WINAPI mmioDescend16(HMMIO16,MMCKINFO*,const MMCKINFO*,UINT16);
1658 UINT WINAPI mmioDescend(HMMIO,MMCKINFO*,const MMCKINFO*,UINT);
1659 UINT16 WINAPI mmioAscend16(HMMIO16,MMCKINFO*,UINT16);
1660 UINT WINAPI mmioAscend(HMMIO,MMCKINFO*,UINT);
1661 UINT16 WINAPI mmioCreateChunk16(HMMIO16,MMCKINFO*,UINT16);
1662 UINT WINAPI mmioCreateChunk(HMMIO,MMCKINFO*,UINT);
1664 typedef UINT16 CALLBACK (*YIELDPROC)(UINT16,DWORD);
1666 DWORD WINAPI mciSendCommand16(UINT16,UINT16,DWORD,DWORD);
1667 DWORD WINAPI mciSendCommandA(UINT,UINT,DWORD,DWORD);
1668 DWORD WINAPI mciSendCommandW(UINT,UINT,DWORD,DWORD);
1669 #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
1671 DWORD WINAPI mciSendString16(LPCSTR,LPSTR,UINT16,HWND16);
1672 DWORD WINAPI mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
1673 DWORD WINAPI mciSendStringW(LPCWSTR,LPSTR,UINT,HWND);
1674 #define mciSendString WINELIB_NAME_AW(mciSendString)
1676 UINT16 WINAPI mciGetDeviceID16(LPCSTR);
1677 UINT WINAPI mciGetDeviceIDA(LPCSTR);
1678 UINT WINAPI mciGetDeviceIDW(LPCWSTR);
1679 #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1681 UINT16 WINAPI mciGetDeviceIDFromElementID16(DWORD,LPCSTR);
1683 BOOL16 WINAPI mciGetErrorString16 (DWORD,LPSTR,UINT16);
1684 BOOL WINAPI mciGetErrorStringA(DWORD,LPSTR,UINT);
1685 BOOL WINAPI mciGetErrorStringW(DWORD,LPWSTR,UINT);
1686 #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1688 BOOL16 WINAPI mciSetYieldProc16(UINT16,YIELDPROC,DWORD);
1689 BOOL WINAPI mciSetYieldProc(UINT,YIELDPROC,DWORD);
1691 HTASK16 WINAPI mciGetCreatorTask16(UINT16);
1692 HTASK WINAPI mciGetCreatorTask(UINT);
1694 YIELDPROC WINAPI mciGetYieldProc16(UINT16,DWORD*);
1695 YIELDPROC WINAPI mciGetYieldProc(UINT,DWORD*);
1697 #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
1698 #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
1699 #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
1700 #define MCIERR_HARDWARE (MCIERR_BASE + 6)
1701 #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
1702 #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
1703 #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
1704 #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
1705 #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
1706 #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
1707 #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
1708 #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
1709 #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
1710 #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
1711 #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
1712 #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
1713 #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
1714 #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
1715 #define MCIERR_INTERNAL (MCIERR_BASE + 21)
1716 #define MCIERR_DRIVER (MCIERR_BASE + 22)
1717 #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
1718 #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
1719 #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
1720 #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
1721 #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
1722 #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
1723 #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
1724 #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
1725 #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
1726 #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
1727 #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
1728 #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
1729 #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
1730 #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
1731 #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
1732 #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
1733 #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
1734 #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
1735 #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
1736 #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
1737 #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
1738 #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
1739 #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
1740 #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
1741 #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
1742 #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
1743 #define MCIERR_GET_CD (MCIERR_BASE + 51)
1744 #define MCIERR_SET_CD (MCIERR_BASE + 52)
1745 #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
1746 #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
1747 #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
1748 #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
1750 #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
1751 #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
1752 #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
1753 #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
1754 #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
1755 #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
1756 #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
1757 #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
1758 #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
1759 #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
1761 #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
1762 #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
1763 #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
1764 #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
1765 #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
1766 #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
1767 #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
1768 #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
1770 #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
1771 #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
1772 #define MCIERR_FILE_READ (MCIERR_BASE + 92)
1773 #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
1775 #define MCIERR_NO_IDENTITY (MCIERR_BASE + 94)
1777 #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
1779 #define MCI_OPEN_DRIVER 0x0801
1780 #define MCI_CLOSE_DRIVER 0x0802
1781 #define MCI_OPEN 0x0803
1782 #define MCI_CLOSE 0x0804
1783 #define MCI_ESCAPE 0x0805
1784 #define MCI_PLAY 0x0806
1785 #define MCI_SEEK 0x0807
1786 #define MCI_STOP 0x0808
1787 #define MCI_PAUSE 0x0809
1788 #define MCI_INFO 0x080A
1789 #define MCI_GETDEVCAPS 0x080B
1790 #define MCI_SPIN 0x080C
1791 #define MCI_SET 0x080D
1792 #define MCI_STEP 0x080E
1793 #define MCI_RECORD 0x080F
1794 #define MCI_SYSINFO 0x0810
1795 #define MCI_BREAK 0x0811
1796 #define MCI_SOUND 0x0812
1797 #define MCI_SAVE 0x0813
1798 #define MCI_STATUS 0x0814
1799 #define MCI_CUE 0x0830
1800 #define MCI_REALIZE 0x0840
1801 #define MCI_WINDOW 0x0841
1802 #define MCI_PUT 0x0842
1803 #define MCI_WHERE 0x0843
1804 #define MCI_FREEZE 0x0844
1805 #define MCI_UNFREEZE 0x0845
1806 #define MCI_LOAD 0x0850
1807 #define MCI_CUT 0x0851
1808 #define MCI_COPY 0x0852
1809 #define MCI_PASTE 0x0853
1810 #define MCI_UPDATE 0x0854
1811 #define MCI_RESUME 0x0855
1812 #define MCI_DELETE 0x0856
1814 #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
1816 #define MCI_ALL_DEVICE_ID 0xFFFF
1818 #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
1819 #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
1820 #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
1821 #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
1822 #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
1823 #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
1824 #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
1825 #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
1826 #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
1827 #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
1828 #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
1830 #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
1831 #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
1833 #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
1834 #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
1835 #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
1836 #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
1837 #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
1838 #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
1839 #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
1841 #define MCI_FORMAT_MILLISECONDS 0
1842 #define MCI_FORMAT_HMS 1
1843 #define MCI_FORMAT_MSF 2
1844 #define MCI_FORMAT_FRAMES 3
1845 #define MCI_FORMAT_SMPTE_24 4
1846 #define MCI_FORMAT_SMPTE_25 5
1847 #define MCI_FORMAT_SMPTE_30 6
1848 #define MCI_FORMAT_SMPTE_30DROP 7
1849 #define MCI_FORMAT_BYTES 8
1850 #define MCI_FORMAT_SAMPLES 9
1851 #define MCI_FORMAT_TMSF 10
1853 #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
1854 #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
1855 #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
1857 #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
1858 ((WORD)(s)<<8)) | \
1859 (((DWORD)(BYTE)(f))<<16)))
1861 #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
1862 #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
1863 #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
1864 #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
1866 #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
1867 ((WORD)(m)<<8)) | \
1868 (((DWORD)(BYTE)(s) | \
1869 ((WORD)(f)<<8))<<16)))
1871 #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
1872 #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
1873 #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
1875 #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
1876 ((WORD)(m)<<8)) | \
1877 (((DWORD)(BYTE)(s))<<16)))
1879 #define MCI_NOTIFY_SUCCESSFUL 0x0001
1880 #define MCI_NOTIFY_SUPERSEDED 0x0002
1881 #define MCI_NOTIFY_ABORTED 0x0004
1882 #define MCI_NOTIFY_FAILURE 0x0008
1884 #define MCI_NOTIFY 0x00000001L
1885 #define MCI_WAIT 0x00000002L
1886 #define MCI_FROM 0x00000004L
1887 #define MCI_TO 0x00000008L
1888 #define MCI_TRACK 0x00000010L
1890 #define MCI_OPEN_SHAREABLE 0x00000100L
1891 #define MCI_OPEN_ELEMENT 0x00000200L
1892 #define MCI_OPEN_ALIAS 0x00000400L
1893 #define MCI_OPEN_ELEMENT_ID 0x00000800L
1894 #define MCI_OPEN_TYPE_ID 0x00001000L
1895 #define MCI_OPEN_TYPE 0x00002000L
1897 #define MCI_SEEK_TO_START 0x00000100L
1898 #define MCI_SEEK_TO_END 0x00000200L
1900 #define MCI_STATUS_ITEM 0x00000100L
1901 #define MCI_STATUS_START 0x00000200L
1903 #define MCI_STATUS_LENGTH 0x00000001L
1904 #define MCI_STATUS_POSITION 0x00000002L
1905 #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
1906 #define MCI_STATUS_MODE 0x00000004L
1907 #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
1908 #define MCI_STATUS_TIME_FORMAT 0x00000006L
1909 #define MCI_STATUS_READY 0x00000007L
1910 #define MCI_STATUS_CURRENT_TRACK 0x00000008L
1912 #define MCI_INFO_PRODUCT 0x00000100L
1913 #define MCI_INFO_FILE 0x00000200L
1914 #define MCI_INFO_MEDIA_UPC 0x00000400L
1915 #define MCI_INFO_MEDIA_IDENTITY 0x00000800L
1916 #define MCI_INFO_NAME 0x00001000L
1917 #define MCI_INFO_COPYRIGHT 0x00002000L
1919 #define MCI_GETDEVCAPS_ITEM 0x00000100L
1921 #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
1922 #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
1923 #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
1924 #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
1925 #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
1926 #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
1927 #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
1928 #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
1929 #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
1931 #define MCI_SYSINFO_QUANTITY 0x00000100L
1932 #define MCI_SYSINFO_OPEN 0x00000200L
1933 #define MCI_SYSINFO_NAME 0x00000400L
1934 #define MCI_SYSINFO_INSTALLNAME 0x00000800L
1936 #define MCI_SET_DOOR_OPEN 0x00000100L
1937 #define MCI_SET_DOOR_CLOSED 0x00000200L
1938 #define MCI_SET_TIME_FORMAT 0x00000400L
1939 #define MCI_SET_AUDIO 0x00000800L
1940 #define MCI_SET_VIDEO 0x00001000L
1941 #define MCI_SET_ON 0x00002000L
1942 #define MCI_SET_OFF 0x00004000L
1944 #define MCI_SET_AUDIO_ALL 0x00000000L
1945 #define MCI_SET_AUDIO_LEFT 0x00000001L
1946 #define MCI_SET_AUDIO_RIGHT 0x00000002L
1948 #define MCI_BREAK_KEY 0x00000100L
1949 #define MCI_BREAK_HWND 0x00000200L
1950 #define MCI_BREAK_OFF 0x00000400L
1952 #define MCI_RECORD_INSERT 0x00000100L
1953 #define MCI_RECORD_OVERWRITE 0x00000200L
1955 #define MCI_SOUND_NAME 0x00000100L
1957 #define MCI_SAVE_FILE 0x00000100L
1959 #define MCI_LOAD_FILE 0x00000100L
1961 typedef struct {
1962 DWORD dwCallback;
1963 } MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
1965 typedef struct {
1966 DWORD dwCallback;
1967 WORD wDeviceID;
1968 WORD wReserved0;
1969 LPSTR lpstrDeviceType;
1970 LPSTR lpstrElementName;
1971 LPSTR lpstrAlias;
1972 } MCI_OPEN_PARMS16, *LPMCI_OPEN_PARMS16;
1974 typedef struct {
1975 DWORD dwCallback;
1976 MCIDEVICEID wDeviceID;
1977 LPSTR lpstrDeviceType;
1978 LPSTR lpstrElementName;
1979 LPSTR lpstrAlias;
1980 } MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
1982 typedef struct {
1983 DWORD dwCallback;
1984 MCIDEVICEID wDeviceID;
1985 LPWSTR lpstrDeviceType;
1986 LPWSTR lpstrElementName;
1987 LPWSTR lpstrAlias;
1988 } MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
1990 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
1991 DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
1993 typedef struct {
1994 DWORD dwCallback;
1995 DWORD dwFrom;
1996 DWORD dwTo;
1997 } MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
1999 typedef struct {
2000 DWORD dwCallback;
2001 DWORD dwTo;
2002 } MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
2004 typedef struct {
2005 DWORD dwCallback;
2006 DWORD dwReturn;
2007 DWORD dwItem;
2008 DWORD dwTrack;
2009 } MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
2011 typedef struct {
2012 DWORD dwCallback;
2013 LPSTR lpstrReturn;
2014 DWORD dwRetSize;
2015 } MCI_INFO_PARMS16, *LPMCI_INFO_PARMS16;
2017 typedef struct {
2018 DWORD dwCallback;
2019 LPSTR lpstrReturn;
2020 DWORD dwRetSize;
2021 } MCI_INFO_PARMSA, *LPMCI_INFO_PARMSA;
2023 typedef struct {
2024 DWORD dwCallback;
2025 LPSTR lpstrReturn;
2026 DWORD dwRetSize;
2027 } MCI_INFO_PARMSW, *LPMCI_INFO_PARMSW;
2029 DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
2030 DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
2032 typedef struct {
2033 DWORD dwCallback;
2034 DWORD dwReturn;
2035 DWORD dwItem;
2036 } MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
2038 typedef struct {
2039 DWORD dwCallback;
2040 LPSTR lpstrReturn;
2041 DWORD dwRetSize;
2042 DWORD dwNumber;
2043 WORD wDeviceType;
2044 WORD wReserved0;
2045 } MCI_SYSINFO_PARMS16, *LPMCI_SYSINFO_PARMS16;
2047 typedef struct {
2048 DWORD dwCallback;
2049 LPSTR lpstrReturn;
2050 DWORD dwRetSize;
2051 DWORD dwNumber;
2052 UINT wDeviceType;
2053 } MCI_SYSINFO_PARMSA, *LPMCI_SYSINFO_PARMSA;
2055 typedef struct {
2056 DWORD dwCallback;
2057 LPWSTR lpstrReturn;
2058 DWORD dwRetSize;
2059 DWORD dwNumber;
2060 UINT wDeviceType;
2061 } MCI_SYSINFO_PARMSW, *LPMCI_SYSINFO_PARMSW;
2063 DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
2064 DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
2066 typedef struct {
2067 DWORD dwCallback;
2068 DWORD dwTimeFormat;
2069 DWORD dwAudio;
2070 } MCI_SET_PARMS, *LPMCI_SET_PARMS;
2072 typedef struct {
2073 DWORD dwCallback;
2074 UINT16 nVirtKey;
2075 WORD wReserved0;
2076 HWND16 hwndBreak;
2077 WORD wReserved1;
2078 } MCI_BREAK_PARMS16, *LPMCI_BREAK_PARMS16;
2080 typedef struct {
2081 DWORD dwCallback;
2082 INT nVirtKey;
2083 HWND hwndBreak;
2084 } MCI_BREAK_PARMS, *LPMCI_BREAK_PARMS;
2087 typedef struct {
2088 DWORD dwCallback;
2089 LPCSTR lpstrSoundName;
2090 } MCI_SOUND_PARMS, *LPMCI_SOUND_PARMS;
2092 typedef struct {
2093 DWORD dwCallback;
2094 LPCSTR lpfilename;
2095 } MCI_SAVE_PARMS, *LPMCI_SAVE_PARMS;
2097 typedef struct {
2098 DWORD dwCallback;
2099 LPCSTR lpfilename;
2100 } MCI_LOAD_PARMS16, *LPMCI_LOAD_PARMS16;
2102 typedef struct {
2103 DWORD dwCallback;
2104 LPCSTR lpfilename;
2105 } MCI_LOAD_PARMSA, *LPMCI_LOAD_PARMSA;
2107 typedef struct {
2108 DWORD dwCallback;
2109 LPCWSTR lpfilename;
2110 } MCI_LOAD_PARMSW, *LPMCI_LOAD_PARMSW;
2112 DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
2113 DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
2115 typedef struct {
2116 DWORD dwCallback;
2117 DWORD dwFrom;
2118 DWORD dwTo;
2119 } MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
2121 #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
2123 #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
2124 #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
2126 #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
2128 #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
2129 #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
2130 #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
2132 #define MCI_VD_FORMAT_TRACK 0x4001
2134 #define MCI_VD_PLAY_REVERSE 0x00010000L
2135 #define MCI_VD_PLAY_FAST 0x00020000L
2136 #define MCI_VD_PLAY_SPEED 0x00040000L
2137 #define MCI_VD_PLAY_SCAN 0x00080000L
2138 #define MCI_VD_PLAY_SLOW 0x00100000L
2140 #define MCI_VD_SEEK_REVERSE 0x00010000L
2142 #define MCI_VD_STATUS_SPEED 0x00004002L
2143 #define MCI_VD_STATUS_FORWARD 0x00004003L
2144 #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
2145 #define MCI_VD_STATUS_SIDE 0x00004005L
2146 #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
2148 #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
2149 #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
2151 #define MCI_VD_SPIN_UP 0x00010000L
2152 #define MCI_VD_SPIN_DOWN 0x00020000L
2154 #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
2155 #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
2156 #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
2157 #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
2159 #define MCI_VD_STEP_FRAMES 0x00010000L
2160 #define MCI_VD_STEP_REVERSE 0x00020000L
2162 #define MCI_VD_ESCAPE_STRING 0x00000100L
2164 typedef struct {
2165 DWORD dwCallback;
2166 DWORD dwFrom;
2167 DWORD dwTo;
2168 DWORD dwSpeed;
2169 } MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
2171 typedef struct {
2172 DWORD dwCallback;
2173 DWORD dwFrames;
2174 } MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
2176 typedef struct {
2177 DWORD dwCallback;
2178 LPCSTR lpstrCommand;
2179 } MCI_VD_ESCAPE_PARMS16, *LPMCI_VD_ESCAPE_PARMS16;
2181 typedef struct {
2182 DWORD dwCallback;
2183 LPCSTR lpstrCommand;
2184 } MCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA;
2186 typedef struct {
2187 DWORD dwCallback;
2188 LPCWSTR lpstrCommand;
2189 } MCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW;
2191 DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
2192 DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
2194 #define MCI_WAVE_OPEN_BUFFER 0x00010000L
2196 #define MCI_WAVE_SET_FORMATTAG 0x00010000L
2197 #define MCI_WAVE_SET_CHANNELS 0x00020000L
2198 #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
2199 #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
2200 #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
2201 #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
2203 #define MCI_WAVE_INPUT 0x00400000L
2204 #define MCI_WAVE_OUTPUT 0x00800000L
2206 #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
2207 #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
2208 #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
2209 #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
2210 #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
2211 #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
2212 #define MCI_WAVE_STATUS_LEVEL 0x00004007L
2214 #define MCI_WAVE_SET_ANYINPUT 0x04000000L
2215 #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
2217 #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
2218 #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
2220 typedef struct {
2221 DWORD dwCallback;
2222 MCIDEVICEID16 wDeviceID;
2223 WORD wReserved0;
2224 SEGPTR lpstrDeviceType;
2225 SEGPTR lpstrElementName;
2226 SEGPTR lpstrAlias;
2227 DWORD dwBufferSeconds;
2228 } MCI_WAVE_OPEN_PARMS16, *LPMCI_WAVE_OPEN_PARMS16;
2230 typedef struct {
2231 DWORD dwCallback;
2232 MCIDEVICEID wDeviceID;
2233 LPCSTR lpstrDeviceType;
2234 LPCSTR lpstrElementName;
2235 LPCSTR lpstrAlias;
2236 DWORD dwBufferSeconds;
2237 } MCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA;
2239 typedef struct {
2240 DWORD dwCallback;
2241 MCIDEVICEID wDeviceID;
2242 LPCWSTR lpstrDeviceType;
2243 LPCWSTR lpstrElementName;
2244 LPCWSTR lpstrAlias;
2245 DWORD dwBufferSeconds;
2246 } MCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW;
2248 DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
2249 DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
2251 typedef struct {
2252 DWORD dwCallback;
2253 DWORD dwFrom;
2254 DWORD dwTo;
2255 } MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
2257 typedef struct {
2258 DWORD dwCallback;
2259 DWORD dwTimeFormat;
2260 DWORD dwAudio;
2261 UINT16 wInput;
2262 UINT16 wReserved0;
2263 UINT16 wOutput;
2264 UINT16 wReserved1;
2265 UINT16 wFormatTag;
2266 UINT16 wReserved2;
2267 UINT16 nChannels;
2268 UINT16 wReserved3;
2269 DWORD nSamplesPerSec;
2270 DWORD nAvgBytesPerSec;
2271 UINT16 nBlockAlign;
2272 UINT16 wReserved4;
2273 UINT16 wBitsPerSample;
2274 UINT16 wReserved5;
2275 } MCI_WAVE_SET_PARMS16, * LPMCI_WAVE_SET_PARMS16;
2277 typedef struct {
2278 DWORD dwCallback;
2279 DWORD dwTimeFormat;
2280 DWORD dwAudio;
2281 UINT wInput;
2282 UINT wOutput;
2283 UINT wFormatTag;
2284 UINT nChannels;
2285 DWORD nSamplesPerSec;
2286 DWORD nAvgBytesPerSec;
2287 UINT nBlockAlign;
2288 UINT wBitsPerSample;
2289 } MCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS;
2292 #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
2293 #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
2294 #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
2295 #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
2296 #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
2298 #define MCI_SEQ_FORMAT_SONGPTR 0x4001
2299 #define MCI_SEQ_FILE 0x4002
2300 #define MCI_SEQ_MIDI 0x4003
2301 #define MCI_SEQ_SMPTE 0x4004
2302 #define MCI_SEQ_NONE 65533
2304 #define MCI_SEQ_STATUS_TEMPO 0x00004002L
2305 #define MCI_SEQ_STATUS_PORT 0x00004003L
2306 #define MCI_SEQ_STATUS_SLAVE 0x00004007L
2307 #define MCI_SEQ_STATUS_MASTER 0x00004008L
2308 #define MCI_SEQ_STATUS_OFFSET 0x00004009L
2309 #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
2311 #define MCI_SEQ_SET_TEMPO 0x00010000L
2312 #define MCI_SEQ_SET_PORT 0x00020000L
2313 #define MCI_SEQ_SET_SLAVE 0x00040000L
2314 #define MCI_SEQ_SET_MASTER 0x00080000L
2315 #define MCI_SEQ_SET_OFFSET 0x01000000L
2317 typedef struct {
2318 DWORD dwCallback;
2319 DWORD dwTimeFormat;
2320 DWORD dwAudio;
2321 DWORD dwTempo;
2322 DWORD dwPort;
2323 DWORD dwSlave;
2324 DWORD dwMaster;
2325 DWORD dwOffset;
2326 } MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
2328 #define MCI_ANIM_OPEN_WS 0x00010000L
2329 #define MCI_ANIM_OPEN_PARENT 0x00020000L
2330 #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
2332 #define MCI_ANIM_PLAY_SPEED 0x00010000L
2333 #define MCI_ANIM_PLAY_REVERSE 0x00020000L
2334 #define MCI_ANIM_PLAY_FAST 0x00040000L
2335 #define MCI_ANIM_PLAY_SLOW 0x00080000L
2336 #define MCI_ANIM_PLAY_SCAN 0x00100000L
2338 #define MCI_ANIM_STEP_REVERSE 0x00010000L
2339 #define MCI_ANIM_STEP_FRAMES 0x00020000L
2341 #define MCI_ANIM_STATUS_SPEED 0x00004001L
2342 #define MCI_ANIM_STATUS_FORWARD 0x00004002L
2343 #define MCI_ANIM_STATUS_HWND 0x00004003L
2344 #define MCI_ANIM_STATUS_HPAL 0x00004004L
2345 #define MCI_ANIM_STATUS_STRETCH 0x00004005L
2347 #define MCI_ANIM_INFO_TEXT 0x00010000L
2349 #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
2350 #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
2351 #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
2352 #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
2353 #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
2354 #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
2355 #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
2357 #define MCI_ANIM_REALIZE_NORM 0x00010000L
2358 #define MCI_ANIM_REALIZE_BKGD 0x00020000L
2360 #define MCI_ANIM_WINDOW_HWND 0x00010000L
2361 #define MCI_ANIM_WINDOW_STATE 0x00040000L
2362 #define MCI_ANIM_WINDOW_TEXT 0x00080000L
2363 #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
2364 #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
2366 #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
2368 #define MCI_ANIM_RECT 0x00010000L
2369 #define MCI_ANIM_PUT_SOURCE 0x00020000L
2370 #define MCI_ANIM_PUT_DESTINATION 0x00040000L
2372 #define MCI_ANIM_WHERE_SOURCE 0x00020000L
2373 #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
2375 #define MCI_ANIM_UPDATE_HDC 0x00020000L
2377 typedef struct {
2378 DWORD dwCallback;
2379 UINT16 wDeviceID;
2380 UINT16 wReserved0;
2381 SEGPTR lpstrDeviceType;
2382 SEGPTR lpstrElementName;
2383 SEGPTR lpstrAlias;
2384 DWORD dwStyle;
2385 HWND16 hWndParent;
2386 UINT16 wReserved1;
2387 } MCI_ANIM_OPEN_PARMS16, *LPMCI_ANIM_OPEN_PARMS16;
2389 typedef struct {
2390 DWORD dwCallback;
2391 MCIDEVICEID wDeviceID;
2392 LPCSTR lpstrDeviceType;
2393 LPCSTR lpstrElementName;
2394 LPCSTR lpstrAlias;
2395 DWORD dwStyle;
2396 HWND hWndParent;
2397 } MCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA;
2399 typedef struct {
2400 DWORD dwCallback;
2401 MCIDEVICEID wDeviceID;
2402 LPCWSTR lpstrDeviceType;
2403 LPCWSTR lpstrElementName;
2404 LPCWSTR lpstrAlias;
2405 DWORD dwStyle;
2406 HWND hWndParent;
2407 } MCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW;
2409 DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
2410 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
2412 typedef struct {
2413 DWORD dwCallback;
2414 DWORD dwFrom;
2415 DWORD dwTo;
2416 DWORD dwSpeed;
2417 } MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
2419 typedef struct {
2420 DWORD dwCallback;
2421 DWORD dwFrames;
2422 } MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
2424 typedef struct {
2425 DWORD dwCallback;
2426 HWND16 hWnd;
2427 WORD wReserved1;
2428 WORD nCmdShow;
2429 WORD wReserved2;
2430 LPCSTR lpstrText;
2431 } MCI_ANIM_WINDOW_PARMS16, *LPMCI_ANIM_WINDOW_PARMS16;
2433 typedef struct {
2434 DWORD dwCallback;
2435 HWND hWnd;
2436 UINT nCmdShow;
2437 LPCSTR lpstrText;
2438 } MCI_ANIM_WINDOW_PARMSA, *LPMCI_ANIM_WINDOW_PARMSA;
2440 typedef struct {
2441 DWORD dwCallback;
2442 HWND hWnd;
2443 UINT nCmdShow;
2444 LPCWSTR lpstrText;
2445 } MCI_ANIM_WINDOW_PARMSW, *LPMCI_ANIM_WINDOW_PARMSW;
2447 DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
2448 DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
2450 typedef struct {
2451 DWORD dwCallback;
2452 #ifdef MCI_USE_OFFEXT
2453 POINT16 ptOffset;
2454 POINT16 ptExtent;
2455 #else /* ifdef MCI_USE_OFFEXT */
2456 RECT16 rc;
2457 #endif /* ifdef MCI_USE_OFFEXT */
2458 } MCI_ANIM_RECT_PARMS16, *LPMCI_ANIM_RECT_PARMS16;
2460 typedef struct {
2461 DWORD dwCallback;
2462 #ifdef MCI_USE_OFFEXT
2463 POINT ptOffset;
2464 POINT ptExtent;
2465 #else /* ifdef MCI_USE_OFFEXT */
2466 RECT rc;
2467 #endif /* ifdef MCI_USE_OFFEXT */
2468 } MCI_ANIM_RECT_PARMS, *LPMCI_ANIM_RECT_PARMS;
2471 typedef struct {
2472 DWORD dwCallback;
2473 RECT16 rc;
2474 HDC16 hDC;
2475 } MCI_ANIM_UPDATE_PARMS16, *LPMCI_ANIM_UPDATE_PARMS16;
2477 typedef struct {
2478 DWORD dwCallback;
2479 RECT rc;
2480 HDC hDC;
2481 } MCI_ANIM_UPDATE_PARMS, *LPMCI_ANIM_UPDATE_PARMS;
2484 #define MCI_OVLY_OPEN_WS 0x00010000L
2485 #define MCI_OVLY_OPEN_PARENT 0x00020000L
2487 #define MCI_OVLY_STATUS_HWND 0x00004001L
2488 #define MCI_OVLY_STATUS_STRETCH 0x00004002L
2490 #define MCI_OVLY_INFO_TEXT 0x00010000L
2492 #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
2493 #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
2494 #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
2496 #define MCI_OVLY_WINDOW_HWND 0x00010000L
2497 #define MCI_OVLY_WINDOW_STATE 0x00040000L
2498 #define MCI_OVLY_WINDOW_TEXT 0x00080000L
2499 #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
2500 #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
2502 #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
2504 #define MCI_OVLY_RECT 0x00010000L
2505 #define MCI_OVLY_PUT_SOURCE 0x00020000L
2506 #define MCI_OVLY_PUT_DESTINATION 0x00040000L
2507 #define MCI_OVLY_PUT_FRAME 0x00080000L
2508 #define MCI_OVLY_PUT_VIDEO 0x00100000L
2510 #define MCI_OVLY_WHERE_SOURCE 0x00020000L
2511 #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
2512 #define MCI_OVLY_WHERE_FRAME 0x00080000L
2513 #define MCI_OVLY_WHERE_VIDEO 0x00100000L
2515 typedef struct {
2516 DWORD dwCallback;
2517 MCIDEVICEID16 wDeviceID;
2518 WORD wReserved0;
2519 LPCSTR lpstrDeviceType;
2520 LPCSTR lpstrElementName;
2521 LPCSTR lpstrAlias;
2522 DWORD dwStyle;
2523 HWND16 hWndParent;
2524 WORD wReserved1;
2525 } MCI_OVLY_OPEN_PARMS16, *LPMCI_OVLY_OPEN_PARMS16;
2527 typedef struct {
2528 DWORD dwCallback;
2529 MCIDEVICEID wDeviceID;
2530 LPCSTR lpstrDeviceType;
2531 LPCSTR lpstrElementName;
2532 LPCSTR lpstrAlias;
2533 DWORD dwStyle;
2534 HWND hWndParent;
2535 } MCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA;
2537 typedef struct {
2538 DWORD dwCallback;
2539 MCIDEVICEID wDeviceID;
2540 LPCWSTR lpstrDeviceType;
2541 LPCWSTR lpstrElementName;
2542 LPCWSTR lpstrAlias;
2543 DWORD dwStyle;
2544 HWND hWndParent;
2545 } MCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW;
2547 DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
2548 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
2550 typedef struct {
2551 DWORD dwCallback;
2552 HWND16 hWnd;
2553 WORD wReserved1;
2554 UINT16 nCmdShow;
2555 WORD wReserved2;
2556 LPCSTR lpstrText;
2557 } MCI_OVLY_WINDOW_PARMS16, *LPMCI_OVLY_WINDOW_PARMS16;
2559 typedef struct {
2560 DWORD dwCallback;
2561 HWND hWnd;
2562 UINT nCmdShow;
2563 LPCSTR lpstrText;
2564 } MCI_OVLY_WINDOW_PARMSA, *LPMCI_OVLY_WINDOW_PARMSA;
2566 typedef struct {
2567 DWORD dwCallback;
2568 HWND hWnd;
2569 UINT nCmdShow;
2570 LPCWSTR lpstrText;
2571 } MCI_OVLY_WINDOW_PARMSW, *LPMCI_OVLY_WINDOW_PARMSW;
2573 DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
2574 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
2576 typedef struct {
2577 DWORD dwCallback;
2578 #ifdef MCI_USE_OFFEXT
2579 POINT16 ptOffset;
2580 POINT16 ptExtent;
2581 #else /* ifdef MCI_USE_OFFEXT */
2582 RECT16 rc;
2583 #endif /* ifdef MCI_USE_OFFEXT */
2584 } MCI_OVLY_RECT_PARMS16, *LPMCI_OVLY_RECT_PARMS16;
2586 typedef struct {
2587 DWORD dwCallback;
2588 #ifdef MCI_USE_OFFEXT
2589 POINT ptOffset;
2590 POINT ptExtent;
2591 #else /* ifdef MCI_USE_OFFEXT */
2592 RECT rc;
2593 #endif /* ifdef MCI_USE_OFFEXT */
2594 } MCI_OVLY_RECT_PARMS, *LPMCI_OVLY_RECT_PARMS;
2597 typedef struct {
2598 DWORD dwCallback;
2599 LPCSTR lpfilename;
2600 RECT16 rc;
2601 } MCI_OVLY_SAVE_PARMS16, *LPMCI_OVLY_SAVE_PARMS16;
2603 typedef struct {
2604 DWORD dwCallback;
2605 LPCSTR lpfilename;
2606 RECT rc;
2607 } MCI_OVLY_SAVE_PARMSA, *LPMCI_OVLY_SAVE_PARMSA;
2609 typedef struct {
2610 DWORD dwCallback;
2611 LPCWSTR lpfilename;
2612 RECT rc;
2613 } MCI_OVLY_SAVE_PARMSW, *LPMCI_OVLY_SAVE_PARMSW;
2615 DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
2616 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
2618 typedef struct {
2619 DWORD dwCallback;
2620 LPCSTR lpfilename;
2621 RECT16 rc;
2622 } MCI_OVLY_LOAD_PARMS16, *LPMCI_OVLY_LOAD_PARMS16;
2624 typedef struct {
2625 DWORD dwCallback;
2626 LPCSTR lpfilename;
2627 RECT rc;
2628 } MCI_OVLY_LOAD_PARMSA, *LPMCI_OVLY_LOAD_PARMSA;
2630 typedef struct {
2631 DWORD dwCallback;
2632 LPCWSTR lpfilename;
2633 RECT rc;
2634 } MCI_OVLY_LOAD_PARMSW, *LPMCI_OVLY_LOAD_PARMSW;
2636 DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
2637 DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
2639 #include "poppack.h"
2641 #ifdef __cplusplus
2643 #endif
2645 #endif /* __WINE_MMSYSTEM_H */