[英]is there any way in c# to find the virtual disk drive details?
比如說D:
是虛擬驅動器; 我需要了解虛擬驅動器的以下詳細信息。
1. on which HDD it is present
2. virtual drive no.
3. want to write a file to confirm the details
問候
我認為您可能正在VHD API中尋找GetVirtualDiskPhysicalPath等。 這篇博客文章包含一些使用VHD的C#代碼,因此可能是一個起點。
如果您不能從中獲得所需的全部信息,則可能至少要獲得足夠的信息,以便可以使用WMI查詢其余信息,可能使用Win32_DiskDrive或類似工具。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.