VirtualBox

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

merging vbglioc r117689: Initial VBoxGuest I/O control changes.

File:
1 edited

Legend:

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

    r63066 r68550  
    148148static NTSTATUS vboxNewProtRegisterMouseEventCb(BOOLEAN fRegister)
    149149{
    150     VBoxGuestMouseSetNotifyCallback CbInfo = {};
    151     CbInfo.pfnNotify = fRegister ? vboxNewProtMouseEventCb : NULL;
    152 
    153     NTSTATUS Status = vboxGdcSubmit(VBOXGUEST_IOCTL_SET_MOUSE_NOTIFY_CALLBACK, &CbInfo, sizeof (CbInfo));
     150    VBGLIOCSETMOUSENOTIFYCALLBACK Info;
     151    VBGLREQHDR_INIT(&Info.Hdr, SET_MOUSE_NOTIFY_CALLBACK);
     152    Info.u.In.pfnNotify = fRegister ? vboxNewProtMouseEventCb : NULL;
     153    Info.u.In.pvUser    = NULL;
     154
     155    NTSTATUS Status = vboxGdcSubmit(VBGL_IOCTL_SET_MOUSE_NOTIFY_CALLBACK, &Info, sizeof(Info));
    154156    if (!NT_SUCCESS(Status))
    155     {
    156157        WARN(("vboxGdcSubmit failed Status(0x%x)", Status));
     158    else if (RT_FAILURE(Info.Hdr.rc))
     159    {
     160        WARN(("VBGL_IOCTL_SET_MOUSE_NOTIFY_CALLBACK failed: rc=%Rrc", Info.Hdr.rc));
     161        Status = STATUS_UNSUCCESSFUL;
    157162    }
    158163    return Status;
     
    327332        if (!vboxIsVBGLInited() && !vboxIsVBGLInitFailed())
    328333        {
    329             int rc = VbglInitClient();
    330 
     334            int rc = VbglR0InitClient();
    331335            if (RT_SUCCESS(rc))
    332336            {
     
    540544            InterlockedExchange(&g_ctx.fVBGLInitFailed, TRUE);
    541545
    542             VbglTerminate();
     546            VbglR0TerminateClient();
    543547
    544548            /* The VBGL is now in the not initialized state. */
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