-3

I need to fetch the serial number of the motherboard or processor in a C/C++ program.

I need to identify a unique computer for my software so that one license can not be used in multiple computers.

ctype.h
  • 1,470
  • 4
  • 20
  • 34

1 Answers1

0

HAL (Hardware Abstraction Layer) can give the motherboard serial number on Linux. http://www.freedesktop.org/wiki/Software/hal

This is the library behind lshal:

$ lshal | grep 'system\.hardware\.serial'
  system.hardware.serial = '<serial-number>' 
log0
  • 10,489
  • 4
  • 28
  • 62