tags:

views:

463

answers:

2

After reading some stuff it seems I can map the SMBIOS memory and parse it. I have no idea on how to go about this. I can't use any managed code as I would like this to be compilable under any OS.

Does anyone have any code examples how to go about this?

+5  A: 

On most systems, it is not mapped into user-mode accessible memory, so you need to call some system API.

On Windows, you can call GetSystemFirmwareTable.

Michael
+2  A: 

For Linux I guess you should have a look at the dmidecode source (GPL) for concrete code...

Using and parsing dmidecode output may be all you need...

ChristopheD