AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

PSDK - read defect sectors ?

Ein Thema von cdkiller · begonnen am 26. Jul 2004 · letzter Beitrag vom 27. Jul 2004
Antwort Antwort
cdkiller

Registriert seit: 23. Jul 2004
23 Beiträge
 
#1

PSDK - read defect sectors ?

  Alt 26. Jul 2004, 03:47
hello,

can i use the platform sdk to read sectors of a disk and show a message if one is defekt ?
when yes, can someone post an example ?

thanks...

cu
cdkiller
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#2

Re: PSDK - read defect sectors ?

  Alt 26. Jul 2004, 03:52
The PSDK ist just the documentation for the Windows API Functions. You better think it over and ask again what you really want. And then ask a meaningful question.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
cdkiller

Registriert seit: 23. Jul 2004
23 Beiträge
 
#3

Re: PSDK - read defect sectors ?

  Alt 26. Jul 2004, 04:17
yes i know that it is a documentation.

my question was about it.

how can i read defect sector with the win api functions ?

thanks.
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#4

Re: PSDK - read defect sectors ?

  Alt 26. Jul 2004, 13:49
Zitat von cdkiller:
how can i read defect sector with the win api functions ?
That's a meaningfull Question. .

I'd say no. You will have to access the HDD at really low level. API functions are still to high. Therefore you might need to write a device driver. And that is impossible with Delphi. You need Visual C by MS and the DDK also by MS.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
w3seek
(Gast)

n/a Beiträge
 
#5

Re: PSDK - read defect sectors ?

  Alt 26. Jul 2004, 14:03
Zitat von cdkiller:
how can i read defect sector with the win api functions ?
That's an oxymoron....how could you read sectors if they're broken? All you could do is trying to detect whether the sector is bad or not. But there's no high-level api for something like this, so you'd need to write a driver. I don't see a point in "copy protections" because you invest months/years in development and it's being cracked within only a few hours or days. Plus copy protection really is bugging your clients! If I were a software vendor, I wouldn't "protect" CDs/DVDs this way. Plus, unless sectors aren't physically broken, it doesn't make sense because you could always duplicate the disk. Oh, and note that you can't call a copy-protected medium "CD"!
  Mit Zitat antworten Zitat
Kernel32.DLL
(Gast)

n/a Beiträge
 
#6

Re: PSDK - read defect sectors ?

  Alt 26. Jul 2004, 14:09
You might find sth. at www.swissdelphicenter.com or swiss.torry.net

I'm sure that there is a unit, with which you can read defect sectors on a floppy. You just need to modify it a little bit (no problem with PSDK). I'am sure, that the source is posted in a comment...

I worked with that unit a long time ago but I lost it.

(If everyone would use google.de/google.com )
  Mit Zitat antworten Zitat
Kernel32.DLL
(Gast)

n/a Beiträge
 
#7

Re: PSDK - read defect sectors ?

  Alt 27. Jul 2004, 00:26
Well then...

Because I'm such a nice guy, I searched for the Unit in the dark in deeps of my HDD. And I found it!

But there are of course some things that must be modified,
like:

BYTESPERSECTOR: 512 <= only for a Floppy!


BTW: It's from swissdelphicenter.net written by Lemi


Daniel
Angehängte Dateien
Dateityp: pas directdiscaccess.pas (9,5 KB, 21x aufgerufen)
  Mit Zitat antworten Zitat
w3seek
(Gast)

n/a Beiträge
 
#8

Re: PSDK - read defect sectors ?

  Alt 27. Jul 2004, 00:43
This won't help you detecting physically "defect" sectors. And unless they're really physically defect, you can easily copy them with every cd/dvd clone utility...
  Mit Zitat antworten Zitat
Kernel32.DLL
(Gast)

n/a Beiträge
 
#9

Re: PSDK - read defect sectors ?

  Alt 27. Jul 2004, 18:05
What?

Of course you can detect physically defect sectors with this Unit. You'll never be able to read defect sectors.

I tried it by making a scratch on a CD and trying to read the sectors. As expected, it didn't work. But the Unit told me, how many sectors are damaged.

I think, this is what he wants, isn't it?
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:18 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz