Mail Archives: djgpp/2000/10/25/07:30:13
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 -