Hi,

How can i find the OS name in C++ on which the program is executed. like Windows 2000, Windows XP or Windows Vista?

Thanks for any help.

Recommended Answers

All 5 Replies

Its in the registry HKLM\Software\Microsoft\Windows NT\Product Name

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.