using harderr(), hardresume(), hardretn()

J

jaswinder

Greetings friends ~+~

I am developing a function that prepares a list of drives that are ready
to be read. If I use biosdisk() then that works fine for hard disk
drives and floppy disk drives, it tells me if the drive is ready (has a
disk and it is readable). In the case of CD-ROM's, networked drives,
jazz drives, zip drives, ram drives the biosdisk() function is useless.
The harderr() function (and its companions) seem to be the most
promising, I can intercept that annoying DOS message 'Not ready reading
drive X......'. I want to utilize the hardware error handler within the
function that prepares the drive list but then restore the normal error
handler for the rest of the program. Can this be done and how do I do
it? Thanks for any input.

--

----------------------------------------

Visit my web site at:

http://www.geocities.com/jaswinderprogramming

----------------------------------------
 
F

Felix Palmen

Hi jaswinder,

* jaswinder said:
I am developing a function that prepares a list of drives that are ready
to be read. If I use biosdisk() then that works fine for hard disk

Unfortunately, this is off-topic here, because it doesn't concern the
language C. biosdisk() et al. seem to be some platform-specific library
calls, either belonging to some operating system or to some
compiler/IDE-product's runtime environment. You should find a group
discussing programming using this OS or product.

Regards, Felix
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top