From: tdryden AT iil DOT intel DOT com (Thomas Dryden) Subject: Re: Detecting CD-ROM drive 30 Oct 1997 07:00:52 -0800 Message-ID: <9710301427.AA39236.cygnus.gnu-win32@ilx408.iil.intel.com> References: <199710300338 DOT WAA00907 AT woodmore DOT gsfc DOT nasa DOT gov> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: arlindo AT niteroi DOT gsfc DOT nasa DOT gov (Arlindo da Silva) Cc: gnu-win32 AT cygnus DOT com Arlindo, GetLogicalDrives() will return a dword mask specifying which drives exist in the system, bit0 corresponding to drive "A:". If the bit is true, the drive exists. Once you have this info, you can then call GetDriveType() which will return one of the following: 0 - type unknown 1 - root dir does not exist DRIVE_REMOVEABLE DRIVE_FIXED DRIVE_REMOTE DRIVE_CDROM DRIVE_RAMDISK BTW, if you are on NT, then you can call GetLogicalDriveStrings() rather than GetLogicalDrives() which will return (arguably) more information in the form of: A:\ B:\ .... -Thomas => Arlindo da Silva writes: > > Does anybody know how to determine which drive (d:, e:, ...) is a CDROM? > Is there any native function for this? Thanks. > > -- > Arlindo da Silva > dasilva AT alum DOT mit DOT edu > > > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request AT cygnus DOT com" with one line of text: "help". > ====================================================================== Thomas Dryden tdryden AT iil DOT intel DOT com Intel Corporation, Haifa Israel phone: 972-4-865-5871 ====================================================================== - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".