There are tons of questions regarding this issue on stack overflow, still couldn't find a simple function to get windows
name along with its version
.
This is what I need
std::string OS = getOsName();
std::cout << OS << std::endl;
output:
Windows 10.0
I'm not interested in the build version or minor versions at all