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 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 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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