Expand description
§windows-version
The windows-version crate reads the Windows version without relying on the application manifest.
Start by adding the following to your Cargo.toml file:
[dependencies.windows-version]
version = "0.100"use windows_version::*;
println!("Current version: {:?}", OsVersion::current());
if is_server() {
println!("Running on a Windows Server release.");
}
if OsVersion::current() >= OsVersion::new(10, 0, 0, 12345) {
println!("Can use a feature available on this version or later.")
}Structs§
- OsVersion
- Operating system version information.