[Lazarus] Getting hardware information on Mac OS X
dmitry boyarintsev
skalogryz.lists at gmail.com
Tue Oct 13 05:16:32 CEST 2009
On Tue, Oct 13, 2009 at 2:09 AM, Roland TurĨan - RoTurSoft
<konf at rotursoft.sk> wrote:
> How can I get information about CPU, size of RAM, ... on Mac OS X?
There's I/O Registry in Mac OS X for such purposes.
http://developer.apple.com/mac/library/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/TheRegistry/TheRegistry.html#//apple_ref/doc/uid/TP0000014-TP9
I don't know if there's any Pascal based samples, but i'm sure there
should be some C/C++-based samples available at XCode.
I/O Registry is the part of IOKit framework. IOKit headers are not
included in FPC headers, you'll need to convert headers (or only
necessary functions/constants) manually.
thanks,
dmitry
More information about the Lazarus
mailing list