mmsystem.h 91.5 KB
Newer Older
1
/*
Alexandre Julliard's avatar
Alexandre Julliard committed
2
 * MMSYSTEM - Multimedia Wine Extension ... :-)
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
 *
 * Copyright (C) the Wine project
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Alexandre Julliard's avatar
Alexandre Julliard committed
19 20
 */

Alexandre Julliard's avatar
Alexandre Julliard committed
21 22
#ifndef __WINE_MMSYSTEM_H
#define __WINE_MMSYSTEM_H
Alexandre Julliard's avatar
Alexandre Julliard committed
23

24 25
#ifdef __cplusplus
extern "C" {
26
#endif
27

28 29
typedef LPSTR		HPSTR;          /* a huge version of LPSTR */
typedef LPCSTR		HPCSTR;         /* a huge version of LPCSTR */
30
typedef UINT*           LPUINT;
31

32
DECLARE_HANDLE(HDRVR);
33 34 35
DECLARE_HANDLE(HWAVE);
DECLARE_HANDLE(HWAVEIN);
DECLARE_HANDLE(HWAVEOUT);
36 37 38 39
DECLARE_HANDLE(HMIDI);
DECLARE_HANDLE(HMIDIIN);
DECLARE_HANDLE(HMIDIOUT);
DECLARE_HANDLE(HMIDISTRM);
40 41
DECLARE_HANDLE(HMIXER);
DECLARE_HANDLE(HMIXEROBJ);
42
DECLARE_HANDLE(HMMIO);
43

44 45 46 47 48 49 50 51 52
typedef HMIDI *LPHMIDI;
typedef HMIDIIN *LPHMIDIIN;
typedef HMIDIOUT *LPHMIDIOUT;
typedef HMIDISTRM *LPHMIDISTRM;
typedef HMIXER *LPHMIXER;
typedef HMIXEROBJ *LPHMIXEROBJ;
typedef HWAVEIN *LPHWAVEIN;
typedef HWAVEOUT *LPHWAVEOUT;

53
#include <pshpack1.h>
54

55
typedef LRESULT (CALLBACK *DRIVERPROC)(DWORD_PTR,HDRVR,UINT,LPARAM,LPARAM);
56

Alexandre Julliard's avatar
Alexandre Julliard committed
57 58 59 60 61
#define MAXWAVEDRIVERS	10
#define MAXMIDIDRIVERS	10
#define MAXAUXDRIVERS	10
#define MAXMCIDRIVERS	32
#define MAXMIXERDRIVERS	10
62

Alexandre Julliard's avatar
Alexandre Julliard committed
63
#define MAXPNAMELEN      32     /* max product name length (including NULL) */
64
#define MAXERRORLENGTH   256    /* max error text length (including NULL) */
Alexandre Julliard's avatar
Alexandre Julliard committed
65
#define MAX_JOYSTICKOEMVXDNAME	260
66

Eric Pouech's avatar
Eric Pouech committed
67 68
#ifndef _MCIERROR_
#define _MCIERROR_
69
typedef DWORD   MCIERROR;
Eric Pouech's avatar
Eric Pouech committed
70
#endif
71
typedef UINT	MMVERSION;
Eric Pouech's avatar
Eric Pouech committed
72 73
#ifndef _MCIDEVICEID_
#define _MCIDEVICEID_
74
typedef UINT	MCIDEVICEID;
Eric Pouech's avatar
Eric Pouech committed
75
#endif
76
typedef	UINT	MMRESULT;
Alexandre Julliard's avatar
Alexandre Julliard committed
77

78
typedef struct mmtime_tag {
79
    UINT    wType;
Alexandre Julliard's avatar
Alexandre Julliard committed
80 81 82 83
    union {
	DWORD ms;
	DWORD sample;
	DWORD cb;
84
        DWORD ticks;
Alexandre Julliard's avatar
Alexandre Julliard committed
85 86 87 88 89 90 91 92 93 94 95 96 97
	struct {
	    BYTE hour;
	    BYTE min;
	    BYTE sec;
	    BYTE frame;
	    BYTE fps;
	    BYTE dummy;
	    BYTE pad[2];
	} smpte;
	struct {
	    DWORD songptrpos;
	} midi;
    } u;
98
} MMTIME, *PMMTIME, *LPMMTIME;
Alexandre Julliard's avatar
Alexandre Julliard committed
99 100 101 102 103 104

#define TIME_MS         0x0001  /* time in milliseconds */
#define TIME_SAMPLES    0x0002  /* number of wave samples */
#define TIME_BYTES      0x0004  /* current byte offset */
#define TIME_SMPTE      0x0008  /* SMPTE time */
#define TIME_MIDI       0x0010  /* MIDI time */
105
#define TIME_TICKS	0x0020  /* MIDI ticks */
Alexandre Julliard's avatar
Alexandre Julliard committed
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135

#define MM_JOY1MOVE         0x3A0           /* joystick */
#define MM_JOY2MOVE         0x3A1
#define MM_JOY1ZMOVE        0x3A2
#define MM_JOY2ZMOVE        0x3A3
#define MM_JOY1BUTTONDOWN   0x3B5
#define MM_JOY2BUTTONDOWN   0x3B6
#define MM_JOY1BUTTONUP     0x3B7
#define MM_JOY2BUTTONUP     0x3B8

#define MM_MCINOTIFY        0x3B9           /* MCI */

#define MM_WOM_OPEN         0x3BB           /* waveform output */
#define MM_WOM_CLOSE        0x3BC
#define MM_WOM_DONE         0x3BD

#define MM_WIM_OPEN         0x3BE           /* waveform input */
#define MM_WIM_CLOSE        0x3BF
#define MM_WIM_DATA         0x3C0

#define MM_MIM_OPEN         0x3C1           /* MIDI input */
#define MM_MIM_CLOSE        0x3C2
#define MM_MIM_DATA         0x3C3
#define MM_MIM_LONGDATA     0x3C4
#define MM_MIM_ERROR        0x3C5
#define MM_MIM_LONGERROR    0x3C6

#define MM_MOM_OPEN         0x3C7           /* MIDI output */
#define MM_MOM_CLOSE        0x3C8
#define MM_MOM_DONE         0x3C9
136
#define MM_MOM_POSITIONCB   0x3CA
Alexandre Julliard's avatar
Alexandre Julliard committed
137

138 139
#define MM_MIM_MOREDATA     0x3CC

140 141 142
#define MM_MIXM_LINE_CHANGE 0x3D0
#define MM_MIXM_CONTROL_CHANGE 0x3D1

Alexandre Julliard's avatar
Alexandre Julliard committed
143 144 145 146 147 148 149 150 151 152 153 154 155
#define MMSYSERR_BASE          0
#define WAVERR_BASE            32
#define MIDIERR_BASE           64
#define TIMERR_BASE            96
#define JOYERR_BASE            160
#define MCIERR_BASE            256

#define MCI_STRING_OFFSET      512
#define MCI_VD_OFFSET          1024
#define MCI_CD_OFFSET          1088
#define MCI_WAVE_OFFSET        1152
#define MCI_SEQ_OFFSET         1216

156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
#define MMSYSERR_NOERROR      0
#define MMSYSERR_ERROR        (MMSYSERR_BASE + 1)
#define MMSYSERR_BADDEVICEID  (MMSYSERR_BASE + 2)
#define MMSYSERR_NOTENABLED   (MMSYSERR_BASE + 3)
#define MMSYSERR_ALLOCATED    (MMSYSERR_BASE + 4)
#define MMSYSERR_INVALHANDLE  (MMSYSERR_BASE + 5)
#define MMSYSERR_NODRIVER     (MMSYSERR_BASE + 6)
#define MMSYSERR_NOMEM        (MMSYSERR_BASE + 7)
#define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8)
#define MMSYSERR_BADERRNUM    (MMSYSERR_BASE + 9)
#define MMSYSERR_INVALFLAG    (MMSYSERR_BASE + 10)
#define MMSYSERR_INVALPARAM   (MMSYSERR_BASE + 11)
#define MMSYSERR_HANDLEBUSY   (MMSYSERR_BASE + 12)
#define MMSYSERR_INVALIDALIAS (MMSYSERR_BASE + 13)
#define MMSYSERR_BADDB        (MMSYSERR_BASE + 14)
#define MMSYSERR_KEYNOTFOUND  (MMSYSERR_BASE + 15)
#define MMSYSERR_READERROR    (MMSYSERR_BASE + 16)
#define MMSYSERR_WRITEERROR   (MMSYSERR_BASE + 17)
#define MMSYSERR_DELETEERROR  (MMSYSERR_BASE + 18)
#define MMSYSERR_VALNOTFOUND  (MMSYSERR_BASE + 19)
#define MMSYSERR_NODRIVERCB   (MMSYSERR_BASE + 20)
#define MMSYSERR_MOREDATA     (MMSYSERR_BASE + 21)
#define MMSYSERR_LASTERROR    (MMSYSERR_BASE + 21)
179

180 181 182 183
#define CALLBACK_TYPEMASK       __MSABI_LONG(0x00070000)      /* callback type mask */
#define CALLBACK_NULL           __MSABI_LONG(0x00000000)      /* no callback */
#define CALLBACK_WINDOW         __MSABI_LONG(0x00010000)      /* dwCallback is a HWND */
#define CALLBACK_TASK           __MSABI_LONG(0x00020000)      /* dwCallback is a HTASK */
184
#define CALLBACK_THREAD		(CALLBACK_TASK)	/* dwCallback is a thread ID */
185 186
#define CALLBACK_FUNCTION       __MSABI_LONG(0x00030000)      /* dwCallback is a FARPROC */
#define CALLBACK_EVENT          __MSABI_LONG(0x00050000)      /* dwCallback is an EVENT Handler */
Alexandre Julliard's avatar
Alexandre Julliard committed
187

188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
#define DRV_LOAD                0x0001
#define DRV_ENABLE              0x0002
#define DRV_OPEN                0x0003
#define DRV_CLOSE               0x0004
#define DRV_DISABLE             0x0005
#define DRV_FREE                0x0006
#define DRV_CONFIGURE           0x0007
#define DRV_QUERYCONFIGURE      0x0008
#define DRV_INSTALL             0x0009
#define DRV_REMOVE              0x000A
#define DRV_EXITSESSION         0x000B
#define DRV_EXITAPPLICATION     0x000C
#define DRV_POWER               0x000F

#define DRV_RESERVED            0x0800
203 204
#define DRV_MCI_FIRST           DRV_RESERVED
#define DRV_MCI_LAST            (0xFFF + DRV_MCI_FIRST)
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
#define DRV_USER                0x4000

#define DRVCNF_CANCEL           0x0000
#define DRVCNF_OK               0x0001
#define DRVCNF_RESTART 		0x0002

#define DRVEA_NORMALEXIT  	0x0001
#define DRVEA_ABNORMALEXIT 	0x0002

#define DRV_SUCCESS		0x0001
#define DRV_FAILURE		0x0000

#define GND_FIRSTINSTANCEONLY 	0x00000001

#define GND_FORWARD  		0x00000000
#define GND_REVERSE    		0x00000002

222
typedef struct tagDRVCONFIGINFO {
223 224 225 226 227 228
    DWORD   			dwDCISize;
    LPCWSTR  			lpszDCISectionName;
    LPCWSTR  			lpszDCIAliasName;
} DRVCONFIGINFO, *LPDRVCONFIGINFO;


229
LRESULT WINAPI DefDriverProc(DWORD_PTR,HDRVR,UINT,LPARAM,LPARAM);
230
/* this sounds odd, but it's the way it is. OpenDriverA even disappeared
231 232
 * from latest SDK
 */
233 234
HDRVR 	WINAPI OpenDriverA(LPCSTR szDriverName, LPCSTR szSectionName,
			   LPARAM lParam2);
235 236
HDRVR 	WINAPI OpenDriver(LPCWSTR szDriverName, LPCWSTR szSectionName,
                          LPARAM lParam2);
237 238 239 240 241 242 243
LRESULT WINAPI CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2);
LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message,
				 LPARAM lParam1, LPARAM lParam2);
HMODULE WINAPI GetDriverModuleHandle(HDRVR hDriver);

DWORD	WINAPI GetDriverFlags(HDRVR hDriver);

244
typedef void (CALLBACK *LPDRVCALLBACK)(HDRVR,UINT,DWORD_PTR,DWORD_PTR,DWORD_PTR);
Alexandre Julliard's avatar
Alexandre Julliard committed
245

246
#ifndef MM_MICROSOFT
Alexandre Julliard's avatar
Alexandre Julliard committed
247
#define MM_MICROSOFT            1       /* Microsoft Corp. */
248
#endif
Alexandre Julliard's avatar
Alexandre Julliard committed
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265

#define MM_MIDI_MAPPER          1       /* MIDI Mapper */
#define MM_WAVE_MAPPER          2       /* Wave Mapper */

#define MM_SNDBLST_MIDIOUT      3       /* Sound Blaster MIDI output port */
#define MM_SNDBLST_MIDIIN       4       /* Sound Blaster MIDI input port  */
#define MM_SNDBLST_SYNTH        5       /* Sound Blaster internal synthesizer */
#define MM_SNDBLST_WAVEOUT      6       /* Sound Blaster waveform output */
#define MM_SNDBLST_WAVEIN       7       /* Sound Blaster waveform input */

#define MM_ADLIB                9       /* Ad Lib-compatible synthesizer */

#define MM_MPU401_MIDIOUT       10      /* MPU401-compatible MIDI output port */
#define MM_MPU401_MIDIIN        11      /* MPU401-compatible MIDI input port */

#define MM_PC_JOYSTICK          12      /* Joystick adapter */

266
#define MM_CREATIVE_SBP16_WAVEOUT   104 
Alexandre Julliard's avatar
Alexandre Julliard committed
267

268
UINT 		WINAPI 	mmsystemGetVersion(void);
269 270
BOOL 		WINAPI	sndPlaySoundA(LPCSTR lpszSound, UINT fuSound);
BOOL 		WINAPI	sndPlaySoundW(LPCWSTR lpszSound, UINT fuSound);
271
#define 		sndPlaySound WINELIB_NAME_AW(sndPlaySound)
272 273 274 275 276 277 278 279 280 281 282
BOOL 		WINAPI 	PlaySoundA(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
BOOL 		WINAPI 	PlaySoundW(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound);
#define 		PlaySound WINELIB_NAME_AW(PlaySound)

#define SND_SYNC            	0x0000  /* play synchronously (default) */
#define SND_ASYNC           	0x0001  /* play asynchronously */
#define SND_NODEFAULT       	0x0002  /* don't use default sound */
#define SND_MEMORY          	0x0004  /* lpszSoundName points to a memory file */
#define SND_LOOP            	0x0008  /* loop the sound until next sndPlaySound */
#define SND_NOSTOP          	0x0010  /* don't stop any currently playing sound */

283 284 285 286 287 288 289
#define SND_NOWAIT              __MSABI_LONG(0x00002000) /* don't wait if the driver is busy */
#define SND_ALIAS               __MSABI_LONG(0x00010000) /* name is a registry alias */
#define SND_ALIAS_ID            __MSABI_LONG(0x00110000) /* alias is a predefined ID */
#define SND_FILENAME            __MSABI_LONG(0x00020000) /* name is file name */
#define SND_RESOURCE            __MSABI_LONG(0x00040004) /* name is resource name or atom */
#define SND_PURGE               __MSABI_LONG(0x00000040) /* purge all sounds */
#define SND_APPLICATION         __MSABI_LONG(0x00000080) /* look for application specific association */
Alexandre Julliard's avatar
Alexandre Julliard committed
290

291 292 293 294 295 296 297 298 299 300 301 302 303
#define SND_ALIAS_START         0

#define sndAlias(ch0, ch1)              (SND_ALIAS_START + ((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8)))

#define SND_ALIAS_SYSTEMASTERISK        sndAlias('S', '*')
#define SND_ALIAS_SYSTEMQUESTION        sndAlias('S', '?')
#define SND_ALIAS_SYSTEMHAND            sndAlias('S', 'H')
#define SND_ALIAS_SYSTEMEXIT            sndAlias('S', 'E')
#define SND_ALIAS_SYSTEMSTART           sndAlias('S', 'S')
#define SND_ALIAS_SYSTEMWELCOME         sndAlias('S', 'W')
#define SND_ALIAS_SYSTEMEXCLAMATION     sndAlias('S', '!')
#define SND_ALIAS_SYSTEMDEFAULT         sndAlias('S', 'D')

Alexandre Julliard's avatar
Alexandre Julliard committed
304 305 306 307 308 309 310
/* waveform audio error return values */
#define WAVERR_BADFORMAT      (WAVERR_BASE + 0)    /* unsupported wave format */
#define WAVERR_STILLPLAYING   (WAVERR_BASE + 1)    /* still something playing */
#define WAVERR_UNPREPARED     (WAVERR_BASE + 2)    /* header not prepared */
#define WAVERR_SYNC           (WAVERR_BASE + 3)    /* device is synchronous */
#define WAVERR_LASTERROR      (WAVERR_BASE + 3)    /* last error in range */

311
typedef LPDRVCALLBACK LPWAVECALLBACK;
Alexandre Julliard's avatar
Alexandre Julliard committed
312 313 314 315 316 317 318 319 320 321

#define WOM_OPEN        MM_WOM_OPEN
#define WOM_CLOSE       MM_WOM_CLOSE
#define WOM_DONE        MM_WOM_DONE
#define WIM_OPEN        MM_WIM_OPEN
#define WIM_CLOSE       MM_WIM_CLOSE
#define WIM_DATA        MM_WIM_DATA

#define WAVE_MAPPER     (-1)

322 323 324 325 326
#define  WAVE_FORMAT_QUERY     		0x0001
#define  WAVE_ALLOWSYNC        		0x0002
#define  WAVE_MAPPED               	0x0004
#define  WAVE_FORMAT_DIRECT        	0x0008
#define  WAVE_FORMAT_DIRECT_QUERY  	(WAVE_FORMAT_QUERY | WAVE_FORMAT_DIRECT)
Alexandre Julliard's avatar
Alexandre Julliard committed
327

Alexandre Julliard's avatar
Alexandre Julliard committed
328
typedef struct wavehdr_tag {
Robert Reif's avatar
Robert Reif committed
329 330 331
    LPSTR       lpData;
    DWORD       dwBufferLength;
    DWORD       dwBytesRecorded;
332
    DWORD_PTR   dwUser;
Robert Reif's avatar
Robert Reif committed
333 334 335
    DWORD       dwFlags;
    DWORD       dwLoops;
    struct wavehdr_tag *lpNext;
336
    DWORD_PTR   reserved;
337
} WAVEHDR, *PWAVEHDR, *NPWAVEHDR, *LPWAVEHDR;
Alexandre Julliard's avatar
Alexandre Julliard committed
338

Robert Reif's avatar
Robert Reif committed
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353
#define WHDR_DONE       0x00000001
#define WHDR_PREPARED   0x00000002
#define WHDR_BEGINLOOP  0x00000004
#define WHDR_ENDLOOP    0x00000008
#define WHDR_INQUEUE    0x00000010

typedef struct tagWAVEOUTCAPSA {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    CHAR	szPname[MAXPNAMELEN];
    DWORD	dwFormats;
    WORD	wChannels;
    WORD	wReserved1;
    DWORD	dwSupport;
354
} WAVEOUTCAPSA, *LPWAVEOUTCAPSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
355

Robert Reif's avatar
Robert Reif committed
356 357 358 359 360 361 362 363 364
typedef struct tagWAVEOUTCAPSW {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    WCHAR	szPname[MAXPNAMELEN];
    DWORD	dwFormats;
    WORD	wChannels;
    WORD	wReserved1;
    DWORD	dwSupport;
365
} WAVEOUTCAPSW, *LPWAVEOUTCAPSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
366 367
DECL_WINELIB_TYPE_AW(WAVEOUTCAPS)
DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS)
Alexandre Julliard's avatar
Alexandre Julliard committed
368

Robert Reif's avatar
Robert Reif committed
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
typedef struct tagWAVEOUTCAPS2A {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    CHAR	szPname[MAXPNAMELEN];
    DWORD	dwFormats;
    WORD	wChannels;
    WORD	wReserved1;
    DWORD	dwSupport;
    GUID	ManufacturerGuid;
    GUID	ProductGuid;
    GUID	NameGuid;
} WAVEOUTCAPS2A, *LPWAVEOUTCAPS2A;

typedef struct tagWAVEOUTCAPS2W {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    WCHAR	szPname[MAXPNAMELEN];
    DWORD	dwFormats;
    WORD	wChannels;
    WORD	wReserved1;
    DWORD	dwSupport;
    GUID	ManufacturerGuid;
    GUID	ProductGuid;
    GUID	NameGuid;
} WAVEOUTCAPS2W, *LPWAVEOUTCAPS2W;
DECL_WINELIB_TYPE_AW(WAVEOUTCAPS2)
DECL_WINELIB_TYPE_AW(LPWAVEOUTCAPS2)

Alexandre Julliard's avatar
Alexandre Julliard committed
399 400 401 402
#define WAVECAPS_PITCH          0x0001   /* supports pitch control */
#define WAVECAPS_PLAYBACKRATE   0x0002   /* supports playback rate control */
#define WAVECAPS_VOLUME         0x0004   /* supports volume control */
#define WAVECAPS_LRVOLUME       0x0008   /* separate left-right volume control */
Zach Goldberg's avatar
Zach Goldberg committed
403
#define WAVECAPS_SYNC           0x0010	 /* driver is synchronous and playing is blocking */
404 405
#define WAVECAPS_SAMPLEACCURATE 0x0020	 /* position is sample accurate */
#define WAVECAPS_DIRECTSOUND	0x0040   /* ? */
Alexandre Julliard's avatar
Alexandre Julliard committed
406

Robert Reif's avatar
Robert Reif committed
407 408 409 410 411 412 413
typedef struct tagWAVEINCAPSA {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    CHAR	szPname[MAXPNAMELEN];
    DWORD	dwFormats;
    WORD	wChannels;
Alexandre Julliard's avatar
Alexandre Julliard committed
414
    WORD	wReserved1;
415
} WAVEINCAPSA, *LPWAVEINCAPSA;
Robert Reif's avatar
Robert Reif committed
416 417 418 419 420 421 422
typedef struct tagWAVEINCAPSW {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    WCHAR	szPname[MAXPNAMELEN];
    DWORD	dwFormats;
    WORD	wChannels;
Alexandre Julliard's avatar
Alexandre Julliard committed
423
    WORD	wReserved1;
424
} WAVEINCAPSW, *LPWAVEINCAPSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
425 426
DECL_WINELIB_TYPE_AW(WAVEINCAPS)
DECL_WINELIB_TYPE_AW(LPWAVEINCAPS)
Alexandre Julliard's avatar
Alexandre Julliard committed
427

Robert Reif's avatar
Robert Reif committed
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
typedef struct tagWAVEINCAPS2A {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    CHAR	szPname[MAXPNAMELEN];
    DWORD	dwFormats;
    WORD	wChannels;
    WORD	wReserved1;
    GUID	ManufacturerGuid;
    GUID	ProductGuid;
    GUID	NameGuid;
} WAVEINCAPS2A, *LPWAVEINCAPS2A;
typedef struct tagWAVEINCAPS2W {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    WCHAR	szPname[MAXPNAMELEN];
    DWORD	dwFormats;
    WORD	wChannels;
    WORD	wReserved1;
    GUID	ManufacturerGuid;
    GUID	ProductGuid;
    GUID	NameGuid;
} WAVEINCAPS2W, *LPWAVEINCAPS2W;
DECL_WINELIB_TYPE_AW(WAVEINCAPS2)
DECL_WINELIB_TYPE_AW(LPWAVEINCAPS2)

455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475
#define WAVE_INVALIDFORMAT     0x00000000    /* invalid format */
#define WAVE_FORMAT_1M08       0x00000001    /* 11.025 kHz, Mono,   8-bit  */
#define WAVE_FORMAT_1S08       0x00000002    /* 11.025 kHz, Stereo, 8-bit  */
#define WAVE_FORMAT_1M16       0x00000004    /* 11.025 kHz, Mono,   16-bit */
#define WAVE_FORMAT_1S16       0x00000008    /* 11.025 kHz, Stereo, 16-bit */
#define WAVE_FORMAT_2M08       0x00000010    /* 22.05  kHz, Mono,   8-bit  */
#define WAVE_FORMAT_2S08       0x00000020    /* 22.05  kHz, Stereo, 8-bit  */
#define WAVE_FORMAT_2M16       0x00000040    /* 22.05  kHz, Mono,   16-bit */
#define WAVE_FORMAT_2S16       0x00000080    /* 22.05  kHz, Stereo, 16-bit */
#define WAVE_FORMAT_4M08       0x00000100    /* 44.1   kHz, Mono,   8-bit  */
#define WAVE_FORMAT_4S08       0x00000200    /* 44.1   kHz, Stereo, 8-bit  */
#define WAVE_FORMAT_4M16       0x00000400    /* 44.1   kHz, Mono,   16-bit */
#define WAVE_FORMAT_4S16       0x00000800    /* 44.1   kHz, Stereo, 16-bit */
#define WAVE_FORMAT_48M08      0x00001000    /* 48     kHz, Mono,   8-bit  */
#define WAVE_FORMAT_48S08      0x00002000    /* 48     kHz, Stereo, 8-bit  */
#define WAVE_FORMAT_48M16      0x00004000    /* 48     kHz, Mono,   16-bit */
#define WAVE_FORMAT_48S16      0x00008000    /* 48     kHz, Stereo, 16-bit */
#define WAVE_FORMAT_96M08      0x00010000    /* 96     kHz, Mono,   8-bit  */
#define WAVE_FORMAT_96S08      0x00020000    /* 96     kHz, Stereo, 8-bit  */
#define WAVE_FORMAT_96M16      0x00040000    /* 96     kHz, Mono,   16-bit */
#define WAVE_FORMAT_96S16      0x00080000    /* 96     kHz, Stereo, 16-bit */
Alexandre Julliard's avatar
Alexandre Julliard committed
476

477
#ifndef WAVE_FORMAT_PCM
Alexandre Julliard's avatar
Alexandre Julliard committed
478
/* General format structure common to all formats, same for Win16 and Win32 */
479
typedef struct waveformat_tag {
Robert Reif's avatar
Robert Reif committed
480 481 482 483 484
    WORD	wFormatTag;
    WORD	nChannels;
    DWORD	nSamplesPerSec;
    DWORD	nAvgBytesPerSec;
    WORD	nBlockAlign;
Alexandre Julliard's avatar
Alexandre Julliard committed
485
} WAVEFORMAT, *LPWAVEFORMAT;
Alexandre Julliard's avatar
Alexandre Julliard committed
486 487 488

#define WAVE_FORMAT_PCM     1

489
typedef struct pcmwaveformat_tag {
Alexandre Julliard's avatar
Alexandre Julliard committed
490 491
    WAVEFORMAT	wf;
    WORD	wBitsPerSample;
Alexandre Julliard's avatar
Alexandre Julliard committed
492
} PCMWAVEFORMAT, *LPPCMWAVEFORMAT;
493
#endif
Alexandre Julliard's avatar
Alexandre Julliard committed
494

495 496
#ifndef _WAVEFORMATEX_
#define _WAVEFORMATEX_
497
/* ditto same for Win16 / Win32 */
498
typedef struct tWAVEFORMATEX {
Robert Reif's avatar
Robert Reif committed
499 500 501 502 503 504 505
    WORD	wFormatTag;
    WORD	nChannels;
    DWORD	nSamplesPerSec;
    DWORD	nAvgBytesPerSec;
    WORD	nBlockAlign;
    WORD	wBitsPerSample;
    WORD	cbSize;
506 507
} WAVEFORMATEX, *LPWAVEFORMATEX, *NPWAVEFORMATEX, *PWAVEFORMATEX;
#endif
508
typedef const WAVEFORMATEX *LPCWAVEFORMATEX;
Alexandre Julliard's avatar
Alexandre Julliard committed
509

510
UINT 		WINAPI 	waveOutGetNumDevs(void);
511 512
UINT           WINAPI  waveOutGetDevCapsA(UINT_PTR,LPWAVEOUTCAPSA,UINT);
UINT           WINAPI  waveOutGetDevCapsW(UINT_PTR,LPWAVEOUTCAPSW,UINT);
513
#define 		waveOutGetDevCaps WINELIB_NAME_AW(waveOutGetDevCaps)
514 515
UINT 		WINAPI	waveOutGetVolume(HWAVEOUT,DWORD*);
UINT 		WINAPI 	waveOutSetVolume(HWAVEOUT,DWORD);
516 517 518
UINT 		WINAPI 	waveOutGetErrorTextA(UINT,LPSTR,UINT);
UINT 		WINAPI 	waveOutGetErrorTextW(UINT,LPWSTR,UINT);
#define 	    	waveOutGetErrorText WINELIB_NAME_AW(waveOutGetErrorText)
519
MMRESULT        WINAPI  waveOutOpen(HWAVEOUT*,UINT,LPCWAVEFORMATEX,DWORD_PTR,DWORD_PTR,DWORD);
520 521 522 523 524 525 526 527 528 529 530 531 532 533
UINT 		WINAPI 	waveOutClose(HWAVEOUT);
UINT 		WINAPI 	waveOutPrepareHeader(HWAVEOUT,WAVEHDR*,UINT);
UINT 		WINAPI 	waveOutUnprepareHeader(HWAVEOUT,WAVEHDR*,UINT);
UINT 		WINAPI 	waveOutWrite(HWAVEOUT,WAVEHDR*,UINT);
UINT 		WINAPI 	waveOutPause(HWAVEOUT);
UINT 		WINAPI 	waveOutRestart(HWAVEOUT);
UINT 		WINAPI 	waveOutReset(HWAVEOUT);
UINT 		WINAPI 	waveOutBreakLoop(HWAVEOUT);
UINT 		WINAPI 	waveOutGetPosition(HWAVEOUT,LPMMTIME,UINT);
UINT 		WINAPI 	waveOutGetPitch(HWAVEOUT,DWORD*);
UINT 		WINAPI 	waveOutSetPitch(HWAVEOUT,DWORD);
UINT 		WINAPI 	waveOutGetPlaybackRate(HWAVEOUT,DWORD*);
UINT 		WINAPI 	waveOutSetPlaybackRate(HWAVEOUT,DWORD);
UINT 		WINAPI 	waveOutGetID(HWAVEOUT,UINT*);
534
UINT           WINAPI  waveOutMessage(HWAVEOUT,UINT,DWORD_PTR,DWORD_PTR);
535
UINT 		WINAPI 	waveInGetNumDevs(void);
536 537
UINT           WINAPI  waveInGetDevCapsA(UINT_PTR,LPWAVEINCAPSA,UINT);
UINT           WINAPI  waveInGetDevCapsW(UINT_PTR,LPWAVEINCAPSW,UINT);
538 539 540 541
#define 		waveInGetDevCaps WINELIB_NAME_AW(waveInGetDevCaps)
UINT 		WINAPI 	waveInGetErrorTextA(UINT,LPSTR,UINT);
UINT 		WINAPI 	waveInGetErrorTextW(UINT,LPWSTR,UINT);
#define 		waveInGetErrorText WINELIB_NAME_AW(waveInGetErrorText)
542
MMRESULT        WINAPI  waveInOpen(HWAVEIN*,UINT,LPCWAVEFORMATEX,DWORD_PTR,DWORD_PTR,DWORD);
543 544 545 546 547 548 549 550 551
UINT 		WINAPI  waveInClose(HWAVEIN);
UINT 		WINAPI  waveInPrepareHeader(HWAVEIN,WAVEHDR*,UINT);
UINT 		WINAPI  waveInUnprepareHeader(HWAVEIN,WAVEHDR*,UINT);
UINT 		WINAPI  waveInAddBuffer(HWAVEIN,WAVEHDR*,UINT);
UINT 		WINAPI  waveInStart(HWAVEIN);
UINT 		WINAPI  waveInStop(HWAVEIN);
UINT 		WINAPI  waveInReset(HWAVEIN);
UINT 		WINAPI  waveInGetPosition(HWAVEIN,LPMMTIME,UINT);
UINT 		WINAPI  waveInGetID(HWAVEIN,UINT*);
552
UINT           WINAPI  waveInMessage(HWAVEIN,UINT,DWORD_PTR,DWORD_PTR);
Alexandre Julliard's avatar
Alexandre Julliard committed
553

554 555 556 557 558 559 560 561 562
#define MIDIERR_UNPREPARED    (MIDIERR_BASE + 0)
#define MIDIERR_STILLPLAYING  (MIDIERR_BASE + 1)
#define MIDIERR_NOMAP         (MIDIERR_BASE + 2)
#define MIDIERR_NOTREADY      (MIDIERR_BASE + 3)
#define MIDIERR_NODEVICE      (MIDIERR_BASE + 4)
#define MIDIERR_INVALIDSETUP  (MIDIERR_BASE + 5)
#define MIDIERR_BADOPENMODE   (MIDIERR_BASE + 6)
#define MIDIERR_DONT_CONTINUE (MIDIERR_BASE + 7)
#define MIDIERR_LASTERROR     (MIDIERR_BASE + 7)
Alexandre Julliard's avatar
Alexandre Julliard committed
563

564
typedef LPDRVCALLBACK LPMIDICALLBACK;
Alexandre Julliard's avatar
Alexandre Julliard committed
565 566
#define MIDIPATCHSIZE   128
typedef WORD PATCHARRAY[MIDIPATCHSIZE];
Alexandre Julliard's avatar
Alexandre Julliard committed
567
typedef WORD *LPPATCHARRAY;
Alexandre Julliard's avatar
Alexandre Julliard committed
568
typedef WORD KEYARRAY[MIDIPATCHSIZE];
Alexandre Julliard's avatar
Alexandre Julliard committed
569
typedef WORD *LPKEYARRAY;
Alexandre Julliard's avatar
Alexandre Julliard committed
570 571 572 573 574 575 576

#define MIM_OPEN        MM_MIM_OPEN
#define MIM_CLOSE       MM_MIM_CLOSE
#define MIM_DATA        MM_MIM_DATA
#define MIM_LONGDATA    MM_MIM_LONGDATA
#define MIM_ERROR       MM_MIM_ERROR
#define MIM_LONGERROR   MM_MIM_LONGERROR
577 578
#define MIM_MOREDATA	MM_MIM_MOREDATA

Alexandre Julliard's avatar
Alexandre Julliard committed
579 580 581
#define MOM_OPEN        MM_MOM_OPEN
#define MOM_CLOSE       MM_MOM_CLOSE
#define MOM_DONE        MM_MOM_DONE
582
#define MOM_POSITIONCB	MM_MOM_POSITIONCB
Alexandre Julliard's avatar
Alexandre Julliard committed
583

Alexandre Julliard's avatar
Alexandre Julliard committed
584 585
/* device ID for MIDI mapper */

Alexandre Julliard's avatar
Alexandre Julliard committed
586 587 588
#define MIDIMAPPER     (-1)
#define MIDI_MAPPER    (-1)

589
/* Only on Win95 and up */
590
#define MIDI_IO_STATUS __MSABI_LONG(0x00000020)
591

592 593
/* flags for wFlags parm of
	midiOutCachePatches(),
Alexandre Julliard's avatar
Alexandre Julliard committed
594 595 596 597 598 599
	midiOutCacheDrumPatches() */
#define MIDI_CACHE_ALL      1
#define MIDI_CACHE_BESTFIT  2
#define MIDI_CACHE_QUERY    3
#define MIDI_UNCACHE        4

Robert Reif's avatar
Robert Reif committed
600 601 602 603 604 605 606 607 608 609
typedef struct tagMIDIOUTCAPSA {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    CHAR	szPname[MAXPNAMELEN];
    WORD	wTechnology;
    WORD	wVoices;
    WORD	wNotes;
    WORD	wChannelMask;
    DWORD	dwSupport;
610
} MIDIOUTCAPSA, *LPMIDIOUTCAPSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
611

Robert Reif's avatar
Robert Reif committed
612 613 614 615 616 617 618 619 620 621
typedef struct tagMIDIOUTCAPSW {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    WCHAR	szPname[MAXPNAMELEN];
    WORD	wTechnology;
    WORD	wVoices;
    WORD	wNotes;
    WORD	wChannelMask;
    DWORD	dwSupport;
622
} MIDIOUTCAPSW, *LPMIDIOUTCAPSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
623

Alexandre Julliard's avatar
Alexandre Julliard committed
624 625
DECL_WINELIB_TYPE_AW(MIDIOUTCAPS)
DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS)
Alexandre Julliard's avatar
Alexandre Julliard committed
626

Robert Reif's avatar
Robert Reif committed
627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
typedef struct tagMIDIOUTCAPS2A {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    CHAR	szPname[MAXPNAMELEN];
    WORD	wTechnology;
    WORD	wVoices;
    WORD	wNotes;
    WORD	wChannelMask;
    DWORD	dwSupport;
    GUID	ManufacturerGuid;
    GUID	ProductGuid;
    GUID	NameGuid;
} MIDIOUTCAPS2A, *LPMIDIOUTCAPS2A;

