We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc66de0 commit 7a49cc2Copy full SHA for 7a49cc2
src/Snap.Hutao.Remastered.Native/HutaoNative.cpp
@@ -160,9 +160,16 @@ HRESULT __stdcall HutaoNative::IsCurrentWindowsVersionSupported(BOOL* isSupporte
160
{
161
AssertNonNullAndReturn(isSupported);
162
163
- // Simple implementation: always return TRUE (supported)
164
- // Actual implementation should check Windows version
165
- *isSupported = TRUE;
+ HutaoPrivateWindowsVersion winver;
+ GetWindowsVersion(&winver);
+
166
+ if (winver.major >= 10 && winver.minor >= 0 && winver.build >= 19045 && winver.revision >= 5371)
167
+ {
168
+ *isSupported = TRUE;
169
+ return S_OK;
170
+ }
171
172
+ *isSupported = FALSE;
173
return S_OK;
174
}
175
0 commit comments