Vote UpVote

Getting Processor Info using Object Pascal (Delphi / FPC) and the TSMBIOS

The Road to Delphi – The SMBIOS expose the info about the installed processors in the table type 4. Check the next snippet that shows how obtain such data using the TSMBIOS (remember, if you are using FPC, you can use this library in Windows and Linux). {$IFDEF FPC}{$mode objfpc}{$H+} {$ELSE} {$APPTYPE CONSOLE} {$ENDIF} uses Classes, TypInfo, SysUtils, uSMBIOS; function SetToString(Info: PTypeInfo; const Value): String; var LTypeInfo : PTypeInfo; LIntegerSet: TIntegerSet; I: Integer; begin Result := ''; Integer(LIntegerSet) := 0; case GetTypeData(Info)^.OrdType of otSByte, ...
Favorite? Off-Topic? Rodrigo @ 2013-03-27 16:45


Visits: 480
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)