GetVersionEx |
OSVERSIONINFOEX osvi = { 0 }; DWORDLONG cond_mask = 0; osvi.dwOSVersionInfoSize = sizeof(osvi); osvi.dwPlatformId = VER_PLATFORM_WIN32_NT; VER_SET_CONDITION(cond_mask, VER_MAJORVERSION, VER_EQUAL); BOOL bNT = VerifyVersionInfo(&osvi, VER_PLATFORMID, cond_mask); // OldSchool //OSVERSIONINFOA osvi = {0}; osvi.dwOSVersionInfoSize = sizeof( osvi ); //GetVersionExA( ( OSVERSIONINFOA* )&osvi ); //bool bNT = ( VER_PLATFORM_WIN32_NT == osvi.dwPlatformId );