Changeset 68550 in vbox for trunk/src/VBox/Additions/WINNT/Mouse/NT5
- Timestamp:
- Aug 31, 2017 12:09:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp
r63066 r68550 148 148 static NTSTATUS vboxNewProtRegisterMouseEventCb(BOOLEAN fRegister) 149 149 { 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)); 154 156 if (!NT_SUCCESS(Status)) 155 {156 157 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; 157 162 } 158 163 return Status; … … 327 332 if (!vboxIsVBGLInited() && !vboxIsVBGLInitFailed()) 328 333 { 329 int rc = VbglInitClient(); 330 334 int rc = VbglR0InitClient(); 331 335 if (RT_SUCCESS(rc)) 332 336 { … … 540 544 InterlockedExchange(&g_ctx.fVBGLInitFailed, TRUE); 541 545 542 Vbgl Terminate();546 VbglR0TerminateClient(); 543 547 544 548 /* The VBGL is now in the not initialized state. */
Note:
See TracChangeset
for help on using the changeset viewer.