Changeset 4303 in vbox
- Timestamp:
- Aug 23, 2007 8:15:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxRestore.cpp
r4302 r4303 28 28 { 29 29 const VBOXSERVICEENV *pEnv; 30 31 BOOL fRDPState; 30 32 } VBOXRESTORECONTEXT; 31 33 … … 38 40 dprintf(("VBoxRestoreInit\n")); 39 41 40 gCtx.pEnv = pEnv; 42 gCtx.pEnv = pEnv; 43 gCtx.fRDPState = FALSE; 41 44 42 45 VBoxRestoreCheckVRDP(); … … 70 73 ret = ExtEscape(hdc, VBOXESC_ISVRDPACTIVE, 0, NULL, 0, NULL); 71 74 dprintf(("VBoxRestoreSession -> VRDP activate state = %d\n", ret)); 75 ReleaseDC(HWND_DESKTOP, hdc); 72 76 73 ReleaseDC(HWND_DESKTOP, hdc); 77 if (ret != gCtx.fRDPState) 78 { 79 if (!DeviceIoControl (gCtx.pEnv->gDriver, (ret) ? IOCTL_VBOXGUEST_ENABLE_VRDP_SESSION : IOCTL_VBOXGUEST_DISABLE_VRDP_SESSION, NULL, 0, NULL, 0, &cbReturned, NULL)) 80 { 81 dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n")); 82 } 83 gCtx.fRDPState = ret; 84 } 74 85 } 75 86
Note:
See TracChangeset
for help on using the changeset viewer.