CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More. Introduction This article explains how to determine Windows version and edition. The method is very simple: The Windows API provides two functions, GetVersion/GetVersionEx, that fill the structure OSVERSIONINFO/OSVERSIONINFOEX with information such as maj