diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /vendor/windows-sys/src/Windows/Win32/System/PasswordManagement | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/System/PasswordManagement')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/System/PasswordManagement/mod.rs | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/System/PasswordManagement/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/PasswordManagement/mod.rs new file mode 100644 index 000000000..99c590fce --- /dev/null +++ b/vendor/windows-sys/src/Windows/Win32/System/PasswordManagement/mod.rs @@ -0,0 +1,62 @@ +#[link(name = "windows")] +extern "system" { + #[doc = "*Required features: `\"Win32_System_PasswordManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub 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; + #[doc = "*Required features: `\"Win32_System_PasswordManagement\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub 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; +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_PasswordManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct CYPHER_BLOCK { + pub data: [super::super::Foundation::CHAR; 8], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for CYPHER_BLOCK {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for CYPHER_BLOCK { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_PasswordManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct ENCRYPTED_LM_OWF_PASSWORD { + pub data: [CYPHER_BLOCK; 2], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for ENCRYPTED_LM_OWF_PASSWORD {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for ENCRYPTED_LM_OWF_PASSWORD { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_PasswordManagement\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub struct LM_OWF_PASSWORD { + pub data: [CYPHER_BLOCK; 2], +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for LM_OWF_PASSWORD {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for LM_OWF_PASSWORD { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_PasswordManagement\"`*"] +pub struct SAMPR_ENCRYPTED_USER_PASSWORD { + pub Buffer: [u8; 516], +} +impl ::core::marker::Copy for SAMPR_ENCRYPTED_USER_PASSWORD {} +impl ::core::clone::Clone for SAMPR_ENCRYPTED_USER_PASSWORD { + fn clone(&self) -> Self { + *self + } +} |