Hi All,

I am trying to read the Physical Hard disk serial number(Not the volume serial number) which remains unchanged on formatting.

I have tried WMI as well as DeviceIOControl API as unmanaged code but it returns wrong serial number.

I have tried on the various OS and Hard disks, some of the results are as follows.

1. Win7 Professional Version - characters pairs are transposed like if Actual serial number is 3RGB9087P then the returned number is 3 GR9B80P7

2. On Win 7 Ultimate version it return as series of string like 2020202020202020207BB3674FQW09

The same thing occurs on Vista 32 bit and 64 bit.

Also under different user credentials results are different.

On win xp only, i have got correct result.

I have searched so many examples from different sites but the results are wrong.

Is there any standard way to do it.

Thanx for any kind of help,

Regards,