Open rainit2006 opened 7 years ago
VerifyVersionInfo
VerifyVersionInfoW (Unicode) and VerifyVersionInfoA (ANSI)
OSVERSIONINFOEXW osvi = { sizeof(osvi), 0, 0, 0, 0, {0}, 0, 0 }; DWORDLONG const dwlConditionMask = VerSetConditionMask( VerSetConditionMask( VerSetConditionMask( 0, VER_MAJORVERSION, VER_GREATER_EQUAL), VER_MINORVERSION, VER_GREATER_EQUAL), VER_SERVICEPACKMAJOR, VER_GREATER_EQUAL); osvi.dwMajorVersion = 10; osvi.dwMinorVersion = 0; osvi.wServicePackMajor = 0; return VerifyVersionInfoW(&osvi, VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR, dwlConditionMask) != FALSE;
VerifyVersionInfo
VerifyVersionInfoW (Unicode) and VerifyVersionInfoA (ANSI)