Changeset 10777 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxRestore.cpp
- Timestamp:
- Jul 21, 2008 2:17:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxRestore.cpp
r10541 r10777 43 43 int VBoxRestoreInit(const VBOXSERVICEENV *pEnv, void **ppInstance, bool *pfStartThread) 44 44 { 45 dprintf(("VBoxRestoreInit\n"));45 Log(("VBoxRestoreInit\n")); 46 46 47 47 gCtx.pEnv = pEnv; … … 58 58 void VBoxRestoreDestroy(const VBOXSERVICEENV *pEnv, void *pInstance) 59 59 { 60 dprintf(("VBoxRestoreDestroy\n"));60 Log(("VBoxRestoreDestroy\n")); 61 61 return; 62 62 } … … 77 77 /* send to display driver */ 78 78 ret = ExtEscape(hdc, VBOXESC_ISVRDPACTIVE, 0, NULL, 0, NULL); 79 dprintf(("VBoxRestoreSession -> VRDP activate state = %d\n", ret));79 Log(("VBoxRestoreSession -> VRDP activate state = %d\n", ret)); 80 80 ReleaseDC(HWND_DESKTOP, hdc); 81 81 … … 86 86 if (!DeviceIoControl (gCtx.pEnv->hDriver, (ret) ? VBOXGUEST_IOCTL_ENABLE_VRDP_SESSION : VBOXGUEST_IOCTL_DISABLE_VRDP_SESSION, NULL, 0, NULL, 0, &cbReturned, NULL)) 87 87 { 88 dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n"));88 Log(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n")); 89 89 } 90 90 gCtx.fRDPState = ret; … … 108 108 if (DeviceIoControl (gVBoxDriver, VBOXGUEST_IOCTL_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL)) 109 109 { 110 dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask - or) succeeded\n"));110 Log(("VBoxRestoreThread: DeviceIOControl(CtlMask - or) succeeded\n")); 111 111 } 112 112 else 113 113 { 114 dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n"));114 Log(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n")); 115 115 return 0; 116 116 } … … 124 124 if (DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL)) 125 125 { 126 dprintf(("VBoxRestoreThread: DeviceIOControl succeded\n"));126 Log(("VBoxRestoreThread: DeviceIOControl succeded\n")); 127 127 128 128 /* are we supposed to stop? */ … … 130 130 break; 131 131 132 dprintf(("VBoxRestoreThread: checking event\n"));132 Log(("VBoxRestoreThread: checking event\n")); 133 133 134 134 /* did we get the right event? */ … … 141 141 else 142 142 { 143 dprintf(("VBoxTray: error 0 from DeviceIoControl VBOXGUEST_IOCTL_WAITEVENT\n"));143 Log(("VBoxTray: error 0 from DeviceIoControl VBOXGUEST_IOCTL_WAITEVENT\n")); 144 144 145 145 /* sleep a bit to not eat too much CPU in case the above call always fails */ … … 157 157 if (DeviceIoControl (gVBoxDriver, VBOXGUEST_IOCTL_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL)) 158 158 { 159 dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask - not) succeeded\n"));159 Log(("VBoxRestoreThread: DeviceIOControl(CtlMask - not) succeeded\n")); 160 160 } 161 161 else 162 162 { 163 dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed\n"));163 Log(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed\n")); 164 164 } 165 165 166 dprintf(("VBoxRestoreThread: finished seamless change request thread\n"));166 Log(("VBoxRestoreThread: finished seamless change request thread\n")); 167 167 return 0; 168 168 }
Note:
See TracChangeset
for help on using the changeset viewer.