🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8166

Re: CD sector r/w

#8166
From: Boba
Date: Fri, 19 Nov 2004 19:42
17 lines
1485 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:419e378e$1@newsgroups.borland.com...
>
> Please show a more complete code snippet that actually compiles.

I will ...

>  What exactly are you trying to accomplish in the first place?

trying to scan the disk for scratches (bad areas/tracks...)

> If you are trying to read sectors, you cannot use ReadFile() for that,
> you should be using DeviceIoControl() instead.

DeviceIoControl is a different story. I thought i could use
CreateFile("\\\\.\\D:",...) with ReadFile to see when it fails due to
bad sectors.
Technical Details
Message-ID: <419e4b75@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <419e32eb@newsgroups.borland.com> <419e378e$1@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: "Boba" <Boba@somewhere.world>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <419e32eb@newsgroups.borland.com> <419e378e$1@newsgroups.borland.com>
Subject: Re: CD sector r/w
Date: Fri, 19 Nov 2004 13:42:41 -0600
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 208.210.156.236
Message-ID: <419e4b75@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100893045 208.210.156.236 (19 Nov 2004 11:37:25 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail