 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
dark poulpo Guest
|
|
| Back to top |
|
 |
Le Gaulois Guest
|
Posted: Mon Feb 14, 2005 10:26 am Post subject: Re: secteur d'un disque dur |
|
|
Thierry59 a écrit :
| Quote: |
Via le PC, comment, lire directement un secteur de disque dur ?
Si je programme en C: Faut t'il ouvrir un fichier... avec un nom bien
specifique ?
Merci pour votre aide.
|
Le mieux serait de consulter Interrrupts List de Ralf Brown
http://www-2.cs.cmu.edu/afs/cs/user/ralf/pub/WWW/files.html
http://www.ctyme.com/rbrown.htm
INT 13 - DISK - READ SECTOR(S) INTO MEMORY
AH = 02h
AL = number of sectors to read (must be nonzero)
CH = low eight bits of cylinder number
CL = sector number 1-63 (bits 0-5)
high two bits of cylinder (bits 6-7, hard disk only)
DH = head number
DL = drive number (bit 7 set for hard disk)
ES:BX -> data buffer
Return: CF set on error
if AH = 11h (corrected ECC error), AL = burst length
CF clear if successful
AH = status (see #00234)
AL = number of sectors transferred (only valid if CF set for some
BIOSes)
voir aussi INT 13 AH= 41h et suivants pour l'accès aux disques
de taille > 8,4 Go
Depuis les C il y a des moyens de faire appel aux interruptions
il faut consulter la doc de bibliothèques fournies avec le
compilateur
Lorsqu'on crosspost dans plusieurs forums, il faut indiquer
dans lequel doit se poursuivre la discussion au moyen
d'un "Followup-to"
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|