typedef struct tagMIDIOUTCAPS2W {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    WCHAR	szPname[MAXPNAMELEN];
    WORD	wTechnology;
    WORD	wVoices;
    WORD	wNotes;
    WORD	wChannelMask;
    DWORD	dwSupport;
    GUID	ManufacturerGuid;
    GUID	ProductGuid;
    GUID	NameGuid;
} MIDIOUTCAPS2W, *LPMIDIOUTCAPS2W;

DECL_WINELIB_TYPE_AW(MIDIOUTCAPS2)
DECL_WINELIB_TYPE_AW(LPMIDIOUTCAPS2)

Alexandre Julliard's avatar
Alexandre Julliard committed
660 661 662 663 664
#define MOD_MIDIPORT    1  /* output port */
#define MOD_SYNTH       2  /* generic internal synth */
#define MOD_SQSYNTH     3  /* square wave internal synth */
#define MOD_FMSYNTH     4  /* FM internal synth */
#define MOD_MAPPER      5  /* MIDI mapper */
665
#define MOD_WAVETABLE   6  /* hardware wavetable internal synth */
666
#define MOD_SWSYNTH     7  /* software synth */
Alexandre Julliard's avatar
Alexandre Julliard committed
667

Alexandre Julliard's avatar
Alexandre Julliard committed
668 669 670
#define MIDICAPS_VOLUME		0x0001  /* supports volume control */
#define MIDICAPS_LRVOLUME	0x0002  /* separate left-right volume control */
#define MIDICAPS_CACHE		0x0004
671
#define MIDICAPS_STREAM		0x0008  /* capable of supporting stream buffer */
Alexandre Julliard's avatar
Alexandre Julliard committed
672

Robert Reif's avatar
Robert Reif committed
673 674 675 676 677 678
typedef struct tagMIDIINCAPSA {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    CHAR	szPname[MAXPNAMELEN];
    DWORD	dwSupport;
679
} MIDIINCAPSA, *LPMIDIINCAPSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
680

Robert Reif's avatar
Robert Reif committed
681 682 683 684 685 686
typedef struct tagMIDIINCAPSW {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    WCHAR	szPname[MAXPNAMELEN];
    DWORD	dwSupport;
687
} MIDIINCAPSW, *LPMIDIINCAPSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
688

Alexandre Julliard's avatar
Alexandre Julliard committed
689 690
DECL_WINELIB_TYPE_AW(MIDIINCAPS)
DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
Alexandre Julliard's avatar
Alexandre Julliard committed
691

Robert Reif's avatar
Robert Reif committed
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716
typedef struct tagMIDIINCAPS2A {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    CHAR	szPname[MAXPNAMELEN];
    DWORD	dwSupport;
    GUID	ManufacturerGuid;
    GUID	ProductGuid;
    GUID	NameGuid;
} MIDIINCAPS2A, *LPMIDIINCAPS2A;

typedef struct tagMIDIINCAPS2W {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    WCHAR	szPname[MAXPNAMELEN];
    DWORD	dwSupport;
    GUID	ManufacturerGuid;
    GUID	ProductGuid;
    GUID	NameGuid;
} MIDIINCAPS2W, *LPMIDIINCAPS2W;

DECL_WINELIB_TYPE_AW(MIDIINCAPS2)
DECL_WINELIB_TYPE_AW(LPMIDIINCAPS2)

717 718 719
/* It seems that Win32 has a slightly different structure than Win 16.
 * sigh....
 */
720
typedef struct midihdr_tag {
Robert Reif's avatar
Robert Reif committed
721 722 723 724 725 726
    LPSTR	lpData;
    DWORD	dwBufferLength;
    DWORD	dwBytesRecorded;
    DWORD_PTR	dwUser;
    DWORD	dwFlags;
    struct midihdr_tag *lpNext;
727
    DWORD_PTR	reserved;
728
    /* Win 32 extended the structure with these 2 fields */
Robert Reif's avatar
Robert Reif committed
729 730
    DWORD	dwOffset;
    DWORD_PTR	dwReserved[8];
731
} MIDIHDR, *LPMIDIHDR;
732

Alexandre Julliard's avatar
Alexandre Julliard committed
733 734 735
#define MHDR_DONE       0x00000001       /* done bit */
#define MHDR_PREPARED   0x00000002       /* set if header prepared */
#define MHDR_INQUEUE    0x00000004       /* reserved for driver */
736 737
#define MHDR_ISSTRM	0x00000008	 /* data is sent by Stream functions */

738
typedef struct midiproptempo_tag {
739 740 741 742
    DWORD		cbStruct;
    DWORD		dwTempo;
} MIDIPROPTEMPO, *LPMIDIPROPTEMPO;

743
typedef struct midiproptimediv_tag {
744 745 746 747 748 749 750 751 752
    DWORD		cbStruct;
    DWORD		dwTimeDiv;
} MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV;

#define MIDIPROP_GET		0x40000000
#define MIDIPROP_SET		0x80000000
#define MIDIPROP_TEMPO		0x00000002
#define MIDIPROP_TIMEDIV	0x00000001

753
typedef struct midievent_tag {
754
    DWORD dwDeltaTime;	/* Time, in MIDI ticks, between the previous
755
			 * event and the current event. */
756
    DWORD dwStreamID;	/* Reserved; must be zero. */
757
    DWORD dwEvent;  	/* event => see MEVT_XXX macros */
758
    DWORD dwParms[1];	/* extra pmts to dwEvent if F_LONG is set */
759
} MIDIEVENT, *LPMIDIEVENT;
760

761
#define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
762
#define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFF))
763

764 765 766
#define MEVT_F_CALLBACK __MSABI_LONG(0x40000000)
#define MEVT_F_LONG     __MSABI_LONG(0x80000000)
#define MEVT_F_SHORT    __MSABI_LONG(0x00000000)
767 768 769 770 771 772
#define	MEVT_COMMENT	((BYTE)0x82)
#define	MEVT_LONGMSG	((BYTE)0x80)
#define	MEVT_NOP	((BYTE)0x02)
#define	MEVT_SHORTMSG	((BYTE)0x00)
#define	MEVT_TEMPO	((BYTE)0x01)
#define	MEVT_VERSION	((BYTE)0x84)
Alexandre Julliard's avatar
Alexandre Julliard committed
773

774
UINT		WINAPI	midiOutGetNumDevs(void);
775 776
UINT           WINAPI  midiOutGetDevCapsA(UINT_PTR,LPMIDIOUTCAPSA,UINT);
UINT           WINAPI  midiOutGetDevCapsW(UINT_PTR,LPMIDIOUTCAPSW,UINT);
777
#define 		midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
778 779
UINT		WINAPI	midiOutGetVolume(HMIDIOUT,DWORD*);
UINT		WINAPI	midiOutSetVolume(HMIDIOUT,DWORD);
780 781 782
UINT		WINAPI	midiOutGetErrorTextA(UINT,LPSTR,UINT);
UINT		WINAPI	midiOutGetErrorTextW(UINT,LPWSTR,UINT);
#define 		midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
783
MMRESULT        WINAPI  midiOutOpen(LPHMIDIOUT,UINT,DWORD_PTR,DWORD_PTR,DWORD);
784
UINT		WINAPI	midiOutClose(HMIDIOUT);
785 786
UINT		WINAPI	midiOutPrepareHeader(HMIDIOUT,MIDIHDR*,UINT);
UINT		WINAPI	midiOutUnprepareHeader(HMIDIOUT,MIDIHDR*,UINT);
787
UINT		WINAPI	midiOutShortMsg(HMIDIOUT,DWORD);
788
UINT		WINAPI	midiOutLongMsg(HMIDIOUT,MIDIHDR*,UINT);
789 790 791 792
UINT		WINAPI	midiOutReset(HMIDIOUT);
UINT		WINAPI	midiOutCachePatches(HMIDIOUT,UINT,WORD*,UINT);
UINT		WINAPI	midiOutCacheDrumPatches(HMIDIOUT,UINT,WORD*,UINT);
UINT		WINAPI	midiOutGetID(HMIDIOUT,UINT*);
793
UINT           WINAPI  midiOutMessage(HMIDIOUT,UINT,DWORD_PTR,DWORD_PTR);
794 795

UINT		WINAPI	midiInGetNumDevs(void);
796 797
UINT           WINAPI  midiInGetDevCapsA(UINT_PTR,LPMIDIINCAPSA,UINT);
UINT           WINAPI  midiInGetDevCapsW(UINT_PTR,LPMIDIINCAPSW,UINT);
798 799 800 801
#define 		midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
UINT		WINAPI	midiInGetErrorTextA(UINT,LPSTR,UINT);
UINT		WINAPI	midiInGetErrorTextW(UINT,LPWSTR,UINT);
#define 		midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
802
MMRESULT        WINAPI  midiInOpen(LPHMIDIIN,UINT,DWORD_PTR,DWORD_PTR,DWORD);
803
UINT		WINAPI	midiInClose(HMIDIIN);
804 805 806
UINT		WINAPI	midiInPrepareHeader(HMIDIIN,MIDIHDR*,UINT);
UINT		WINAPI	midiInUnprepareHeader(HMIDIIN,MIDIHDR*,UINT);
UINT		WINAPI	midiInAddBuffer(HMIDIIN,MIDIHDR*,UINT);
807 808 809 810
UINT		WINAPI	midiInStart(HMIDIIN);
UINT		WINAPI	midiInStop(HMIDIIN);
UINT		WINAPI	midiInReset(HMIDIIN);
UINT		WINAPI	midiInGetID(HMIDIIN,UINT*);
811
UINT           WINAPI  midiInMessage(HMIDIIN,UINT,DWORD_PTR,DWORD_PTR);
812
MMRESULT	WINAPI	midiStreamClose(HMIDISTRM hms);
813
MMRESULT       WINAPI  midiStreamOpen(LPHMIDISTRM,LPUINT,DWORD,DWORD_PTR,DWORD_PTR,DWORD);
814
MMRESULT	WINAPI	midiStreamOut(HMIDISTRM hms, LPMIDIHDR lpMidiHdr, UINT cbMidiHdr);
815 816 817 818 819
MMRESULT	WINAPI	midiStreamPause(HMIDISTRM hms);
MMRESULT	WINAPI	midiStreamPosition(HMIDISTRM hms, LPMMTIME lpmmt, UINT cbmmt);
MMRESULT	WINAPI	midiStreamProperty(HMIDISTRM hms, LPBYTE lpPropData, DWORD dwProperty);
MMRESULT	WINAPI	midiStreamRestart(HMIDISTRM hms);
MMRESULT	WINAPI	midiStreamStop(HMIDISTRM hms);
820

Alexandre Julliard's avatar
Alexandre Julliard committed
821 822
#define AUX_MAPPER     (-1)

Robert Reif's avatar
Robert Reif committed
823 824 825 826 827 828 829 830
typedef struct tagAUXCAPSA {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    CHAR	szPname[MAXPNAMELEN];
    WORD	wTechnology;
    WORD	wReserved1;
    DWORD	dwSupport;
831
} AUXCAPSA, *LPAUXCAPSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
832

Robert Reif's avatar
Robert Reif committed
833 834 835 836 837 838 839 840
typedef struct tagAUXCAPSW {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    WCHAR	szPname[MAXPNAMELEN];
    WORD	wTechnology;
    WORD	wReserved1;
    DWORD	dwSupport;
841
} AUXCAPSW, *LPAUXCAPSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
842

843 844 845
DECL_WINELIB_TYPE_AW(AUXCAPS)
DECL_WINELIB_TYPE_AW(LPAUXCAPS)

Robert Reif's avatar
Robert Reif committed
846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874
typedef struct tagAUXCAPS2A {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    CHAR	szPname[MAXPNAMELEN];
    WORD	wTechnology;
    WORD	wReserved1;
    DWORD	dwSupport;
    GUID	ManufacturerGuid;
    GUID	ProductGuid;
    GUID	NameGuid;
} AUXCAPS2A, *LPAUXCAPS2A;

typedef struct tagAUXCAPS2W {
    WORD	wMid;
    WORD	wPid;
    MMVERSION	vDriverVersion;
    WCHAR	szPname[MAXPNAMELEN];
    WORD	wTechnology;
    WORD	wReserved1;
    DWORD	dwSupport;
    GUID	ManufacturerGuid;
    GUID	ProductGuid;
    GUID	NameGuid;
} AUXCAPS2W, *LPAUXCAPS2W;

DECL_WINELIB_TYPE_AW(AUXCAPS2)
DECL_WINELIB_TYPE_AW(LPAUXCAPS2)

Alexandre Julliard's avatar
Alexandre Julliard committed
875 876 877 878 879 880
#define AUXCAPS_CDAUDIO    1       /* audio from internal CD-ROM drive */
#define AUXCAPS_AUXIN      2       /* audio from auxiliary input jacks */

#define AUXCAPS_VOLUME          0x0001  /* supports volume control */
#define AUXCAPS_LRVOLUME        0x0002  /* separate left-right volume control */

881
UINT		WINAPI	auxGetNumDevs(void);
882 883
UINT           WINAPI  auxGetDevCapsA(UINT_PTR,LPAUXCAPSA,UINT);
UINT           WINAPI  auxGetDevCapsW(UINT_PTR,LPAUXCAPSW,UINT);
884 885 886
#define 		auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
UINT		WINAPI	auxSetVolume(UINT,DWORD);
UINT		WINAPI	auxGetVolume(UINT,LPDWORD);
887
UINT           WINAPI  auxOutMessage(UINT,UINT,DWORD_PTR,DWORD_PTR);
Alexandre Julliard's avatar
Alexandre Julliard committed
888 889 890 891 892

#define TIMERR_NOERROR        (0)                  /* no error */
#define TIMERR_NOCANDO        (TIMERR_BASE+1)      /* request not completed */
#define TIMERR_STRUCT         (TIMERR_BASE+33)     /* time struct size */

893
typedef void (CALLBACK *LPTIMECALLBACK)(UINT,UINT,DWORD_PTR,DWORD_PTR,DWORD_PTR);
Alexandre Julliard's avatar
Alexandre Julliard committed
894

895 896 897 898 899
#define TIME_ONESHOT			0x0000	/* program timer for single event */
#define TIME_PERIODIC			0x0001	/* program for continuous periodic event */
#define TIME_CALLBACK_FUNCTION		0x0000	/* callback is function */
#define TIME_CALLBACK_EVENT_SET		0x0010	/* callback is event - use SetEvent */
#define TIME_CALLBACK_EVENT_PULSE 	0x0020	/* callback is event - use PulseEvent */
900
#define TIME_KILL_SYNCHRONOUS           0x0100
Alexandre Julliard's avatar
Alexandre Julliard committed
901

Robert Reif's avatar
Robert Reif committed
902
typedef struct timecaps_tag {
903 904 905
    UINT	wPeriodMin;
    UINT	wPeriodMax;
} TIMECAPS, *LPTIMECAPS;
Alexandre Julliard's avatar
Alexandre Julliard committed
906 907


908 909
MMRESULT	WINAPI	timeGetSystemTime(LPMMTIME,UINT);
DWORD		WINAPI	timeGetTime(void);	/* same for win32/win16 */
910
MMRESULT       WINAPI  timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD_PTR,UINT);
911 912 913 914
MMRESULT	WINAPI	timeKillEvent(UINT);
MMRESULT	WINAPI	timeGetDevCaps(LPTIMECAPS,UINT);
MMRESULT	WINAPI	timeBeginPeriod(UINT);
MMRESULT	WINAPI	timeEndPeriod(UINT);
Alexandre Julliard's avatar
Alexandre Julliard committed
915 916 917 918 919 920

#define JOYERR_NOERROR        (0)                  /* no error */
#define JOYERR_PARMS          (JOYERR_BASE+5)      /* bad parameters */
#define JOYERR_NOCANDO        (JOYERR_BASE+6)      /* request not completed */
#define JOYERR_UNPLUGGED      (JOYERR_BASE+7)      /* joystick is unplugged */

Alexandre Julliard's avatar
Alexandre Julliard committed
921
/* JOYINFO, JOYINFOEX, MM_JOY* */
922 923 924 925 926 927 928 929 930 931 932
#define JOY_BUTTON1         	0x0001
#define JOY_BUTTON2         	0x0002
#define JOY_BUTTON3         	0x0004
#define JOY_BUTTON4         	0x0008
#define JOY_BUTTON1CHG      	0x0100
#define JOY_BUTTON2CHG      	0x0200
#define JOY_BUTTON3CHG      	0x0400
#define JOY_BUTTON4CHG      	0x0800

#define JOYSTICKID1         	0
#define JOYSTICKID2         	1
Alexandre Julliard's avatar
Alexandre Julliard committed
933

Alexandre Julliard's avatar
Alexandre Julliard committed
934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977
/* JOYCAPS.wCaps */
#define JOYCAPS_HASZ		0x0001
#define JOYCAPS_HASR		0x0002
#define JOYCAPS_HASU		0x0004
#define JOYCAPS_HASV		0x0008
#define JOYCAPS_HASPOV		0x0010
#define JOYCAPS_POV4DIR		0x0020
#define JOYCAPS_POVCTS		0x0040

/* JOYINFOEX stuff */
#define JOY_POVCENTERED		(WORD) -1
#define JOY_POVFORWARD		0
#define JOY_POVRIGHT		9000
#define JOY_POVBACKWARD		18000
#define JOY_POVLEFT		27000

#define JOY_RETURNX		0x00000001
#define JOY_RETURNY		0x00000002
#define JOY_RETURNZ		0x00000004
#define JOY_RETURNR		0x00000008
#define JOY_RETURNU		0x00000010
#define JOY_RETURNV		0x00000020
#define JOY_RETURNPOV		0x00000040
#define JOY_RETURNBUTTONS	0x00000080
#define JOY_RETURNRAWDATA	0x00000100
#define JOY_RETURNPOVCTS	0x00000200
#define JOY_RETURNCENTERED	0x00000400
#define JOY_USEDEADZONE		0x00000800
#define JOY_RETURNALL		(JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
				 JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
				 JOY_RETURNPOV | JOY_RETURNBUTTONS)
#define JOY_CAL_READALWAYS	0x00010000
#define JOY_CAL_READXYONLY	0x00020000
#define JOY_CAL_READ3		0x00040000
#define JOY_CAL_READ4		0x00080000
#define JOY_CAL_READXONLY	0x00100000
#define JOY_CAL_READYONLY	0x00200000
#define JOY_CAL_READ5		0x00400000
#define JOY_CAL_READ6		0x00800000
#define JOY_CAL_READZONLY	0x01000000
#define JOY_CAL_READRONLY	0x02000000
#define JOY_CAL_READUONLY	0x04000000
#define JOY_CAL_READVONLY	0x08000000

