| 1 |
#![allow( |
| 2 |
non_snake_case, |
| 3 |
non_upper_case_globals, |
| 4 |
non_camel_case_types, |
| 5 |
dead_code, |
| 6 |
clippy::all |
| 7 |
)] |
| 8 |
|
| 9 |
windows_link::link!("kernel32.dll" "system" fn GetComputerNameExW(nametype : COMPUTER_NAME_FORMAT, lpbuffer : PWSTR, nsize : *mut u32) -> BOOL); |
| 10 |
windows_link::link!("kernel32.dll" "system" fn SetComputerNameExW(nametype : COMPUTER_NAME_FORMAT, lpbuffer : PCWSTR) -> BOOL); |
| 11 |
pub type BOOL = i32; |
| 12 |
pub type COMPUTER_NAME_FORMAT = i32; |
| 13 |
pub const ComputerNamePhysicalDnsHostname: COMPUTER_NAME_FORMAT = 5i32; |
| 14 |
pub type PCWSTR = *const u16; |
| 15 |
pub type PWSTR = *mut u16; |