When I open Disk Management
(right click My Computer->Manage) I see:
How can I know that path F:\
belongs to Disk5? In other words I will like to know what disks are available with C#.
The reason why I need to know that is because I have a usb mas storage device that is encrypted and I need to pass the parameter \Device\Harddisk5
to TrueCrypt along with the password in order to mount the encrypted device with code.
Edit
I know how to look the drives info. I just dont konw how to know that Drive 1 belongs to disk 0 for instance. In other words I am having trouble figuring out the Disk Number. I am looking to implement:
public string GetDiskNumber(char letter)
{
// implenetation
return Disk5;
}
where I will call that as:
GetDiskNumber('F');