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.

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