[PATCH 3/3] wbemprox: Get the disk drive serial number from mountmgr.

Zebediah Figura zfigura at codeweavers.com
Thu May 21 15:59:07 CDT 2020


On 5/21/20 3:50 PM, Erich E. Hoover wrote:
> On Thu, May 21, 2020 at 12:48 PM Alexandre Julliard <julliard at winehq.org> wrote:
>> ...
>> Couldn't this go through some Win32 APIs instead of directly accessing
>> mountmgr?
> 
> GetVolumeInformationW

That retrieves the volume (aka filesystem) serial number, not the disk
drive serial number. The latter is distinguished by being alphanumeric
and more than 8 bytes long.

My guess is IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER, but I haven't tried
to verify this.

> 
> (I'm playing around in this area to try and rebase a patch)
> 
> Best,
> Erich
> 



More information about the wine-devel mailing list