ReadFile \ Write File [Failed LBA ???]

Hi All,

// Platform: Win NT\Win2k

In one of our applications we need to read raw (sector data)from the
Physical Drive (IDE HDD). We can use
HANDLE hFile = CreateFile(\.\PhysicalDriveN,…
BOOL blRet = ReadFile(hFile,…

If an err occurs while reading an LBA (due to bad sectors,…)we would like
to know the LBA \ Sector number for which the operation failed. We may retry
or do some operations like re-assign,…etc. But how can we get the failed
LBA for doing this?

Thanks in advance.

“Not everything that counts can be counted;
and not everything that can be counted counts”
… Albert Einstein