Robert Reif's avatar
Robert Reif committed
978
typedef struct tagJOYCAPSA {
Alexandre Julliard's avatar
Alexandre Julliard committed
979 980 981
    WORD wMid;
    WORD wPid;
    CHAR szPname[MAXPNAMELEN];
982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
    UINT wXmin;
    UINT wXmax;
    UINT wYmin;
    UINT wYmax;
    UINT wZmin;
    UINT wZmax;
    UINT wNumButtons;
    UINT wPeriodMin;
    UINT wPeriodMax;
    UINT wRmin;
    UINT wRmax;
    UINT wUmin;
    UINT wUmax;
    UINT wVmin;
    UINT wVmax;
    UINT wCaps;
    UINT wMaxAxes;
    UINT wNumAxes;
    UINT wMaxButtons;
Alexandre Julliard's avatar
Alexandre Julliard committed
1001 1002
    CHAR szRegKey[MAXPNAMELEN];
    CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
1003
} JOYCAPSA, *LPJOYCAPSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
1004

Robert Reif's avatar
Robert Reif committed
1005
typedef struct tagJOYCAPSW {
Alexandre Julliard's avatar
Alexandre Julliard committed
1006 1007 1008
    WORD wMid;
    WORD wPid;
    WCHAR szPname[MAXPNAMELEN];
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027
    UINT wXmin;
    UINT wXmax;
    UINT wYmin;
    UINT wYmax;
    UINT wZmin;
    UINT wZmax;
    UINT wNumButtons;
    UINT wPeriodMin;
    UINT wPeriodMax;
    UINT wRmin;
    UINT wRmax;
    UINT wUmin;
    UINT wUmax;
    UINT wVmin;
    UINT wVmax;
    UINT wCaps;
    UINT wMaxAxes;
    UINT wNumAxes;
    UINT wMaxButtons;
Alexandre Julliard's avatar
Alexandre Julliard committed
1028 1029
    WCHAR szRegKey[MAXPNAMELEN];
    WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
1030
} JOYCAPSW, *LPJOYCAPSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
1031 1032
DECL_WINELIB_TYPE_AW(JOYCAPS)
DECL_WINELIB_TYPE_AW(LPJOYCAPS)
Alexandre Julliard's avatar
Alexandre Julliard committed
1033

Robert Reif's avatar
Robert Reif committed
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096
typedef struct tagJOYCAPS2A {
    WORD wMid;
    WORD wPid;
    CHAR szPname[MAXPNAMELEN];
    UINT wXmin;
    UINT wXmax;
    UINT wYmin;
    UINT wYmax;
    UINT wZmin;
    UINT wZmax;
    UINT wNumButtons;
    UINT wPeriodMin;
    UINT wPeriodMax;
    UINT wRmin;
    UINT wRmax;
    UINT wUmin;
    UINT wUmax;
    UINT wVmin;
    UINT wVmax;
    UINT wCaps;
    UINT wMaxAxes;
    UINT wNumAxes;
    UINT wMaxButtons;
    CHAR szRegKey[MAXPNAMELEN];
    CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
    GUID ManufacturerGuid;
    GUID ProductGuid;
    GUID NameGuid;
} JOYCAPS2A, *LPJOYCAPS2A;

typedef struct tagJOYCAPS2W {
    WORD wMid;
    WORD wPid;
    WCHAR szPname[MAXPNAMELEN];
    UINT wXmin;
    UINT wXmax;
    UINT wYmin;
    UINT wYmax;
    UINT wZmin;
    UINT wZmax;
    UINT wNumButtons;
    UINT wPeriodMin;
    UINT wPeriodMax;
    UINT wRmin;
    UINT wRmax;
    UINT wUmin;
    UINT wUmax;
    UINT wVmin;
    UINT wVmax;
    UINT wCaps;
    UINT wMaxAxes;
    UINT wNumAxes;
    UINT wMaxButtons;
    WCHAR szRegKey[MAXPNAMELEN];
    WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
    GUID ManufacturerGuid;
    GUID ProductGuid;
    GUID NameGuid;
} JOYCAPS2W, *LPJOYCAPS2W;
DECL_WINELIB_TYPE_AW(JOYCAPS2)
DECL_WINELIB_TYPE_AW(LPJOYCAPS2)

typedef struct joyinfo_tag {
1097 1098 1099 1100 1101
    UINT wXpos;
    UINT wYpos;
    UINT wZpos;
    UINT wButtons;
} JOYINFO, *LPJOYINFO;
Alexandre Julliard's avatar
Alexandre Julliard committed
1102

Robert Reif's avatar
Robert Reif committed
1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116
typedef struct joyinfoex_tag {
    DWORD	dwSize;
    DWORD	dwFlags;
    DWORD	dwXpos;
    DWORD	dwYpos;
    DWORD	dwZpos;
    DWORD	dwRpos;
    DWORD	dwUpos;
    DWORD	dwVpos;
    DWORD	dwButtons;
    DWORD	dwButtonNumber;
    DWORD	dwPOV;
    DWORD	dwReserved1;
    DWORD	dwReserved2;
Alexandre Julliard's avatar
Alexandre Julliard committed
1117 1118
} JOYINFOEX,*LPJOYINFOEX;

Alexandre Julliard's avatar
Alexandre Julliard committed
1119

1120 1121
MMRESULT       WINAPI  joyGetDevCapsA(UINT_PTR,LPJOYCAPSA,UINT);
MMRESULT       WINAPI  joyGetDevCapsW(UINT_PTR,LPJOYCAPSW,UINT);
Alexandre Julliard's avatar
Alexandre Julliard committed
1122
#define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
1123 1124 1125 1126 1127 1128 1129 1130
UINT		WINAPI	joyGetNumDevs(void);
MMRESULT	WINAPI	joyGetPos(UINT,LPJOYINFO);
MMRESULT	WINAPI	joyGetPosEx(UINT,LPJOYINFOEX);
MMRESULT	WINAPI	joyGetThreshold(UINT,UINT*);
MMRESULT	WINAPI	joyReleaseCapture(UINT);
MMRESULT	WINAPI	joySetCapture(HWND,UINT,UINT,BOOL);
MMRESULT	WINAPI	joySetThreshold(UINT,UINT);

1131 1132 1133 1134 1135 1136
#define	MIXERR_BASE		1024
#define	MIXERR_INVALLINE	(MIXERR_BASE + 0)
#define MIXERR_INVALCONTROL	(MIXERR_BASE + 1)
#define MIXERR_INVALVALUE	(MIXERR_BASE + 2)
#define MIXERR_LASTERROR	(MIXERR_BASE + 2)

Robert Reif's avatar
Robert Reif committed
1137
typedef struct tagMIXERCAPSA {
Alexandre Julliard's avatar
Alexandre Julliard committed
1138 1139
	WORD		wMid;
	WORD		wPid;
1140
	MMVERSION	vDriverVersion;
Alexandre Julliard's avatar
Alexandre Julliard committed
1141 1142 1143
	CHAR		szPname[MAXPNAMELEN];
	DWORD		fdwSupport;
	DWORD		cDestinations;
1144
} MIXERCAPSA,*LPMIXERCAPSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
1145

Robert Reif's avatar
Robert Reif committed
1146
typedef struct tagMIXERCAPSW {
Alexandre Julliard's avatar
Alexandre Julliard committed
1147 1148
	WORD		wMid;
	WORD		wPid;
1149
	MMVERSION	vDriverVersion;
Alexandre Julliard's avatar
Alexandre Julliard committed
1150 1151 1152
	WCHAR		szPname[MAXPNAMELEN];
	DWORD		fdwSupport;
	DWORD		cDestinations;
1153
} MIXERCAPSW,*LPMIXERCAPSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
1154

Alexandre Julliard's avatar
Alexandre Julliard committed
1155 1156
DECL_WINELIB_TYPE_AW(MIXERCAPS)
DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
Alexandre Julliard's avatar
Alexandre Julliard committed
1157

Robert Reif's avatar
Robert Reif committed
1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184
typedef struct tagMIXERCAPS2A {
	WORD		wMid;
	WORD		wPid;
	MMVERSION	vDriverVersion;
	CHAR		szPname[MAXPNAMELEN];
	DWORD		fdwSupport;
	DWORD		cDestinations;
	GUID		ManufacturerGuid;
	GUID		ProductGuid;
	GUID		NameGuid;
} MIXERCAPS2A,*LPMIXERCAPS2A;

typedef struct tagMIXERCAPS2W {
	WORD		wMid;
	WORD		wPid;
	MMVERSION	vDriverVersion;
	WCHAR		szPname[MAXPNAMELEN];
	DWORD		fdwSupport;
	DWORD		cDestinations;
	GUID		ManufacturerGuid;
	GUID		ProductGuid;
	GUID		NameGuid;
} MIXERCAPS2W,*LPMIXERCAPS2W;

DECL_WINELIB_TYPE_AW(MIXERCAPS2)
DECL_WINELIB_TYPE_AW(LPMIXERCAPS2)

1185 1186
#define MIXER_SHORT_NAME_CHARS		16
#define MIXER_LONG_NAME_CHARS		64
Alexandre Julliard's avatar
Alexandre Julliard committed
1187 1188 1189 1190 1191 1192

/*  MIXERLINE.fdwLine */
#define	MIXERLINE_LINEF_ACTIVE		0x00000001
#define	MIXERLINE_LINEF_DISCONNECTED	0x00008000
#define	MIXERLINE_LINEF_SOURCE		0x80000000

1193
/* Mixer flags */
1194 1195
#define MIXER_OBJECTF_HANDLE    __MSABI_LONG(0x80000000)
#define MIXER_OBJECTF_MIXER     __MSABI_LONG(0x00000000)
1196
#define MIXER_OBJECTF_HMIXER	(MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
1197
#define MIXER_OBJECTF_WAVEOUT   __MSABI_LONG(0x10000000)
1198
#define MIXER_OBJECTF_HWAVEOUT	(MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
1199
#define MIXER_OBJECTF_WAVEIN    __MSABI_LONG(0x20000000)
1200
#define MIXER_OBJECTF_HWAVEIN	(MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
1201
#define MIXER_OBJECTF_MIDIOUT   __MSABI_LONG(0x30000000)
1202
#define MIXER_OBJECTF_HMIDIOUT	(MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
1203
#define MIXER_OBJECTF_MIDIIN    __MSABI_LONG(0x40000000)
1204
#define MIXER_OBJECTF_HMIDIIN	(MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
1205
#define MIXER_OBJECTF_AUX       __MSABI_LONG(0x50000000)
1206

Alexandre Julliard's avatar
Alexandre Julliard committed
1207 1208
/*  MIXERLINE.dwComponentType */
/*  component types for destinations and sources */
1209
#define MIXERLINE_COMPONENTTYPE_DST_FIRST       __MSABI_LONG(0x00000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220
#define	MIXERLINE_COMPONENTTYPE_DST_UNDEFINED	(MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
#define	MIXERLINE_COMPONENTTYPE_DST_DIGITAL	(MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
#define	MIXERLINE_COMPONENTTYPE_DST_LINE	(MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
#define	MIXERLINE_COMPONENTTYPE_DST_MONITOR	(MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
#define	MIXERLINE_COMPONENTTYPE_DST_SPEAKERS	(MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
#define	MIXERLINE_COMPONENTTYPE_DST_HEADPHONES	(MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
#define	MIXERLINE_COMPONENTTYPE_DST_TELEPHONE	(MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
#define	MIXERLINE_COMPONENTTYPE_DST_WAVEIN	(MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
#define	MIXERLINE_COMPONENTTYPE_DST_VOICEIN	(MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
#define	MIXERLINE_COMPONENTTYPE_DST_LAST	(MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)

1221
#define MIXERLINE_COMPONENTTYPE_SRC_FIRST       __MSABI_LONG(0x00001000)
Alexandre Julliard's avatar
Alexandre Julliard committed
1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
#define	MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
#define	MIXERLINE_COMPONENTTYPE_SRC_DIGITAL	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
#define	MIXERLINE_COMPONENTTYPE_SRC_LINE	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
#define	MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
#define	MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
#define	MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
#define	MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
#define	MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
#define	MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
#define	MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
#define	MIXERLINE_COMPONENTTYPE_SRC_ANALOG	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
#define	MIXERLINE_COMPONENTTYPE_SRC_LAST	(MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)

/*  MIXERLINE.Target.dwType */
#define	MIXERLINE_TARGETTYPE_UNDEFINED	0
#define	MIXERLINE_TARGETTYPE_WAVEOUT	1
#define	MIXERLINE_TARGETTYPE_WAVEIN	2
#define	MIXERLINE_TARGETTYPE_MIDIOUT	3
#define	MIXERLINE_TARGETTYPE_MIDIIN	4
#define MIXERLINE_TARGETTYPE_AUX	5

1243
typedef struct tagMIXERLINEA {
Alexandre Julliard's avatar
Alexandre Julliard committed
1244 1245 1246 1247 1248
    DWORD	cbStruct;
    DWORD	dwDestination;
    DWORD	dwSource;
    DWORD	dwLineID;
    DWORD	fdwLine;
1249
    DWORD_PTR	dwUser;
Alexandre Julliard's avatar
Alexandre Julliard committed
1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260
    DWORD	dwComponentType;
    DWORD	cChannels;
    DWORD	cConnections;
    DWORD	cControls;
    CHAR	szShortName[MIXER_SHORT_NAME_CHARS];
    CHAR	szName[MIXER_LONG_NAME_CHARS];
    struct {
	DWORD	dwType;
	DWORD	dwDeviceID;
	WORD	wMid;
	WORD	wPid;
1261
	MMVERSION	vDriverVersion;
Alexandre Julliard's avatar
Alexandre Julliard committed
1262 1263
	CHAR	szPname[MAXPNAMELEN];
    } Target;
1264
} MIXERLINEA, *LPMIXERLINEA;
Alexandre Julliard's avatar
Alexandre Julliard committed
1265

1266
typedef struct tagMIXERLINEW {
Alexandre Julliard's avatar
Alexandre Julliard committed
1267 1268 1269 1270 1271
    DWORD	cbStruct;
    DWORD	dwDestination;
    DWORD	dwSource;
    DWORD	dwLineID;
    DWORD	fdwLine;
1272
    DWORD_PTR	dwUser;
Alexandre Julliard's avatar
Alexandre Julliard committed
1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283
    DWORD	dwComponentType;
    DWORD	cChannels;
    DWORD	cConnections;
    DWORD	cControls;
    WCHAR	szShortName[MIXER_SHORT_NAME_CHARS];
    WCHAR	szName[MIXER_LONG_NAME_CHARS];
    struct {
	DWORD	dwType;
	DWORD	dwDeviceID;
	WORD	wMid;
	WORD	wPid;
1284
	MMVERSION	vDriverVersion;
Alexandre Julliard's avatar
Alexandre Julliard committed
1285 1286
	WCHAR	szPname[MAXPNAMELEN];
    } Target;
1287
} MIXERLINEW, *LPMIXERLINEW;
Alexandre Julliard's avatar
Alexandre Julliard committed
1288

Alexandre Julliard's avatar
Alexandre Julliard committed
1289 1290
DECL_WINELIB_TYPE_AW(MIXERLINE)
DECL_WINELIB_TYPE_AW(LPMIXERLINE)
Alexandre Julliard's avatar
Alexandre Julliard committed
1291 1292

/*  MIXERCONTROL.fdwControl */
1293 1294 1295
#define MIXERCONTROL_CONTROLF_UNIFORM           __MSABI_LONG(0x00000001)
#define MIXERCONTROL_CONTROLF_MULTIPLE          __MSABI_LONG(0x00000002)
#define MIXERCONTROL_CONTROLF_DISABLED          __MSABI_LONG(0x80000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
1296 1297

/*  MIXERCONTROL_CONTROLTYPE_xxx building block defines */
1298 1299 1300 1301 1302 1303 1304 1305 1306
#define MIXERCONTROL_CT_CLASS_MASK              __MSABI_LONG(0xF0000000)
#define MIXERCONTROL_CT_CLASS_CUSTOM            __MSABI_LONG(0x00000000)
#define MIXERCONTROL_CT_CLASS_METER             __MSABI_LONG(0x10000000)
#define MIXERCONTROL_CT_CLASS_SWITCH            __MSABI_LONG(0x20000000)
#define MIXERCONTROL_CT_CLASS_NUMBER            __MSABI_LONG(0x30000000)
#define MIXERCONTROL_CT_CLASS_SLIDER            __MSABI_LONG(0x40000000)
#define MIXERCONTROL_CT_CLASS_FADER             __MSABI_LONG(0x50000000)
#define MIXERCONTROL_CT_CLASS_TIME              __MSABI_LONG(0x60000000)
#define MIXERCONTROL_CT_CLASS_LIST              __MSABI_LONG(0x70000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
1307

1308
#define MIXERCONTROL_CT_SUBCLASS_MASK           __MSABI_LONG(0x0F000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
1309

1310 1311
#define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN       __MSABI_LONG(0x00000000)
#define MIXERCONTROL_CT_SC_SWITCH_BUTTON        __MSABI_LONG(0x01000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
1312

1313
#define MIXERCONTROL_CT_SC_METER_POLLED         __MSABI_LONG(0x00000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
1314

1315 1316
#define MIXERCONTROL_CT_SC_TIME_MICROSECS       __MSABI_LONG(0x00000000)
#define MIXERCONTROL_CT_SC_TIME_MILLISECS       __MSABI_LONG(0x01000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
1317

1318 1319
#define MIXERCONTROL_CT_SC_LIST_SINGLE          __MSABI_LONG(0x00000000)
#define MIXERCONTROL_CT_SC_LIST_MULTIPLE        __MSABI_LONG(0x01000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
1320

1321 1322 1323 1324 1325 1326 1327
#define MIXERCONTROL_CT_UNITS_MASK              __MSABI_LONG(0x00FF0000)
#define MIXERCONTROL_CT_UNITS_CUSTOM            __MSABI_LONG(0x00000000)
#define MIXERCONTROL_CT_UNITS_BOOLEAN           __MSABI_LONG(0x00010000)
#define MIXERCONTROL_CT_UNITS_SIGNED            __MSABI_LONG(0x00020000)
#define MIXERCONTROL_CT_UNITS_UNSIGNED          __MSABI_LONG(0x00030000)
#define MIXERCONTROL_CT_UNITS_DECIBELS          __MSABI_LONG(0x00040000) /* in 10ths */
#define MIXERCONTROL_CT_UNITS_PERCENT           __MSABI_LONG(0x00050000) /* in 10ths */
Alexandre Julliard's avatar
Alexandre Julliard committed
1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340

