2

Possible Duplicate:
GetDriveType in C#? or find out if my drive is removable?

I want to know whether an inserted storage media is a flash card or a USB stick. Windows 7 knows this, because it shows nice icons for the disk. How can C# access this information?

DriveImages

I have looked at ManagementObjectSearcher, ManagementEventWatcher("SELECT * FROM Win32_VolumeChangeEvent") and DriveInfo, but none of these gives this type of information as far as I can see.

4

0 に答える 0