By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,194 Members | 1,628 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,194 IT Pros & Developers. It's quick & easy.

CPU or MB Serial number

P: n/a
Hi,
How can I get CPU Serial number , or motherboard serial number with
C . I need an idetification of a computer ....
ThanX

---------------------------------------------------
iranian python community --www.python.ir

Jul 14 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
ba*****@gmail.com said:
Hi,
How can I get CPU Serial number , or motherboard serial number with
C . I need an idetification of a computer ....
char CPUSerialNumber[256] = {0}; /* should be ample */
puts("Please enter the CPU Serial number");
if(fgets(CPUSerialNumber, sizeof CPUSerialNumber, stdin) != NULL)
{
puts("Thank you.");
...

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Jul 14 '06 #2

P: n/a
ba*****@gmail.com (in
11**********************@h48g2000cwc.googlegroups. com) said:

| Hi,
| How can I get CPU Serial number , or motherboard serial number with
| C . I need an idetification of a computer ....

If you open up the computer's enclosure and find a serial number, and
if the computer has a file device, you can use the editor of your
choice to record the number in a file. You can then use fopen()
fgets() to retrieve that number.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto
Jul 14 '06 #3

P: n/a
In article <11**********************@h48g2000cwc.googlegroups .com>,
<ba*****@gmail.comwrote:
>How can I get CPU Serial number , or motherboard serial number with
C . I need an idetification of a computer ....
You can't do that in standard C.

Furthermore, you can't do that in non-standard C on the majority of
computers, because low-end computers do not *have* CPU or motherboard
serial numbers.
--
"It is important to remember that when it comes to law, computers
never make copies, only human beings make copies. Computers are given
commands, not permission. Only people can be given permission."
-- Brad Templeton
Jul 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.