DriveInfo.GetDrives() will list all volumes mounted with a drive letter, but is there a way (without p / invoking Win32) to list raw volumes or see volumes that can be installed in a folder, not a drive letter?
DriveInfo.GetDrives()
Yes, using WMI (Windows Management Interface)
The Win32_DiskDrive class contains information about physical hard drives, which can then be further examined to get a list of partitions.
There is also a decent tutorial on using WMI from C # and .Net
Source: https://habr.com/ru/post/1447454/More articles:XSLT Filter Result Using XSLT Array - xpathChanging parameters after binding in Struts 2 - javaAdMob "Insufficient ad space" error - androidChoosing a portable encryption library - cGitHub Pages: Octopress in a subfolder (other pages at the root) - github-pagesWhat is the difference between url () and tuple for urlpatterns in Django? - pythonPartial Specialization Tasks - c ++Do java libraries ".jar" exist for performing backup and recovery - javaC ++ - Template Specialization and Partial Specialization - c ++syntax error in creating trigger, what's wrong? - mysqlAll Articles