Changhui LIU chliu027028@gmail.com writes:
- BOOL vistaOrLater = FALSE;
- OSVERSIONINFOA osvi;
- memset(&osvi, 0, sizeof(osvi));
- osvi.dwOSVersionInfoSize = sizeof(osvi);
- GetVersionExA(&osvi);
- vistaOrLater = (osvi.dwMajorVersion > 5);
Please don't do version checks in tests. You can mark the old behavior as broken if necessary.