/*  Commonly used control types for specifying MIXERCONTROL.dwControlType */
#define MIXERCONTROL_CONTROLTYPE_CUSTOM		(MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
#define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER	(MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
#define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER	(MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
#define MIXERCONTROL_CONTROLTYPE_PEAKMETER	(MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
#define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER	(MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
#define MIXERCONTROL_CONTROLTYPE_BOOLEAN	(MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
#define MIXERCONTROL_CONTROLTYPE_ONOFF		(MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
#define MIXERCONTROL_CONTROLTYPE_MUTE		(MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
#define MIXERCONTROL_CONTROLTYPE_MONO		(MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
#define MIXERCONTROL_CONTROLTYPE_LOUDNESS	(MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
#define MIXERCONTROL_CONTROLTYPE_STEREOENH	(MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
Robert Reif's avatar
Robert Reif committed
1341
#define MIXERCONTROL_CONTROLTYPE_BASS_BOOST     (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 0x00002277)
Alexandre Julliard's avatar
Alexandre Julliard committed
1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362
#define MIXERCONTROL_CONTROLTYPE_BUTTON		(MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
#define MIXERCONTROL_CONTROLTYPE_DECIBELS	(MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
#define MIXERCONTROL_CONTROLTYPE_SIGNED		(MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
#define MIXERCONTROL_CONTROLTYPE_UNSIGNED	(MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
#define MIXERCONTROL_CONTROLTYPE_PERCENT	(MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
#define MIXERCONTROL_CONTROLTYPE_SLIDER		(MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
#define MIXERCONTROL_CONTROLTYPE_PAN		(MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
#define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN	(MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
#define MIXERCONTROL_CONTROLTYPE_FADER		(MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
#define MIXERCONTROL_CONTROLTYPE_VOLUME		(MIXERCONTROL_CONTROLTYPE_FADER + 1)
#define MIXERCONTROL_CONTROLTYPE_BASS		(MIXERCONTROL_CONTROLTYPE_FADER + 2)
#define MIXERCONTROL_CONTROLTYPE_TREBLE		(MIXERCONTROL_CONTROLTYPE_FADER + 3)
#define MIXERCONTROL_CONTROLTYPE_EQUALIZER	(MIXERCONTROL_CONTROLTYPE_FADER + 4)
#define MIXERCONTROL_CONTROLTYPE_SINGLESELECT	(MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
#define MIXERCONTROL_CONTROLTYPE_MUX		(MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
#define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT	(MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
#define MIXERCONTROL_CONTROLTYPE_MIXER		(MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
#define MIXERCONTROL_CONTROLTYPE_MICROTIME	(MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
#define MIXERCONTROL_CONTROLTYPE_MILLITIME	(MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)


1363
typedef struct tagMIXERCONTROLA {
Alexandre Julliard's avatar
Alexandre Julliard committed
1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374
    DWORD		cbStruct;
    DWORD		dwControlID;
    DWORD		dwControlType;
    DWORD		fdwControl;
    DWORD		cMultipleItems;
    CHAR		szShortName[MIXER_SHORT_NAME_CHARS];
    CHAR		szName[MIXER_LONG_NAME_CHARS];
    union {
	struct {
	    LONG	lMinimum;
	    LONG	lMaximum;
1375
	} DUMMYSTRUCTNAME;
Alexandre Julliard's avatar
Alexandre Julliard committed
1376 1377 1378
	struct {
	    DWORD	dwMinimum;
	    DWORD	dwMaximum;
1379
	} DUMMYSTRUCTNAME1;
Alexandre Julliard's avatar
Alexandre Julliard committed
1380 1381 1382 1383 1384 1385 1386
	DWORD       	dwReserved[6];
    } Bounds;
    union {
	DWORD		cSteps;
	DWORD		cbCustomData;
	DWORD		dwReserved[6];
    } Metrics;
1387
} MIXERCONTROLA, *LPMIXERCONTROLA;
Alexandre Julliard's avatar
Alexandre Julliard committed
1388

1389
typedef struct MIXERCONTROLW {
Alexandre Julliard's avatar
Alexandre Julliard committed
1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400
    DWORD		cbStruct;
    DWORD		dwControlID;
    DWORD		dwControlType;
    DWORD		fdwControl;
    DWORD		cMultipleItems;
    WCHAR		szShortName[MIXER_SHORT_NAME_CHARS];
    WCHAR		szName[MIXER_LONG_NAME_CHARS];
    union {
	struct {
	    LONG	lMinimum;
	    LONG	lMaximum;
1401
	} DUMMYSTRUCTNAME;
Alexandre Julliard's avatar
Alexandre Julliard committed
1402 1403 1404
	struct {
	    DWORD	dwMinimum;
	    DWORD	dwMaximum;
1405
	} DUMMYSTRUCTNAME1;
Alexandre Julliard's avatar
Alexandre Julliard committed
1406 1407 1408 1409 1410 1411 1412
	DWORD       	dwReserved[6];
    } Bounds;
    union {
	DWORD		cSteps;
	DWORD		cbCustomData;
	DWORD		dwReserved[6];
    } Metrics;
1413
} MIXERCONTROLW, *LPMIXERCONTROLW;
Alexandre Julliard's avatar
Alexandre Julliard committed
1414

Alexandre Julliard's avatar
Alexandre Julliard committed
1415 1416
DECL_WINELIB_TYPE_AW(MIXERCONTROL)
DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
Alexandre Julliard's avatar
Alexandre Julliard committed
1417

1418
typedef struct tagMIXERLINECONTROLSA {
Alexandre Julliard's avatar
Alexandre Julliard committed
1419 1420 1421 1422 1423
    DWORD	cbStruct;
    DWORD	dwLineID;
    union {
	DWORD	dwControlID;
	DWORD	dwControlType;
1424
    } DUMMYUNIONNAME;
Alexandre Julliard's avatar
Alexandre Julliard committed
1425 1426
    DWORD	cControls;
    DWORD	cbmxctrl;
1427 1428
    LPMIXERCONTROLA	pamxctrl;
} MIXERLINECONTROLSA, *LPMIXERLINECONTROLSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
1429

1430
typedef struct tagMIXERLINECONTROLSW {
Alexandre Julliard's avatar
Alexandre Julliard committed
1431 1432 1433 1434 1435
    DWORD	cbStruct;
    DWORD	dwLineID;
    union {
	DWORD	dwControlID;
	DWORD	dwControlType;
1436
    } DUMMYUNIONNAME;
Alexandre Julliard's avatar
Alexandre Julliard committed
1437 1438
    DWORD	cControls;
    DWORD	cbmxctrl;
1439 1440
    LPMIXERCONTROLW	pamxctrl;
} MIXERLINECONTROLSW, *LPMIXERLINECONTROLSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
1441

Alexandre Julliard's avatar
Alexandre Julliard committed
1442 1443
DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
Alexandre Julliard's avatar
Alexandre Julliard committed
1444

1445
typedef struct tMIXERCONTROLDETAILS {
Alexandre Julliard's avatar
Alexandre Julliard committed
1446 1447 1448 1449
    DWORD	cbStruct;
    DWORD	dwControlID;
    DWORD	cChannels;
    union {
1450
        HWND	hwndOwner;
Alexandre Julliard's avatar
Alexandre Julliard committed
1451
        DWORD	cMultipleItems;
1452
    } DUMMYUNIONNAME;
Alexandre Julliard's avatar
Alexandre Julliard committed
1453 1454
    DWORD	cbDetails;
    LPVOID	paDetails;
1455
} MIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
Alexandre Julliard's avatar
Alexandre Julliard committed
1456

1457
typedef struct tagMIXERCONTROLDETAILS_LISTTEXTA {
Alexandre Julliard's avatar
Alexandre Julliard committed
1458 1459 1460
    DWORD	dwParam1;
    DWORD	dwParam2;
    CHAR	szName[MIXER_LONG_NAME_CHARS];
1461
} MIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
Alexandre Julliard's avatar
Alexandre Julliard committed
1462

1463
typedef struct tagMIXERCONTROLDETAILS_LISTTEXTW {
Alexandre Julliard's avatar
Alexandre Julliard committed
1464 1465 1466
    DWORD	dwParam1;
    DWORD	dwParam2;
    WCHAR	szName[MIXER_LONG_NAME_CHARS];
1467
} MIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
Alexandre Julliard's avatar
Alexandre Julliard committed
1468

Alexandre Julliard's avatar
Alexandre Julliard committed
1469 1470
DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
Alexandre Julliard's avatar
Alexandre Julliard committed
1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485

/*  MIXER_GETCONTROLDETAILSF_VALUE */
typedef struct {
	LONG	fValue;
} MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;

typedef struct {
	LONG	lValue;
} MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;

typedef struct {
	DWORD	dwValue;
} MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;

/* bits passed to mixerGetLineInfo.fdwInfo */
1486 1487 1488 1489 1490 1491
#define MIXER_GETLINEINFOF_DESTINATION          __MSABI_LONG(0x00000000)
#define MIXER_GETLINEINFOF_SOURCE               __MSABI_LONG(0x00000001)
#define MIXER_GETLINEINFOF_LINEID               __MSABI_LONG(0x00000002)
#define MIXER_GETLINEINFOF_COMPONENTTYPE        __MSABI_LONG(0x00000003)
#define MIXER_GETLINEINFOF_TARGETTYPE           __MSABI_LONG(0x00000004)
#define MIXER_GETLINEINFOF_QUERYMASK            __MSABI_LONG(0x0000000F)
Alexandre Julliard's avatar
Alexandre Julliard committed
1492 1493

/* bitmask passed to mixerGetLineControl */
1494 1495 1496 1497
#define MIXER_GETLINECONTROLSF_ALL              __MSABI_LONG(0x00000000)
#define MIXER_GETLINECONTROLSF_ONEBYID          __MSABI_LONG(0x00000001)
#define MIXER_GETLINECONTROLSF_ONEBYTYPE        __MSABI_LONG(0x00000002)
#define MIXER_GETLINECONTROLSF_QUERYMASK        __MSABI_LONG(0x0000000F)
Alexandre Julliard's avatar
Alexandre Julliard committed
1498 1499

/* bitmask passed to mixerGetControlDetails */
1500 1501 1502
#define MIXER_GETCONTROLDETAILSF_VALUE          __MSABI_LONG(0x00000000)
#define MIXER_GETCONTROLDETAILSF_LISTTEXT       __MSABI_LONG(0x00000001)
#define MIXER_GETCONTROLDETAILSF_QUERYMASK      __MSABI_LONG(0x0000000F)
Alexandre Julliard's avatar
Alexandre Julliard committed
1503 1504

/* bitmask passed to mixerSetControlDetails */
1505 1506 1507
#define MIXER_SETCONTROLDETAILSF_VALUE          __MSABI_LONG(0x00000000)
#define MIXER_SETCONTROLDETAILSF_CUSTOM         __MSABI_LONG(0x00000001)
#define MIXER_SETCONTROLDETAILSF_QUERYMASK      __MSABI_LONG(0x0000000F)
Alexandre Julliard's avatar
Alexandre Julliard committed
1508

1509
UINT		WINAPI	mixerGetNumDevs(void);
1510
UINT           WINAPI  mixerOpen(LPHMIXER,UINT,DWORD_PTR,DWORD_PTR,DWORD);
1511
UINT		WINAPI	mixerClose(HMIXER);
1512
DWORD           WINAPI  mixerMessage(HMIXER,UINT,DWORD_PTR,DWORD_PTR);
1513 1514
UINT           WINAPI  mixerGetDevCapsA(UINT_PTR,LPMIXERCAPSA,UINT);
UINT           WINAPI  mixerGetDevCapsW(UINT_PTR,LPMIXERCAPSW,UINT);
1515 1516 1517 1518 1519 1520 1521
#define 		mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
UINT		WINAPI	mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
UINT		WINAPI	mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
#define 		mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
UINT		WINAPI	mixerGetID(HMIXEROBJ,LPUINT,DWORD);
UINT		WINAPI	mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
UINT		WINAPI	mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
1522
#define 		mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
1523 1524 1525 1526
UINT		WINAPI	mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
UINT		WINAPI	mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
#define 		mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
UINT		WINAPI	mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
Alexandre Julliard's avatar
Alexandre Julliard committed
1527

Alexandre Julliard's avatar
Alexandre Julliard committed
1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538
#define MMIOERR_BASE            256
#define MMIOERR_FILENOTFOUND    (MMIOERR_BASE + 1)  /* file not found */
#define MMIOERR_OUTOFMEMORY     (MMIOERR_BASE + 2)  /* out of memory */
#define MMIOERR_CANNOTOPEN      (MMIOERR_BASE + 3)  /* cannot open */
#define MMIOERR_CANNOTCLOSE     (MMIOERR_BASE + 4)  /* cannot close */
#define MMIOERR_CANNOTREAD      (MMIOERR_BASE + 5)  /* cannot read */
#define MMIOERR_CANNOTWRITE     (MMIOERR_BASE + 6)  /* cannot write */
#define MMIOERR_CANNOTSEEK      (MMIOERR_BASE + 7)  /* cannot seek */
#define MMIOERR_CANNOTEXPAND    (MMIOERR_BASE + 8)  /* cannot expand file */
#define MMIOERR_CHUNKNOTFOUND   (MMIOERR_BASE + 9)  /* chunk not found */
#define MMIOERR_UNBUFFERED      (MMIOERR_BASE + 10) /* file is unbuffered */
1539 1540 1541 1542 1543 1544
#define MMIOERR_PATHNOTFOUND     (MMIOERR_BASE + 11)
#define MMIOERR_ACCESSDENIED     (MMIOERR_BASE + 12)
#define MMIOERR_SHARINGVIOLATION (MMIOERR_BASE + 13)
#define MMIOERR_NETWORKERROR     (MMIOERR_BASE + 14)
#define MMIOERR_TOOMANYOPENFILES (MMIOERR_BASE + 15)
#define MMIOERR_INVALIDFILE      (MMIOERR_BASE + 16)
Alexandre Julliard's avatar
Alexandre Julliard committed
1545 1546 1547 1548

#define CFSEPCHAR       '+'             /* compound file name separator char. */

typedef DWORD           FOURCC;         /* a four character code */
1549
typedef LRESULT (CALLBACK *LPMMIOPROC)  (LPSTR lpmmioinfo, UINT uMessage,
1550
					 LPARAM lParam1, LPARAM lParam2);
Alexandre Julliard's avatar
Alexandre Julliard committed
1551

1552
typedef struct _MMIOINFO {
Alexandre Julliard's avatar
Alexandre Julliard committed
1553 1554
        DWORD		dwFlags;
        FOURCC		fccIOProc;
1555 1556
        LPMMIOPROC	pIOProc;
        UINT		wErrorRet;
1557
        HTASK		hTask;
Alexandre Julliard's avatar
Alexandre Julliard committed
1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570
        /* fields maintained by MMIO functions during buffered I/O */
        LONG		cchBuffer;
        HPSTR		pchBuffer;
        HPSTR		pchNext;
        HPSTR		pchEndRead;
        HPSTR		pchEndWrite;
        LONG		lBufOffset;
        /* fields maintained by I/O procedure */
        LONG		lDiskOffset;
        DWORD		adwInfo[3];
        /* other fields maintained by MMIO */
        DWORD		dwReserved1;
        DWORD		dwReserved2;
1571 1572
        HMMIO		hmmio;
} MMIOINFO, *PMMIOINFO, *LPMMIOINFO;
1573

Alexandre Julliard's avatar
Alexandre Julliard committed
1574 1575 1576 1577 1578 1579 1580 1581

typedef struct _MMCKINFO
{
        FOURCC          ckid;           /* chunk ID */
        DWORD           cksize;         /* chunk size */
        FOURCC          fccType;        /* form type or list type */
        DWORD           dwDataOffset;   /* offset of data portion of chunk */
        DWORD           dwFlags;        /* flags used by MMIO functions */
Alexandre Julliard's avatar
Alexandre Julliard committed
1582
} MMCKINFO, *LPMMCKINFO;
Alexandre Julliard's avatar
Alexandre Julliard committed
1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618

#define MMIO_RWMODE     0x00000003      /* open file for reading/writing/both */
#define MMIO_SHAREMODE  0x00000070      /* file sharing mode number */

#define MMIO_CREATE     0x00001000      /* create new file (or truncate file) */
#define MMIO_PARSE      0x00000100      /* parse new file returning path */
#define MMIO_DELETE     0x00000200      /* create new file (or truncate file) */
#define MMIO_EXIST      0x00004000      /* checks for existence of file */
#define MMIO_ALLOCBUF   0x00010000      /* mmioOpen() should allocate a buffer */
#define MMIO_GETTEMP    0x00020000      /* mmioOpen() should retrieve temp name */

#define MMIO_DIRTY      0x10000000      /* I/O buffer is dirty */

#define MMIO_READ       0x00000000      /* open file for reading only */
#define MMIO_WRITE      0x00000001      /* open file for writing only */
#define MMIO_READWRITE  0x00000002      /* open file for reading and writing */

#define MMIO_COMPAT     0x00000000      /* compatibility mode */
#define MMIO_EXCLUSIVE  0x00000010      /* exclusive-access mode */
#define MMIO_DENYWRITE  0x00000020      /* deny writing to other processes */
#define MMIO_DENYREAD   0x00000030      /* deny reading to other processes */
#define MMIO_DENYNONE   0x00000040      /* deny nothing to other processes */

#define MMIO_FHOPEN             0x0010  /* mmioClose: keep file handle open */
#define MMIO_EMPTYBUF           0x0010  /* mmioFlush: empty the I/O buffer */
#define MMIO_TOUPPER            0x0010  /* mmioStringToFOURCC: to u-case */
#define MMIO_INSTALLPROC    0x00010000  /* mmioInstallIOProc: install MMIOProc */
#define MMIO_GLOBALPROC     0x10000000  /* mmioInstallIOProc: install globally */
#define MMIO_REMOVEPROC     0x00020000  /* mmioInstallIOProc: remove MMIOProc */
#define MMIO_FINDPROC       0x00040000  /* mmioInstallIOProc: find an MMIOProc */
#define MMIO_FINDCHUNK          0x0010  /* mmioDescend: find a chunk by ID */
#define MMIO_FINDRIFF           0x0020  /* mmioDescend: find a LIST chunk */
#define MMIO_FINDLIST           0x0040  /* mmioDescend: find a RIFF chunk */
#define MMIO_CREATERIFF         0x0020  /* mmioCreateChunk: make a LIST chunk */
#define MMIO_CREATELIST         0x0040  /* mmioCreateChunk: make a RIFF chunk */

