Get HDD Serial Number on Vista Ultimate 64 bit
I was once looking for getting the HDD serial number without using WMI, and I found it. [The code I found and posted on StackOverFlow.com][1] works very well on 32 bit Windows, both XP and Vista. The trouble only begins when I try to get the serail number on 64 bit OSs (Vista Ultimate 64, specifically). The code returns String.Empty, or a Space all the time.

Anyone got an idea how to fix this?


  [1]: http://stackoverflow.com/questions/278062/converting-hdd-serial-vb6-code-into-vb-net-code
Get HDD Serial Number on Vista Ultimate 64 bit
===

I was once looking for getting the HDD serial number without using WMI, and I found it. [The code I found and posted on StackOverFlow.com][1] works very well on 32 bit Windows, both XP and Vista. The trouble only begins when I try to get the serail number on 64 bit OSs (Vista Ultimate 64, specifically). The code returns String.Empty, or a Space all the time.

Anyone got an idea how to fix this?


  [1]: http://stackoverflow.com/questions/278062/converting-hdd-serial-vb6-code-into-vb-net-code