Re: [fpc-pascal] Hardware information: Linux and Windows

2010-01-21 Thread Mark Morgan Lloyd
Osvaldo Filho wrote: How do I get information about the hardware in Linux and Windows? - Identification of the processor: model, manufacturer, serial number That depends very much on the type of the processor, i.e. whether it's x86, ARM and so on. On x86 the info is available from processor

[fpc-pascal] Hardware information: Linux and Windows

2010-01-19 Thread Osvaldo Filho
How do I get information about the hardware in Linux and Windows? - Identification of the processor: model, manufacturer, serial number - Identification of Hard Disk: model, manufacturer, physical serial number - Identification of Memory: model, manufacturer, size, type - Identification of

Re: [fpc-pascal] Hardware information: Linux and Windows

2010-01-19 Thread Frank Peelo
On 19/01/2010 13:09, Osvaldo Filho wrote: How do I get information about the hardware in Linux and Windows? - Identification of the processor: model, manufacturer, serial number Reading /proc/cpuinfo will give you the model and manufacturer. Don't know how to get the serial number. Was that

Re: [fpc-pascal] Hardware information: Linux and Windows

2010-01-19 Thread David Emerson
in linux... just google list hardware linux. Below are some results. Probably not all of them will be available, but you should be able to work with whatever is available on your machine. lshal lshw lspci lsusb lsscsi systool fdisk -l dmidecode cat /proc/cpuinfo cat /proc/meminfo dmesg | egrep

Re: [fpc-pascal] Hardware

2006-08-23 Thread Adrian Maier
On 22/08/06, Fabrício F. Kammer [EMAIL PROTECTED] wrote: 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? You can achieve conditiional compiling with {$ifdef } : {$ifdef Win32} { . windows specific

Re: [fpc-pascal] Hardware

2006-08-23 Thread Adrian Veith
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

[fpc-pascal] Hardware

2006-08-22 Thread Fabrício F. Kammer
Hi all, How can I get hardware informations on windows/linux using FreePascal/Lazarus? I need to get some informations of the hardware, like HD serial number, the amount of memory, the type of processor and another things. I'm working in a software that I don't want that it runs in a

Re: [fpc-pascal] Hardware

2006-08-22 Thread A.J. Venter
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

Re: [fpc-pascal] Hardware

2006-08-22 Thread Fabrício F. Kammer
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