Steven Edwards's avatar
Steven Edwards committed
1619
#ifndef SEEK_SET
Alexandre Julliard's avatar
Alexandre Julliard committed
1620 1621 1622
#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2
Steven Edwards's avatar
Steven Edwards committed
1623
#endif  /* SEEK_SET */
Alexandre Julliard's avatar
Alexandre Julliard committed
1624

Alexandre Julliard's avatar
Alexandre Julliard committed
1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647
#define MMIOM_READ      MMIO_READ       /* read */
#define MMIOM_WRITE    MMIO_WRITE       /* write */
#define MMIOM_SEEK              2       /* seek to a new position in file */
#define MMIOM_OPEN              3       /* open file */
#define MMIOM_CLOSE             4       /* close file */
#define MMIOM_WRITEFLUSH        5       /* write and flush */

#define MMIOM_RENAME            6       /* rename specified file */

#define MMIOM_USER         0x8000       /* beginning of user-defined messages */

#define FOURCC_RIFF     mmioFOURCC('R', 'I', 'F', 'F')
#define FOURCC_LIST     mmioFOURCC('L', 'I', 'S', 'T')

#define FOURCC_DOS      mmioFOURCC('D', 'O', 'S', ' ')
#define FOURCC_MEM      mmioFOURCC('M', 'E', 'M', ' ')

#define MMIO_DEFAULTBUFFER      8192    /* default buffer size */

#define mmioFOURCC( ch0, ch1, ch2, ch3 )                                \
                ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) |    \
                ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )

1648 1649 1650 1651 1652 1653 1654
LPMMIOPROC 	WINAPI 	mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
LPMMIOPROC 	WINAPI 	mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
#define      		mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)

FOURCC 		WINAPI	mmioStringToFOURCCA(LPCSTR,UINT);
FOURCC 		WINAPI	mmioStringToFOURCCW(LPCWSTR,UINT);
#define 		mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
1655
HMMIO		WINAPI	mmioOpenA(LPSTR,MMIOINFO*,DWORD);
1656 1657 1658
HMMIO		WINAPI	mmioOpenW(LPWSTR,MMIOINFO*,DWORD);
#define			mmioOpen WINELIB_NAME_AW(mmioOpen)

1659
MMRESULT	WINAPI	mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
1660
				    const MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1661
MMRESULT	WINAPI	mmioRenameW(LPCWSTR szFileName, LPCWSTR szNewFileName,
1662
				    const MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
1663 1664 1665 1666 1667 1668 1669 1670
#define 		mmioRename WINELIB_NAME_AW(mmioRename)

MMRESULT 	WINAPI	mmioClose(HMMIO,UINT);
LONG 		WINAPI	mmioRead(HMMIO,HPSTR,LONG);
LONG 		WINAPI	mmioWrite(HMMIO,HPCSTR,LONG);
LONG 		WINAPI	mmioSeek(HMMIO,LONG,INT);
MMRESULT 	WINAPI	mmioGetInfo(HMMIO,MMIOINFO*,UINT);
MMRESULT 	WINAPI	mmioSetInfo(HMMIO,const MMIOINFO*,UINT);
1671 1672 1673 1674 1675 1676 1677
MMRESULT	WINAPI	mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
MMRESULT	WINAPI	mmioFlush(HMMIO,UINT);
MMRESULT	WINAPI	mmioAdvance(HMMIO,MMIOINFO*,UINT);
LRESULT		WINAPI	mmioSendMessage(HMMIO,UINT,LPARAM,LPARAM);
MMRESULT	WINAPI	mmioDescend(HMMIO,MMCKINFO*,const MMCKINFO*,UINT);
MMRESULT	WINAPI	mmioAscend(HMMIO,MMCKINFO*,UINT);
MMRESULT	WINAPI	mmioCreateChunk(HMMIO,MMCKINFO*,UINT);
Alexandre Julliard's avatar
Alexandre Julliard committed
1678

1679
typedef UINT (CALLBACK *YIELDPROC)(MCIDEVICEID,DWORD);
Alexandre Julliard's avatar
Alexandre Julliard committed
1680

1681 1682 1683
BOOL            WINAPI  mciExecute(LPCSTR);
DWORD           WINAPI  mciSendCommandA(MCIDEVICEID,UINT,DWORD_PTR,DWORD_PTR);
DWORD           WINAPI  mciSendCommandW(MCIDEVICEID,UINT,DWORD_PTR,DWORD_PTR);
1684 1685
#define 		mciSendCommand WINELIB_NAME_AW(mciSendCommand)
DWORD		WINAPI	mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
1686
DWORD		WINAPI	mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND);
1687
#define 		mciSendString WINELIB_NAME_AW(mciSendString)
1688 1689
MCIDEVICEID	WINAPI	mciGetDeviceIDA(LPCSTR);
MCIDEVICEID	WINAPI	mciGetDeviceIDW(LPCWSTR);
1690
#define 		mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
1691 1692 1693 1694 1695
MCIDEVICEID     WINAPI  mciGetDeviceIDFromElementIDA(DWORD,LPCSTR);
MCIDEVICEID     WINAPI  mciGetDeviceIDFromElementIDW(DWORD,LPCWSTR);
#define                 mciGetDeviceIDFromElementID WINELIB_NAME_AW(mciGetDeviceIDFromElementID)
BOOL            WINAPI  mciGetErrorStringA(MCIERROR,LPSTR,UINT);
BOOL            WINAPI  mciGetErrorStringW(MCIERROR,LPWSTR,UINT);
1696
#define 		mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
1697 1698 1699
BOOL            WINAPI  mciSetYieldProc(MCIDEVICEID,YIELDPROC,DWORD);
HTASK           WINAPI  mciGetCreatorTask(MCIDEVICEID);
YIELDPROC       WINAPI  mciGetYieldProc(MCIDEVICEID,DWORD*);
Alexandre Julliard's avatar
Alexandre Julliard committed
1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778

#define MCIERR_INVALID_DEVICE_ID        (MCIERR_BASE + 1)
#define MCIERR_UNRECOGNIZED_KEYWORD     (MCIERR_BASE + 3)
#define MCIERR_UNRECOGNIZED_COMMAND     (MCIERR_BASE + 5)
#define MCIERR_HARDWARE                 (MCIERR_BASE + 6)
#define MCIERR_INVALID_DEVICE_NAME      (MCIERR_BASE + 7)
#define MCIERR_OUT_OF_MEMORY            (MCIERR_BASE + 8)
#define MCIERR_DEVICE_OPEN              (MCIERR_BASE + 9)
#define MCIERR_CANNOT_LOAD_DRIVER       (MCIERR_BASE + 10)
#define MCIERR_MISSING_COMMAND_STRING   (MCIERR_BASE + 11)
#define MCIERR_PARAM_OVERFLOW           (MCIERR_BASE + 12)
#define MCIERR_MISSING_STRING_ARGUMENT  (MCIERR_BASE + 13)
#define MCIERR_BAD_INTEGER              (MCIERR_BASE + 14)
#define MCIERR_PARSER_INTERNAL          (MCIERR_BASE + 15)
#define MCIERR_DRIVER_INTERNAL          (MCIERR_BASE + 16)
#define MCIERR_MISSING_PARAMETER        (MCIERR_BASE + 17)
#define MCIERR_UNSUPPORTED_FUNCTION     (MCIERR_BASE + 18)
#define MCIERR_FILE_NOT_FOUND           (MCIERR_BASE + 19)
#define MCIERR_DEVICE_NOT_READY         (MCIERR_BASE + 20)
#define MCIERR_INTERNAL                 (MCIERR_BASE + 21)
#define MCIERR_DRIVER                   (MCIERR_BASE + 22)
#define MCIERR_CANNOT_USE_ALL           (MCIERR_BASE + 23)
#define MCIERR_MULTIPLE                 (MCIERR_BASE + 24)
#define MCIERR_EXTENSION_NOT_FOUND      (MCIERR_BASE + 25)
#define MCIERR_OUTOFRANGE               (MCIERR_BASE + 26)
#define MCIERR_FLAGS_NOT_COMPATIBLE     (MCIERR_BASE + 28)
#define MCIERR_FILE_NOT_SAVED           (MCIERR_BASE + 30)
#define MCIERR_DEVICE_TYPE_REQUIRED     (MCIERR_BASE + 31)
#define MCIERR_DEVICE_LOCKED            (MCIERR_BASE + 32)
#define MCIERR_DUPLICATE_ALIAS          (MCIERR_BASE + 33)
#define MCIERR_BAD_CONSTANT             (MCIERR_BASE + 34)
#define MCIERR_MUST_USE_SHAREABLE       (MCIERR_BASE + 35)
#define MCIERR_MISSING_DEVICE_NAME      (MCIERR_BASE + 36)
#define MCIERR_BAD_TIME_FORMAT          (MCIERR_BASE + 37)
#define MCIERR_NO_CLOSING_QUOTE         (MCIERR_BASE + 38)
#define MCIERR_DUPLICATE_FLAGS          (MCIERR_BASE + 39)
#define MCIERR_INVALID_FILE             (MCIERR_BASE + 40)
#define MCIERR_NULL_PARAMETER_BLOCK     (MCIERR_BASE + 41)
#define MCIERR_UNNAMED_RESOURCE         (MCIERR_BASE + 42)
#define MCIERR_NEW_REQUIRES_ALIAS       (MCIERR_BASE + 43)
#define MCIERR_NOTIFY_ON_AUTO_OPEN      (MCIERR_BASE + 44)
#define MCIERR_NO_ELEMENT_ALLOWED       (MCIERR_BASE + 45)
#define MCIERR_NONAPPLICABLE_FUNCTION   (MCIERR_BASE + 46)
#define MCIERR_ILLEGAL_FOR_AUTO_OPEN    (MCIERR_BASE + 47)
#define MCIERR_FILENAME_REQUIRED        (MCIERR_BASE + 48)
#define MCIERR_EXTRA_CHARACTERS         (MCIERR_BASE + 49)
#define MCIERR_DEVICE_NOT_INSTALLED     (MCIERR_BASE + 50)
#define MCIERR_GET_CD                   (MCIERR_BASE + 51)
#define MCIERR_SET_CD                   (MCIERR_BASE + 52)
#define MCIERR_SET_DRIVE                (MCIERR_BASE + 53)
#define MCIERR_DEVICE_LENGTH            (MCIERR_BASE + 54)
#define MCIERR_DEVICE_ORD_LENGTH        (MCIERR_BASE + 55)
#define MCIERR_NO_INTEGER               (MCIERR_BASE + 56)

#define MCIERR_WAVE_OUTPUTSINUSE        (MCIERR_BASE + 64)
#define MCIERR_WAVE_SETOUTPUTINUSE      (MCIERR_BASE + 65)
#define MCIERR_WAVE_INPUTSINUSE         (MCIERR_BASE + 66)
#define MCIERR_WAVE_SETINPUTINUSE       (MCIERR_BASE + 67)
#define MCIERR_WAVE_OUTPUTUNSPECIFIED   (MCIERR_BASE + 68)
#define MCIERR_WAVE_INPUTUNSPECIFIED    (MCIERR_BASE + 69)
#define MCIERR_WAVE_OUTPUTSUNSUITABLE   (MCIERR_BASE + 70)
#define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
#define MCIERR_WAVE_INPUTSUNSUITABLE    (MCIERR_BASE + 72)
#define MCIERR_WAVE_SETINPUTUNSUITABLE  (MCIERR_BASE + 73)

#define MCIERR_SEQ_DIV_INCOMPATIBLE     (MCIERR_BASE + 80)
#define MCIERR_SEQ_PORT_INUSE           (MCIERR_BASE + 81)
#define MCIERR_SEQ_PORT_NONEXISTENT     (MCIERR_BASE + 82)
#define MCIERR_SEQ_PORT_MAPNODEVICE     (MCIERR_BASE + 83)
#define MCIERR_SEQ_PORT_MISCERROR       (MCIERR_BASE + 84)
#define MCIERR_SEQ_TIMER                (MCIERR_BASE + 85)
#define MCIERR_SEQ_PORTUNSPECIFIED      (MCIERR_BASE + 86)
#define MCIERR_SEQ_NOMIDIPRESENT        (MCIERR_BASE + 87)

#define MCIERR_NO_WINDOW                (MCIERR_BASE + 90)
#define MCIERR_CREATEWINDOW             (MCIERR_BASE + 91)
#define MCIERR_FILE_READ                (MCIERR_BASE + 92)
#define MCIERR_FILE_WRITE               (MCIERR_BASE + 93)

1779 1780
#define MCIERR_NO_IDENTITY		(MCIERR_BASE + 94)

Alexandre Julliard's avatar
Alexandre Julliard committed
1781 1782
#define MCIERR_CUSTOM_DRIVER_BASE       (MCIERR_BASE + 256)

1783 1784 1785 1786
#define MCI_OPEN_DRIVER			0x0801
#define MCI_CLOSE_DRIVER		0x0802
#define MCI_OPEN			0x0803
#define MCI_CLOSE			0x0804
Alexandre Julliard's avatar
Alexandre Julliard committed
1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819
#define MCI_ESCAPE                      0x0805
#define MCI_PLAY                        0x0806
#define MCI_SEEK                        0x0807
#define MCI_STOP                        0x0808
#define MCI_PAUSE                       0x0809
#define MCI_INFO                        0x080A
#define MCI_GETDEVCAPS                  0x080B
#define MCI_SPIN                        0x080C
#define MCI_SET                         0x080D
#define MCI_STEP                        0x080E
#define MCI_RECORD                      0x080F
#define MCI_SYSINFO                     0x0810
#define MCI_BREAK                       0x0811
#define MCI_SOUND                       0x0812
#define MCI_SAVE                        0x0813
#define MCI_STATUS                      0x0814
#define MCI_CUE                         0x0830
#define MCI_REALIZE                     0x0840
#define MCI_WINDOW                      0x0841
#define MCI_PUT                         0x0842
#define MCI_WHERE                       0x0843
#define MCI_FREEZE                      0x0844
#define MCI_UNFREEZE                    0x0845
#define MCI_LOAD                        0x0850
#define MCI_CUT                         0x0851
#define MCI_COPY                        0x0852
#define MCI_PASTE                       0x0853
#define MCI_UPDATE                      0x0854
#define MCI_RESUME                      0x0855
#define MCI_DELETE                      0x0856

#define MCI_USER_MESSAGES               (0x400 + DRV_MCI_FIRST)

1820
#define MCI_ALL_DEVICE_ID               0xFFFFFFFF
Alexandre Julliard's avatar
Alexandre Julliard committed
1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887

#define MCI_DEVTYPE_VCR                 (MCI_STRING_OFFSET + 1)
#define MCI_DEVTYPE_VIDEODISC           (MCI_STRING_OFFSET + 2)
#define MCI_DEVTYPE_OVERLAY             (MCI_STRING_OFFSET + 3)
#define MCI_DEVTYPE_CD_AUDIO            (MCI_STRING_OFFSET + 4)
#define MCI_DEVTYPE_DAT                 (MCI_STRING_OFFSET + 5)
#define MCI_DEVTYPE_SCANNER             (MCI_STRING_OFFSET + 6)
#define MCI_DEVTYPE_ANIMATION           (MCI_STRING_OFFSET + 7)
#define MCI_DEVTYPE_DIGITAL_VIDEO       (MCI_STRING_OFFSET + 8)
#define MCI_DEVTYPE_OTHER               (MCI_STRING_OFFSET + 9)
#define MCI_DEVTYPE_WAVEFORM_AUDIO      (MCI_STRING_OFFSET + 10)
#define MCI_DEVTYPE_SEQUENCER           (MCI_STRING_OFFSET + 11)

#define MCI_DEVTYPE_FIRST               MCI_DEVTYPE_VCR
#define MCI_DEVTYPE_LAST                MCI_DEVTYPE_SEQUENCER

#define MCI_MODE_NOT_READY              (MCI_STRING_OFFSET + 12)
#define MCI_MODE_STOP                   (MCI_STRING_OFFSET + 13)
#define MCI_MODE_PLAY                   (MCI_STRING_OFFSET + 14)
#define MCI_MODE_RECORD                 (MCI_STRING_OFFSET + 15)
#define MCI_MODE_SEEK                   (MCI_STRING_OFFSET + 16)
#define MCI_MODE_PAUSE                  (MCI_STRING_OFFSET + 17)
#define MCI_MODE_OPEN                   (MCI_STRING_OFFSET + 18)

#define MCI_FORMAT_MILLISECONDS         0
#define MCI_FORMAT_HMS                  1
#define MCI_FORMAT_MSF                  2
#define MCI_FORMAT_FRAMES               3
#define MCI_FORMAT_SMPTE_24             4
#define MCI_FORMAT_SMPTE_25             5
#define MCI_FORMAT_SMPTE_30             6
#define MCI_FORMAT_SMPTE_30DROP         7
#define MCI_FORMAT_BYTES                8
#define MCI_FORMAT_SAMPLES              9
#define MCI_FORMAT_TMSF                 10

#define MCI_MSF_MINUTE(msf)             ((BYTE)(msf))
#define MCI_MSF_SECOND(msf)             ((BYTE)(((WORD)(msf)) >> 8))
#define MCI_MSF_FRAME(msf)              ((BYTE)((msf)>>16))

#define MCI_MAKE_MSF(m, s, f)           ((DWORD)(((BYTE)(m) | \
                                                  ((WORD)(s)<<8)) | \
                                                 (((DWORD)(BYTE)(f))<<16)))

#define MCI_TMSF_TRACK(tmsf)            ((BYTE)(tmsf))
#define MCI_TMSF_MINUTE(tmsf)           ((BYTE)(((WORD)(tmsf)) >> 8))
#define MCI_TMSF_SECOND(tmsf)           ((BYTE)((tmsf)>>16))
#define MCI_TMSF_FRAME(tmsf)            ((BYTE)((tmsf)>>24))

#define MCI_MAKE_TMSF(t, m, s, f)       ((DWORD)(((BYTE)(t) | \
                                                  ((WORD)(m)<<8)) | \
                                                 (((DWORD)(BYTE)(s) | \
                                                   ((WORD)(f)<<8))<<16)))

#define MCI_HMS_HOUR(hms)               ((BYTE)(hms))
#define MCI_HMS_MINUTE(hms)             ((BYTE)(((WORD)(hms)) >> 8))
#define MCI_HMS_SECOND(hms)             ((BYTE)((hms)>>16))

#define MCI_MAKE_HMS(h, m, s)           ((DWORD)(((BYTE)(h) | \
                                                  ((WORD)(m)<<8)) | \
                                                 (((DWORD)(BYTE)(s))<<16)))

#define MCI_NOTIFY_SUCCESSFUL           0x0001
#define MCI_NOTIFY_SUPERSEDED           0x0002
#define MCI_NOTIFY_ABORTED              0x0004
#define MCI_NOTIFY_FAILURE              0x0008

