Mail Archives: djgpp/1998/05/18/13:45:18
From: | "Trevor Schmidt" <tschmidt AT icon DOT co DOT za>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Save Disk Sectors To a File ?
|
Date: | 18 May 1998 17:33:23 GMT
|
Organization: | An Internet Solution Customer
|
Lines: | 27
|
Message-ID: | <01bd8282$b1c551a0$1d9d22c4@bschmidt.icon.co.za>
|
NNTP-Posting-Host: | m1-29-ctn.dial-up.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I am trying to read physical disk sectors and then store them into a
file using the C programming language. (but does not have to be done in C).
I was told to use ABSREAD() but have had no luck as it is not in my
compilers DOS.H file. (or any of the .H files). I am using PCC and dgjpp.
My understanding of the absread() command is :
int absread(int drive,int count,int start,void *buffer)
where drive = 0 for A,1 for B and 2 for C
count = numbers of sectors to read
start = first sector number
buffer = address of buffer
and then write the contents of the buffer to a file.
The ABSREAD() command seems to be a non standard extensions, that
don't exist in all compilers including DGJPP.
If you have written C code using absread() or if you know how to read disk
sectors to a file maybe using either _bios_disk or you set up the registers
for the relevant BIOS interrupt and called int86(), then please assist.
Thank you
Trevor
tschmidt AT icon DOT co DOT za
- Raw text -