Hiren
Hiren

Reputation: 341

How to get System Type in VC++?

I am looking for a function which can return system type i.e. "Windows x64" or "Windows NT x64" etc.

Is there any function which I can use?

Thanks!

Upvotes: 1

Views: 203

Answers (2)

karlphillip
karlphillip

Reputation: 93410

There's a complete document available on MSDN that shows exactly how to accomplish this.

Upvotes: 1

David Heffernan
David Heffernan

Reputation: 612993

GetVersionEx() tells you about the operating system version.

If you want to know whether the underlying system is 32 bit or 64 bit then I recommend reading how Raymond Chen explains it.

Upvotes: 4

Related Questions