Displaying 1 result from an estimated 1 matches for "getstoragedevicenumberbyhandl".
Did you mean:
getstoragedevicenumberbyhandle
2010 Sep 18
1
find bug:syslinux.exe
...itionNum, int write_mbr, int set_active)
{
BOOL result = TRUE;
HANDLE drive;
char driveName[128];
sprintf(driveName, "\\\\.\\PHYSICALDRIVE%d", driveNum);
==========================
It need a drive num!!! It get it from function :
==========================
STORAGE_DEVICE_NUMBER sdn;
if (GetStorageDeviceNumberByHandle(d_handle, &sdn)) {
if (!FixMBR(sdn.DeviceNumber, sdn.PartitionNumber, opt.install_mbr,
opt.activate_partition)) {
==========================
function:
==========================
BOOL GetStorageDeviceNumberByHandle(HANDLE handle,
const STORAGE_DEVICE_NUMBER * sdn)
{
BOOL result = FALSE;
DWORD c...