Changeset 10541 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxRestore.cpp
- Timestamp:
- Jul 11, 2008 6:00:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxRestore.cpp
r10374 r10541 84 84 DWORD cbReturned; 85 85 86 if (!DeviceIoControl (gCtx.pEnv->hDriver, (ret) ? IOCTL_VBOXGUEST_ENABLE_VRDP_SESSION : IOCTL_VBOXGUEST_DISABLE_VRDP_SESSION, NULL, 0, NULL, 0, &cbReturned, NULL))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 88 dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask) failed, SeamlessChangeThread exited\n")); … … 106 106 maskInfo.u32OrMask = VMMDEV_EVENT_RESTORED; 107 107 maskInfo.u32NotMask = 0; 108 if (DeviceIoControl (gVBoxDriver, IOCTL_VBOXGUEST_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL))108 if (DeviceIoControl (gVBoxDriver, VBOXGUEST_IOCTL_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL)) 109 109 { 110 110 dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask - or) succeeded\n")); … … 122 122 waitEvent.u32TimeoutIn = 5000; 123 123 waitEvent.u32EventMaskIn = VMMDEV_EVENT_RESTORED; 124 if (DeviceIoControl(gVBoxDriver, IOCTL_VBOXGUEST_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL))124 if (DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL)) 125 125 { 126 126 dprintf(("VBoxRestoreThread: DeviceIOControl succeded\n")); … … 141 141 else 142 142 { 143 dprintf(("VBoxTray: error 0 from DeviceIoControl IOCTL_VBOXGUEST_WAITEVENT\n"));143 dprintf(("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 */ … … 155 155 maskInfo.u32OrMask = 0; 156 156 maskInfo.u32NotMask = VMMDEV_EVENT_RESTORED; 157 if (DeviceIoControl (gVBoxDriver, IOCTL_VBOXGUEST_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL))157 if (DeviceIoControl (gVBoxDriver, VBOXGUEST_IOCTL_CTL_FILTER_MASK, &maskInfo, sizeof (maskInfo), NULL, 0, &cbReturned, NULL)) 158 158 { 159 159 dprintf(("VBoxRestoreThread: DeviceIOControl(CtlMask - not) succeeded\n"));
Note:
See TracChangeset
for help on using the changeset viewer.