VirtualBox

Changeset 70337 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Dec 24, 2017 2:38:58 PM (7 years ago)
Author:
vboxsync
Message:

VBoxMouseNT: NT 3.1 tweaks.

Location:
trunk/src/VBox/Additions/WINNT/Mouse/NT4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Mouse/NT4/Makefile.kmk

    r69111 r70337  
    3030        VBoxPS2NT.rc
    3131VBoxMouseNT_LIBS        = \
     32        $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
     33        $(VBOX_LIB_VBGL_R0) \
     34        $(if-expr defined(VBOX_WITH_NT3_ADDITIONS),$(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/int64.lib,) \
    3235        $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/exsup.lib \
    3336        $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/ntoskrnl.lib \
    34         $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/hal.lib \
    35         $(VBOX_LIB_VBGL_R0) \
    36         $(VBOX_LIB_IPRT_GUEST_R0_NT4)
     37        $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/hal.lib
    3738VBoxMouseNT_CLEAN       = \
    3839        $(VBoxMouseNT_0_OUTDIR)/VBoxMouseNT.pdb
     40VBoxMouseNT_USES.win += vboximportchecker
     41ifndef VBOX_WITH_NT3_ADDITIONS
     42 VBoxMouseNT_VBOX_IMPORT_CHECKER.win.x86 = nt4/r0
     43else
     44 VBoxMouseNT_DEFS      += RT_WITHOUT_NOCRT_WRAPPERS TARGET_NT3
     45 VBoxMouseNT_SOURCES   += \
     46       ../../../../Runtime/r0drv/nt/nt3fakes-r0drv-nt.cpp \
     47       ../../../../Runtime/r0drv/nt/nt3fakesA-r0drv-nt.asm \
     48       ../../../../Runtime/common/string/strcmp.asm \
     49       ../../../../Runtime/common/string/strchr.asm
     50 VBoxMouseNT_VBOX_IMPORT_CHECKER.win.x86 = nt31/r0 #nt350/r0
     51 VBoxMouseNT_LDFLAGS +=
     52endif
     53
    3954
    4055include $(FILE_KBUILD_SUB_FOOTER)
  • trunk/src/VBox/Additions/WINNT/Mouse/NT4/VBoxPS2NT.cpp

    r69500 r70337  
    3737#undef ExFreePool
    3838#undef ExAllocatePool
     39
     40/* KeQueryTickCount is a macro accessing KeTickCount data export from NT 3.50+. */
     41#if 0 //def TARGET_NT3
     42# undef KeQueryTickCount
     43extern "C" NTKERNELAPI VOID NTAPI KeQueryTickCount(PLARGE_INTEGER);
     44#endif
    3945
    4046/* i8042 mouse status bits */
     
    19691975    if (pDevExt->HardwarePresent & KEYBOARD_HARDWARE_PRESENT)
    19701976    {
    1971         pDevExt->KbdExt.InputData = (PKEYBOARD_INPUT_DATA)
    1972             ExAllocatePool(NonPagedPool, pDevExt->Cfg.KbdAttr.InputDataQueueLength);
    1973 
     1977        pDevExt->KbdExt.InputData = (PKEYBOARD_INPUT_DATA)ExAllocatePool(NonPagedPool, pDevExt->Cfg.KbdAttr.InputDataQueueLength);
    19741978        if (!pDevExt->KbdExt.InputData)
    19751979        {
     
    19901994        MouNameFull.MaximumLength = sizeof(L"\\Device\\") + MouNameBase.Length + DevNameSuff.MaximumLength;
    19911995        MouNameFull.Buffer = (PWSTR)ExAllocatePool(PagedPool, MouNameFull.MaximumLength);
    1992 
    19931996        if (!MouNameFull.Buffer)
    19941997        {
     
    20222025            goto fail;
    20232026
    2024         pDevExt->MouExt.InputData =
    2025             (PMOUSE_INPUT_DATA)ExAllocatePool(NonPagedPool, pDevExt->Cfg.MouAttr.InputDataQueueLength);
     2027        pDevExt->MouExt.InputData = (PMOUSE_INPUT_DATA)ExAllocatePool(NonPagedPool, pDevExt->Cfg.MouAttr.InputDataQueueLength);
    20262028        if (!pDevExt->MouExt.InputData)
    20272029        {
     
    27062708    if (NT_SUCCESS(status))
    27072709    {
    2708         aQuery = (PRTL_QUERY_REGISTRY_TABLE)
    2709                         ExAllocatePool(PagedPool, sizeof(RTL_QUERY_REGISTRY_TABLE) * (queries + 1));
     2710        aQuery = (PRTL_QUERY_REGISTRY_TABLE)ExAllocatePool(PagedPool, sizeof(RTL_QUERY_REGISTRY_TABLE) * (queries + 1));
    27102711        if (!aQuery)
    27112712            status = STATUS_UNSUCCESSFUL;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette