I must check if windows 10 is installed on machine, because my program supports only win10.
I tried this solution that I already found on stackoverflow.
if (IsWindowsVersionOrGreater(10, 0, 0))
{
//nothing
}
else
{
MessageBox(NULL, "Your OS is not supported.", "Version Not Supported", MB_OK);
}
It giving me Your OS is not supported
but why? Did I understand something wrong?
Is there any other solutions to do it?
Best regards.