By typing : system_profiler SPHardwareDataType | grep 'Serial Number' I get 2 serial numbers.
The first ("Serial Number (system)") can be put in NSString
by :
(NSString *)IORegistryEntryCreateCFProperty(IORegistryEntryFromPath(kIOMasterPortDefault, "IOService:/"), CFSTR(kIOPlatformSerialNumberKey), kCFAllocatorDefault, 0)
and I didn't find how I can get the second : Serial Number (processor tray)
Any ideas?
Thank you