- serial number
- Posted by Vincent Badier on June 24th, 2007
Hello all,
I'd like to get the serial number of the computer located in the bios.
This is possible via WMI, however, i'd like to do it via a normal API
call, or to write a function that does not rely at wll on WMI.
How this can be achived?
Vincent
- Posted by Lynn McGuire on June 26th, 2007
Good luck. That is a non uniform parameter to get.
You can get the hard drive serial number by using my diskid32
http://www.winsim.com/diskid32/diskid32.html utility.
Source code is there also !
Lynn
- Posted by Grzegorz Wróbel on June 26th, 2007
Lynn McGuire wrote:
The hard drive serial number can be obtained by a single call to
GetVolumeInformation() API.
--
Grzegorz Wróbel
http://www.4neurons.com/
677265676F727940346E6575726F6E732E636F6D
- Posted by Jeff Henkels on June 26th, 2007
"Grzegorz Wróbel" </dev/null@localhost.localdomain> wrote in message
news:f5rdub$dip$1@nemesis.news.tpi.pl...
GetVolumeInformation returns the volume serial number which is assigned by
the OS when the volume is formatted. This is NOT the hard drive serial
number, which can be obtained through WMI or by sending the appropriate
IOCTL to the drive.
To the OP: An alternative to WMI is to access the SMBIOS tables in ROM.
You'll need a device driver to help with this -- a simple NT4 legacy driver
will do the job.
- Posted by Grzegorz Wróbel on June 26th, 2007
Jeff Henkels wrote:
Ah, true. The OP didn't mention what he really needs that "computer
serial number" for. If acceptable for his purposes, I would stick to
simple GetVolumeInformation() API than use 1000 lines of code employing
inline asm to get the real hdd serial set by manufacturer.
--
Grzegorz Wróbel
http://www.4neurons.com/
677265676F727940346E6575726F6E732E636F6D