S.M.A.R.T. value readout question

Started by xenth, April 17, 2008, 04:52:38 PM

Previous topic - Next topic

xenth

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  :(

Alex Kirhenshtein

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.

xenth