Classes to identify device parameters?

  • Thread starter Thread starter Peter Wilford
  • Start date Start date
P

Peter Wilford

Hi All,

I'm fairly new to .Net Framework, so if this has been answered before,
please redirect me...

One of the public methods in the Environment class is
'GetLogicalDrives', which returnes a String[]...

What methods/classes allow the programmer to querry the types of devides
returned in this array... For example, I need to know, if the device is
a 'removable' device (i.e. memory stick, CD-ROM, etc)... What class
method could be used to identify these devices (from a string no less)...

You help would be appreciated...
Thanks,

Peter Wilford
 
Peter,
What methods/classes allow the programmer to querry the types of devides
returned in this array... For example, I need to know, if the device is
a 'removable' device (i.e. memory stick, CD-ROM, etc)... What class
method could be used to identify these devices (from a string no less)...

There's no such class in v1 of the framework. You could get the
information with the GetDriveType Win32 API or with WMI
(System.Management).



Mattias
 
Back
Top