On 5/21/20 3:50 PM, Erich E. Hoover wrote:
On Thu, May 21, 2020 at 12:48 PM Alexandre Julliard julliard@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