Get a List of Removable Devices [Win]
-
Hi,
is it possible to get the information if a device, like an USB stick, is an removeable device? Actually i get a list of all drives by using
QDir::drives()
but is it possible to filter the result, to only display USB- stick or hardrives?
Thanks for your help.
-
Could solve the Problem using WinAPI.
Just include
Windows.h
and use the
"UINT GetDriveTypeA(LPCSTR rootpath)"
funktion to get the drive Type.
-
Could solve the Problem using WinAPI.
Just include
Windows.h
and use the
"UINT GetDriveTypeA(LPCSTR rootpath)"
funktion to get the drive Type.