1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963
#define MCI_NOTIFY                      __MSABI_LONG(0x00000001)
#define MCI_WAIT                        __MSABI_LONG(0x00000002)
#define MCI_FROM                        __MSABI_LONG(0x00000004)
#define MCI_TO                          __MSABI_LONG(0x00000008)
#define MCI_TRACK                       __MSABI_LONG(0x00000010)

#define MCI_OPEN_SHAREABLE              __MSABI_LONG(0x00000100)
#define MCI_OPEN_ELEMENT                __MSABI_LONG(0x00000200)
#define MCI_OPEN_ALIAS                  __MSABI_LONG(0x00000400)
#define MCI_OPEN_ELEMENT_ID             __MSABI_LONG(0x00000800)
#define MCI_OPEN_TYPE_ID                __MSABI_LONG(0x00001000)
#define MCI_OPEN_TYPE                   __MSABI_LONG(0x00002000)

#define MCI_SEEK_TO_START               __MSABI_LONG(0x00000100)
#define MCI_SEEK_TO_END                 __MSABI_LONG(0x00000200)

#define MCI_STATUS_ITEM                 __MSABI_LONG(0x00000100)
#define MCI_STATUS_START                __MSABI_LONG(0x00000200)

#define MCI_STATUS_LENGTH               __MSABI_LONG(0x00000001)
#define MCI_STATUS_POSITION             __MSABI_LONG(0x00000002)
#define MCI_STATUS_NUMBER_OF_TRACKS     __MSABI_LONG(0x00000003)
#define MCI_STATUS_MODE                 __MSABI_LONG(0x00000004)
#define MCI_STATUS_MEDIA_PRESENT        __MSABI_LONG(0x00000005)
#define MCI_STATUS_TIME_FORMAT          __MSABI_LONG(0x00000006)
#define MCI_STATUS_READY                __MSABI_LONG(0x00000007)
#define MCI_STATUS_CURRENT_TRACK        __MSABI_LONG(0x00000008)

#define MCI_INFO_PRODUCT                __MSABI_LONG(0x00000100)
#define MCI_INFO_FILE                   __MSABI_LONG(0x00000200)
#define MCI_INFO_MEDIA_UPC              __MSABI_LONG(0x00000400)
#define MCI_INFO_MEDIA_IDENTITY         __MSABI_LONG(0x00000800)
#define MCI_INFO_NAME                   __MSABI_LONG(0x00001000)
#define MCI_INFO_COPYRIGHT              __MSABI_LONG(0x00002000)

#define MCI_GETDEVCAPS_ITEM             __MSABI_LONG(0x00000100)

#define MCI_GETDEVCAPS_CAN_RECORD       __MSABI_LONG(0x00000001)
#define MCI_GETDEVCAPS_HAS_AUDIO        __MSABI_LONG(0x00000002)
#define MCI_GETDEVCAPS_HAS_VIDEO        __MSABI_LONG(0x00000003)
#define MCI_GETDEVCAPS_DEVICE_TYPE      __MSABI_LONG(0x00000004)
#define MCI_GETDEVCAPS_USES_FILES       __MSABI_LONG(0x00000005)
#define MCI_GETDEVCAPS_COMPOUND_DEVICE  __MSABI_LONG(0x00000006)
#define MCI_GETDEVCAPS_CAN_EJECT        __MSABI_LONG(0x00000007)
#define MCI_GETDEVCAPS_CAN_PLAY         __MSABI_LONG(0x00000008)
#define MCI_GETDEVCAPS_CAN_SAVE         __MSABI_LONG(0x00000009)

#define MCI_SYSINFO_QUANTITY            __MSABI_LONG(0x00000100)
#define MCI_SYSINFO_OPEN                __MSABI_LONG(0x00000200)
#define MCI_SYSINFO_NAME                __MSABI_LONG(0x00000400)
#define MCI_SYSINFO_INSTALLNAME         __MSABI_LONG(0x00000800)

#define MCI_SET_DOOR_OPEN               __MSABI_LONG(0x00000100)
#define MCI_SET_DOOR_CLOSED             __MSABI_LONG(0x00000200)
#define MCI_SET_TIME_FORMAT             __MSABI_LONG(0x00000400)
#define MCI_SET_AUDIO                   __MSABI_LONG(0x00000800)
#define MCI_SET_VIDEO                   __MSABI_LONG(0x00001000)
#define MCI_SET_ON                      __MSABI_LONG(0x00002000)
#define MCI_SET_OFF                     __MSABI_LONG(0x00004000)

#define MCI_SET_AUDIO_ALL               __MSABI_LONG(0x00000000)
#define MCI_SET_AUDIO_LEFT              __MSABI_LONG(0x00000001)
#define MCI_SET_AUDIO_RIGHT             __MSABI_LONG(0x00000002)

#define MCI_BREAK_KEY                   __MSABI_LONG(0x00000100)
#define MCI_BREAK_HWND                  __MSABI_LONG(0x00000200)
#define MCI_BREAK_OFF                   __MSABI_LONG(0x00000400)

#define MCI_RECORD_INSERT               __MSABI_LONG(0x00000100)
#define MCI_RECORD_OVERWRITE            __MSABI_LONG(0x00000200)

#define MCI_SOUND_NAME                  __MSABI_LONG(0x00000100)

#define MCI_SAVE_FILE                   __MSABI_LONG(0x00000100)

#define MCI_LOAD_FILE                   __MSABI_LONG(0x00000100)
Alexandre Julliard's avatar
Alexandre Julliard committed
1964

1965
typedef struct tagMCI_GENERIC_PARMS {
1966
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
1967
} MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
1968

1969
typedef struct tagMCI_OPEN_PARMSA {
1970
       DWORD_PTR       dwCallback;
1971
	MCIDEVICEID	wDeviceID;
1972 1973 1974
	LPCSTR		lpstrDeviceType;
	LPCSTR		lpstrElementName;
	LPCSTR		lpstrAlias;
1975
} MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
1976

1977
typedef struct tagMCI_OPEN_PARMSW {
1978
       DWORD_PTR       dwCallback;
1979
	MCIDEVICEID	wDeviceID;
1980 1981 1982
	LPCWSTR		lpstrDeviceType;
	LPCWSTR		lpstrElementName;
	LPCWSTR		lpstrAlias;
1983
} MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
1984

Alexandre Julliard's avatar
Alexandre Julliard committed
1985 1986
DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
1987

1988
typedef struct tagMCI_PLAY_PARMS{
1989
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
1990 1991
	DWORD   dwFrom;
	DWORD   dwTo;
Alexandre Julliard's avatar
Alexandre Julliard committed
1992
} MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
1993

1994
typedef struct tagMCI_SEEK_PARMS {
1995
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
1996
	DWORD   dwTo;
Alexandre Julliard's avatar
Alexandre Julliard committed
1997
} MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
1998

1999
typedef struct tagMCI_STATUS_PARMS {
2000
       DWORD_PTR dwCallback;
2001
       DWORD_PTR dwReturn;
Alexandre Julliard's avatar
Alexandre Julliard committed
2002 2003
	DWORD   dwItem;
	DWORD   dwTrack;
Alexandre Julliard's avatar
Alexandre Julliard committed
2004
} MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2005

2006
typedef struct tagMCI_INFO_PARMSA {
2007 2008 2009
    DWORD_PTR   dwCallback;
    LPSTR       lpstrReturn;
    DWORD       dwRetSize;
2010
} MCI_INFO_PARMSA, *LPMCI_INFO_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2011

2012
typedef struct tagMCI_INFO_PARMSW {
2013 2014 2015
    DWORD_PTR   dwCallback;
    LPWSTR      lpstrReturn;
    DWORD       dwRetSize;
2016
} MCI_INFO_PARMSW, *LPMCI_INFO_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2017

Alexandre Julliard's avatar
Alexandre Julliard committed
2018 2019
DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2020

2021
typedef struct tagMCI_GETDEVCAPS_PARMS {
2022
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2023 2024 2025 2026
	DWORD   dwReturn;
	DWORD   dwItem;
} MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;

2027 2028 2029 2030 2031 2032
typedef struct tagMCI_SYSINFO_PARMSA {
    DWORD_PTR   dwCallback;
    LPSTR	lpstrReturn;
    DWORD	dwRetSize;
    DWORD	dwNumber;
    UINT	wDeviceType;
2033
} MCI_SYSINFO_PARMSA, *LPMCI_SYSINFO_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2034

2035 2036 2037 2038 2039 2040
typedef struct tagMCI_SYSINFO_PARMSW {
    DWORD_PTR   dwCallback;
    LPWSTR	lpstrReturn;
    DWORD	dwRetSize;
    DWORD	dwNumber;
    UINT	wDeviceType;
2041
} MCI_SYSINFO_PARMSW, *LPMCI_SYSINFO_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2042

Alexandre Julliard's avatar
Alexandre Julliard committed
2043 2044
DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2045

2046
typedef struct tagMCI_SET_PARMS {
2047
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2048 2049
	DWORD   dwTimeFormat;
	DWORD   dwAudio;
Alexandre Julliard's avatar
Alexandre Julliard committed
2050
} MCI_SET_PARMS, *LPMCI_SET_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2051

2052
typedef struct tagMCI_BREAK_PARMS {
2053
       DWORD_PTR dwCallback;
2054 2055 2056
	INT	nVirtKey;
	HWND	hwndBreak;
} MCI_BREAK_PARMS, *LPMCI_BREAK_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2057

Alexandre Julliard's avatar
Alexandre Julliard committed
2058

2059 2060 2061 2062
typedef struct tagMCI_SOUND_PARMSA {
    DWORD_PTR   dwCallback;
    LPCSTR      lpstrSoundName;
} MCI_SOUND_PARMSA, *LPMCI_SOUND_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2063

2064 2065 2066 2067 2068
typedef struct tagMCI_SOUND_PARMSW {
    DWORD_PTR   dwCallback;
    LPCWSTR     lpstrSoundName;
} MCI_SOUND_PARMSW, *LPMCI_SOUND_PARMSW;

2069 2070
DECL_WINELIB_TYPE_AW(MCI_SOUND_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_SOUND_PARMS)
2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081

typedef struct tagMCI_SAVE_PARMSA {
    DWORD_PTR dwCallback;
    LPCSTR  lpfilename;
} MCI_SAVE_PARMSA, *LPMCI_SAVE_PARMSA;

typedef struct tagMCI_SAVE_PARMSW {
    DWORD_PTR dwCallback;
    LPCWSTR  lpfilename;
} MCI_SAVE_PARMSW, *LPMCI_SAVE_PARMSW;

