Article View: borland.public.cppbuilder.nativeapi
Article #8167Re: CD sector r/w
From: Remy Lebeau (TeamB)
Date: Fri, 19 Nov 2004 19:59
Date: Fri, 19 Nov 2004 19:59
16 lines
1390 bytes
1390 bytes
"Boba" <Boba@somewhere.world> wrote in message
news:419e4b75@newsgroups.borland.com...
> trying to scan the disk for scratches (bad areas/tracks...)
You need to use DeviceIoControl() in order to access sectors and tracks
directly.
> I thought i could use CreateFile("\\\\.\\D:",...) with ReadFile
> to see when it fails due to bad sectors.
Obviously, that is not the case since you did not get any errors.
Gambit
Technical Details
Message-ID:
<419e5166$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<419e32eb@newsgroups.borland.com> <419e378e$1@newsgroups.borland.com> <419e4b75@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f45d17c1db0b0855 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <419e32eb@newsgroups.borland.com> <419e378e$1@newsgroups.borland.com> <419e4b75@newsgroups.borland.com> Subject: Re: CD sector r/w Date: Fri, 19 Nov 2004 11:59:53 -0800 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <419e5166$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100894566 68.69.17.41 (19 Nov 2004 12:02:46 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail