mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
e80cd6760c
CORE-15575 In addition, fix a PartitionId assignment copy-paste error in PartitionCreateDevice(). The returned standard UniqueId has the following format: - Basic volume on MBR disk: disk Mbr.Signature + partition StartingOffset (length: 0x0C) - Basic volume on GPT disk: "DMIO:ID:" + Gpt.PartitionGuid (length: 0x18) - Volume on Basic disk (NT <= 4): 8-byte FTDisk identifier (length: 0x08) - Volume on Dynamic disk (NT 5+): "DMIO:ID:" + dmio VolumeGuid (length: 0x18) - Super-floppy (single-partition with StartingOffset == 0), or Removable media: DiskInterfaceName. - As fallback, we use the VolumeInterfaceName. References: - https://winreg-kb.readthedocs.io/en/latest/sources/system-keys/Mounted-devices.html - https://stackoverflow.com/a/72787681/21852502 - Manual testing on Windows. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
debug.h | ||
guid.c | ||
partition.c | ||
partmgr.c | ||
partmgr.h | ||
partmgr.rc | ||
partmgr_reg.inf | ||
utils.c |