SachaK
SachaK

Reputation: 1

how do I detect windows system information in c++

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

Answers (2)

Uri Cohen
Uri Cohen

Reputation: 3608

Quoting from here:
* GetSystemInfo - Processor info
* GetVersionEx- osversion/service pack
* GlobalMemoryStatusEx- Memory status

Upvotes: 0

Puppy
Puppy

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

Related Questions