2012-03-15 70 views
2

在windows編程中,我們如何才能找出硬盤驅動器上分區的數量和每個分區的名稱?硬盤驅動器上的分區名稱和數量

+0

你使用什麼語言? – 2012-03-15 14:17:52

+0

我正在使用C ... – user1232138 2012-03-15 14:18:37

+0

看看:http://stackoverflow.com/q/286534/1250303。 – Java42 2012-03-15 14:36:43

回答

1

關於如何在MSDN上執行此操作,有一個非常簡單的good article。它利用了GetLogicalDrives,GetLogicalDriveStrings,GetDriveTypeGetVolumeInformation函數。你可以download the source from here