I need to check what hardware is installed in the computer using C++.
Especially I need to check what graphic card, CPU and HDD is present in the machine of user of my program.

Thanks in advance
Edek

There isn't a portable way of getting it. What operating system are you using?

Edit:
Oops. Forgot to read the heading. You are using windows.

Here is an example from MSDN which I think should help you.

And you need to add setupapi.lib to the project

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.