July 23, 2012
7:07 p.m.
On 07/23/2012 03:03 PM, Alexandre Julliard wrote: > That's very inefficient. There are better way of enumerating drives, > check for instance QueryDosDevice. I'm not sure QueryDosDevice is more efficient : + with NULL device name, it returns every MS-DOS device which is not what we want + if we call it with A: B: C: and so on, we still need a loop + plus, we have to dynamically increase the buffer size while GetLastError is ERROR_INSUFFICIENT_BUFFER Would creating a new IOCTL_MOUNTMGR_QUERY_ALL_UNIX_DRIVES be (more) acceptable ?