Changeset 37601 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 22, 2011 10:11:50 PM (13 years ago)
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
r37596 r37601 1158 1158 IO_STATUS_BLOCK IoStatusBlock = {0}; 1159 1159 FILE_FS_SIZE_INFORMATION FsSize= {0}; 1160 NTSTATUS rcNt = NtQueryVolumeInformationFile( RTFileToNative(pThis->hFileDevice), &IoStatusBlock,1160 NTSTATUS rcNt = NtQueryVolumeInformationFile((HANDLE)RTFileToNative(pThis->hFileDevice), &IoStatusBlock, 1161 1161 &FsSize, sizeof(FsSize), FileFsSizeInformation); 1162 1162 int cRetries = 5; … … 1164 1164 { 1165 1165 RTThreadSleep(10); 1166 rcNt = NtQueryVolumeInformationFile( RTFileToNative(pThis->hFileDevice), &IoStatusBlock,1166 rcNt = NtQueryVolumeInformationFile((HANDLE)RTFileToNative(pThis->hFileDevice), &IoStatusBlock, 1167 1167 &FsSize, sizeof(FsSize), FileFsSizeInformation); 1168 1168 } -
trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
r37596 r37601 189 189 /* do ioctl */ 190 190 DWORD cbReturned; 191 if (DeviceIoControl( RTFileToNative(hFileDevice), IOCTL_STORAGE_EJECT_MEDIA,191 if (DeviceIoControl((HANDLE)RTFileToNative(hFileDevice), IOCTL_STORAGE_EJECT_MEDIA, 192 192 NULL, 0, 193 193 NULL, 0, &cbReturned, … … 274 274 DWORD cbReturned; 275 275 int rc; 276 if (DeviceIoControl( RTFileToNative(pThis->hFileDevice), IOCTL_STORAGE_MEDIA_REMOVAL,276 if (DeviceIoControl((HANDLE)RTFileToNative(pThis->hFileDevice), IOCTL_STORAGE_MEDIA_REMOVAL, 277 277 &PreventMediaRemoval, sizeof(PreventMediaRemoval), 278 278 NULL, 0, &cbReturned, … … 620 620 Req.spt.SenseInfoLength = (UCHAR)RT_MIN(sizeof(Req.aSense), cbSense); 621 621 Req.spt.SenseInfoOffset = RT_OFFSETOF(struct _REQ, aSense); 622 if (DeviceIoControl( RTFileToNative(pThis->hFileDevice), IOCTL_SCSI_PASS_THROUGH_DIRECT,622 if (DeviceIoControl((HANDLE)RTFileToNative(pThis->hFileDevice), IOCTL_SCSI_PASS_THROUGH_DIRECT, 623 623 &Req, sizeof(Req), &Req, sizeof(Req), &cbReturned, NULL)) 624 624 {
Note:
See TracChangeset
for help on using the changeset viewer.