New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About IsWindowsVersionOrGreaterFx #204
Comments
In AtaSmart. cpp, CAtaSmart:: CAtaSmart() Windows 10 and above IsWindowsVersionOrGreaterFx cannot return TRUE The reason is that the following code in OsInfoFx.cpp cannot return TRUE: |
Thank you for report. But, IsWindowsVersionOrGreaterFx(10,0) returns TRUE on my Windows 11 environment. |
Mr. hiyohiyo: IsWindowsVersionOrGreaterFx (10,0) , on the exe execution file, there is an additional manifest file manifest: < compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> So you can return TRUE on Windows 10 and 11. If there is no manifest file, the exe execution file has an error on Windows 11. if you build the CrystalDiskInfo.DLL file, even if the manifest file is attached, the shell program runs on Windows 11 and calls CrystalDiskInfo.DLL. Unfortunately, the program error. I solved this problem temporarily with a simple method, even without the manifest file of the program. In OsInfoFx.cpp:
|
Thank you! I do not consider environments without manifests. |
Introduction to Microsoft's official website:
https://learn.microsoft.com/zh-cn/windows/win32/api/versionhelpers/nf-versionhelpers-iswindowsversionorgreater
IsWindows10OrGreater function
IsWindows7OrGreater function
IsWindows7SP1 OrGreater function
IsWindows8OrGreater function
IsWindows8Point1OrGreater function
IsWindowsServer function
IsWindowsVersionOrGreater function
IsWindowsVistaOrGreater function
IsWindowsVistaSP1OrGreater function
IsWindowsVistaSP2OrGreater function
IsWindowsXPOrGreater function
IsWindowsXPSP1OrGreater function
IsWindowsXPSP2OrGreater function
IsWindowsXPSP3OrGreater function
Can you use these functions to identify the operating system?
The text was updated successfully, but these errors were encountered: