Function is_windows_10
pub fn is_windows_10(api: &dyn WindowsApi) -> boolExpand description
Detects if the current windows installation is Windows 10 or not using the provided API.
Uses the os version, Windows 10 is < 10._.22000. Windows 11 started with build 22000.
§Arguments
api- The Windows API implementation to use.
§Returns
Whether the current windows installation is Windows 10 or not.
§Examples
use csshw_lib::utils::windows::{is_windows_10, DefaultWindowsApi};
if is_windows_10(&DefaultWindowsApi) {
println!("Running on Windows 10");
} else {
println!("Running on Windows 11 or newer");
}