detect old windows and do stuff
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
2323b7f69f
commit
413105c1a8
1 changed files with 11 additions and 0 deletions
|
|
@ -840,7 +840,18 @@ static void MwLLSetDarkThemeImpl(MwLL handle, int toggle) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static MwBool MwLLDoModernImpl(MwLL handle) {
|
static MwBool MwLLDoModernImpl(MwLL handle) {
|
||||||
|
OSVERSIONINFO osvi;
|
||||||
|
|
||||||
(void)handle;
|
(void)handle;
|
||||||
|
|
||||||
|
osvi.dwOSVersionInfoSize = sizeof(osvi);
|
||||||
|
|
||||||
|
GetVersionEx(&osvi);
|
||||||
|
|
||||||
|
if(osvi.dwMajorVersion < 5 || (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion < 1)) {
|
||||||
|
return MwFALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return MwTRUE;
|
return MwTRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue