[fpc-pascal] Hardware
Adrian Veith
adrian at veith-system.de
Wed Aug 23 09:25:33 CEST 2006
google for the Jedi JCL library, it contains many useful routines for
delphi - object pascal. with some handwork, the routines should work
with fpc as well.
Adrian.
FabrÃcio F. Kammer schrieb:
> Thanks A.J.
>
> Do you know where can I get some example of how to do this?
>
> Is it possible to have a conditional compile to do this?
>
> Thanks again,
>
> FabrÃcio
>
> A.J. Venter escreveu:
>>> I'm working in a software that I don't want that it runs in a different
>>> of the orginal installation then I'll save this informations in a
>>> crypted file and I'll read and check with the hardware in the moment of
>>> the software is open.
>>>
>> There is no platform independent way to do this, since the the two
>> OS's have very different approaches. Under windows you need to get
>> the information from the registry, under linux you can get it by
>> reading the files in /proc and /sys.
>>
>> At some point somebody with some time should write a component that
>> can give most used hardware information via a single interface with
>> platform specific code to retrieve it. It's on my TODO list :)
>>
>> A.J.
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list