VirtualBox

Ignore:
Timestamp:
Aug 31, 2017 12:09:59 PM (7 years ago)
Author:
vboxsync
Message:

merging vbglioc r117707: Mouse/NT5: Use always Vbgl APIs to talking to the driver. Must do lazy registration of the event callback as we don't know when VBoxGuest will show up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFDriver.cpp

    r62522 r68556  
    3030    NOREF(RegistryPath);
    3131    PAGED_CODE();
     32LOGREL(("DriverEntry:"));
    3233
    3334    int irc = RTR0Init(0);
     
    4243    DriverObject->DriverExtension->AddDevice = VBoxDrvAddDevice;
    4344
    44     for (int i=0; i<=IRP_MJ_MAXIMUM_FUNCTION; ++i)
    45     {
     45    for (int i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; ++i)
    4646        DriverObject->MajorFunction[i] = VBoxIrpPassthrough;
    47     }
    48 
    4947    DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = VBoxIrpInternalIOCTL;
    50     DriverObject->MajorFunction[IRP_MJ_PNP] = VBoxIrpPnP;
    51     DriverObject->MajorFunction[IRP_MJ_POWER] = VBoxIrpPower;
    52 
    53     NTSTATUS tmpStatus = VBoxNewProtInit();
    54     if (!NT_SUCCESS(tmpStatus))
    55     {
    56         WARN(("VBoxNewProtInit failed Status (0x%x)", tmpStatus));
    57     }
    58 
     48    DriverObject->MajorFunction[IRP_MJ_PNP]                     = VBoxIrpPnP;
     49    DriverObject->MajorFunction[IRP_MJ_POWER]                   = VBoxIrpPower;
     50
     51    VBoxMouFltInitGlobals();
    5952    LOGF_LEAVE();
    6053    return STATUS_SUCCESS;
     
    6760    LOGF_ENTER();
    6861
    69     NTSTATUS tmpStatus = VBoxNewProtTerm();
    70     if (!NT_SUCCESS(tmpStatus))
    71     {
    72         WARN(("VBoxNewProtTerm failed Status (0x%x)", tmpStatus));
    73     }
    74 
    75 
     62    VBoxMouFltDeleteGlobals();
    7663    RTR0Term();
    7764}
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