Changeset 10552 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Jul 11, 2008 8:05:12 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/VBoxOGL.cpp
r10541 r10552 257 257 258 258 if (DeviceIoControl (vboxOGLCtx.hGuestDrv, 259 VBOXGUEST_IOCTL_HGCM_CALL ,259 VBOXGUEST_IOCTL_HGCM_CALL(cbData), 260 260 pvData, cbData, 261 261 pvData, cbData, -
trunk/src/VBox/Additions/WINNT/VBoxControl/VBoxControl.cpp
r10541 r10552 883 883 884 884 if (DeviceIoControl (hDevice, 885 VBOXGUEST_IOCTL_HGCM_CALL ,885 VBOXGUEST_IOCTL_HGCM_CALL(cbMsg), 886 886 pMsg, cbMsg, 887 887 pMsg, cbMsg, -
trunk/src/VBox/Additions/WINNT/VBoxGINA/Helper.cpp
r10541 r10552 68 68 vmmreqCredentials.u32Flags |= VMMDEV_CREDENTIALS_QUERYPRESENCE; 69 69 DWORD cbReturned; 70 if (!DeviceIoControl(vboxDriver, VBOXGUEST_IOCTL_VMMREQUEST , &vmmreqCredentials, sizeof(vmmreqCredentials),70 if (!DeviceIoControl(vboxDriver, VBOXGUEST_IOCTL_VMMREQUEST(sizeof(vmmreqCredentials)), &vmmreqCredentials, sizeof(vmmreqCredentials), 71 71 &vmmreqCredentials, sizeof(vmmreqCredentials), &cbReturned, NULL)) 72 72 { … … 96 96 vmmreqCredentials.u32Flags |= VMMDEV_CREDENTIALS_CLEAR; 97 97 DWORD cbReturned; 98 if (!DeviceIoControl(vboxDriver, VBOXGUEST_IOCTL_VMMREQUEST , &vmmreqCredentials, sizeof(vmmreqCredentials),98 if (!DeviceIoControl(vboxDriver, VBOXGUEST_IOCTL_VMMREQUEST(sizeof(vmmreqCredentials)), &vmmreqCredentials, sizeof(vmmreqCredentials), 99 99 &vmmreqCredentials, sizeof(vmmreqCredentials), &cbReturned, NULL)) 100 100 { -
trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp
r10541 r10552 797 797 } 798 798 799 case VBOXGUEST_IOCTL_VMMREQUEST :799 case VBOXGUEST_IOCTL_VMMREQUEST(sizeof(VMMDevRequestHeader)): 800 800 { 801 801 dprintf(("VBoxGuest::VBoxGuestDeviceControl: VBOXGUEST_IOCTL_VMMREQUEST\n")); … … 972 972 } break; 973 973 974 case VBOXGUEST_IOCTL_HGCM_CALL :974 case VBOXGUEST_IOCTL_HGCM_CALL(sizeof(VBoxGuestHGCMCallInfo)): 975 975 { 976 976 dprintf(("VBoxGuest::VBoxGuestDeviceControl: VBOXGUEST_IOCTL_HGCM_CALL\n")); -
trunk/src/VBox/Additions/WINNT/VBoxHook/VBoxHook.cpp
r10541 r10552 135 135 { 136 136 DWORD cbReturned; 137 DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST , pReq, pReq->size,137 DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST(pReq->size), pReq, pReq->size, 138 138 pReq, pReq->size, &cbReturned, NULL); 139 139 return VINF_SUCCESS; -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r10541 r10552 162 162 163 163 if (DeviceIoControl (hDriver, 164 VBOXGUEST_IOCTL_HGCM_CALL ,164 VBOXGUEST_IOCTL_HGCM_CALL(cbData), 165 165 pvData, cbData, 166 166 pvData, cbData, … … 815 815 816 816 if (!DeviceIoControl (hDriver, 817 VBOXGUEST_IOCTL_HGCM_CALL ,817 VBOXGUEST_IOCTL_HGCM_CALL(sizeof (parms)), 818 818 &parms, sizeof (parms), 819 819 &parms, sizeof (parms), -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
r10541 r10552 409 409 displayChangeRequest.header.requestType = VMMDevReq_GetDisplayChangeRequest2; 410 410 displayChangeRequest.eventAck = VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST; 411 BOOL fDisplayChangeQueried = DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST , &displayChangeRequest, sizeof(VMMDevDisplayChangeRequest2),411 BOOL fDisplayChangeQueried = DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST(sizeof(VMMDevDisplayChangeRequest2)), &displayChangeRequest, sizeof(VMMDevDisplayChangeRequest2), 412 412 &displayChangeRequest, sizeof(VMMDevDisplayChangeRequest2), &cbReturned, NULL); 413 413 if (!fDisplayChangeQueried) … … 418 418 displayChangeRequest.header.requestType = VMMDevReq_GetDisplayChangeRequest; 419 419 displayChangeRequest.eventAck = VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST; 420 fDisplayChangeQueried = DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST , &displayChangeRequest, sizeof(VMMDevDisplayChangeRequest),420 fDisplayChangeQueried = DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST(sizeof(VMMDevDisplayChangeRequest)), &displayChangeRequest, sizeof(VMMDevDisplayChangeRequest), 421 421 &displayChangeRequest, sizeof(VMMDevDisplayChangeRequest), &cbReturned, NULL); 422 422 displayChangeRequest.display = 0; -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSeamless.cpp
r10541 r10552 85 85 86 86 DWORD cbReturned; 87 if (!DeviceIoControl(pEnv->hDriver, VBOXGUEST_IOCTL_VMMREQUEST , &vmmreqGuestCaps, sizeof(vmmreqGuestCaps),87 if (!DeviceIoControl(pEnv->hDriver, VBOXGUEST_IOCTL_VMMREQUEST(sizeof(vmmreqGuestCaps)), &vmmreqGuestCaps, sizeof(vmmreqGuestCaps), 88 88 &vmmreqGuestCaps, sizeof(vmmreqGuestCaps), &cbReturned, NULL)) 89 89 { … … 115 115 116 116 DWORD cbReturned; 117 if (!DeviceIoControl(pEnv->hDriver, VBOXGUEST_IOCTL_VMMREQUEST , &vmmreqGuestCaps, sizeof(vmmreqGuestCaps),117 if (!DeviceIoControl(pEnv->hDriver, VBOXGUEST_IOCTL_VMMREQUEST(sizeof(vmmreqGuestCaps)), &vmmreqGuestCaps, sizeof(vmmreqGuestCaps), 118 118 &vmmreqGuestCaps, sizeof(vmmreqGuestCaps), &cbReturned, NULL)) 119 119 { … … 337 337 seamlessChangeRequest.eventAck = VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST; 338 338 339 BOOL fSeamlessChangeQueried = DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST , &seamlessChangeRequest, sizeof(seamlessChangeRequest),339 BOOL fSeamlessChangeQueried = DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST(sizeof(seamlessChangeRequest)), &seamlessChangeRequest, sizeof(seamlessChangeRequest), 340 340 &seamlessChangeRequest, sizeof(seamlessChangeRequest), &cbReturned, NULL); 341 341 if (fSeamlessChangeQueried) -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxStatistics.cpp
r10541 r10552 69 69 req.eventAck = 0; 70 70 71 if (DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST , &req, req.header.size, &req, req.header.size, &cbReturned, NULL))71 if (DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST(req.header.size), &req, req.header.size, &req, req.header.size, &cbReturned, NULL)) 72 72 { 73 73 dprintf(("VBoxStatsInit: new statistics interval %d seconds\n", req.u32StatInterval)); … … 225 225 req.guestStats.u32CpuId = i; 226 226 227 if (DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST , &req, req.header.size, &req, req.header.size, &cbReturned, NULL))227 if (DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST(req.header.size), &req, req.header.size, &req, req.header.size, &cbReturned, NULL)) 228 228 { 229 229 dprintf(("VBoxStatsReportStatistics: new statistics reported successfully!\n")); … … 283 283 req.eventAck = VMMDEV_EVENT_STATISTICS_INTERVAL_CHANGE_REQUEST; 284 284 285 if (DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST , &req, req.header.size, &req, req.header.size, &cbReturned, NULL))285 if (DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST(req.header.size), &req, req.header.size, &req, req.header.size, &cbReturned, NULL)) 286 286 { 287 287 dprintf(("VBoxStatsThread: new statistics interval %d seconds\n", req.u32StatInterval)); -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r10541 r10552 84 84 } 85 85 86 DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST , pReq, pReq->header.size,86 DeviceIoControl(gVBoxDriver, VBOXGUEST_IOCTL_VMMREQUEST(pReq->header.size), pReq, pReq->header.size, 87 87 pReq, pReq->header.size, &cbReturned, NULL); 88 88 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxVRDP.cpp
r10541 r10552 360 360 361 361 if (DeviceIoControl (gVBoxDriver, 362 VBOXGUEST_IOCTL_VMMREQUEST ,362 VBOXGUEST_IOCTL_VMMREQUEST(sizeof(VMMDevVRDPChangeRequest)), 363 363 &vrdpChangeRequest, 364 364 sizeof(VMMDevVRDPChangeRequest),
Note:
See TracChangeset
for help on using the changeset viewer.