Date: Wed, 25 Oct 2000 09:56:16 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Salvador I. Ducros" cc: djgpp AT delorie DOT com Subject: Re: Loading ramdrive.sys In-Reply-To: <39F60D12.50E1@cdn-net.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.)