www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/25/07:30:13

Date: Wed, 25 Oct 2000 09:56:16 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Salvador I. Ducros" <sducros AT home DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Loading ramdrive.sys
In-Reply-To: <39F60D12.50E1@cdn-net.com>
Message-ID: <Pine.SUN.3.91.1001025095558.7418G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 24 Oct 2000, Salvador I. Ducros wrote:

> Anybody out there have any ideas of how to load the MSDOS 5.0
> RamDisk driver (ramdrive.sys) from a DJGPP program, if its at all
> possible?

You can't.

> If not, anybody out there have any ideas of how to detect if
> the ramdrive.sys driver has been previously loaded and if so, what
> drive letter it is using?

It is not clear whether you want to detect any RAM disk, or
ramdrive.sys specifically.

If the former, you can use library function `getmntent': it returns,
for each drive, a structure where one member gives the type of the
filesystem mounted on that drive.  That function is quite slow, but if
you need only to call it once, you might not bother.

(Btw, I'd suggest to describe the reasons why you need to know this;
perhaps there's a different solution to your original problem, which
doesn't involve probing drives for being RAM disks.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019