user32: Make mouse.drv into a stand-alone 16-bit module.

This commit is contained in:
Alexandre Julliard 2009-03-04 14:32:56 +01:00
parent c2e52469fe
commit d62c05f720
9 changed files with 38 additions and 18 deletions

1
.gitignore vendored
View File

@ -47,7 +47,6 @@ dlls/libwinspool.def
dlls/libxinput.def
dlls/lzexpand.dll16
dlls/mmsystem.dll16
dlls/mouse.drv16
dlls/msacm.dll16
dlls/mshtml.tlb/mshtml_tlb.tlb
dlls/mshtml/nsiface.h

10
configure vendored
View File

@ -3908,6 +3908,7 @@ then
enable_keyboard_drv16=${enable_keyboard_drv16:-no}
enable_mmdevldr_vxd=${enable_mmdevldr_vxd:-no}
enable_monodebg_vxd=${enable_monodebg_vxd:-no}
enable_mouse_drv16=${enable_mouse_drv16:-no}
enable_stress_dll16=${enable_stress_dll16:-no}
enable_vdhcp_vxd=${enable_vdhcp_vxd:-no}
enable_vmm_vxd=${enable_vmm_vxd:-no}
@ -25785,6 +25786,14 @@ ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
dlls/mountmgr.sys/Makefile: dlls/mountmgr.sys/Makefile.in dlls/Makedll.rules"
ac_config_files="$ac_config_files dlls/mountmgr.sys/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \\
dlls/mouse.drv16/Makefile"
test "x$enable_mouse_drv16" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
mouse.drv16"
ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
dlls/mouse.drv16/Makefile: dlls/mouse.drv16/Makefile.in dlls/Makedll.rules"
ac_config_files="$ac_config_files dlls/mouse.drv16/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \\
dlls/mpr/Makefile"
test "x$enable_mpr" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
@ -28886,6 +28895,7 @@ do
"dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
"dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
"dlls/mountmgr.sys/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mountmgr.sys/Makefile" ;;
"dlls/mouse.drv16/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mouse.drv16/Makefile" ;;
"dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
"dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
"dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;

View File

@ -145,6 +145,7 @@ then
enable_keyboard_drv16=${enable_keyboard_drv16:-no}
enable_mmdevldr_vxd=${enable_mmdevldr_vxd:-no}
enable_monodebg_vxd=${enable_monodebg_vxd:-no}
enable_mouse_drv16=${enable_mouse_drv16:-no}
enable_stress_dll16=${enable_stress_dll16:-no}
enable_vdhcp_vxd=${enable_vdhcp_vxd:-no}
enable_vmm_vxd=${enable_vmm_vxd:-no}
@ -2060,6 +2061,7 @@ WINE_CONFIG_MAKEFILE([dlls/mlang/tests/Makefile],[dlls/Maketest.rules],[dlls],[A
WINE_CONFIG_MAKEFILE([dlls/mmdevldr.vxd/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/monodebg.vxd/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/mountmgr.sys/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/mouse.drv16/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/mpr/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/mprapi/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
WINE_CONFIG_MAKEFILE([dlls/msacm32.drv/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])

View File

@ -29,7 +29,6 @@ WIN16_FILES = \
krnl386.exe16 \
lzexpand.dll16 \
mmsystem.dll16 \
mouse.drv16 \
msacm.dll16 \
msvideo.dll16 \
ole2.dll16 \
@ -120,7 +119,7 @@ shell.dll16:
twain.dll16:
echo "twain_32.dll" >$@
ddeml.dll16 mouse.drv16 user.exe16:
ddeml.dll16 user.exe16:
echo "user32.dll" >$@
ver.dll16:

View File

@ -0,0 +1,19 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = mouse.drv16
IMPORTS = user32 kernel32
EXTRADLLFLAGS = -Wb,--subsystem,win16
EXTRARCFLAGS = -O res16
SPEC_SRCS = mouse.drv16.spec
C_SRCS = mouse.c
RC_SRCS = mouse.rc
@MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend

View File

@ -47,7 +47,7 @@ static FARPROC16 DefMouseEventProc;
/***********************************************************************
* Inquire (MOUSE.1)
*/
WORD WINAPI MOUSE_Inquire(LPMOUSEINFO mouseInfo)
WORD WINAPI Inquire16(LPMOUSEINFO mouseInfo)
{
mouseInfo->msExist = TRUE;
mouseInfo->msRelative = FALSE;
@ -65,7 +65,7 @@ WORD WINAPI MOUSE_Inquire(LPMOUSEINFO mouseInfo)
/***********************************************************************
* Enable (MOUSE.2)
*/
VOID WINAPI MOUSE_Enable( FARPROC16 proc )
VOID WINAPI Enable16( FARPROC16 proc )
{
DefMouseEventProc = proc;
}
@ -73,7 +73,7 @@ VOID WINAPI MOUSE_Enable( FARPROC16 proc )
/***********************************************************************
* Disable (MOUSE.3)
*/
VOID WINAPI MOUSE_Disable(VOID)
VOID WINAPI Disable16(void)
{
DefMouseEventProc = 0;
}

View File

@ -1,6 +1,6 @@
1 pascal -ret16 Inquire(ptr) MOUSE_Inquire
2 pascal -ret16 Enable(segptr) MOUSE_Enable
3 pascal -ret16 Disable() MOUSE_Disable
1 pascal -ret16 Inquire(ptr) Inquire16
2 pascal -ret16 Enable(segptr) Enable16
3 pascal -ret16 Disable() Disable16
4 stub MOUSEGETINTVECT
5 stub GETSETMOUSEDATA
#Control Panel thinks this is implemented if it is available

View File

@ -10,7 +10,6 @@ DELAYIMPORTS = imm32
SPEC_SRCS16 = \
ddeml.spec \
mouse.drv.spec \
user.exe.spec
C_SRCS = \
@ -67,7 +66,6 @@ C_SRCS16 = \
bidi16.c \
comm16.c \
hook16.c \
mouse16.c \
network.c \
user16.c \
wnd16.c
@ -77,7 +75,6 @@ RC_SRCS = resources/user32.rc
SVG_SRCS = resources/oic_winlogo.svg
RC_SRCS16 = \
resources/mouse.rc \
resources/version16.rc
EXTRASUBDIRS = resources
@ -89,12 +86,6 @@ EXTRASUBDIRS = resources
user.exe.spec.o: user.exe.spec resources/version16.res
$(WINEBUILD) $(WINEBUILDFLAGS) --dll -o $@ --heap 65520 --main-module $(MODULE) --res resources/version16.res --export $(SRCDIR)/user.exe.spec
mouse.drv.spec.o: mouse.drv.spec resources/mouse.res
$(WINEBUILD) $(WINEBUILDFLAGS) --dll -o $@ --main-module $(MODULE) --res resources/mouse.res --export $(SRCDIR)/mouse.drv.spec
resources/mouse.res: resources/mouse.rc
$(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/resources/mouse.rc
resources/version16.res: resources/version16.rc
$(LDPATH) $(RC16) $(RC16FLAGS) -fo$@ $(SRCDIR)/resources/version16.rc