This is a first attempt to partly emulate the Linux directory /dev/disk/by-id. Useful to make sure the correct device is accessed in conjunction with dd, ddrescue, fdisk, .... The additional '*-partN' links to partitions are not yet included. This only works properly if Win32 path '\\.\PhysicalDriveN' is always trivially mapped to NT path '\Device\HarddiskN\Partition0'. IOCTL_STORAGE_QUERY_PROPERTY with a handle from NtOpenFile(., READ_CONTROL,...) instead of CreateFile(., 0, ...) did not work with all drivers. With stornvme.sys, it fails with permission denied. Perhaps other permission bits are required for NtOpenFile(). Thanks for any info regarding this. Note that the BusType information is often not accurate. For example drives behind Intel RST drivers may always be listed as "raid-PRODUCT_SERIAL" even if not part of a RAID volume. The changes for the generated file devices.cc are not included in the patch. -- Regards, Christian