mirror of
https://github.com/joaoviictorti/shadow-rs.git
synced 2026-01-31 05:04:20 +01:00
docs: add documentation for get_windows_build_number function
- Added concise documentation for the `get_windows_build_number` function, explaining its purpose, return value, and safety considerations.
This commit is contained in:
@@ -490,11 +490,12 @@ where
|
||||
result // Returns the result of the operation
|
||||
}
|
||||
|
||||
/// Retrieves the Windows build number by calling `RtlGetVersion`.
|
||||
///
|
||||
/// # Return
|
||||
///
|
||||
/// - `u32`: The Windows build number if successful, otherwise returns 0.
|
||||
///
|
||||
///
|
||||
///
|
||||
///
|
||||
///
|
||||
pub fn get_windows_build_number() -> u32 {
|
||||
unsafe {
|
||||
let mut os_info: OSVERSIONINFOW = core::mem::zeroed();
|
||||
|
||||
Reference in New Issue
Block a user