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

Erich E. Hoover erich.e.hoover at gmail.com
Thu May 21 17:26:29 CDT 2020


On Thu, May 21, 2020 at 2:59 PM Zebediah Figura <zfigura at codeweavers.com> wrote:
>
> 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.
> ...

Sorry, was trying to be helpful and didn't pay close enough attention.
If that ioctl is correct then probably the answer is that it needs to
be implemented, as it doesn't look like we have support for it at the
moment.

Best,
Erich



More information about the wine-devel mailing list