2082 2083
DECL_WINELIB_TYPE_AW(MCI_SAVE_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_SAVE_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2084

2085
typedef struct tagMCI_LOAD_PARMSA {
2086
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2087
	LPCSTR	lpfilename;
2088
} MCI_LOAD_PARMSA, *LPMCI_LOAD_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2089

2090
typedef struct tagMCI_LOAD_PARMSW {
2091
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2092
	LPCWSTR	lpfilename;
2093
} MCI_LOAD_PARMSW, *LPMCI_LOAD_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2094

Alexandre Julliard's avatar
Alexandre Julliard committed
2095 2096
DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2097

2098
typedef struct tagMCI_RECORD_PARMS {
2099
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2100 2101
	DWORD   dwFrom;
	DWORD   dwTo;
Alexandre Julliard's avatar
Alexandre Julliard committed
2102
} MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2103

2104 2105
#define MCI_CDA_STATUS_TYPE_TRACK 	0x00004001

2106 2107
#define MCI_CDA_TRACK_AUDIO		(MCI_CD_OFFSET + 0)
#define MCI_CDA_TRACK_OTHER		(MCI_CD_OFFSET + 1)
2108

Alexandre Julliard's avatar
Alexandre Julliard committed
2109 2110 2111 2112 2113 2114 2115 2116
#define MCI_VD_MODE_PARK                (MCI_VD_OFFSET + 1)

#define MCI_VD_MEDIA_CLV                (MCI_VD_OFFSET + 2)
#define MCI_VD_MEDIA_CAV                (MCI_VD_OFFSET + 3)
#define MCI_VD_MEDIA_OTHER              (MCI_VD_OFFSET + 4)

#define MCI_VD_FORMAT_TRACK             0x4001

2117 2118 2119 2120 2121
#define MCI_VD_PLAY_REVERSE             __MSABI_LONG(0x00010000)
#define MCI_VD_PLAY_FAST                __MSABI_LONG(0x00020000)
#define MCI_VD_PLAY_SPEED               __MSABI_LONG(0x00040000)
#define MCI_VD_PLAY_SCAN                __MSABI_LONG(0x00080000)
#define MCI_VD_PLAY_SLOW                __MSABI_LONG(0x00100000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2122

2123
#define MCI_VD_SEEK_REVERSE             __MSABI_LONG(0x00010000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2124

2125 2126 2127 2128 2129
#define MCI_VD_STATUS_SPEED             __MSABI_LONG(0x00004002)
#define MCI_VD_STATUS_FORWARD           __MSABI_LONG(0x00004003)
#define MCI_VD_STATUS_MEDIA_TYPE        __MSABI_LONG(0x00004004)
#define MCI_VD_STATUS_SIDE              __MSABI_LONG(0x00004005)
#define MCI_VD_STATUS_DISC_SIZE         __MSABI_LONG(0x00004006)
Alexandre Julliard's avatar
Alexandre Julliard committed
2130

2131 2132
#define MCI_VD_GETDEVCAPS_CLV           __MSABI_LONG(0x00010000)
#define MCI_VD_GETDEVCAPS_CAV           __MSABI_LONG(0x00020000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2133

2134 2135
#define MCI_VD_SPIN_UP                  __MSABI_LONG(0x00010000)
#define MCI_VD_SPIN_DOWN                __MSABI_LONG(0x00020000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2136

2137 2138 2139 2140
#define MCI_VD_GETDEVCAPS_CAN_REVERSE   __MSABI_LONG(0x00004002)
#define MCI_VD_GETDEVCAPS_FAST_RATE     __MSABI_LONG(0x00004003)
#define MCI_VD_GETDEVCAPS_SLOW_RATE     __MSABI_LONG(0x00004004)
#define MCI_VD_GETDEVCAPS_NORMAL_RATE   __MSABI_LONG(0x00004005)
Alexandre Julliard's avatar
Alexandre Julliard committed
2141

2142 2143
#define MCI_VD_STEP_FRAMES              __MSABI_LONG(0x00010000)
#define MCI_VD_STEP_REVERSE             __MSABI_LONG(0x00020000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2144

2145
#define MCI_VD_ESCAPE_STRING            __MSABI_LONG(0x00000100)
Alexandre Julliard's avatar
Alexandre Julliard committed
2146

2147
typedef struct tagMCI_VD_PLAY_PARMS {
2148
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2149 2150 2151
	DWORD   dwFrom;
	DWORD   dwTo;
	DWORD   dwSpeed;
Alexandre Julliard's avatar
Alexandre Julliard committed
2152
} MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2153

2154
typedef struct tagMCI_VD_STEP_PARMS {
2155
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2156
	DWORD   dwFrames;
Alexandre Julliard's avatar
Alexandre Julliard committed
2157
} MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2158

2159
typedef struct tagMCI_VD_ESCAPE_PARMSA {
2160
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2161
	LPCSTR	lpstrCommand;
2162
} MCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2163

2164
typedef struct tagMCI_VD_ESCAPE_PARMSW {
2165
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2166
	LPCWSTR	lpstrCommand;
2167
} MCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2168

Alexandre Julliard's avatar
Alexandre Julliard committed
2169 2170
DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2171

2172
#define MCI_WAVE_OPEN_BUFFER            __MSABI_LONG(0x00010000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2173

2174 2175 2176 2177 2178 2179
#define MCI_WAVE_SET_FORMATTAG          __MSABI_LONG(0x00010000)
#define MCI_WAVE_SET_CHANNELS           __MSABI_LONG(0x00020000)
#define MCI_WAVE_SET_SAMPLESPERSEC      __MSABI_LONG(0x00040000)
#define MCI_WAVE_SET_AVGBYTESPERSEC     __MSABI_LONG(0x00080000)
#define MCI_WAVE_SET_BLOCKALIGN         __MSABI_LONG(0x00100000)
#define MCI_WAVE_SET_BITSPERSAMPLE      __MSABI_LONG(0x00200000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2180

2181 2182
#define MCI_WAVE_INPUT                  __MSABI_LONG(0x00400000)
#define MCI_WAVE_OUTPUT                 __MSABI_LONG(0x00800000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2183

2184 2185 2186 2187 2188 2189 2190
#define MCI_WAVE_STATUS_FORMATTAG       __MSABI_LONG(0x00004001)
#define MCI_WAVE_STATUS_CHANNELS        __MSABI_LONG(0x00004002)
#define MCI_WAVE_STATUS_SAMPLESPERSEC   __MSABI_LONG(0x00004003)
#define MCI_WAVE_STATUS_AVGBYTESPERSEC  __MSABI_LONG(0x00004004)
#define MCI_WAVE_STATUS_BLOCKALIGN      __MSABI_LONG(0x00004005)
#define MCI_WAVE_STATUS_BITSPERSAMPLE   __MSABI_LONG(0x00004006)
#define MCI_WAVE_STATUS_LEVEL           __MSABI_LONG(0x00004007)
Alexandre Julliard's avatar
Alexandre Julliard committed
2191

2192 2193
#define MCI_WAVE_SET_ANYINPUT           __MSABI_LONG(0x04000000)
#define MCI_WAVE_SET_ANYOUTPUT          __MSABI_LONG(0x08000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2194

2195 2196
#define MCI_WAVE_GETDEVCAPS_INPUTS      __MSABI_LONG(0x00004001)
#define MCI_WAVE_GETDEVCAPS_OUTPUTS     __MSABI_LONG(0x00004002)
Alexandre Julliard's avatar
Alexandre Julliard committed
2197

2198
typedef struct tagMCI_WAVE_OPEN_PARMSA {
2199
       DWORD_PTR       dwCallback;
2200
	MCIDEVICEID	wDeviceID;
Alexandre Julliard's avatar
Alexandre Julliard committed
2201 2202 2203 2204
	LPCSTR		lpstrDeviceType;
	LPCSTR		lpstrElementName;
	LPCSTR		lpstrAlias;
	DWORD   	dwBufferSeconds;
2205
} MCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2206

2207
typedef struct tagMCI_WAVE_OPEN_PARMSW {
2208
       DWORD_PTR       dwCallback;
2209
	MCIDEVICEID	wDeviceID;
Alexandre Julliard's avatar
Alexandre Julliard committed
2210 2211 2212 2213
	LPCWSTR		lpstrDeviceType;
	LPCWSTR		lpstrElementName;
	LPCWSTR		lpstrAlias;
	DWORD   	dwBufferSeconds;
2214
} MCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2215

Alexandre Julliard's avatar
Alexandre Julliard committed
2216 2217
DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2218

2219
typedef struct tagMCI_WAVE_DELETE_PARMS {
2220
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2221 2222
	DWORD   dwFrom;
	DWORD   dwTo;
Alexandre Julliard's avatar
Alexandre Julliard committed
2223
} MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2224

2225
typedef struct tagMCI_WAVE_SET_PARMS {
2226
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2227 2228
	DWORD	dwTimeFormat;
	DWORD	dwAudio;
2229 2230 2231 2232
	UINT	wInput;
	UINT	wOutput;
	UINT	wFormatTag;
	UINT	nChannels;
Alexandre Julliard's avatar
Alexandre Julliard committed
2233 2234
	DWORD	nSamplesPerSec;
	DWORD	nAvgBytesPerSec;
2235 2236 2237
	UINT	nBlockAlign;
	UINT	wBitsPerSample;
} MCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2238

Alexandre Julliard's avatar
Alexandre Julliard committed
2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251

#define     MCI_SEQ_DIV_PPQN            (0 + MCI_SEQ_OFFSET)
#define     MCI_SEQ_DIV_SMPTE_24        (1 + MCI_SEQ_OFFSET)
#define     MCI_SEQ_DIV_SMPTE_25        (2 + MCI_SEQ_OFFSET)
#define     MCI_SEQ_DIV_SMPTE_30DROP    (3 + MCI_SEQ_OFFSET)
#define     MCI_SEQ_DIV_SMPTE_30        (4 + MCI_SEQ_OFFSET)

#define     MCI_SEQ_FORMAT_SONGPTR      0x4001
#define     MCI_SEQ_FILE                0x4002
#define     MCI_SEQ_MIDI                0x4003
#define     MCI_SEQ_SMPTE               0x4004
#define     MCI_SEQ_NONE                65533

2252 2253 2254 2255 2256 2257
#define MCI_SEQ_STATUS_TEMPO            __MSABI_LONG(0x00004002)
#define MCI_SEQ_STATUS_PORT             __MSABI_LONG(0x00004003)
#define MCI_SEQ_STATUS_SLAVE            __MSABI_LONG(0x00004007)
#define MCI_SEQ_STATUS_MASTER           __MSABI_LONG(0x00004008)
#define MCI_SEQ_STATUS_OFFSET           __MSABI_LONG(0x00004009)
#define MCI_SEQ_STATUS_DIVTYPE          __MSABI_LONG(0x0000400A)
Alexandre Julliard's avatar
Alexandre Julliard committed
2258

2259 2260 2261 2262 2263
#define MCI_SEQ_SET_TEMPO               __MSABI_LONG(0x00010000)
#define MCI_SEQ_SET_PORT                __MSABI_LONG(0x00020000)
#define MCI_SEQ_SET_SLAVE               __MSABI_LONG(0x00040000)
#define MCI_SEQ_SET_MASTER              __MSABI_LONG(0x00080000)
#define MCI_SEQ_SET_OFFSET              __MSABI_LONG(0x01000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2264

2265
typedef struct tagMCI_SEQ_SET_PARMS {
2266
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2267 2268 2269 2270 2271 2272 2273
	DWORD   dwTimeFormat;
	DWORD   dwAudio;
	DWORD   dwTempo;
	DWORD   dwPort;
	DWORD   dwSlave;
	DWORD   dwMaster;
	DWORD   dwOffset;
Alexandre Julliard's avatar
Alexandre Julliard committed
2274
} MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2275

2276 2277 2278
#define MCI_ANIM_OPEN_WS                __MSABI_LONG(0x00010000)
#define MCI_ANIM_OPEN_PARENT            __MSABI_LONG(0x00020000)
#define MCI_ANIM_OPEN_NOSTATIC          __MSABI_LONG(0x00040000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2279

2280 2281 2282 2283 2284
#define MCI_ANIM_PLAY_SPEED             __MSABI_LONG(0x00010000)
#define MCI_ANIM_PLAY_REVERSE           __MSABI_LONG(0x00020000)
#define MCI_ANIM_PLAY_FAST              __MSABI_LONG(0x00040000)
#define MCI_ANIM_PLAY_SLOW              __MSABI_LONG(0x00080000)
#define MCI_ANIM_PLAY_SCAN              __MSABI_LONG(0x00100000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2285

2286 2287
#define MCI_ANIM_STEP_REVERSE           __MSABI_LONG(0x00010000)
#define MCI_ANIM_STEP_FRAMES            __MSABI_LONG(0x00020000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2288

2289 2290 2291 2292 2293
#define MCI_ANIM_STATUS_SPEED           __MSABI_LONG(0x00004001)
#define MCI_ANIM_STATUS_FORWARD         __MSABI_LONG(0x00004002)
#define MCI_ANIM_STATUS_HWND            __MSABI_LONG(0x00004003)
#define MCI_ANIM_STATUS_HPAL            __MSABI_LONG(0x00004004)
#define MCI_ANIM_STATUS_STRETCH         __MSABI_LONG(0x00004005)
Alexandre Julliard's avatar
Alexandre Julliard committed
2294

2295
#define MCI_ANIM_INFO_TEXT              __MSABI_LONG(0x00010000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2296

2297 2298 2299 2300 2301 2302 2303
#define MCI_ANIM_GETDEVCAPS_CAN_REVERSE __MSABI_LONG(0x00004001)
#define MCI_ANIM_GETDEVCAPS_FAST_RATE   __MSABI_LONG(0x00004002)
#define MCI_ANIM_GETDEVCAPS_SLOW_RATE   __MSABI_LONG(0x00004003)
#define MCI_ANIM_GETDEVCAPS_NORMAL_RATE __MSABI_LONG(0x00004004)
#define MCI_ANIM_GETDEVCAPS_PALETTES    __MSABI_LONG(0x00004006)
#define MCI_ANIM_GETDEVCAPS_CAN_STRETCH __MSABI_LONG(0x00004007)
#define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS __MSABI_LONG(0x00004008)
Alexandre Julliard's avatar
Alexandre Julliard committed
2304

2305 2306
#define MCI_ANIM_REALIZE_NORM           __MSABI_LONG(0x00010000)
#define MCI_ANIM_REALIZE_BKGD           __MSABI_LONG(0x00020000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2307

2308 2309 2310 2311 2312
#define MCI_ANIM_WINDOW_HWND            __MSABI_LONG(0x00010000)
#define MCI_ANIM_WINDOW_STATE           __MSABI_LONG(0x00040000)
#define MCI_ANIM_WINDOW_TEXT            __MSABI_LONG(0x00080000)
#define MCI_ANIM_WINDOW_ENABLE_STRETCH  __MSABI_LONG(0x00100000)
#define MCI_ANIM_WINDOW_DISABLE_STRETCH __MSABI_LONG(0x00200000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2313

2314
#define MCI_ANIM_WINDOW_DEFAULT         __MSABI_LONG(0x00000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2315

2316 2317 2318
#define MCI_ANIM_RECT                   __MSABI_LONG(0x00010000)
#define MCI_ANIM_PUT_SOURCE             __MSABI_LONG(0x00020000)
#define MCI_ANIM_PUT_DESTINATION        __MSABI_LONG(0x00040000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2319

2320 2321
#define MCI_ANIM_WHERE_SOURCE           __MSABI_LONG(0x00020000)
#define MCI_ANIM_WHERE_DESTINATION      __MSABI_LONG(0x00040000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2322

2323
#define MCI_ANIM_UPDATE_HDC             __MSABI_LONG(0x00020000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2324

2325
typedef struct tagMCI_ANIM_OPEN_PARMSA {
2326
       DWORD_PTR       dwCallback;
2327
	MCIDEVICEID	wDeviceID;
Alexandre Julliard's avatar
Alexandre Julliard committed
2328 2329 2330 2331
	LPCSTR		lpstrDeviceType;
	LPCSTR		lpstrElementName;
	LPCSTR		lpstrAlias;
	DWORD		dwStyle;
2332 2333
	HWND		hWndParent;
} MCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2334

2335
typedef struct tagMCI_ANIM_OPEN_PARMSW {
2336
       DWORD_PTR       dwCallback;
2337
	MCIDEVICEID	wDeviceID;
2338 2339 2340
	LPCWSTR		lpstrDeviceType;
	LPCWSTR		lpstrElementName;
	LPCWSTR		lpstrAlias;
Alexandre Julliard's avatar
Alexandre Julliard committed
2341
	DWORD		dwStyle;
2342 2343
	HWND		hWndParent;
} MCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2344

Alexandre Julliard's avatar
Alexandre Julliard committed
2345 2346
DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2347

2348
typedef struct tagMCI_ANIM_PLAY_PARMS {
2349
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2350 2351 2352
	DWORD   dwFrom;
	DWORD   dwTo;
	DWORD   dwSpeed;
Alexandre Julliard's avatar
Alexandre Julliard committed
2353
} MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2354

2355
typedef struct tagMCI_ANIM_STEP_PARMS {
2356
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2357
	DWORD   dwFrames;
Alexandre Julliard's avatar
Alexandre Julliard committed
2358
} MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2359

2360
typedef struct tagMCI_ANIM_WINDOW_PARMSA {
2361
       DWORD_PTR dwCallback;
2362 2363
	HWND	hWnd;
	UINT	nCmdShow;
Alexandre Julliard's avatar
Alexandre Julliard committed
2364
	LPCSTR	lpstrText;
2365
} MCI_ANIM_WINDOW_PARMSA, *LPMCI_ANIM_WINDOW_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2366

2367
typedef struct tagMCI_ANIM_WINDOW_PARMSW {
2368
       DWORD_PTR dwCallback;
2369 2370
	HWND	hWnd;
	UINT	nCmdShow;
Alexandre Julliard's avatar
Alexandre Julliard committed
2371
	LPCWSTR	lpstrText;
2372
} MCI_ANIM_WINDOW_PARMSW, *LPMCI_ANIM_WINDOW_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2373

Alexandre Julliard's avatar
Alexandre Julliard committed
2374 2375
DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2376

2377
typedef struct tagMCI_ANIM_RECT_PARMS {
2378
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2379
#ifdef MCI_USE_OFFEXT
2380 2381
	POINT	ptOffset;
	POINT	ptExtent;
Alexandre Julliard's avatar
Alexandre Julliard committed
2382
#else   /* ifdef MCI_USE_OFFEXT */
2383
	RECT	rc;
Alexandre Julliard's avatar
Alexandre Julliard committed
2384
#endif  /* ifdef MCI_USE_OFFEXT */
2385
} MCI_ANIM_RECT_PARMS, *LPMCI_ANIM_RECT_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2386

Alexandre Julliard's avatar
Alexandre Julliard committed
2387

2388
typedef struct tagMCI_ANIM_UPDATE_PARMS {
2389
       DWORD_PTR dwCallback;
2390 2391 2392
	RECT  rc;
	HDC   hDC;
} MCI_ANIM_UPDATE_PARMS, *LPMCI_ANIM_UPDATE_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2393

Alexandre Julliard's avatar
Alexandre Julliard committed
2394

2395 2396
#define MCI_OVLY_OPEN_WS                __MSABI_LONG(0x00010000)
#define MCI_OVLY_OPEN_PARENT            __MSABI_LONG(0x00020000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2397

2398 2399
#define MCI_OVLY_STATUS_HWND            __MSABI_LONG(0x00004001)
#define MCI_OVLY_STATUS_STRETCH         __MSABI_LONG(0x00004002)
Alexandre Julliard's avatar
Alexandre Julliard committed
2400

2401
#define MCI_OVLY_INFO_TEXT              __MSABI_LONG(0x00010000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2402

2403 2404 2405
#define MCI_OVLY_GETDEVCAPS_CAN_STRETCH __MSABI_LONG(0x00004001)
#define MCI_OVLY_GETDEVCAPS_CAN_FREEZE  __MSABI_LONG(0x00004002)
#define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS __MSABI_LONG(0x00004003)
Alexandre Julliard's avatar
Alexandre Julliard committed
2406

2407 2408 2409 2410 2411
#define MCI_OVLY_WINDOW_HWND            __MSABI_LONG(0x00010000)
#define MCI_OVLY_WINDOW_STATE           __MSABI_LONG(0x00040000)
#define MCI_OVLY_WINDOW_TEXT            __MSABI_LONG(0x00080000)
#define MCI_OVLY_WINDOW_ENABLE_STRETCH  __MSABI_LONG(0x00100000)
#define MCI_OVLY_WINDOW_DISABLE_STRETCH __MSABI_LONG(0x00200000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2412

2413
#define MCI_OVLY_WINDOW_DEFAULT         __MSABI_LONG(0x00000000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2414

2415 2416 2417 2418 2419
#define MCI_OVLY_RECT                   __MSABI_LONG(0x00010000)
#define MCI_OVLY_PUT_SOURCE             __MSABI_LONG(0x00020000)
#define MCI_OVLY_PUT_DESTINATION        __MSABI_LONG(0x00040000)
#define MCI_OVLY_PUT_FRAME              __MSABI_LONG(0x00080000)
#define MCI_OVLY_PUT_VIDEO              __MSABI_LONG(0x00100000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2420

2421 2422 2423 2424
#define MCI_OVLY_WHERE_SOURCE           __MSABI_LONG(0x00020000)
#define MCI_OVLY_WHERE_DESTINATION      __MSABI_LONG(0x00040000)
#define MCI_OVLY_WHERE_FRAME            __MSABI_LONG(0x00080000)
#define MCI_OVLY_WHERE_VIDEO            __MSABI_LONG(0x00100000)
Alexandre Julliard's avatar
Alexandre Julliard committed
2425

2426
typedef struct tagMCI_OVLY_OPEN_PARMSA {
2427
       DWORD_PTR       dwCallback;
2428
	MCIDEVICEID	wDeviceID;
Alexandre Julliard's avatar
Alexandre Julliard committed
2429 2430 2431 2432
	LPCSTR		lpstrDeviceType;
	LPCSTR		lpstrElementName;
	LPCSTR		lpstrAlias;
	DWORD		dwStyle;
2433 2434
	HWND		hWndParent;
} MCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2435

2436
typedef struct tagMCI_OVLY_OPEN_PARMSW {
2437
       DWORD_PTR       dwCallback;
2438
	MCIDEVICEID	wDeviceID;
Alexandre Julliard's avatar
Alexandre Julliard committed
2439 2440 2441 2442
	LPCWSTR		lpstrDeviceType;
	LPCWSTR		lpstrElementName;
	LPCWSTR		lpstrAlias;
	DWORD		dwStyle;
2443 2444
	HWND		hWndParent;
} MCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2445

Alexandre Julliard's avatar
Alexandre Julliard committed
2446 2447
DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2448

2449
typedef struct tagMCI_OVLY_WINDOW_PARMSA {
2450
       DWORD_PTR dwCallback;
2451 2452
	HWND	hWnd;
	UINT	nCmdShow;
Alexandre Julliard's avatar
Alexandre Julliard committed
2453
	LPCSTR	lpstrText;
2454
} MCI_OVLY_WINDOW_PARMSA, *LPMCI_OVLY_WINDOW_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2455

2456
typedef struct tagMCI_OVLY_WINDOW_PARMSW {
2457
       DWORD_PTR dwCallback;
2458 2459
	HWND	hWnd;
	UINT	nCmdShow;
Alexandre Julliard's avatar
Alexandre Julliard committed
2460
	LPCWSTR	lpstrText;
2461
} MCI_OVLY_WINDOW_PARMSW, *LPMCI_OVLY_WINDOW_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2462

Alexandre Julliard's avatar
Alexandre Julliard committed
2463 2464
DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2465

2466
typedef struct tagMCI_OVLY_RECT_PARMS {
2467
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2468
#ifdef MCI_USE_OFFEXT
2469 2470
	POINT ptOffset;
	POINT ptExtent;
Alexandre Julliard's avatar
Alexandre Julliard committed
2471
#else   /* ifdef MCI_USE_OFFEXT */
2472
	RECT  rc;
Alexandre Julliard's avatar
Alexandre Julliard committed
2473
#endif  /* ifdef MCI_USE_OFFEXT */
2474
} MCI_OVLY_RECT_PARMS, *LPMCI_OVLY_RECT_PARMS;
Alexandre Julliard's avatar
Alexandre Julliard committed
2475

Alexandre Julliard's avatar
Alexandre Julliard committed
2476

2477
typedef struct tagMCI_OVLY_SAVE_PARMSA {
2478
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2479
	LPCSTR  lpfilename;
2480 2481
	RECT  rc;
} MCI_OVLY_SAVE_PARMSA, *LPMCI_OVLY_SAVE_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2482

2483
typedef struct tagMCI_OVLY_SAVE_PARMSW {
2484
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2485
	LPCWSTR  lpfilename;
2486 2487
	RECT  rc;
} MCI_OVLY_SAVE_PARMSW, *LPMCI_OVLY_SAVE_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2488

Alexandre Julliard's avatar
Alexandre Julliard committed
2489 2490
DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2491

2492
typedef struct tagMCI_OVLY_LOAD_PARMSA {
2493
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2494
	LPCSTR	lpfilename;
2495 2496
	RECT	rc;
} MCI_OVLY_LOAD_PARMSA, *LPMCI_OVLY_LOAD_PARMSA;
Alexandre Julliard's avatar
Alexandre Julliard committed
2497

2498
typedef struct tagMCI_OVLY_LOAD_PARMSW {
2499
       DWORD_PTR dwCallback;
Alexandre Julliard's avatar
Alexandre Julliard committed
2500
	LPCWSTR	lpfilename;
2501 2502
	RECT	rc;
} MCI_OVLY_LOAD_PARMSW, *LPMCI_OVLY_LOAD_PARMSW;
Alexandre Julliard's avatar
Alexandre Julliard committed
2503

Alexandre Julliard's avatar
Alexandre Julliard committed
2504 2505
DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
2506

Lauri Tulmin's avatar
Lauri Tulmin committed
2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518
#ifndef NEWTRANSPARENT
#define NEWTRANSPARENT 3
#define QUERYROPSUPPORT 40
#endif

#define SELECTDIB 41
#define DIBINDEX(n) MAKELONG((n),0x10FF)

#ifndef SC_SCREENSAVE
#define SC_SCREENSAVE 0xf140
#endif

2519
#include <poppack.h>
Alexandre Julliard's avatar
Alexandre Julliard committed
2520

2521 2522
#ifdef __cplusplus
}
2523
#endif
2524

Alexandre Julliard's avatar
Alexandre Julliard committed
2525
#endif /* __WINE_MMSYSTEM_H */