Programming interface for MOUNTVOL.EXE
Is there any programming interface for the MOUNTVOL command on Windows? What I'm trying to do is get the result from mountvol (even if I have to parse it from the command line) which gives me a list of drives with their GUID-like path (\\? \ Volume {...}) and get info about a device based on this path (this is a USB stick, VENDOR_ID, etc.). Any information on getting this or an alternative method (which works in Win98 +) would be appreciated.
+1
source to share
2 answers
You should find the APIs you need in the Volume Management Functions section of the MSDN Library:
http://msdn.microsoft.com/en-us/library/aa365730(VS.85).aspx
+5
source to share