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