Is there any programatic interface for the MOUNTVOL command in Windows? What I am trying to do is get the output from mountvol (even if I have to parse it from the command line), which gives me the list of drives with their GUID-like path (\\?\Volume{...}) and get the device information based on that path (is it a USB drive, VENDOR_ID, etc). Any information on getting that or an alternative method (which works in Win98+) would be appreciated.
+2
A:
You should be able to find the API calls you need in the "Volume Management Functions" portion of the MSDN Library:
http://msdn.microsoft.com/en-us/library/aa365730(VS.85).aspx
Alnitak
2008-12-28 22:30:05