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
No.1 | | 356 bytes | |
bayazee@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.");
No.2 | | 473 bytes | |
bayazee@gmail.com (in 1152879593.556954.162250@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.
No.3 | | 477 bytes | |
In article <1152879593.556954.162250@h48g2000cwc.googlegroups. com>, <bayazee@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.