search for: storage_device_number

Displaying 3 results from an estimated 3 matches for "storage_device_number".

2012 Jul 05
2
elflink: STORAGE_DEVICE_NUMBER proposal
(I realize this may get delayed) Per a2fd4f6, the mingw environment should provide a typedef for STORAGE_DEVICE_NUMBER. However, several are known to not provide this. If it exists, that .definition is preferable to one we may create. As a result, a solution should be found for the broken compilers. I have a proposal for a solution that while not elegant does achieve this task: A shell script, gcc-detect-stora...
2010 Sep 18
1
find bug:syslinux.exe
...L FixMBR(int driveNum, int partitionNum, 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_NUMBE...
2004 Aug 19
2
Syslinux patch
Out of necessity, a friend of mine and I have created a patch for syslinux to allow it to modify the mbr and partition table in windows. It adds a -m option to syslinux. If given, it will overwrite the MBR of the drive specified with the mbr.bin provided in syslinux, and if the bootable flag is not set on the partition being syslinuxed, it will set it. This was done to distribute with my USB