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 | #define MOD_WAVETABLE 6 /* hardware watetable internal synth */
|
---|
670 | #define MOD_SWSYNTH 7 /* software synth */
|
---|
671 |
|
---|
672 | #define MIDICAPS_VOLUME 0x0001 /* supports volume control */
|
---|
673 | #define MIDICAPS_LRVOLUME 0x0002 /* separate left-right volume control */
|
---|
674 | #define MIDICAPS_CACHE 0x0004
|
---|
675 | #define MIDICAPS_STREAM 0x0008 /* capable of supporting stream buffer */
|
---|
676 |
|
---|
677 | typedef struct tagMIDIINCAPSA {
|
---|
678 | WORD wMid;
|
---|
679 | WORD wPid;
|
---|
680 | MMVERSION vDriverVersion;
|
---|
681 | CHAR szPname[MAXPNAMELEN];
|
---|
682 | DWORD dwSupport;
|
---|
683 | } MIDIINCAPSA, *LPMIDIINCAPSA;
|
---|
684 |
|
---|
685 | typedef struct tagMIDIINCAPSW {
|
---|
686 | WORD wMid;
|
---|
687 | WORD wPid;
|
---|
688 | MMVERSION vDriverVersion;
|
---|
689 | WCHAR szPname[MAXPNAMELEN];
|
---|
690 | DWORD dwSupport;
|
---|
691 | } MIDIINCAPSW, *LPMIDIINCAPSW;
|
---|
692 |
|
---|
693 | DECL_WINELIB_TYPE_AW(MIDIINCAPS)
|
---|
694 | DECL_WINELIB_TYPE_AW(LPMIDIINCAPS)
|
---|
695 |
|
---|
696 | typedef struct tagMIDIINCAPS2A {
|
---|
697 | WORD wMid;
|
---|
698 | WORD wPid;
|
---|
699 | MMVERSION vDriverVersion;
|
---|
700 | CHAR szPname[MAXPNAMELEN];
|
---|
701 | DWORD dwSupport;
|
---|
702 | GUID ManufacturerGuid;
|
---|
703 | GUID ProductGuid;
|
---|
704 | GUID NameGuid;
|
---|
705 | } MIDIINCAPS2A, *LPMIDIINCAPS2A;
|
---|
706 |
|
---|
707 | typedef struct tagMIDIINCAPS2W {
|
---|
708 | WORD wMid;
|
---|
709 | WORD wPid;
|
---|
710 | MMVERSION vDriverVersion;
|
---|
711 | WCHAR szPname[MAXPNAMELEN];
|
---|
712 | DWORD dwSupport;
|
---|
713 | GUID ManufacturerGuid;
|
---|
714 | GUID ProductGuid;
|
---|
715 | GUID NameGuid;
|
---|
716 | } MIDIINCAPS2W, *LPMIDIINCAPS2W;
|
---|
717 |
|
---|
718 | DECL_WINELIB_TYPE_AW(MIDIINCAPS2)
|
---|
719 | DECL_WINELIB_TYPE_AW(LPMIDIINCAPS2)
|
---|
720 |
|
---|
721 | /* It seems that Win32 has a slightly different structure than Win 16.
|
---|
722 | * sigh....
|
---|
723 | */
|
---|
724 | typedef struct midihdr_tag {
|
---|
725 | LPSTR lpData;
|
---|
726 | DWORD dwBufferLength;
|
---|
727 | DWORD dwBytesRecorded;
|
---|
728 | DWORD_PTR dwUser;
|
---|
729 | DWORD dwFlags;
|
---|
730 | struct midihdr_tag *lpNext;
|
---|
731 | DWORD_PTR reserved;
|
---|
732 | /* Win 32 extended the structure with these 2 fields */
|
---|
733 | DWORD dwOffset;
|
---|
734 | DWORD_PTR dwReserved[8];
|
---|
735 | } MIDIHDR, *LPMIDIHDR;
|
---|
736 |
|
---|
737 | #define MHDR_DONE 0x00000001 /* done bit */
|
---|
738 | #define MHDR_PREPARED 0x00000002 /* set if header prepared */
|
---|
739 | #define MHDR_INQUEUE 0x00000004 /* reserved for driver */
|
---|
740 | #define MHDR_ISSTRM 0x00000008 /* data is sent by Stream functions */
|
---|
741 |
|
---|
742 | typedef struct midiproptempo_tag {
|
---|
743 | DWORD cbStruct;
|
---|
744 | DWORD dwTempo;
|
---|
745 | } MIDIPROPTEMPO, *LPMIDIPROPTEMPO;
|
---|
746 |
|
---|
747 | typedef struct midiproptimediv_tag {
|
---|
748 | DWORD cbStruct;
|
---|
749 | DWORD dwTimeDiv;
|
---|
750 | } MIDIPROPTIMEDIV, *LPMIDIPROPTIMEDIV;
|
---|
751 |
|
---|
752 | #define MIDIPROP_GET 0x40000000
|
---|
753 | #define MIDIPROP_SET 0x80000000
|
---|
754 | #define MIDIPROP_TEMPO 0x00000002
|
---|
755 | #define MIDIPROP_TIMEDIV 0x00000001
|
---|
756 |
|
---|
757 | typedef struct midievent_tag {
|
---|
758 | DWORD dwDeltaTime; /* Time, in MIDI ticks, between the previous
|
---|
759 | * event and the current event. */
|
---|
760 | DWORD dwStreamID; /* Reserved; must be zero. */
|
---|
761 | DWORD dwEvent; /* event => see MEVT_XXX macros */
|
---|
762 | DWORD dwParms[1]; /* extra pmts to dwEvent if F_LONG is set */
|
---|
763 | } MIDIEVENT, *LPMIDIEVENT;
|
---|
764 |
|
---|
765 | #define MEVT_EVENTTYPE(x) ((BYTE) (((x)>>24)&0xFF))
|
---|
766 | #define MEVT_EVENTPARM(x) ((DWORD) ((x)&0x00FFFFFFL))
|
---|
767 |
|
---|
768 | #define MEVT_F_CALLBACK 0x40000000l
|
---|
769 | #define MEVT_F_LONG 0x80000000l
|
---|
770 | #define MEVT_F_SHORT 0x00000000l
|
---|
771 | #define MEVT_COMMENT ((BYTE)0x82)
|
---|
772 | #define MEVT_LONGMSG ((BYTE)0x80)
|
---|
773 | #define MEVT_NOP ((BYTE)0x02)
|
---|
774 | #define MEVT_SHORTMSG ((BYTE)0x00)
|
---|
775 | #define MEVT_TEMPO ((BYTE)0x01)
|
---|
776 | #define MEVT_VERSION ((BYTE)0x84)
|
---|
777 |
|
---|
778 | UINT WINAPI midiOutGetNumDevs(void);
|
---|
779 | UINT WINAPI midiOutGetDevCapsA(UINT_PTR,LPMIDIOUTCAPSA,UINT);
|
---|
780 | UINT WINAPI midiOutGetDevCapsW(UINT_PTR,LPMIDIOUTCAPSW,UINT);
|
---|
781 | #define midiOutGetDevCaps WINELIB_NAME_AW(midiOutGetDevCaps)
|
---|
782 | UINT WINAPI midiOutGetVolume(HMIDIOUT,DWORD*);
|
---|
783 | UINT WINAPI midiOutSetVolume(HMIDIOUT,DWORD);
|
---|
784 | UINT WINAPI midiOutGetErrorTextA(UINT,LPSTR,UINT);
|
---|
785 | UINT WINAPI midiOutGetErrorTextW(UINT,LPWSTR,UINT);
|
---|
786 | #define midiOutGetErrorText WINELIB_NAME_AW(midiOutGetErrorText)
|
---|
787 | UINT WINAPI midiOutOpen(LPHMIDIOUT,UINT,DWORD_PTR,DWORD_PTR,DWORD);
|
---|
788 | UINT WINAPI midiOutClose(HMIDIOUT);
|
---|
789 | UINT WINAPI midiOutPrepareHeader(HMIDIOUT,MIDIHDR*,UINT);
|
---|
790 | UINT WINAPI midiOutUnprepareHeader(HMIDIOUT,MIDIHDR*,UINT);
|
---|
791 | UINT WINAPI midiOutShortMsg(HMIDIOUT,DWORD);
|
---|
792 | UINT WINAPI midiOutLongMsg(HMIDIOUT,MIDIHDR*,UINT);
|
---|
793 | UINT WINAPI midiOutReset(HMIDIOUT);
|
---|
794 | UINT WINAPI midiOutCachePatches(HMIDIOUT,UINT,WORD*,UINT);
|
---|
795 | UINT WINAPI midiOutCacheDrumPatches(HMIDIOUT,UINT,WORD*,UINT);
|
---|
796 | UINT WINAPI midiOutGetID(HMIDIOUT,UINT*);
|
---|
797 | UINT WINAPI midiOutMessage(HMIDIOUT,UINT,DWORD_PTR,DWORD_PTR);
|
---|
798 |
|
---|
799 | UINT WINAPI midiInGetNumDevs(void);
|
---|
800 | UINT WINAPI midiInGetDevCapsA(UINT_PTR,LPMIDIINCAPSA,UINT);
|
---|
801 | UINT WINAPI midiInGetDevCapsW(UINT_PTR,LPMIDIINCAPSW,UINT);
|
---|
802 | #define midiInGetDevCaps WINELIB_NAME_AW(midiInGetDevCaps)
|
---|
803 | UINT WINAPI midiInGetErrorTextA(UINT,LPSTR,UINT);
|
---|
804 | UINT WINAPI midiInGetErrorTextW(UINT,LPWSTR,UINT);
|
---|
805 | #define midiInGetErrorText WINELIB_NAME_AW(midiInGetErrorText)
|
---|
806 | UINT WINAPI midiInOpen(LPHMIDIIN,UINT,DWORD_PTR,DWORD_PTR,DWORD);
|
---|
807 | UINT WINAPI midiInClose(HMIDIIN);
|
---|
808 | UINT WINAPI midiInPrepareHeader(HMIDIIN,MIDIHDR*,UINT);
|
---|
809 | UINT WINAPI midiInUnprepareHeader(HMIDIIN,MIDIHDR*,UINT);
|
---|
810 | UINT WINAPI midiInAddBuffer(HMIDIIN,MIDIHDR*,UINT);
|
---|
811 | UINT WINAPI midiInStart(HMIDIIN);
|
---|
812 | UINT WINAPI midiInStop(HMIDIIN);
|
---|
813 | UINT WINAPI midiInReset(HMIDIIN);
|
---|
814 | UINT WINAPI midiInGetID(HMIDIIN,UINT*);
|
---|
815 | UINT WINAPI midiInMessage(HMIDIIN,UINT,DWORD_PTR,DWORD_PTR);
|
---|
816 | MMRESULT WINAPI midiStreamClose(HMIDISTRM hms);
|
---|
817 | MMRESULT WINAPI midiStreamOpen(LPHMIDISTRM,LPUINT,DWORD,DWORD_PTR,DWORD_PTR,DWORD);
|
---|
818 | MMRESULT WINAPI midiStreamOut(HMIDISTRM hms, LPMIDIHDR lpMidiHdr, UINT cbMidiHdr);
|
---|
819 | MMRESULT WINAPI midiStreamPause(HMIDISTRM hms);
|
---|
820 | MMRESULT WINAPI midiStreamPosition(HMIDISTRM hms, LPMMTIME lpmmt, UINT cbmmt);
|
---|
821 | MMRESULT WINAPI midiStreamProperty(HMIDISTRM hms, LPBYTE lpPropData, DWORD dwProperty);
|
---|
822 | MMRESULT WINAPI midiStreamRestart(HMIDISTRM hms);
|
---|
823 | MMRESULT WINAPI midiStreamStop(HMIDISTRM hms);
|
---|
824 |
|
---|
825 | #define AUX_MAPPER (-1)
|
---|
826 |
|
---|
827 | typedef struct tagAUXCAPSA {
|
---|
828 | WORD wMid;
|
---|
829 | WORD wPid;
|
---|
830 | MMVERSION vDriverVersion;
|
---|
831 | CHAR szPname[MAXPNAMELEN];
|
---|
832 | WORD wTechnology;
|
---|
833 | WORD wReserved1;
|
---|
834 | DWORD dwSupport;
|
---|
835 | } AUXCAPSA, *LPAUXCAPSA;
|
---|
836 |
|
---|
837 | typedef struct tagAUXCAPSW {
|
---|
838 | WORD wMid;
|
---|
839 | WORD wPid;
|
---|
840 | MMVERSION vDriverVersion;
|
---|
841 | WCHAR szPname[MAXPNAMELEN];
|
---|
842 | WORD wTechnology;
|
---|
843 | WORD wReserved1;
|
---|
844 | DWORD dwSupport;
|
---|
845 | } AUXCAPSW, *LPAUXCAPSW;
|
---|
846 |
|
---|
847 | DECL_WINELIB_TYPE_AW(AUXCAPS)
|
---|
848 | DECL_WINELIB_TYPE_AW(LPAUXCAPS)
|
---|
849 |
|
---|
850 | typedef struct tagAUXCAPS2A {
|
---|
851 | WORD wMid;
|
---|
852 | WORD wPid;
|
---|
853 | MMVERSION vDriverVersion;
|
---|
854 | CHAR szPname[MAXPNAMELEN];
|
---|
855 | WORD wTechnology;
|
---|
856 | WORD wReserved1;
|
---|
857 | DWORD dwSupport;
|
---|
858 | GUID ManufacturerGuid;
|
---|
859 | GUID ProductGuid;
|
---|
860 | GUID NameGuid;
|
---|
861 | } AUXCAPS2A, *LPAUXCAPS2A;
|
---|
862 |
|
---|
863 | typedef struct tagAUXCAPS2W {
|
---|
864 | WORD wMid;
|
---|
865 | WORD wPid;
|
---|
866 | MMVERSION vDriverVersion;
|
---|
867 | WCHAR szPname[MAXPNAMELEN];
|
---|
868 | WORD wTechnology;
|
---|
869 | WORD wReserved1;
|
---|
870 | DWORD dwSupport;
|
---|
871 | GUID ManufacturerGuid;
|
---|
872 | GUID ProductGuid;
|
---|
873 | GUID NameGuid;
|
---|
874 | } AUXCAPS2W, *LPAUXCAPS2W;
|
---|
875 |
|
---|
876 | DECL_WINELIB_TYPE_AW(AUXCAPS2)
|
---|
877 | DECL_WINELIB_TYPE_AW(LPAUXCAPS2)
|
---|
878 |
|
---|
879 | #define AUXCAPS_CDAUDIO 1 /* audio from internal CD-ROM drive */
|
---|
880 | #define AUXCAPS_AUXIN 2 /* audio from auxiliary input jacks */
|
---|
881 |
|
---|
882 | #define AUXCAPS_VOLUME 0x0001 /* supports volume control */
|
---|
883 | #define AUXCAPS_LRVOLUME 0x0002 /* separate left-right volume control */
|
---|
884 |
|
---|
885 | UINT WINAPI auxGetNumDevs(void);
|
---|
886 | UINT WINAPI auxGetDevCapsA(UINT_PTR,LPAUXCAPSA,UINT);
|
---|
887 | UINT WINAPI auxGetDevCapsW(UINT_PTR,LPAUXCAPSW,UINT);
|
---|
888 | #define auxGetDevCaps WINELIB_NAME_AW(auxGetDevCaps)
|
---|
889 | UINT WINAPI auxSetVolume(UINT,DWORD);
|
---|
890 | UINT WINAPI auxGetVolume(UINT,LPDWORD);
|
---|
891 | UINT WINAPI auxOutMessage(UINT,UINT,DWORD_PTR,DWORD_PTR);
|
---|
892 |
|
---|
893 | #define TIMERR_NOERROR (0) /* no error */
|
---|
894 | #define TIMERR_NOCANDO (TIMERR_BASE+1) /* request not completed */
|
---|
895 | #define TIMERR_STRUCT (TIMERR_BASE+33) /* time struct size */
|
---|
896 |
|
---|
897 | typedef void (CALLBACK *LPTIMECALLBACK)(UINT,UINT,DWORD_PTR,DWORD_PTR,DWORD_PTR);
|
---|
898 |
|
---|
899 | #define TIME_ONESHOT 0x0000 /* program timer for single event */
|
---|
900 | #define TIME_PERIODIC 0x0001 /* program for continuous periodic event */
|
---|
901 | #define TIME_CALLBACK_FUNCTION 0x0000 /* callback is function */
|
---|
902 | #define TIME_CALLBACK_EVENT_SET 0x0010 /* callback is event - use SetEvent */
|
---|
903 | #define TIME_CALLBACK_EVENT_PULSE 0x0020 /* callback is event - use PulseEvent */
|
---|
904 | #define TIME_KILL_SYNCHRONOUS 0x0100
|
---|
905 |
|
---|
906 | typedef struct timecaps_tag {
|
---|
907 | UINT wPeriodMin;
|
---|
908 | UINT wPeriodMax;
|
---|
909 | } TIMECAPS, *LPTIMECAPS;
|
---|
910 |
|
---|
911 |
|
---|
912 | MMRESULT WINAPI timeGetSystemTime(LPMMTIME,UINT);
|
---|
913 | DWORD WINAPI timeGetTime(void); /* same for win32/win16 */
|
---|
914 | MMRESULT WINAPI timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD_PTR,UINT);
|
---|
915 | MMRESULT WINAPI timeKillEvent(UINT);
|
---|
916 | MMRESULT WINAPI timeGetDevCaps(LPTIMECAPS,UINT);
|
---|
917 | MMRESULT WINAPI timeBeginPeriod(UINT);
|
---|
918 | MMRESULT WINAPI timeEndPeriod(UINT);
|
---|
919 |
|
---|
920 | #define JOYERR_NOERROR (0) /* no error */
|
---|
921 | #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
|
---|
922 | #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
|
---|
923 | #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
|
---|
924 |
|
---|
925 | /* JOYINFO, JOYINFOEX, MM_JOY* */
|
---|
926 | #define JOY_BUTTON1 0x0001
|
---|
927 | #define JOY_BUTTON2 0x0002
|
---|
928 | #define JOY_BUTTON3 0x0004
|
---|
929 | #define JOY_BUTTON4 0x0008
|
---|
930 | #define JOY_BUTTON1CHG 0x0100
|
---|
931 | #define JOY_BUTTON2CHG 0x0200
|
---|
932 | #define JOY_BUTTON3CHG 0x0400
|
---|
933 | #define JOY_BUTTON4CHG 0x0800
|
---|
934 |
|
---|
935 | #define JOYSTICKID1 0
|
---|
936 | #define JOYSTICKID2 1
|
---|
937 |
|
---|
938 | /* JOYCAPS.wCaps */
|
---|
939 | #define JOYCAPS_HASZ 0x0001
|
---|
940 | #define JOYCAPS_HASR 0x0002
|
---|
941 | #define JOYCAPS_HASU 0x0004
|
---|
942 | #define JOYCAPS_HASV 0x0008
|
---|
943 | #define JOYCAPS_HASPOV 0x0010
|
---|
944 | #define JOYCAPS_POV4DIR 0x0020
|
---|
945 | #define JOYCAPS_POVCTS 0x0040
|
---|
946 |
|
---|
947 | /* JOYINFOEX stuff */
|
---|
948 | #define JOY_POVCENTERED (WORD) -1
|
---|
949 | #define JOY_POVFORWARD 0
|
---|
950 | #define JOY_POVRIGHT 9000
|
---|
951 | #define JOY_POVBACKWARD 18000
|
---|
952 | #define JOY_POVLEFT 27000
|
---|
953 |
|
---|
954 | #define JOY_RETURNX 0x00000001
|
---|
955 | #define JOY_RETURNY 0x00000002
|
---|
956 | #define JOY_RETURNZ 0x00000004
|
---|
957 | #define JOY_RETURNR 0x00000008
|
---|
958 | #define JOY_RETURNU 0x00000010
|
---|
959 | #define JOY_RETURNV 0x00000020
|
---|
960 | #define JOY_RETURNPOV 0x00000040
|
---|
961 | #define JOY_RETURNBUTTONS 0x00000080
|
---|
962 | #define JOY_RETURNRAWDATA 0x00000100
|
---|
963 | #define JOY_RETURNPOVCTS 0x00000200
|
---|
964 | #define JOY_RETURNCENTERED 0x00000400
|
---|
965 | #define JOY_USEDEADZONE 0x00000800
|
---|
966 | #define JOY_RETURNALL (JOY_RETURNX | JOY_RETURNY | JOY_RETURNZ | \
|
---|
967 | JOY_RETURNR | JOY_RETURNU | JOY_RETURNV | \
|
---|
968 | JOY_RETURNPOV | JOY_RETURNBUTTONS)
|
---|
969 | #define JOY_CAL_READALWAYS 0x00010000
|
---|
970 | #define JOY_CAL_READXYONLY 0x00020000
|
---|
971 | #define JOY_CAL_READ3 0x00040000
|
---|
972 | #define JOY_CAL_READ4 0x00080000
|
---|
973 | #define JOY_CAL_READXONLY 0x00100000
|
---|
974 | #define JOY_CAL_READYONLY 0x00200000
|
---|
975 | #define JOY_CAL_READ5 0x00400000
|
---|
976 | #define JOY_CAL_READ6 0x00800000
|
---|
977 | #define JOY_CAL_READZONLY 0x01000000
|
---|
978 | #define JOY_CAL_READRONLY 0x02000000
|
---|
979 | #define JOY_CAL_READUONLY 0x04000000
|
---|
980 | #define JOY_CAL_READVONLY 0x08000000
|
---|
981 |
|
---|
982 | typedef struct tagJOYCAPSA {
|
---|
983 | WORD wMid;
|
---|
984 | WORD wPid;
|
---|
985 | CHAR szPname[MAXPNAMELEN];
|
---|
986 | UINT wXmin;
|
---|
987 | UINT wXmax;
|
---|
988 | UINT wYmin;
|
---|
989 | UINT wYmax;
|
---|
990 | UINT wZmin;
|
---|
991 | UINT wZmax;
|
---|
992 | UINT wNumButtons;
|
---|
993 | UINT wPeriodMin;
|
---|
994 | UINT wPeriodMax;
|
---|
995 | UINT wRmin;
|
---|
996 | UINT wRmax;
|
---|
997 | UINT wUmin;
|
---|
998 | UINT wUmax;
|
---|
999 | UINT wVmin;
|
---|
1000 | UINT wVmax;
|
---|
1001 | UINT wCaps;
|
---|
1002 | UINT wMaxAxes;
|
---|
1003 | UINT wNumAxes;
|
---|
1004 | UINT wMaxButtons;
|
---|
1005 | CHAR szRegKey[MAXPNAMELEN];
|
---|
1006 | CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
|
---|
1007 | } JOYCAPSA, *LPJOYCAPSA;
|
---|
1008 |
|
---|
1009 | typedef struct tagJOYCAPSW {
|
---|
1010 | WORD wMid;
|
---|
1011 | WORD wPid;
|
---|
1012 | WCHAR szPname[MAXPNAMELEN];
|
---|
1013 | UINT wXmin;
|
---|
1014 | UINT wXmax;
|
---|
1015 | UINT wYmin;
|
---|
1016 | UINT wYmax;
|
---|
1017 | UINT wZmin;
|
---|
1018 | UINT wZmax;
|
---|
1019 | UINT wNumButtons;
|
---|
1020 | UINT wPeriodMin;
|
---|
1021 | UINT wPeriodMax;
|
---|
1022 | UINT wRmin;
|
---|
1023 | UINT wRmax;
|
---|
1024 | UINT wUmin;
|
---|
1025 | UINT wUmax;
|
---|
1026 | UINT wVmin;
|
---|
1027 | UINT wVmax;
|
---|
1028 | UINT wCaps;
|
---|
1029 | UINT wMaxAxes;
|
---|
1030 | UINT wNumAxes;
|
---|
1031 | UINT wMaxButtons;
|
---|
1032 | WCHAR szRegKey[MAXPNAMELEN];
|
---|
1033 | WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
|
---|
1034 | } JOYCAPSW, *LPJOYCAPSW;
|
---|
1035 | DECL_WINELIB_TYPE_AW(JOYCAPS)
|
---|
1036 | DECL_WINELIB_TYPE_AW(LPJOYCAPS)
|
---|
1037 |
|
---|
1038 | typedef struct tagJOYCAPS2A {
|
---|
1039 | WORD wMid;
|
---|
1040 | WORD wPid;
|
---|
1041 | CHAR szPname[MAXPNAMELEN];
|
---|
1042 | UINT wXmin;
|
---|
1043 | UINT wXmax;
|
---|
1044 | UINT wYmin;
|
---|
1045 | UINT wYmax;
|
---|
1046 | UINT wZmin;
|
---|
1047 | UINT wZmax;
|
---|
1048 | UINT wNumButtons;
|
---|
1049 | UINT wPeriodMin;
|
---|
1050 | UINT wPeriodMax;
|
---|
1051 | UINT wRmin;
|
---|
1052 | UINT wRmax;
|
---|
1053 | UINT wUmin;
|
---|
1054 | UINT wUmax;
|
---|
1055 | UINT wVmin;
|
---|
1056 | UINT wVmax;
|
---|
1057 | UINT wCaps;
|
---|
1058 | UINT wMaxAxes;
|
---|
1059 | UINT wNumAxes;
|
---|
1060 | UINT wMaxButtons;
|
---|
1061 | CHAR szRegKey[MAXPNAMELEN];
|
---|
1062 | CHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
|
---|
1063 | GUID ManufacturerGuid;
|
---|
1064 | GUID ProductGuid;
|
---|
1065 | GUID NameGuid;
|
---|
1066 | } JOYCAPS2A, *LPJOYCAPS2A;
|
---|
1067 |
|
---|
1068 | typedef struct tagJOYCAPS2W {
|
---|
1069 | WORD wMid;
|
---|
1070 | WORD wPid;
|
---|
1071 | WCHAR szPname[MAXPNAMELEN];
|
---|
1072 | UINT wXmin;
|
---|
1073 | UINT wXmax;
|
---|
1074 | UINT wYmin;
|
---|
1075 | UINT wYmax;
|
---|
1076 | UINT wZmin;
|
---|
1077 | UINT wZmax;
|
---|
1078 | UINT wNumButtons;
|
---|
1079 | UINT wPeriodMin;
|
---|
1080 | UINT wPeriodMax;
|
---|
1081 | UINT wRmin;
|
---|
1082 | UINT wRmax;
|
---|
1083 | UINT wUmin;
|
---|
1084 | UINT wUmax;
|
---|
1085 | UINT wVmin;
|
---|
1086 | UINT wVmax;
|
---|
1087 | UINT wCaps;
|
---|
1088 | UINT wMaxAxes;
|
---|
1089 | UINT wNumAxes;
|
---|
1090 | UINT wMaxButtons;
|
---|
1091 | WCHAR szRegKey[MAXPNAMELEN];
|
---|
1092 | WCHAR szOEMVxD[MAX_JOYSTICKOEMVXDNAME];
|
---|
1093 | GUID ManufacturerGuid;
|
---|
1094 | GUID ProductGuid;
|
---|
1095 | GUID NameGuid;
|
---|
1096 | } JOYCAPS2W, *LPJOYCAPS2W;
|
---|
1097 | DECL_WINELIB_TYPE_AW(JOYCAPS2)
|
---|
1098 | DECL_WINELIB_TYPE_AW(LPJOYCAPS2)
|
---|
1099 |
|
---|
1100 | typedef struct joyinfo_tag {
|
---|
1101 | UINT wXpos;
|
---|
1102 | UINT wYpos;
|
---|
1103 | UINT wZpos;
|
---|
1104 | UINT wButtons;
|
---|
1105 | } JOYINFO, *LPJOYINFO;
|
---|
1106 |
|
---|
1107 | typedef struct joyinfoex_tag {
|
---|
1108 | DWORD dwSize;
|
---|
1109 | DWORD dwFlags;
|
---|
1110 | DWORD dwXpos;
|
---|
1111 | DWORD dwYpos;
|
---|
1112 | DWORD dwZpos;
|
---|
1113 | DWORD dwRpos;
|
---|
1114 | DWORD dwUpos;
|
---|
1115 | DWORD dwVpos;
|
---|
1116 | DWORD dwButtons;
|
---|
1117 | DWORD dwButtonNumber;
|
---|
1118 | DWORD dwPOV;
|
---|
1119 | DWORD dwReserved1;
|
---|
1120 | DWORD dwReserved2;
|
---|
1121 | } JOYINFOEX,*LPJOYINFOEX;
|
---|
1122 |
|
---|
1123 |
|
---|
1124 | MMRESULT WINAPI joyGetDevCapsA(UINT_PTR,LPJOYCAPSA,UINT);
|
---|
1125 | MMRESULT WINAPI joyGetDevCapsW(UINT_PTR,LPJOYCAPSW,UINT);
|
---|
1126 | #define joyGetDevCaps WINELIB_NAME_AW(joyGetDevCaps)
|
---|
1127 | UINT WINAPI joyGetNumDevs(void);
|
---|
1128 | MMRESULT WINAPI joyGetPos(UINT,LPJOYINFO);
|
---|
1129 | MMRESULT WINAPI joyGetPosEx(UINT,LPJOYINFOEX);
|
---|
1130 | MMRESULT WINAPI joyGetThreshold(UINT,UINT*);
|
---|
1131 | MMRESULT WINAPI joyReleaseCapture(UINT);
|
---|
1132 | MMRESULT WINAPI joySetCapture(HWND,UINT,UINT,BOOL);
|
---|
1133 | MMRESULT WINAPI joySetThreshold(UINT,UINT);
|
---|
1134 |
|
---|
1135 | #define MIXERR_BASE 1024
|
---|
1136 | #define MIXERR_INVALLINE (MIXERR_BASE + 0)
|
---|
1137 | #define MIXERR_INVALCONTROL (MIXERR_BASE + 1)
|
---|
1138 | #define MIXERR_INVALVALUE (MIXERR_BASE + 2)
|
---|
1139 | #define MIXERR_LASTERROR (MIXERR_BASE + 2)
|
---|
1140 |
|
---|
1141 | typedef struct tagMIXERCAPSA {
|
---|
1142 | WORD wMid;
|
---|
1143 | WORD wPid;
|
---|
1144 | MMVERSION vDriverVersion;
|
---|
1145 | CHAR szPname[MAXPNAMELEN];
|
---|
1146 | DWORD fdwSupport;
|
---|
1147 | DWORD cDestinations;
|
---|
1148 | } MIXERCAPSA,*LPMIXERCAPSA;
|
---|
1149 |
|
---|
1150 | typedef struct tagMIXERCAPSW {
|
---|
1151 | WORD wMid;
|
---|
1152 | WORD wPid;
|
---|
1153 | MMVERSION vDriverVersion;
|
---|
1154 | WCHAR szPname[MAXPNAMELEN];
|
---|
1155 | DWORD fdwSupport;
|
---|
1156 | DWORD cDestinations;
|
---|
1157 | } MIXERCAPSW,*LPMIXERCAPSW;
|
---|
1158 |
|
---|
1159 | DECL_WINELIB_TYPE_AW(MIXERCAPS)
|
---|
1160 | DECL_WINELIB_TYPE_AW(LPMIXERCAPS)
|
---|
1161 |
|
---|
1162 | typedef struct tagMIXERCAPS2A {
|
---|
1163 | WORD wMid;
|
---|
1164 | WORD wPid;
|
---|
1165 | MMVERSION vDriverVersion;
|
---|
1166 | CHAR szPname[MAXPNAMELEN];
|
---|
1167 | DWORD fdwSupport;
|
---|
1168 | DWORD cDestinations;
|
---|
1169 | GUID ManufacturerGuid;
|
---|
1170 | GUID ProductGuid;
|
---|
1171 | GUID NameGuid;
|
---|
1172 | } MIXERCAPS2A,*LPMIXERCAPS2A;
|
---|
1173 |
|
---|
1174 | typedef struct tagMIXERCAPS2W {
|
---|
1175 | WORD wMid;
|
---|
1176 | WORD wPid;
|
---|
1177 | MMVERSION vDriverVersion;
|
---|
1178 | WCHAR szPname[MAXPNAMELEN];
|
---|
1179 | DWORD fdwSupport;
|
---|
1180 | DWORD cDestinations;
|
---|
1181 | GUID ManufacturerGuid;
|
---|
1182 | GUID ProductGuid;
|
---|
1183 | GUID NameGuid;
|
---|
1184 | } MIXERCAPS2W,*LPMIXERCAPS2W;
|
---|
1185 |
|
---|
1186 | DECL_WINELIB_TYPE_AW(MIXERCAPS2)
|
---|
1187 | DECL_WINELIB_TYPE_AW(LPMIXERCAPS2)
|
---|
1188 |
|
---|
1189 | #define MIXER_SHORT_NAME_CHARS 16
|
---|
1190 | #define MIXER_LONG_NAME_CHARS 64
|
---|
1191 |
|
---|
1192 | /* MIXERLINE.fdwLine */
|
---|
1193 | #define MIXERLINE_LINEF_ACTIVE 0x00000001
|
---|
1194 | #define MIXERLINE_LINEF_DISCONNECTED 0x00008000
|
---|
1195 | #define MIXERLINE_LINEF_SOURCE 0x80000000
|
---|
1196 |
|
---|
1197 | /* Mixer flags */
|
---|
1198 | #define MIXER_OBJECTF_HANDLE 0x80000000L
|
---|
1199 | #define MIXER_OBJECTF_MIXER 0x00000000L
|
---|
1200 | #define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)
|
---|
1201 | #define MIXER_OBJECTF_WAVEOUT 0x10000000L
|
---|
1202 | #define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)
|
---|
1203 | #define MIXER_OBJECTF_WAVEIN 0x20000000L
|
---|
1204 | #define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)
|
---|
1205 | #define MIXER_OBJECTF_MIDIOUT 0x30000000L
|
---|
1206 | #define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)
|
---|
1207 | #define MIXER_OBJECTF_MIDIIN 0x40000000L
|
---|
1208 | #define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)
|
---|
1209 | #define MIXER_OBJECTF_AUX 0x50000000L
|
---|
1210 |
|
---|
1211 | /* MIXERLINE.dwComponentType */
|
---|
1212 | /* component types for destinations and sources */
|
---|
1213 | #define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L
|
---|
1214 | #define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)
|
---|
1215 | #define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)
|
---|
1216 | #define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)
|
---|
1217 | #define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)
|
---|
1218 | #define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)
|
---|
1219 | #define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)
|
---|
1220 | #define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)
|
---|
1221 | #define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)
|
---|
1222 | #define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
|
---|
1223 | #define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)
|
---|
1224 |
|
---|
1225 | #define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L
|
---|
1226 | #define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)
|
---|
1227 | #define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)
|
---|
1228 | #define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)
|
---|
1229 | #define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)
|
---|
1230 | #define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)
|
---|
1231 | #define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)
|
---|
1232 | #define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)
|
---|
1233 | #define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)
|
---|
1234 | #define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)
|
---|
1235 | #define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)
|
---|
1236 | #define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
|
---|
1237 | #define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)
|
---|
1238 |
|
---|
1239 | /* MIXERLINE.Target.dwType */
|
---|
1240 | #define MIXERLINE_TARGETTYPE_UNDEFINED 0
|
---|
1241 | #define MIXERLINE_TARGETTYPE_WAVEOUT 1
|
---|
1242 | #define MIXERLINE_TARGETTYPE_WAVEIN 2
|
---|
1243 | #define MIXERLINE_TARGETTYPE_MIDIOUT 3
|
---|
1244 | #define MIXERLINE_TARGETTYPE_MIDIIN 4
|
---|
1245 | #define MIXERLINE_TARGETTYPE_AUX 5
|
---|
1246 |
|
---|
1247 | typedef struct tagMIXERLINEA {
|
---|
1248 | DWORD cbStruct;
|
---|
1249 | DWORD dwDestination;
|
---|
1250 | DWORD dwSource;
|
---|
1251 | DWORD dwLineID;
|
---|
1252 | DWORD fdwLine;
|
---|
1253 | DWORD_PTR dwUser;
|
---|
1254 | DWORD dwComponentType;
|
---|
1255 | DWORD cChannels;
|
---|
1256 | DWORD cConnections;
|
---|
1257 | DWORD cControls;
|
---|
1258 | CHAR szShortName[MIXER_SHORT_NAME_CHARS];
|
---|
1259 | CHAR szName[MIXER_LONG_NAME_CHARS];
|
---|
1260 | struct {
|
---|
1261 | DWORD dwType;
|
---|
1262 | DWORD dwDeviceID;
|
---|
1263 | WORD wMid;
|
---|
1264 | WORD wPid;
|
---|
1265 | MMVERSION vDriverVersion;
|
---|
1266 | CHAR szPname[MAXPNAMELEN];
|
---|
1267 | } Target;
|
---|
1268 | } MIXERLINEA, *LPMIXERLINEA;
|
---|
1269 |
|
---|
1270 | typedef struct tagMIXERLINEW {
|
---|
1271 | DWORD cbStruct;
|
---|
1272 | DWORD dwDestination;
|
---|
1273 | DWORD dwSource;
|
---|
1274 | DWORD dwLineID;
|
---|
1275 | DWORD fdwLine;
|
---|
1276 | DWORD_PTR dwUser;
|
---|
1277 | DWORD dwComponentType;
|
---|
1278 | DWORD cChannels;
|
---|
1279 | DWORD cConnections;
|
---|
1280 | DWORD cControls;
|
---|
1281 | WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
|
---|
1282 | WCHAR szName[MIXER_LONG_NAME_CHARS];
|
---|
1283 | struct {
|
---|
1284 | DWORD dwType;
|
---|
1285 | DWORD dwDeviceID;
|
---|
1286 | WORD wMid;
|
---|
1287 | WORD wPid;
|
---|
1288 | MMVERSION vDriverVersion;
|
---|
1289 | WCHAR szPname[MAXPNAMELEN];
|
---|
1290 | } Target;
|
---|
1291 | } MIXERLINEW, *LPMIXERLINEW;
|
---|
1292 |
|
---|
1293 | DECL_WINELIB_TYPE_AW(MIXERLINE)
|
---|
1294 | DECL_WINELIB_TYPE_AW(LPMIXERLINE)
|
---|
1295 |
|
---|
1296 | /* MIXERCONTROL.fdwControl */
|
---|
1297 | #define MIXERCONTROL_CONTROLF_UNIFORM 0x00000001L
|
---|
1298 | #define MIXERCONTROL_CONTROLF_MULTIPLE 0x00000002L
|
---|
1299 | #define MIXERCONTROL_CONTROLF_DISABLED 0x80000000L
|
---|
1300 |
|
---|
1301 | /* MIXERCONTROL_CONTROLTYPE_xxx building block defines */
|
---|
1302 | #define MIXERCONTROL_CT_CLASS_MASK 0xF0000000L
|
---|
1303 | #define MIXERCONTROL_CT_CLASS_CUSTOM 0x00000000L
|
---|
1304 | #define MIXERCONTROL_CT_CLASS_METER 0x10000000L
|
---|
1305 | #define MIXERCONTROL_CT_CLASS_SWITCH 0x20000000L
|
---|
1306 | #define MIXERCONTROL_CT_CLASS_NUMBER 0x30000000L
|
---|
1307 | #define MIXERCONTROL_CT_CLASS_SLIDER 0x40000000L
|
---|
1308 | #define MIXERCONTROL_CT_CLASS_FADER 0x50000000L
|
---|
1309 | #define MIXERCONTROL_CT_CLASS_TIME 0x60000000L
|
---|
1310 | #define MIXERCONTROL_CT_CLASS_LIST 0x70000000L
|
---|
1311 |
|
---|
1312 | #define MIXERCONTROL_CT_SUBCLASS_MASK 0x0F000000L
|
---|
1313 |
|
---|
1314 | #define MIXERCONTROL_CT_SC_SWITCH_BOOLEAN 0x00000000L
|
---|
1315 | #define MIXERCONTROL_CT_SC_SWITCH_BUTTON 0x01000000L
|
---|
1316 |
|
---|
1317 | #define MIXERCONTROL_CT_SC_METER_POLLED 0x00000000L
|
---|
1318 |
|
---|
1319 | #define MIXERCONTROL_CT_SC_TIME_MICROSECS 0x00000000L
|
---|
1320 | #define MIXERCONTROL_CT_SC_TIME_MILLISECS 0x01000000L
|
---|
1321 |
|
---|
1322 | #define MIXERCONTROL_CT_SC_LIST_SINGLE 0x00000000L
|
---|
1323 | #define MIXERCONTROL_CT_SC_LIST_MULTIPLE 0x01000000L
|
---|
1324 |
|
---|
1325 | #define MIXERCONTROL_CT_UNITS_MASK 0x00FF0000L
|
---|
1326 | #define MIXERCONTROL_CT_UNITS_CUSTOM 0x00000000L
|
---|
1327 | #define MIXERCONTROL_CT_UNITS_BOOLEAN 0x00010000L
|
---|
1328 | #define MIXERCONTROL_CT_UNITS_SIGNED 0x00020000L
|
---|
1329 | #define MIXERCONTROL_CT_UNITS_UNSIGNED 0x00030000L
|
---|
1330 | #define MIXERCONTROL_CT_UNITS_DECIBELS 0x00040000L /* in 10ths */
|
---|
1331 | #define MIXERCONTROL_CT_UNITS_PERCENT 0x00050000L /* in 10ths */
|
---|
1332 |
|
---|
1333 | /* Commonly used control types for specifying MIXERCONTROL.dwControlType */
|
---|
1334 | #define MIXERCONTROL_CONTROLTYPE_CUSTOM (MIXERCONTROL_CT_CLASS_CUSTOM | MIXERCONTROL_CT_UNITS_CUSTOM)
|
---|
1335 | #define MIXERCONTROL_CONTROLTYPE_BOOLEANMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_BOOLEAN)
|
---|
1336 | #define MIXERCONTROL_CONTROLTYPE_SIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_SIGNED)
|
---|
1337 | #define MIXERCONTROL_CONTROLTYPE_PEAKMETER (MIXERCONTROL_CONTROLTYPE_SIGNEDMETER + 1)
|
---|
1338 | #define MIXERCONTROL_CONTROLTYPE_UNSIGNEDMETER (MIXERCONTROL_CT_CLASS_METER | MIXERCONTROL_CT_SC_METER_POLLED | MIXERCONTROL_CT_UNITS_UNSIGNED)
|
---|
1339 | #define MIXERCONTROL_CONTROLTYPE_BOOLEAN (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BOOLEAN | MIXERCONTROL_CT_UNITS_BOOLEAN)
|
---|
1340 | #define MIXERCONTROL_CONTROLTYPE_ONOFF (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 1)
|
---|
1341 | #define MIXERCONTROL_CONTROLTYPE_MUTE (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 2)
|
---|
1342 | #define MIXERCONTROL_CONTROLTYPE_MONO (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 3)
|
---|
1343 | #define MIXERCONTROL_CONTROLTYPE_LOUDNESS (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 4)
|
---|
1344 | #define MIXERCONTROL_CONTROLTYPE_STEREOENH (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 5)
|
---|
1345 | #define MIXERCONTROL_CONTROLTYPE_BASS_BOOST (MIXERCONTROL_CONTROLTYPE_BOOLEAN + 0x00002277)
|
---|
1346 | #define MIXERCONTROL_CONTROLTYPE_BUTTON (MIXERCONTROL_CT_CLASS_SWITCH | MIXERCONTROL_CT_SC_SWITCH_BUTTON | MIXERCONTROL_CT_UNITS_BOOLEAN)
|
---|
1347 | #define MIXERCONTROL_CONTROLTYPE_DECIBELS (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_DECIBELS)
|
---|
1348 | #define MIXERCONTROL_CONTROLTYPE_SIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_SIGNED)
|
---|
1349 | #define MIXERCONTROL_CONTROLTYPE_UNSIGNED (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_UNSIGNED)
|
---|
1350 | #define MIXERCONTROL_CONTROLTYPE_PERCENT (MIXERCONTROL_CT_CLASS_NUMBER | MIXERCONTROL_CT_UNITS_PERCENT)
|
---|
1351 | #define MIXERCONTROL_CONTROLTYPE_SLIDER (MIXERCONTROL_CT_CLASS_SLIDER | MIXERCONTROL_CT_UNITS_SIGNED)
|
---|
1352 | #define MIXERCONTROL_CONTROLTYPE_PAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 1)
|
---|
1353 | #define MIXERCONTROL_CONTROLTYPE_QSOUNDPAN (MIXERCONTROL_CONTROLTYPE_SLIDER + 2)
|
---|
1354 | #define MIXERCONTROL_CONTROLTYPE_FADER (MIXERCONTROL_CT_CLASS_FADER | MIXERCONTROL_CT_UNITS_UNSIGNED)
|
---|
1355 | #define MIXERCONTROL_CONTROLTYPE_VOLUME (MIXERCONTROL_CONTROLTYPE_FADER + 1)
|
---|
1356 | #define MIXERCONTROL_CONTROLTYPE_BASS (MIXERCONTROL_CONTROLTYPE_FADER + 2)
|
---|
1357 | #define MIXERCONTROL_CONTROLTYPE_TREBLE (MIXERCONTROL_CONTROLTYPE_FADER + 3)
|
---|
1358 | #define MIXERCONTROL_CONTROLTYPE_EQUALIZER (MIXERCONTROL_CONTROLTYPE_FADER + 4)
|
---|
1359 | #define MIXERCONTROL_CONTROLTYPE_SINGLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
|
---|
1360 | #define MIXERCONTROL_CONTROLTYPE_MUX (MIXERCONTROL_CONTROLTYPE_SINGLESELECT + 1)
|
---|
1361 | #define MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT (MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN)
|
---|
1362 | #define MIXERCONTROL_CONTROLTYPE_MIXER (MIXERCONTROL_CONTROLTYPE_MULTIPLESELECT + 1)
|
---|
1363 | #define MIXERCONTROL_CONTROLTYPE_MICROTIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MICROSECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
|
---|
1364 | #define MIXERCONTROL_CONTROLTYPE_MILLITIME (MIXERCONTROL_CT_CLASS_TIME | MIXERCONTROL_CT_SC_TIME_MILLISECS | MIXERCONTROL_CT_UNITS_UNSIGNED)
|
---|
1365 |
|
---|
1366 |
|
---|
1367 | typedef struct tagMIXERCONTROLA {
|
---|
1368 | DWORD cbStruct;
|
---|
1369 | DWORD dwControlID;
|
---|
1370 | DWORD dwControlType;
|
---|
1371 | DWORD fdwControl;
|
---|
1372 | DWORD cMultipleItems;
|
---|
1373 | CHAR szShortName[MIXER_SHORT_NAME_CHARS];
|
---|
1374 | CHAR szName[MIXER_LONG_NAME_CHARS];
|
---|
1375 | union {
|
---|
1376 | struct {
|
---|
1377 | LONG lMinimum;
|
---|
1378 | LONG lMaximum;
|
---|
1379 | } DUMMYSTRUCTNAME;
|
---|
1380 | struct {
|
---|
1381 | DWORD dwMinimum;
|
---|
1382 | DWORD dwMaximum;
|
---|
1383 | } DUMMYSTRUCTNAME1;
|
---|
1384 | DWORD dwReserved[6];
|
---|
1385 | } Bounds;
|
---|
1386 | union {
|
---|
1387 | DWORD cSteps;
|
---|
1388 | DWORD cbCustomData;
|
---|
1389 | DWORD dwReserved[6];
|
---|
1390 | } Metrics;
|
---|
1391 | } MIXERCONTROLA, *LPMIXERCONTROLA;
|
---|
1392 |
|
---|
1393 | typedef struct MIXERCONTROLW {
|
---|
1394 | DWORD cbStruct;
|
---|
1395 | DWORD dwControlID;
|
---|
1396 | DWORD dwControlType;
|
---|
1397 | DWORD fdwControl;
|
---|
1398 | DWORD cMultipleItems;
|
---|
1399 | WCHAR szShortName[MIXER_SHORT_NAME_CHARS];
|
---|
1400 | WCHAR szName[MIXER_LONG_NAME_CHARS];
|
---|
1401 | union {
|
---|
1402 | struct {
|
---|
1403 | LONG lMinimum;
|
---|
1404 | LONG lMaximum;
|
---|
1405 | } DUMMYSTRUCTNAME;
|
---|
1406 | struct {
|
---|
1407 | DWORD dwMinimum;
|
---|
1408 | DWORD dwMaximum;
|
---|
1409 | } DUMMYSTRUCTNAME1;
|
---|
1410 | DWORD dwReserved[6];
|
---|
1411 | } Bounds;
|
---|
1412 | union {
|
---|
1413 | DWORD cSteps;
|
---|
1414 | DWORD cbCustomData;
|
---|
1415 | DWORD dwReserved[6];
|
---|
1416 | } Metrics;
|
---|
1417 | } MIXERCONTROLW, *LPMIXERCONTROLW;
|
---|
1418 |
|
---|
1419 | DECL_WINELIB_TYPE_AW(MIXERCONTROL)
|
---|
1420 | DECL_WINELIB_TYPE_AW(LPMIXERCONTROL)
|
---|
1421 |
|
---|
1422 | typedef struct tagMIXERLINECONTROLSA {
|
---|
1423 | DWORD cbStruct;
|
---|
1424 | DWORD dwLineID;
|
---|
1425 | union {
|
---|
1426 | DWORD dwControlID;
|
---|
1427 | DWORD dwControlType;
|
---|
1428 | } DUMMYUNIONNAME;
|
---|
1429 | DWORD cControls;
|
---|
1430 | DWORD cbmxctrl;
|
---|
1431 | LPMIXERCONTROLA pamxctrl;
|
---|
1432 | } MIXERLINECONTROLSA, *LPMIXERLINECONTROLSA;
|
---|
1433 |
|
---|
1434 | typedef struct tagMIXERLINECONTROLSW {
|
---|
1435 | DWORD cbStruct;
|
---|
1436 | DWORD dwLineID;
|
---|
1437 | union {
|
---|
1438 | DWORD dwControlID;
|
---|
1439 | DWORD dwControlType;
|
---|
1440 | } DUMMYUNIONNAME;
|
---|
1441 | DWORD cControls;
|
---|
1442 | DWORD cbmxctrl;
|
---|
1443 | LPMIXERCONTROLW pamxctrl;
|
---|
1444 | } MIXERLINECONTROLSW, *LPMIXERLINECONTROLSW;
|
---|
1445 |
|
---|
1446 | DECL_WINELIB_TYPE_AW(MIXERLINECONTROLS)
|
---|
1447 | DECL_WINELIB_TYPE_AW(LPMIXERLINECONTROLS)
|
---|
1448 |
|
---|
1449 | typedef struct tMIXERCONTROLDETAILS {
|
---|
1450 | DWORD cbStruct;
|
---|
1451 | DWORD dwControlID;
|
---|
1452 | DWORD cChannels;
|
---|
1453 | union {
|
---|
1454 | HWND hwndOwner;
|
---|
1455 | DWORD cMultipleItems;
|
---|
1456 | } DUMMYUNIONNAME;
|
---|
1457 | DWORD cbDetails;
|
---|
1458 | LPVOID paDetails;
|
---|
1459 | } MIXERCONTROLDETAILS,*LPMIXERCONTROLDETAILS;
|
---|
1460 |
|
---|
1461 | typedef struct tagMIXERCONTROLDETAILS_LISTTEXTA {
|
---|
1462 | DWORD dwParam1;
|
---|
1463 | DWORD dwParam2;
|
---|
1464 | CHAR szName[MIXER_LONG_NAME_CHARS];
|
---|
1465 | } MIXERCONTROLDETAILS_LISTTEXTA,*LPMIXERCONTROLDETAILS_LISTTEXTA;
|
---|
1466 |
|
---|
1467 | typedef struct tagMIXERCONTROLDETAILS_LISTTEXTW {
|
---|
1468 | DWORD dwParam1;
|
---|
1469 | DWORD dwParam2;
|
---|
1470 | WCHAR szName[MIXER_LONG_NAME_CHARS];
|
---|
1471 | } MIXERCONTROLDETAILS_LISTTEXTW,*LPMIXERCONTROLDETAILS_LISTTEXTW;
|
---|
1472 |
|
---|
1473 | DECL_WINELIB_TYPE_AW(MIXERCONTROLDETAILS_LISTTEXT)
|
---|
1474 | DECL_WINELIB_TYPE_AW(LPMIXERCONTROLDETAILS_LISTTEXT)
|
---|
1475 |
|
---|
1476 | /* MIXER_GETCONTROLDETAILSF_VALUE */
|
---|
1477 | typedef struct {
|
---|
1478 | LONG fValue;
|
---|
1479 | } MIXERCONTROLDETAILS_BOOLEAN,*LPMIXERCONTROLDETAILS_BOOLEAN;
|
---|
1480 |
|
---|
1481 | typedef struct {
|
---|
1482 | LONG lValue;
|
---|
1483 | } MIXERCONTROLDETAILS_SIGNED,*LPMIXERCONTROLDETAILS_SIGNED;
|
---|
1484 |
|
---|
1485 | typedef struct {
|
---|
1486 | DWORD dwValue;
|
---|
1487 | } MIXERCONTROLDETAILS_UNSIGNED,*LPMIXERCONTROLDETAILS_UNSIGNED;
|
---|
1488 |
|
---|
1489 | /* bits passed to mixerGetLineInfo.fdwInfo */
|
---|
1490 | #define MIXER_GETLINEINFOF_DESTINATION 0x00000000L
|
---|
1491 | #define MIXER_GETLINEINFOF_SOURCE 0x00000001L
|
---|
1492 | #define MIXER_GETLINEINFOF_LINEID 0x00000002L
|
---|
1493 | #define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L
|
---|
1494 | #define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L
|
---|
1495 | #define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL
|
---|
1496 |
|
---|
1497 | /* bitmask passed to mixerGetLineControl */
|
---|
1498 | #define MIXER_GETLINECONTROLSF_ALL 0x00000000L
|
---|
1499 | #define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L
|
---|
1500 | #define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L
|
---|
1501 | #define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL
|
---|
1502 |
|
---|
1503 | /* bitmask passed to mixerGetControlDetails */
|
---|
1504 | #define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L
|
---|
1505 | #define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L
|
---|
1506 | #define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL
|
---|
1507 |
|
---|
1508 | /* bitmask passed to mixerSetControlDetails */
|
---|
1509 | #define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L
|
---|
1510 | #define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L
|
---|
1511 | #define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL
|
---|
1512 |
|
---|
1513 | UINT WINAPI mixerGetNumDevs(void);
|
---|
1514 | UINT WINAPI mixerOpen(LPHMIXER,UINT,DWORD_PTR,DWORD_PTR,DWORD);
|
---|
1515 | UINT WINAPI mixerClose(HMIXER);
|
---|
1516 | DWORD WINAPI mixerMessage(HMIXER,UINT,DWORD_PTR,DWORD_PTR);
|
---|
1517 | UINT WINAPI mixerGetDevCapsA(UINT_PTR,LPMIXERCAPSA,UINT);
|
---|
1518 | UINT WINAPI mixerGetDevCapsW(UINT_PTR,LPMIXERCAPSW,UINT);
|
---|
1519 | #define mixerGetDevCaps WINELIB_NAME_AW(mixerGetDevCaps)
|
---|
1520 | UINT WINAPI mixerGetLineInfoA(HMIXEROBJ,LPMIXERLINEA,DWORD);
|
---|
1521 | UINT WINAPI mixerGetLineInfoW(HMIXEROBJ,LPMIXERLINEW,DWORD);
|
---|
1522 | #define mixerGetLineInfo WINELIB_NAME_AW(mixerGetLineInfo)
|
---|
1523 | UINT WINAPI mixerGetID(HMIXEROBJ,LPUINT,DWORD);
|
---|
1524 | UINT WINAPI mixerGetLineControlsA(HMIXEROBJ,LPMIXERLINECONTROLSA,DWORD);
|
---|
1525 | UINT WINAPI mixerGetLineControlsW(HMIXEROBJ,LPMIXERLINECONTROLSW,DWORD);
|
---|
1526 | #define mixerGetLineControls WINELIB_NAME_AW(mixerGetLineControls)
|
---|
1527 | UINT WINAPI mixerGetControlDetailsA(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
|
---|
1528 | UINT WINAPI mixerGetControlDetailsW(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
|
---|
1529 | #define mixerGetControlDetails WINELIB_NAME_AW(mixerGetControlDetails)
|
---|
1530 | UINT WINAPI mixerSetControlDetails(HMIXEROBJ,LPMIXERCONTROLDETAILS,DWORD);
|
---|
1531 |
|
---|
1532 | #define MMIOERR_BASE 256
|
---|
1533 | #define MMIOERR_FILENOTFOUND (MMIOERR_BASE + 1) /* file not found */
|
---|
1534 | #define MMIOERR_OUTOFMEMORY (MMIOERR_BASE + 2) /* out of memory */
|
---|
1535 | #define MMIOERR_CANNOTOPEN (MMIOERR_BASE + 3) /* cannot open */
|
---|
1536 | #define MMIOERR_CANNOTCLOSE (MMIOERR_BASE + 4) /* cannot close */
|
---|
1537 | #define MMIOERR_CANNOTREAD (MMIOERR_BASE + 5) /* cannot read */
|
---|
1538 | #define MMIOERR_CANNOTWRITE (MMIOERR_BASE + 6) /* cannot write */
|
---|
1539 | #define MMIOERR_CANNOTSEEK (MMIOERR_BASE + 7) /* cannot seek */
|
---|
1540 | #define MMIOERR_CANNOTEXPAND (MMIOERR_BASE + 8) /* cannot expand file */
|
---|
1541 | #define MMIOERR_CHUNKNOTFOUND (MMIOERR_BASE + 9) /* chunk not found */
|
---|
1542 | #define MMIOERR_UNBUFFERED (MMIOERR_BASE + 10) /* file is unbuffered */
|
---|
1543 | #define MMIOERR_PATHNOTFOUND (MMIOERR_BASE + 11)
|
---|
1544 | #define MMIOERR_ACCESSDENIED (MMIOERR_BASE + 12)
|
---|
1545 | #define MMIOERR_SHARINGVIOLATION (MMIOERR_BASE + 13)
|
---|
1546 | #define MMIOERR_NETWORKERROR (MMIOERR_BASE + 14)
|
---|
1547 | #define MMIOERR_TOOMANYOPENFILES (MMIOERR_BASE + 15)
|
---|
1548 | #define MMIOERR_INVALIDFILE (MMIOERR_BASE + 16)
|
---|
1549 |
|
---|
1550 | #define CFSEPCHAR '+' /* compound file name separator char. */
|
---|
1551 |
|
---|
1552 | typedef DWORD FOURCC; /* a four character code */
|
---|
1553 | typedef LRESULT (CALLBACK *LPMMIOPROC) (LPSTR lpmmioinfo, UINT uMessage,
|
---|
1554 | LPARAM lParam1, LPARAM lParam2);
|
---|
1555 |
|
---|
1556 | typedef struct _MMIOINFO {
|
---|
1557 | DWORD dwFlags;
|
---|
1558 | FOURCC fccIOProc;
|
---|
1559 | LPMMIOPROC pIOProc;
|
---|
1560 | UINT wErrorRet;
|
---|
1561 | HTASK hTask;
|
---|
1562 | /* fields maintained by MMIO functions during buffered I/O */
|
---|
1563 | LONG cchBuffer;
|
---|
1564 | HPSTR pchBuffer;
|
---|
1565 | HPSTR pchNext;
|
---|
1566 | HPSTR pchEndRead;
|
---|
1567 | HPSTR pchEndWrite;
|
---|
1568 | LONG lBufOffset;
|
---|
1569 | /* fields maintained by I/O procedure */
|
---|
1570 | LONG lDiskOffset;
|
---|
1571 | DWORD adwInfo[3];
|
---|
1572 | /* other fields maintained by MMIO */
|
---|
1573 | DWORD dwReserved1;
|
---|
1574 | DWORD dwReserved2;
|
---|
1575 | HMMIO hmmio;
|
---|
1576 | } MMIOINFO, *PMMIOINFO, *LPMMIOINFO;
|
---|
1577 |
|
---|
1578 |
|
---|
1579 | typedef struct _MMCKINFO
|
---|
1580 | {
|
---|
1581 | FOURCC ckid; /* chunk ID */
|
---|
1582 | DWORD cksize; /* chunk size */
|
---|
1583 | FOURCC fccType; /* form type or list type */
|
---|
1584 | DWORD dwDataOffset; /* offset of data portion of chunk */
|
---|
1585 | DWORD dwFlags; /* flags used by MMIO functions */
|
---|
1586 | } MMCKINFO, *LPMMCKINFO;
|
---|
1587 |
|
---|
1588 | #define MMIO_RWMODE 0x00000003 /* open file for reading/writing/both */
|
---|
1589 | #define MMIO_SHAREMODE 0x00000070 /* file sharing mode number */
|
---|
1590 |
|
---|
1591 | #define MMIO_CREATE 0x00001000 /* create new file (or truncate file) */
|
---|
1592 | #define MMIO_PARSE 0x00000100 /* parse new file returning path */
|
---|
1593 | #define MMIO_DELETE 0x00000200 /* create new file (or truncate file) */
|
---|
1594 | #define MMIO_EXIST 0x00004000 /* checks for existence of file */
|
---|
1595 | #define MMIO_ALLOCBUF 0x00010000 /* mmioOpen() should allocate a buffer */
|
---|
1596 | #define MMIO_GETTEMP 0x00020000 /* mmioOpen() should retrieve temp name */
|
---|
1597 |
|
---|
1598 | #define MMIO_DIRTY 0x10000000 /* I/O buffer is dirty */
|
---|
1599 |
|
---|
1600 | #define MMIO_READ 0x00000000 /* open file for reading only */
|
---|
1601 | #define MMIO_WRITE 0x00000001 /* open file for writing only */
|
---|
1602 | #define MMIO_READWRITE 0x00000002 /* open file for reading and writing */
|
---|
1603 |
|
---|
1604 | #define MMIO_COMPAT 0x00000000 /* compatibility mode */
|
---|
1605 | #define MMIO_EXCLUSIVE 0x00000010 /* exclusive-access mode */
|
---|
1606 | #define MMIO_DENYWRITE 0x00000020 /* deny writing to other processes */
|
---|
1607 | #define MMIO_DENYREAD 0x00000030 /* deny reading to other processes */
|
---|
1608 | #define MMIO_DENYNONE 0x00000040 /* deny nothing to other processes */
|
---|
1609 |
|
---|
1610 | #define MMIO_FHOPEN 0x0010 /* mmioClose: keep file handle open */
|
---|
1611 | #define MMIO_EMPTYBUF 0x0010 /* mmioFlush: empty the I/O buffer */
|
---|
1612 | #define MMIO_TOUPPER 0x0010 /* mmioStringToFOURCC: to u-case */
|
---|
1613 | #define MMIO_INSTALLPROC 0x00010000 /* mmioInstallIOProc: install MMIOProc */
|
---|
1614 | #define MMIO_GLOBALPROC 0x10000000 /* mmioInstallIOProc: install globally */
|
---|
1615 | #define MMIO_REMOVEPROC 0x00020000 /* mmioInstallIOProc: remove MMIOProc */
|
---|
1616 | #define MMIO_FINDPROC 0x00040000 /* mmioInstallIOProc: find an MMIOProc */
|
---|
1617 | #define MMIO_FINDCHUNK 0x0010 /* mmioDescend: find a chunk by ID */
|
---|
1618 | #define MMIO_FINDRIFF 0x0020 /* mmioDescend: find a LIST chunk */
|
---|
1619 | #define MMIO_FINDLIST 0x0040 /* mmioDescend: find a RIFF chunk */
|
---|
1620 | #define MMIO_CREATERIFF 0x0020 /* mmioCreateChunk: make a LIST chunk */
|
---|
1621 | #define MMIO_CREATELIST 0x0040 /* mmioCreateChunk: make a RIFF chunk */
|
---|
1622 |
|
---|
1623 | #ifndef SEEK_SET
|
---|
1624 | #define SEEK_SET 0
|
---|
1625 | #define SEEK_CUR 1
|
---|
1626 | #define SEEK_END 2
|
---|
1627 | #endif /* SEEK_SET */
|
---|
1628 |
|
---|
1629 | #define MMIOM_READ MMIO_READ /* read */
|
---|
1630 | #define MMIOM_WRITE MMIO_WRITE /* write */
|
---|
1631 | #define MMIOM_SEEK 2 /* seek to a new position in file */
|
---|
1632 | #define MMIOM_OPEN 3 /* open file */
|
---|
1633 | #define MMIOM_CLOSE 4 /* close file */
|
---|
1634 | #define MMIOM_WRITEFLUSH 5 /* write and flush */
|
---|
1635 |
|
---|
1636 | #define MMIOM_RENAME 6 /* rename specified file */
|
---|
1637 |
|
---|
1638 | #define MMIOM_USER 0x8000 /* beginning of user-defined messages */
|
---|
1639 |
|
---|
1640 | #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
|
---|
1641 | #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
|
---|
1642 |
|
---|
1643 | #define FOURCC_DOS mmioFOURCC('D', 'O', 'S', ' ')
|
---|
1644 | #define FOURCC_MEM mmioFOURCC('M', 'E', 'M', ' ')
|
---|
1645 |
|
---|
1646 | #define MMIO_DEFAULTBUFFER 8192 /* default buffer size */
|
---|
1647 |
|
---|
1648 | #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
|
---|
1649 | ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
|
---|
1650 | ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
|
---|
1651 |
|
---|
1652 | LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC,LPMMIOPROC,DWORD);
|
---|
1653 | LPMMIOPROC WINAPI mmioInstallIOProcW(FOURCC,LPMMIOPROC,DWORD);
|
---|
1654 | #define mmioInstallIOProc WINELIB_NAME_AW(mmioInstallIOProc)
|
---|
1655 |
|
---|
1656 | FOURCC WINAPI mmioStringToFOURCCA(LPCSTR,UINT);
|
---|
1657 | FOURCC WINAPI mmioStringToFOURCCW(LPCWSTR,UINT);
|
---|
1658 | #define mmioStringToFOURCC WINELIB_NAME_AW(mmioStringToFOURCC)
|
---|
1659 | HMMIO WINAPI mmioOpenA(LPSTR,MMIOINFO*,DWORD);
|
---|
1660 | HMMIO WINAPI mmioOpenW(LPWSTR,MMIOINFO*,DWORD);
|
---|
1661 | #define mmioOpen WINELIB_NAME_AW(mmioOpen)
|
---|
1662 |
|
---|
1663 | MMRESULT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
|
---|
1664 | const MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
|
---|
1665 | MMRESULT WINAPI mmioRenameW(LPCWSTR szFileName, LPCWSTR szNewFileName,
|
---|
1666 | const MMIOINFO * lpmmioinfo, DWORD dwRenameFlags);
|
---|
1667 | #define mmioRename WINELIB_NAME_AW(mmioRename)
|
---|
1668 |
|
---|
1669 | MMRESULT WINAPI mmioClose(HMMIO,UINT);
|
---|
1670 | LONG WINAPI mmioRead(HMMIO,HPSTR,LONG);
|
---|
1671 | LONG WINAPI mmioWrite(HMMIO,HPCSTR,LONG);
|
---|
1672 | LONG WINAPI mmioSeek(HMMIO,LONG,INT);
|
---|
1673 | MMRESULT WINAPI mmioGetInfo(HMMIO,MMIOINFO*,UINT);
|
---|
1674 | MMRESULT WINAPI mmioSetInfo(HMMIO,const MMIOINFO*,UINT);
|
---|
1675 | MMRESULT WINAPI mmioSetBuffer(HMMIO,LPSTR,LONG,UINT);
|
---|
1676 | MMRESULT WINAPI mmioFlush(HMMIO,UINT);
|
---|
1677 | MMRESULT WINAPI mmioAdvance(HMMIO,MMIOINFO*,UINT);
|
---|
1678 | LRESULT WINAPI mmioSendMessage(HMMIO,UINT,LPARAM,LPARAM);
|
---|
1679 | MMRESULT WINAPI mmioDescend(HMMIO,MMCKINFO*,const MMCKINFO*,UINT);
|
---|
1680 | MMRESULT WINAPI mmioAscend(HMMIO,MMCKINFO*,UINT);
|
---|
1681 | MMRESULT WINAPI mmioCreateChunk(HMMIO,MMCKINFO*,UINT);
|
---|
1682 |
|
---|
1683 | typedef UINT (CALLBACK *YIELDPROC)(MCIDEVICEID,DWORD);
|
---|
1684 |
|
---|
1685 | BOOL WINAPI mciExecute(LPCSTR);
|
---|
1686 | DWORD WINAPI mciSendCommandA(MCIDEVICEID,UINT,DWORD_PTR,DWORD_PTR);
|
---|
1687 | DWORD WINAPI mciSendCommandW(MCIDEVICEID,UINT,DWORD_PTR,DWORD_PTR);
|
---|
1688 | #define mciSendCommand WINELIB_NAME_AW(mciSendCommand)
|
---|
1689 | DWORD WINAPI mciSendStringA(LPCSTR,LPSTR,UINT,HWND);
|
---|
1690 | DWORD WINAPI mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND);
|
---|
1691 | #define mciSendString WINELIB_NAME_AW(mciSendString)
|
---|
1692 | MCIDEVICEID WINAPI mciGetDeviceIDA(LPCSTR);
|
---|
1693 | MCIDEVICEID WINAPI mciGetDeviceIDW(LPCWSTR);
|
---|
1694 | #define mciGetDeviceID WINELIB_NAME_AW(mciGetDeviceID)
|
---|
1695 | MCIDEVICEID WINAPI mciGetDeviceIDFromElementIDA(DWORD,LPCSTR);
|
---|
1696 | MCIDEVICEID WINAPI mciGetDeviceIDFromElementIDW(DWORD,LPCWSTR);
|
---|
1697 | #define mciGetDeviceIDFromElementID WINELIB_NAME_AW(mciGetDeviceIDFromElementID)
|
---|
1698 | BOOL WINAPI mciGetErrorStringA(MCIERROR,LPSTR,UINT);
|
---|
1699 | BOOL WINAPI mciGetErrorStringW(MCIERROR,LPWSTR,UINT);
|
---|
1700 | #define mciGetErrorString WINELIB_NAME_AW(mciGetErrorString)
|
---|
1701 | BOOL WINAPI mciSetYieldProc(MCIDEVICEID,YIELDPROC,DWORD);
|
---|
1702 | HTASK WINAPI mciGetCreatorTask(MCIDEVICEID);
|
---|
1703 | YIELDPROC WINAPI mciGetYieldProc(MCIDEVICEID,DWORD*);
|
---|
1704 |
|
---|
1705 | #define MCIERR_INVALID_DEVICE_ID (MCIERR_BASE + 1)
|
---|
1706 | #define MCIERR_UNRECOGNIZED_KEYWORD (MCIERR_BASE + 3)
|
---|
1707 | #define MCIERR_UNRECOGNIZED_COMMAND (MCIERR_BASE + 5)
|
---|
1708 | #define MCIERR_HARDWARE (MCIERR_BASE + 6)
|
---|
1709 | #define MCIERR_INVALID_DEVICE_NAME (MCIERR_BASE + 7)
|
---|
1710 | #define MCIERR_OUT_OF_MEMORY (MCIERR_BASE + 8)
|
---|
1711 | #define MCIERR_DEVICE_OPEN (MCIERR_BASE + 9)
|
---|
1712 | #define MCIERR_CANNOT_LOAD_DRIVER (MCIERR_BASE + 10)
|
---|
1713 | #define MCIERR_MISSING_COMMAND_STRING (MCIERR_BASE + 11)
|
---|
1714 | #define MCIERR_PARAM_OVERFLOW (MCIERR_BASE + 12)
|
---|
1715 | #define MCIERR_MISSING_STRING_ARGUMENT (MCIERR_BASE + 13)
|
---|
1716 | #define MCIERR_BAD_INTEGER (MCIERR_BASE + 14)
|
---|
1717 | #define MCIERR_PARSER_INTERNAL (MCIERR_BASE + 15)
|
---|
1718 | #define MCIERR_DRIVER_INTERNAL (MCIERR_BASE + 16)
|
---|
1719 | #define MCIERR_MISSING_PARAMETER (MCIERR_BASE + 17)
|
---|
1720 | #define MCIERR_UNSUPPORTED_FUNCTION (MCIERR_BASE + 18)
|
---|
1721 | #define MCIERR_FILE_NOT_FOUND (MCIERR_BASE + 19)
|
---|
1722 | #define MCIERR_DEVICE_NOT_READY (MCIERR_BASE + 20)
|
---|
1723 | #define MCIERR_INTERNAL (MCIERR_BASE + 21)
|
---|
1724 | #define MCIERR_DRIVER (MCIERR_BASE + 22)
|
---|
1725 | #define MCIERR_CANNOT_USE_ALL (MCIERR_BASE + 23)
|
---|
1726 | #define MCIERR_MULTIPLE (MCIERR_BASE + 24)
|
---|
1727 | #define MCIERR_EXTENSION_NOT_FOUND (MCIERR_BASE + 25)
|
---|
1728 | #define MCIERR_OUTOFRANGE (MCIERR_BASE + 26)
|
---|
1729 | #define MCIERR_FLAGS_NOT_COMPATIBLE (MCIERR_BASE + 28)
|
---|
1730 | #define MCIERR_FILE_NOT_SAVED (MCIERR_BASE + 30)
|
---|
1731 | #define MCIERR_DEVICE_TYPE_REQUIRED (MCIERR_BASE + 31)
|
---|
1732 | #define MCIERR_DEVICE_LOCKED (MCIERR_BASE + 32)
|
---|
1733 | #define MCIERR_DUPLICATE_ALIAS (MCIERR_BASE + 33)
|
---|
1734 | #define MCIERR_BAD_CONSTANT (MCIERR_BASE + 34)
|
---|
1735 | #define MCIERR_MUST_USE_SHAREABLE (MCIERR_BASE + 35)
|
---|
1736 | #define MCIERR_MISSING_DEVICE_NAME (MCIERR_BASE + 36)
|
---|
1737 | #define MCIERR_BAD_TIME_FORMAT (MCIERR_BASE + 37)
|
---|
1738 | #define MCIERR_NO_CLOSING_QUOTE (MCIERR_BASE + 38)
|
---|
1739 | #define MCIERR_DUPLICATE_FLAGS (MCIERR_BASE + 39)
|
---|
1740 | #define MCIERR_INVALID_FILE (MCIERR_BASE + 40)
|
---|
1741 | #define MCIERR_NULL_PARAMETER_BLOCK (MCIERR_BASE + 41)
|
---|
1742 | #define MCIERR_UNNAMED_RESOURCE (MCIERR_BASE + 42)
|
---|
1743 | #define MCIERR_NEW_REQUIRES_ALIAS (MCIERR_BASE + 43)
|
---|
1744 | #define MCIERR_NOTIFY_ON_AUTO_OPEN (MCIERR_BASE + 44)
|
---|
1745 | #define MCIERR_NO_ELEMENT_ALLOWED (MCIERR_BASE + 45)
|
---|
1746 | #define MCIERR_NONAPPLICABLE_FUNCTION (MCIERR_BASE + 46)
|
---|
1747 | #define MCIERR_ILLEGAL_FOR_AUTO_OPEN (MCIERR_BASE + 47)
|
---|
1748 | #define MCIERR_FILENAME_REQUIRED (MCIERR_BASE + 48)
|
---|
1749 | #define MCIERR_EXTRA_CHARACTERS (MCIERR_BASE + 49)
|
---|
1750 | #define MCIERR_DEVICE_NOT_INSTALLED (MCIERR_BASE + 50)
|
---|
1751 | #define MCIERR_GET_CD (MCIERR_BASE + 51)
|
---|
1752 | #define MCIERR_SET_CD (MCIERR_BASE + 52)
|
---|
1753 | #define MCIERR_SET_DRIVE (MCIERR_BASE + 53)
|
---|
1754 | #define MCIERR_DEVICE_LENGTH (MCIERR_BASE + 54)
|
---|
1755 | #define MCIERR_DEVICE_ORD_LENGTH (MCIERR_BASE + 55)
|
---|
1756 | #define MCIERR_NO_INTEGER (MCIERR_BASE + 56)
|
---|
1757 |
|
---|
1758 | #define MCIERR_WAVE_OUTPUTSINUSE (MCIERR_BASE + 64)
|
---|
1759 | #define MCIERR_WAVE_SETOUTPUTINUSE (MCIERR_BASE + 65)
|
---|
1760 | #define MCIERR_WAVE_INPUTSINUSE (MCIERR_BASE + 66)
|
---|
1761 | #define MCIERR_WAVE_SETINPUTINUSE (MCIERR_BASE + 67)
|
---|
1762 | #define MCIERR_WAVE_OUTPUTUNSPECIFIED (MCIERR_BASE + 68)
|
---|
1763 | #define MCIERR_WAVE_INPUTUNSPECIFIED (MCIERR_BASE + 69)
|
---|
1764 | #define MCIERR_WAVE_OUTPUTSUNSUITABLE (MCIERR_BASE + 70)
|
---|
1765 | #define MCIERR_WAVE_SETOUTPUTUNSUITABLE (MCIERR_BASE + 71)
|
---|
1766 | #define MCIERR_WAVE_INPUTSUNSUITABLE (MCIERR_BASE + 72)
|
---|
1767 | #define MCIERR_WAVE_SETINPUTUNSUITABLE (MCIERR_BASE + 73)
|
---|
1768 |
|
---|
1769 | #define MCIERR_SEQ_DIV_INCOMPATIBLE (MCIERR_BASE + 80)
|
---|
1770 | #define MCIERR_SEQ_PORT_INUSE (MCIERR_BASE + 81)
|
---|
1771 | #define MCIERR_SEQ_PORT_NONEXISTENT (MCIERR_BASE + 82)
|
---|
1772 | #define MCIERR_SEQ_PORT_MAPNODEVICE (MCIERR_BASE + 83)
|
---|
1773 | #define MCIERR_SEQ_PORT_MISCERROR (MCIERR_BASE + 84)
|
---|
1774 | #define MCIERR_SEQ_TIMER (MCIERR_BASE + 85)
|
---|
1775 | #define MCIERR_SEQ_PORTUNSPECIFIED (MCIERR_BASE + 86)
|
---|
1776 | #define MCIERR_SEQ_NOMIDIPRESENT (MCIERR_BASE + 87)
|
---|
1777 |
|
---|
1778 | #define MCIERR_NO_WINDOW (MCIERR_BASE + 90)
|
---|
1779 | #define MCIERR_CREATEWINDOW (MCIERR_BASE + 91)
|
---|
1780 | #define MCIERR_FILE_READ (MCIERR_BASE + 92)
|
---|
1781 | #define MCIERR_FILE_WRITE (MCIERR_BASE + 93)
|
---|
1782 |
|
---|
1783 | #define MCIERR_NO_IDENTITY (MCIERR_BASE + 94)
|
---|
1784 |
|
---|
1785 | #define MCIERR_CUSTOM_DRIVER_BASE (MCIERR_BASE + 256)
|
---|
1786 |
|
---|
1787 | #define MCI_OPEN_DRIVER 0x0801
|
---|
1788 | #define MCI_CLOSE_DRIVER 0x0802
|
---|
1789 | #define MCI_OPEN 0x0803
|
---|
1790 | #define MCI_CLOSE 0x0804
|
---|
1791 | #define MCI_ESCAPE 0x0805
|
---|
1792 | #define MCI_PLAY 0x0806
|
---|
1793 | #define MCI_SEEK 0x0807
|
---|
1794 | #define MCI_STOP 0x0808
|
---|
1795 | #define MCI_PAUSE 0x0809
|
---|
1796 | #define MCI_INFO 0x080A
|
---|
1797 | #define MCI_GETDEVCAPS 0x080B
|
---|
1798 | #define MCI_SPIN 0x080C
|
---|
1799 | #define MCI_SET 0x080D
|
---|
1800 | #define MCI_STEP 0x080E
|
---|
1801 | #define MCI_RECORD 0x080F
|
---|
1802 | #define MCI_SYSINFO 0x0810
|
---|
1803 | #define MCI_BREAK 0x0811
|
---|
1804 | #define MCI_SOUND 0x0812
|
---|
1805 | #define MCI_SAVE 0x0813
|
---|
1806 | #define MCI_STATUS 0x0814
|
---|
1807 | #define MCI_CUE 0x0830
|
---|
1808 | #define MCI_REALIZE 0x0840
|
---|
1809 | #define MCI_WINDOW 0x0841
|
---|
1810 | #define MCI_PUT 0x0842
|
---|
1811 | #define MCI_WHERE 0x0843
|
---|
1812 | #define MCI_FREEZE 0x0844
|
---|
1813 | #define MCI_UNFREEZE 0x0845
|
---|
1814 | #define MCI_LOAD 0x0850
|
---|
1815 | #define MCI_CUT 0x0851
|
---|
1816 | #define MCI_COPY 0x0852
|
---|
1817 | #define MCI_PASTE 0x0853
|
---|
1818 | #define MCI_UPDATE 0x0854
|
---|
1819 | #define MCI_RESUME 0x0855
|
---|
1820 | #define MCI_DELETE 0x0856
|
---|
1821 |
|
---|
1822 | #define MCI_USER_MESSAGES (0x400 + DRV_MCI_FIRST)
|
---|
1823 |
|
---|
1824 | #define MCI_ALL_DEVICE_ID 0xFFFFFFFF
|
---|
1825 |
|
---|
1826 | #define MCI_DEVTYPE_VCR (MCI_STRING_OFFSET + 1)
|
---|
1827 | #define MCI_DEVTYPE_VIDEODISC (MCI_STRING_OFFSET + 2)
|
---|
1828 | #define MCI_DEVTYPE_OVERLAY (MCI_STRING_OFFSET + 3)
|
---|
1829 | #define MCI_DEVTYPE_CD_AUDIO (MCI_STRING_OFFSET + 4)
|
---|
1830 | #define MCI_DEVTYPE_DAT (MCI_STRING_OFFSET + 5)
|
---|
1831 | #define MCI_DEVTYPE_SCANNER (MCI_STRING_OFFSET + 6)
|
---|
1832 | #define MCI_DEVTYPE_ANIMATION (MCI_STRING_OFFSET + 7)
|
---|
1833 | #define MCI_DEVTYPE_DIGITAL_VIDEO (MCI_STRING_OFFSET + 8)
|
---|
1834 | #define MCI_DEVTYPE_OTHER (MCI_STRING_OFFSET + 9)
|
---|
1835 | #define MCI_DEVTYPE_WAVEFORM_AUDIO (MCI_STRING_OFFSET + 10)
|
---|
1836 | #define MCI_DEVTYPE_SEQUENCER (MCI_STRING_OFFSET + 11)
|
---|
1837 |
|
---|
1838 | #define MCI_DEVTYPE_FIRST MCI_DEVTYPE_VCR
|
---|
1839 | #define MCI_DEVTYPE_LAST MCI_DEVTYPE_SEQUENCER
|
---|
1840 |
|
---|
1841 | #define MCI_MODE_NOT_READY (MCI_STRING_OFFSET + 12)
|
---|
1842 | #define MCI_MODE_STOP (MCI_STRING_OFFSET + 13)
|
---|
1843 | #define MCI_MODE_PLAY (MCI_STRING_OFFSET + 14)
|
---|
1844 | #define MCI_MODE_RECORD (MCI_STRING_OFFSET + 15)
|
---|
1845 | #define MCI_MODE_SEEK (MCI_STRING_OFFSET + 16)
|
---|
1846 | #define MCI_MODE_PAUSE (MCI_STRING_OFFSET + 17)
|
---|
1847 | #define MCI_MODE_OPEN (MCI_STRING_OFFSET + 18)
|
---|
1848 |
|
---|
1849 | #define MCI_FORMAT_MILLISECONDS 0
|
---|
1850 | #define MCI_FORMAT_HMS 1
|
---|
1851 | #define MCI_FORMAT_MSF 2
|
---|
1852 | #define MCI_FORMAT_FRAMES 3
|
---|
1853 | #define MCI_FORMAT_SMPTE_24 4
|
---|
1854 | #define MCI_FORMAT_SMPTE_25 5
|
---|
1855 | #define MCI_FORMAT_SMPTE_30 6
|
---|
1856 | #define MCI_FORMAT_SMPTE_30DROP 7
|
---|
1857 | #define MCI_FORMAT_BYTES 8
|
---|
1858 | #define MCI_FORMAT_SAMPLES 9
|
---|
1859 | #define MCI_FORMAT_TMSF 10
|
---|
1860 |
|
---|
1861 | #define MCI_MSF_MINUTE(msf) ((BYTE)(msf))
|
---|
1862 | #define MCI_MSF_SECOND(msf) ((BYTE)(((WORD)(msf)) >> 8))
|
---|
1863 | #define MCI_MSF_FRAME(msf) ((BYTE)((msf)>>16))
|
---|
1864 |
|
---|
1865 | #define MCI_MAKE_MSF(m, s, f) ((DWORD)(((BYTE)(m) | \
|
---|
1866 | ((WORD)(s)<<8)) | \
|
---|
1867 | (((DWORD)(BYTE)(f))<<16)))
|
---|
1868 |
|
---|
1869 | #define MCI_TMSF_TRACK(tmsf) ((BYTE)(tmsf))
|
---|
1870 | #define MCI_TMSF_MINUTE(tmsf) ((BYTE)(((WORD)(tmsf)) >> 8))
|
---|
1871 | #define MCI_TMSF_SECOND(tmsf) ((BYTE)((tmsf)>>16))
|
---|
1872 | #define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf)>>24))
|
---|
1873 |
|
---|
1874 | #define MCI_MAKE_TMSF(t, m, s, f) ((DWORD)(((BYTE)(t) | \
|
---|
1875 | ((WORD)(m)<<8)) | \
|
---|
1876 | (((DWORD)(BYTE)(s) | \
|
---|
1877 | ((WORD)(f)<<8))<<16)))
|
---|
1878 |
|
---|
1879 | #define MCI_HMS_HOUR(hms) ((BYTE)(hms))
|
---|
1880 | #define MCI_HMS_MINUTE(hms) ((BYTE)(((WORD)(hms)) >> 8))
|
---|
1881 | #define MCI_HMS_SECOND(hms) ((BYTE)((hms)>>16))
|
---|
1882 |
|
---|
1883 | #define MCI_MAKE_HMS(h, m, s) ((DWORD)(((BYTE)(h) | \
|
---|
1884 | ((WORD)(m)<<8)) | \
|
---|
1885 | (((DWORD)(BYTE)(s))<<16)))
|
---|
1886 |
|
---|
1887 | #define MCI_NOTIFY_SUCCESSFUL 0x0001
|
---|
1888 | #define MCI_NOTIFY_SUPERSEDED 0x0002
|
---|
1889 | #define MCI_NOTIFY_ABORTED 0x0004
|
---|
1890 | #define MCI_NOTIFY_FAILURE 0x0008
|
---|
1891 |
|
---|
1892 | #define MCI_NOTIFY 0x00000001L
|
---|
1893 | #define MCI_WAIT 0x00000002L
|
---|
1894 | #define MCI_FROM 0x00000004L
|
---|
1895 | #define MCI_TO 0x00000008L
|
---|
1896 | #define MCI_TRACK 0x00000010L
|
---|
1897 |
|
---|
1898 | #define MCI_OPEN_SHAREABLE 0x00000100L
|
---|
1899 | #define MCI_OPEN_ELEMENT 0x00000200L
|
---|
1900 | #define MCI_OPEN_ALIAS 0x00000400L
|
---|
1901 | #define MCI_OPEN_ELEMENT_ID 0x00000800L
|
---|
1902 | #define MCI_OPEN_TYPE_ID 0x00001000L
|
---|
1903 | #define MCI_OPEN_TYPE 0x00002000L
|
---|
1904 |
|
---|
1905 | #define MCI_SEEK_TO_START 0x00000100L
|
---|
1906 | #define MCI_SEEK_TO_END 0x00000200L
|
---|
1907 |
|
---|
1908 | #define MCI_STATUS_ITEM 0x00000100L
|
---|
1909 | #define MCI_STATUS_START 0x00000200L
|
---|
1910 |
|
---|
1911 | #define MCI_STATUS_LENGTH 0x00000001L
|
---|
1912 | #define MCI_STATUS_POSITION 0x00000002L
|
---|
1913 | #define MCI_STATUS_NUMBER_OF_TRACKS 0x00000003L
|
---|
1914 | #define MCI_STATUS_MODE 0x00000004L
|
---|
1915 | #define MCI_STATUS_MEDIA_PRESENT 0x00000005L
|
---|
1916 | #define MCI_STATUS_TIME_FORMAT 0x00000006L
|
---|
1917 | #define MCI_STATUS_READY 0x00000007L
|
---|
1918 | #define MCI_STATUS_CURRENT_TRACK 0x00000008L
|
---|
1919 |
|
---|
1920 | #define MCI_INFO_PRODUCT 0x00000100L
|
---|
1921 | #define MCI_INFO_FILE 0x00000200L
|
---|
1922 | #define MCI_INFO_MEDIA_UPC 0x00000400L
|
---|
1923 | #define MCI_INFO_MEDIA_IDENTITY 0x00000800L
|
---|
1924 | #define MCI_INFO_NAME 0x00001000L
|
---|
1925 | #define MCI_INFO_COPYRIGHT 0x00002000L
|
---|
1926 |
|
---|
1927 | #define MCI_GETDEVCAPS_ITEM 0x00000100L
|
---|
1928 |
|
---|
1929 | #define MCI_GETDEVCAPS_CAN_RECORD 0x00000001L
|
---|
1930 | #define MCI_GETDEVCAPS_HAS_AUDIO 0x00000002L
|
---|
1931 | #define MCI_GETDEVCAPS_HAS_VIDEO 0x00000003L
|
---|
1932 | #define MCI_GETDEVCAPS_DEVICE_TYPE 0x00000004L
|
---|
1933 | #define MCI_GETDEVCAPS_USES_FILES 0x00000005L
|
---|
1934 | #define MCI_GETDEVCAPS_COMPOUND_DEVICE 0x00000006L
|
---|
1935 | #define MCI_GETDEVCAPS_CAN_EJECT 0x00000007L
|
---|
1936 | #define MCI_GETDEVCAPS_CAN_PLAY 0x00000008L
|
---|
1937 | #define MCI_GETDEVCAPS_CAN_SAVE 0x00000009L
|
---|
1938 |
|
---|
1939 | #define MCI_SYSINFO_QUANTITY 0x00000100L
|
---|
1940 | #define MCI_SYSINFO_OPEN 0x00000200L
|
---|
1941 | #define MCI_SYSINFO_NAME 0x00000400L
|
---|
1942 | #define MCI_SYSINFO_INSTALLNAME 0x00000800L
|
---|
1943 |
|
---|
1944 | #define MCI_SET_DOOR_OPEN 0x00000100L
|
---|
1945 | #define MCI_SET_DOOR_CLOSED 0x00000200L
|
---|
1946 | #define MCI_SET_TIME_FORMAT 0x00000400L
|
---|
1947 | #define MCI_SET_AUDIO 0x00000800L
|
---|
1948 | #define MCI_SET_VIDEO 0x00001000L
|
---|
1949 | #define MCI_SET_ON 0x00002000L
|
---|
1950 | #define MCI_SET_OFF 0x00004000L
|
---|
1951 |
|
---|
1952 | #define MCI_SET_AUDIO_ALL 0x00000000L
|
---|
1953 | #define MCI_SET_AUDIO_LEFT 0x00000001L
|
---|
1954 | #define MCI_SET_AUDIO_RIGHT 0x00000002L
|
---|
1955 |
|
---|
1956 | #define MCI_BREAK_KEY 0x00000100L
|
---|
1957 | #define MCI_BREAK_HWND 0x00000200L
|
---|
1958 | #define MCI_BREAK_OFF 0x00000400L
|
---|
1959 |
|
---|
1960 | #define MCI_RECORD_INSERT 0x00000100L
|
---|
1961 | #define MCI_RECORD_OVERWRITE 0x00000200L
|
---|
1962 |
|
---|
1963 | #define MCI_SOUND_NAME 0x00000100L
|
---|
1964 |
|
---|
1965 | #define MCI_SAVE_FILE 0x00000100L
|
---|
1966 |
|
---|
1967 | #define MCI_LOAD_FILE 0x00000100L
|
---|
1968 |
|
---|
1969 | typedef struct tagMCI_GENERIC_PARMS {
|
---|
1970 | DWORD_PTR dwCallback;
|
---|
1971 | } MCI_GENERIC_PARMS, *LPMCI_GENERIC_PARMS;
|
---|
1972 |
|
---|
1973 | typedef struct tagMCI_OPEN_PARMSA {
|
---|
1974 | DWORD_PTR dwCallback;
|
---|
1975 | MCIDEVICEID wDeviceID;
|
---|
1976 | LPCSTR lpstrDeviceType;
|
---|
1977 | LPCSTR lpstrElementName;
|
---|
1978 | LPCSTR lpstrAlias;
|
---|
1979 | } MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
|
---|
1980 |
|
---|
1981 | typedef struct tagMCI_OPEN_PARMSW {
|
---|
1982 | DWORD_PTR dwCallback;
|
---|
1983 | MCIDEVICEID wDeviceID;
|
---|
1984 | LPCWSTR lpstrDeviceType;
|
---|
1985 | LPCWSTR lpstrElementName;
|
---|
1986 | LPCWSTR lpstrAlias;
|
---|
1987 | } MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
|
---|
1988 |
|
---|
1989 | DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)
|
---|
1990 | DECL_WINELIB_TYPE_AW(LPMCI_OPEN_PARMS)
|
---|
1991 |
|
---|
1992 | typedef struct tagMCI_PLAY_PARMS{
|
---|
1993 | DWORD_PTR dwCallback;
|
---|
1994 | DWORD dwFrom;
|
---|
1995 | DWORD dwTo;
|
---|
1996 | } MCI_PLAY_PARMS, *LPMCI_PLAY_PARMS;
|
---|
1997 |
|
---|
1998 | typedef struct tagMCI_SEEK_PARMS {
|
---|
1999 | DWORD_PTR dwCallback;
|
---|
2000 | DWORD dwTo;
|
---|
2001 | } MCI_SEEK_PARMS, *LPMCI_SEEK_PARMS;
|
---|
2002 |
|
---|
2003 | typedef struct tagMCI_STATUS_PARMS {
|
---|
2004 | DWORD_PTR dwCallback;
|
---|
2005 | DWORD_PTR dwReturn;
|
---|
2006 | DWORD dwItem;
|
---|
2007 | DWORD dwTrack;
|
---|
2008 | } MCI_STATUS_PARMS, *LPMCI_STATUS_PARMS;
|
---|
2009 |
|
---|
2010 | typedef struct tagMCI_INFO_PARMSA {
|
---|
2011 | DWORD_PTR dwCallback;
|
---|
2012 | LPSTR lpstrReturn;
|
---|
2013 | DWORD dwRetSize;
|
---|
2014 | } MCI_INFO_PARMSA, *LPMCI_INFO_PARMSA;
|
---|
2015 |
|
---|
2016 | typedef struct tagMCI_INFO_PARMSW {
|
---|
2017 | DWORD_PTR dwCallback;
|
---|
2018 | LPWSTR lpstrReturn;
|
---|
2019 | DWORD dwRetSize;
|
---|
2020 | } MCI_INFO_PARMSW, *LPMCI_INFO_PARMSW;
|
---|
2021 |
|
---|
2022 | DECL_WINELIB_TYPE_AW(MCI_INFO_PARMS)
|
---|
2023 | DECL_WINELIB_TYPE_AW(LPMCI_INFO_PARMS)
|
---|
2024 |
|
---|
2025 | typedef struct tagMCI_GETDEVCAPS_PARMS {
|
---|
2026 | DWORD_PTR dwCallback;
|
---|
2027 | DWORD dwReturn;
|
---|
2028 | DWORD dwItem;
|
---|
2029 | } MCI_GETDEVCAPS_PARMS, *LPMCI_GETDEVCAPS_PARMS;
|
---|
2030 |
|
---|
2031 | typedef struct tagMCI_SYSINFO_PARMSA {
|
---|
2032 | DWORD_PTR dwCallback;
|
---|
2033 | LPSTR lpstrReturn;
|
---|
2034 | DWORD dwRetSize;
|
---|
2035 | DWORD dwNumber;
|
---|
2036 | UINT wDeviceType;
|
---|
2037 | } MCI_SYSINFO_PARMSA, *LPMCI_SYSINFO_PARMSA;
|
---|
2038 |
|
---|
2039 | typedef struct tagMCI_SYSINFO_PARMSW {
|
---|
2040 | DWORD_PTR dwCallback;
|
---|
2041 | LPWSTR lpstrReturn;
|
---|
2042 | DWORD dwRetSize;
|
---|
2043 | DWORD dwNumber;
|
---|
2044 | UINT wDeviceType;
|
---|
2045 | } MCI_SYSINFO_PARMSW, *LPMCI_SYSINFO_PARMSW;
|
---|
2046 |
|
---|
2047 | DECL_WINELIB_TYPE_AW(MCI_SYSINFO_PARMS)
|
---|
2048 | DECL_WINELIB_TYPE_AW(LPMCI_SYSINFO_PARMS)
|
---|
2049 |
|
---|
2050 | typedef struct tagMCI_SET_PARMS {
|
---|
2051 | DWORD_PTR dwCallback;
|
---|
2052 | DWORD dwTimeFormat;
|
---|
2053 | DWORD dwAudio;
|
---|
2054 | } MCI_SET_PARMS, *LPMCI_SET_PARMS;
|
---|
2055 |
|
---|
2056 | typedef struct tagMCI_BREAK_PARMS {
|
---|
2057 | DWORD_PTR dwCallback;
|
---|
2058 | INT nVirtKey;
|
---|
2059 | HWND hwndBreak;
|
---|
2060 | } MCI_BREAK_PARMS, *LPMCI_BREAK_PARMS;
|
---|
2061 |
|
---|
2062 |
|
---|
2063 | typedef struct tagMCI_SOUND_PARMSA {
|
---|
2064 | DWORD_PTR dwCallback;
|
---|
2065 | LPCSTR lpstrSoundName;
|
---|
2066 | } MCI_SOUND_PARMSA, *LPMCI_SOUND_PARMSA;
|
---|
2067 |
|
---|
2068 | typedef struct tagMCI_SOUND_PARMSW {
|
---|
2069 | DWORD_PTR dwCallback;
|
---|
2070 | LPCWSTR lpstrSoundName;
|
---|
2071 | } MCI_SOUND_PARMSW, *LPMCI_SOUND_PARMSW;
|
---|
2072 |
|
---|
2073 | DECL_WINELIB_TYPE_AW(MCI_SOUND_PARMS)
|
---|
2074 | DECL_WINELIB_TYPE_AW(LPMCI_SOUND_PARMS)
|
---|
2075 |
|
---|
2076 | typedef struct tagMCI_SAVE_PARMSA {
|
---|
2077 | DWORD_PTR dwCallback;
|
---|
2078 | LPCSTR lpfilename;
|
---|
2079 | } MCI_SAVE_PARMSA, *LPMCI_SAVE_PARMSA;
|
---|
2080 |
|
---|
2081 | typedef struct tagMCI_SAVE_PARMSW {
|
---|
2082 | DWORD_PTR dwCallback;
|
---|
2083 | LPCWSTR lpfilename;
|
---|
2084 | } MCI_SAVE_PARMSW, *LPMCI_SAVE_PARMSW;
|
---|
2085 |
|
---|
2086 | DECL_WINELIB_TYPE_AW(MCI_SAVE_PARMS)
|
---|
2087 | DECL_WINELIB_TYPE_AW(LPMCI_SAVE_PARMS)
|
---|
2088 |
|
---|
2089 | typedef struct tagMCI_LOAD_PARMSA {
|
---|
2090 | DWORD_PTR dwCallback;
|
---|
2091 | LPCSTR lpfilename;
|
---|
2092 | } MCI_LOAD_PARMSA, *LPMCI_LOAD_PARMSA;
|
---|
2093 |
|
---|
2094 | typedef struct tagMCI_LOAD_PARMSW {
|
---|
2095 | DWORD_PTR dwCallback;
|
---|
2096 | LPCWSTR lpfilename;
|
---|
2097 | } MCI_LOAD_PARMSW, *LPMCI_LOAD_PARMSW;
|
---|
2098 |
|
---|
2099 | DECL_WINELIB_TYPE_AW(MCI_LOAD_PARMS)
|
---|
2100 | DECL_WINELIB_TYPE_AW(LPMCI_LOAD_PARMS)
|
---|
2101 |
|
---|
2102 | typedef struct tagMCI_RECORD_PARMS {
|
---|
2103 | DWORD_PTR dwCallback;
|
---|
2104 | DWORD dwFrom;
|
---|
2105 | DWORD dwTo;
|
---|
2106 | } MCI_RECORD_PARMS, *LPMCI_RECORD_PARMS;
|
---|
2107 |
|
---|
2108 | #define MCI_CDA_STATUS_TYPE_TRACK 0x00004001
|
---|
2109 |
|
---|
2110 | #define MCI_CDA_TRACK_AUDIO (MCI_CD_OFFSET + 0)
|
---|
2111 | #define MCI_CDA_TRACK_OTHER (MCI_CD_OFFSET + 1)
|
---|
2112 |
|
---|
2113 | #define MCI_VD_MODE_PARK (MCI_VD_OFFSET + 1)
|
---|
2114 |
|
---|
2115 | #define MCI_VD_MEDIA_CLV (MCI_VD_OFFSET + 2)
|
---|
2116 | #define MCI_VD_MEDIA_CAV (MCI_VD_OFFSET + 3)
|
---|
2117 | #define MCI_VD_MEDIA_OTHER (MCI_VD_OFFSET + 4)
|
---|
2118 |
|
---|
2119 | #define MCI_VD_FORMAT_TRACK 0x4001
|
---|
2120 |
|
---|
2121 | #define MCI_VD_PLAY_REVERSE 0x00010000L
|
---|
2122 | #define MCI_VD_PLAY_FAST 0x00020000L
|
---|
2123 | #define MCI_VD_PLAY_SPEED 0x00040000L
|
---|
2124 | #define MCI_VD_PLAY_SCAN 0x00080000L
|
---|
2125 | #define MCI_VD_PLAY_SLOW 0x00100000L
|
---|
2126 |
|
---|
2127 | #define MCI_VD_SEEK_REVERSE 0x00010000L
|
---|
2128 |
|
---|
2129 | #define MCI_VD_STATUS_SPEED 0x00004002L
|
---|
2130 | #define MCI_VD_STATUS_FORWARD 0x00004003L
|
---|
2131 | #define MCI_VD_STATUS_MEDIA_TYPE 0x00004004L
|
---|
2132 | #define MCI_VD_STATUS_SIDE 0x00004005L
|
---|
2133 | #define MCI_VD_STATUS_DISC_SIZE 0x00004006L
|
---|
2134 |
|
---|
2135 | #define MCI_VD_GETDEVCAPS_CLV 0x00010000L
|
---|
2136 | #define MCI_VD_GETDEVCAPS_CAV 0x00020000L
|
---|
2137 |
|
---|
2138 | #define MCI_VD_SPIN_UP 0x00010000L
|
---|
2139 | #define MCI_VD_SPIN_DOWN 0x00020000L
|
---|
2140 |
|
---|
2141 | #define MCI_VD_GETDEVCAPS_CAN_REVERSE 0x00004002L
|
---|
2142 | #define MCI_VD_GETDEVCAPS_FAST_RATE 0x00004003L
|
---|
2143 | #define MCI_VD_GETDEVCAPS_SLOW_RATE 0x00004004L
|
---|
2144 | #define MCI_VD_GETDEVCAPS_NORMAL_RATE 0x00004005L
|
---|
2145 |
|
---|
2146 | #define MCI_VD_STEP_FRAMES 0x00010000L
|
---|
2147 | #define MCI_VD_STEP_REVERSE 0x00020000L
|
---|
2148 |
|
---|
2149 | #define MCI_VD_ESCAPE_STRING 0x00000100L
|
---|
2150 |
|
---|
2151 | typedef struct tagMCI_VD_PLAY_PARMS {
|
---|
2152 | DWORD_PTR dwCallback;
|
---|
2153 | DWORD dwFrom;
|
---|
2154 | DWORD dwTo;
|
---|
2155 | DWORD dwSpeed;
|
---|
2156 | } MCI_VD_PLAY_PARMS, *LPMCI_VD_PLAY_PARMS;
|
---|
2157 |
|
---|
2158 | typedef struct tagMCI_VD_STEP_PARMS {
|
---|
2159 | DWORD_PTR dwCallback;
|
---|
2160 | DWORD dwFrames;
|
---|
2161 | } MCI_VD_STEP_PARMS, *LPMCI_VD_STEP_PARMS;
|
---|
2162 |
|
---|
2163 | typedef struct tagMCI_VD_ESCAPE_PARMSA {
|
---|
2164 | DWORD_PTR dwCallback;
|
---|
2165 | LPCSTR lpstrCommand;
|
---|
2166 | } MCI_VD_ESCAPE_PARMSA, *LPMCI_VD_ESCAPE_PARMSA;
|
---|
2167 |
|
---|
2168 | typedef struct tagMCI_VD_ESCAPE_PARMSW {
|
---|
2169 | DWORD_PTR dwCallback;
|
---|
2170 | LPCWSTR lpstrCommand;
|
---|
2171 | } MCI_VD_ESCAPE_PARMSW, *LPMCI_VD_ESCAPE_PARMSW;
|
---|
2172 |
|
---|
2173 | DECL_WINELIB_TYPE_AW(MCI_VD_ESCAPE_PARMS)
|
---|
2174 | DECL_WINELIB_TYPE_AW(LPMCI_VD_ESCAPE_PARMS)
|
---|
2175 |
|
---|
2176 | #define MCI_WAVE_OPEN_BUFFER 0x00010000L
|
---|
2177 |
|
---|
2178 | #define MCI_WAVE_SET_FORMATTAG 0x00010000L
|
---|
2179 | #define MCI_WAVE_SET_CHANNELS 0x00020000L
|
---|
2180 | #define MCI_WAVE_SET_SAMPLESPERSEC 0x00040000L
|
---|
2181 | #define MCI_WAVE_SET_AVGBYTESPERSEC 0x00080000L
|
---|
2182 | #define MCI_WAVE_SET_BLOCKALIGN 0x00100000L
|
---|
2183 | #define MCI_WAVE_SET_BITSPERSAMPLE 0x00200000L
|
---|
2184 |
|
---|
2185 | #define MCI_WAVE_INPUT 0x00400000L
|
---|
2186 | #define MCI_WAVE_OUTPUT 0x00800000L
|
---|
2187 |
|
---|
2188 | #define MCI_WAVE_STATUS_FORMATTAG 0x00004001L
|
---|
2189 | #define MCI_WAVE_STATUS_CHANNELS 0x00004002L
|
---|
2190 | #define MCI_WAVE_STATUS_SAMPLESPERSEC 0x00004003L
|
---|
2191 | #define MCI_WAVE_STATUS_AVGBYTESPERSEC 0x00004004L
|
---|
2192 | #define MCI_WAVE_STATUS_BLOCKALIGN 0x00004005L
|
---|
2193 | #define MCI_WAVE_STATUS_BITSPERSAMPLE 0x00004006L
|
---|
2194 | #define MCI_WAVE_STATUS_LEVEL 0x00004007L
|
---|
2195 |
|
---|
2196 | #define MCI_WAVE_SET_ANYINPUT 0x04000000L
|
---|
2197 | #define MCI_WAVE_SET_ANYOUTPUT 0x08000000L
|
---|
2198 |
|
---|
2199 | #define MCI_WAVE_GETDEVCAPS_INPUTS 0x00004001L
|
---|
2200 | #define MCI_WAVE_GETDEVCAPS_OUTPUTS 0x00004002L
|
---|
2201 |
|
---|
2202 | typedef struct tagMCI_WAVE_OPEN_PARMSA {
|
---|
2203 | DWORD_PTR dwCallback;
|
---|
2204 | MCIDEVICEID wDeviceID;
|
---|
2205 | LPCSTR lpstrDeviceType;
|
---|
2206 | LPCSTR lpstrElementName;
|
---|
2207 | LPCSTR lpstrAlias;
|
---|
2208 | DWORD dwBufferSeconds;
|
---|
2209 | } MCI_WAVE_OPEN_PARMSA, *LPMCI_WAVE_OPEN_PARMSA;
|
---|
2210 |
|
---|
2211 | typedef struct tagMCI_WAVE_OPEN_PARMSW {
|
---|
2212 | DWORD_PTR dwCallback;
|
---|
2213 | MCIDEVICEID wDeviceID;
|
---|
2214 | LPCWSTR lpstrDeviceType;
|
---|
2215 | LPCWSTR lpstrElementName;
|
---|
2216 | LPCWSTR lpstrAlias;
|
---|
2217 | DWORD dwBufferSeconds;
|
---|
2218 | } MCI_WAVE_OPEN_PARMSW, *LPMCI_WAVE_OPEN_PARMSW;
|
---|
2219 |
|
---|
2220 | DECL_WINELIB_TYPE_AW(MCI_WAVE_OPEN_PARMS)
|
---|
2221 | DECL_WINELIB_TYPE_AW(LPMCI_WAVE_OPEN_PARMS)
|
---|
2222 |
|
---|
2223 | typedef struct tagMCI_WAVE_DELETE_PARMS {
|
---|
2224 | DWORD_PTR dwCallback;
|
---|
2225 | DWORD dwFrom;
|
---|
2226 | DWORD dwTo;
|
---|
2227 | } MCI_WAVE_DELETE_PARMS, *LPMCI_WAVE_DELETE_PARMS;
|
---|
2228 |
|
---|
2229 | typedef struct tagMCI_WAVE_SET_PARMS {
|
---|
2230 | DWORD_PTR dwCallback;
|
---|
2231 | DWORD dwTimeFormat;
|
---|
2232 | DWORD dwAudio;
|
---|
2233 | UINT wInput;
|
---|
2234 | UINT wOutput;
|
---|
2235 | UINT wFormatTag;
|
---|
2236 | UINT nChannels;
|
---|
2237 | DWORD nSamplesPerSec;
|
---|
2238 | DWORD nAvgBytesPerSec;
|
---|
2239 | UINT nBlockAlign;
|
---|
2240 | UINT wBitsPerSample;
|
---|
2241 | } MCI_WAVE_SET_PARMS, * LPMCI_WAVE_SET_PARMS;
|
---|
2242 |
|
---|
2243 |
|
---|
2244 | #define MCI_SEQ_DIV_PPQN (0 + MCI_SEQ_OFFSET)
|
---|
2245 | #define MCI_SEQ_DIV_SMPTE_24 (1 + MCI_SEQ_OFFSET)
|
---|
2246 | #define MCI_SEQ_DIV_SMPTE_25 (2 + MCI_SEQ_OFFSET)
|
---|
2247 | #define MCI_SEQ_DIV_SMPTE_30DROP (3 + MCI_SEQ_OFFSET)
|
---|
2248 | #define MCI_SEQ_DIV_SMPTE_30 (4 + MCI_SEQ_OFFSET)
|
---|
2249 |
|
---|
2250 | #define MCI_SEQ_FORMAT_SONGPTR 0x4001
|
---|
2251 | #define MCI_SEQ_FILE 0x4002
|
---|
2252 | #define MCI_SEQ_MIDI 0x4003
|
---|
2253 | #define MCI_SEQ_SMPTE 0x4004
|
---|
2254 | #define MCI_SEQ_NONE 65533
|
---|
2255 |
|
---|
2256 | #define MCI_SEQ_STATUS_TEMPO 0x00004002L
|
---|
2257 | #define MCI_SEQ_STATUS_PORT 0x00004003L
|
---|
2258 | #define MCI_SEQ_STATUS_SLAVE 0x00004007L
|
---|
2259 | #define MCI_SEQ_STATUS_MASTER 0x00004008L
|
---|
2260 | #define MCI_SEQ_STATUS_OFFSET 0x00004009L
|
---|
2261 | #define MCI_SEQ_STATUS_DIVTYPE 0x0000400AL
|
---|
2262 |
|
---|
2263 | #define MCI_SEQ_SET_TEMPO 0x00010000L
|
---|
2264 | #define MCI_SEQ_SET_PORT 0x00020000L
|
---|
2265 | #define MCI_SEQ_SET_SLAVE 0x00040000L
|
---|
2266 | #define MCI_SEQ_SET_MASTER 0x00080000L
|
---|
2267 | #define MCI_SEQ_SET_OFFSET 0x01000000L
|
---|
2268 |
|
---|
2269 | typedef struct tagMCI_SEQ_SET_PARMS {
|
---|
2270 | DWORD_PTR dwCallback;
|
---|
2271 | DWORD dwTimeFormat;
|
---|
2272 | DWORD dwAudio;
|
---|
2273 | DWORD dwTempo;
|
---|
2274 | DWORD dwPort;
|
---|
2275 | DWORD dwSlave;
|
---|
2276 | DWORD dwMaster;
|
---|
2277 | DWORD dwOffset;
|
---|
2278 | } MCI_SEQ_SET_PARMS, *LPMCI_SEQ_SET_PARMS;
|
---|
2279 |
|
---|
2280 | #define MCI_ANIM_OPEN_WS 0x00010000L
|
---|
2281 | #define MCI_ANIM_OPEN_PARENT 0x00020000L
|
---|
2282 | #define MCI_ANIM_OPEN_NOSTATIC 0x00040000L
|
---|
2283 |
|
---|
2284 | #define MCI_ANIM_PLAY_SPEED 0x00010000L
|
---|
2285 | #define MCI_ANIM_PLAY_REVERSE 0x00020000L
|
---|
2286 | #define MCI_ANIM_PLAY_FAST 0x00040000L
|
---|
2287 | #define MCI_ANIM_PLAY_SLOW 0x00080000L
|
---|
2288 | #define MCI_ANIM_PLAY_SCAN 0x00100000L
|
---|
2289 |
|
---|
2290 | #define MCI_ANIM_STEP_REVERSE 0x00010000L
|
---|
2291 | #define MCI_ANIM_STEP_FRAMES 0x00020000L
|
---|
2292 |
|
---|
2293 | #define MCI_ANIM_STATUS_SPEED 0x00004001L
|
---|
2294 | #define MCI_ANIM_STATUS_FORWARD 0x00004002L
|
---|
2295 | #define MCI_ANIM_STATUS_HWND 0x00004003L
|
---|
2296 | #define MCI_ANIM_STATUS_HPAL 0x00004004L
|
---|
2297 | #define MCI_ANIM_STATUS_STRETCH 0x00004005L
|
---|
2298 |
|
---|
2299 | #define MCI_ANIM_INFO_TEXT 0x00010000L
|
---|
2300 |
|
---|
2301 | #define MCI_ANIM_GETDEVCAPS_CAN_REVERSE 0x00004001L
|
---|
2302 | #define MCI_ANIM_GETDEVCAPS_FAST_RATE 0x00004002L
|
---|
2303 | #define MCI_ANIM_GETDEVCAPS_SLOW_RATE 0x00004003L
|
---|
2304 | #define MCI_ANIM_GETDEVCAPS_NORMAL_RATE 0x00004004L
|
---|
2305 | #define MCI_ANIM_GETDEVCAPS_PALETTES 0x00004006L
|
---|
2306 | #define MCI_ANIM_GETDEVCAPS_CAN_STRETCH 0x00004007L
|
---|
2307 | #define MCI_ANIM_GETDEVCAPS_MAX_WINDOWS 0x00004008L
|
---|
2308 |
|
---|
2309 | #define MCI_ANIM_REALIZE_NORM 0x00010000L
|
---|
2310 | #define MCI_ANIM_REALIZE_BKGD 0x00020000L
|
---|
2311 |
|
---|
2312 | #define MCI_ANIM_WINDOW_HWND 0x00010000L
|
---|
2313 | #define MCI_ANIM_WINDOW_STATE 0x00040000L
|
---|
2314 | #define MCI_ANIM_WINDOW_TEXT 0x00080000L
|
---|
2315 | #define MCI_ANIM_WINDOW_ENABLE_STRETCH 0x00100000L
|
---|
2316 | #define MCI_ANIM_WINDOW_DISABLE_STRETCH 0x00200000L
|
---|
2317 |
|
---|
2318 | #define MCI_ANIM_WINDOW_DEFAULT 0x00000000L
|
---|
2319 |
|
---|
2320 | #define MCI_ANIM_RECT 0x00010000L
|
---|
2321 | #define MCI_ANIM_PUT_SOURCE 0x00020000L
|
---|
2322 | #define MCI_ANIM_PUT_DESTINATION 0x00040000L
|
---|
2323 |
|
---|
2324 | #define MCI_ANIM_WHERE_SOURCE 0x00020000L
|
---|
2325 | #define MCI_ANIM_WHERE_DESTINATION 0x00040000L
|
---|
2326 |
|
---|
2327 | #define MCI_ANIM_UPDATE_HDC 0x00020000L
|
---|
2328 |
|
---|
2329 | typedef struct tagMCI_ANIM_OPEN_PARMSA {
|
---|
2330 | DWORD_PTR dwCallback;
|
---|
2331 | MCIDEVICEID wDeviceID;
|
---|
2332 | LPCSTR lpstrDeviceType;
|
---|
2333 | LPCSTR lpstrElementName;
|
---|
2334 | LPCSTR lpstrAlias;
|
---|
2335 | DWORD dwStyle;
|
---|
2336 | HWND hWndParent;
|
---|
2337 | } MCI_ANIM_OPEN_PARMSA, *LPMCI_ANIM_OPEN_PARMSA;
|
---|
2338 |
|
---|
2339 | typedef struct tagMCI_ANIM_OPEN_PARMSW {
|
---|
2340 | DWORD_PTR dwCallback;
|
---|
2341 | MCIDEVICEID wDeviceID;
|
---|
2342 | LPCWSTR lpstrDeviceType;
|
---|
2343 | LPCWSTR lpstrElementName;
|
---|
2344 | LPCWSTR lpstrAlias;
|
---|
2345 | DWORD dwStyle;
|
---|
2346 | HWND hWndParent;
|
---|
2347 | } MCI_ANIM_OPEN_PARMSW, *LPMCI_ANIM_OPEN_PARMSW;
|
---|
2348 |
|
---|
2349 | DECL_WINELIB_TYPE_AW(MCI_ANIM_OPEN_PARMS)
|
---|
2350 | DECL_WINELIB_TYPE_AW(LPMCI_ANIM_OPEN_PARMS)
|
---|
2351 |
|
---|
2352 | typedef struct tagMCI_ANIM_PLAY_PARMS {
|
---|
2353 | DWORD_PTR dwCallback;
|
---|
2354 | DWORD dwFrom;
|
---|
2355 | DWORD dwTo;
|
---|
2356 | DWORD dwSpeed;
|
---|
2357 | } MCI_ANIM_PLAY_PARMS, *LPMCI_ANIM_PLAY_PARMS;
|
---|
2358 |
|
---|
2359 | typedef struct tagMCI_ANIM_STEP_PARMS {
|
---|
2360 | DWORD_PTR dwCallback;
|
---|
2361 | DWORD dwFrames;
|
---|
2362 | } MCI_ANIM_STEP_PARMS, *LPMCI_ANIM_STEP_PARMS;
|
---|
2363 |
|
---|
2364 | typedef struct tagMCI_ANIM_WINDOW_PARMSA {
|
---|
2365 | DWORD_PTR dwCallback;
|
---|
2366 | HWND hWnd;
|
---|
2367 | UINT nCmdShow;
|
---|
2368 | LPCSTR lpstrText;
|
---|
2369 | } MCI_ANIM_WINDOW_PARMSA, *LPMCI_ANIM_WINDOW_PARMSA;
|
---|
2370 |
|
---|
2371 | typedef struct tagMCI_ANIM_WINDOW_PARMSW {
|
---|
2372 | DWORD_PTR dwCallback;
|
---|
2373 | HWND hWnd;
|
---|
2374 | UINT nCmdShow;
|
---|
2375 | LPCWSTR lpstrText;
|
---|
2376 | } MCI_ANIM_WINDOW_PARMSW, *LPMCI_ANIM_WINDOW_PARMSW;
|
---|
2377 |
|
---|
2378 | DECL_WINELIB_TYPE_AW(MCI_ANIM_WINDOW_PARMS)
|
---|
2379 | DECL_WINELIB_TYPE_AW(LPMCI_ANIM_WINDOW_PARMS)
|
---|
2380 |
|
---|
2381 | typedef struct tagMCI_ANIM_RECT_PARMS {
|
---|
2382 | DWORD_PTR dwCallback;
|
---|
2383 | #ifdef MCI_USE_OFFEXT
|
---|
2384 | POINT ptOffset;
|
---|
2385 | POINT ptExtent;
|
---|
2386 | #else /* ifdef MCI_USE_OFFEXT */
|
---|
2387 | RECT rc;
|
---|
2388 | #endif /* ifdef MCI_USE_OFFEXT */
|
---|
2389 | } MCI_ANIM_RECT_PARMS, *LPMCI_ANIM_RECT_PARMS;
|
---|
2390 |
|
---|
2391 |
|
---|
2392 | typedef struct tagMCI_ANIM_UPDATE_PARMS {
|
---|
2393 | DWORD_PTR dwCallback;
|
---|
2394 | RECT rc;
|
---|
2395 | HDC hDC;
|
---|
2396 | } MCI_ANIM_UPDATE_PARMS, *LPMCI_ANIM_UPDATE_PARMS;
|
---|
2397 |
|
---|
2398 |
|
---|
2399 | #define MCI_OVLY_OPEN_WS 0x00010000L
|
---|
2400 | #define MCI_OVLY_OPEN_PARENT 0x00020000L
|
---|
2401 |
|
---|
2402 | #define MCI_OVLY_STATUS_HWND 0x00004001L
|
---|
2403 | #define MCI_OVLY_STATUS_STRETCH 0x00004002L
|
---|
2404 |
|
---|
2405 | #define MCI_OVLY_INFO_TEXT 0x00010000L
|
---|
2406 |
|
---|
2407 | #define MCI_OVLY_GETDEVCAPS_CAN_STRETCH 0x00004001L
|
---|
2408 | #define MCI_OVLY_GETDEVCAPS_CAN_FREEZE 0x00004002L
|
---|
2409 | #define MCI_OVLY_GETDEVCAPS_MAX_WINDOWS 0x00004003L
|
---|
2410 |
|
---|
2411 | #define MCI_OVLY_WINDOW_HWND 0x00010000L
|
---|
2412 | #define MCI_OVLY_WINDOW_STATE 0x00040000L
|
---|
2413 | #define MCI_OVLY_WINDOW_TEXT 0x00080000L
|
---|
2414 | #define MCI_OVLY_WINDOW_ENABLE_STRETCH 0x00100000L
|
---|
2415 | #define MCI_OVLY_WINDOW_DISABLE_STRETCH 0x00200000L
|
---|
2416 |
|
---|
2417 | #define MCI_OVLY_WINDOW_DEFAULT 0x00000000L
|
---|
2418 |
|
---|
2419 | #define MCI_OVLY_RECT 0x00010000L
|
---|
2420 | #define MCI_OVLY_PUT_SOURCE 0x00020000L
|
---|
2421 | #define MCI_OVLY_PUT_DESTINATION 0x00040000L
|
---|
2422 | #define MCI_OVLY_PUT_FRAME 0x00080000L
|
---|
2423 | #define MCI_OVLY_PUT_VIDEO 0x00100000L
|
---|
2424 |
|
---|
2425 | #define MCI_OVLY_WHERE_SOURCE 0x00020000L
|
---|
2426 | #define MCI_OVLY_WHERE_DESTINATION 0x00040000L
|
---|
2427 | #define MCI_OVLY_WHERE_FRAME 0x00080000L
|
---|
2428 | #define MCI_OVLY_WHERE_VIDEO 0x00100000L
|
---|
2429 |
|
---|
2430 | typedef struct tagMCI_OVLY_OPEN_PARMSA {
|
---|
2431 | DWORD_PTR dwCallback;
|
---|
2432 | MCIDEVICEID wDeviceID;
|
---|
2433 | LPCSTR lpstrDeviceType;
|
---|
2434 | LPCSTR lpstrElementName;
|
---|
2435 | LPCSTR lpstrAlias;
|
---|
2436 | DWORD dwStyle;
|
---|
2437 | HWND hWndParent;
|
---|
2438 | } MCI_OVLY_OPEN_PARMSA, *LPMCI_OVLY_OPEN_PARMSA;
|
---|
2439 |
|
---|
2440 | typedef struct tagMCI_OVLY_OPEN_PARMSW {
|
---|
2441 | DWORD_PTR dwCallback;
|
---|
2442 | MCIDEVICEID wDeviceID;
|
---|
2443 | LPCWSTR lpstrDeviceType;
|
---|
2444 | LPCWSTR lpstrElementName;
|
---|
2445 | LPCWSTR lpstrAlias;
|
---|
2446 | DWORD dwStyle;
|
---|
2447 | HWND hWndParent;
|
---|
2448 | } MCI_OVLY_OPEN_PARMSW, *LPMCI_OVLY_OPEN_PARMSW;
|
---|
2449 |
|
---|
2450 | DECL_WINELIB_TYPE_AW(MCI_OVLY_OPEN_PARMS)
|
---|
2451 | DECL_WINELIB_TYPE_AW(LPMCI_OVLY_OPEN_PARMS)
|
---|
2452 |
|
---|
2453 | typedef struct tagMCI_OVLY_WINDOW_PARMSA {
|
---|
2454 | DWORD_PTR dwCallback;
|
---|
2455 | HWND hWnd;
|
---|
2456 | UINT nCmdShow;
|
---|
2457 | LPCSTR lpstrText;
|
---|
2458 | } MCI_OVLY_WINDOW_PARMSA, *LPMCI_OVLY_WINDOW_PARMSA;
|
---|
2459 |
|
---|
2460 | typedef struct tagMCI_OVLY_WINDOW_PARMSW {
|
---|
2461 | DWORD_PTR dwCallback;
|
---|
2462 | HWND hWnd;
|
---|
2463 | UINT nCmdShow;
|
---|
2464 | LPCWSTR lpstrText;
|
---|
2465 | } MCI_OVLY_WINDOW_PARMSW, *LPMCI_OVLY_WINDOW_PARMSW;
|
---|
2466 |
|
---|
2467 | DECL_WINELIB_TYPE_AW(MCI_OVLY_WINDOW_PARMS)
|
---|
2468 | DECL_WINELIB_TYPE_AW(LPMCI_OVLY_WINDOW_PARMS)
|
---|
2469 |
|
---|
2470 | typedef struct tagMCI_OVLY_RECT_PARMS {
|
---|
2471 | DWORD_PTR dwCallback;
|
---|
2472 | #ifdef MCI_USE_OFFEXT
|
---|
2473 | POINT ptOffset;
|
---|
2474 | POINT ptExtent;
|
---|
2475 | #else /* ifdef MCI_USE_OFFEXT */
|
---|
2476 | RECT rc;
|
---|
2477 | #endif /* ifdef MCI_USE_OFFEXT */
|
---|
2478 | } MCI_OVLY_RECT_PARMS, *LPMCI_OVLY_RECT_PARMS;
|
---|
2479 |
|
---|
2480 |
|
---|
2481 | typedef struct tagMCI_OVLY_SAVE_PARMSA {
|
---|
2482 | DWORD_PTR dwCallback;
|
---|
2483 | LPCSTR lpfilename;
|
---|
2484 | RECT rc;
|
---|
2485 | } MCI_OVLY_SAVE_PARMSA, *LPMCI_OVLY_SAVE_PARMSA;
|
---|
2486 |
|
---|
2487 | typedef struct tagMCI_OVLY_SAVE_PARMSW {
|
---|
2488 | DWORD_PTR dwCallback;
|
---|
2489 | LPCWSTR lpfilename;
|
---|
2490 | RECT rc;
|
---|
2491 | } MCI_OVLY_SAVE_PARMSW, *LPMCI_OVLY_SAVE_PARMSW;
|
---|
2492 |
|
---|
2493 | DECL_WINELIB_TYPE_AW(MCI_OVLY_SAVE_PARMS)
|
---|
2494 | DECL_WINELIB_TYPE_AW(LPMCI_OVLY_SAVE_PARMS)
|
---|
2495 |
|
---|
2496 | typedef struct tagMCI_OVLY_LOAD_PARMSA {
|
---|
2497 | DWORD_PTR dwCallback;
|
---|
2498 | LPCSTR lpfilename;
|
---|
2499 | RECT rc;
|
---|
2500 | } MCI_OVLY_LOAD_PARMSA, *LPMCI_OVLY_LOAD_PARMSA;
|
---|
2501 |
|
---|
2502 | typedef struct tagMCI_OVLY_LOAD_PARMSW {
|
---|
2503 | DWORD_PTR dwCallback;
|
---|
2504 | LPCWSTR lpfilename;
|
---|
2505 | RECT rc;
|
---|
2506 | } MCI_OVLY_LOAD_PARMSW, *LPMCI_OVLY_LOAD_PARMSW;
|
---|
2507 |
|
---|
2508 | DECL_WINELIB_TYPE_AW(MCI_OVLY_LOAD_PARMS)
|
---|
2509 | DECL_WINELIB_TYPE_AW(LPMCI_OVLY_LOAD_PARMS)
|
---|
2510 |
|
---|
2511 | #ifndef NEWTRANSPARENT
|
---|
2512 | #define NEWTRANSPARENT 3
|
---|
2513 | #define QUERYROPSUPPORT 40
|
---|
2514 | #endif
|
---|
2515 |
|
---|
2516 | #define SELECTDIB 41
|
---|
2517 | #define DIBINDEX(n) MAKELONG((n),0x10FF)
|
---|
2518 |
|
---|
2519 | #ifndef SC_SCREENSAVE
|
---|
2520 | #define SC_SCREENSAVE 0xf140
|
---|
2521 | #endif
|
---|
2522 |
|
---|
2523 | #include <poppack.h>
|
---|
2524 |
|
---|
2525 | #ifdef __cplusplus
|
---|
2526 | }
|
---|
2527 | #endif
|
---|
2528 |
|
---|
2529 | #endif /* __WINE_MMSYSTEM_H */
|
---|