Hello! I want to list all physical drives on my machine... anybody knows how to do this? (win32 api, c++)
On Apr 2, 1:05 am, CAHEK wrote: > Hello! > I want to list all physical drives on my machine... > anybody knows how to do this? > > (win32 api, c) Hi, You can use the following APIs to get the currently available disk drives on your machine: GetLogicalDrives() GetLogicalDriveStrings() GetDriveType() http://msdn2.microsoft.com/en-us/library/aa364972.aspx http://msdn2.microsoft.com/en-us/library/aa364975.aspx http://msdn2.microsoft.com/en-us/library/aa364939.aspx Kellie.
CAHEK wrote: > Hello! > I want to list all physical drives on my machine... > anybody knows how to do this? > > > (win32 api, c++) You're looking for the list that shows up in Device Manager, right? SetupDi* will do that, perhaps SetupDiCreateDeviceInfoList is what you are looking for
Hi! Could u explain me how can i filter medias for display just hard drives? I can't find any exemple and i never uded SedupDi functions...