1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Windows-specific OS probes.
//!
//! Real version detection on Windows requires `RtlGetVersion` from
//! `ntdll`, or reading the `CurrentBuildNumber` value from the
//! `HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion` registry key.
//! Both involve Windows-specific FFI that is out of scope for the
//! foundation layer; both are deferred to `0.0.5`.
/// Returns the Windows version string.
///
/// Currently always returns `"unknown"`. The real probe
/// (`RtlGetVersion` via `windows-sys`) lands in `0.0.5`.
pub
/// Returns the distro identifier.
///
/// Windows has no notion of distributions; this always returns `None`.
pub