Obtaining information on a user's hardware

BlitzPlus Forums/BlitzPlus Programming/Obtaining information on a user's hardware

Alaric(Posted 2006) [#1]
I originally posted this question in the beginners are, but didn't receive a true answer, so I decided to post it here as it does appear to be a more advanced question than i had thought.

I recently downloaded a program called Everest (the free edition). It is as a one stop shop for all information about the PC (maker of the CD drive, speed of the processor, amount of RAM, etc.) in order to obtain new drivers or other miscellaneous maintenance jobs. The idea intrigued me. I want to create a program much like Everest, but which outputs the reports in a more readable format, not to mention, perhaps, downloading the drivers for the user. My question is how would i go about obtaining information such as processor speed or the maker of the HDD? Is there a Blitz userlib for getting these useful tidbits? Any answer to the first question would be appreciated, but i would just about crap myself with joy if someone could give me an answer for the second one other than "no".


semar(Posted 2006) [#2]
Hi,
I don't know if this post would be of any help, but I guess you could use some API calls to obtain the info you need.

Have a look in the code archive (a really gold mine I tell you), there are collections of API calls which may suit your needs.

For example, Boiled Sweets API gems:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1181
http://www.blitzbasic.com/codearcs/codearcs.php?code=1180
http://www.blitzbasic.com/codearcs/codearcs.php?code=1179

You may search on google a program called API-Guides, which explains the parameters required for each API function, or search for a specific feature you're looking for.

For example, one of the Kernel32 functions is named 'GetSystemInfo', which returns information about the current system.

You may also contact the creators of 'Everest', and ask about which API did they use to accomplish that task.

Good luck,
Sergio.