Reputation: 1
I'm writing a windows game, but in order to run it has to meet certain requirements. How do I detect the system requirements of the computer?
I only need to read the information, such as RAM, CPU, Graphics hardware, and sound hardware.
The msdn website is a maze, and I have no clue where to look this up.
Upvotes: 0
Views: 1547
Reputation: 3608
Quoting from here:
* GetSystemInfo - Processor info
* GetVersionEx- osversion/service pack
* GlobalMemoryStatusEx- Memory status
Upvotes: 0
Reputation: 146910
Polling the graphics hardware should be done through Direct3D. __cpuid is an intrinsic in Visual Studio.
GlobalMemoryStatusEx will do for RAM.
Upvotes: 3