Question about the parameter in PhysicalDisk.SmartStatus
The parameter page on the documentation page says the following: Zero-based HDD number on Windows
Exactly what is this? And how do I find out what number the target HDD has?
Couldn't find this on Google :(
This number is used to make device name (\\.\PhysicalDriveX, where X is that number) for accessing it using CreateFile().
You can find out disk number in Device manager: select HDD -> Properties -> Volumes -> Populate. "Disk" field should be something like 'Disk X' - that's it.
Thanks, works like a charm :)