C ++ Determine OS Version

I want to know how to determine the current OS using C ++ and which service pack is installed

+4
source share
4 answers

For Windows, see this example under GetOSDisplayString from MSDN, which shows the use of GetVersionEx .

+5
source

I assume you are writing unmanaged C ++ using Win32? Explore the Win32 GetVersionEx API.

+8
source

Assuming it's for Windows - use GetVersionEx

+4
source

All Articles