kernel32: Reimplement GetLogicalDrives using the mountmgr

Alexandre Julliard julliard at winehq.org
Mon Jul 23 14:45:27 CDT 2012


GOUJON Alexandre <ale.goujon at gmail.com> writes:

> I may be mis-using it but on my (virtualized) Win7, QueryDosDevice
> with a NULL argument returns 6651 chars.
> I truncated the output to the first strings and here's the result :
>
> Z:
> Global
> D:
> ACPI#PNP0C0A#0#{72631e54-78a4-11d0-bcf7-00aa00b7b32a}
> PhysicalDrive0
> DISPLAY5
> Root#MS_L2TPMINIPORT#0000#{cac88484-7515-4c03-82e6-71a87abac361}
> VDRVROOT
> STORAGE#Volume#{a76e80e3-477f-11e1-b83a-806e6f6e6963}#0000000006500000#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
> SW#{eeab7790-c514-11d1-b42b-00805fc1270e}#asyncmac#{cac88484-7515-4c03-82e6-71a87abac361}
> Root#SYSTEM#0000#{97ebaacb-95bd-11d0-a3ea-00a0c9223196}
> DISPLAY1
> Root#MS_SSTPMINIPORT#0000#{cac88484-7515-4c03-82e6-71a87abac361}
>
> And note that using NULL, the strings are concatenated.
> So getting each string is not very easy.

It's actually very easy, but you don't even need that. Look at how
QueryDosDevice is implemented and think about it some more.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list