Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/System/PasswordManagement/mod.rs

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MSChapSrvChangePassword(servername : ::windows_sys::core::PCWSTR, username : ::windows_sys::core::PCWSTR, lmoldpresent : super::super::Foundation:: BOOLEAN, lmoldowfpassword : *const LM_OWF_PASSWORD, lmnewowfpassword : *const LM_OWF_PASSWORD, ntoldowfpassword : *const LM_OWF_PASSWORD, ntnewowfpassword : *const LM_OWF_PASSWORD) -> u32);
3 #[cfg(feature = "Win32_Foundation")]
4 ::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MSChapSrvChangePassword2(servername : ::windows_sys::core::PCWSTR, username : ::windows_sys::core::PCWSTR, newpasswordencryptedwitholdnt : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldntowfpasswordencryptedwithnewnt : *const ENCRYPTED_LM_OWF_PASSWORD, lmpresent : super::super::Foundation:: BOOLEAN, newpasswordencryptedwitholdlm : *const SAMPR_ENCRYPTED_USER_PASSWORD, oldlmowfpasswordencryptedwithnewlmornt : *const ENCRYPTED_LM_OWF_PASSWORD) -> u32);
5 #[repr(C)]
6 pub struct CYPHER_BLOCK {
7 pub data: [u8; 8],
8 }
9 impl ::core::marker::Copy for CYPHER_BLOCK {}
10 impl ::core::clone::Clone for CYPHER_BLOCK {
11 fn clone(&self) -> Self {
12 *self
13 }
14 }
15 #[repr(C)]
16 pub struct ENCRYPTED_LM_OWF_PASSWORD {
17 pub data: [CYPHER_BLOCK; 2],
18 }
19 impl ::core::marker::Copy for ENCRYPTED_LM_OWF_PASSWORD {}
20 impl ::core::clone::Clone for ENCRYPTED_LM_OWF_PASSWORD {
21 fn clone(&self) -> Self {
22 *self
23 }
24 }
25 #[repr(C)]
26 pub struct LM_OWF_PASSWORD {
27 pub data: [CYPHER_BLOCK; 2],
28 }
29 impl ::core::marker::Copy for LM_OWF_PASSWORD {}
30 impl ::core::clone::Clone for LM_OWF_PASSWORD {
31 fn clone(&self) -> Self {
32 *self
33 }
34 }
35 #[repr(C)]
36 pub struct SAMPR_ENCRYPTED_USER_PASSWORD {
37 pub Buffer: [u8; 516],
38 }
39 impl ::core::marker::Copy for SAMPR_ENCRYPTED_USER_PASSWORD {}
40 impl ::core::clone::Clone for SAMPR_ENCRYPTED_USER_PASSWORD {
41 fn clone(&self) -> Self {
42 *self
43 }
44 }