delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/02/10/05:30:31

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <4028B2D6.6020004@lml.ls.fi.upm.es>
Date: Tue, 10 Feb 2004 11:30:46 +0100
From: Manuel Collado <m DOT collado AT aaron DOT ls DOT fi DOT upm DOT es>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Getting available logical drives
NNTP-Posting-Host: 138.100.10.20
X-Trace: 10 Feb 2004 11:29:53 +0100, 138.100.10.20
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Is there a DJGPP lib function equivalent to the Ms-Windows 
GetLogicalDrives one?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/getlogicaldrives.asp

So far, I've found:

         r.x.ax = 0x1C00;
         r.x.dx = drive;
         __dpmi_int(0x21,&r);
         valid = (r.h.al != 0xFF);

to test a specific drive. But in my WinNT4.0 box it also tests for valid 
media in removable disk drives, wich is not what I want.

Is there a way to simply test if a drive is _installed_ in the machine?

TIA,
-- 
To reply by e-mail, please remove the extra dot
in the given address:  m.collado -> mcollado

- Raw text -


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