C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: secteur d'un disque dur

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French)
View previous topic :: View next topic  
Author Message
dark poulpo
Guest





PostPosted: Mon Feb 14, 2005 10:15 am    Post subject: Re: secteur d'un disque dur Reply with quote



tu trouveras ton bonheur ici je pense
http://xos.freezee.org/index.php?page=hard



--
-----
http://dark.freezee.org/
- Dark Update v2.0 (http://dark.freezee.org/appli/start.html )
- Dark Emule v0.44b r4
- Dark 3D-X 0.7beta
- Dark Shell 1.0 (le multi shell pour windows)


Back to top
Le Gaulois
Guest





PostPosted: Mon Feb 14, 2005 10:26 am    Post subject: Re: secteur d'un disque dur Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.