Displaying 1 result from an estimated 1 matches for "getdrivenumb".
Did you mean:
getdrivenumber
2010 Sep 18
1
find bug:syslinux.exe
...=====================
BOOL GetStorageDeviceNumberByHandle(HANDLE handle,
const STORAGE_DEVICE_NUMBER * sdn)
{
BOOL result = FALSE;
DWORD count;
if (DeviceIoControl(handle, IOCTL_STORAGE_GET_DEVICE_NUMBER, NULL,
0, (LPVOID) sdn, sizeof(*sdn), &count, NULL)) {
result = TRUE;
} else {
error("GetDriveNumber: DeviceIoControl failed");
}
return (result);
}
==========================
DeviceNumber!!
On my Thinkpad T400 machine, it have Intel turbo memory. DeviceNumber is
error value!!!
in MSDN, it said " To obtain the physical drive for a volume, open a
handle to the volume and call the *Devi...