Is there an easy way, using the standard libraries or win32 api to get basic system information, for example, the CPU speed, the graphics card capabilities, the amount of ram and the screen refresh rate?
Is there an easy way, using the standard libraries or win32 api to get basic system information, for example, the CPU speed, the graphics card capabilities, the amount of ram and the screen refresh rate?
the graphics capabilites can all eb gotten through DirectX using GetDevCaps(), the CPU speed im not so sure of, i know there is a way, sicne windows and othe raplications do it, but im nto sure what api they use.
You almost certainly will have to use different API's for each of those types of information.
Some of it can be found here:
GetSystemInfo
http://msdn.microsoft.com/en-us/libr...81(VS.85).aspx
SYSTEM_INFO struct.
http://msdn.microsoft.com/en-us/libr...58(VS.85).aspx
GetDeviceCaps
http://msdn.microsoft.com/en-us/libr...66(VS.85).aspx
That will probably give you MOST of the info you where asking for.
To get the name of the processor, you can use CPUID to get the name string from the processor. I'm not sure if Windows supplies an interface to do that - but it's easily done in a little bit of inline assembler.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
You can also look at WMI:
http://msdn.microsoft.com/en-us/library/aa394373.aspx
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.