Changeset 10552 in vbox for trunk/src/VBox
- Timestamp:
- Jul 11, 2008 8:05:12 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 15 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), -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r10545 r10552 1215 1215 */ 1216 1216 int rc = VINF_SUCCESS; 1217 if (VBOXGUEST_IOCTL_STRIP_SIZE(iFunction) == VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_VMMREQUEST ))1217 if (VBOXGUEST_IOCTL_STRIP_SIZE(iFunction) == VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_VMMREQUEST(0))) 1218 1218 { 1219 1219 CHECKRET_MIN_SIZE("VMMREQUEST", sizeof(VMMDevRequestHeader)); … … 1224 1224 * This one is tricky and can be done later. 1225 1225 */ 1226 else if (VBOXGUEST_IOCTL_STRIP_SIZE(iFunction) == VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL ))1226 else if (VBOXGUEST_IOCTL_STRIP_SIZE(iFunction) == VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL(0))) 1227 1227 { 1228 1228 CHECKRET_MIN_SIZE("HGCM_CALL", sizeof(VBoxGuestHGCMCallInfo)); -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibClipboard.cpp
r10543 r10552 100 100 VbglHGCMParmUInt32Set(&Msg.formats, 0); 101 101 102 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL , &Msg, sizeof(Msg));102 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg)); 103 103 if (RT_SUCCESS(rc)) 104 104 { … … 150 150 VbglHGCMParmUInt32Set(&Msg.size, 0); 151 151 152 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL , &Msg, sizeof(Msg));152 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg)); 153 153 if (RT_SUCCESS(rc)) 154 154 { … … 188 188 VbglHGCMParmUInt32Set(&Msg.formats, fFormats); 189 189 190 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL , &Msg, sizeof(Msg));190 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg)); 191 191 if (RT_SUCCESS(rc)) 192 192 rc = Msg.hdr.result; … … 217 217 VbglHGCMParmPtrSet(&Msg.ptr, pv, cb); 218 218 219 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL , &Msg, sizeof(Msg));220 if (RT_SUCCESS(rc)) 221 rc = Msg.hdr.result; 222 return rc; 223 } 224 219 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg)); 220 if (RT_SUCCESS(rc)) 221 rc = Msg.hdr.result; 222 return rc; 223 } 224 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibInfoSvc.cpp
r10543 r10552 103 103 VbglHGCMParmPtrSet(&Msg.key, pszKey, strlen(pszKey) + 1); 104 104 VbglHGCMParmPtrSet(&Msg.value, pszValue, strlen(pszValue) + 1); 105 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL , &Msg, sizeof(Msg));105 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg)); 106 106 if (RT_SUCCESS(rc)) 107 107 rc = Msg.hdr.result; … … 116 116 Msg.hdr.cParms = 1; 117 117 VbglHGCMParmPtrSet(&Msg.key, pszKey, strlen(pszKey) + 1); 118 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL , &Msg, sizeof(Msg));118 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg)); 119 119 if (RT_SUCCESS(rc)) 120 120 rc = Msg.hdr.result; … … 155 155 VbglHGCMParmUInt32Set(&Msg.size, 0); 156 156 157 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL , &Msg, sizeof(Msg));157 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg)); 158 158 if (RT_SUCCESS(rc)) 159 159 rc = Msg.hdr.result; -
trunk/src/VBox/Additions/linux/module/vboxmod.c
r10545 r10552 435 435 IOCTL_LOG_EXIT(arg); 436 436 } 437 else if ( VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_VMMREQUEST )437 else if ( VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_VMMREQUEST(0)) 438 438 == VBOXGUEST_IOCTL_STRIP_SIZE(cmd)) { 439 439 VMMDevRequestHeader reqHeader; … … 525 525 IOCTL_VMM_EXIT(arg); 526 526 } 527 else if ( ( VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL )527 else if ( ( VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL(0)) 528 528 == VBOXGUEST_IOCTL_STRIP_SIZE(cmd)) 529 529 || (cmd == VBOXGUEST_IOCTL_HGCM_CALL))
Note:
See TracChangeset
for help on using the changeset viewer.