Hi,
I have read Mark Roddy's article on
http://www.wd-3.com/121503/luserland.htm.
He described as you can get the sector address (LBA) a file on a harddisk.
His sample code works for NTFS & FAT32 partions. With a small look in
the FAT spec and some adaptations the sample also works for FAT12/16.
The sample works on W2K & WXP for harddisks and all disks declared as
"Local Disk". For "Removable Disk" like a USB Mass Storage Device
this sample (API call DeviceIoControl/IOCTL_VOLUME_LOGICAL_TO_PHYSICAL)
does not work and system error 50 (not supported) does occur.
The same device declared as "Local Disk" everythink does work.
Is there are a workaround to get
DeviceIoControl/IOCTL_VOLUME_LOGICAL_TO_PHYSICAL
data also on "Removable Disks" or is there are another possibility to get
the
wanted information on another way?
All hints are very welcome.
TIA Alex