mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
Removed the winelibs.
Original commit message from CVS: Removed the winelibs.
This commit is contained in:
parent
2745b823ab
commit
dcc6193959
30 changed files with 0 additions and 13154 deletions
|
@ -1,5 +1,3 @@
|
|||
SUBDIRS = wine
|
||||
|
||||
noinst_HEADERS = \
|
||||
mmx.h \
|
||||
sse.h \
|
||||
|
|
7
include/wine/.gitignore
vendored
7
include/wine/.gitignore
vendored
|
@ -1,7 +0,0 @@
|
|||
Makefile
|
||||
Makefile.in
|
||||
*.o
|
||||
*.lo
|
||||
*.la
|
||||
.deps
|
||||
.libs
|
|
@ -1,28 +0,0 @@
|
|||
noinst_HEADERS = \
|
||||
basetsd.h \
|
||||
config.h \
|
||||
debugtools.h \
|
||||
driver.h \
|
||||
elfdll.h \
|
||||
heap.h \
|
||||
ldt.h \
|
||||
mmreg.h \
|
||||
module.h \
|
||||
msacm.h \
|
||||
msacmdrv.h \
|
||||
ntdef.h \
|
||||
pe_image.h \
|
||||
poppack.h \
|
||||
pshpack1.h \
|
||||
pshpack2.h \
|
||||
pshpack4.h \
|
||||
pshpack8.h \
|
||||
vfw.h \
|
||||
winbase.h \
|
||||
windef.h \
|
||||
windows.h \
|
||||
winerror.h \
|
||||
winestring.h \
|
||||
winnt.h \
|
||||
winreg.h \
|
||||
winuser.h
|
|
@ -1,145 +0,0 @@
|
|||
/*
|
||||
* Compilers that uses ILP32, LP64 or P64 type models
|
||||
* for both Win32 and Win64 are supported by this file.
|
||||
*/
|
||||
|
||||
#ifndef __WINE_BASETSD_H
|
||||
#define __WINE_BASETSD_H
|
||||
|
||||
#ifdef __WINE__
|
||||
#include "config.h"
|
||||
#endif /* defined(__WINE__) */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
/*
|
||||
* Win32 was easy to implement under Unix since most (all?) 32-bit
|
||||
* Unices uses the same type model (ILP32) as Win32, where int, long
|
||||
* and pointer are 32-bit.
|
||||
*
|
||||
* Win64, however, will cause some problems when implemented under Unix.
|
||||
* Linux/{Alpha, Sparc64} and most (all?) other 64-bit Unices uses
|
||||
* the LP64 type model where int is 32-bit and long and pointer are
|
||||
* 64-bit. Win64 on the other hand uses the P64 (sometimes called LLP64)
|
||||
* type model where int and long are 32 bit and pointer is 64-bit.
|
||||
*/
|
||||
|
||||
/* Type model indepent typedefs */
|
||||
|
||||
typedef char __int8;
|
||||
typedef unsigned char __uint8;
|
||||
|
||||
typedef short __int16;
|
||||
typedef unsigned short __uint16;
|
||||
|
||||
typedef int __int32;
|
||||
typedef unsigned int __uint32;
|
||||
|
||||
typedef long long __int64;
|
||||
typedef unsigned long long __uint64;
|
||||
|
||||
#if defined(_WIN64)
|
||||
|
||||
typedef __uint32 __ptr32;
|
||||
typedef void *__ptr64;
|
||||
|
||||
#else /* FIXME: defined(_WIN32) */
|
||||
|
||||
typedef void *__ptr32;
|
||||
typedef __uint64 __ptr64;
|
||||
|
||||
#endif
|
||||
|
||||
/* Always signed and 32 bit wide */
|
||||
|
||||
typedef __int32 LONG32;
|
||||
typedef __int32 INT32;
|
||||
|
||||
typedef LONG32 *PLONG32;
|
||||
typedef INT32 *PINT32;
|
||||
|
||||
/* Always unsigned and 32 bit wide */
|
||||
|
||||
typedef __uint32 ULONG32;
|
||||
typedef __uint32 DWORD32;
|
||||
typedef __uint32 UINT32;
|
||||
|
||||
typedef ULONG32 *PULONG32;
|
||||
typedef DWORD32 *PDWORD32;
|
||||
typedef UINT32 *PUINT32;
|
||||
|
||||
/* Always signed and 64 bit wide */
|
||||
|
||||
typedef __int64 LONG64;
|
||||
typedef __int64 INT64;
|
||||
|
||||
typedef LONG64 *PLONG64;
|
||||
typedef INT64 *PINT64;
|
||||
|
||||
/* Always unsigned and 64 bit wide */
|
||||
|
||||
typedef __uint64 ULONG64;
|
||||
typedef __uint64 DWORD64;
|
||||
typedef __uint64 UINT64;
|
||||
|
||||
typedef ULONG64 *PULONG64;
|
||||
typedef DWORD64 *PDWORD64;
|
||||
typedef UINT64 *PUINT64;
|
||||
|
||||
/* Win32 or Win64 dependent typedef/defines. */
|
||||
|
||||
#ifdef _WIN64
|
||||
|
||||
typedef __int64 INT_PTR, *PINT_PTR;
|
||||
typedef __uint64 UINT_PTR, *PUINT_PTR;
|
||||
|
||||
#define MAXINT_PTR 0x7fffffffffffffff
|
||||
#define MININT_PTR 0x8000000000000000
|
||||
#define MAXUINT_PTR 0xffffffffffffffff
|
||||
|
||||
typedef __int32 HALF_PTR, *PHALF_PTR;
|
||||
typedef __int32 UHALF_PTR, *PUHALF_PTR;
|
||||
|
||||
#define MAXHALF_PTR 0x7fffffff
|
||||
#define MINHALF_PTR 0x80000000
|
||||
#define MAXUHALF_PTR 0xffffffff
|
||||
|
||||
typedef __int64 LONG_PTR, *PLONG_PTR;
|
||||
typedef __uint64 ULONG_PTR, *PULONG_PTR;
|
||||
typedef __uint64 DWORD_PTR, *PDWORD_PTR;
|
||||
|
||||
#else /* FIXME: defined(_WIN32) */
|
||||
|
||||
typedef __int32 INT_PTR, *PINT_PTR;
|
||||
typedef __uint32 UINT_PTR, *PUINT_PTR;
|
||||
|
||||
#define MAXINT_PTR 0x7fffffff
|
||||
#define MININT_PTR 0x80000000
|
||||
#define MAXUINT_PTR 0xffffffff
|
||||
|
||||
typedef __int16 HALF_PTR, *PHALF_PTR;
|
||||
typedef __uint16 UHALF_PTR, *PUHALF_PTR;
|
||||
|
||||
#define MAXUHALF_PTR 0xffff
|
||||
#define MAXHALF_PTR 0x7fff
|
||||
#define MINHALF_PTR 0x8000
|
||||
|
||||
typedef __int32 LONG_PTR, *PLONG_PTR;
|
||||
typedef __uint32 ULONG_PTR, *PULONG_PTR;
|
||||
typedef __uint32 DWORD_PTR, *PDWORD_PTR;
|
||||
|
||||
#endif /* defined(_WIN64) || defined(_WIN32) */
|
||||
|
||||
typedef INT_PTR SSIZE_T, *PSSIZE_T;
|
||||
typedef UINT_PTR SIZE_T, *PSIZE_T;
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
#endif /* !defined(__WINE_BASETSD_H) */
|
||||
|
||||
|
||||
|
|
@ -1,442 +0,0 @@
|
|||
/* include/config.h. Generated automatically by configure. */
|
||||
/* include/config.h.in. Generated automatically from configure.in by autoheader. */
|
||||
|
||||
/* Define if using alloca.c. */
|
||||
/* #undef C_ALLOCA */
|
||||
|
||||
/* Define to empty if the keyword does not work. */
|
||||
/* #undef const */
|
||||
|
||||
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
|
||||
This function is required for alloca.c support on those systems. */
|
||||
/* #undef CRAY_STACKSEG_END */
|
||||
|
||||
/* Define if you have alloca, as a function or macro. */
|
||||
#define HAVE_ALLOCA 1
|
||||
|
||||
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
|
||||
#define HAVE_ALLOCA_H 1
|
||||
|
||||
/* Define as __inline if that's what the C compiler calls it. */
|
||||
/* #undef inline */
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> doesn't define. */
|
||||
/* #undef size_t */
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at run-time.
|
||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||
STACK_DIRECTION = 0 => direction of growth unknown
|
||||
*/
|
||||
/* #undef STACK_DIRECTION */
|
||||
|
||||
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
|
||||
/* #undef STAT_MACROS_BROKEN */
|
||||
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define if your processor stores words with the most significant
|
||||
byte first (like Motorola and SPARC, unlike Intel and VAX). */
|
||||
/* #undef WORDS_BIGENDIAN */
|
||||
|
||||
/* Define if the X Window System is missing or not being used. */
|
||||
/* #undef X_DISPLAY_MISSING */
|
||||
|
||||
/* Define if symbols declared in assembly code need an underscore prefix */
|
||||
/* #undef NEED_UNDERSCORE_PREFIX */
|
||||
|
||||
/* Define to use .string instead of .ascii */
|
||||
#define HAVE_ASM_STRING 1
|
||||
|
||||
/* Define if struct msghdr contains msg_accrights */
|
||||
/* #undef HAVE_MSGHDR_ACCRIGHTS */
|
||||
|
||||
/* Define if struct sockaddr_un contains sun_len */
|
||||
/* #undef HAVE_SOCKADDR_SUN_LEN */
|
||||
|
||||
/* Define if you have the Xxf86dga library (-lXxf86dga). */
|
||||
#define HAVE_LIBXXF86DGA 1
|
||||
|
||||
/* Define if you have the Xxf86dga library version 2.0 (-lXxf86dga). */
|
||||
/* #undef HAVE_LIBXXF86DGA2 */
|
||||
|
||||
/* Define if you have the X Shm extension */
|
||||
#define HAVE_LIBXXSHM 1
|
||||
|
||||
/* Define if you have the Xxf86vm library */
|
||||
#define HAVE_LIBXXF86VM 1
|
||||
|
||||
/* Define if you have the Xpm library */
|
||||
#define HAVE_LIBXXPM 1
|
||||
|
||||
/* Define if you have the Open Sound system. */
|
||||
#define HAVE_OSS 1
|
||||
|
||||
/* Define if you have the Open Sound system (MIDI interface). */
|
||||
#define HAVE_OSS_MIDI 1
|
||||
|
||||
/* Define if X libraries are not reentrant (compiled without -D_REENTRANT). */
|
||||
/* #undef NO_REENTRANT_X11 */
|
||||
|
||||
/* Define if libc is not reentrant */
|
||||
/* #undef NO_REENTRANT_LIBC */
|
||||
|
||||
/* Define if libc uses __errno_location for reentrant errno */
|
||||
#define HAVE__ERRNO_LOCATION 1
|
||||
|
||||
/* Define if libc uses __error for reentrant errno */
|
||||
/* #undef HAVE__ERROR */
|
||||
|
||||
/* Define if libc uses ___errno for reentrant errno */
|
||||
/* #undef HAVE___ERRNO */
|
||||
|
||||
/* Define if libc uses __thr_errno for reentrant errno */
|
||||
/* #undef HAVE__THR_ERRNO */
|
||||
|
||||
/* Define if all debug messages are to be compiled out */
|
||||
/* #undef NO_DEBUG_MSGS */
|
||||
|
||||
/* Define if TRACE messages are to be compiled out */
|
||||
/* #undef NO_TRACE_MSGS */
|
||||
|
||||
/* Define if the struct statfs has the member bavail */
|
||||
#define STATFS_HAS_BAVAIL 1
|
||||
|
||||
/* Define if the struct statfs has the member bfree */
|
||||
#define STATFS_HAS_BFREE 1
|
||||
|
||||
/* Define if the struct statfs is defined by <sys/vfs.h> */
|
||||
#define STATFS_DEFINED_BY_SYS_VFS 1
|
||||
|
||||
/* Define if the struct statfs is defined by <sys/statfs.h> */
|
||||
#define STATFS_DEFINED_BY_SYS_STATFS 1
|
||||
|
||||
/* Define if the struct statfs is defined by <sys/mount.h> */
|
||||
/* #undef STATFS_DEFINED_BY_SYS_MOUNT */
|
||||
|
||||
/* Define if ncurses have the new resizeterm function */
|
||||
#define HAVE_RESIZETERM 1
|
||||
|
||||
/* Define if ncurses have the new getbkgd function */
|
||||
#define HAVE_GETBKGD 1
|
||||
|
||||
/* Define if IPX should use netipx/ipx.h from libc */
|
||||
#define HAVE_IPX_GNU 1
|
||||
|
||||
/* Define if IPX includes are taken from Linux kernel */
|
||||
/* #undef HAVE_IPX_LINUX */
|
||||
|
||||
/* Define if Mesa is present on the system or not */
|
||||
/* #undef HAVE_LIBMESAGL */
|
||||
|
||||
/* Define if the system has dynamic link library support with the dl* API */
|
||||
#define HAVE_DL_API 1
|
||||
|
||||
/* Define if <linux/joystick.h> defines the Linux 2.2 joystick API */
|
||||
#define HAVE_LINUX_22_JOYSTICK_API 1
|
||||
|
||||
/* Define if the OpenGL implementation supports the GL_EXT_color_table extension */
|
||||
/* #undef HAVE_GL_COLOR_TABLE */
|
||||
|
||||
/* Define if the OpenGL implementation supports the GL_EXT_paletted_texture extension */
|
||||
/* #undef HAVE_GL_PALETTED_TEXTURE */
|
||||
|
||||
/* The number of bytes in a long long. */
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
|
||||
/* Define if you have the __libc_fork function. */
|
||||
/* #undef HAVE___LIBC_FORK */
|
||||
|
||||
/* Define if you have the _lwp_create function. */
|
||||
/* #undef HAVE__LWP_CREATE */
|
||||
|
||||
/* Define if you have the clone function. */
|
||||
#define HAVE_CLONE 1
|
||||
|
||||
/* Define if you have the connect function. */
|
||||
#define HAVE_CONNECT 1
|
||||
|
||||
/* Define if you have the dlopen function. */
|
||||
/* #undef HAVE_DLOPEN */
|
||||
|
||||
/* Define if you have the gethostbyname function. */
|
||||
#define HAVE_GETHOSTBYNAME 1
|
||||
|
||||
/* Define if you have the getnetbyaddr function. */
|
||||
#define HAVE_GETNETBYADDR 1
|
||||
|
||||
/* Define if you have the getnetbyname function. */
|
||||
#define HAVE_GETNETBYNAME 1
|
||||
|
||||
/* Define if you have the getpagesize function. */
|
||||
#define HAVE_GETPAGESIZE 1
|
||||
|
||||
/* Define if you have the getprotobyname function. */
|
||||
#define HAVE_GETPROTOBYNAME 1
|
||||
|
||||
/* Define if you have the getprotobynumber function. */
|
||||
#define HAVE_GETPROTOBYNUMBER 1
|
||||
|
||||
/* Define if you have the getservbyport function. */
|
||||
#define HAVE_GETSERVBYPORT 1
|
||||
|
||||
/* Define if you have the getsockopt function. */
|
||||
#define HAVE_GETSOCKOPT 1
|
||||
|
||||
/* Define if you have the inet_network function. */
|
||||
#define HAVE_INET_NETWORK 1
|
||||
|
||||
/* Define if you have the memmove function. */
|
||||
#define HAVE_MEMMOVE 1
|
||||
|
||||
/* Define if you have the openpty function. */
|
||||
#define HAVE_OPENPTY 1
|
||||
|
||||
/* Define if you have the rfork function. */
|
||||
/* #undef HAVE_RFORK */
|
||||
|
||||
/* Define if you have the select function. */
|
||||
#define HAVE_SELECT 1
|
||||
|
||||
/* Define if you have the sendmsg function. */
|
||||
#define HAVE_SENDMSG 1
|
||||
|
||||
/* Define if you have the settimeofday function. */
|
||||
#define HAVE_SETTIMEOFDAY 1
|
||||
|
||||
/* Define if you have the sigaltstack function. */
|
||||
#define HAVE_SIGALTSTACK 1
|
||||
|
||||
/* Define if you have the statfs function. */
|
||||
#define HAVE_STATFS 1
|
||||
|
||||
/* Define if you have the strcasecmp function. */
|
||||
#define HAVE_STRCASECMP 1
|
||||
|
||||
/* Define if you have the strerror function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define if you have the strncasecmp function. */
|
||||
#define HAVE_STRNCASECMP 1
|
||||
|
||||
/* Define if you have the tcgetattr function. */
|
||||
#define HAVE_TCGETATTR 1
|
||||
|
||||
/* Define if you have the timegm function. */
|
||||
#define HAVE_TIMEGM 1
|
||||
|
||||
/* Define if you have the usleep function. */
|
||||
#define HAVE_USLEEP 1
|
||||
|
||||
/* Define if you have the vfscanf function. */
|
||||
#define HAVE_VFSCANF 1
|
||||
|
||||
/* Define if you have the wait4 function. */
|
||||
#define HAVE_WAIT4 1
|
||||
|
||||
/* Define if you have the waitpid function. */
|
||||
#define HAVE_WAITPID 1
|
||||
|
||||
/* Define if you have the <GL/gl.h> header file. */
|
||||
/* #undef HAVE_GL_GL_H */
|
||||
|
||||
/* Define if you have the <GL/glx.h> header file. */
|
||||
/* #undef HAVE_GL_GLX_H */
|
||||
|
||||
/* Define if you have the <X11/Xlib.h> header file. */
|
||||
#define HAVE_X11_XLIB_H 1
|
||||
|
||||
/* Define if you have the <X11/extensions/XShm.h> header file. */
|
||||
#define HAVE_X11_EXTENSIONS_XSHM_H 1
|
||||
|
||||
/* Define if you have the <X11/extensions/xf86dga.h> header file. */
|
||||
#define HAVE_X11_EXTENSIONS_XF86DGA_H 1
|
||||
|
||||
/* Define if you have the <X11/extensions/xf86vmode.h> header file. */
|
||||
#define HAVE_X11_EXTENSIONS_XF86VMODE_H 1
|
||||
|
||||
/* Define if you have the <X11/xpm.h> header file. */
|
||||
#define HAVE_X11_XPM_H 1
|
||||
|
||||
/* Define if you have the <a.out.h> header file. */
|
||||
#define HAVE_A_OUT_H 1
|
||||
|
||||
/* Define if you have the <a_out.h> header file. */
|
||||
#define HAVE_A_OUT_H 1
|
||||
|
||||
/* Define if you have the <arpa/inet.h> header file. */
|
||||
#define HAVE_ARPA_INET_H 1
|
||||
|
||||
/* Define if you have the <arpa/nameser.h> header file. */
|
||||
#define HAVE_ARPA_NAMESER_H 1
|
||||
|
||||
/* Define if you have the <curses.h> header file. */
|
||||
/* #undef HAVE_CURSES_H */
|
||||
|
||||
/* Define if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define if you have the <elf.h> header file. */
|
||||
#define HAVE_ELF_H 1
|
||||
|
||||
/* Define if you have the <float.h> header file. */
|
||||
#define HAVE_FLOAT_H 1
|
||||
|
||||
/* Define if you have the <libio.h> header file. */
|
||||
#define HAVE_LIBIO_H 1
|
||||
|
||||
/* Define if you have the <link.h> header file. */
|
||||
#define HAVE_LINK_H 1
|
||||
|
||||
/* Define if you have the <linux/cdrom.h> header file. */
|
||||
#define HAVE_LINUX_CDROM_H 1
|
||||
|
||||
/* Define if you have the <linux/joystick.h> header file. */
|
||||
#define HAVE_LINUX_JOYSTICK_H 1
|
||||
|
||||
/* Define if you have the <linux/ucdrom.h> header file. */
|
||||
/* #undef HAVE_LINUX_UCDROM_H */
|
||||
|
||||
/* Define if you have the <machine/soundcard.h> header file. */
|
||||
/* #undef HAVE_MACHINE_SOUNDCARD_H */
|
||||
|
||||
/* Define if you have the <ncurses.h> header file. */
|
||||
#define HAVE_NCURSES_H 1
|
||||
|
||||
/* Define if you have the <net/if.h> header file. */
|
||||
#define HAVE_NET_IF_H 1
|
||||
|
||||
/* Define if you have the <netinet/in.h> header file. */
|
||||
#define HAVE_NETINET_IN_H 1
|
||||
|
||||
/* Define if you have the <netinet/tcp.h> header file. */
|
||||
#define HAVE_NETINET_TCP_H 1
|
||||
|
||||
/* Define if you have the <pty.h> header file. */
|
||||
#define HAVE_PTY_H 1
|
||||
|
||||
/* Define if you have the <resolv.h> header file. */
|
||||
#define HAVE_RESOLV_H 1
|
||||
|
||||
/* Define if you have the <sched.h> header file. */
|
||||
#define HAVE_SCHED_H 1
|
||||
|
||||
/* Define if you have the <socket.h> header file. */
|
||||
/* #undef HAVE_SOCKET_H */
|
||||
|
||||
/* Define if you have the <soundcard.h> header file. */
|
||||
/* #undef HAVE_SOUNDCARD_H */
|
||||
|
||||
/* Define if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define if you have the <sys/cdio.h> header file. */
|
||||
/* #undef HAVE_SYS_CDIO_H */
|
||||
|
||||
/* Define if you have the <sys/errno.h> header file. */
|
||||
#define HAVE_SYS_ERRNO_H 1
|
||||
|
||||
/* Define if you have the <sys/file.h> header file. */
|
||||
#define HAVE_SYS_FILE_H 1
|
||||
|
||||
/* Define if you have the <sys/filio.h> header file. */
|
||||
/* #undef HAVE_SYS_FILIO_H */
|
||||
|
||||
/* Define if you have the <sys/ipc.h> header file. */
|
||||
#define HAVE_SYS_IPC_H 1
|
||||
|
||||
/* Define if you have the <sys/lwp.h> header file. */
|
||||
/* #undef HAVE_SYS_LWP_H */
|
||||
|
||||
/* Define if you have the <sys/mman.h> header file. */
|
||||
#define HAVE_SYS_MMAN_H 1
|
||||
|
||||
/* Define if you have the <sys/modem.h> header file. */
|
||||
/* #undef HAVE_SYS_MODEM_H */
|
||||
|
||||
/* Define if you have the <sys/mount.h> header file. */
|
||||
#define HAVE_SYS_MOUNT_H 1
|
||||
|
||||
/* Define if you have the <sys/msg.h> header file. */
|
||||
#define HAVE_SYS_MSG_H 1
|
||||
|
||||
/* Define if you have the <sys/param.h> header file. */
|
||||
#define HAVE_SYS_PARAM_H 1
|
||||
|
||||
/* Define if you have the <sys/reg.h> header file. */
|
||||
#define HAVE_SYS_REG_H 1
|
||||
|
||||
/* Define if you have the <sys/shm.h> header file. */
|
||||
#define HAVE_SYS_SHM_H 1
|
||||
|
||||
/* Define if you have the <sys/signal.h> header file. */
|
||||
#define HAVE_SYS_SIGNAL_H 1
|
||||
|
||||
/* Define if you have the <sys/socket.h> header file. */
|
||||
#define HAVE_SYS_SOCKET_H 1
|
||||
|
||||
/* Define if you have the <sys/sockio.h> header file. */
|
||||
/* #undef HAVE_SYS_SOCKIO_H */
|
||||
|
||||
/* Define if you have the <sys/soundcard.h> header file. */
|
||||
#define HAVE_SYS_SOUNDCARD_H 1
|
||||
|
||||
/* Define if you have the <sys/statfs.h> header file. */
|
||||
#define HAVE_SYS_STATFS_H 1
|
||||
|
||||
/* Define if you have the <sys/strtio.h> header file. */
|
||||
/* #undef HAVE_SYS_STRTIO_H */
|
||||
|
||||
/* Define if you have the <sys/syscall.h> header file. */
|
||||
#define HAVE_SYS_SYSCALL_H 1
|
||||
|
||||
/* Define if you have the <sys/v86.h> header file. */
|
||||
/* #undef HAVE_SYS_V86_H */
|
||||
|
||||
/* Define if you have the <sys/v86intr.h> header file. */
|
||||
/* #undef HAVE_SYS_V86INTR_H */
|
||||
|
||||
/* Define if you have the <sys/vfs.h> header file. */
|
||||
#define HAVE_SYS_VFS_H 1
|
||||
|
||||
/* Define if you have the <sys/vm86.h> header file. */
|
||||
#define HAVE_SYS_VM86_H 1
|
||||
|
||||
/* Define if you have the <sys/wait.h> header file. */
|
||||
#define HAVE_SYS_WAIT_H 1
|
||||
|
||||
/* Define if you have the <syscall.h> header file. */
|
||||
#define HAVE_SYSCALL_H 1
|
||||
|
||||
/* Define if you have the <ucontext.h> header file. */
|
||||
#define HAVE_UCONTEXT_H 1
|
||||
|
||||
/* Define if you have the <wctype.h> header file. */
|
||||
#define HAVE_WCTYPE_H 1
|
||||
|
||||
/* Define if you have the curses library (-lcurses). */
|
||||
/* #undef HAVE_LIBCURSES */
|
||||
|
||||
/* Define if you have the i386 library (-li386). */
|
||||
/* #undef HAVE_LIBI386 */
|
||||
|
||||
/* Define if you have the m library (-lm). */
|
||||
#define HAVE_LIBM 1
|
||||
|
||||
/* Define if you have the mmap library (-lmmap). */
|
||||
/* #undef HAVE_LIBMMAP */
|
||||
|
||||
/* Define if you have the ncurses library (-lncurses). */
|
||||
#define HAVE_LIBNCURSES 1
|
||||
|
||||
/* Define if you have the ossaudio library (-lossaudio). */
|
||||
/* #undef HAVE_LIBOSSAUDIO */
|
||||
|
||||
/* Define if you have the w library (-lw). */
|
||||
/* #undef HAVE_LIBW */
|
||||
|
||||
/* Define if you have the xpg4 library (-lxpg4). */
|
||||
/* #undef HAVE_LIBXPG4 */
|
|
@ -1,93 +0,0 @@
|
|||
|
||||
#ifndef __WINE_DEBUGTOOLS_H
|
||||
#define __WINE_DEBUGTOOLS_H
|
||||
|
||||
#ifdef __WINE__ /* Debugging interface is internal to Wine */
|
||||
|
||||
#include <stdarg.h>
|
||||
#include "config.h"
|
||||
#include "windef.h"
|
||||
|
||||
struct _GUID;
|
||||
|
||||
/* Internal definitions (do not use these directly) */
|
||||
|
||||
enum __DEBUG_CLASS { __DBCL_FIXME, __DBCL_ERR, __DBCL_WARN, __DBCL_TRACE, __DBCL_COUNT };
|
||||
|
||||
#ifndef NO_TRACE_MSGS
|
||||
# define __GET_DEBUGGING_trace(dbch) ((dbch)[0] & (1 << __DBCL_TRACE))
|
||||
#else
|
||||
# define __GET_DEBUGGING_trace(dbch) 0
|
||||
#endif
|
||||
|
||||
#ifndef NO_DEBUG_MSGS
|
||||
# define __GET_DEBUGGING_warn(dbch) ((dbch)[0] & (1 << __DBCL_WARN))
|
||||
# define __GET_DEBUGGING_fixme(dbch) ((dbch)[0] & (1 << __DBCL_FIXME))
|
||||
#else
|
||||
# define __GET_DEBUGGING_warn(dbch) 0
|
||||
# define __GET_DEBUGGING_fixme(dbch) 0
|
||||
#endif
|
||||
|
||||
/* define error macro regardless of what is configured */
|
||||
#define __GET_DEBUGGING_err(dbch) ((dbch)[0] & (1 << __DBCL_ERR))
|
||||
|
||||
#define __GET_DEBUGGING(dbcl,dbch) __GET_DEBUGGING_##dbcl(dbch)
|
||||
#define __SET_DEBUGGING(dbcl,dbch,on) \
|
||||
((on) ? ((dbch)[0] |= 1 << (dbcl)) : ((dbch)[0] &= ~(1 << (dbcl))))
|
||||
|
||||
#ifndef __GNUC__
|
||||
#define __FUNCTION__ ""
|
||||
#endif
|
||||
|
||||
#define __DPRINTF(dbcl,dbch) \
|
||||
(!__GET_DEBUGGING(dbcl,(dbch)) || (dbg_header_##dbcl((dbch),__FUNCTION__),0)) ? \
|
||||
(void)0 : (void)dbg_printf
|
||||
|
||||
/* Exported definitions and macros */
|
||||
|
||||
/* These function return a printable version of a string, including
|
||||
quotes. The string will be valid for some time, but not indefinitely
|
||||
as strings are re-used. */
|
||||
extern LPCSTR debugstr_an (LPCSTR s, int n);
|
||||
extern LPCSTR debugstr_wn (LPCWSTR s, int n);
|
||||
extern LPCSTR debugres_a (LPCSTR res);
|
||||
extern LPCSTR debugres_w (LPCWSTR res);
|
||||
extern LPCSTR debugstr_guid( const struct _GUID *id );
|
||||
extern LPCSTR debugstr_hex_dump (const void *ptr, int len);
|
||||
extern int dbg_header_err( const char *dbg_channel, const char *func );
|
||||
extern int dbg_header_warn( const char *dbg_channel, const char *func );
|
||||
extern int dbg_header_fixme( const char *dbg_channel, const char *func );
|
||||
extern int dbg_header_trace( const char *dbg_channel, const char *func );
|
||||
extern int dbg_vprintf( const char *format, va_list args );
|
||||
|
||||
static inline LPCSTR debugstr_a( LPCSTR s ) { return debugstr_an( s, 80 ); }
|
||||
static inline LPCSTR debugstr_w( LPCWSTR s ) { return debugstr_wn( s, 80 ); }
|
||||
|
||||
#ifdef __GNUC__
|
||||
extern int dbg_printf(const char *format, ...) __attribute__((format (printf,1,2)));
|
||||
#else
|
||||
extern int dbg_printf(const char *format, ...);
|
||||
#endif
|
||||
|
||||
#define TRACE_(X) TRACE
|
||||
#define WARN_(X) TRACE
|
||||
#define WARN TRACE
|
||||
#define ERR_(X) printf
|
||||
#define ERR printf
|
||||
#define FIXME_(X) TRACE
|
||||
#define FIXME TRACE
|
||||
|
||||
#define TRACE_ON(X) 1
|
||||
#define ERR_ON(X) 1
|
||||
|
||||
#define DECLARE_DEBUG_CHANNEL(ch) \
|
||||
extern char dbch_##ch[];
|
||||
#define DEFAULT_DEBUG_CHANNEL(ch) \
|
||||
extern char dbch_##ch[]; static char * const __dbch_default = dbch_##ch;
|
||||
|
||||
#define DPRINTF dbg_printf
|
||||
#define MESSAGE dbg_printf
|
||||
|
||||
#endif /* __WINE__ */
|
||||
|
||||
#endif /* __WINE_DEBUGTOOLS_H */
|
|
@ -1,112 +0,0 @@
|
|||
/*
|
||||
* Drivers definitions
|
||||
*/
|
||||
|
||||
#ifndef __WINE_DRIVER_H
|
||||
#define __WINE_DRIVER_H
|
||||
|
||||
#include "windef.h"
|
||||
|
||||
#define MMSYSERR_BASE 0
|
||||
|
||||
#define MMSYSERR_NOERROR 0 /* no error */
|
||||
#define MMSYSERR_ERROR (MMSYSERR_BASE + 1) /* unspecified error */
|
||||
#define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2) /* device ID out of range */
|
||||
#define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3) /* driver failed enable */
|
||||
#define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4) /* device already allocated */
|
||||
#define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5) /* device handle is invalid */
|
||||
#define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6) /* no device driver present */
|
||||
#define MMSYSERR_NOMEM (MMSYSERR_BASE + 7) /* memory allocation error */
|
||||
#define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8) /* function isn't supported */
|
||||
#define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9) /* error value out of range */
|
||||
#define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10) /* invalid flag passed */
|
||||
#define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11) /* invalid parameter passed */
|
||||
#define MMSYSERR_LASTERROR (MMSYSERR_BASE + 11) /* last error in range */
|
||||
|
||||
#define DRV_LOAD 0x0001
|
||||
#define DRV_ENABLE 0x0002
|
||||
#define DRV_OPEN 0x0003
|
||||
#define DRV_CLOSE 0x0004
|
||||
#define DRV_DISABLE 0x0005
|
||||
#define DRV_FREE 0x0006
|
||||
#define DRV_CONFIGURE 0x0007
|
||||
#define DRV_QUERYCONFIGURE 0x0008
|
||||
#define DRV_INSTALL 0x0009
|
||||
#define DRV_REMOVE 0x000A
|
||||
#define DRV_EXITSESSION 0x000B
|
||||
#define DRV_EXITAPPLICATION 0x000C
|
||||
#define DRV_POWER 0x000F
|
||||
|
||||
#define DRV_RESERVED 0x0800
|
||||
#define DRV_USER 0x4000
|
||||
|
||||
#define DRVCNF_CANCEL 0x0000
|
||||
#define DRVCNF_OK 0x0001
|
||||
#define DRVCNF_RESTART 0x0002
|
||||
|
||||
#define DRVEA_NORMALEXIT 0x0001
|
||||
#define DRVEA_ABNORMALEXIT 0x0002
|
||||
|
||||
#define DRV_SUCCESS 0x0001
|
||||
#define DRV_FAILURE 0x0000
|
||||
|
||||
#define GND_FIRSTINSTANCEONLY 0x00000001
|
||||
|
||||
#define GND_FORWARD 0x00000000
|
||||
#define GND_REVERSE 0x00000002
|
||||
|
||||
typedef struct {
|
||||
DWORD dwDCISize;
|
||||
LPCSTR lpszDCISectionName;
|
||||
LPCSTR lpszDCIAliasName;
|
||||
} DRVCONFIGINFO16, *LPDRVCONFIGINFO16;
|
||||
|
||||
typedef struct {
|
||||
DWORD dwDCISize;
|
||||
LPCWSTR lpszDCISectionName;
|
||||
LPCWSTR lpszDCIAliasName;
|
||||
} DRVCONFIGINFO, *LPDRVCONFIGINFO;
|
||||
|
||||
|
||||
/* GetDriverInfo16 references this structure, so this a struct defined
|
||||
* in the Win16 API.
|
||||
* GetDriverInfo has been deprecated in Win32.
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
UINT16 length;
|
||||
HDRVR16 hDriver;
|
||||
HINSTANCE16 hModule;
|
||||
CHAR szAliasName[128];
|
||||
} DRIVERINFOSTRUCT16, *LPDRIVERINFOSTRUCT16;
|
||||
|
||||
LRESULT WINAPI DefDriverProc16(DWORD dwDevID, HDRVR16 hDriv, UINT16 wMsg,
|
||||
LPARAM dwParam1, LPARAM dwParam2);
|
||||
LRESULT WINAPI DefDriverProc(DWORD dwDriverIdentifier, HDRVR hdrvr,
|
||||
UINT Msg, LPARAM lParam1, LPARAM lParam2);
|
||||
HDRVR16 WINAPI OpenDriver16(LPCSTR szDriverName, LPCSTR szSectionName,
|
||||
LPARAM lParam2);
|
||||
HDRVR WINAPI OpenDriverA(LPCSTR szDriverName, LPCSTR szSectionName,
|
||||
LPARAM lParam2);
|
||||
HDRVR WINAPI OpenDriverW(LPCWSTR szDriverName, LPCWSTR szSectionName,
|
||||
LPARAM lParam2);
|
||||
#define OpenDriver WINELIB_NAME_AW(OpenDriver)
|
||||
LRESULT WINAPI CloseDriver16(HDRVR16 hDriver, LPARAM lParam1, LPARAM lParam2);
|
||||
LRESULT WINAPI CloseDriver(HDRVR hDriver, LPARAM lParam1, LPARAM lParam2);
|
||||
LRESULT WINAPI SendDriverMessage16( HDRVR16 hDriver, UINT16 message,
|
||||
LPARAM lParam1, LPARAM lParam2 );
|
||||
LRESULT WINAPI SendDriverMessage( HDRVR hDriver, UINT message,
|
||||
LPARAM lParam1, LPARAM lParam2 );
|
||||
HMODULE16 WINAPI GetDriverModuleHandle16(HDRVR16 hDriver);
|
||||
HMODULE WINAPI GetDriverModuleHandle(HDRVR hDriver);
|
||||
|
||||
DWORD WINAPI GetDriverFlags( HDRVR hDriver );
|
||||
#ifdef __WINE__
|
||||
/* this call (GetDriverFlags) is not documented, nor the flags returned.
|
||||
* here are Wine only definitions
|
||||
*/
|
||||
#define WINE_GDF_EXIST 0x80000000
|
||||
#define WINE_GDF_16BIT 0x10000000
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_DRIVER_H */
|
|
@ -1,14 +0,0 @@
|
|||
#ifndef __WINE_ELFDLL_H
|
||||
#define __WINE_ELFDLL_H
|
||||
|
||||
#include "module.h"
|
||||
#include "windef.h"
|
||||
|
||||
WINE_MODREF *ELFDLL_LoadLibraryExA(LPCSTR libname, DWORD flags);
|
||||
HINSTANCE16 ELFDLL_LoadModule16(LPCSTR libname);
|
||||
void ELFDLL_UnloadLibrary(WINE_MODREF *wm);
|
||||
|
||||
void *ELFDLL_dlopen(const char *libname, int flags);
|
||||
extern char *extra_ld_library_path;
|
||||
|
||||
#endif
|
|
@ -1,56 +0,0 @@
|
|||
/*
|
||||
* Win32 heap definitions
|
||||
*
|
||||
* Copyright 1996 Alexandre Julliard
|
||||
*/
|
||||
|
||||
#ifndef __WINE_HEAP_H
|
||||
#define __WINE_HEAP_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "winbase.h"
|
||||
|
||||
extern HANDLE SystemHeap;
|
||||
extern HANDLE SegptrHeap;
|
||||
|
||||
extern int HEAP_IsInsideHeap( HANDLE heap, DWORD flags, LPCVOID ptr );
|
||||
extern SEGPTR HEAP_GetSegptr( HANDLE heap, DWORD flags, LPCVOID ptr );
|
||||
extern LPSTR HEAP_strdupA( HANDLE heap, DWORD flags, LPCSTR str );
|
||||
extern LPWSTR HEAP_strdupW( HANDLE heap, DWORD flags, LPCWSTR str );
|
||||
extern LPWSTR HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str );
|
||||
extern LPSTR HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str );
|
||||
|
||||
/* SEGPTR helper macros */
|
||||
|
||||
#define SEGPTR_ALLOC(size) \
|
||||
(HeapAlloc( SegptrHeap, 0, (size) ))
|
||||
#define SEGPTR_NEW(type) \
|
||||
((type *)HeapAlloc( SegptrHeap, 0, sizeof(type) ))
|
||||
#define SEGPTR_STRDUP(str) \
|
||||
(HIWORD(str) ? HEAP_strdupA( SegptrHeap, 0, (str) ) : (LPSTR)(str))
|
||||
#define SEGPTR_STRDUP_WtoA(str) \
|
||||
(HIWORD(str) ? HEAP_strdupWtoA( SegptrHeap, 0, (str) ) : (LPSTR)(str))
|
||||
/* define an inline function, a macro won't do */
|
||||
static inline SEGPTR WINE_UNUSED SEGPTR_Get(LPCVOID ptr) {
|
||||
return (HIWORD(ptr) ? HEAP_GetSegptr( SegptrHeap, 0, ptr ) : (SEGPTR)ptr);
|
||||
}
|
||||
#define SEGPTR_GET(ptr) SEGPTR_Get(ptr)
|
||||
#define SEGPTR_FREE(ptr) \
|
||||
(HIWORD(ptr) ? HeapFree( SegptrHeap, 0, (ptr) ) : 0)
|
||||
|
||||
/* system heap private data */
|
||||
/* you must lock the system heap before using this structure */
|
||||
typedef struct
|
||||
{
|
||||
void *gdi; /* GDI heap */
|
||||
void *user; /* USER handle table */
|
||||
void *cursor; /* cursor information */
|
||||
void *queue; /* message queues descriptor */
|
||||
void *win; /* windows descriptor */
|
||||
void *root; /* X11 root window */
|
||||
} SYSTEM_HEAP_DESCR;
|
||||
|
||||
extern SYSTEM_HEAP_DESCR *SystemHeapDescr;
|
||||
|
||||
#endif /* __WINE_HEAP_H */
|
|
@ -1,98 +0,0 @@
|
|||
/*
|
||||
* LDT copy
|
||||
*
|
||||
* Copyright 1995 Alexandre Julliard
|
||||
*/
|
||||
|
||||
#ifndef __WINE_LDT_H
|
||||
#define __WINE_LDT_H
|
||||
|
||||
#include "windef.h"
|
||||
enum seg_type
|
||||
{
|
||||
SEGMENT_DATA = 0,
|
||||
SEGMENT_STACK = 1,
|
||||
SEGMENT_CODE = 2
|
||||
};
|
||||
|
||||
/* This structure represents a real LDT entry. */
|
||||
/* It is used by get_ldt_entry() and set_ldt_entry(). */
|
||||
typedef struct
|
||||
{
|
||||
unsigned long base; /* base address */
|
||||
unsigned long limit; /* segment limit (in pages or bytes) */
|
||||
int seg_32bit; /* is segment 32-bit? */
|
||||
int read_only; /* is segment read-only? */
|
||||
int limit_in_pages; /* is the limit in pages or bytes? */
|
||||
enum seg_type type; /* segment type */
|
||||
} ldt_entry;
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
extern void LDT_BytesToEntry( const unsigned long *buffer, ldt_entry *content);
|
||||
extern void LDT_EntryToBytes( unsigned long *buffer, const ldt_entry *content);
|
||||
extern int LDT_GetEntry( int entry, ldt_entry *content );
|
||||
extern int LDT_SetEntry( int entry, const ldt_entry *content );
|
||||
extern void LDT_Print( int start, int length );
|
||||
|
||||
|
||||
/* This structure is used to build the local copy of the LDT. */
|
||||
typedef struct
|
||||
{
|
||||
unsigned long base; /* base address or 0 if entry is free */
|
||||
unsigned long limit; /* limit in bytes or 0 if entry is free */
|
||||
} ldt_copy_entry;
|
||||
|
||||
#define LDT_SIZE 8192
|
||||
|
||||
extern ldt_copy_entry ldt_copy[LDT_SIZE];
|
||||
|
||||
#define __AHSHIFT 3 /* don't change! */
|
||||
#define __AHINCR (1 << __AHSHIFT)
|
||||
|
||||
#define SELECTOR_TO_ENTRY(sel) (((int)(sel) & 0xffff) >> __AHSHIFT)
|
||||
#define ENTRY_TO_SELECTOR(i) ((i) ? (((int)(i) << __AHSHIFT) | 7) : 0)
|
||||
#define IS_LDT_ENTRY_FREE(i) (!(ldt_flags_copy[(i)] & LDT_FLAGS_ALLOCATED))
|
||||
#define IS_SELECTOR_FREE(sel) (IS_LDT_ENTRY_FREE(SELECTOR_TO_ENTRY(sel)))
|
||||
#define GET_SEL_BASE(sel) (ldt_copy[SELECTOR_TO_ENTRY(sel)].base)
|
||||
#define GET_SEL_LIMIT(sel) (ldt_copy[SELECTOR_TO_ENTRY(sel)].limit)
|
||||
|
||||
/* Convert a segmented ptr (16:16) to a linear (32) pointer */
|
||||
|
||||
#define PTR_SEG_OFF_TO_LIN(seg,off) \
|
||||
((void*)(GET_SEL_BASE(seg) + (unsigned int)(off)))
|
||||
#define PTR_SEG_TO_LIN(ptr) \
|
||||
PTR_SEG_OFF_TO_LIN(SELECTOROF(ptr),OFFSETOF(ptr))
|
||||
#define PTR_SEG_OFF_TO_SEGPTR(seg,off) \
|
||||
((SEGPTR)MAKELONG(off,seg))
|
||||
#define PTR_SEG_OFF_TO_HUGEPTR(seg,off) \
|
||||
PTR_SEG_OFF_TO_SEGPTR( (seg) + (HIWORD(off) << __AHSHIFT), LOWORD(off) )
|
||||
|
||||
#define W32S_APPLICATION() (PROCESS_Current()->flags & PDB32_WIN32S_PROC)
|
||||
#define W32S_OFFSET 0x10000
|
||||
#define W32S_APP2WINE(addr, offset) ((addr)? (DWORD)(addr) + (DWORD)(offset) : 0)
|
||||
#define W32S_WINE2APP(addr, offset) ((addr)? (DWORD)(addr) - (DWORD)(offset) : 0)
|
||||
|
||||
extern unsigned char ldt_flags_copy[LDT_SIZE];
|
||||
|
||||
#define LDT_FLAGS_TYPE 0x03 /* Mask for segment type */
|
||||
#define LDT_FLAGS_READONLY 0x04 /* Segment is read-only (data) */
|
||||
#define LDT_FLAGS_EXECONLY 0x04 /* Segment is execute-only (code) */
|
||||
#define LDT_FLAGS_32BIT 0x08 /* Segment is 32-bit (code or stack) */
|
||||
#define LDT_FLAGS_BIG 0x10 /* Segment is big (limit is in pages) */
|
||||
#define LDT_FLAGS_ALLOCATED 0x80 /* Segment is allocated (no longer free) */
|
||||
|
||||
#define GET_SEL_FLAGS(sel) (ldt_flags_copy[SELECTOR_TO_ENTRY(sel)])
|
||||
|
||||
#define FIRST_LDT_ENTRY_TO_ALLOC 17
|
||||
|
||||
/* Determine if sel is a system selector (i.e. not managed by Wine) */
|
||||
#define IS_SELECTOR_SYSTEM(sel) \
|
||||
(!((sel) & 4) || (SELECTOR_TO_ENTRY(sel) < FIRST_LDT_ENTRY_TO_ALLOC))
|
||||
#define IS_SELECTOR_32BIT(sel) \
|
||||
(IS_SELECTOR_SYSTEM(sel) || (GET_SEL_FLAGS(sel) & LDT_FLAGS_32BIT))
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* __WINE_LDT_H */
|
|
@ -1,104 +0,0 @@
|
|||
/*
|
||||
* mmreg.h - Declarations for ???
|
||||
*/
|
||||
|
||||
#ifndef __WINE_MMREG_H
|
||||
#define __WINE_MMREG_H
|
||||
|
||||
/***********************************************************************
|
||||
* Defines/Enums
|
||||
*/
|
||||
|
||||
#ifndef _ACM_WAVEFILTER
|
||||
#define _ACM_WAVEFILTER
|
||||
|
||||
#include "windef.h"
|
||||
|
||||
#define WAVE_FILTER_UNKNOWN 0x0000
|
||||
#define WAVE_FILTER_DEVELOPMENT 0xFFFF
|
||||
|
||||
typedef struct _WAVEFILTER {
|
||||
DWORD cbStruct;
|
||||
DWORD dwFilterTag;
|
||||
DWORD fdwFilter;
|
||||
DWORD dwReserved[5];
|
||||
} WAVEFILTER, *PWAVEFILTER, *NPWAVEFILTER, *LPWAVEFILTER;
|
||||
#endif /* _ACM_WAVEFILTER */
|
||||
|
||||
#ifndef WAVE_FILTER_VOLUME
|
||||
#define WAVE_FILTER_VOLUME 0x0001
|
||||
|
||||
typedef struct _WAVEFILTER_VOLUME {
|
||||
WAVEFILTER wfltr;
|
||||
DWORD dwVolume;
|
||||
} VOLUMEWAVEFILTER, *PVOLUMEWAVEFILTER, *NPVOLUMEWAVEFILTER, *LPVOLUMEWAVEFILTER;
|
||||
#endif /* WAVE_FILTER_VOLUME */
|
||||
|
||||
#ifndef WAVE_FILTER_ECHO
|
||||
#define WAVE_FILTER_ECHO 0x0002
|
||||
|
||||
typedef struct WAVEFILTER_ECHO {
|
||||
WAVEFILTER wfltr;
|
||||
DWORD dwVolume;
|
||||
DWORD dwDelay;
|
||||
} ECHOWAVEFILTER, *PECHOWAVEFILTER, *NPECHOWAVEFILTER, *LPECHOWAVEFILTER;
|
||||
#endif /* WAVEFILTER_ECHO */
|
||||
|
||||
#ifndef _WAVEFORMATEX_
|
||||
#define _WAVEFORMATEX_
|
||||
typedef struct _WAVEFORMATEX {
|
||||
WORD wFormatTag;
|
||||
WORD nChannels;
|
||||
DWORD nSamplesPerSec;
|
||||
DWORD nAvgBytesPerSec;
|
||||
WORD nBlockAlign;
|
||||
WORD wBitsPerSample;
|
||||
WORD cbSize;
|
||||
} WAVEFORMATEX, *PWAVEFORMATEX, *NPWAVEFORMATEX, *LPWAVEFORMATEX;
|
||||
#endif /* _WAVEFORMATEX_ */
|
||||
|
||||
/* WAVE form wFormatTag IDs */
|
||||
#define WAVE_FORMAT_UNKNOWN 0x0000 /* Microsoft Corporation */
|
||||
#define WAVE_FORMAT_ADPCM 0x0002 /* Microsoft Corporation */
|
||||
#define WAVE_FORMAT_IBM_CVSD 0x0005 /* IBM Corporation */
|
||||
#define WAVE_FORMAT_ALAW 0x0006 /* Microsoft Corporation */
|
||||
#define WAVE_FORMAT_MULAW 0x0007 /* Microsoft Corporation */
|
||||
#define WAVE_FORMAT_OKI_ADPCM 0x0010 /* OKI */
|
||||
#define WAVE_FORMAT_DVI_ADPCM 0x0011 /* Intel Corporation */
|
||||
#define WAVE_FORMAT_IMA_ADPCM (WAVE_FORMAT_DVI_ADPCM) /* Intel Corporation */
|
||||
#define WAVE_FORMAT_MEDIASPACE_ADPCM 0x0012 /* Videologic */
|
||||
#define WAVE_FORMAT_SIERRA_ADPCM 0x0013 /* Sierra Semiconductor Corp */
|
||||
#define WAVE_FORMAT_G723_ADPCM 0x0014 /* Antex Electronics Corporation */
|
||||
#define WAVE_FORMAT_DIGISTD 0x0015 /* DSP Solutions, Inc. */
|
||||
#define WAVE_FORMAT_DIGIFIX 0x0016 /* DSP Solutions, Inc. */
|
||||
#define WAVE_FORMAT_DIALOGIC_OKI_ADPCM 0x0017 /* Dialogic Corporation */
|
||||
#define WAVE_FORMAT_YAMAHA_ADPCM 0x0020 /* Yamaha Corporation of America */
|
||||
#define WAVE_FORMAT_SONARC 0x0021 /* Speech Compression */
|
||||
#define WAVE_FORMAT_DSPGROUP_TRUESPEECH 0x0022 /* DSP Group, Inc */
|
||||
#define WAVE_FORMAT_ECHOSC1 0x0023 /* Echo Speech Corporation */
|
||||
#define WAVE_FORMAT_AUDIOFILE_AF36 0x0024 /* */
|
||||
#define WAVE_FORMAT_APTX 0x0025 /* Audio Processing Technology */
|
||||
#define WAVE_FORMAT_AUDIOFILE_AF10 0x0026 /* */
|
||||
#define WAVE_FORMAT_DOLBY_AC2 0x0030 /* Dolby Laboratories */
|
||||
#define WAVE_FORMAT_GSM610 0x0031 /* Microsoft Corporation */
|
||||
#define WAVE_FORMAT_ANTEX_ADPCME 0x0033 /* Antex Electronics Corporation */
|
||||
#define WAVE_FORMAT_CONTROL_RES_VQLPC 0x0034 /* Control Resources Limited */
|
||||
#define WAVE_FORMAT_DIGIREAL 0x0035 /* DSP Solutions, Inc. */
|
||||
#define WAVE_FORMAT_DIGIADPCM 0x0036 /* DSP Solutions, Inc. */
|
||||
#define WAVE_FORMAT_CONTROL_RES_CR10 0x0037 /* Control Resources Limited */
|
||||
#define WAVE_FORMAT_NMS_VBXADPCM 0x0038 /* Natural MicroSystems */
|
||||
#define WAVE_FORMAT_G721_ADPCM 0x0040 /* Antex Electronics Corporation */
|
||||
#define WAVE_FORMAT_MPEG 0x0050 /* Microsoft Corporation */
|
||||
#define WAVE_FORMAT_CREATIVE_ADPCM 0x0200 /* Creative Labs, Inc */
|
||||
#define WAVE_FORMAT_CREATIVE_FASTSPEECH8 0x0202 /* Creative Labs, Inc */
|
||||
#define WAVE_FORMAT_CREATIVE_FASTSPEECH10 0x0203 /* Creative Labs, Inc */
|
||||
#define WAVE_FORMAT_FM_TOWNS_SND 0x0300 /* Fujitsu Corp. */
|
||||
#define WAVE_FORMAT_OLIGSM 0x1000 /* Ing C. Olivetti & C., S.p.A. */
|
||||
#define WAVE_FORMAT_OLIADPCM 0x1001 /* Ing C. Olivetti & C., S.p.A. */
|
||||
#define WAVE_FORMAT_OLICELP 0x1002 /* Ing C. Olivetti & C., S.p.A. */
|
||||
#define WAVE_FORMAT_OLISBC 0x1003 /* Ing C. Olivetti & C., S.p.A. */
|
||||
#define WAVE_FORMAT_OLIOPR 0x1004 /* Ing C. Olivetti & C., S.p.A. */
|
||||
|
||||
#define WAVE_FORMAT_DEVELOPMENT (0xFFFF)
|
||||
|
||||
#endif /* __WINE_MMREG_H */
|
|
@ -1,198 +0,0 @@
|
|||
/*
|
||||
* Module definitions
|
||||
*
|
||||
* Copyright 1995 Alexandre Julliard
|
||||
*/
|
||||
|
||||
#ifndef __WINE_MODULE_H
|
||||
#define __WINE_MODULE_H
|
||||
|
||||
#include "windef.h"
|
||||
//#include "dosexe.h"
|
||||
#include "pe_image.h"
|
||||
|
||||
|
||||
|
||||
typedef struct {
|
||||
BYTE type;
|
||||
BYTE flags;
|
||||
BYTE segnum;
|
||||
WORD offs WINE_PACKED;
|
||||
} ET_ENTRY;
|
||||
|
||||
typedef struct {
|
||||
WORD first; /* ordinal */
|
||||
WORD last; /* ordinal */
|
||||
WORD next; /* bundle */
|
||||
} ET_BUNDLE;
|
||||
|
||||
|
||||
/* In-memory segment table */
|
||||
typedef struct
|
||||
{
|
||||
WORD filepos; /* Position in file, in sectors */
|
||||
WORD size; /* Segment size on disk */
|
||||
WORD flags; /* Segment flags */
|
||||
WORD minsize; /* Min. size of segment in memory */
|
||||
HANDLE16 hSeg; /* Selector or handle (selector - 1) */
|
||||
/* of segment in memory */
|
||||
} SEGTABLEENTRY;
|
||||
|
||||
|
||||
/* Self-loading modules contain this structure in their first segment */
|
||||
|
||||
#include "pshpack1.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
WORD version; /* Must be "A0" (0x3041) */
|
||||
WORD reserved;
|
||||
FARPROC16 BootApp; /* startup procedure */
|
||||
FARPROC16 LoadAppSeg; /* procedure to load a segment */
|
||||
FARPROC16 reserved2;
|
||||
FARPROC16 MyAlloc; /* memory allocation procedure,
|
||||
* wine must write this field */
|
||||
FARPROC16 EntryAddrProc;
|
||||
FARPROC16 ExitProc; /* exit procedure */
|
||||
WORD reserved3[4];
|
||||
FARPROC16 SetOwner; /* Set Owner procedure, exported by wine */
|
||||
} SELFLOADHEADER;
|
||||
|
||||
/* Parameters for LoadModule() */
|
||||
typedef struct
|
||||
{
|
||||
HGLOBAL16 hEnvironment; /* Environment segment */
|
||||
SEGPTR cmdLine WINE_PACKED; /* Command-line */
|
||||
SEGPTR showCmd WINE_PACKED; /* Code for ShowWindow() */
|
||||
SEGPTR reserved WINE_PACKED;
|
||||
} LOADPARAMS16;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
LPSTR lpEnvAddress;
|
||||
LPSTR lpCmdLine;
|
||||
UINT16 *lpCmdShow;
|
||||
DWORD dwReserved;
|
||||
} LOADPARAMS;
|
||||
|
||||
#include "poppack.h"
|
||||
|
||||
/* internal representation of 32bit modules. per process. */
|
||||
typedef enum {
|
||||
MODULE32_PE = 1,
|
||||
MODULE32_ELF,
|
||||
MODULE32_ELFDLL
|
||||
} MODULE32_TYPE;
|
||||
|
||||
typedef struct _wine_modref
|
||||
{
|
||||
struct _wine_modref *next;
|
||||
struct _wine_modref *prev;
|
||||
MODULE32_TYPE type;
|
||||
union {
|
||||
PE_MODREF pe;
|
||||
ELF_MODREF elf;
|
||||
} binfmt;
|
||||
|
||||
HMODULE module;
|
||||
|
||||
int nDeps;
|
||||
struct _wine_modref **deps;
|
||||
|
||||
int flags;
|
||||
int refCount;
|
||||
|
||||
char *filename;
|
||||
char *modname;
|
||||
char *short_filename;
|
||||
char *short_modname;
|
||||
} WINE_MODREF;
|
||||
|
||||
#define WINE_MODREF_INTERNAL 0x00000001
|
||||
#define WINE_MODREF_NO_DLL_CALLS 0x00000002
|
||||
#define WINE_MODREF_PROCESS_ATTACHED 0x00000004
|
||||
#define WINE_MODREF_LOAD_AS_DATAFILE 0x00000010
|
||||
#define WINE_MODREF_DONT_RESOLVE_REFS 0x00000020
|
||||
#define WINE_MODREF_MARKER 0x80000000
|
||||
|
||||
|
||||
|
||||
/* Resource types */
|
||||
typedef struct resource_typeinfo_s NE_TYPEINFO;
|
||||
typedef struct resource_nameinfo_s NE_NAMEINFO;
|
||||
|
||||
#define NE_SEG_TABLE(pModule) \
|
||||
((SEGTABLEENTRY *)((char *)(pModule) + (pModule)->seg_table))
|
||||
|
||||
#define NE_MODULE_TABLE(pModule) \
|
||||
((WORD *)((char *)(pModule) + (pModule)->modref_table))
|
||||
|
||||
#define NE_MODULE_NAME(pModule) \
|
||||
(((OFSTRUCT *)((char*)(pModule) + (pModule)->fileinfo))->szPathName)
|
||||
|
||||
/* module.c */
|
||||
extern FARPROC MODULE_GetProcAddress( HMODULE hModule, LPCSTR function, WIN_BOOL snoop );
|
||||
extern WINE_MODREF *MODULE32_LookupHMODULE( HMODULE hModule );
|
||||
extern WIN_BOOL MODULE_DllProcessAttach( WINE_MODREF *wm, LPVOID lpReserved );
|
||||
extern void MODULE_DllProcessDetach( WINE_MODREF *wm, WIN_BOOL bForceDetach, LPVOID lpReserved );
|
||||
extern void MODULE_DllThreadAttach( LPVOID lpReserved );
|
||||
extern void MODULE_DllThreadDetach( LPVOID lpReserved );
|
||||
extern WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags );
|
||||
extern WIN_BOOL MODULE_FreeLibrary( WINE_MODREF *wm );
|
||||
extern WINE_MODREF *MODULE_FindModule( LPCSTR path );
|
||||
extern HMODULE MODULE_CreateDummyModule( LPCSTR filename, HMODULE module32 );
|
||||
extern FARPROC16 WINAPI WIN32_GetProcAddress16( HMODULE hmodule, LPCSTR name );
|
||||
extern SEGPTR WINAPI HasGPHandler16( SEGPTR address );
|
||||
extern void MODULE_WalkModref( DWORD id );
|
||||
|
||||
/* resource.c */
|
||||
extern INT WINAPI AccessResource(HMODULE,HRSRC);
|
||||
/*
|
||||
/ loader/ne/module.c
|
||||
extern NE_MODULE *NE_GetPtr( HMODULE16 hModule );
|
||||
extern void NE_DumpModule( HMODULE16 hModule );
|
||||
extern void NE_WalkModules(void);
|
||||
extern void NE_RegisterModule( NE_MODULE *pModule );
|
||||
extern WORD NE_GetOrdinal( HMODULE16 hModule, const char *name );
|
||||
extern FARPROC16 WINAPI NE_GetEntryPoint( HMODULE16 hModule, WORD ordinal );
|
||||
extern FARPROC16 NE_GetEntryPointEx( HMODULE16 hModule, WORD ordinal, WIN_BOOL16 snoop );
|
||||
extern WIN_BOOL16 NE_SetEntryPoint( HMODULE16 hModule, WORD ordinal, WORD offset );
|
||||
extern int NE_OpenFile( NE_MODULE *pModule );
|
||||
extern WIN_BOOL NE_CreateProcess( HANDLE hFile, LPCSTR filename, LPCSTR cmd_line, LPCSTR env,
|
||||
LPSECURITY_ATTRIBUTES psa, LPSECURITY_ATTRIBUTES tsa,
|
||||
WIN_BOOL inherit, DWORD flags, LPSTARTUPINFOA startup,
|
||||
LPPROCESS_INFORMATION info );
|
||||
extern WIN_BOOL NE_InitProcess( NE_MODULE *pModule );
|
||||
|
||||
|
||||
/ loader/ne/resource.c
|
||||
extern HGLOBAL16 WINAPI NE_DefResourceHandler(HGLOBAL16,HMODULE16,HRSRC16);
|
||||
extern WIN_BOOL NE_InitResourceHandler( HMODULE16 hModule );
|
||||
extern HRSRC16 NE_FindResource( NE_MODULE *pModule, LPCSTR name, LPCSTR type );
|
||||
extern INT16 NE_AccessResource( NE_MODULE *pModule, HRSRC16 hRsrc );
|
||||
extern DWORD NE_SizeofResource( NE_MODULE *pModule, HRSRC16 hRsrc );
|
||||
extern HGLOBAL16 NE_LoadResource( NE_MODULE *pModule, HRSRC16 hRsrc );
|
||||
extern WIN_BOOL16 NE_FreeResource( NE_MODULE *pModule, HGLOBAL16 handle );
|
||||
extern NE_TYPEINFO *NE_FindTypeSection( LPBYTE pResTab, NE_TYPEINFO *pTypeInfo, LPCSTR typeId );
|
||||
extern NE_NAMEINFO *NE_FindResourceFromType( LPBYTE pResTab, NE_TYPEINFO *pTypeInfo, LPCSTR resId );
|
||||
|
||||
// loader/ne/segment.c
|
||||
extern WIN_BOOL NE_LoadSegment( NE_MODULE *pModule, WORD segnum );
|
||||
extern WIN_BOOL NE_LoadAllSegments( NE_MODULE *pModule );
|
||||
extern WIN_BOOL NE_CreateSegment( NE_MODULE *pModule, int segnum );
|
||||
extern WIN_BOOL NE_CreateAllSegments( NE_MODULE *pModule );
|
||||
extern HINSTANCE16 NE_GetInstance( NE_MODULE *pModule );
|
||||
extern void NE_InitializeDLLs( HMODULE16 hModule );
|
||||
extern void NE_DllProcessAttach( HMODULE16 hModule );
|
||||
|
||||
// loader/ne/convert.c
|
||||
HGLOBAL16 NE_LoadPEResource( NE_MODULE *pModule, WORD type, LPVOID bits, DWORD size );
|
||||
*/
|
||||
/* relay32/builtin.c */
|
||||
extern WINE_MODREF *BUILTIN32_LoadLibraryExA(LPCSTR name, DWORD flags);
|
||||
extern HMODULE BUILTIN32_LoadExeModule( LPCSTR *filename );
|
||||
extern void BUILTIN32_UnloadLibrary(WINE_MODREF *wm);
|
||||
extern void *BUILTIN32_dlopen( const char *name );
|
||||
extern int BUILTIN32_dlclose( void *handle );
|
||||
|
||||
#endif /* __WINE_MODULE_H */
|
|
@ -1,942 +0,0 @@
|
|||
/*
|
||||
* msacm.h - Declarations for MSACM
|
||||
*/
|
||||
|
||||
#ifndef __WINE_MSACM_H
|
||||
#define __WINE_MSACM_H
|
||||
|
||||
#include "windef.h"
|
||||
#include "driver.h"
|
||||
#include "mmreg.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
//typedef WORD VERSION; /* major (high byte), minor (low byte) */
|
||||
|
||||
typedef UINT16 MMVERSION16;
|
||||
typedef UINT MMVERSION;
|
||||
typedef UINT16 MCIDEVICEID16;
|
||||
typedef UINT MCIDEVICEID;
|
||||
typedef UINT16 MMRESULT16;
|
||||
typedef UINT MMRESULT;
|
||||
typedef DWORD FOURCC; /* a four character code */
|
||||
|
||||
|
||||
|
||||
#define WAVE_FORMAT_PCM 1
|
||||
|
||||
/***********************************************************************
|
||||
* Defines/Enums
|
||||
*/
|
||||
|
||||
#define ACMERR_BASE 512
|
||||
#define ACMERR_NOTPOSSIBLE (ACMERR_BASE + 0)
|
||||
#define ACMERR_BUSY (ACMERR_BASE + 1)
|
||||
#define ACMERR_UNPREPARED (ACMERR_BASE + 2)
|
||||
#define ACMERR_CANCELED (ACMERR_BASE + 3)
|
||||
|
||||
#define MM_ACM_OPEN MM_STREAM_OPEN
|
||||
#define MM_ACM_CLOSE MM_STREAM_CLOSE
|
||||
#define MM_ACM_DONE MM_STREAM_DONE
|
||||
|
||||
#define ACM_DRIVERADDF_FUNCTION 0x00000003L
|
||||
#define ACM_DRIVERADDF_NOTIFYHWND 0x00000004L
|
||||
#define ACM_DRIVERADDF_TYPEMASK 0x00000007L
|
||||
#define ACM_DRIVERADDF_LOCAL 0x00000000L
|
||||
#define ACM_DRIVERADDF_GLOBAL 0x00000008L
|
||||
|
||||
#define ACMDRIVERDETAILS_SHORTNAME_CHARS 32
|
||||
#define ACMDRIVERDETAILS_LONGNAME_CHARS 128
|
||||
#define ACMDRIVERDETAILS_COPYRIGHT_CHARS 80
|
||||
#define ACMDRIVERDETAILS_LICENSING_CHARS 128
|
||||
#define ACMDRIVERDETAILS_FEATURES_CHARS 512
|
||||
|
||||
#define ACMDRIVERDETAILS_FCCTYPE_AUDIOCODEC mmioFOURCC('a', 'u', 'd', 'c')
|
||||
#define ACMDRIVERDETAILS_FCCCOMP_UNDEFINED mmioFOURCC('\0', '\0', '\0', '\0')
|
||||
|
||||
#define ACMDRIVERDETAILS_SUPPORTF_CODEC 0x00000001L
|
||||
#define ACMDRIVERDETAILS_SUPPORTF_CONVERTER 0x00000002L
|
||||
#define ACMDRIVERDETAILS_SUPPORTF_FILTER 0x00000004L
|
||||
#define ACMDRIVERDETAILS_SUPPORTF_HARDWARE 0x00000008L
|
||||
#define ACMDRIVERDETAILS_SUPPORTF_ASYNC 0x00000010L
|
||||
#define ACMDRIVERDETAILS_SUPPORTF_LOCAL 0x40000000L
|
||||
#define ACMDRIVERDETAILS_SUPPORTF_DISABLED 0x80000000L
|
||||
|
||||
#define ACM_DRIVERENUMF_NOLOCAL 0x40000000L
|
||||
#define ACM_DRIVERENUMF_DISABLED 0x80000000L
|
||||
|
||||
#define ACM_DRIVERPRIORITYF_ENABLE 0x00000001L
|
||||
#define ACM_DRIVERPRIORITYF_DISABLE 0x00000002L
|
||||
#define ACM_DRIVERPRIORITYF_ABLEMASK 0x00000003L
|
||||
#define ACM_DRIVERPRIORITYF_BEGIN 0x00010000L
|
||||
#define ACM_DRIVERPRIORITYF_END 0x00020000L
|
||||
#define ACM_DRIVERPRIORITYF_DEFERMASK 0x00030000L
|
||||
|
||||
#define MM_ACM_FILTERCHOOSE 0x8000
|
||||
|
||||
#define FILTERCHOOSE_MESSAGE 0
|
||||
#define FILTERCHOOSE_FILTERTAG_VERIFY (FILTERCHOOSE_MESSAGE+0)
|
||||
#define FILTERCHOOSE_FILTER_VERIFY (FILTERCHOOSE_MESSAGE+1)
|
||||
#define FILTERCHOOSE_CUSTOM_VERIFY (FILTERCHOOSE_MESSAGE+2)
|
||||
|
||||
#define ACMFILTERCHOOSE_STYLEF_SHOWHELP 0x00000004L
|
||||
#define ACMFILTERCHOOSE_STYLEF_ENABLEHOOK 0x00000008L
|
||||
#define ACMFILTERCHOOSE_STYLEF_ENABLETEMPLATE 0x00000010L
|
||||
#define ACMFILTERCHOOSE_STYLEF_ENABLETEMPLATEHANDLE 0x00000020L
|
||||
#define ACMFILTERCHOOSE_STYLEF_INITTOFILTERSTRUCT 0x00000040L
|
||||
#define ACMFILTERCHOOSE_STYLEF_CONTEXTHELP 0x00000080L
|
||||
|
||||
#define ACMFILTERDETAILS_FILTER_CHARS 128
|
||||
|
||||
#define ACM_FILTERDETAILSF_INDEX 0x00000000L
|
||||
#define ACM_FILTERDETAILSF_FILTER 0x00000001L
|
||||
#define ACM_FILTERDETAILSF_QUERYMASK 0x0000000FL
|
||||
|
||||
#define ACMFILTERTAGDETAILS_FILTERTAG_CHARS 48
|
||||
|
||||
#define ACM_FILTERTAGDETAILSF_INDEX 0x00000000L
|
||||
#define ACM_FILTERTAGDETAILSF_FILTERTAG 0x00000001L
|
||||
#define ACM_FILTERTAGDETAILSF_LARGESTSIZE 0x00000002L
|
||||
#define ACM_FILTERTAGDETAILSF_QUERYMASK 0x0000000FL
|
||||
|
||||
#define ACM_FILTERENUMF_DWFILTERTAG 0x00010000L
|
||||
|
||||
#define ACMHELPMSGSTRINGA "acmchoose_help"
|
||||
#define ACMHELPMSGSTRINGW L"acmchoose_help"
|
||||
#define ACMHELPMSGSTRING16 "acmchoose_help"
|
||||
|
||||
#define ACMHELPMSGCONTEXTMENUA "acmchoose_contextmenu"
|
||||
#define ACMHELPMSGCONTEXTMENUW L"acmchoose_contextmenu"
|
||||
#define ACMHELPMSGCONTEXTMENU16 "acmchoose_contextmenu"
|
||||
|
||||
#define ACMHELPMSGCONTEXTHELPA "acmchoose_contexthelp"
|
||||
#define ACMHELPMSGCONTEXTHELPW L"acmchoose_contexthelp"
|
||||
#define ACMHELPMSGCONTEXTHELP16 "acmchoose_contexthelp"
|
||||
|
||||
#define MM_ACM_FORMATCHOOSE 0x8000
|
||||
|
||||
#define FORMATCHOOSE_MESSAGE 0
|
||||
#define FORMATCHOOSE_FORMATTAG_VERIFY (FORMATCHOOSE_MESSAGE+0)
|
||||
#define FORMATCHOOSE_FORMAT_VERIFY (FORMATCHOOSE_MESSAGE+1)
|
||||
#define FORMATCHOOSE_CUSTOM_VERIFY (FORMATCHOOSE_MESSAGE+2)
|
||||
|
||||
#define ACMFORMATCHOOSE_STYLEF_SHOWHELP 0x00000004L
|
||||
#define ACMFORMATCHOOSE_STYLEF_ENABLEHOOK 0x00000008L
|
||||
#define ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATE 0x00000010L
|
||||
#define ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATEHANDLE 0x00000020L
|
||||
#define ACMFORMATCHOOSE_STYLEF_INITTOWFXSTRUCT 0x00000040L
|
||||
#define ACMFORMATCHOOSE_STYLEF_CONTEXTHELP 0x00000080L
|
||||
|
||||
#define ACMFORMATDETAILS_FORMAT_CHARS 128
|
||||
|
||||
#define ACM_FORMATDETAILSF_INDEX 0x00000000L
|
||||
#define ACM_FORMATDETAILSF_FORMAT 0x00000001L
|
||||
#define ACM_FORMATDETAILSF_QUERYMASK 0x0000000FL
|
||||
|
||||
#define ACM_FORMATENUMF_WFORMATTAG 0x00010000L
|
||||
#define ACM_FORMATENUMF_NCHANNELS 0x00020000L
|
||||
#define ACM_FORMATENUMF_NSAMPLESPERSEC 0x00040000L
|
||||
#define ACM_FORMATENUMF_WBITSPERSAMPLE 0x00080000L
|
||||
#define ACM_FORMATENUMF_CONVERT 0x00100000L
|
||||
#define ACM_FORMATENUMF_SUGGEST 0x00200000L
|
||||
#define ACM_FORMATENUMF_HARDWARE 0x00400000L
|
||||
#define ACM_FORMATENUMF_INPUT 0x00800000L
|
||||
#define ACM_FORMATENUMF_OUTPUT 0x01000000L
|
||||
|
||||
#define ACM_FORMATSUGGESTF_WFORMATTAG 0x00010000L
|
||||
#define ACM_FORMATSUGGESTF_NCHANNELS 0x00020000L
|
||||
#define ACM_FORMATSUGGESTF_NSAMPLESPERSEC 0x00040000L
|
||||
#define ACM_FORMATSUGGESTF_WBITSPERSAMPLE 0x00080000L
|
||||
#define ACM_FORMATSUGGESTF_TYPEMASK 0x00FF0000L
|
||||
|
||||
#define ACMFORMATTAGDETAILS_FORMATTAG_CHARS 48
|
||||
|
||||
#define ACM_FORMATTAGDETAILSF_INDEX 0x00000000L
|
||||
#define ACM_FORMATTAGDETAILSF_FORMATTAG 0x00000001L
|
||||
#define ACM_FORMATTAGDETAILSF_LARGESTSIZE 0x00000002L
|
||||
#define ACM_FORMATTAGDETAILSF_QUERYMASK 0x0000000FL
|
||||
|
||||
#define ACM_METRIC_COUNT_DRIVERS 1
|
||||
#define ACM_METRIC_COUNT_CODECS 2
|
||||
#define ACM_METRIC_COUNT_CONVERTERS 3
|
||||
#define ACM_METRIC_COUNT_FILTERS 4
|
||||
#define ACM_METRIC_COUNT_DISABLED 5
|
||||
#define ACM_METRIC_COUNT_HARDWARE 6
|
||||
#define ACM_METRIC_COUNT_LOCAL_DRIVERS 20
|
||||
#define ACM_METRIC_COUNT_LOCAL_CODECS 21
|
||||
#define ACM_METRIC_COUNT_LOCAL_CONVERTERS 22
|
||||
#define ACM_METRIC_COUNT_LOCAL_FILTERS 23
|
||||
#define ACM_METRIC_COUNT_LOCAL_DISABLED 24
|
||||
#define ACM_METRIC_HARDWARE_WAVE_INPUT 30
|
||||
#define ACM_METRIC_HARDWARE_WAVE_OUTPUT 31
|
||||
#define ACM_METRIC_MAX_SIZE_FORMAT 50
|
||||
#define ACM_METRIC_MAX_SIZE_FILTER 51
|
||||
#define ACM_METRIC_DRIVER_SUPPORT 100
|
||||
#define ACM_METRIC_DRIVER_PRIORITY 101
|
||||
|
||||
#define ACM_STREAMCONVERTF_BLOCKALIGN 0x00000004
|
||||
#define ACM_STREAMCONVERTF_START 0x00000010
|
||||
#define ACM_STREAMCONVERTF_END 0x00000020
|
||||
|
||||
#define ACMSTREAMHEADER_STATUSF_DONE 0x00010000L
|
||||
#define ACMSTREAMHEADER_STATUSF_PREPARED 0x00020000L
|
||||
#define ACMSTREAMHEADER_STATUSF_INQUEUE 0x00100000L
|
||||
|
||||
#define ACM_STREAMOPENF_QUERY 0x00000001
|
||||
#define ACM_STREAMOPENF_ASYNC 0x00000002
|
||||
#define ACM_STREAMOPENF_NONREALTIME 0x00000004
|
||||
|
||||
#define ACM_STREAMSIZEF_SOURCE 0x00000000L
|
||||
#define ACM_STREAMSIZEF_DESTINATION 0x00000001L
|
||||
#define ACM_STREAMSIZEF_QUERYMASK 0x0000000FL
|
||||
|
||||
#define ACMDM_USER (DRV_USER + 0x0000)
|
||||
#define ACMDM_RESERVED_LOW (DRV_USER + 0x2000)
|
||||
#define ACMDM_RESERVED_HIGH (DRV_USER + 0x2FFF)
|
||||
|
||||
#define ACMDM_BASE ACMDM_RESERVED_LOW
|
||||
|
||||
#define ACMDM_DRIVER_ABOUT (ACMDM_BASE + 11)
|
||||
|
||||
/***********************************************************************
|
||||
* Callbacks
|
||||
*/
|
||||
|
||||
typedef WIN_BOOL CALLBACK ( *ACMDRIVERENUMCB)(
|
||||
HACMDRIVERID hadid, DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL16 CALLBACK ( *ACMDRIVERENUMCB16)(
|
||||
HACMDRIVERID16 hadid, DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef UINT CALLBACK ( *ACMFILTERCHOOSEHOOKPROCA)(
|
||||
HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
);
|
||||
|
||||
typedef UINT CALLBACK ( *ACMFILTERCHOOSEHOOKPROCW)(
|
||||
HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
);
|
||||
|
||||
typedef UINT CALLBACK ( *ACMFILTERCHOOSEHOOKPROC16)(
|
||||
HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
);
|
||||
|
||||
typedef UINT CALLBACK ( *ACMFORMATCHOOSEHOOKPROCA)(
|
||||
HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
);
|
||||
|
||||
typedef UINT CALLBACK ( *ACMFORMATCHOOSEHOOKPROCW)(
|
||||
HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
);
|
||||
|
||||
typedef UINT16 CALLBACK ( *ACMFORMATCHOOSEHOOKPROC16)(
|
||||
HWND16 hwnd, UINT16 uMsg, WPARAM16 wParam, LPARAM lParam
|
||||
);
|
||||
|
||||
/***********************************************************************
|
||||
* Structures
|
||||
*/
|
||||
|
||||
typedef struct _ACMDRIVERDETAILSA
|
||||
{
|
||||
DWORD cbStruct;
|
||||
|
||||
FOURCC fccType;
|
||||
FOURCC fccComp;
|
||||
|
||||
WORD wMid;
|
||||
WORD wPid;
|
||||
|
||||
DWORD vdwACM;
|
||||
DWORD vdwDriver;
|
||||
|
||||
DWORD fdwSupport;
|
||||
DWORD cFormatTags;
|
||||
DWORD cFilterTags;
|
||||
|
||||
HICON hicon;
|
||||
|
||||
CHAR szShortName[ACMDRIVERDETAILS_SHORTNAME_CHARS];
|
||||
CHAR szLongName[ACMDRIVERDETAILS_LONGNAME_CHARS];
|
||||
CHAR szCopyright[ACMDRIVERDETAILS_COPYRIGHT_CHARS];
|
||||
CHAR szLicensing[ACMDRIVERDETAILS_LICENSING_CHARS];
|
||||
CHAR szFeatures[ACMDRIVERDETAILS_FEATURES_CHARS];
|
||||
} ACMDRIVERDETAILSA, *PACMDRIVERDETAILSA;
|
||||
|
||||
typedef struct _ACMDRIVERDETAILSW
|
||||
{
|
||||
DWORD cbStruct;
|
||||
|
||||
FOURCC fccType;
|
||||
FOURCC fccComp;
|
||||
|
||||
WORD wMid;
|
||||
WORD wPid;
|
||||
|
||||
DWORD vdwACM;
|
||||
DWORD vdwDriver;
|
||||
|
||||
DWORD fdwSupport;
|
||||
DWORD cFormatTags;
|
||||
DWORD cFilterTags;
|
||||
|
||||
HICON hicon;
|
||||
|
||||
WCHAR szShortName[ACMDRIVERDETAILS_SHORTNAME_CHARS];
|
||||
WCHAR szLongName[ACMDRIVERDETAILS_LONGNAME_CHARS];
|
||||
WCHAR szCopyright[ACMDRIVERDETAILS_COPYRIGHT_CHARS];
|
||||
WCHAR szLicensing[ACMDRIVERDETAILS_LICENSING_CHARS];
|
||||
WCHAR szFeatures[ACMDRIVERDETAILS_FEATURES_CHARS];
|
||||
} ACMDRIVERDETAILSW, *PACMDRIVERDETAILSW;
|
||||
|
||||
typedef struct _ACMDRIVERDETAILS16
|
||||
{
|
||||
DWORD cbStruct;
|
||||
|
||||
FOURCC fccType;
|
||||
FOURCC fccComp;
|
||||
|
||||
WORD wMid;
|
||||
WORD wPid;
|
||||
|
||||
DWORD vdwACM;
|
||||
DWORD vdwDriver;
|
||||
|
||||
DWORD fdwSupport;
|
||||
DWORD cFormatTags;
|
||||
DWORD cFilterTags;
|
||||
|
||||
HICON16 hicon;
|
||||
|
||||
CHAR szShortName[ACMDRIVERDETAILS_SHORTNAME_CHARS];
|
||||
CHAR szLongName[ACMDRIVERDETAILS_LONGNAME_CHARS];
|
||||
CHAR szCopyright[ACMDRIVERDETAILS_COPYRIGHT_CHARS];
|
||||
CHAR szLicensing[ACMDRIVERDETAILS_LICENSING_CHARS];
|
||||
CHAR szFeatures[ACMDRIVERDETAILS_FEATURES_CHARS];
|
||||
} ACMDRIVERDETAILS16, *NPACMDRIVERDETAILS16, *LPACMDRIVERDETAILS16;
|
||||
|
||||
typedef struct _ACMFILTERCHOOSEA
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD fdwStyle;
|
||||
|
||||
HWND hwndOwner;
|
||||
|
||||
PWAVEFILTER pwfltr;
|
||||
DWORD cbwfltr;
|
||||
|
||||
LPCSTR pszTitle;
|
||||
|
||||
CHAR szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS];
|
||||
CHAR szFilter[ACMFILTERDETAILS_FILTER_CHARS];
|
||||
LPSTR pszName;
|
||||
DWORD cchName;
|
||||
|
||||
DWORD fdwEnum;
|
||||
PWAVEFILTER pwfltrEnum;
|
||||
|
||||
HINSTANCE hInstance;
|
||||
LPCSTR pszTemplateName;
|
||||
LPARAM lCustData;
|
||||
ACMFILTERCHOOSEHOOKPROCA pfnHook;
|
||||
} ACMFILTERCHOOSEA, *PACMFILTERCHOOSEA;
|
||||
|
||||
typedef struct _ACMFILTERCHOOSEW
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD fdwStyle;
|
||||
|
||||
HWND hwndOwner;
|
||||
|
||||
PWAVEFILTER pwfltr;
|
||||
DWORD cbwfltr;
|
||||
|
||||
LPCWSTR pszTitle;
|
||||
|
||||
WCHAR szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS];
|
||||
WCHAR szFilter[ACMFILTERDETAILS_FILTER_CHARS];
|
||||
LPWSTR pszName;
|
||||
DWORD cchName;
|
||||
|
||||
DWORD fdwEnum;
|
||||
PWAVEFILTER pwfltrEnum;
|
||||
|
||||
HINSTANCE hInstance;
|
||||
LPCWSTR pszTemplateName;
|
||||
LPARAM lCustData;
|
||||
ACMFILTERCHOOSEHOOKPROCW pfnHook;
|
||||
} ACMFILTERCHOOSEW, *PACMFILTERCHOOSEW;
|
||||
|
||||
typedef struct _ACMFILTERCHOOSE16
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD fdwStyle;
|
||||
|
||||
HWND16 hwndOwner;
|
||||
|
||||
LPWAVEFILTER pwfltr;
|
||||
DWORD cbwfltr;
|
||||
|
||||
LPCSTR pszTitle;
|
||||
|
||||
char szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS];
|
||||
char szFilter[ACMFILTERDETAILS_FILTER_CHARS];
|
||||
LPSTR pszName;
|
||||
DWORD cchName;
|
||||
|
||||
DWORD fdwEnum;
|
||||
LPWAVEFILTER pwfltrEnum;
|
||||
|
||||
HINSTANCE16 hInstance;
|
||||
LPCSTR pszTemplateName;
|
||||
LPARAM lCustData;
|
||||
ACMFILTERCHOOSEHOOKPROC16 pfnHook;
|
||||
} ACMFILTERCHOOSE16, *NPACMFILTERCHOOSE16, *LPACMFILTERCHOOSE16;
|
||||
|
||||
typedef struct _ACMFILTERDETAILSA
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFilterIndex;
|
||||
DWORD dwFilterTag;
|
||||
DWORD fdwSupport;
|
||||
PWAVEFILTER pwfltr;
|
||||
DWORD cbwfltr;
|
||||
CHAR szFilter[ACMFILTERDETAILS_FILTER_CHARS];
|
||||
} ACMFILTERDETAILSA, *PACMFILTERDETAILSA;
|
||||
|
||||
typedef struct _ACMFILTERDETAILSW
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFilterIndex;
|
||||
DWORD dwFilterTag;
|
||||
DWORD fdwSupport;
|
||||
PWAVEFILTER pwfltr;
|
||||
DWORD cbwfltr;
|
||||
WCHAR szFilter[ACMFILTERDETAILS_FILTER_CHARS];
|
||||
} ACMFILTERDETAILSW, *PACMFILTERDETAILSW;
|
||||
|
||||
typedef struct _ACMFILTERDETAILS16
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFilterIndex;
|
||||
DWORD dwFilterTag;
|
||||
DWORD fdwSupport;
|
||||
LPWAVEFILTER pwfltr;
|
||||
DWORD cbwfltr;
|
||||
CHAR szFilter[ACMFILTERDETAILS_FILTER_CHARS];
|
||||
} ACMFILTERDETAILS16, *NPACMFILTERDETAILS16, *LPACMFILTERDETAILS16;
|
||||
|
||||
typedef struct _ACMFILTERTAGDETAILSA
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFilterTagIndex;
|
||||
DWORD dwFilterTag;
|
||||
DWORD cbFilterSize;
|
||||
DWORD fdwSupport;
|
||||
DWORD cStandardFilters;
|
||||
CHAR szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS];
|
||||
} ACMFILTERTAGDETAILSA, *PACMFILTERTAGDETAILSA;
|
||||
|
||||
typedef struct _ACMFILTERTAGDETAILSW
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFilterTagIndex;
|
||||
DWORD dwFilterTag;
|
||||
DWORD cbFilterSize;
|
||||
DWORD fdwSupport;
|
||||
DWORD cStandardFilters;
|
||||
WCHAR szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS];
|
||||
} ACMFILTERTAGDETAILSW, *PACMFILTERTAGDETAILSW;
|
||||
|
||||
typedef struct _ACMFILTERTAGDETAILS16
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFilterTagIndex;
|
||||
DWORD dwFilterTag;
|
||||
DWORD cbFilterSize;
|
||||
DWORD fdwSupport;
|
||||
DWORD cStandardFilters;
|
||||
CHAR szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS];
|
||||
} ACMFILTERTAGDETAILS16, *NPACMFILTERTAGDETAILS16, *LPACMFILTERTAGDETAILS16;
|
||||
|
||||
typedef struct _ACMFORMATCHOOSEA
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD fdwStyle;
|
||||
|
||||
HWND hwndOwner;
|
||||
|
||||
PWAVEFORMATEX pwfx;
|
||||
DWORD cbwfx;
|
||||
LPCSTR pszTitle;
|
||||
|
||||
CHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS];
|
||||
CHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS];
|
||||
|
||||
LPSTR pszName;
|
||||
DWORD cchName;
|
||||
|
||||
DWORD fdwEnum;
|
||||
PWAVEFORMATEX pwfxEnum;
|
||||
|
||||
HINSTANCE hInstance;
|
||||
LPCSTR pszTemplateName;
|
||||
LPARAM lCustData;
|
||||
ACMFORMATCHOOSEHOOKPROCA pfnHook;
|
||||
} ACMFORMATCHOOSEA, *PACMFORMATCHOOSEA;
|
||||
|
||||
typedef struct _ACMFORMATCHOOSEW
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD fdwStyle;
|
||||
|
||||
HWND hwndOwner;
|
||||
|
||||
PWAVEFORMATEX pwfx;
|
||||
DWORD cbwfx;
|
||||
LPCWSTR pszTitle;
|
||||
|
||||
WCHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS];
|
||||
WCHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS];
|
||||
|
||||
LPWSTR pszName;
|
||||
DWORD cchName;
|
||||
|
||||
DWORD fdwEnum;
|
||||
LPWAVEFORMATEX pwfxEnum;
|
||||
|
||||
HINSTANCE hInstance;
|
||||
LPCWSTR pszTemplateName;
|
||||
LPARAM lCustData;
|
||||
ACMFORMATCHOOSEHOOKPROCW pfnHook;
|
||||
} ACMFORMATCHOOSEW, *PACMFORMATCHOOSEW;
|
||||
|
||||
typedef struct _ACMFORMATCHOOSE16
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD fdwStyle;
|
||||
|
||||
HWND16 hwndOwner;
|
||||
|
||||
LPWAVEFORMATEX pwfx;
|
||||
DWORD cbwfx;
|
||||
LPCSTR pszTitle;
|
||||
|
||||
CHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS];
|
||||
CHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS];
|
||||
|
||||
LPSTR pszName;
|
||||
DWORD cchName;
|
||||
|
||||
DWORD fdwEnum;
|
||||
LPWAVEFORMATEX pwfxEnum;
|
||||
|
||||
HINSTANCE16 hInstance;
|
||||
LPCSTR pszTemplateName;
|
||||
LPARAM lCustData;
|
||||
ACMFORMATCHOOSEHOOKPROC16 pfnHook;
|
||||
} ACMFORMATCHOOSE16, *NPACMFORMATCHOOSE16, *LPACMFORMATCHOOSE16;
|
||||
|
||||
typedef struct _ACMFORMATDETAILSA
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFormatIndex;
|
||||
DWORD dwFormatTag;
|
||||
DWORD fdwSupport;
|
||||
PWAVEFORMATEX pwfx;
|
||||
DWORD cbwfx;
|
||||
CHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS];
|
||||
} ACMFORMATDETAILSA, *PACMFORMATDETAILSA;
|
||||
|
||||
typedef struct _ACMFORMATDETAILSW
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFormatIndex;
|
||||
DWORD dwFormatTag;
|
||||
DWORD fdwSupport;
|
||||
PWAVEFORMATEX pwfx;
|
||||
DWORD cbwfx;
|
||||
WCHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS];
|
||||
} ACMFORMATDETAILSW, *PACMFORMATDETAILSW;
|
||||
|
||||
typedef struct _ACMFORMATDETAILS16
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFormatIndex;
|
||||
DWORD dwFormatTag;
|
||||
DWORD fdwSupport;
|
||||
LPWAVEFORMATEX pwfx;
|
||||
DWORD cbwfx;
|
||||
CHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS];
|
||||
} ACMFORMATDETAILS16, *NPACMFORMATDETAILS16, *LPACMFORMATDETAILS16;
|
||||
|
||||
typedef struct _ACMFORMATTAGDETAILSA
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFormatTagIndex;
|
||||
DWORD dwFormatTag;
|
||||
DWORD cbFormatSize;
|
||||
DWORD fdwSupport;
|
||||
DWORD cStandardFormats;
|
||||
CHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS];
|
||||
} ACMFORMATTAGDETAILSA, *PACMFORMATTAGDETAILSA;
|
||||
|
||||
typedef struct _ACMFORMATTAGDETAILSW
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFormatTagIndex;
|
||||
DWORD dwFormatTag;
|
||||
DWORD cbFormatSize;
|
||||
DWORD fdwSupport;
|
||||
DWORD cStandardFormats;
|
||||
WCHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS];
|
||||
} ACMFORMATTAGDETAILSW, *PACMFORMATTAGDETAILSW;
|
||||
|
||||
typedef struct _ACMFORMATTAGDETAILS16
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD dwFormatTagIndex;
|
||||
DWORD dwFormatTag;
|
||||
DWORD cbFormatSize;
|
||||
DWORD fdwSupport;
|
||||
DWORD cStandardFormats;
|
||||
CHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS];
|
||||
} ACMFORMATTAGDETAILS16, *NPACMFORMATTAGDETAILS16, *LPACMFORMATTAGDETAILS16;
|
||||
|
||||
typedef struct _ACMSTREAMHEADER
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD fdwStatus;
|
||||
DWORD dwUser;
|
||||
LPBYTE pbSrc;
|
||||
DWORD cbSrcLength;
|
||||
DWORD cbSrcLengthUsed;
|
||||
DWORD dwSrcUser;
|
||||
LPBYTE pbDst;
|
||||
DWORD cbDstLength;
|
||||
DWORD cbDstLengthUsed;
|
||||
DWORD dwDstUser;
|
||||
DWORD dwReservedDriver[10];
|
||||
} ACMSTREAMHEADER16, *NPACMSTREAMHEADER16, *LPACMSTREAMHEADER16,
|
||||
ACMSTREAMHEADER, *PACMSTREAMHEADER;
|
||||
|
||||
/***********************************************************************
|
||||
* Callbacks 2
|
||||
*/
|
||||
|
||||
typedef WIN_BOOL CALLBACK ( *ACMFILTERENUMCBA)(
|
||||
HACMDRIVERID hadid, PACMFILTERDETAILSA pafd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL CALLBACK ( *ACMFILTERENUMCBW)(
|
||||
HACMDRIVERID hadid, PACMFILTERDETAILSW pafd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL16 CALLBACK ( *ACMFILTERENUMCB16)(
|
||||
HACMDRIVERID16 hadid, LPACMFILTERDETAILS16 pafd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL CALLBACK ( *ACMFILTERTAGENUMCBA)(
|
||||
HACMDRIVERID hadid, PACMFILTERTAGDETAILSA paftd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL CALLBACK ( *ACMFILTERTAGENUMCBW)(
|
||||
HACMDRIVERID hadid, PACMFILTERTAGDETAILSW paftd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL16 CALLBACK ( *ACMFILTERTAGENUMCB16)(
|
||||
HACMDRIVERID16 hadid, LPACMFILTERTAGDETAILS16 paftd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL CALLBACK ( *ACMFORMATENUMCBA)(
|
||||
HACMDRIVERID hadid, PACMFORMATDETAILSA pafd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL CALLBACK ( *ACMFORMATENUMCBW)(
|
||||
HACMDRIVERID hadid, PACMFORMATDETAILSW pafd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL16 CALLBACK ( *ACMFORMATENUMCB16)(
|
||||
HACMDRIVERID16 hadid, LPACMFORMATDETAILS16 pafd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL CALLBACK ( *ACMFORMATTAGENUMCBA)(
|
||||
HACMDRIVERID hadid, PACMFORMATTAGDETAILSA paftd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL CALLBACK ( *ACMFORMATTAGENUMCBW)(
|
||||
HACMDRIVERID hadid, PACMFORMATTAGDETAILSW paftd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
typedef WIN_BOOL16 CALLBACK ( *ACMFORMATTAGENUMCB16)(
|
||||
HACMDRIVERID16 hadid, LPACMFORMATTAGDETAILS16 paftd,
|
||||
DWORD dwInstance, DWORD fdwSupport
|
||||
);
|
||||
|
||||
/***********************************************************************
|
||||
* Functions - Win16
|
||||
*/
|
||||
|
||||
DWORD WINAPI acmGetVersion16(
|
||||
);
|
||||
MMRESULT16 WINAPI acmMetrics16(
|
||||
HACMOBJ16 hao, UINT16 uMetric, LPVOID pMetric
|
||||
);
|
||||
MMRESULT16 WINAPI acmDriverEnum16(
|
||||
ACMDRIVERENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT16 WINAPI acmDriverDetails16(
|
||||
HACMDRIVERID16 hadid, LPACMDRIVERDETAILS16 padd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT16 WINAPI acmDriverAdd16(
|
||||
LPHACMDRIVERID16 phadid, HINSTANCE16 hinstModule,
|
||||
LPARAM lParam, DWORD dwPriority, DWORD fdwAdd
|
||||
);
|
||||
MMRESULT16 WINAPI acmDriverRemove16(
|
||||
HACMDRIVERID16 hadid, DWORD fdwRemove
|
||||
);
|
||||
MMRESULT16 WINAPI acmDriverOpen16(
|
||||
LPHACMDRIVER16 phad, HACMDRIVERID16 hadid, DWORD fdwOpen
|
||||
);
|
||||
MMRESULT16 WINAPI acmDriverClose16(
|
||||
HACMDRIVER16 had, DWORD fdwClose
|
||||
);
|
||||
LRESULT WINAPI acmDriverMessage16(
|
||||
HACMDRIVER16 had, UINT16 uMsg, LPARAM lParam1, LPARAM lParam2
|
||||
);
|
||||
MMRESULT16 WINAPI acmDriverID16(
|
||||
HACMOBJ16 hao, LPHACMDRIVERID16 phadid, DWORD fdwDriverID
|
||||
);
|
||||
MMRESULT16 WINAPI acmDriverPriority16(
|
||||
HACMDRIVERID16 hadid, DWORD dwPriority, DWORD fdwPriority
|
||||
);
|
||||
MMRESULT16 WINAPI acmFormatTagDetails16(
|
||||
HACMDRIVER16 had, LPACMFORMATTAGDETAILS16 paftd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT16 WINAPI acmFormatTagEnum16(
|
||||
HACMDRIVER16 had, LPACMFORMATTAGDETAILS16 paftd,
|
||||
ACMFORMATTAGENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT16 WINAPI acmFormatChoose16(
|
||||
LPACMFORMATCHOOSE16 pafmtc
|
||||
);
|
||||
MMRESULT16 WINAPI acmFormatDetails16(
|
||||
HACMDRIVER16 had, LPACMFORMATDETAILS16 pafd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT16 WINAPI acmFormatEnum16(
|
||||
HACMDRIVER16 had, LPACMFORMATDETAILS16 pafd,
|
||||
ACMFORMATENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT16 WINAPI acmFormatSuggest16(
|
||||
HACMDRIVER16 had, LPWAVEFORMATEX pwfxSrc,
|
||||
LPWAVEFORMATEX pwfxDst, DWORD cbwfxDst, DWORD fdwSuggest
|
||||
);
|
||||
MMRESULT16 WINAPI acmFilterTagDetails16(
|
||||
HACMDRIVER16 had, LPACMFILTERTAGDETAILS16 paftd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT16 WINAPI acmFilterTagEnum16(
|
||||
HACMDRIVER16 had, LPACMFILTERTAGDETAILS16 paftd,
|
||||
ACMFILTERTAGENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT16 WINAPI acmFilterChoose16(
|
||||
LPACMFILTERCHOOSE16 pafltrc
|
||||
);
|
||||
MMRESULT16 WINAPI acmFilterDetails16(
|
||||
HACMDRIVER16 had, LPACMFILTERDETAILS16 pafd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT16 WINAPI acmFilterEnum16(
|
||||
HACMDRIVER16 had, LPACMFILTERDETAILS16 pafd,
|
||||
ACMFILTERENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT16 WINAPI acmStreamOpen16(
|
||||
LPHACMSTREAM16 phas, HACMDRIVER16 had,
|
||||
LPWAVEFORMATEX pwfxSrc, LPWAVEFORMATEX pwfxDst,
|
||||
LPWAVEFILTER pwfltr, DWORD dwCallback,
|
||||
DWORD dwInstance, DWORD fdwOpen
|
||||
);
|
||||
MMRESULT16 WINAPI acmStreamClose16(
|
||||
HACMSTREAM16 has, DWORD fdwClose
|
||||
);
|
||||
MMRESULT16 WINAPI acmStreamSize16(
|
||||
HACMSTREAM16 has, DWORD cbInput,
|
||||
LPDWORD pdwOutputBytes, DWORD fdwSize
|
||||
);
|
||||
MMRESULT16 WINAPI acmStreamConvert16(
|
||||
HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwConvert
|
||||
);
|
||||
MMRESULT16 WINAPI acmStreamReset16(
|
||||
HACMSTREAM16 has, DWORD fdwReset
|
||||
);
|
||||
MMRESULT16 WINAPI acmStreamPrepareHeader16(
|
||||
HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwPrepare
|
||||
);
|
||||
MMRESULT16 WINAPI acmStreamUnprepareHeader16(
|
||||
HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwUnprepare
|
||||
);
|
||||
|
||||
/***********************************************************************
|
||||
* Functions - Win32
|
||||
*/
|
||||
|
||||
MMRESULT WINAPI acmDriverAddA(
|
||||
PHACMDRIVERID phadid, HINSTANCE hinstModule,
|
||||
LPARAM lParam, DWORD dwPriority, DWORD fdwAdd
|
||||
);
|
||||
MMRESULT WINAPI acmDriverAddW(
|
||||
PHACMDRIVERID phadid, HINSTANCE hinstModule,
|
||||
LPARAM lParam, DWORD dwPriority, DWORD fdwAdd
|
||||
);
|
||||
MMRESULT WINAPI acmDriverClose(
|
||||
HACMDRIVER had, DWORD fdwClose
|
||||
);
|
||||
MMRESULT WINAPI acmDriverDetailsA(
|
||||
HACMDRIVERID hadid, PACMDRIVERDETAILSA padd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT WINAPI acmDriverDetailsW(
|
||||
HACMDRIVERID hadid, PACMDRIVERDETAILSW padd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT WINAPI acmDriverEnum(
|
||||
ACMDRIVERENUMCB fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT WINAPI acmDriverID(
|
||||
HACMOBJ hao, PHACMDRIVERID phadid, DWORD fdwDriverID
|
||||
);
|
||||
LRESULT WINAPI acmDriverMessage(
|
||||
HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARAM lParam2
|
||||
);
|
||||
MMRESULT WINAPI acmDriverOpen(
|
||||
PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpen
|
||||
);
|
||||
MMRESULT WINAPI acmDriverPriority(
|
||||
HACMDRIVERID hadid, DWORD dwPriority, DWORD fdwPriority
|
||||
);
|
||||
MMRESULT WINAPI acmDriverRemove(
|
||||
HACMDRIVERID hadid, DWORD fdwRemove
|
||||
);
|
||||
MMRESULT WINAPI acmFilterChooseA(
|
||||
PACMFILTERCHOOSEA pafltrc
|
||||
);
|
||||
MMRESULT WINAPI acmFilterChooseW(
|
||||
PACMFILTERCHOOSEW pafltrc
|
||||
);
|
||||
MMRESULT WINAPI acmFilterDetailsA(
|
||||
HACMDRIVER had, PACMFILTERDETAILSA pafd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT WINAPI acmFilterDetailsW(
|
||||
HACMDRIVER had, PACMFILTERDETAILSW pafd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT WINAPI acmFilterEnumA(
|
||||
HACMDRIVER had, PACMFILTERDETAILSA pafd,
|
||||
ACMFILTERENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT WINAPI acmFilterEnumW(
|
||||
HACMDRIVER had, PACMFILTERDETAILSW pafd,
|
||||
ACMFILTERENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT WINAPI acmFilterTagDetailsA(
|
||||
HACMDRIVER had, PACMFILTERTAGDETAILSA paftd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT WINAPI acmFilterTagDetailsW(
|
||||
HACMDRIVER had, PACMFILTERTAGDETAILSW paftd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT WINAPI acmFilterTagEnumA(
|
||||
HACMDRIVER had, PACMFILTERTAGDETAILSA paftd,
|
||||
ACMFILTERTAGENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT WINAPI acmFilterTagEnumW(
|
||||
HACMDRIVER had, PACMFILTERTAGDETAILSW paftd,
|
||||
ACMFILTERTAGENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT WINAPI acmFormatChooseA(
|
||||
PACMFORMATCHOOSEA pafmtc
|
||||
);
|
||||
MMRESULT WINAPI acmFormatChooseW(
|
||||
PACMFORMATCHOOSEW pafmtc
|
||||
);
|
||||
MMRESULT WINAPI acmFormatDetailsA(
|
||||
HACMDRIVER had, PACMFORMATDETAILSA pafd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT WINAPI acmFormatDetailsW(
|
||||
HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT WINAPI acmFormatEnumA(
|
||||
HACMDRIVER had, PACMFORMATDETAILSA pafd,
|
||||
ACMFORMATENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT WINAPI acmFormatEnumW(
|
||||
HACMDRIVER had, PACMFORMATDETAILSW pafd,
|
||||
ACMFORMATENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT WINAPI acmFormatSuggest(
|
||||
HACMDRIVER had, PWAVEFORMATEX pwfxSrc, PWAVEFORMATEX pwfxDst,
|
||||
DWORD cbwfxDst, DWORD fdwSuggest
|
||||
);
|
||||
MMRESULT WINAPI acmFormatTagDetailsA(
|
||||
HACMDRIVER had, PACMFORMATTAGDETAILSA paftd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT WINAPI acmFormatTagDetailsW(
|
||||
HACMDRIVER had, PACMFORMATTAGDETAILSW paftd, DWORD fdwDetails
|
||||
);
|
||||
MMRESULT WINAPI acmFormatTagEnumA(
|
||||
HACMDRIVER had, PACMFORMATTAGDETAILSA paftd,
|
||||
ACMFORMATTAGENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
MMRESULT WINAPI acmFormatTagEnumW(
|
||||
HACMDRIVER had, PACMFORMATTAGDETAILSW paftd,
|
||||
ACMFORMATTAGENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum
|
||||
);
|
||||
DWORD WINAPI acmGetVersion(
|
||||
);
|
||||
MMRESULT WINAPI acmMetrics(
|
||||
HACMOBJ hao, UINT uMetric, LPVOID pMetric
|
||||
);
|
||||
MMRESULT WINAPI acmStreamClose(
|
||||
HACMSTREAM has, DWORD fdwClose
|
||||
);
|
||||
MMRESULT WINAPI acmStreamConvert(
|
||||
HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwConvert
|
||||
);
|
||||
MMRESULT WINAPI acmStreamMessage(
|
||||
HACMSTREAM has, UINT uMsg, LPARAM lParam1, LPARAM lParam2
|
||||
);
|
||||
MMRESULT WINAPI acmStreamOpen(
|
||||
PHACMSTREAM phas, HACMDRIVER had, PWAVEFORMATEX pwfxSrc,
|
||||
PWAVEFORMATEX pwfxDst, PWAVEFILTER pwfltr, DWORD dwCallback,
|
||||
DWORD dwInstance, DWORD fdwOpen
|
||||
);
|
||||
MMRESULT WINAPI acmStreamPrepareHeader(
|
||||
HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwPrepare
|
||||
);
|
||||
MMRESULT WINAPI acmStreamReset(
|
||||
HACMSTREAM has, DWORD fdwReset
|
||||
);
|
||||
MMRESULT WINAPI acmStreamSize(
|
||||
HACMSTREAM has, DWORD cbInput,
|
||||
LPDWORD pdwOutputBytes, DWORD fdwSize
|
||||
);
|
||||
MMRESULT WINAPI acmStreamUnprepareHeader(
|
||||
HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwUnprepare
|
||||
);
|
||||
void MSACM_RegisterAllDrivers(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
#endif /* __WINE_MSACM_H */
|
||||
|
||||
|
|
@ -1,203 +0,0 @@
|
|||
/*
|
||||
* msacmdrv.h - Declarations for MSACM driver
|
||||
*/
|
||||
|
||||
#ifndef __WINE_MSACMDRV_H
|
||||
#define __WINE_MSACMDRV_H
|
||||
|
||||
#include "windef.h"
|
||||
#include "msacm.h"
|
||||
|
||||
/***********************************************************************
|
||||
* Types
|
||||
*/
|
||||
|
||||
/***********************************************************************
|
||||
* Defines/Enums
|
||||
*/
|
||||
|
||||
#define MAKE_ACM_VERSION(mjr, mnr, bld) \
|
||||
(((long)(mjr)<<24) | ((long)(mnr)<<16) | ((long)bld))
|
||||
|
||||
#define ACMDRVOPENDESC_SECTIONNAME_CHARS
|
||||
|
||||
#define ACMDM_DRIVER_NOTIFY (ACMDM_BASE + 1)
|
||||
#define ACMDM_DRIVER_DETAILS (ACMDM_BASE + 10)
|
||||
|
||||
#define ACMDM_HARDWARE_WAVE_CAPS_INPUT (ACMDM_BASE + 20)
|
||||
#define ACMDM_HARDWARE_WAVE_CAPS_OUTPUT (ACMDM_BASE + 21)
|
||||
|
||||
#define ACMDM_FORMATTAG_DETAILS (ACMDM_BASE + 25)
|
||||
#define ACMDM_FORMAT_DETAILS (ACMDM_BASE + 26)
|
||||
#define ACMDM_FORMAT_SUGGEST (ACMDM_BASE + 27)
|
||||
|
||||
#define ACMDM_FILTERTAG_DETAILS (ACMDM_BASE + 50)
|
||||
#define ACMDM_FILTER_DETAILS (ACMDM_BASE + 51)
|
||||
|
||||
#define ACMDM_STREAM_OPEN (ACMDM_BASE + 76)
|
||||
#define ACMDM_STREAM_CLOSE (ACMDM_BASE + 77)
|
||||
#define ACMDM_STREAM_SIZE (ACMDM_BASE + 78)
|
||||
#define ACMDM_STREAM_CONVERT (ACMDM_BASE + 79)
|
||||
#define ACMDM_STREAM_RESET (ACMDM_BASE + 80)
|
||||
#define ACMDM_STREAM_PREPARE (ACMDM_BASE + 81)
|
||||
#define ACMDM_STREAM_UNPREPARE (ACMDM_BASE + 82)
|
||||
#define ACMDM_STREAM_UPDATE (ACMDM_BASE + 83)
|
||||
|
||||
/***********************************************************************
|
||||
* Structures
|
||||
*/
|
||||
|
||||
typedef struct _ACMDRVOPENDESCA
|
||||
{
|
||||
DWORD cbStruct;
|
||||
FOURCC fccType;
|
||||
FOURCC fccComp;
|
||||
DWORD dwVersion;
|
||||
DWORD dwFlags;
|
||||
DWORD dwError;
|
||||
LPCSTR pszSectionName;
|
||||
LPCSTR pszAliasName;
|
||||
DWORD dnDevNode;
|
||||
} ACMDRVOPENDESCA, *PACMDRVOPENDESCA;
|
||||
|
||||
typedef struct _ACMDRVOPENDESCW
|
||||
{
|
||||
DWORD cbStruct;
|
||||
FOURCC fccType;
|
||||
FOURCC fccComp;
|
||||
DWORD dwVersion;
|
||||
DWORD dwFlags;
|
||||
DWORD dwError;
|
||||
LPCWSTR pszSectionName;
|
||||
LPCWSTR pszAliasName;
|
||||
DWORD dnDevNode;
|
||||
} ACMDRVOPENDESCW, *PACMDRVOPENDESCW;
|
||||
|
||||
typedef struct _ACMDRVOPENDESC16
|
||||
{
|
||||
DWORD cbStruct;
|
||||
FOURCC fccType;
|
||||
FOURCC fccComp;
|
||||
DWORD dwVersion;
|
||||
DWORD dwFlags;
|
||||
DWORD dwError;
|
||||
LPCSTR pszSectionName;
|
||||
LPCSTR pszAliasName;
|
||||
DWORD dnDevNode;
|
||||
} ACMDRVOPENDESC16, *NPACMDRVOPENDESC16, *LPACMDRVOPENDESC16;
|
||||
|
||||
typedef struct _ACMDRVSTREAMINSTANCE16
|
||||
{
|
||||
DWORD cbStruct;
|
||||
LPWAVEFORMATEX pwfxSrc;
|
||||
LPWAVEFORMATEX pwfxDst;
|
||||
LPWAVEFILTER pwfltr;
|
||||
DWORD dwCallback;
|
||||
DWORD dwInstance;
|
||||
DWORD fdwOpen;
|
||||
DWORD fdwDriver;
|
||||
DWORD dwDriver;
|
||||
HACMSTREAM16 has;
|
||||
} ACMDRVSTREAMINSTANCE16, *NPACMDRVSTREAMINSTANCE16, *LPACMDRVSTREAMINSTANCE16;
|
||||
|
||||
typedef struct _ACMDRVSTREAMINSTANCE
|
||||
{
|
||||
DWORD cbStruct;
|
||||
PWAVEFORMATEX pwfxSrc;
|
||||
PWAVEFORMATEX pwfxDst;
|
||||
PWAVEFILTER pwfltr;
|
||||
DWORD dwCallback;
|
||||
DWORD dwInstance;
|
||||
DWORD fdwOpen;
|
||||
DWORD fdwDriver;
|
||||
DWORD dwDriver;
|
||||
HACMSTREAM has;
|
||||
} ACMDRVSTREAMINSTANCE, *PACMDRVSTREAMINSTANCE;
|
||||
|
||||
|
||||
typedef struct _ACMDRVSTREAMHEADER16 *LPACMDRVSTREAMHEADER16;
|
||||
typedef struct _ACMDRVSTREAMHEADER16 {
|
||||
DWORD cbStruct;
|
||||
DWORD fdwStatus;
|
||||
DWORD dwUser;
|
||||
LPBYTE pbSrc;
|
||||
DWORD cbSrcLength;
|
||||
DWORD cbSrcLengthUsed;
|
||||
DWORD dwSrcUser;
|
||||
LPBYTE pbDst;
|
||||
DWORD cbDstLength;
|
||||
DWORD cbDstLengthUsed;
|
||||
DWORD dwDstUser;
|
||||
|
||||
DWORD fdwConvert;
|
||||
LPACMDRVSTREAMHEADER16 *padshNext;
|
||||
DWORD fdwDriver;
|
||||
DWORD dwDriver;
|
||||
|
||||
/* Internal fields for ACM */
|
||||
DWORD fdwPrepared;
|
||||
DWORD dwPrepared;
|
||||
LPBYTE pbPreparedSrc;
|
||||
DWORD cbPreparedSrcLength;
|
||||
LPBYTE pbPreparedDst;
|
||||
DWORD cbPreparedDstLength;
|
||||
} ACMDRVSTREAMHEADER16, *NPACMDRVSTREAMHEADER16;
|
||||
|
||||
typedef struct _ACMDRVSTREAMHEADER *PACMDRVSTREAMHEADER;
|
||||
typedef struct _ACMDRVSTREAMHEADER {
|
||||
DWORD cbStruct;
|
||||
DWORD fdwStatus;
|
||||
DWORD dwUser;
|
||||
LPBYTE pbSrc;
|
||||
DWORD cbSrcLength;
|
||||
DWORD cbSrcLengthUsed;
|
||||
DWORD dwSrcUser;
|
||||
LPBYTE pbDst;
|
||||
DWORD cbDstLength;
|
||||
DWORD cbDstLengthUsed;
|
||||
DWORD dwDstUser;
|
||||
|
||||
DWORD fdwConvert;
|
||||
PACMDRVSTREAMHEADER *padshNext;
|
||||
DWORD fdwDriver;
|
||||
DWORD dwDriver;
|
||||
|
||||
/* Internal fields for ACM */
|
||||
DWORD fdwPrepared;
|
||||
DWORD dwPrepared;
|
||||
LPBYTE pbPreparedSrc;
|
||||
DWORD cbPreparedSrcLength;
|
||||
LPBYTE pbPreparedDst;
|
||||
DWORD cbPreparedDstLength;
|
||||
} ACMDRVSTREAMHEADER;
|
||||
|
||||
typedef struct _ACMDRVSTREAMSIZE
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD fdwSize;
|
||||
DWORD cbSrcLength;
|
||||
DWORD cbDstLength;
|
||||
} ACMDRVSTREAMSIZE16, *NPACMDRVSTREAMSIZE16, *LPACMDRVSTREAMSIZE16,
|
||||
ACMDRVSTREAMSIZE, *PACMDRVSTREAMSIZE;
|
||||
|
||||
typedef struct _ACMDRVFORMATSUGGEST16
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD fdwSuggest;
|
||||
LPWAVEFORMATEX pwfxSrc;
|
||||
DWORD cbwfxSrc;
|
||||
LPWAVEFORMATEX pwfxDst;
|
||||
DWORD cbwfxDst;
|
||||
} ACMDRVFORMATSUGGEST16, *NPACMDRVFORMATSUGGEST, *LPACMDRVFORMATSUGGEST;
|
||||
|
||||
typedef struct _ACMDRVFORMATSUGGEST
|
||||
{
|
||||
DWORD cbStruct;
|
||||
DWORD fdwSuggest;
|
||||
PWAVEFORMATEX pwfxSrc;
|
||||
DWORD cbwfxSrc;
|
||||
PWAVEFORMATEX pwfxDst;
|
||||
DWORD cbwfxDst;
|
||||
} ACMDRVFORMATSUGGEST, *PACMDRVFORMATSUGGEST;
|
||||
|
||||
#endif /* __WINE_MSACMDRV_H */
|
|
@ -1,101 +0,0 @@
|
|||
#ifndef __WINE_NTDEF_H
|
||||
#define __WINE_NTDEF_H
|
||||
|
||||
#include "basetsd.h"
|
||||
#include "windef.h"
|
||||
|
||||
#include "pshpack1.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define NTAPI __stdcall
|
||||
|
||||
#ifndef IN
|
||||
#define IN
|
||||
#endif
|
||||
|
||||
#ifndef OUT
|
||||
#define OUT
|
||||
#endif
|
||||
|
||||
#ifndef OPTIONAL
|
||||
#define OPTIONAL
|
||||
#endif
|
||||
|
||||
#ifndef VOID
|
||||
#define VOID void
|
||||
#endif
|
||||
|
||||
typedef LONG NTSTATUS;
|
||||
typedef NTSTATUS *PNTSTATUS;
|
||||
|
||||
typedef short CSHORT;
|
||||
typedef CSHORT *PCSHORT;
|
||||
|
||||
typedef WCHAR * PWCHAR;
|
||||
|
||||
/* NT lowlevel Strings (handled by Rtl* functions in NTDLL)
|
||||
* If they are zero terminated, Length does not include the terminating 0.
|
||||
*/
|
||||
|
||||
typedef struct _STRING {
|
||||
USHORT Length;
|
||||
USHORT MaximumLength;
|
||||
PSTR Buffer;
|
||||
} STRING,*PSTRING,ANSI_STRING,*PANSI_STRING;
|
||||
|
||||
typedef struct _CSTRING {
|
||||
USHORT Length;
|
||||
USHORT MaximumLength;
|
||||
PCSTR Buffer;
|
||||
} CSTRING,*PCSTRING;
|
||||
|
||||
typedef struct _UNICODE_STRING {
|
||||
USHORT Length; /* bytes */
|
||||
USHORT MaximumLength; /* bytes */
|
||||
PWSTR Buffer;
|
||||
} UNICODE_STRING,*PUNICODE_STRING;
|
||||
|
||||
/*
|
||||
Objects
|
||||
*/
|
||||
|
||||
#define OBJ_INHERIT 0x00000002L
|
||||
#define OBJ_PERMANENT 0x00000010L
|
||||
#define OBJ_EXCLUSIVE 0x00000020L
|
||||
#define OBJ_CASE_INSENSITIVE 0x00000040L
|
||||
#define OBJ_OPENIF 0x00000080L
|
||||
#define OBJ_OPENLINK 0x00000100L
|
||||
#define OBJ_KERNEL_HANDLE 0x00000200L
|
||||
#define OBJ_VALID_ATTRIBUTES 0x000003F2L
|
||||
|
||||
typedef struct _OBJECT_ATTRIBUTES
|
||||
{ ULONG Length;
|
||||
HANDLE RootDirectory;
|
||||
PUNICODE_STRING ObjectName;
|
||||
ULONG Attributes;
|
||||
PVOID SecurityDescriptor; /* type SECURITY_DESCRIPTOR */
|
||||
PVOID SecurityQualityOfService; /* type SECURITY_QUALITY_OF_SERVICE */
|
||||
} OBJECT_ATTRIBUTES;
|
||||
|
||||
typedef OBJECT_ATTRIBUTES *POBJECT_ATTRIBUTES;
|
||||
|
||||
#define InitializeObjectAttributes(p,n,a,r,s) \
|
||||
{ (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
|
||||
(p)->RootDirectory = r; \
|
||||
(p)->Attributes = a; \
|
||||
(p)->ObjectName = n; \
|
||||
(p)->SecurityDescriptor = s; \
|
||||
(p)->SecurityQualityOfService = NULL; \
|
||||
}
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "poppack.h"
|
||||
|
||||
#endif
|
|
@ -1,81 +0,0 @@
|
|||
#ifndef __WINE_PE_IMAGE_H
|
||||
#define __WINE_PE_IMAGE_H
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
|
||||
#define PE_HEADER(module) \
|
||||
((IMAGE_NT_HEADERS*)((LPBYTE)(module) + \
|
||||
(((IMAGE_DOS_HEADER*)(module))->e_lfanew)))
|
||||
|
||||
#define PE_SECTIONS(module) \
|
||||
((IMAGE_SECTION_HEADER*)((LPBYTE)&PE_HEADER(module)->OptionalHeader + \
|
||||
PE_HEADER(module)->FileHeader.SizeOfOptionalHeader))
|
||||
|
||||
#define RVA_PTR(module,field) ((LPBYTE)(module) + PE_HEADER(module)->field)
|
||||
|
||||
/* modreference used for attached processes
|
||||
* all section are calculated here, relocations etc.
|
||||
*/
|
||||
typedef struct {
|
||||
PIMAGE_IMPORT_DESCRIPTOR pe_import;
|
||||
PIMAGE_EXPORT_DIRECTORY pe_export;
|
||||
PIMAGE_RESOURCE_DIRECTORY pe_resource;
|
||||
int tlsindex;
|
||||
} PE_MODREF;
|
||||
|
||||
struct _wine_modref;
|
||||
extern int PE_unloadImage(HMODULE hModule);
|
||||
extern FARPROC PE_FindExportedFunction(struct _wine_modref *wm, LPCSTR funcName, WIN_BOOL snoop);
|
||||
extern WIN_BOOL PE_EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG);
|
||||
extern WIN_BOOL PE_EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG);
|
||||
extern WIN_BOOL PE_EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,LONG);
|
||||
extern WIN_BOOL PE_EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,LONG);
|
||||
extern WIN_BOOL PE_EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,ENUMRESLANGPROCA,LONG);
|
||||
extern WIN_BOOL PE_EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,ENUMRESLANGPROCW,LONG);
|
||||
extern HRSRC PE_FindResourceExW(struct _wine_modref*,LPCWSTR,LPCWSTR,WORD);
|
||||
extern DWORD PE_SizeofResource(HMODULE,HRSRC);
|
||||
extern struct _wine_modref *PE_LoadLibraryExA(LPCSTR, DWORD);
|
||||
extern void PE_UnloadLibrary(struct _wine_modref *);
|
||||
extern HGLOBAL PE_LoadResource(struct _wine_modref *wm,HRSRC);
|
||||
extern HMODULE PE_LoadImage( int hFile, LPCSTR filename, WORD *version );
|
||||
extern struct _wine_modref *PE_CreateModule( HMODULE hModule, LPCSTR filename,
|
||||
DWORD flags, WIN_BOOL builtin );
|
||||
extern WIN_BOOL PE_CreateProcess( HANDLE hFile, LPCSTR filename, LPCSTR cmd_line, LPCSTR env,
|
||||
LPSECURITY_ATTRIBUTES psa, LPSECURITY_ATTRIBUTES tsa,
|
||||
WIN_BOOL inherit, DWORD flags, LPSTARTUPINFOA startup,
|
||||
LPPROCESS_INFORMATION info );
|
||||
|
||||
extern void PE_InitTls(void);
|
||||
extern WIN_BOOL PE_InitDLL(struct _wine_modref *wm, DWORD type, LPVOID lpReserved);
|
||||
|
||||
extern PIMAGE_RESOURCE_DIRECTORY GetResDirEntryA(PIMAGE_RESOURCE_DIRECTORY,LPCSTR,DWORD,WIN_BOOL);
|
||||
extern PIMAGE_RESOURCE_DIRECTORY GetResDirEntryW(PIMAGE_RESOURCE_DIRECTORY,LPCWSTR,DWORD,WIN_BOOL);
|
||||
|
||||
typedef DWORD CALLBACK (*DLLENTRYPROC)(HMODULE,DWORD,LPVOID);
|
||||
|
||||
typedef struct {
|
||||
WORD popl WINE_PACKED; /* 0x8f 0x05 */
|
||||
DWORD addr_popped WINE_PACKED;/* ... */
|
||||
BYTE pushl1 WINE_PACKED; /* 0x68 */
|
||||
DWORD newret WINE_PACKED; /* ... */
|
||||
BYTE pushl2 WINE_PACKED; /* 0x68 */
|
||||
DWORD origfun WINE_PACKED; /* original function */
|
||||
BYTE ret1 WINE_PACKED; /* 0xc3 */
|
||||
WORD addesp WINE_PACKED; /* 0x83 0xc4 */
|
||||
BYTE nrofargs WINE_PACKED; /* nr of arguments to add esp, */
|
||||
BYTE pushl3 WINE_PACKED; /* 0x68 */
|
||||
DWORD oldret WINE_PACKED; /* Filled out from popl above */
|
||||
BYTE ret2 WINE_PACKED; /* 0xc3 */
|
||||
} ELF_STDCALL_STUB;
|
||||
|
||||
typedef struct {
|
||||
void* dlhandle;
|
||||
ELF_STDCALL_STUB *stubs;
|
||||
} ELF_MODREF;
|
||||
|
||||
extern struct _wine_modref *ELF_LoadLibraryExA( LPCSTR libname, DWORD flags);
|
||||
extern void ELF_UnloadLibrary(struct _wine_modref *);
|
||||
extern FARPROC ELF_FindExportedFunction(struct _wine_modref *wm, LPCSTR funcName);
|
||||
|
||||
#endif /* __WINE_PE_IMAGE_H */
|
|
@ -1,15 +0,0 @@
|
|||
#ifdef __WINE_PSHPACK_H
|
||||
#undef __WINE_PSHPACK_H
|
||||
|
||||
#if defined(__GNUC__) || defined(__SUNPRO_C)
|
||||
#pragma pack()
|
||||
#elif defined(__SUNPRO_CC)
|
||||
#warning "Assumes default alignment is 4"
|
||||
#pragma pack(4)
|
||||
#elif !defined(RC_INVOKED)
|
||||
#error "Restoration of the previous alignment isn't supported by the compiler"
|
||||
#endif /* defined(__GNUC__) || defined(__SUNPRO_C) ; !defined(RC_INVOKED) */
|
||||
|
||||
#else /* defined(__WINE_PSHPACK_H) */
|
||||
#error "Popping alignment isn't possible since no alignment has been pushed"
|
||||
#endif /* defined(__WINE_PSHPACK_H) */
|
|
@ -1,13 +0,0 @@
|
|||
#ifndef __WINE_PSHPACK_H
|
||||
#define __WINE_PSHPACK_H 1
|
||||
|
||||
#if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
||||
#pragma pack(1)
|
||||
#elif !defined(RC_INVOKED)
|
||||
#error "1 as alignment isn't supported by the compiler"
|
||||
#endif /* defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) ; !defined(RC_INVOKED) */
|
||||
|
||||
#else /* !defined(__WINE_PSHPACK_H) */
|
||||
#error "Nested pushing of alignment isn't supported by the compiler"
|
||||
#endif /* !defined(__WINE_PSHPACK_H) */
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#ifndef __WINE_PSHPACK_H
|
||||
#define __WINE_PSHPACK_H 2
|
||||
|
||||
#if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
||||
#pragma pack(2)
|
||||
#elif !defined(RC_INVOKED)
|
||||
#error "2 as alignment isn't supported by the compiler"
|
||||
#endif /* defined(__GNUC__) || defined(__SUNPRO_CC) ; !defined(RC_INVOKED) */
|
||||
|
||||
#else /* !defined(__WINE_PSHPACK_H) */
|
||||
#error "Nested pushing of alignment isn't supported by the compiler"
|
||||
#endif /* !defined(__WINE_PSHPACK_H) */
|
|
@ -1,15 +0,0 @@
|
|||
#ifndef __WINE_PSHPACK_H
|
||||
#define __WINE_PSHPACK_H 4
|
||||
|
||||
#if defined(__GNUC__) || defined(__SUNPRO_CC)
|
||||
#pragma pack(4)
|
||||
#elif defined(__SUNPRO_C)
|
||||
#pragma pack()
|
||||
#elif !defined(RC_INVOKED)
|
||||
#error "4 as alignment isn't supported by the compiler"
|
||||
#endif /* defined(__GNUC__) || defined(__SUNPRO_CC) ; !defined(RC_INVOKED) */
|
||||
|
||||
#else /* !defined(__WINE_PSHPACK_H) */
|
||||
#error "Nested pushing of alignment isn't supported by the compiler"
|
||||
#endif /* !defined(__WINE_PSHPACK_H) */
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#ifndef __WINE_PSHPACK_H
|
||||
#define __WINE_PSHPACK_H 8
|
||||
|
||||
#if 0
|
||||
#pragma pack(8)
|
||||
#elif !defined(RC_INVOKED)
|
||||
#error "8 as alignment is not supported"
|
||||
#endif /* 0 ; !defined(RC_INVOKED) */
|
||||
|
||||
#else /* !defined(__WINE_PSHPACK_H) */
|
||||
#error "Nested pushing of alignment isn't supported by the compiler"
|
||||
#endif /* !defined(__WINE_PSHPACK_H) */
|
|
@ -1,654 +0,0 @@
|
|||
#ifndef __WINE_VFW_H
|
||||
#define __WINE_VFW_H
|
||||
#include "pshpack1.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#ifndef __WINE_WINGDI_H
|
||||
|
||||
typedef struct
|
||||
{
|
||||
short bfType;
|
||||
long bfSize;
|
||||
short bfReserved1;
|
||||
short bfReserved2;
|
||||
long bfOffBits;
|
||||
} BITMAPFILEHEADER;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
long biSize;
|
||||
long biWidth;
|
||||
long biHeight;
|
||||
short biPlanes;
|
||||
short biBitCount;
|
||||
long biCompression;
|
||||
long biSizeImage;
|
||||
long biXPelsPerMeter;
|
||||
long biYPelsPerMeter;
|
||||
long biClrUsed;
|
||||
long biClrImportant;
|
||||
} BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER;
|
||||
typedef struct {
|
||||
BITMAPINFOHEADER bmiHeader;
|
||||
int bmiColors[1];
|
||||
} BITMAPINFO, *LPBITMAPINFO;
|
||||
#endif
|
||||
#define VFWAPI
|
||||
#define VFWAPIV
|
||||
#ifndef __WINE_WINDEF_H
|
||||
typedef long (__stdcall__ *DRIVERPROC)(long,HDRVR,unsigned int,long,long);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifndef mmioFOURCC
|
||||
#define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
|
||||
( (long)(unsigned char)(ch0) | ( (long)(unsigned char)(ch1) << 8 ) | \
|
||||
( (long)(unsigned char)(ch2) << 16 ) | ( (long)(unsigned char)(ch3) << 24 ) )
|
||||
#endif
|
||||
|
||||
#ifndef aviTWOCC
|
||||
#define aviTWOCC(ch0, ch1) ((short)(unsigned char)(ch0) | ((short)(unsigned char)(ch1) << 8))
|
||||
#endif
|
||||
|
||||
#define ICTYPE_VIDEO mmioFOURCC('v', 'i', 'd', 'c')
|
||||
#define ICTYPE_AUDIO mmioFOURCC('a', 'u', 'd', 'c')
|
||||
|
||||
|
||||
/* Installable Compressor M? */
|
||||
|
||||
/* HIC struct (same layout as Win95 one) */
|
||||
typedef struct tagWINE_HIC {
|
||||
long magic; /* 00: 'Smag' */
|
||||
HANDLE curthread; /* 04: */
|
||||
long type; /* 08: */
|
||||
long handler; /* 0C: */
|
||||
HDRVR hdrv; /* 10: */
|
||||
#ifndef __cplusplus
|
||||
long private; /* 14:(handled by SendDriverMessage)*/
|
||||
#else
|
||||
long _private; /* 14:(handled by SendDriverMessage)*/
|
||||
#endif
|
||||
DRIVERPROC driverproc; /* 18:(handled by SendDriverMessage)*/
|
||||
long x1; /* 1c: name? */
|
||||
short x2; /* 20: */
|
||||
long x3; /* 22: */
|
||||
/* 26: */
|
||||
} WINE_HIC;
|
||||
|
||||
/* error return codes */
|
||||
#define ICERR_OK 0
|
||||
#define ICERR_DONTDRAW 1
|
||||
#define ICERR_NEWPALETTE 2
|
||||
#define ICERR_GOTOKEYFRAME 3
|
||||
#define ICERR_STOPDRAWING 4
|
||||
|
||||
#define ICERR_UNSUPPORTED -1
|
||||
#define ICERR_BADFORMAT -2
|
||||
#define ICERR_MEMORY -3
|
||||
#define ICERR_INTERNAL -4
|
||||
#define ICERR_BADFLAGS -5
|
||||
#define ICERR_BADPARAM -6
|
||||
#define ICERR_BADSIZE -7
|
||||
#define ICERR_BADHANDLE -8
|
||||
#define ICERR_CANTUPDATE -9
|
||||
#define ICERR_ABORT -10
|
||||
#define ICERR_ERROR -100
|
||||
#define ICERR_BADBITDEPTH -200
|
||||
#define ICERR_BADIMAGESIZE -201
|
||||
|
||||
#define ICERR_CUSTOM -400
|
||||
|
||||
/* ICM Messages */
|
||||
#define ICM_USER (DRV_USER+0x0000)
|
||||
|
||||
/* ICM driver message range */
|
||||
#define ICM_RESERVED_LOW (DRV_USER+0x1000)
|
||||
#define ICM_RESERVED_HIGH (DRV_USER+0x2000)
|
||||
#define ICM_RESERVED ICM_RESERVED_LOW
|
||||
|
||||
#define ICM_GETSTATE (ICM_RESERVED+0)
|
||||
#define ICM_SETSTATE (ICM_RESERVED+1)
|
||||
#define ICM_GETINFO (ICM_RESERVED+2)
|
||||
|
||||
#define ICM_CONFIGURE (ICM_RESERVED+10)
|
||||
#define ICM_ABOUT (ICM_RESERVED+11)
|
||||
/* */
|
||||
|
||||
#define ICM_GETDEFAULTQUALITY (ICM_RESERVED+30)
|
||||
#define ICM_GETQUALITY (ICM_RESERVED+31)
|
||||
#define ICM_SETQUALITY (ICM_RESERVED+32)
|
||||
|
||||
#define ICM_SET (ICM_RESERVED+40)
|
||||
#define ICM_GET (ICM_RESERVED+41)
|
||||
|
||||
/* 2 constant FOURCC codes */
|
||||
#define ICM_FRAMERATE mmioFOURCC('F','r','m','R')
|
||||
#define ICM_KEYFRAMERATE mmioFOURCC('K','e','y','R')
|
||||
|
||||
#define ICM_COMPRESS_GET_FORMAT (ICM_USER+4)
|
||||
#define ICM_COMPRESS_GET_SIZE (ICM_USER+5)
|
||||
#define ICM_COMPRESS_QUERY (ICM_USER+6)
|
||||
#define ICM_COMPRESS_BEGIN (ICM_USER+7)
|
||||
#define ICM_COMPRESS (ICM_USER+8)
|
||||
#define ICM_COMPRESS_END (ICM_USER+9)
|
||||
|
||||
#define ICM_DECOMPRESS_GET_FORMAT (ICM_USER+10)
|
||||
#define ICM_DECOMPRESS_QUERY (ICM_USER+11)
|
||||
#define ICM_DECOMPRESS_BEGIN (ICM_USER+12)
|
||||
#define ICM_DECOMPRESS (ICM_USER+13)
|
||||
#define ICM_DECOMPRESS_END (ICM_USER+14)
|
||||
#define ICM_DECOMPRESS_SET_PALETTE (ICM_USER+29)
|
||||
#define ICM_DECOMPRESS_GET_PALETTE (ICM_USER+30)
|
||||
|
||||
#define ICM_DRAW_QUERY (ICM_USER+31)
|
||||
#define ICM_DRAW_BEGIN (ICM_USER+15)
|
||||
#define ICM_DRAW_GET_PALETTE (ICM_USER+16)
|
||||
#define ICM_DRAW_START (ICM_USER+18)
|
||||
#define ICM_DRAW_STOP (ICM_USER+19)
|
||||
#define ICM_DRAW_END (ICM_USER+21)
|
||||
#define ICM_DRAW_GETTIME (ICM_USER+32)
|
||||
#define ICM_DRAW (ICM_USER+33)
|
||||
#define ICM_DRAW_WINDOW (ICM_USER+34)
|
||||
#define ICM_DRAW_SETTIME (ICM_USER+35)
|
||||
#define ICM_DRAW_REALIZE (ICM_USER+36)
|
||||
#define ICM_DRAW_FLUSH (ICM_USER+37)
|
||||
#define ICM_DRAW_RENDERBUFFER (ICM_USER+38)
|
||||
|
||||
#define ICM_DRAW_START_PLAY (ICM_USER+39)
|
||||
#define ICM_DRAW_STOP_PLAY (ICM_USER+40)
|
||||
|
||||
#define ICM_DRAW_SUGGESTFORMAT (ICM_USER+50)
|
||||
#define ICM_DRAW_CHANGEPALETTE (ICM_USER+51)
|
||||
|
||||
#define ICM_GETBUFFERSWANTED (ICM_USER+41)
|
||||
|
||||
#define ICM_GETDEFAULTKEYFRAMERATE (ICM_USER+42)
|
||||
|
||||
#define ICM_DECOMPRESSEX_BEGIN (ICM_USER+60)
|
||||
#define ICM_DECOMPRESSEX_QUERY (ICM_USER+61)
|
||||
#define ICM_DECOMPRESSEX (ICM_USER+62)
|
||||
#define ICM_DECOMPRESSEX_END (ICM_USER+63)
|
||||
|
||||
#define ICM_COMPRESS_FRAMES_INFO (ICM_USER+70)
|
||||
#define ICM_SET_STATUS_PROC (ICM_USER+72)
|
||||
|
||||
/* structs */
|
||||
|
||||
typedef struct {
|
||||
long dwSize; /* 00: size */
|
||||
long fccType; /* 04: type 'vidc' usually */
|
||||
long fccHandler; /* 08: */
|
||||
long dwVersion; /* 0c: version of compman opening you */
|
||||
long dwFlags; /* 10: LOshort is type specific */
|
||||
LRESULT dwError; /* 14: */
|
||||
void* pV1Reserved; /* 18: */
|
||||
void* pV2Reserved; /* 1c: */
|
||||
long dnDevNode; /* 20: */
|
||||
/* 24: */
|
||||
} ICOPEN,*LPICOPEN;
|
||||
|
||||
#define ICCOMPRESS_KEYFRAME 0x00000001L
|
||||
|
||||
typedef struct {
|
||||
long dwFlags;
|
||||
LPBITMAPINFOHEADER lpbiOutput;
|
||||
void* lpOutput;
|
||||
LPBITMAPINFOHEADER lpbiInput;
|
||||
void* lpInput;
|
||||
long* lpckid;
|
||||
long* lpdwFlags;
|
||||
long lFrameNum;
|
||||
long dwFrameSize;
|
||||
long dwQuality;
|
||||
LPBITMAPINFOHEADER lpbiPrev;
|
||||
void* lpPrev;
|
||||
} ICCOMPRESS;
|
||||
|
||||
long VFWAPIV ICCompress(
|
||||
HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiOutput,void* lpData,
|
||||
LPBITMAPINFOHEADER lpbiInput,void* lpBits,long* lpckid,
|
||||
long* lpdwFlags,long lFrameNum,long dwFrameSize,long dwQuality,
|
||||
LPBITMAPINFOHEADER lpbiPrev,void* lpPrev
|
||||
);
|
||||
|
||||
|
||||
#define ICCompressGetFormat(hic, lpbiInput, lpbiOutput) \
|
||||
ICSendMessage( \
|
||||
hic,ICM_COMPRESS_GET_FORMAT,(long)(void*)(lpbiInput), \
|
||||
(long)(void*)(lpbiOutput) \
|
||||
)
|
||||
|
||||
#define ICCompressGetFormatSize(hic,lpbi) ICCompressGetFormat(hic,lpbi,NULL)
|
||||
|
||||
#define ICGetDefaultKeyFrameRate(hic,lpint) \
|
||||
ICSendMessage( \
|
||||
hic, ICM_GETDEFAULTKEYFRAMERATE, \
|
||||
(long)(void*)(lpint), \
|
||||
0 )
|
||||
|
||||
#define ICGetDefaultQuality(hic,lpint) \
|
||||
ICSendMessage( \
|
||||
hic, ICM_GETDEFAULTQUALITY, \
|
||||
(long)(void*)(lpint), \
|
||||
0 )
|
||||
|
||||
|
||||
#define ICCompressBegin(hic, lpbiInput, lpbiOutput) \
|
||||
ICSendMessage( \
|
||||
hic, ICM_COMPRESS_BEGIN, (long)(void*)(lpbiInput), \
|
||||
(long)(void*)(lpbiOutput) \
|
||||
)
|
||||
|
||||
#define ICCompressGetSize(hic, lpbiInput, lpbiOutput) \
|
||||
ICSendMessage( \
|
||||
hic, ICM_COMPRESS_GET_SIZE, (long)(void*)(lpbiInput), \
|
||||
(long)(void*)(lpbiOutput) \
|
||||
)
|
||||
|
||||
#define ICCompressQuery(hic, lpbiInput, lpbiOutput) \
|
||||
ICSendMessage( \
|
||||
hic, ICM_COMPRESS_QUERY, (long)(void*)(lpbiInput), \
|
||||
(long)(void*)(lpbiOutput) \
|
||||
)
|
||||
|
||||
|
||||
#define ICCompressEnd(hic) ICSendMessage(hic, ICM_COMPRESS_END, 0, 0)
|
||||
|
||||
/* ICCOMPRESSFRAMES.dwFlags */
|
||||
#define ICCOMPRESSFRAMES_PADDING 0x00000001
|
||||
typedef struct {
|
||||
long dwFlags;
|
||||
LPBITMAPINFOHEADER lpbiOutput;
|
||||
LPARAM lOutput;
|
||||
LPBITMAPINFOHEADER lpbiInput;
|
||||
LPARAM lInput;
|
||||
long lStartFrame;
|
||||
long lFrameCount;
|
||||
long lQuality;
|
||||
long lDataRate;
|
||||
long lKeyRate;
|
||||
long dwRate;
|
||||
long dwScale;
|
||||
long dwOverheadPerFrame;
|
||||
long dwReserved2;
|
||||
long CALLBACK (*GetData)(LPARAM lInput,long lFrame,void* lpBits,long len);
|
||||
long CALLBACK (*PutData)(LPARAM lOutput,long lFrame,void* lpBits,long len);
|
||||
} ICCOMPRESSFRAMES;
|
||||
|
||||
/* Values for wMode of ICOpen() */
|
||||
#define ICMODE_COMPRESS 1
|
||||
#define ICMODE_DECOMPRESS 2
|
||||
#define ICMODE_FASTDECOMPRESS 3
|
||||
#define ICMODE_QUERY 4
|
||||
#define ICMODE_FASTCOMPRESS 5
|
||||
#define ICMODE_DRAW 8
|
||||
|
||||
/* quality flags */
|
||||
#define ICQUALITY_LOW 0
|
||||
#define ICQUALITY_HIGH 10000
|
||||
#define ICQUALITY_DEFAULT -1
|
||||
|
||||
typedef struct {
|
||||
long dwSize; /* 00: */
|
||||
long fccType; /* 04:compressor type 'vidc' 'audc' */
|
||||
long fccHandler; /* 08:compressor sub-type 'rle ' 'jpeg' 'pcm '*/
|
||||
long dwFlags; /* 0c:flags LOshort is type specific */
|
||||
long dwVersion; /* 10:version of the driver */
|
||||
long dwVersionICM; /* 14:version of the ICM used */
|
||||
/*
|
||||
* under Win32, the driver always returns UNICODE strings.
|
||||
*/
|
||||
WCHAR szName[16]; /* 18:short name */
|
||||
WCHAR szDescription[128]; /* 38:long name */
|
||||
WCHAR szDriver[128]; /* 138:driver that contains compressor*/
|
||||
/* 238: */
|
||||
} ICINFO;
|
||||
|
||||
/* ICINFO.dwFlags */
|
||||
#define VIDCF_QUALITY 0x0001 /* supports quality */
|
||||
#define VIDCF_CRUNCH 0x0002 /* supports crunching to a frame size */
|
||||
#define VIDCF_TEMPORAL 0x0004 /* supports inter-frame compress */
|
||||
#define VIDCF_COMPRESSFRAMES 0x0008 /* wants the compress all frames message */
|
||||
#define VIDCF_DRAW 0x0010 /* supports drawing */
|
||||
#define VIDCF_FASTTEMPORALC 0x0020 /* does not need prev frame on compress */
|
||||
#define VIDCF_FASTTEMPORALD 0x0080 /* does not need prev frame on decompress */
|
||||
#define VIDCF_QUALITYTIME 0x0040 /* supports temporal quality */
|
||||
|
||||
#define VIDCF_FASTTEMPORAL (VIDCF_FASTTEMPORALC|VIDCF_FASTTEMPORALD)
|
||||
|
||||
|
||||
/* function shortcuts */
|
||||
/* ICM_ABOUT */
|
||||
#define ICMF_ABOUT_QUERY 0x00000001
|
||||
|
||||
#define ICQueryAbout(hic) \
|
||||
(ICSendMessage(hic,ICM_ABOUT,(long)-1,ICMF_ABOUT_QUERY)==ICERR_OK)
|
||||
|
||||
#define ICAbout(hic, hwnd) ICSendMessage(hic,ICM_ABOUT,(long)(unsigned int)(hwnd),0)
|
||||
|
||||
/* ICM_CONFIGURE */
|
||||
#define ICMF_CONFIGURE_QUERY 0x00000001
|
||||
#define ICQueryConfigure(hic) \
|
||||
(ICSendMessage(hic,ICM_CONFIGURE,(long)-1,ICMF_CONFIGURE_QUERY)==ICERR_OK)
|
||||
|
||||
#define ICConfigure(hic,hwnd) \
|
||||
ICSendMessage(hic,ICM_CONFIGURE,(long)(unsigned int)(hwnd),0)
|
||||
|
||||
/* Decompression stuff */
|
||||
#define ICDECOMPRESS_HURRYUP 0x80000000 /* don't draw just buffer (hurry up!) */
|
||||
#define ICDECOMPRESS_UPDATE 0x40000000 /* don't draw just update screen */
|
||||
#define ICDECOMPRESS_PREROL 0x20000000 /* this frame is before real start */
|
||||
#define ICDECOMPRESS_NULLFRAME 0x10000000 /* repeat last frame */
|
||||
#define ICDECOMPRESS_NOTKEYFRAME 0x08000000 /* this frame is not a key frame */
|
||||
|
||||
typedef struct {
|
||||
long dwFlags; /* flags (from AVI index...) */
|
||||
LPBITMAPINFOHEADER lpbiInput; /* BITMAPINFO of compressed data */
|
||||
void* lpInput; /* compressed data */
|
||||
LPBITMAPINFOHEADER lpbiOutput; /* DIB to decompress to */
|
||||
void* lpOutput;
|
||||
long ckid; /* ckid from AVI file */
|
||||
} ICDECOMPRESS;
|
||||
|
||||
typedef struct {
|
||||
long dwFlags;
|
||||
LPBITMAPINFOHEADER lpbiSrc;
|
||||
void* lpSrc;
|
||||
LPBITMAPINFOHEADER lpbiDst;
|
||||
void* lpDst;
|
||||
|
||||
/* changed for ICM_DECOMPRESSEX */
|
||||
INT xDst; /* destination rectangle */
|
||||
INT yDst;
|
||||
INT dxDst;
|
||||
INT dyDst;
|
||||
|
||||
INT xSrc; /* source rectangle */
|
||||
INT ySrc;
|
||||
INT dxSrc;
|
||||
INT dySrc;
|
||||
} ICDECOMPRESSEX;
|
||||
|
||||
|
||||
long VFWAPIV ICDecompress(HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiFormat,void* lpData,LPBITMAPINFOHEADER lpbi,void* lpBits);
|
||||
|
||||
|
||||
#define ICDecompressBegin(hic, lpbiInput, lpbiOutput) \
|
||||
ICSendMessage( \
|
||||
hic, ICM_DECOMPRESS_BEGIN, (long)(void*)(lpbiInput), \
|
||||
(long)(void*)(lpbiOutput) \
|
||||
)
|
||||
|
||||
#define ICDecompressQuery(hic, lpbiInput, lpbiOutput) \
|
||||
ICSendMessage( \
|
||||
hic,ICM_DECOMPRESS_QUERY, (long)(void*)(lpbiInput), \
|
||||
(long) (void*)(lpbiOutput) \
|
||||
)
|
||||
|
||||
#define ICDecompressGetFormat(hic, lpbiInput, lpbiOutput) \
|
||||
((long)ICSendMessage( \
|
||||
hic,ICM_DECOMPRESS_GET_FORMAT, (long)(void*)(lpbiInput), \
|
||||
(long)(void*)(lpbiOutput) \
|
||||
))
|
||||
|
||||
#define ICDecompressGetFormatSize(hic, lpbi) \
|
||||
ICDecompressGetFormat(hic, lpbi, NULL)
|
||||
|
||||
#define ICDecompressGetPalette(hic, lpbiInput, lpbiOutput) \
|
||||
ICSendMessage( \
|
||||
hic, ICM_DECOMPRESS_GET_PALETTE, (long)(void*)(lpbiInput), \
|
||||
(long)(void*)(lpbiOutput) \
|
||||
)
|
||||
|
||||
#define ICDecompressSetPalette(hic,lpbiPalette) \
|
||||
ICSendMessage( \
|
||||
hic,ICM_DECOMPRESS_SET_PALETTE, \
|
||||
(long)(void*)(lpbiPalette),0 \
|
||||
)
|
||||
|
||||
#define ICDecompressEnd(hic) ICSendMessage(hic, ICM_DECOMPRESS_END, 0, 0)
|
||||
|
||||
|
||||
#define ICDRAW_QUERY 0x00000001L /* test for support */
|
||||
#define ICDRAW_FULLSCREEN 0x00000002L /* draw to full screen */
|
||||
#define ICDRAW_HDC 0x00000004L /* draw to a HDC/HWND */
|
||||
|
||||
|
||||
WIN_BOOL VFWAPI ICInfo(long fccType, long fccHandler, ICINFO * lpicinfo);
|
||||
LRESULT VFWAPI ICGetInfo(HIC hic,ICINFO *picinfo, long cb);
|
||||
HIC VFWAPI ICOpen(long fccType, long fccHandler, UINT wMode);
|
||||
HIC VFWAPI ICOpenFunction(long fccType, long fccHandler, unsigned int wMode, void* lpfnHandler);
|
||||
|
||||
LRESULT VFWAPI ICClose(HIC hic);
|
||||
LRESULT VFWAPI ICSendMessage(HIC hic, unsigned int msg, long dw1, long dw2);
|
||||
HIC VFWAPI ICLocate(long fccType, long fccHandler, LPBITMAPINFOHEADER lpbiIn, LPBITMAPINFOHEADER lpbiOut, short wFlags);
|
||||
|
||||
int VFWAPI ICDoSomething();
|
||||
|
||||
long VFWAPIV ICDrawBegin(
|
||||
HIC hic,
|
||||
long dwFlags,/* flags */
|
||||
HPALETTE hpal, /* palette to draw with */
|
||||
HWND hwnd, /* window to draw to */
|
||||
HDC hdc, /* HDC to draw to */
|
||||
INT xDst, /* destination rectangle */
|
||||
INT yDst,
|
||||
INT dxDst,
|
||||
INT dyDst,
|
||||
LPBITMAPINFOHEADER lpbi, /* format of frame to draw */
|
||||
INT xSrc, /* source rectangle */
|
||||
INT ySrc,
|
||||
INT dxSrc,
|
||||
INT dySrc,
|
||||
long dwRate, /* frames/second = (dwRate/dwScale) */
|
||||
long dwScale
|
||||
);
|
||||
|
||||
/* as passed to ICM_DRAW_BEGIN (FIXME: correct only for Win32?) */
|
||||
typedef struct {
|
||||
long dwFlags;
|
||||
HPALETTE hpal;
|
||||
HWND hwnd;
|
||||
HDC hdc;
|
||||
INT xDst;
|
||||
INT yDst;
|
||||
INT dxDst;
|
||||
INT dyDst;
|
||||
LPBITMAPINFOHEADER lpbi;
|
||||
INT xSrc;
|
||||
INT ySrc;
|
||||
INT dxSrc;
|
||||
INT dySrc;
|
||||
long dwRate;
|
||||
long dwScale;
|
||||
} ICDRAWBEGIN;
|
||||
|
||||
#define ICDRAW_HURRYUP 0x80000000L /* don't draw just buffer (hurry up!) */
|
||||
#define ICDRAW_UPDATE 0x40000000L /* don't draw just update screen */
|
||||
#define ICDRAW_PREROLL 0x20000000L /* this frame is before real start */
|
||||
#define ICDRAW_NULLFRAME 0x10000000L /* repeat last frame */
|
||||
#define ICDRAW_NOTKEYFRAME 0x08000000L /* this frame is not a key frame */
|
||||
|
||||
typedef struct {
|
||||
long dwFlags;
|
||||
void* lpFormat;
|
||||
void* lpData;
|
||||
long cbData;
|
||||
long lTime;
|
||||
} ICDRAW;
|
||||
|
||||
long VFWAPIV ICDraw(HIC hic,long dwFlags,void* lpFormat,void* lpData,long cbData,long lTime);
|
||||
|
||||
|
||||
#define AVIGETFRAMEF_BESTDISPLAYFMT 1
|
||||
|
||||
typedef struct _AVISTREAMINFOA {
|
||||
long fccType;
|
||||
long fccHandler;
|
||||
long dwFlags; /* AVIIF_* */
|
||||
long dwCaps;
|
||||
short wPriority;
|
||||
short wLanguage;
|
||||
long dwScale;
|
||||
long dwRate; /* dwRate / dwScale == samples/second */
|
||||
long dwStart;
|
||||
long dwLength; /* In units above... */
|
||||
long dwInitialFrames;
|
||||
long dwSuggestedBufferSize;
|
||||
long dwQuality;
|
||||
long dwSampleSize;
|
||||
RECT rcFrame;
|
||||
long dwEditCount;
|
||||
long dwFormatChangeCount;
|
||||
char szName[64];
|
||||
} AVISTREAMINFOA, * LPAVISTREAMINFOA, *PAVISTREAMINFOA;
|
||||
|
||||
typedef struct _AVISTREAMINFOW {
|
||||
long fccType;
|
||||
long fccHandler;
|
||||
long dwFlags;
|
||||
long dwCaps;
|
||||
short wPriority;
|
||||
short wLanguage;
|
||||
long dwScale;
|
||||
long dwRate; /* dwRate / dwScale == samples/second */
|
||||
long dwStart;
|
||||
long dwLength; /* In units above... */
|
||||
long dwInitialFrames;
|
||||
long dwSuggestedBufferSize;
|
||||
long dwQuality;
|
||||
long dwSampleSize;
|
||||
RECT rcFrame;
|
||||
long dwEditCount;
|
||||
long dwFormatChangeCount;
|
||||
short szName[64];
|
||||
} AVISTREAMINFOW, * LPAVISTREAMINFOW, *PAVISTREAMINFOW;
|
||||
DECL_WINELIB_TYPE_AW(AVISTREAMINFO)
|
||||
DECL_WINELIB_TYPE_AW(LPAVISTREAMINFO)
|
||||
DECL_WINELIB_TYPE_AW(PAVISTREAMINFO)
|
||||
|
||||
#define AVISTREAMINFO_DISABLED 0x00000001
|
||||
#define AVISTREAMINFO_FORMATCHANGES 0x00010000
|
||||
|
||||
/* AVIFILEINFO.dwFlags */
|
||||
#define AVIFILEINFO_HASINDEX 0x00000010
|
||||
#define AVIFILEINFO_MUSTUSEINDEX 0x00000020
|
||||
#define AVIFILEINFO_ISINTERLEAVED 0x00000100
|
||||
#define AVIFILEINFO_WASCAPTUREFILE 0x00010000
|
||||
#define AVIFILEINFO_COPYRIGHTED 0x00020000
|
||||
|
||||
/* AVIFILEINFO.dwCaps */
|
||||
#define AVIFILECAPS_CANREAD 0x00000001
|
||||
#define AVIFILECAPS_CANWRITE 0x00000002
|
||||
#define AVIFILECAPS_ALLKEYFRAMES 0x00000010
|
||||
#define AVIFILECAPS_NOCOMPRESSION 0x00000020
|
||||
|
||||
typedef struct _AVIFILEINFOW {
|
||||
long dwMaxBytesPerSec;
|
||||
long dwFlags;
|
||||
long dwCaps;
|
||||
long dwStreams;
|
||||
long dwSuggestedBufferSize;
|
||||
long dwWidth;
|
||||
long dwHeight;
|
||||
long dwScale;
|
||||
long dwRate;
|
||||
long dwLength;
|
||||
long dwEditCount;
|
||||
short szFileType[64];
|
||||
} AVIFILEINFOW, * LPAVIFILEINFOW, *PAVIFILEINFOW;
|
||||
|
||||
typedef struct _AVIFILEINFOA {
|
||||
long dwMaxBytesPerSec;
|
||||
long dwFlags;
|
||||
long dwCaps;
|
||||
long dwStreams;
|
||||
long dwSuggestedBufferSize;
|
||||
long dwWidth;
|
||||
long dwHeight;
|
||||
long dwScale;
|
||||
long dwRate;
|
||||
long dwLength;
|
||||
long dwEditCount;
|
||||
char szFileType[64];
|
||||
} AVIFILEINFOA, * LPAVIFILEINFOA, *PAVIFILEINFOA;
|
||||
|
||||
DECL_WINELIB_TYPE_AW(AVIFILEINFO)
|
||||
DECL_WINELIB_TYPE_AW(PAVIFILEINFO)
|
||||
DECL_WINELIB_TYPE_AW(LPAVIFILEINFO)
|
||||
|
||||
/* AVICOMPRESSOPTIONS.dwFlags. determines presence of fields in below struct */
|
||||
#define AVICOMPRESSF_INTERLEAVE 0x00000001
|
||||
#define AVICOMPRESSF_DATARATE 0x00000002
|
||||
#define AVICOMPRESSF_KEYFRAMES 0x00000004
|
||||
#define AVICOMPRESSF_VALID 0x00000008
|
||||
|
||||
typedef struct {
|
||||
long fccType; /* stream type, for consistency */
|
||||
long fccHandler; /* compressor */
|
||||
long dwKeyFrameEvery; /* keyframe rate */
|
||||
long dwQuality; /* compress quality 0-10,000 */
|
||||
long dwBytesPerSecond; /* unsigned chars per second */
|
||||
long dwFlags; /* flags... see below */
|
||||
void* lpFormat; /* save format */
|
||||
long cbFormat;
|
||||
void* lpParms; /* compressor options */
|
||||
long cbParms;
|
||||
long dwInterleaveEvery; /* for non-video streams only */
|
||||
} AVICOMPRESSOPTIONS, *LPAVICOMPRESSOPTIONS,*PAVICOMPRESSOPTIONS;
|
||||
|
||||
|
||||
|
||||
typedef struct {
|
||||
long cbSize; // set to sizeof(COMPVARS) before
|
||||
// calling ICCompressorChoose
|
||||
long dwFlags; // see below...
|
||||
HIC hic; // HIC of chosen compressor
|
||||
long fccType; // basically ICTYPE_VIDEO
|
||||
long fccHandler; // handler of chosen compressor or
|
||||
// "" or "DIB "
|
||||
LPBITMAPINFO lpbiIn; // input format
|
||||
LPBITMAPINFO lpbiOut; // output format - will compress to this
|
||||
void* lpBitsOut;
|
||||
void* lpBitsPrev;
|
||||
long lFrame;
|
||||
long lKey; // key frames how often?
|
||||
long lDataRate; // desired data rate KB/Sec
|
||||
long lQ; // desired quality
|
||||
long lKeyCount;
|
||||
void* lpState; // state of compressor
|
||||
long cbState; // size of the state
|
||||
} COMPVARS, *PCOMPVARS;
|
||||
|
||||
// FLAGS for dwFlags element of COMPVARS structure:
|
||||
|
||||
|
||||
#define AVIERR_OK 0
|
||||
#define MAKE_AVIERR(error) MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x4000+error)
|
||||
|
||||
#define AVIERR_UNSUPPORTED MAKE_AVIERR(101)
|
||||
#define AVIERR_BADFORMAT MAKE_AVIERR(102)
|
||||
#define AVIERR_MEMORY MAKE_AVIERR(103)
|
||||
#define AVIERR_INTERNAL MAKE_AVIERR(104)
|
||||
#define AVIERR_BADFLAGS MAKE_AVIERR(105)
|
||||
#define AVIERR_BADPARAM MAKE_AVIERR(106)
|
||||
#define AVIERR_BADSIZE MAKE_AVIERR(107)
|
||||
#define AVIERR_BADHANDLE MAKE_AVIERR(108)
|
||||
#define AVIERR_FILEREAD MAKE_AVIERR(109)
|
||||
#define AVIERR_FILEWRITE MAKE_AVIERR(110)
|
||||
#define AVIERR_FILEOPEN MAKE_AVIERR(111)
|
||||
#define AVIERR_COMPRESSOR MAKE_AVIERR(112)
|
||||
#define AVIERR_NOCOMPRESSOR MAKE_AVIERR(113)
|
||||
#define AVIERR_READONLY MAKE_AVIERR(114)
|
||||
#define AVIERR_NODATA MAKE_AVIERR(115)
|
||||
#define AVIERR_BUFFERTOOSMALL MAKE_AVIERR(116)
|
||||
#define AVIERR_CANTCOMPRESS MAKE_AVIERR(117)
|
||||
#define AVIERR_USERABORT MAKE_AVIERR(198)
|
||||
#define AVIERR_ERROR MAKE_AVIERR(199)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* __WINE_VFW_H */
|
File diff suppressed because it is too large
Load diff
|
@ -1,656 +0,0 @@
|
|||
/*
|
||||
* Basic types definitions
|
||||
*
|
||||
* Copyright 1996 Alexandre Julliard
|
||||
*/
|
||||
|
||||
#ifndef __WINE_WINDEF_H
|
||||
#define __WINE_WINDEF_H
|
||||
|
||||
#ifdef __WINE__
|
||||
# include "config.h"
|
||||
# undef UNICODE
|
||||
#endif
|
||||
|
||||
#ifdef _EGCS_
|
||||
#define __stdcall
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Misc. constants. */
|
||||
|
||||
#ifdef FALSE
|
||||
#undef FALSE
|
||||
#endif
|
||||
#define FALSE 0
|
||||
|
||||
#ifdef TRUE
|
||||
#undef TRUE
|
||||
#endif
|
||||
#define TRUE 1
|
||||
|
||||
#ifdef NULL
|
||||
#undef NULL
|
||||
#endif
|
||||
#define NULL 0
|
||||
|
||||
/* Macros to map Winelib names to the correct implementation name */
|
||||
/* depending on __WINE__ and UNICODE macros. */
|
||||
/* Note that Winelib is purely Win32. */
|
||||
|
||||
#ifdef __WINE__
|
||||
# define WINELIB_NAME_AW(func) \
|
||||
func##_must_be_suffixed_with_W_or_A_in_this_context \
|
||||
func##_must_be_suffixed_with_W_or_A_in_this_context
|
||||
#else /* __WINE__ */
|
||||
# ifdef UNICODE
|
||||
# define WINELIB_NAME_AW(func) func##W
|
||||
# else
|
||||
# define WINELIB_NAME_AW(func) func##A
|
||||
# endif /* UNICODE */
|
||||
#endif /* __WINE__ */
|
||||
|
||||
#ifdef __WINE__
|
||||
# define DECL_WINELIB_TYPE_AW(type) /* nothing */
|
||||
#else /* __WINE__ */
|
||||
# define DECL_WINELIB_TYPE_AW(type) typedef WINELIB_NAME_AW(type) type;
|
||||
#endif /* __WINE__ */
|
||||
|
||||
#ifndef NONAMELESSSTRUCT
|
||||
# if defined(__WINE__) || !defined(_FORCENAMELESSSTRUCT)
|
||||
# define NONAMELESSSTRUCT
|
||||
# endif
|
||||
#endif /* !defined(NONAMELESSSTRUCT) */
|
||||
|
||||
#ifndef NONAMELESSUNION
|
||||
# if defined(__WINE__) || !defined(_FORCENAMELESSUNION) || !defined(__cplusplus)
|
||||
# define NONAMELESSUNION
|
||||
# endif
|
||||
#endif /* !defined(NONAMELESSUNION) */
|
||||
|
||||
#ifndef NONAMELESSSTRUCT
|
||||
#define DUMMYSTRUCTNAME
|
||||
#define DUMMYSTRUCTNAME1
|
||||
#define DUMMYSTRUCTNAME2
|
||||
#define DUMMYSTRUCTNAME3
|
||||
#define DUMMYSTRUCTNAME4
|
||||
#define DUMMYSTRUCTNAME5
|
||||
#else /* !defined(NONAMELESSSTRUCT) */
|
||||
#define DUMMYSTRUCTNAME s
|
||||
#define DUMMYSTRUCTNAME1 s1
|
||||
#define DUMMYSTRUCTNAME2 s2
|
||||
#define DUMMYSTRUCTNAME3 s3
|
||||
#define DUMMYSTRUCTNAME4 s4
|
||||
#define DUMMYSTRUCTNAME5 s5
|
||||
#endif /* !defined(NONAMELESSSTRUCT) */
|
||||
|
||||
#ifndef NONAMELESSUNION
|
||||
#define DUMMYUNIONNAME
|
||||
#define DUMMYUNIONNAME1
|
||||
#define DUMMYUNIONNAME2
|
||||
#define DUMMYUNIONNAME3
|
||||
#define DUMMYUNIONNAME4
|
||||
#define DUMMYUNIONNAME5
|
||||
#else /* !defined(NONAMELESSUNION) */
|
||||
#define DUMMYUNIONNAME u
|
||||
#define DUMMYUNIONNAME1 u1
|
||||
#define DUMMYUNIONNAME2 u2
|
||||
#define DUMMYUNIONNAME3 u3
|
||||
#define DUMMYUNIONNAME4 u4
|
||||
#define DUMMYUNIONNAME5 u5
|
||||
#endif /* !defined(NONAMELESSUNION) */
|
||||
|
||||
/* Calling conventions definitions */
|
||||
|
||||
#ifdef __i386__
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
|
||||
# ifndef _EGCS_
|
||||
#define __stdcall __attribute__((__stdcall__))
|
||||
#define __cdecl __attribute__((__cdecl__))
|
||||
# define __RESTORE_ES __asm__ __volatile__("pushl %ds\n\tpopl %es")
|
||||
# endif
|
||||
# else
|
||||
# error You need gcc >= 2.7 to build Wine on a 386
|
||||
# endif
|
||||
#else
|
||||
# define __stdcall
|
||||
# define __cdecl
|
||||
# define __RESTORE_ES
|
||||
#endif
|
||||
|
||||
#define CALLBACK __stdcall
|
||||
#define WINAPI __stdcall
|
||||
#define APIPRIVATE __stdcall
|
||||
#define PASCAL __stdcall
|
||||
#define pascal __stdcall
|
||||
#define _pascal __stdcall
|
||||
#define _stdcall __stdcall
|
||||
#define _fastcall __stdcall
|
||||
#define __fastcall __stdcall
|
||||
#define __export __stdcall
|
||||
#define CDECL __cdecl
|
||||
#define _CDECL __cdecl
|
||||
#define cdecl __cdecl
|
||||
#define _cdecl __cdecl
|
||||
#define WINAPIV __cdecl
|
||||
#define APIENTRY WINAPI
|
||||
|
||||
#define __declspec(x)
|
||||
#define dllimport
|
||||
#define dllexport
|
||||
|
||||
#define CONST const
|
||||
|
||||
/* Standard data types. These are the same for emulator and library. */
|
||||
|
||||
typedef void VOID;
|
||||
typedef int INT;
|
||||
typedef unsigned int UINT;
|
||||
typedef unsigned short WORD;
|
||||
typedef unsigned long DWORD;
|
||||
typedef unsigned long ULONG;
|
||||
typedef unsigned char BYTE;
|
||||
typedef long LONG;
|
||||
typedef short SHORT;
|
||||
typedef unsigned short USHORT;
|
||||
typedef char CHAR;
|
||||
typedef unsigned char UCHAR;
|
||||
|
||||
typedef LONG SCODE;
|
||||
|
||||
/* Some systems might have wchar_t, but we really need 16 bit characters */
|
||||
typedef unsigned short WCHAR;
|
||||
typedef int WIN_BOOL;
|
||||
typedef double DATE;
|
||||
typedef double DOUBLE;
|
||||
typedef double LONGLONG;
|
||||
typedef double ULONGLONG;
|
||||
|
||||
/* FIXME: Wine does not compile with strict on, therefore strict
|
||||
* handles are presently only usable on machines where sizeof(UINT) ==
|
||||
* sizeof(void*). HANDLEs are supposed to be void* but a large amount
|
||||
* of WINE code operates on HANDLES as if they are UINTs. So to WINE
|
||||
* they exist as UINTs but to the Winelib user who turns on strict,
|
||||
* they exist as void*. If there is a size difference between UINT and
|
||||
* void* then things get ugly. */
|
||||
#ifdef STRICT
|
||||
typedef VOID* HANDLE;
|
||||
#else
|
||||
typedef UINT HANDLE;
|
||||
#endif
|
||||
|
||||
|
||||
typedef HANDLE *LPHANDLE;
|
||||
|
||||
/* Integer types. These are the same for emulator and library. */
|
||||
typedef UINT WPARAM;
|
||||
typedef LONG LPARAM;
|
||||
typedef LONG HRESULT;
|
||||
typedef LONG LRESULT;
|
||||
typedef WORD ATOM;
|
||||
typedef WORD CATCHBUF[9];
|
||||
typedef WORD *LPCATCHBUF;
|
||||
typedef HANDLE HHOOK;
|
||||
typedef HANDLE HMONITOR;
|
||||
typedef DWORD LCID;
|
||||
typedef WORD LANGID;
|
||||
typedef DWORD LCTYPE;
|
||||
typedef float FLOAT;
|
||||
|
||||
/* Pointers types. These are the same for emulator and library. */
|
||||
/* winnt types */
|
||||
typedef VOID *PVOID;
|
||||
typedef const void *PCVOID;
|
||||
typedef CHAR *PCHAR;
|
||||
typedef UCHAR *PUCHAR;
|
||||
typedef BYTE *PBYTE;
|
||||
typedef WORD *PWORD;
|
||||
typedef USHORT *PUSHORT;
|
||||
typedef SHORT *PSHORT;
|
||||
typedef ULONG *PULONG;
|
||||
typedef LONG *PLONG;
|
||||
typedef DWORD *PDWORD;
|
||||
/* common win32 types */
|
||||
typedef CHAR *LPSTR;
|
||||
typedef CHAR *PSTR;
|
||||
typedef const CHAR *LPCSTR;
|
||||
typedef const CHAR *PCSTR;
|
||||
typedef WCHAR *LPWSTR;
|
||||
typedef WCHAR *PWSTR;
|
||||
typedef const WCHAR *LPCWSTR;
|
||||
typedef const WCHAR *PCWSTR;
|
||||
typedef BYTE *LPBYTE;
|
||||
typedef WORD *LPWORD;
|
||||
typedef DWORD *LPDWORD;
|
||||
typedef LONG *LPLONG;
|
||||
typedef VOID *LPVOID;
|
||||
typedef const VOID *LPCVOID;
|
||||
typedef INT *PINT;
|
||||
typedef INT *LPINT;
|
||||
typedef UINT *PUINT;
|
||||
typedef UINT *LPUINT;
|
||||
typedef FLOAT *PFLOAT;
|
||||
typedef FLOAT *LPFLOAT;
|
||||
typedef WIN_BOOL *PWIN_BOOL;
|
||||
typedef WIN_BOOL *LPWIN_BOOL;
|
||||
|
||||
/* Special case: a segmented pointer is just a pointer in the user's code. */
|
||||
|
||||
#ifdef __WINE__
|
||||
typedef DWORD SEGPTR;
|
||||
#else
|
||||
typedef void* SEGPTR;
|
||||
#endif /* __WINE__ */
|
||||
|
||||
/* Handle types that exist both in Win16 and Win32. */
|
||||
|
||||
#ifdef STRICT
|
||||
#define DECLARE_HANDLE(a) \
|
||||
typedef struct a##__ { int unused; } *a; \
|
||||
typedef a *P##a; \
|
||||
typedef a *LP##a
|
||||
#else /*STRICT*/
|
||||
#define DECLARE_HANDLE(a) \
|
||||
typedef HANDLE a; \
|
||||
typedef a *P##a; \
|
||||
typedef a *LP##a
|
||||
#endif /*STRICT*/
|
||||
|
||||
DECLARE_HANDLE(HACMDRIVERID);
|
||||
DECLARE_HANDLE(HACMDRIVER);
|
||||
DECLARE_HANDLE(HACMOBJ);
|
||||
DECLARE_HANDLE(HACMSTREAM);
|
||||
DECLARE_HANDLE(HMETAFILEPICT);
|
||||
|
||||
DECLARE_HANDLE(HACCEL);
|
||||
DECLARE_HANDLE(HBITMAP);
|
||||
DECLARE_HANDLE(HBRUSH);
|
||||
DECLARE_HANDLE(HCOLORSPACE);
|
||||
DECLARE_HANDLE(HCURSOR);
|
||||
DECLARE_HANDLE(HDC);
|
||||
DECLARE_HANDLE(HDROP);
|
||||
DECLARE_HANDLE(HDRVR);
|
||||
DECLARE_HANDLE(HDWP);
|
||||
DECLARE_HANDLE(HENHMETAFILE);
|
||||
DECLARE_HANDLE(HFILE);
|
||||
DECLARE_HANDLE(HFONT);
|
||||
DECLARE_HANDLE(HICON);
|
||||
DECLARE_HANDLE(HINSTANCE);
|
||||
DECLARE_HANDLE(HKEY);
|
||||
DECLARE_HANDLE(HMENU);
|
||||
DECLARE_HANDLE(HMETAFILE);
|
||||
DECLARE_HANDLE(HMIDI);
|
||||
DECLARE_HANDLE(HMIDIIN);
|
||||
DECLARE_HANDLE(HMIDIOUT);
|
||||
DECLARE_HANDLE(HMIDISTRM);
|
||||
DECLARE_HANDLE(HMIXER);
|
||||
DECLARE_HANDLE(HMIXEROBJ);
|
||||
DECLARE_HANDLE(HMMIO);
|
||||
DECLARE_HANDLE(HPALETTE);
|
||||
DECLARE_HANDLE(HPEN);
|
||||
DECLARE_HANDLE(HQUEUE);
|
||||
DECLARE_HANDLE(HRGN);
|
||||
DECLARE_HANDLE(HRSRC);
|
||||
DECLARE_HANDLE(HTASK);
|
||||
DECLARE_HANDLE(HWAVE);
|
||||
DECLARE_HANDLE(HWAVEIN);
|
||||
DECLARE_HANDLE(HWAVEOUT);
|
||||
DECLARE_HANDLE(HWINSTA);
|
||||
DECLARE_HANDLE(HDESK);
|
||||
DECLARE_HANDLE(HWND);
|
||||
DECLARE_HANDLE(HKL);
|
||||
DECLARE_HANDLE(HIC);
|
||||
DECLARE_HANDLE(HRASCONN);
|
||||
|
||||
/* Handle types that must remain interchangeable even with strict on */
|
||||
|
||||
typedef HINSTANCE HMODULE;
|
||||
typedef HANDLE HGDIOBJ;
|
||||
typedef HANDLE HGLOBAL;
|
||||
typedef HANDLE HLOCAL;
|
||||
typedef HANDLE GLOBALHANDLE;
|
||||
typedef HANDLE LOCALHANDLE;
|
||||
|
||||
/* Callback function pointers types */
|
||||
//WIN_BOOL CALLBACK DATEFMT_ENUMPROCA(LPSTR);
|
||||
|
||||
typedef WIN_BOOL CALLBACK (* DATEFMT_ENUMPROCA)(LPSTR);
|
||||
typedef WIN_BOOL CALLBACK (* DATEFMT_ENUMPROCW)(LPWSTR);
|
||||
DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROC)
|
||||
typedef WIN_BOOL CALLBACK (*DLGPROC)(HWND,UINT,WPARAM,LPARAM);
|
||||
typedef LRESULT CALLBACK (*DRIVERPROC)(DWORD,HDRVR,UINT,LPARAM,LPARAM);
|
||||
typedef INT CALLBACK (*EDITWORDBREAKPROCA)(LPSTR,INT,INT,INT);
|
||||
typedef INT CALLBACK (*EDITWORDBREAKPROCW)(LPWSTR,INT,INT,INT);
|
||||
DECL_WINELIB_TYPE_AW(EDITWORDBREAKPROC)
|
||||
typedef LRESULT CALLBACK (*FARPROC)();
|
||||
typedef INT CALLBACK (*PROC)();
|
||||
typedef WIN_BOOL CALLBACK (*GRAYSTRINGPROC)(HDC,LPARAM,INT);
|
||||
typedef LRESULT CALLBACK (*HOOKPROC)(INT,WPARAM,LPARAM);
|
||||
typedef WIN_BOOL CALLBACK (*PROPENUMPROCA)(HWND,LPCSTR,HANDLE);
|
||||
typedef WIN_BOOL CALLBACK (*PROPENUMPROCW)(HWND,LPCWSTR,HANDLE);
|
||||
DECL_WINELIB_TYPE_AW(PROPENUMPROC)
|
||||
typedef WIN_BOOL CALLBACK (*PROPENUMPROCEXA)(HWND,LPCSTR,HANDLE,LPARAM);
|
||||
typedef WIN_BOOL CALLBACK (*PROPENUMPROCEXW)(HWND,LPCWSTR,HANDLE,LPARAM);
|
||||
DECL_WINELIB_TYPE_AW(PROPENUMPROCEX)
|
||||
typedef WIN_BOOL CALLBACK (* TIMEFMT_ENUMPROCA)(LPSTR);
|
||||
typedef WIN_BOOL CALLBACK (* TIMEFMT_ENUMPROCW)(LPWSTR);
|
||||
DECL_WINELIB_TYPE_AW(TIMEFMT_ENUMPROC)
|
||||
typedef VOID CALLBACK (*TIMERPROC)(HWND,UINT,UINT,DWORD);
|
||||
typedef WIN_BOOL CALLBACK (*WNDENUMPROC)(HWND,LPARAM);
|
||||
typedef LRESULT CALLBACK (*WNDPROC)(HWND,UINT,WPARAM,LPARAM);
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
** FIXME: Better isolate Wine's reliance on the xxx16 type definitions.
|
||||
** For now, we just isolate them to make the situation clear.
|
||||
**--------------------------------------------------------------------------*/
|
||||
/*
|
||||
* Basic type definitions for 16 bit variations on Windows types.
|
||||
* These types are provided mostly to insure compatibility with
|
||||
* 16 bit windows code.
|
||||
*/
|
||||
|
||||
#ifndef __WINE_WINDEF16_H
|
||||
#define __WINE_WINDEF16_H
|
||||
|
||||
#include "windef.h"
|
||||
|
||||
/* Standard data types */
|
||||
|
||||
typedef short INT16;
|
||||
typedef unsigned short UINT16;
|
||||
typedef unsigned short WIN_BOOL16;
|
||||
|
||||
typedef UINT16 HANDLE16;
|
||||
typedef HANDLE16 *LPHANDLE16;
|
||||
|
||||
typedef UINT16 WPARAM16;
|
||||
typedef INT16 *LPINT16;
|
||||
typedef UINT16 *LPUINT16;
|
||||
|
||||
#define DECLARE_HANDLE16(a) \
|
||||
typedef HANDLE16 a##16; \
|
||||
typedef a##16 *P##a##16; \
|
||||
typedef a##16 *NP##a##16; \
|
||||
typedef a##16 *LP##a##16
|
||||
|
||||
DECLARE_HANDLE16(HACMDRIVERID);
|
||||
DECLARE_HANDLE16(HACMDRIVER);
|
||||
DECLARE_HANDLE16(HACMOBJ);
|
||||
DECLARE_HANDLE16(HACMSTREAM);
|
||||
DECLARE_HANDLE16(HMETAFILEPICT);
|
||||
|
||||
DECLARE_HANDLE16(HACCEL);
|
||||
DECLARE_HANDLE16(HBITMAP);
|
||||
DECLARE_HANDLE16(HBRUSH);
|
||||
DECLARE_HANDLE16(HCOLORSPACE);
|
||||
DECLARE_HANDLE16(HCURSOR);
|
||||
DECLARE_HANDLE16(HDC);
|
||||
DECLARE_HANDLE16(HDROP);
|
||||
DECLARE_HANDLE16(HDRVR);
|
||||
DECLARE_HANDLE16(HDWP);
|
||||
DECLARE_HANDLE16(HENHMETAFILE);
|
||||
DECLARE_HANDLE16(HFILE);
|
||||
DECLARE_HANDLE16(HFONT);
|
||||
DECLARE_HANDLE16(HICON);
|
||||
DECLARE_HANDLE16(HINSTANCE);
|
||||
DECLARE_HANDLE16(HKEY);
|
||||
DECLARE_HANDLE16(HMENU);
|
||||
DECLARE_HANDLE16(HMETAFILE);
|
||||
DECLARE_HANDLE16(HMIDI);
|
||||
DECLARE_HANDLE16(HMIDIIN);
|
||||
DECLARE_HANDLE16(HMIDIOUT);
|
||||
DECLARE_HANDLE16(HMIDISTRM);
|
||||
DECLARE_HANDLE16(HMIXER);
|
||||
DECLARE_HANDLE16(HMIXEROBJ);
|
||||
DECLARE_HANDLE16(HMMIO);
|
||||
DECLARE_HANDLE16(HPALETTE);
|
||||
DECLARE_HANDLE16(HPEN);
|
||||
DECLARE_HANDLE16(HQUEUE);
|
||||
DECLARE_HANDLE16(HRGN);
|
||||
DECLARE_HANDLE16(HRSRC);
|
||||
DECLARE_HANDLE16(HTASK);
|
||||
DECLARE_HANDLE16(HWAVE);
|
||||
DECLARE_HANDLE16(HWAVEIN);
|
||||
DECLARE_HANDLE16(HWAVEOUT);
|
||||
DECLARE_HANDLE16(HWINSTA);
|
||||
DECLARE_HANDLE16(HDESK);
|
||||
DECLARE_HANDLE16(HWND);
|
||||
DECLARE_HANDLE16(HKL);
|
||||
DECLARE_HANDLE16(HIC);
|
||||
DECLARE_HANDLE16(HRASCONN);
|
||||
#undef DECLARE_HANDLE16
|
||||
|
||||
typedef HINSTANCE16 HMODULE16;
|
||||
typedef HANDLE16 HGDIOBJ16;
|
||||
typedef HANDLE16 HGLOBAL16;
|
||||
typedef HANDLE16 HLOCAL16;
|
||||
|
||||
/* The SIZE structure */
|
||||
typedef struct
|
||||
{
|
||||
INT16 cx;
|
||||
INT16 cy;
|
||||
} SIZE16, *PSIZE16, *LPSIZE16;
|
||||
|
||||
/* The POINT structure */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
INT16 x;
|
||||
INT16 y;
|
||||
} POINT16, *PPOINT16, *LPPOINT16;
|
||||
|
||||
/* The RECT structure */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
INT16 left;
|
||||
INT16 top;
|
||||
INT16 right;
|
||||
INT16 bottom;
|
||||
} RECT16, *LPRECT16;
|
||||
|
||||
/* Callback function pointers types */
|
||||
|
||||
typedef LRESULT CALLBACK (*DRIVERPROC16)(DWORD,HDRVR16,UINT16,LPARAM,LPARAM);
|
||||
typedef WIN_BOOL16 CALLBACK (*DLGPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
|
||||
typedef INT16 CALLBACK (*EDITWORDBREAKPROC16)(LPSTR,INT16,INT16,INT16);
|
||||
typedef LRESULT CALLBACK (*FARPROC16)();
|
||||
typedef INT16 CALLBACK (*PROC16)();
|
||||
typedef WIN_BOOL16 CALLBACK (*GRAYSTRINGPROC16)(HDC16,LPARAM,INT16);
|
||||
typedef LRESULT CALLBACK (*HOOKPROC16)(INT16,WPARAM16,LPARAM);
|
||||
typedef WIN_BOOL16 CALLBACK (*PROPENUMPROC16)(HWND16,SEGPTR,HANDLE16);
|
||||
typedef VOID CALLBACK (*TIMERPROC16)(HWND16,UINT16,UINT16,DWORD);
|
||||
typedef LRESULT CALLBACK (*WNDENUMPROC16)(HWND16,LPARAM);
|
||||
typedef LRESULT CALLBACK (*WNDPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
|
||||
|
||||
#endif /* __WINE_WINDEF16_H */
|
||||
|
||||
/* Define some empty macros for compatibility with Windows code. */
|
||||
|
||||
#ifndef __WINE__
|
||||
#define NEAR
|
||||
#define FAR
|
||||
#define near
|
||||
#define far
|
||||
#define _near
|
||||
#define _far
|
||||
#define IN
|
||||
#define OUT
|
||||
#define OPTIONAL
|
||||
#endif /* __WINE__ */
|
||||
|
||||
/* Macro for structure packing. */
|
||||
|
||||
#ifdef __GNUC__
|
||||
#ifndef _EGCS_
|
||||
#define WINE_PACKED __attribute__((packed))
|
||||
#define WINE_UNUSED __attribute__((unused))
|
||||
#define WINE_NORETURN __attribute__((noreturn))
|
||||
#endif
|
||||
#else
|
||||
#define WINE_PACKED /* nothing */
|
||||
#define WINE_UNUSED /* nothing */
|
||||
#define WINE_NORETURN /* nothing */
|
||||
#endif
|
||||
|
||||
/* Macros to split words and longs. */
|
||||
|
||||
#define LOBYTE(w) ((BYTE)(WORD)(w))
|
||||
#define HIBYTE(w) ((BYTE)((WORD)(w) >> 8))
|
||||
|
||||
#define LOWORD(l) ((WORD)(DWORD)(l))
|
||||
#define HIWORD(l) ((WORD)((DWORD)(l) >> 16))
|
||||
|
||||
#define SLOWORD(l) ((INT16)(LONG)(l))
|
||||
#define SHIWORD(l) ((INT16)((LONG)(l) >> 16))
|
||||
|
||||
#define MAKEWORD(low,high) ((WORD)(((BYTE)(low)) | ((WORD)((BYTE)(high))) << 8))
|
||||
#define MAKELONG(low,high) ((LONG)(((WORD)(low)) | (((DWORD)((WORD)(high))) << 16)))
|
||||
#define MAKELPARAM(low,high) ((LPARAM)MAKELONG(low,high))
|
||||
#define MAKEWPARAM(low,high) ((WPARAM)MAKELONG(low,high))
|
||||
#define MAKELRESULT(low,high) ((LRESULT)MAKELONG(low,high))
|
||||
#define MAKEINTATOM(atom) ((LPCSTR)MAKELONG((atom),0))
|
||||
|
||||
#define SELECTOROF(ptr) (HIWORD(ptr))
|
||||
#define OFFSETOF(ptr) (LOWORD(ptr))
|
||||
|
||||
#ifdef __WINE__
|
||||
/* macros to set parts of a DWORD (not in the Windows API) */
|
||||
#define SET_LOWORD(dw,val) ((dw) = ((dw) & 0xffff0000) | LOWORD(val))
|
||||
#define SET_LOBYTE(dw,val) ((dw) = ((dw) & 0xffffff00) | LOBYTE(val))
|
||||
#define SET_HIBYTE(dw,val) ((dw) = ((dw) & 0xffff00ff) | (LOWORD(val) & 0xff00))
|
||||
#define ADD_LOWORD(dw,val) ((dw) = ((dw) & 0xffff0000) | LOWORD((DWORD)(dw)+(val)))
|
||||
#endif
|
||||
|
||||
/* Macros to access unaligned or wrong-endian WORDs and DWORDs. */
|
||||
/* Note: These macros are semantically broken, at least for wrc. wrc
|
||||
spits out data in the platform's current binary format, *not* in
|
||||
little-endian format. These macros are used throughout the resource
|
||||
code to load and store data to the resources. Since it is unlikely
|
||||
that we'll ever be dealing with little-endian resource data, the
|
||||
byte-swapping nature of these macros has been disabled. Rather than
|
||||
remove the use of these macros from the resource loading code, the
|
||||
macros have simply been disabled. In the future, someone may want
|
||||
to reactivate these macros for other purposes. In that case, the
|
||||
resource code will have to be modified to use different macros. */
|
||||
|
||||
#if 1
|
||||
#define PUT_WORD(ptr,w) (*(WORD *)(ptr) = (w))
|
||||
#define GET_WORD(ptr) (*(WORD *)(ptr))
|
||||
#define PUT_DWORD(ptr,dw) (*(DWORD *)(ptr) = (dw))
|
||||
#define GET_DWORD(ptr) (*(DWORD *)(ptr))
|
||||
#else
|
||||
#define PUT_WORD(ptr,w) (*(BYTE *)(ptr) = LOBYTE(w), \
|
||||
*((BYTE *)(ptr) + 1) = HIBYTE(w))
|
||||
#define GET_WORD(ptr) ((WORD)(*(BYTE *)(ptr) | \
|
||||
(WORD)(*((BYTE *)(ptr)+1) << 8)))
|
||||
#define PUT_DWORD(ptr,dw) (PUT_WORD((ptr),LOWORD(dw)), \
|
||||
PUT_WORD((WORD *)(ptr)+1,HIWORD(dw)))
|
||||
#define GET_DWORD(ptr) ((DWORD)(GET_WORD(ptr) | \
|
||||
((DWORD)GET_WORD((WORD *)(ptr)+1) << 16)))
|
||||
#endif /* 1 */
|
||||
|
||||
/* min and max macros */
|
||||
#define __max(a,b) (((a) > (b)) ? (a) : (b))
|
||||
#define __min(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#ifndef max
|
||||
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
||||
#endif
|
||||
#ifndef min
|
||||
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#define _MAX_PATH 260
|
||||
#define MAX_PATH 260
|
||||
#define _MAX_DRIVE 3
|
||||
#define _MAX_DIR 256
|
||||
#define _MAX_FNAME 255
|
||||
#define _MAX_EXT 256
|
||||
|
||||
#define HFILE_ERROR16 ((HFILE16)-1)
|
||||
#define HFILE_ERROR ((HFILE)-1)
|
||||
|
||||
/* The SIZE structure */
|
||||
typedef struct tagSIZE
|
||||
{
|
||||
INT cx;
|
||||
INT cy;
|
||||
} SIZE, *PSIZE, *LPSIZE;
|
||||
|
||||
|
||||
typedef SIZE SIZEL, *PSIZEL, *LPSIZEL;
|
||||
|
||||
#define CONV_SIZE16TO32(s16,s32) \
|
||||
((s32)->cx = (INT)(s16)->cx, (s32)->cy = (INT)(s16)->cy)
|
||||
#define CONV_SIZE32TO16(s32,s16) \
|
||||
((s16)->cx = (INT16)(s32)->cx, (s16)->cy = (INT16)(s32)->cy)
|
||||
|
||||
/* The POINT structure */
|
||||
typedef struct tagPOINT
|
||||
{
|
||||
LONG x;
|
||||
LONG y;
|
||||
} POINT, *PPOINT, *LPPOINT;
|
||||
|
||||
typedef struct _POINTL
|
||||
{
|
||||
LONG x;
|
||||
LONG y;
|
||||
} POINTL;
|
||||
|
||||
#define CONV_POINT16TO32(p16,p32) \
|
||||
((p32)->x = (INT)(p16)->x, (p32)->y = (INT)(p16)->y)
|
||||
#define CONV_POINT32TO16(p32,p16) \
|
||||
((p16)->x = (INT16)(p32)->x, (p16)->y = (INT16)(p32)->y)
|
||||
|
||||
#define MAKEPOINT16(l) (*((POINT16 *)&(l)))
|
||||
|
||||
/* The POINTS structure */
|
||||
|
||||
typedef struct tagPOINTS
|
||||
{
|
||||
SHORT x;
|
||||
SHORT y;
|
||||
} POINTS, *PPOINTS, *LPPOINTS;
|
||||
|
||||
|
||||
#define MAKEPOINTS(l) (*((POINTS *)&(l)))
|
||||
|
||||
|
||||
/* The RECT structure */
|
||||
typedef struct tagRECT
|
||||
{
|
||||
short left;
|
||||
short top;
|
||||
short right;
|
||||
short bottom;
|
||||
} RECT, *PRECT, *LPRECT;
|
||||
typedef const RECT *LPCRECT;
|
||||
|
||||
|
||||
typedef struct tagRECTL
|
||||
{
|
||||
LONG left;
|
||||
LONG top;
|
||||
LONG right;
|
||||
LONG bottom;
|
||||
} RECTL, *PRECTL, *LPRECTL;
|
||||
|
||||
typedef const RECTL *LPCRECTL;
|
||||
|
||||
#define CONV_RECT16TO32(r16,r32) \
|
||||
((r32)->left = (INT)(r16)->left, (r32)->top = (INT)(r16)->top, \
|
||||
(r32)->right = (INT)(r16)->right, (r32)->bottom = (INT)(r16)->bottom)
|
||||
#define CONV_RECT32TO16(r32,r16) \
|
||||
((r16)->left = (INT16)(r32)->left, (r16)->top = (INT16)(r32)->top, \
|
||||
(r16)->right = (INT16)(r32)->right, (r16)->bottom = (INT16)(r32)->bottom)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_WINDEF_H */
|
|
@ -1,38 +0,0 @@
|
|||
#ifndef __WINE_WINDOWS_H
|
||||
#define __WINE_WINDOWS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winuser.h"
|
||||
#include "shell.h"
|
||||
#include "winreg.h"
|
||||
#include "winnetwk.h"
|
||||
#include "winver.h"
|
||||
#include "lzexpand.h"
|
||||
#include "shellapi.h"
|
||||
#include "ole2.h"
|
||||
#include "winnls.h"
|
||||
#include "objbase.h"
|
||||
#include "winspool.h"
|
||||
|
||||
#if 0
|
||||
Where does this belong? Nobody uses this stuff anyway.
|
||||
typedef struct {
|
||||
BYTE i; /* much more .... */
|
||||
} KANJISTRUCT;
|
||||
typedef KANJISTRUCT *LPKANJISTRUCT;
|
||||
typedef KANJISTRUCT *NPKANJISTRUCT;
|
||||
typedef KANJISTRUCT *PKANJISTRUCT;
|
||||
|
||||
|
||||
#endif /* 0 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_WINDOWS_H */
|
File diff suppressed because it is too large
Load diff
|
@ -1,13 +0,0 @@
|
|||
#ifndef __WINE_WINE_WINESTRING_H
|
||||
#define __WINE_WINE_WINESTRING_H
|
||||
|
||||
#include "windef.h"
|
||||
|
||||
LPWSTR WINAPI lstrcpyAtoW(LPWSTR,LPCSTR);
|
||||
LPSTR WINAPI lstrcpyWtoA(LPSTR,LPCWSTR);
|
||||
LPWSTR WINAPI lstrcpynAtoW(LPWSTR,LPCSTR,INT);
|
||||
LPSTR WINAPI lstrcpynWtoA(LPSTR,LPCWSTR,INT);
|
||||
|
||||
#define lstrncmpiA strncasecmp
|
||||
|
||||
#endif /* __WINE_WINE_WINESTRING_H */
|
2665
include/wine/winnt.h
2665
include/wine/winnt.h
File diff suppressed because it is too large
Load diff
|
@ -1,57 +0,0 @@
|
|||
/*
|
||||
* Win32 registry defines (see also winnt.h)
|
||||
*/
|
||||
#ifndef __WINE_WINREG_H
|
||||
#define __WINE_WINREG_H
|
||||
|
||||
#include "winbase.h"
|
||||
#include "winnt.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
/*
|
||||
#define SHELL_ERROR_SUCCESS 0L
|
||||
#define SHELL_ERROR_BADDB 1L
|
||||
#define SHELL_ERROR_BADKEY 2L
|
||||
#define SHELL_ERROR_CANTOPEN 3L
|
||||
#define SHELL_ERROR_CANTREAD 4L
|
||||
#define SHELL_ERROR_CANTWRITE 5L
|
||||
#define SHELL_ERROR_OUTOFMEMORY 6L
|
||||
#define SHELL_ERROR_INVALID_PARAMETER 7L
|
||||
#define SHELL_ERROR_ACCESS_DENIED 8L
|
||||
*/
|
||||
|
||||
#define HKEY_CLASSES_ROOT ((HKEY) 0x80000000)
|
||||
#define HKEY_CURRENT_USER ((HKEY) 0x80000001)
|
||||
#define HKEY_LOCAL_MACHINE ((HKEY) 0x80000002)
|
||||
#define HKEY_USERS ((HKEY) 0x80000003)
|
||||
#define HKEY_PERFORMANCE_DATA ((HKEY) 0x80000004)
|
||||
#define HKEY_CURRENT_CONFIG ((HKEY) 0x80000005)
|
||||
#define HKEY_DYN_DATA ((HKEY) 0x80000006)
|
||||
|
||||
/*
|
||||
* registry provider structs
|
||||
*/
|
||||
typedef struct value_entA
|
||||
{ LPSTR ve_valuename;
|
||||
DWORD ve_valuelen;
|
||||
DWORD_PTR ve_valueptr;
|
||||
DWORD ve_type;
|
||||
} VALENTA, *PVALENTA;
|
||||
|
||||
typedef struct value_entW {
|
||||
LPWSTR ve_valuename;
|
||||
DWORD ve_valuelen;
|
||||
DWORD_PTR ve_valueptr;
|
||||
DWORD ve_type;
|
||||
} VALENTW, *PVALENTW;
|
||||
|
||||
typedef ACCESS_MASK REGSAM;
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
#endif /* __WINE_WINREG_H */
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue