1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
3 extern "system" {
4     #[cfg(feature = "Win32_Foundation")]
CredDeleteA(targetname: super::super::Foundation::PSTR, r#type: u32, flags: u32) -> super::super::Foundation::BOOL5     pub fn CredDeleteA(targetname: super::super::Foundation::PSTR, r#type: u32, flags: u32) -> super::super::Foundation::BOOL;
6     #[cfg(feature = "Win32_Foundation")]
CredDeleteW(targetname: super::super::Foundation::PWSTR, r#type: u32, flags: u32) -> super::super::Foundation::BOOL7     pub fn CredDeleteW(targetname: super::super::Foundation::PWSTR, r#type: u32, flags: u32) -> super::super::Foundation::BOOL;
8     #[cfg(feature = "Win32_Foundation")]
CredEnumerateA(filter: super::super::Foundation::PSTR, flags: CRED_ENUMERATE_FLAGS, count: *mut u32, credential: *mut *mut *mut CREDENTIALA) -> super::super::Foundation::BOOL9     pub fn CredEnumerateA(filter: super::super::Foundation::PSTR, flags: CRED_ENUMERATE_FLAGS, count: *mut u32, credential: *mut *mut *mut CREDENTIALA) -> super::super::Foundation::BOOL;
10     #[cfg(feature = "Win32_Foundation")]
CredEnumerateW(filter: super::super::Foundation::PWSTR, flags: CRED_ENUMERATE_FLAGS, count: *mut u32, credential: *mut *mut *mut CREDENTIALW) -> super::super::Foundation::BOOL11     pub fn CredEnumerateW(filter: super::super::Foundation::PWSTR, flags: CRED_ENUMERATE_FLAGS, count: *mut u32, credential: *mut *mut *mut CREDENTIALW) -> super::super::Foundation::BOOL;
12     #[cfg(feature = "Win32_Foundation")]
CredFindBestCredentialA(targetname: super::super::Foundation::PSTR, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALA) -> super::super::Foundation::BOOL13     pub fn CredFindBestCredentialA(targetname: super::super::Foundation::PSTR, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALA) -> super::super::Foundation::BOOL;
14     #[cfg(feature = "Win32_Foundation")]
CredFindBestCredentialW(targetname: super::super::Foundation::PWSTR, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALW) -> super::super::Foundation::BOOL15     pub fn CredFindBestCredentialW(targetname: super::super::Foundation::PWSTR, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALW) -> super::super::Foundation::BOOL;
CredFree(buffer: *const ::core::ffi::c_void)16     pub fn CredFree(buffer: *const ::core::ffi::c_void);
17     #[cfg(feature = "Win32_Foundation")]
CredGetSessionTypes(maximumpersistcount: u32, maximumpersist: *mut u32) -> super::super::Foundation::BOOL18     pub fn CredGetSessionTypes(maximumpersistcount: u32, maximumpersist: *mut u32) -> super::super::Foundation::BOOL;
19     #[cfg(feature = "Win32_Foundation")]
CredGetTargetInfoA(targetname: super::super::Foundation::PSTR, flags: u32, targetinfo: *mut *mut CREDENTIAL_TARGET_INFORMATIONA) -> super::super::Foundation::BOOL20     pub fn CredGetTargetInfoA(targetname: super::super::Foundation::PSTR, flags: u32, targetinfo: *mut *mut CREDENTIAL_TARGET_INFORMATIONA) -> super::super::Foundation::BOOL;
21     #[cfg(feature = "Win32_Foundation")]
CredGetTargetInfoW(targetname: super::super::Foundation::PWSTR, flags: u32, targetinfo: *mut *mut CREDENTIAL_TARGET_INFORMATIONW) -> super::super::Foundation::BOOL22     pub fn CredGetTargetInfoW(targetname: super::super::Foundation::PWSTR, flags: u32, targetinfo: *mut *mut CREDENTIAL_TARGET_INFORMATIONW) -> super::super::Foundation::BOOL;
23     #[cfg(feature = "Win32_Foundation")]
CredIsMarshaledCredentialA(marshaledcredential: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL24     pub fn CredIsMarshaledCredentialA(marshaledcredential: super::super::Foundation::PSTR) -> super::super::Foundation::BOOL;
25     #[cfg(feature = "Win32_Foundation")]
CredIsMarshaledCredentialW(marshaledcredential: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL26     pub fn CredIsMarshaledCredentialW(marshaledcredential: super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL;
27     #[cfg(feature = "Win32_Foundation")]
CredIsProtectedA(pszprotectedcredentials: super::super::Foundation::PSTR, pprotectiontype: *mut CRED_PROTECTION_TYPE) -> super::super::Foundation::BOOL28     pub fn CredIsProtectedA(pszprotectedcredentials: super::super::Foundation::PSTR, pprotectiontype: *mut CRED_PROTECTION_TYPE) -> super::super::Foundation::BOOL;
29     #[cfg(feature = "Win32_Foundation")]
CredIsProtectedW(pszprotectedcredentials: super::super::Foundation::PWSTR, pprotectiontype: *mut CRED_PROTECTION_TYPE) -> super::super::Foundation::BOOL30     pub fn CredIsProtectedW(pszprotectedcredentials: super::super::Foundation::PWSTR, pprotectiontype: *mut CRED_PROTECTION_TYPE) -> super::super::Foundation::BOOL;
31     #[cfg(feature = "Win32_Foundation")]
CredMarshalCredentialA(credtype: CRED_MARSHAL_TYPE, credential: *const ::core::ffi::c_void, marshaledcredential: *mut super::super::Foundation::PSTR) -> super::super::Foundation::BOOL32     pub fn CredMarshalCredentialA(credtype: CRED_MARSHAL_TYPE, credential: *const ::core::ffi::c_void, marshaledcredential: *mut super::super::Foundation::PSTR) -> super::super::Foundation::BOOL;
33     #[cfg(feature = "Win32_Foundation")]
CredMarshalCredentialW(credtype: CRED_MARSHAL_TYPE, credential: *const ::core::ffi::c_void, marshaledcredential: *mut super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL34     pub fn CredMarshalCredentialW(credtype: CRED_MARSHAL_TYPE, credential: *const ::core::ffi::c_void, marshaledcredential: *mut super::super::Foundation::PWSTR) -> super::super::Foundation::BOOL;
35     #[cfg(feature = "Win32_Foundation")]
CredPackAuthenticationBufferA(dwflags: CRED_PACK_FLAGS, pszusername: super::super::Foundation::PSTR, pszpassword: super::super::Foundation::PSTR, ppackedcredentials: *mut u8, pcbpackedcredentials: *mut u32) -> super::super::Foundation::BOOL36     pub fn CredPackAuthenticationBufferA(dwflags: CRED_PACK_FLAGS, pszusername: super::super::Foundation::PSTR, pszpassword: super::super::Foundation::PSTR, ppackedcredentials: *mut u8, pcbpackedcredentials: *mut u32) -> super::super::Foundation::BOOL;
37     #[cfg(feature = "Win32_Foundation")]
CredPackAuthenticationBufferW(dwflags: CRED_PACK_FLAGS, pszusername: super::super::Foundation::PWSTR, pszpassword: super::super::Foundation::PWSTR, ppackedcredentials: *mut u8, pcbpackedcredentials: *mut u32) -> super::super::Foundation::BOOL38     pub fn CredPackAuthenticationBufferW(dwflags: CRED_PACK_FLAGS, pszusername: super::super::Foundation::PWSTR, pszpassword: super::super::Foundation::PWSTR, ppackedcredentials: *mut u8, pcbpackedcredentials: *mut u32) -> super::super::Foundation::BOOL;
39     #[cfg(feature = "Win32_Foundation")]
CredProtectA(fasself: super::super::Foundation::BOOL, pszcredentials: super::super::Foundation::PSTR, cchcredentials: u32, pszprotectedcredentials: super::super::Foundation::PSTR, pcchmaxchars: *mut u32, protectiontype: *mut CRED_PROTECTION_TYPE) -> super::super::Foundation::BOOL40     pub fn CredProtectA(fasself: super::super::Foundation::BOOL, pszcredentials: super::super::Foundation::PSTR, cchcredentials: u32, pszprotectedcredentials: super::super::Foundation::PSTR, pcchmaxchars: *mut u32, protectiontype: *mut CRED_PROTECTION_TYPE) -> super::super::Foundation::BOOL;
41     #[cfg(feature = "Win32_Foundation")]
CredProtectW(fasself: super::super::Foundation::BOOL, pszcredentials: super::super::Foundation::PWSTR, cchcredentials: u32, pszprotectedcredentials: super::super::Foundation::PWSTR, pcchmaxchars: *mut u32, protectiontype: *mut CRED_PROTECTION_TYPE) -> super::super::Foundation::BOOL42     pub fn CredProtectW(fasself: super::super::Foundation::BOOL, pszcredentials: super::super::Foundation::PWSTR, cchcredentials: u32, pszprotectedcredentials: super::super::Foundation::PWSTR, pcchmaxchars: *mut u32, protectiontype: *mut CRED_PROTECTION_TYPE) -> super::super::Foundation::BOOL;
43     #[cfg(feature = "Win32_Foundation")]
CredReadA(targetname: super::super::Foundation::PSTR, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALA) -> super::super::Foundation::BOOL44     pub fn CredReadA(targetname: super::super::Foundation::PSTR, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALA) -> super::super::Foundation::BOOL;
45     #[cfg(feature = "Win32_Foundation")]
CredReadDomainCredentialsA(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONA, flags: u32, count: *mut u32, credential: *mut *mut *mut CREDENTIALA) -> super::super::Foundation::BOOL46     pub fn CredReadDomainCredentialsA(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONA, flags: u32, count: *mut u32, credential: *mut *mut *mut CREDENTIALA) -> super::super::Foundation::BOOL;
47     #[cfg(feature = "Win32_Foundation")]
CredReadDomainCredentialsW(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONW, flags: u32, count: *mut u32, credential: *mut *mut *mut CREDENTIALW) -> super::super::Foundation::BOOL48     pub fn CredReadDomainCredentialsW(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONW, flags: u32, count: *mut u32, credential: *mut *mut *mut CREDENTIALW) -> super::super::Foundation::BOOL;
49     #[cfg(feature = "Win32_Foundation")]
CredReadW(targetname: super::super::Foundation::PWSTR, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALW) -> super::super::Foundation::BOOL50     pub fn CredReadW(targetname: super::super::Foundation::PWSTR, r#type: u32, flags: u32, credential: *mut *mut CREDENTIALW) -> super::super::Foundation::BOOL;
51     #[cfg(feature = "Win32_Foundation")]
CredRenameA(oldtargetname: super::super::Foundation::PSTR, newtargetname: super::super::Foundation::PSTR, r#type: u32, flags: u32) -> super::super::Foundation::BOOL52     pub fn CredRenameA(oldtargetname: super::super::Foundation::PSTR, newtargetname: super::super::Foundation::PSTR, r#type: u32, flags: u32) -> super::super::Foundation::BOOL;
53     #[cfg(feature = "Win32_Foundation")]
CredRenameW(oldtargetname: super::super::Foundation::PWSTR, newtargetname: super::super::Foundation::PWSTR, r#type: u32, flags: u32) -> super::super::Foundation::BOOL54     pub fn CredRenameW(oldtargetname: super::super::Foundation::PWSTR, newtargetname: super::super::Foundation::PWSTR, r#type: u32, flags: u32) -> super::super::Foundation::BOOL;
55     #[cfg(feature = "Win32_Foundation")]
CredUICmdLinePromptForCredentialsA(psztargetname: super::super::Foundation::PSTR, pcontext: *mut SecHandle, dwautherror: u32, username: super::super::Foundation::PSTR, uluserbuffersize: u32, pszpassword: super::super::Foundation::PSTR, ulpasswordbuffersize: u32, pfsave: *mut super::super::Foundation::BOOL, dwflags: CREDUI_FLAGS) -> u3256     pub fn CredUICmdLinePromptForCredentialsA(psztargetname: super::super::Foundation::PSTR, pcontext: *mut SecHandle, dwautherror: u32, username: super::super::Foundation::PSTR, uluserbuffersize: u32, pszpassword: super::super::Foundation::PSTR, ulpasswordbuffersize: u32, pfsave: *mut super::super::Foundation::BOOL, dwflags: CREDUI_FLAGS) -> u32;
57     #[cfg(feature = "Win32_Foundation")]
CredUICmdLinePromptForCredentialsW(psztargetname: super::super::Foundation::PWSTR, pcontext: *mut SecHandle, dwautherror: u32, username: super::super::Foundation::PWSTR, uluserbuffersize: u32, pszpassword: super::super::Foundation::PWSTR, ulpasswordbuffersize: u32, pfsave: *mut super::super::Foundation::BOOL, dwflags: CREDUI_FLAGS) -> u3258     pub fn CredUICmdLinePromptForCredentialsW(psztargetname: super::super::Foundation::PWSTR, pcontext: *mut SecHandle, dwautherror: u32, username: super::super::Foundation::PWSTR, uluserbuffersize: u32, pszpassword: super::super::Foundation::PWSTR, ulpasswordbuffersize: u32, pfsave: *mut super::super::Foundation::BOOL, dwflags: CREDUI_FLAGS) -> u32;
59     #[cfg(feature = "Win32_Foundation")]
CredUIConfirmCredentialsA(psztargetname: super::super::Foundation::PSTR, bconfirm: super::super::Foundation::BOOL) -> u3260     pub fn CredUIConfirmCredentialsA(psztargetname: super::super::Foundation::PSTR, bconfirm: super::super::Foundation::BOOL) -> u32;
61     #[cfg(feature = "Win32_Foundation")]
CredUIConfirmCredentialsW(psztargetname: super::super::Foundation::PWSTR, bconfirm: super::super::Foundation::BOOL) -> u3262     pub fn CredUIConfirmCredentialsW(psztargetname: super::super::Foundation::PWSTR, bconfirm: super::super::Foundation::BOOL) -> u32;
63     #[cfg(feature = "Win32_Foundation")]
CredUIParseUserNameA(username: super::super::Foundation::PSTR, user: super::super::Foundation::PSTR, userbuffersize: u32, domain: super::super::Foundation::PSTR, domainbuffersize: u32) -> u3264     pub fn CredUIParseUserNameA(username: super::super::Foundation::PSTR, user: super::super::Foundation::PSTR, userbuffersize: u32, domain: super::super::Foundation::PSTR, domainbuffersize: u32) -> u32;
65     #[cfg(feature = "Win32_Foundation")]
CredUIParseUserNameW(username: super::super::Foundation::PWSTR, user: super::super::Foundation::PWSTR, userbuffersize: u32, domain: super::super::Foundation::PWSTR, domainbuffersize: u32) -> u3266     pub fn CredUIParseUserNameW(username: super::super::Foundation::PWSTR, user: super::super::Foundation::PWSTR, userbuffersize: u32, domain: super::super::Foundation::PWSTR, domainbuffersize: u32) -> u32;
67     #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
CredUIPromptForCredentialsA(puiinfo: *const CREDUI_INFOA, psztargetname: super::super::Foundation::PSTR, pcontext: *mut SecHandle, dwautherror: u32, pszusername: super::super::Foundation::PSTR, ulusernamebuffersize: u32, pszpassword: super::super::Foundation::PSTR, ulpasswordbuffersize: u32, save: *mut super::super::Foundation::BOOL, dwflags: CREDUI_FLAGS) -> u3268     pub fn CredUIPromptForCredentialsA(puiinfo: *const CREDUI_INFOA, psztargetname: super::super::Foundation::PSTR, pcontext: *mut SecHandle, dwautherror: u32, pszusername: super::super::Foundation::PSTR, ulusernamebuffersize: u32, pszpassword: super::super::Foundation::PSTR, ulpasswordbuffersize: u32, save: *mut super::super::Foundation::BOOL, dwflags: CREDUI_FLAGS) -> u32;
69     #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
CredUIPromptForCredentialsW(puiinfo: *const CREDUI_INFOW, psztargetname: super::super::Foundation::PWSTR, pcontext: *mut SecHandle, dwautherror: u32, pszusername: super::super::Foundation::PWSTR, ulusernamebuffersize: u32, pszpassword: super::super::Foundation::PWSTR, ulpasswordbuffersize: u32, save: *mut super::super::Foundation::BOOL, dwflags: CREDUI_FLAGS) -> u3270     pub fn CredUIPromptForCredentialsW(puiinfo: *const CREDUI_INFOW, psztargetname: super::super::Foundation::PWSTR, pcontext: *mut SecHandle, dwautherror: u32, pszusername: super::super::Foundation::PWSTR, ulusernamebuffersize: u32, pszpassword: super::super::Foundation::PWSTR, ulpasswordbuffersize: u32, save: *mut super::super::Foundation::BOOL, dwflags: CREDUI_FLAGS) -> u32;
71     #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
CredUIPromptForWindowsCredentialsA(puiinfo: *const CREDUI_INFOA, dwautherror: u32, pulauthpackage: *mut u32, pvinauthbuffer: *const ::core::ffi::c_void, ulinauthbuffersize: u32, ppvoutauthbuffer: *mut *mut ::core::ffi::c_void, puloutauthbuffersize: *mut u32, pfsave: *mut super::super::Foundation::BOOL, dwflags: CREDUIWIN_FLAGS) -> u3272     pub fn CredUIPromptForWindowsCredentialsA(puiinfo: *const CREDUI_INFOA, dwautherror: u32, pulauthpackage: *mut u32, pvinauthbuffer: *const ::core::ffi::c_void, ulinauthbuffersize: u32, ppvoutauthbuffer: *mut *mut ::core::ffi::c_void, puloutauthbuffersize: *mut u32, pfsave: *mut super::super::Foundation::BOOL, dwflags: CREDUIWIN_FLAGS) -> u32;
73     #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
CredUIPromptForWindowsCredentialsW(puiinfo: *const CREDUI_INFOW, dwautherror: u32, pulauthpackage: *mut u32, pvinauthbuffer: *const ::core::ffi::c_void, ulinauthbuffersize: u32, ppvoutauthbuffer: *mut *mut ::core::ffi::c_void, puloutauthbuffersize: *mut u32, pfsave: *mut super::super::Foundation::BOOL, dwflags: CREDUIWIN_FLAGS) -> u3274     pub fn CredUIPromptForWindowsCredentialsW(puiinfo: *const CREDUI_INFOW, dwautherror: u32, pulauthpackage: *mut u32, pvinauthbuffer: *const ::core::ffi::c_void, ulinauthbuffersize: u32, ppvoutauthbuffer: *mut *mut ::core::ffi::c_void, puloutauthbuffersize: *mut u32, pfsave: *mut super::super::Foundation::BOOL, dwflags: CREDUIWIN_FLAGS) -> u32;
75     #[cfg(feature = "Win32_Foundation")]
CredUIReadSSOCredW(pszrealm: super::super::Foundation::PWSTR, ppszusername: *mut super::super::Foundation::PWSTR) -> u3276     pub fn CredUIReadSSOCredW(pszrealm: super::super::Foundation::PWSTR, ppszusername: *mut super::super::Foundation::PWSTR) -> u32;
77     #[cfg(feature = "Win32_Foundation")]
CredUIStoreSSOCredW(pszrealm: super::super::Foundation::PWSTR, pszusername: super::super::Foundation::PWSTR, pszpassword: super::super::Foundation::PWSTR, bpersist: super::super::Foundation::BOOL) -> u3278     pub fn CredUIStoreSSOCredW(pszrealm: super::super::Foundation::PWSTR, pszusername: super::super::Foundation::PWSTR, pszpassword: super::super::Foundation::PWSTR, bpersist: super::super::Foundation::BOOL) -> u32;
79     #[cfg(feature = "Win32_Foundation")]
CredUnPackAuthenticationBufferA(dwflags: CRED_PACK_FLAGS, pauthbuffer: *const ::core::ffi::c_void, cbauthbuffer: u32, pszusername: super::super::Foundation::PSTR, pcchlmaxusername: *mut u32, pszdomainname: super::super::Foundation::PSTR, pcchmaxdomainname: *mut u32, pszpassword: super::super::Foundation::PSTR, pcchmaxpassword: *mut u32) -> super::super::Foundation::BOOL80     pub fn CredUnPackAuthenticationBufferA(dwflags: CRED_PACK_FLAGS, pauthbuffer: *const ::core::ffi::c_void, cbauthbuffer: u32, pszusername: super::super::Foundation::PSTR, pcchlmaxusername: *mut u32, pszdomainname: super::super::Foundation::PSTR, pcchmaxdomainname: *mut u32, pszpassword: super::super::Foundation::PSTR, pcchmaxpassword: *mut u32) -> super::super::Foundation::BOOL;
81     #[cfg(feature = "Win32_Foundation")]
CredUnPackAuthenticationBufferW(dwflags: CRED_PACK_FLAGS, pauthbuffer: *const ::core::ffi::c_void, cbauthbuffer: u32, pszusername: super::super::Foundation::PWSTR, pcchmaxusername: *mut u32, pszdomainname: super::super::Foundation::PWSTR, pcchmaxdomainname: *mut u32, pszpassword: super::super::Foundation::PWSTR, pcchmaxpassword: *mut u32) -> super::super::Foundation::BOOL82     pub fn CredUnPackAuthenticationBufferW(dwflags: CRED_PACK_FLAGS, pauthbuffer: *const ::core::ffi::c_void, cbauthbuffer: u32, pszusername: super::super::Foundation::PWSTR, pcchmaxusername: *mut u32, pszdomainname: super::super::Foundation::PWSTR, pcchmaxdomainname: *mut u32, pszpassword: super::super::Foundation::PWSTR, pcchmaxpassword: *mut u32) -> super::super::Foundation::BOOL;
83     #[cfg(feature = "Win32_Foundation")]
CredUnmarshalCredentialA(marshaledcredential: super::super::Foundation::PSTR, credtype: *mut CRED_MARSHAL_TYPE, credential: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL84     pub fn CredUnmarshalCredentialA(marshaledcredential: super::super::Foundation::PSTR, credtype: *mut CRED_MARSHAL_TYPE, credential: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL;
85     #[cfg(feature = "Win32_Foundation")]
CredUnmarshalCredentialW(marshaledcredential: super::super::Foundation::PWSTR, credtype: *mut CRED_MARSHAL_TYPE, credential: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL86     pub fn CredUnmarshalCredentialW(marshaledcredential: super::super::Foundation::PWSTR, credtype: *mut CRED_MARSHAL_TYPE, credential: *mut *mut ::core::ffi::c_void) -> super::super::Foundation::BOOL;
87     #[cfg(feature = "Win32_Foundation")]
CredUnprotectA(fasself: super::super::Foundation::BOOL, pszprotectedcredentials: super::super::Foundation::PSTR, cchprotectedcredentials: u32, pszcredentials: super::super::Foundation::PSTR, pcchmaxchars: *mut u32) -> super::super::Foundation::BOOL88     pub fn CredUnprotectA(fasself: super::super::Foundation::BOOL, pszprotectedcredentials: super::super::Foundation::PSTR, cchprotectedcredentials: u32, pszcredentials: super::super::Foundation::PSTR, pcchmaxchars: *mut u32) -> super::super::Foundation::BOOL;
89     #[cfg(feature = "Win32_Foundation")]
CredUnprotectW(fasself: super::super::Foundation::BOOL, pszprotectedcredentials: super::super::Foundation::PWSTR, cchprotectedcredentials: u32, pszcredentials: super::super::Foundation::PWSTR, pcchmaxchars: *mut u32) -> super::super::Foundation::BOOL90     pub fn CredUnprotectW(fasself: super::super::Foundation::BOOL, pszprotectedcredentials: super::super::Foundation::PWSTR, cchprotectedcredentials: u32, pszcredentials: super::super::Foundation::PWSTR, pcchmaxchars: *mut u32) -> super::super::Foundation::BOOL;
91     #[cfg(feature = "Win32_Foundation")]
CredWriteA(credential: *const CREDENTIALA, flags: u32) -> super::super::Foundation::BOOL92     pub fn CredWriteA(credential: *const CREDENTIALA, flags: u32) -> super::super::Foundation::BOOL;
93     #[cfg(feature = "Win32_Foundation")]
CredWriteDomainCredentialsA(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONA, credential: *const CREDENTIALA, flags: u32) -> super::super::Foundation::BOOL94     pub fn CredWriteDomainCredentialsA(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONA, credential: *const CREDENTIALA, flags: u32) -> super::super::Foundation::BOOL;
95     #[cfg(feature = "Win32_Foundation")]
CredWriteDomainCredentialsW(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONW, credential: *const CREDENTIALW, flags: u32) -> super::super::Foundation::BOOL96     pub fn CredWriteDomainCredentialsW(targetinfo: *const CREDENTIAL_TARGET_INFORMATIONW, credential: *const CREDENTIALW, flags: u32) -> super::super::Foundation::BOOL;
97     #[cfg(feature = "Win32_Foundation")]
CredWriteW(credential: *const CREDENTIALW, flags: u32) -> super::super::Foundation::BOOL98     pub fn CredWriteW(credential: *const CREDENTIALW, flags: u32) -> super::super::Foundation::BOOL;
99     #[cfg(feature = "Win32_Foundation")]
GetOpenCardNameA(param0: *mut OPENCARDNAMEA) -> i32100     pub fn GetOpenCardNameA(param0: *mut OPENCARDNAMEA) -> i32;
101     #[cfg(feature = "Win32_Foundation")]
GetOpenCardNameW(param0: *mut OPENCARDNAMEW) -> i32102     pub fn GetOpenCardNameW(param0: *mut OPENCARDNAMEW) -> i32;
KeyCredentialManagerFreeInformation(keycredentialmanagerinfo: *const KeyCredentialManagerInfo)103     pub fn KeyCredentialManagerFreeInformation(keycredentialmanagerinfo: *const KeyCredentialManagerInfo);
KeyCredentialManagerGetInformation(keycredentialmanagerinfo: *mut *mut KeyCredentialManagerInfo) -> ::windows_sys::core::HRESULT104     pub fn KeyCredentialManagerGetInformation(keycredentialmanagerinfo: *mut *mut KeyCredentialManagerInfo) -> ::windows_sys::core::HRESULT;
105     #[cfg(feature = "Win32_Foundation")]
KeyCredentialManagerGetOperationErrorStates(keycredentialmanageroperationtype: KeyCredentialManagerOperationType, isready: *mut super::super::Foundation::BOOL, keycredentialmanageroperationerrorstates: *mut KeyCredentialManagerOperationErrorStates) -> ::windows_sys::core::HRESULT106     pub fn KeyCredentialManagerGetOperationErrorStates(keycredentialmanageroperationtype: KeyCredentialManagerOperationType, isready: *mut super::super::Foundation::BOOL, keycredentialmanageroperationerrorstates: *mut KeyCredentialManagerOperationErrorStates) -> ::windows_sys::core::HRESULT;
107     #[cfg(feature = "Win32_Foundation")]
KeyCredentialManagerShowUIOperation(hwndowner: super::super::Foundation::HWND, keycredentialmanageroperationtype: KeyCredentialManagerOperationType) -> ::windows_sys::core::HRESULT108     pub fn KeyCredentialManagerShowUIOperation(hwndowner: super::super::Foundation::HWND, keycredentialmanageroperationtype: KeyCredentialManagerOperationType) -> ::windows_sys::core::HRESULT;
109     #[cfg(feature = "Win32_Foundation")]
SCardAccessStartedEvent() -> super::super::Foundation::HANDLE110     pub fn SCardAccessStartedEvent() -> super::super::Foundation::HANDLE;
111     #[cfg(feature = "Win32_Foundation")]
SCardAddReaderToGroupA(hcontext: usize, szreadername: super::super::Foundation::PSTR, szgroupname: super::super::Foundation::PSTR) -> i32112     pub fn SCardAddReaderToGroupA(hcontext: usize, szreadername: super::super::Foundation::PSTR, szgroupname: super::super::Foundation::PSTR) -> i32;
113     #[cfg(feature = "Win32_Foundation")]
SCardAddReaderToGroupW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, szgroupname: super::super::Foundation::PWSTR) -> i32114     pub fn SCardAddReaderToGroupW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, szgroupname: super::super::Foundation::PWSTR) -> i32;
SCardAudit(hcontext: usize, dwevent: u32) -> i32115     pub fn SCardAudit(hcontext: usize, dwevent: u32) -> i32;
SCardBeginTransaction(hcard: usize) -> i32116     pub fn SCardBeginTransaction(hcard: usize) -> i32;
SCardCancel(hcontext: usize) -> i32117     pub fn SCardCancel(hcontext: usize) -> i32;
118     #[cfg(feature = "Win32_Foundation")]
SCardConnectA(hcontext: usize, szreader: super::super::Foundation::PSTR, dwsharemode: u32, dwpreferredprotocols: u32, phcard: *mut usize, pdwactiveprotocol: *mut u32) -> i32119     pub fn SCardConnectA(hcontext: usize, szreader: super::super::Foundation::PSTR, dwsharemode: u32, dwpreferredprotocols: u32, phcard: *mut usize, pdwactiveprotocol: *mut u32) -> i32;
120     #[cfg(feature = "Win32_Foundation")]
SCardConnectW(hcontext: usize, szreader: super::super::Foundation::PWSTR, dwsharemode: u32, dwpreferredprotocols: u32, phcard: *mut usize, pdwactiveprotocol: *mut u32) -> i32121     pub fn SCardConnectW(hcontext: usize, szreader: super::super::Foundation::PWSTR, dwsharemode: u32, dwpreferredprotocols: u32, phcard: *mut usize, pdwactiveprotocol: *mut u32) -> i32;
SCardControl(hcard: usize, dwcontrolcode: u32, lpinbuffer: *const ::core::ffi::c_void, cbinbuffersize: u32, lpoutbuffer: *mut ::core::ffi::c_void, cboutbuffersize: u32, lpbytesreturned: *mut u32) -> i32122     pub fn SCardControl(hcard: usize, dwcontrolcode: u32, lpinbuffer: *const ::core::ffi::c_void, cbinbuffersize: u32, lpoutbuffer: *mut ::core::ffi::c_void, cboutbuffersize: u32, lpbytesreturned: *mut u32) -> i32;
SCardDisconnect(hcard: usize, dwdisposition: u32) -> i32123     pub fn SCardDisconnect(hcard: usize, dwdisposition: u32) -> i32;
SCardDlgExtendedError() -> i32124     pub fn SCardDlgExtendedError() -> i32;
SCardEndTransaction(hcard: usize, dwdisposition: u32) -> i32125     pub fn SCardEndTransaction(hcard: usize, dwdisposition: u32) -> i32;
SCardEstablishContext(dwscope: SCARD_SCOPE, pvreserved1: *const ::core::ffi::c_void, pvreserved2: *const ::core::ffi::c_void, phcontext: *mut usize) -> i32126     pub fn SCardEstablishContext(dwscope: SCARD_SCOPE, pvreserved1: *const ::core::ffi::c_void, pvreserved2: *const ::core::ffi::c_void, phcontext: *mut usize) -> i32;
127     #[cfg(feature = "Win32_Foundation")]
SCardForgetCardTypeA(hcontext: usize, szcardname: super::super::Foundation::PSTR) -> i32128     pub fn SCardForgetCardTypeA(hcontext: usize, szcardname: super::super::Foundation::PSTR) -> i32;
129     #[cfg(feature = "Win32_Foundation")]
SCardForgetCardTypeW(hcontext: usize, szcardname: super::super::Foundation::PWSTR) -> i32130     pub fn SCardForgetCardTypeW(hcontext: usize, szcardname: super::super::Foundation::PWSTR) -> i32;
131     #[cfg(feature = "Win32_Foundation")]
SCardForgetReaderA(hcontext: usize, szreadername: super::super::Foundation::PSTR) -> i32132     pub fn SCardForgetReaderA(hcontext: usize, szreadername: super::super::Foundation::PSTR) -> i32;
133     #[cfg(feature = "Win32_Foundation")]
SCardForgetReaderGroupA(hcontext: usize, szgroupname: super::super::Foundation::PSTR) -> i32134     pub fn SCardForgetReaderGroupA(hcontext: usize, szgroupname: super::super::Foundation::PSTR) -> i32;
135     #[cfg(feature = "Win32_Foundation")]
SCardForgetReaderGroupW(hcontext: usize, szgroupname: super::super::Foundation::PWSTR) -> i32136     pub fn SCardForgetReaderGroupW(hcontext: usize, szgroupname: super::super::Foundation::PWSTR) -> i32;
137     #[cfg(feature = "Win32_Foundation")]
SCardForgetReaderW(hcontext: usize, szreadername: super::super::Foundation::PWSTR) -> i32138     pub fn SCardForgetReaderW(hcontext: usize, szreadername: super::super::Foundation::PWSTR) -> i32;
SCardFreeMemory(hcontext: usize, pvmem: *const ::core::ffi::c_void) -> i32139     pub fn SCardFreeMemory(hcontext: usize, pvmem: *const ::core::ffi::c_void) -> i32;
SCardGetAttrib(hcard: usize, dwattrid: u32, pbattr: *mut u8, pcbattrlen: *mut u32) -> i32140     pub fn SCardGetAttrib(hcard: usize, dwattrid: u32, pbattr: *mut u8, pcbattrlen: *mut u32) -> i32;
141     #[cfg(feature = "Win32_Foundation")]
SCardGetCardTypeProviderNameA(hcontext: usize, szcardname: super::super::Foundation::PSTR, dwproviderid: u32, szprovider: super::super::Foundation::PSTR, pcchprovider: *mut u32) -> i32142     pub fn SCardGetCardTypeProviderNameA(hcontext: usize, szcardname: super::super::Foundation::PSTR, dwproviderid: u32, szprovider: super::super::Foundation::PSTR, pcchprovider: *mut u32) -> i32;
143     #[cfg(feature = "Win32_Foundation")]
SCardGetCardTypeProviderNameW(hcontext: usize, szcardname: super::super::Foundation::PWSTR, dwproviderid: u32, szprovider: super::super::Foundation::PWSTR, pcchprovider: *mut u32) -> i32144     pub fn SCardGetCardTypeProviderNameW(hcontext: usize, szcardname: super::super::Foundation::PWSTR, dwproviderid: u32, szprovider: super::super::Foundation::PWSTR, pcchprovider: *mut u32) -> i32;
145     #[cfg(feature = "Win32_Foundation")]
SCardGetDeviceTypeIdA(hcontext: usize, szreadername: super::super::Foundation::PSTR, pdwdevicetypeid: *mut u32) -> i32146     pub fn SCardGetDeviceTypeIdA(hcontext: usize, szreadername: super::super::Foundation::PSTR, pdwdevicetypeid: *mut u32) -> i32;
147     #[cfg(feature = "Win32_Foundation")]
SCardGetDeviceTypeIdW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, pdwdevicetypeid: *mut u32) -> i32148     pub fn SCardGetDeviceTypeIdW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, pdwdevicetypeid: *mut u32) -> i32;
149     #[cfg(feature = "Win32_Foundation")]
SCardGetProviderIdA(hcontext: usize, szcard: super::super::Foundation::PSTR, pguidproviderid: *mut ::windows_sys::core::GUID) -> i32150     pub fn SCardGetProviderIdA(hcontext: usize, szcard: super::super::Foundation::PSTR, pguidproviderid: *mut ::windows_sys::core::GUID) -> i32;
151     #[cfg(feature = "Win32_Foundation")]
SCardGetProviderIdW(hcontext: usize, szcard: super::super::Foundation::PWSTR, pguidproviderid: *mut ::windows_sys::core::GUID) -> i32152     pub fn SCardGetProviderIdW(hcontext: usize, szcard: super::super::Foundation::PWSTR, pguidproviderid: *mut ::windows_sys::core::GUID) -> i32;
153     #[cfg(feature = "Win32_Foundation")]
SCardGetReaderDeviceInstanceIdA(hcontext: usize, szreadername: super::super::Foundation::PSTR, szdeviceinstanceid: super::super::Foundation::PSTR, pcchdeviceinstanceid: *mut u32) -> i32154     pub fn SCardGetReaderDeviceInstanceIdA(hcontext: usize, szreadername: super::super::Foundation::PSTR, szdeviceinstanceid: super::super::Foundation::PSTR, pcchdeviceinstanceid: *mut u32) -> i32;
155     #[cfg(feature = "Win32_Foundation")]
SCardGetReaderDeviceInstanceIdW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, szdeviceinstanceid: super::super::Foundation::PWSTR, pcchdeviceinstanceid: *mut u32) -> i32156     pub fn SCardGetReaderDeviceInstanceIdW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, szdeviceinstanceid: super::super::Foundation::PWSTR, pcchdeviceinstanceid: *mut u32) -> i32;
157     #[cfg(feature = "Win32_Foundation")]
SCardGetReaderIconA(hcontext: usize, szreadername: super::super::Foundation::PSTR, pbicon: *mut u8, pcbicon: *mut u32) -> i32158     pub fn SCardGetReaderIconA(hcontext: usize, szreadername: super::super::Foundation::PSTR, pbicon: *mut u8, pcbicon: *mut u32) -> i32;
159     #[cfg(feature = "Win32_Foundation")]
SCardGetReaderIconW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, pbicon: *mut u8, pcbicon: *mut u32) -> i32160     pub fn SCardGetReaderIconW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, pbicon: *mut u8, pcbicon: *mut u32) -> i32;
161     #[cfg(feature = "Win32_Foundation")]
SCardGetStatusChangeA(hcontext: usize, dwtimeout: u32, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32162     pub fn SCardGetStatusChangeA(hcontext: usize, dwtimeout: u32, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32;
163     #[cfg(feature = "Win32_Foundation")]
SCardGetStatusChangeW(hcontext: usize, dwtimeout: u32, rgreaderstates: *mut SCARD_READERSTATEW, creaders: u32) -> i32164     pub fn SCardGetStatusChangeW(hcontext: usize, dwtimeout: u32, rgreaderstates: *mut SCARD_READERSTATEW, creaders: u32) -> i32;
SCardGetTransmitCount(hcard: usize, pctransmitcount: *mut u32) -> i32165     pub fn SCardGetTransmitCount(hcard: usize, pctransmitcount: *mut u32) -> i32;
166     #[cfg(feature = "Win32_Foundation")]
SCardIntroduceCardTypeA(hcontext: usize, szcardname: super::super::Foundation::PSTR, pguidprimaryprovider: *const ::windows_sys::core::GUID, rgguidinterfaces: *const ::windows_sys::core::GUID, dwinterfacecount: u32, pbatr: *const u8, pbatrmask: *const u8, cbatrlen: u32) -> i32167     pub fn SCardIntroduceCardTypeA(hcontext: usize, szcardname: super::super::Foundation::PSTR, pguidprimaryprovider: *const ::windows_sys::core::GUID, rgguidinterfaces: *const ::windows_sys::core::GUID, dwinterfacecount: u32, pbatr: *const u8, pbatrmask: *const u8, cbatrlen: u32) -> i32;
168     #[cfg(feature = "Win32_Foundation")]
SCardIntroduceCardTypeW(hcontext: usize, szcardname: super::super::Foundation::PWSTR, pguidprimaryprovider: *const ::windows_sys::core::GUID, rgguidinterfaces: *const ::windows_sys::core::GUID, dwinterfacecount: u32, pbatr: *const u8, pbatrmask: *const u8, cbatrlen: u32) -> i32169     pub fn SCardIntroduceCardTypeW(hcontext: usize, szcardname: super::super::Foundation::PWSTR, pguidprimaryprovider: *const ::windows_sys::core::GUID, rgguidinterfaces: *const ::windows_sys::core::GUID, dwinterfacecount: u32, pbatr: *const u8, pbatrmask: *const u8, cbatrlen: u32) -> i32;
170     #[cfg(feature = "Win32_Foundation")]
SCardIntroduceReaderA(hcontext: usize, szreadername: super::super::Foundation::PSTR, szdevicename: super::super::Foundation::PSTR) -> i32171     pub fn SCardIntroduceReaderA(hcontext: usize, szreadername: super::super::Foundation::PSTR, szdevicename: super::super::Foundation::PSTR) -> i32;
172     #[cfg(feature = "Win32_Foundation")]
SCardIntroduceReaderGroupA(hcontext: usize, szgroupname: super::super::Foundation::PSTR) -> i32173     pub fn SCardIntroduceReaderGroupA(hcontext: usize, szgroupname: super::super::Foundation::PSTR) -> i32;
174     #[cfg(feature = "Win32_Foundation")]
SCardIntroduceReaderGroupW(hcontext: usize, szgroupname: super::super::Foundation::PWSTR) -> i32175     pub fn SCardIntroduceReaderGroupW(hcontext: usize, szgroupname: super::super::Foundation::PWSTR) -> i32;
176     #[cfg(feature = "Win32_Foundation")]
SCardIntroduceReaderW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, szdevicename: super::super::Foundation::PWSTR) -> i32177     pub fn SCardIntroduceReaderW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, szdevicename: super::super::Foundation::PWSTR) -> i32;
SCardIsValidContext(hcontext: usize) -> i32178     pub fn SCardIsValidContext(hcontext: usize) -> i32;
179     #[cfg(feature = "Win32_Foundation")]
SCardListCardsA(hcontext: usize, pbatr: *const u8, rgquidinterfaces: *const ::windows_sys::core::GUID, cguidinterfacecount: u32, mszcards: super::super::Foundation::PSTR, pcchcards: *mut u32) -> i32180     pub fn SCardListCardsA(hcontext: usize, pbatr: *const u8, rgquidinterfaces: *const ::windows_sys::core::GUID, cguidinterfacecount: u32, mszcards: super::super::Foundation::PSTR, pcchcards: *mut u32) -> i32;
181     #[cfg(feature = "Win32_Foundation")]
SCardListCardsW(hcontext: usize, pbatr: *const u8, rgquidinterfaces: *const ::windows_sys::core::GUID, cguidinterfacecount: u32, mszcards: super::super::Foundation::PWSTR, pcchcards: *mut u32) -> i32182     pub fn SCardListCardsW(hcontext: usize, pbatr: *const u8, rgquidinterfaces: *const ::windows_sys::core::GUID, cguidinterfacecount: u32, mszcards: super::super::Foundation::PWSTR, pcchcards: *mut u32) -> i32;
183     #[cfg(feature = "Win32_Foundation")]
SCardListInterfacesA(hcontext: usize, szcard: super::super::Foundation::PSTR, pguidinterfaces: *mut ::windows_sys::core::GUID, pcguidinterfaces: *mut u32) -> i32184     pub fn SCardListInterfacesA(hcontext: usize, szcard: super::super::Foundation::PSTR, pguidinterfaces: *mut ::windows_sys::core::GUID, pcguidinterfaces: *mut u32) -> i32;
185     #[cfg(feature = "Win32_Foundation")]
SCardListInterfacesW(hcontext: usize, szcard: super::super::Foundation::PWSTR, pguidinterfaces: *mut ::windows_sys::core::GUID, pcguidinterfaces: *mut u32) -> i32186     pub fn SCardListInterfacesW(hcontext: usize, szcard: super::super::Foundation::PWSTR, pguidinterfaces: *mut ::windows_sys::core::GUID, pcguidinterfaces: *mut u32) -> i32;
187     #[cfg(feature = "Win32_Foundation")]
SCardListReaderGroupsA(hcontext: usize, mszgroups: super::super::Foundation::PSTR, pcchgroups: *mut u32) -> i32188     pub fn SCardListReaderGroupsA(hcontext: usize, mszgroups: super::super::Foundation::PSTR, pcchgroups: *mut u32) -> i32;
189     #[cfg(feature = "Win32_Foundation")]
SCardListReaderGroupsW(hcontext: usize, mszgroups: super::super::Foundation::PWSTR, pcchgroups: *mut u32) -> i32190     pub fn SCardListReaderGroupsW(hcontext: usize, mszgroups: super::super::Foundation::PWSTR, pcchgroups: *mut u32) -> i32;
191     #[cfg(feature = "Win32_Foundation")]
SCardListReadersA(hcontext: usize, mszgroups: super::super::Foundation::PSTR, mszreaders: super::super::Foundation::PSTR, pcchreaders: *mut u32) -> i32192     pub fn SCardListReadersA(hcontext: usize, mszgroups: super::super::Foundation::PSTR, mszreaders: super::super::Foundation::PSTR, pcchreaders: *mut u32) -> i32;
193     #[cfg(feature = "Win32_Foundation")]
SCardListReadersW(hcontext: usize, mszgroups: super::super::Foundation::PWSTR, mszreaders: super::super::Foundation::PWSTR, pcchreaders: *mut u32) -> i32194     pub fn SCardListReadersW(hcontext: usize, mszgroups: super::super::Foundation::PWSTR, mszreaders: super::super::Foundation::PWSTR, pcchreaders: *mut u32) -> i32;
195     #[cfg(feature = "Win32_Foundation")]
SCardListReadersWithDeviceInstanceIdA(hcontext: usize, szdeviceinstanceid: super::super::Foundation::PSTR, mszreaders: super::super::Foundation::PSTR, pcchreaders: *mut u32) -> i32196     pub fn SCardListReadersWithDeviceInstanceIdA(hcontext: usize, szdeviceinstanceid: super::super::Foundation::PSTR, mszreaders: super::super::Foundation::PSTR, pcchreaders: *mut u32) -> i32;
197     #[cfg(feature = "Win32_Foundation")]
SCardListReadersWithDeviceInstanceIdW(hcontext: usize, szdeviceinstanceid: super::super::Foundation::PWSTR, mszreaders: super::super::Foundation::PWSTR, pcchreaders: *mut u32) -> i32198     pub fn SCardListReadersWithDeviceInstanceIdW(hcontext: usize, szdeviceinstanceid: super::super::Foundation::PWSTR, mszreaders: super::super::Foundation::PWSTR, pcchreaders: *mut u32) -> i32;
199     #[cfg(feature = "Win32_Foundation")]
SCardLocateCardsA(hcontext: usize, mszcards: super::super::Foundation::PSTR, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32200     pub fn SCardLocateCardsA(hcontext: usize, mszcards: super::super::Foundation::PSTR, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32;
201     #[cfg(feature = "Win32_Foundation")]
SCardLocateCardsByATRA(hcontext: usize, rgatrmasks: *const SCARD_ATRMASK, catrs: u32, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32202     pub fn SCardLocateCardsByATRA(hcontext: usize, rgatrmasks: *const SCARD_ATRMASK, catrs: u32, rgreaderstates: *mut SCARD_READERSTATEA, creaders: u32) -> i32;
203     #[cfg(feature = "Win32_Foundation")]
SCardLocateCardsByATRW(hcontext: usize, rgatrmasks: *const SCARD_ATRMASK, catrs: u32, rgreaderstates: *mut SCARD_READERSTATEW, creaders: u32) -> i32204     pub fn SCardLocateCardsByATRW(hcontext: usize, rgatrmasks: *const SCARD_ATRMASK, catrs: u32, rgreaderstates: *mut SCARD_READERSTATEW, creaders: u32) -> i32;
205     #[cfg(feature = "Win32_Foundation")]
SCardLocateCardsW(hcontext: usize, mszcards: super::super::Foundation::PWSTR, rgreaderstates: *mut SCARD_READERSTATEW, creaders: u32) -> i32206     pub fn SCardLocateCardsW(hcontext: usize, mszcards: super::super::Foundation::PWSTR, rgreaderstates: *mut SCARD_READERSTATEW, creaders: u32) -> i32;
207     #[cfg(feature = "Win32_Foundation")]
SCardReadCacheA(hcontext: usize, cardidentifier: *const ::windows_sys::core::GUID, freshnesscounter: u32, lookupname: super::super::Foundation::PSTR, data: *mut u8, datalen: *mut u32) -> i32208     pub fn SCardReadCacheA(hcontext: usize, cardidentifier: *const ::windows_sys::core::GUID, freshnesscounter: u32, lookupname: super::super::Foundation::PSTR, data: *mut u8, datalen: *mut u32) -> i32;
209     #[cfg(feature = "Win32_Foundation")]
SCardReadCacheW(hcontext: usize, cardidentifier: *const ::windows_sys::core::GUID, freshnesscounter: u32, lookupname: super::super::Foundation::PWSTR, data: *mut u8, datalen: *mut u32) -> i32210     pub fn SCardReadCacheW(hcontext: usize, cardidentifier: *const ::windows_sys::core::GUID, freshnesscounter: u32, lookupname: super::super::Foundation::PWSTR, data: *mut u8, datalen: *mut u32) -> i32;
SCardReconnect(hcard: usize, dwsharemode: u32, dwpreferredprotocols: u32, dwinitialization: u32, pdwactiveprotocol: *mut u32) -> i32211     pub fn SCardReconnect(hcard: usize, dwsharemode: u32, dwpreferredprotocols: u32, dwinitialization: u32, pdwactiveprotocol: *mut u32) -> i32;
SCardReleaseContext(hcontext: usize) -> i32212     pub fn SCardReleaseContext(hcontext: usize) -> i32;
SCardReleaseStartedEvent()213     pub fn SCardReleaseStartedEvent();
214     #[cfg(feature = "Win32_Foundation")]
SCardRemoveReaderFromGroupA(hcontext: usize, szreadername: super::super::Foundation::PSTR, szgroupname: super::super::Foundation::PSTR) -> i32215     pub fn SCardRemoveReaderFromGroupA(hcontext: usize, szreadername: super::super::Foundation::PSTR, szgroupname: super::super::Foundation::PSTR) -> i32;
216     #[cfg(feature = "Win32_Foundation")]
SCardRemoveReaderFromGroupW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, szgroupname: super::super::Foundation::PWSTR) -> i32217     pub fn SCardRemoveReaderFromGroupW(hcontext: usize, szreadername: super::super::Foundation::PWSTR, szgroupname: super::super::Foundation::PWSTR) -> i32;
SCardSetAttrib(hcard: usize, dwattrid: u32, pbattr: *const u8, cbattrlen: u32) -> i32218     pub fn SCardSetAttrib(hcard: usize, dwattrid: u32, pbattr: *const u8, cbattrlen: u32) -> i32;
219     #[cfg(feature = "Win32_Foundation")]
SCardSetCardTypeProviderNameA(hcontext: usize, szcardname: super::super::Foundation::PSTR, dwproviderid: u32, szprovider: super::super::Foundation::PSTR) -> i32220     pub fn SCardSetCardTypeProviderNameA(hcontext: usize, szcardname: super::super::Foundation::PSTR, dwproviderid: u32, szprovider: super::super::Foundation::PSTR) -> i32;
221     #[cfg(feature = "Win32_Foundation")]
SCardSetCardTypeProviderNameW(hcontext: usize, szcardname: super::super::Foundation::PWSTR, dwproviderid: u32, szprovider: super::super::Foundation::PWSTR) -> i32222     pub fn SCardSetCardTypeProviderNameW(hcontext: usize, szcardname: super::super::Foundation::PWSTR, dwproviderid: u32, szprovider: super::super::Foundation::PWSTR) -> i32;
SCardState(hcard: usize, pdwstate: *mut u32, pdwprotocol: *mut u32, pbatr: *mut u8, pcbatrlen: *mut u32) -> i32223     pub fn SCardState(hcard: usize, pdwstate: *mut u32, pdwprotocol: *mut u32, pbatr: *mut u8, pcbatrlen: *mut u32) -> i32;
224     #[cfg(feature = "Win32_Foundation")]
SCardStatusA(hcard: usize, mszreadernames: super::super::Foundation::PSTR, pcchreaderlen: *mut u32, pdwstate: *mut u32, pdwprotocol: *mut u32, pbatr: *mut u8, pcbatrlen: *mut u32) -> i32225     pub fn SCardStatusA(hcard: usize, mszreadernames: super::super::Foundation::PSTR, pcchreaderlen: *mut u32, pdwstate: *mut u32, pdwprotocol: *mut u32, pbatr: *mut u8, pcbatrlen: *mut u32) -> i32;
226     #[cfg(feature = "Win32_Foundation")]
SCardStatusW(hcard: usize, mszreadernames: super::super::Foundation::PWSTR, pcchreaderlen: *mut u32, pdwstate: *mut u32, pdwprotocol: *mut u32, pbatr: *mut u8, pcbatrlen: *mut u32) -> i32227     pub fn SCardStatusW(hcard: usize, mszreadernames: super::super::Foundation::PWSTR, pcchreaderlen: *mut u32, pdwstate: *mut u32, pdwprotocol: *mut u32, pbatr: *mut u8, pcbatrlen: *mut u32) -> i32;
SCardTransmit(hcard: usize, piosendpci: *const SCARD_IO_REQUEST, pbsendbuffer: *const u8, cbsendlength: u32, piorecvpci: *mut SCARD_IO_REQUEST, pbrecvbuffer: *mut u8, pcbrecvlength: *mut u32) -> i32228     pub fn SCardTransmit(hcard: usize, piosendpci: *const SCARD_IO_REQUEST, pbsendbuffer: *const u8, cbsendlength: u32, piorecvpci: *mut SCARD_IO_REQUEST, pbrecvbuffer: *mut u8, pcbrecvlength: *mut u32) -> i32;
229     #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
SCardUIDlgSelectCardA(param0: *mut OPENCARDNAME_EXA) -> i32230     pub fn SCardUIDlgSelectCardA(param0: *mut OPENCARDNAME_EXA) -> i32;
231     #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
SCardUIDlgSelectCardW(param0: *mut OPENCARDNAME_EXW) -> i32232     pub fn SCardUIDlgSelectCardW(param0: *mut OPENCARDNAME_EXW) -> i32;
233     #[cfg(feature = "Win32_Foundation")]
SCardWriteCacheA(hcontext: usize, cardidentifier: *const ::windows_sys::core::GUID, freshnesscounter: u32, lookupname: super::super::Foundation::PSTR, data: *const u8, datalen: u32) -> i32234     pub fn SCardWriteCacheA(hcontext: usize, cardidentifier: *const ::windows_sys::core::GUID, freshnesscounter: u32, lookupname: super::super::Foundation::PSTR, data: *const u8, datalen: u32) -> i32;
235     #[cfg(feature = "Win32_Foundation")]
SCardWriteCacheW(hcontext: usize, cardidentifier: *const ::windows_sys::core::GUID, freshnesscounter: u32, lookupname: super::super::Foundation::PWSTR, data: *const u8, datalen: u32) -> i32236     pub fn SCardWriteCacheW(hcontext: usize, cardidentifier: *const ::windows_sys::core::GUID, freshnesscounter: u32, lookupname: super::super::Foundation::PWSTR, data: *const u8, datalen: u32) -> i32;
237 }
238 #[repr(C)]
239 pub struct BINARY_BLOB_CREDENTIAL_INFO {
240     pub cbBlob: u32,
241     pub pbBlob: *mut u8,
242 }
243 impl ::core::marker::Copy for BINARY_BLOB_CREDENTIAL_INFO {}
244 impl ::core::clone::Clone for BINARY_BLOB_CREDENTIAL_INFO {
clone(&self) -> Self245     fn clone(&self) -> Self {
246         *self
247     }
248 }
249 #[repr(C)]
250 pub struct CERT_CREDENTIAL_INFO {
251     pub cbSize: u32,
252     pub rgbHashOfCert: [u8; 20],
253 }
254 impl ::core::marker::Copy for CERT_CREDENTIAL_INFO {}
255 impl ::core::clone::Clone for CERT_CREDENTIAL_INFO {
clone(&self) -> Self256     fn clone(&self) -> Self {
257         *self
258     }
259 }
260 pub const CERT_HASH_LENGTH: u32 = 20u32;
261 #[repr(C)]
262 #[cfg(feature = "Win32_Foundation")]
263 pub struct CREDENTIALA {
264     pub Flags: CRED_FLAGS,
265     pub Type: CRED_TYPE,
266     pub TargetName: super::super::Foundation::PSTR,
267     pub Comment: super::super::Foundation::PSTR,
268     pub LastWritten: super::super::Foundation::FILETIME,
269     pub CredentialBlobSize: u32,
270     pub CredentialBlob: *mut u8,
271     pub Persist: CRED_PERSIST,
272     pub AttributeCount: u32,
273     pub Attributes: *mut CREDENTIAL_ATTRIBUTEA,
274     pub TargetAlias: super::super::Foundation::PSTR,
275     pub UserName: super::super::Foundation::PSTR,
276 }
277 #[cfg(feature = "Win32_Foundation")]
278 impl ::core::marker::Copy for CREDENTIALA {}
279 #[cfg(feature = "Win32_Foundation")]
280 impl ::core::clone::Clone for CREDENTIALA {
clone(&self) -> Self281     fn clone(&self) -> Self {
282         *self
283     }
284 }
285 #[repr(C)]
286 #[cfg(feature = "Win32_Foundation")]
287 pub struct CREDENTIALW {
288     pub Flags: CRED_FLAGS,
289     pub Type: CRED_TYPE,
290     pub TargetName: super::super::Foundation::PWSTR,
291     pub Comment: super::super::Foundation::PWSTR,
292     pub LastWritten: super::super::Foundation::FILETIME,
293     pub CredentialBlobSize: u32,
294     pub CredentialBlob: *mut u8,
295     pub Persist: CRED_PERSIST,
296     pub AttributeCount: u32,
297     pub Attributes: *mut CREDENTIAL_ATTRIBUTEW,
298     pub TargetAlias: super::super::Foundation::PWSTR,
299     pub UserName: super::super::Foundation::PWSTR,
300 }
301 #[cfg(feature = "Win32_Foundation")]
302 impl ::core::marker::Copy for CREDENTIALW {}
303 #[cfg(feature = "Win32_Foundation")]
304 impl ::core::clone::Clone for CREDENTIALW {
clone(&self) -> Self305     fn clone(&self) -> Self {
306         *self
307     }
308 }
309 #[repr(C)]
310 #[cfg(feature = "Win32_Foundation")]
311 pub struct CREDENTIAL_ATTRIBUTEA {
312     pub Keyword: super::super::Foundation::PSTR,
313     pub Flags: u32,
314     pub ValueSize: u32,
315     pub Value: *mut u8,
316 }
317 #[cfg(feature = "Win32_Foundation")]
318 impl ::core::marker::Copy for CREDENTIAL_ATTRIBUTEA {}
319 #[cfg(feature = "Win32_Foundation")]
320 impl ::core::clone::Clone for CREDENTIAL_ATTRIBUTEA {
clone(&self) -> Self321     fn clone(&self) -> Self {
322         *self
323     }
324 }
325 #[repr(C)]
326 #[cfg(feature = "Win32_Foundation")]
327 pub struct CREDENTIAL_ATTRIBUTEW {
328     pub Keyword: super::super::Foundation::PWSTR,
329     pub Flags: u32,
330     pub ValueSize: u32,
331     pub Value: *mut u8,
332 }
333 #[cfg(feature = "Win32_Foundation")]
334 impl ::core::marker::Copy for CREDENTIAL_ATTRIBUTEW {}
335 #[cfg(feature = "Win32_Foundation")]
336 impl ::core::clone::Clone for CREDENTIAL_ATTRIBUTEW {
clone(&self) -> Self337     fn clone(&self) -> Self {
338         *self
339     }
340 }
341 #[repr(C)]
342 #[cfg(feature = "Win32_Foundation")]
343 pub struct CREDENTIAL_TARGET_INFORMATIONA {
344     pub TargetName: super::super::Foundation::PSTR,
345     pub NetbiosServerName: super::super::Foundation::PSTR,
346     pub DnsServerName: super::super::Foundation::PSTR,
347     pub NetbiosDomainName: super::super::Foundation::PSTR,
348     pub DnsDomainName: super::super::Foundation::PSTR,
349     pub DnsTreeName: super::super::Foundation::PSTR,
350     pub PackageName: super::super::Foundation::PSTR,
351     pub Flags: u32,
352     pub CredTypeCount: u32,
353     pub CredTypes: *mut u32,
354 }
355 #[cfg(feature = "Win32_Foundation")]
356 impl ::core::marker::Copy for CREDENTIAL_TARGET_INFORMATIONA {}
357 #[cfg(feature = "Win32_Foundation")]
358 impl ::core::clone::Clone for CREDENTIAL_TARGET_INFORMATIONA {
clone(&self) -> Self359     fn clone(&self) -> Self {
360         *self
361     }
362 }
363 #[repr(C)]
364 #[cfg(feature = "Win32_Foundation")]
365 pub struct CREDENTIAL_TARGET_INFORMATIONW {
366     pub TargetName: super::super::Foundation::PWSTR,
367     pub NetbiosServerName: super::super::Foundation::PWSTR,
368     pub DnsServerName: super::super::Foundation::PWSTR,
369     pub NetbiosDomainName: super::super::Foundation::PWSTR,
370     pub DnsDomainName: super::super::Foundation::PWSTR,
371     pub DnsTreeName: super::super::Foundation::PWSTR,
372     pub PackageName: super::super::Foundation::PWSTR,
373     pub Flags: u32,
374     pub CredTypeCount: u32,
375     pub CredTypes: *mut u32,
376 }
377 #[cfg(feature = "Win32_Foundation")]
378 impl ::core::marker::Copy for CREDENTIAL_TARGET_INFORMATIONW {}
379 #[cfg(feature = "Win32_Foundation")]
380 impl ::core::clone::Clone for CREDENTIAL_TARGET_INFORMATIONW {
clone(&self) -> Self381     fn clone(&self) -> Self {
382         *self
383     }
384 }
385 pub type CREDSPP_SUBMIT_TYPE = i32;
386 pub const CredsspPasswordCreds: CREDSPP_SUBMIT_TYPE = 2i32;
387 pub const CredsspSchannelCreds: CREDSPP_SUBMIT_TYPE = 4i32;
388 pub const CredsspCertificateCreds: CREDSPP_SUBMIT_TYPE = 13i32;
389 pub const CredsspSubmitBufferBoth: CREDSPP_SUBMIT_TYPE = 50i32;
390 pub const CredsspSubmitBufferBothOld: CREDSPP_SUBMIT_TYPE = 51i32;
391 pub const CredsspCredEx: CREDSPP_SUBMIT_TYPE = 100i32;
392 #[repr(C)]
393 pub struct CREDSSP_CRED {
394     pub Type: CREDSPP_SUBMIT_TYPE,
395     pub pSchannelCred: *mut ::core::ffi::c_void,
396     pub pSpnegoCred: *mut ::core::ffi::c_void,
397 }
398 impl ::core::marker::Copy for CREDSSP_CRED {}
399 impl ::core::clone::Clone for CREDSSP_CRED {
clone(&self) -> Self400     fn clone(&self) -> Self {
401         *self
402     }
403 }
404 #[repr(C)]
405 pub struct CREDSSP_CRED_EX {
406     pub Type: CREDSPP_SUBMIT_TYPE,
407     pub Version: u32,
408     pub Flags: u32,
409     pub Reserved: u32,
410     pub Cred: CREDSSP_CRED,
411 }
412 impl ::core::marker::Copy for CREDSSP_CRED_EX {}
413 impl ::core::clone::Clone for CREDSSP_CRED_EX {
clone(&self) -> Self414     fn clone(&self) -> Self {
415         *self
416     }
417 }
418 pub const CREDSSP_CRED_EX_VERSION: u32 = 0u32;
419 pub const CREDSSP_FLAG_REDIRECT: u32 = 1u32;
420 pub const CREDSSP_SERVER_AUTH_CERTIFICATE: u32 = 2u32;
421 pub const CREDSSP_SERVER_AUTH_LOOPBACK: u32 = 4u32;
422 pub const CREDSSP_SERVER_AUTH_NEGOTIATE: u32 = 1u32;
423 pub const CREDUIWIN_DOWNLEVEL_HELLO_AS_SMART_CARD: u32 = 2147483648u32;
424 pub type CREDUIWIN_FLAGS = u32;
425 pub const CREDUIWIN_GENERIC: CREDUIWIN_FLAGS = 1u32;
426 pub const CREDUIWIN_CHECKBOX: CREDUIWIN_FLAGS = 2u32;
427 pub const CREDUIWIN_AUTHPACKAGE_ONLY: CREDUIWIN_FLAGS = 16u32;
428 pub const CREDUIWIN_IN_CRED_ONLY: CREDUIWIN_FLAGS = 32u32;
429 pub const CREDUIWIN_ENUMERATE_ADMINS: CREDUIWIN_FLAGS = 256u32;
430 pub const CREDUIWIN_ENUMERATE_CURRENT_USER: CREDUIWIN_FLAGS = 512u32;
431 pub const CREDUIWIN_SECURE_PROMPT: CREDUIWIN_FLAGS = 4096u32;
432 pub const CREDUIWIN_PREPROMPTING: CREDUIWIN_FLAGS = 8192u32;
433 pub const CREDUIWIN_PACK_32_WOW: CREDUIWIN_FLAGS = 268435456u32;
434 pub const CREDUIWIN_IGNORE_CLOUDAUTHORITY_NAME: u32 = 262144u32;
435 pub type CREDUI_FLAGS = u32;
436 pub const CREDUI_FLAGS_ALWAYS_SHOW_UI: CREDUI_FLAGS = 128u32;
437 pub const CREDUI_FLAGS_COMPLETE_USERNAME: CREDUI_FLAGS = 2048u32;
438 pub const CREDUI_FLAGS_DO_NOT_PERSIST: CREDUI_FLAGS = 2u32;
439 pub const CREDUI_FLAGS_EXCLUDE_CERTIFICATES: CREDUI_FLAGS = 8u32;
440 pub const CREDUI_FLAGS_EXPECT_CONFIRMATION: CREDUI_FLAGS = 131072u32;
441 pub const CREDUI_FLAGS_GENERIC_CREDENTIALS: CREDUI_FLAGS = 262144u32;
442 pub const CREDUI_FLAGS_INCORRECT_PASSWORD: CREDUI_FLAGS = 1u32;
443 pub const CREDUI_FLAGS_KEEP_USERNAME: CREDUI_FLAGS = 1048576u32;
444 pub const CREDUI_FLAGS_PASSWORD_ONLY_OK: CREDUI_FLAGS = 512u32;
445 pub const CREDUI_FLAGS_PERSIST: CREDUI_FLAGS = 4096u32;
446 pub const CREDUI_FLAGS_REQUEST_ADMINISTRATOR: CREDUI_FLAGS = 4u32;
447 pub const CREDUI_FLAGS_REQUIRE_CERTIFICATE: CREDUI_FLAGS = 16u32;
448 pub const CREDUI_FLAGS_REQUIRE_SMARTCARD: CREDUI_FLAGS = 256u32;
449 pub const CREDUI_FLAGS_SERVER_CREDENTIAL: CREDUI_FLAGS = 16384u32;
450 pub const CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX: CREDUI_FLAGS = 64u32;
451 pub const CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS: CREDUI_FLAGS = 524288u32;
452 pub const CREDUI_FLAGS_VALIDATE_USERNAME: CREDUI_FLAGS = 1024u32;
453 #[repr(C)]
454 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
455 pub struct CREDUI_INFOA {
456     pub cbSize: u32,
457     pub hwndParent: super::super::Foundation::HWND,
458     pub pszMessageText: super::super::Foundation::PSTR,
459     pub pszCaptionText: super::super::Foundation::PSTR,
460     pub hbmBanner: super::super::Graphics::Gdi::HBITMAP,
461 }
462 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
463 impl ::core::marker::Copy for CREDUI_INFOA {}
464 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
465 impl ::core::clone::Clone for CREDUI_INFOA {
clone(&self) -> Self466     fn clone(&self) -> Self {
467         *self
468     }
469 }
470 #[repr(C)]
471 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
472 pub struct CREDUI_INFOW {
473     pub cbSize: u32,
474     pub hwndParent: super::super::Foundation::HWND,
475     pub pszMessageText: super::super::Foundation::PWSTR,
476     pub pszCaptionText: super::super::Foundation::PWSTR,
477     pub hbmBanner: super::super::Graphics::Gdi::HBITMAP,
478 }
479 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
480 impl ::core::marker::Copy for CREDUI_INFOW {}
481 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
482 impl ::core::clone::Clone for CREDUI_INFOW {
clone(&self) -> Self483     fn clone(&self) -> Self {
484         *self
485     }
486 }
487 pub const CREDUI_MAX_CAPTION_LENGTH: u32 = 128u32;
488 pub const CREDUI_MAX_GENERIC_TARGET_LENGTH: u32 = 32767u32;
489 pub const CREDUI_MAX_MESSAGE_LENGTH: u32 = 1024u32;
490 pub const CRED_ALLOW_NAME_RESOLUTION: u32 = 1u32;
491 pub const CRED_CACHE_TARGET_INFORMATION: u32 = 1u32;
492 pub type CRED_ENUMERATE_FLAGS = u32;
493 pub const CRED_ENUMERATE_ALL_CREDENTIALS: CRED_ENUMERATE_FLAGS = 1u32;
494 pub type CRED_FLAGS = u32;
495 pub const CRED_FLAGS_PASSWORD_FOR_CERT: CRED_FLAGS = 1u32;
496 pub const CRED_FLAGS_PROMPT_NOW: CRED_FLAGS = 2u32;
497 pub const CRED_FLAGS_USERNAME_TARGET: CRED_FLAGS = 4u32;
498 pub const CRED_FLAGS_OWF_CRED_BLOB: CRED_FLAGS = 8u32;
499 pub const CRED_FLAGS_REQUIRE_CONFIRMATION: CRED_FLAGS = 16u32;
500 pub const CRED_FLAGS_WILDCARD_MATCH: CRED_FLAGS = 32u32;
501 pub const CRED_FLAGS_VSM_PROTECTED: CRED_FLAGS = 64u32;
502 pub const CRED_FLAGS_NGC_CERT: CRED_FLAGS = 128u32;
503 pub const CRED_FLAGS_VALID_FLAGS: CRED_FLAGS = 61695u32;
504 pub const CRED_FLAGS_VALID_INPUT_FLAGS: CRED_FLAGS = 61599u32;
505 pub const CRED_LOGON_TYPES_MASK: u32 = 61440u32;
506 pub type CRED_MARSHAL_TYPE = i32;
507 pub const CertCredential: CRED_MARSHAL_TYPE = 1i32;
508 pub const UsernameTargetCredential: CRED_MARSHAL_TYPE = 2i32;
509 pub const BinaryBlobCredential: CRED_MARSHAL_TYPE = 3i32;
510 pub const UsernameForPackedCredentials: CRED_MARSHAL_TYPE = 4i32;
511 pub const BinaryBlobForSystem: CRED_MARSHAL_TYPE = 5i32;
512 pub const CRED_MAX_ATTRIBUTES: u32 = 64u32;
513 pub const CRED_MAX_GENERIC_TARGET_NAME_LENGTH: u32 = 32767u32;
514 pub const CRED_MAX_STRING_LENGTH: u32 = 256u32;
515 pub const CRED_MAX_TARGETNAME_ATTRIBUTE_LENGTH: u32 = 256u32;
516 pub const CRED_MAX_TARGETNAME_NAMESPACE_LENGTH: u32 = 256u32;
517 pub const CRED_MAX_VALUE_SIZE: u32 = 256u32;
518 pub type CRED_PACK_FLAGS = u32;
519 pub const CRED_PACK_PROTECTED_CREDENTIALS: CRED_PACK_FLAGS = 1u32;
520 pub const CRED_PACK_WOW_BUFFER: CRED_PACK_FLAGS = 2u32;
521 pub const CRED_PACK_GENERIC_CREDENTIALS: CRED_PACK_FLAGS = 4u32;
522 pub const CRED_PACK_ID_PROVIDER_CREDENTIALS: CRED_PACK_FLAGS = 8u32;
523 pub type CRED_PERSIST = u32;
524 pub const CRED_PERSIST_NONE: CRED_PERSIST = 0u32;
525 pub const CRED_PERSIST_SESSION: CRED_PERSIST = 1u32;
526 pub const CRED_PERSIST_LOCAL_MACHINE: CRED_PERSIST = 2u32;
527 pub const CRED_PERSIST_ENTERPRISE: CRED_PERSIST = 3u32;
528 pub const CRED_PRESERVE_CREDENTIAL_BLOB: u32 = 1u32;
529 pub type CRED_PROTECTION_TYPE = i32;
530 pub const CredUnprotected: CRED_PROTECTION_TYPE = 0i32;
531 pub const CredUserProtection: CRED_PROTECTION_TYPE = 1i32;
532 pub const CredTrustedProtection: CRED_PROTECTION_TYPE = 2i32;
533 pub const CredForSystemProtection: CRED_PROTECTION_TYPE = 3i32;
534 pub const CRED_PROTECT_AS_SELF: u32 = 1u32;
535 pub const CRED_PROTECT_TO_SYSTEM: u32 = 2u32;
536 pub const CRED_TI_CREATE_EXPLICIT_CRED: u32 = 16u32;
537 pub const CRED_TI_DNSTREE_IS_DFS_SERVER: u32 = 64u32;
538 pub const CRED_TI_DOMAIN_FORMAT_UNKNOWN: u32 = 2u32;
539 pub const CRED_TI_ONLY_PASSWORD_REQUIRED: u32 = 4u32;
540 pub const CRED_TI_SERVER_FORMAT_UNKNOWN: u32 = 1u32;
541 pub const CRED_TI_USERNAME_TARGET: u32 = 8u32;
542 pub const CRED_TI_VALID_FLAGS: u32 = 61567u32;
543 pub const CRED_TI_WORKGROUP_MEMBER: u32 = 32u32;
544 pub type CRED_TYPE = u32;
545 pub const CRED_TYPE_GENERIC: CRED_TYPE = 1u32;
546 pub const CRED_TYPE_DOMAIN_PASSWORD: CRED_TYPE = 2u32;
547 pub const CRED_TYPE_DOMAIN_CERTIFICATE: CRED_TYPE = 3u32;
548 pub const CRED_TYPE_DOMAIN_VISIBLE_PASSWORD: CRED_TYPE = 4u32;
549 pub const CRED_TYPE_GENERIC_CERTIFICATE: CRED_TYPE = 5u32;
550 pub const CRED_TYPE_DOMAIN_EXTENDED: CRED_TYPE = 6u32;
551 pub const CRED_TYPE_MAXIMUM: CRED_TYPE = 7u32;
552 pub const CRED_TYPE_MAXIMUM_EX: CRED_TYPE = 1007u32;
553 pub const CRED_UNPROTECT_ALLOW_TO_SYSTEM: u32 = 2u32;
554 pub const CRED_UNPROTECT_AS_SELF: u32 = 1u32;
555 pub const FILE_DEVICE_SMARTCARD: u32 = 49u32;
556 pub const GUID_DEVINTERFACE_SMARTCARD_READER: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 1356681776, data2: 47754, data3: 4561, data4: [191, 93, 0, 0, 248, 5, 245, 48] };
557 #[repr(C)]
558 pub struct KeyCredentialManagerInfo {
559     pub containerId: ::windows_sys::core::GUID,
560 }
561 impl ::core::marker::Copy for KeyCredentialManagerInfo {}
562 impl ::core::clone::Clone for KeyCredentialManagerInfo {
clone(&self) -> Self563     fn clone(&self) -> Self {
564         *self
565     }
566 }
567 pub type KeyCredentialManagerOperationErrorStates = u32;
568 pub const KeyCredentialManagerOperationErrorStateNone: KeyCredentialManagerOperationErrorStates = 0u32;
569 pub const KeyCredentialManagerOperationErrorStateDeviceJoinFailure: KeyCredentialManagerOperationErrorStates = 1u32;
570 pub const KeyCredentialManagerOperationErrorStateTokenFailure: KeyCredentialManagerOperationErrorStates = 2u32;
571 pub const KeyCredentialManagerOperationErrorStateCertificateFailure: KeyCredentialManagerOperationErrorStates = 4u32;
572 pub const KeyCredentialManagerOperationErrorStateRemoteSessionFailure: KeyCredentialManagerOperationErrorStates = 8u32;
573 pub const KeyCredentialManagerOperationErrorStatePolicyFailure: KeyCredentialManagerOperationErrorStates = 16u32;
574 pub const KeyCredentialManagerOperationErrorStateHardwareFailure: KeyCredentialManagerOperationErrorStates = 32u32;
575 pub const KeyCredentialManagerOperationErrorStatePinExistsFailure: KeyCredentialManagerOperationErrorStates = 64u32;
576 pub type KeyCredentialManagerOperationType = i32;
577 pub const KeyCredentialManagerProvisioning: KeyCredentialManagerOperationType = 0i32;
578 pub const KeyCredentialManagerPinChange: KeyCredentialManagerOperationType = 1i32;
579 pub const KeyCredentialManagerPinReset: KeyCredentialManagerOperationType = 2i32;
580 #[cfg(feature = "Win32_Foundation")]
581 pub type LPOCNCHKPROC = unsafe extern "system" fn(param0: usize, param1: usize, param2: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL;
582 #[cfg(feature = "Win32_Foundation")]
583 pub type LPOCNCONNPROCA = unsafe extern "system" fn(param0: usize, param1: super::super::Foundation::PSTR, param2: super::super::Foundation::PSTR, param3: *const ::core::ffi::c_void) -> usize;
584 #[cfg(feature = "Win32_Foundation")]
585 pub type LPOCNCONNPROCW = unsafe extern "system" fn(param0: usize, param1: super::super::Foundation::PWSTR, param2: super::super::Foundation::PWSTR, param3: *const ::core::ffi::c_void) -> usize;
586 pub type LPOCNDSCPROC = unsafe extern "system" fn(param0: usize, param1: usize, param2: *const ::core::ffi::c_void);
587 pub const MAXIMUM_ATTR_STRING_LENGTH: u32 = 32u32;
588 pub const MAXIMUM_SMARTCARD_READERS: u32 = 10u32;
589 #[repr(C)]
590 #[cfg(feature = "Win32_Foundation")]
591 pub struct OPENCARDNAMEA {
592     pub dwStructSize: u32,
593     pub hwndOwner: super::super::Foundation::HWND,
594     pub hSCardContext: usize,
595     pub lpstrGroupNames: super::super::Foundation::PSTR,
596     pub nMaxGroupNames: u32,
597     pub lpstrCardNames: super::super::Foundation::PSTR,
598     pub nMaxCardNames: u32,
599     pub rgguidInterfaces: *mut ::windows_sys::core::GUID,
600     pub cguidInterfaces: u32,
601     pub lpstrRdr: super::super::Foundation::PSTR,
602     pub nMaxRdr: u32,
603     pub lpstrCard: super::super::Foundation::PSTR,
604     pub nMaxCard: u32,
605     pub lpstrTitle: super::super::Foundation::PSTR,
606     pub dwFlags: u32,
607     pub pvUserData: *mut ::core::ffi::c_void,
608     pub dwShareMode: u32,
609     pub dwPreferredProtocols: u32,
610     pub dwActiveProtocol: u32,
611     pub lpfnConnect: LPOCNCONNPROCA,
612     pub lpfnCheck: LPOCNCHKPROC,
613     pub lpfnDisconnect: LPOCNDSCPROC,
614     pub hCardHandle: usize,
615 }
616 #[cfg(feature = "Win32_Foundation")]
617 impl ::core::marker::Copy for OPENCARDNAMEA {}
618 #[cfg(feature = "Win32_Foundation")]
619 impl ::core::clone::Clone for OPENCARDNAMEA {
clone(&self) -> Self620     fn clone(&self) -> Self {
621         *self
622     }
623 }
624 #[repr(C)]
625 #[cfg(feature = "Win32_Foundation")]
626 pub struct OPENCARDNAMEW {
627     pub dwStructSize: u32,
628     pub hwndOwner: super::super::Foundation::HWND,
629     pub hSCardContext: usize,
630     pub lpstrGroupNames: super::super::Foundation::PWSTR,
631     pub nMaxGroupNames: u32,
632     pub lpstrCardNames: super::super::Foundation::PWSTR,
633     pub nMaxCardNames: u32,
634     pub rgguidInterfaces: *mut ::windows_sys::core::GUID,
635     pub cguidInterfaces: u32,
636     pub lpstrRdr: super::super::Foundation::PWSTR,
637     pub nMaxRdr: u32,
638     pub lpstrCard: super::super::Foundation::PWSTR,
639     pub nMaxCard: u32,
640     pub lpstrTitle: super::super::Foundation::PWSTR,
641     pub dwFlags: u32,
642     pub pvUserData: *mut ::core::ffi::c_void,
643     pub dwShareMode: u32,
644     pub dwPreferredProtocols: u32,
645     pub dwActiveProtocol: u32,
646     pub lpfnConnect: LPOCNCONNPROCW,
647     pub lpfnCheck: LPOCNCHKPROC,
648     pub lpfnDisconnect: LPOCNDSCPROC,
649     pub hCardHandle: usize,
650 }
651 #[cfg(feature = "Win32_Foundation")]
652 impl ::core::marker::Copy for OPENCARDNAMEW {}
653 #[cfg(feature = "Win32_Foundation")]
654 impl ::core::clone::Clone for OPENCARDNAMEW {
clone(&self) -> Self655     fn clone(&self) -> Self {
656         *self
657     }
658 }
659 #[repr(C)]
660 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
661 pub struct OPENCARDNAME_EXA {
662     pub dwStructSize: u32,
663     pub hSCardContext: usize,
664     pub hwndOwner: super::super::Foundation::HWND,
665     pub dwFlags: u32,
666     pub lpstrTitle: super::super::Foundation::PSTR,
667     pub lpstrSearchDesc: super::super::Foundation::PSTR,
668     pub hIcon: super::super::UI::WindowsAndMessaging::HICON,
669     pub pOpenCardSearchCriteria: *mut OPENCARD_SEARCH_CRITERIAA,
670     pub lpfnConnect: LPOCNCONNPROCA,
671     pub pvUserData: *mut ::core::ffi::c_void,
672     pub dwShareMode: u32,
673     pub dwPreferredProtocols: u32,
674     pub lpstrRdr: super::super::Foundation::PSTR,
675     pub nMaxRdr: u32,
676     pub lpstrCard: super::super::Foundation::PSTR,
677     pub nMaxCard: u32,
678     pub dwActiveProtocol: u32,
679     pub hCardHandle: usize,
680 }
681 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
682 impl ::core::marker::Copy for OPENCARDNAME_EXA {}
683 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
684 impl ::core::clone::Clone for OPENCARDNAME_EXA {
clone(&self) -> Self685     fn clone(&self) -> Self {
686         *self
687     }
688 }
689 #[repr(C)]
690 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
691 pub struct OPENCARDNAME_EXW {
692     pub dwStructSize: u32,
693     pub hSCardContext: usize,
694     pub hwndOwner: super::super::Foundation::HWND,
695     pub dwFlags: u32,
696     pub lpstrTitle: super::super::Foundation::PWSTR,
697     pub lpstrSearchDesc: super::super::Foundation::PWSTR,
698     pub hIcon: super::super::UI::WindowsAndMessaging::HICON,
699     pub pOpenCardSearchCriteria: *mut OPENCARD_SEARCH_CRITERIAW,
700     pub lpfnConnect: LPOCNCONNPROCW,
701     pub pvUserData: *mut ::core::ffi::c_void,
702     pub dwShareMode: u32,
703     pub dwPreferredProtocols: u32,
704     pub lpstrRdr: super::super::Foundation::PWSTR,
705     pub nMaxRdr: u32,
706     pub lpstrCard: super::super::Foundation::PWSTR,
707     pub nMaxCard: u32,
708     pub dwActiveProtocol: u32,
709     pub hCardHandle: usize,
710 }
711 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
712 impl ::core::marker::Copy for OPENCARDNAME_EXW {}
713 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_WindowsAndMessaging"))]
714 impl ::core::clone::Clone for OPENCARDNAME_EXW {
clone(&self) -> Self715     fn clone(&self) -> Self {
716         *self
717     }
718 }
719 #[repr(C)]
720 #[cfg(feature = "Win32_Foundation")]
721 pub struct OPENCARD_SEARCH_CRITERIAA {
722     pub dwStructSize: u32,
723     pub lpstrGroupNames: super::super::Foundation::PSTR,
724     pub nMaxGroupNames: u32,
725     pub rgguidInterfaces: *mut ::windows_sys::core::GUID,
726     pub cguidInterfaces: u32,
727     pub lpstrCardNames: super::super::Foundation::PSTR,
728     pub nMaxCardNames: u32,
729     pub lpfnCheck: LPOCNCHKPROC,
730     pub lpfnConnect: LPOCNCONNPROCA,
731     pub lpfnDisconnect: LPOCNDSCPROC,
732     pub pvUserData: *mut ::core::ffi::c_void,
733     pub dwShareMode: u32,
734     pub dwPreferredProtocols: u32,
735 }
736 #[cfg(feature = "Win32_Foundation")]
737 impl ::core::marker::Copy for OPENCARD_SEARCH_CRITERIAA {}
738 #[cfg(feature = "Win32_Foundation")]
739 impl ::core::clone::Clone for OPENCARD_SEARCH_CRITERIAA {
clone(&self) -> Self740     fn clone(&self) -> Self {
741         *self
742     }
743 }
744 #[repr(C)]
745 #[cfg(feature = "Win32_Foundation")]
746 pub struct OPENCARD_SEARCH_CRITERIAW {
747     pub dwStructSize: u32,
748     pub lpstrGroupNames: super::super::Foundation::PWSTR,
749     pub nMaxGroupNames: u32,
750     pub rgguidInterfaces: *mut ::windows_sys::core::GUID,
751     pub cguidInterfaces: u32,
752     pub lpstrCardNames: super::super::Foundation::PWSTR,
753     pub nMaxCardNames: u32,
754     pub lpfnCheck: LPOCNCHKPROC,
755     pub lpfnConnect: LPOCNCONNPROCW,
756     pub lpfnDisconnect: LPOCNDSCPROC,
757     pub pvUserData: *mut ::core::ffi::c_void,
758     pub dwShareMode: u32,
759     pub dwPreferredProtocols: u32,
760 }
761 #[cfg(feature = "Win32_Foundation")]
762 impl ::core::marker::Copy for OPENCARD_SEARCH_CRITERIAW {}
763 #[cfg(feature = "Win32_Foundation")]
764 impl ::core::clone::Clone for OPENCARD_SEARCH_CRITERIAW {
clone(&self) -> Self765     fn clone(&self) -> Self {
766         *self
767     }
768 }
769 #[repr(C)]
770 pub struct READER_SEL_REQUEST {
771     pub dwShareMode: u32,
772     pub dwPreferredProtocols: u32,
773     pub MatchType: READER_SEL_REQUEST_MATCH_TYPE,
774     pub Anonymous: READER_SEL_REQUEST_0,
775 }
776 impl ::core::marker::Copy for READER_SEL_REQUEST {}
777 impl ::core::clone::Clone for READER_SEL_REQUEST {
clone(&self) -> Self778     fn clone(&self) -> Self {
779         *self
780     }
781 }
782 #[repr(C)]
783 pub union READER_SEL_REQUEST_0 {
784     pub ReaderAndContainerParameter: READER_SEL_REQUEST_0_0,
785     pub SerialNumberParameter: READER_SEL_REQUEST_0_1,
786 }
787 impl ::core::marker::Copy for READER_SEL_REQUEST_0 {}
788 impl ::core::clone::Clone for READER_SEL_REQUEST_0 {
clone(&self) -> Self789     fn clone(&self) -> Self {
790         *self
791     }
792 }
793 #[repr(C)]
794 pub struct READER_SEL_REQUEST_0_0 {
795     pub cbReaderNameOffset: u32,
796     pub cchReaderNameLength: u32,
797     pub cbContainerNameOffset: u32,
798     pub cchContainerNameLength: u32,
799     pub dwDesiredCardModuleVersion: u32,
800     pub dwCspFlags: u32,
801 }
802 impl ::core::marker::Copy for READER_SEL_REQUEST_0_0 {}
803 impl ::core::clone::Clone for READER_SEL_REQUEST_0_0 {
clone(&self) -> Self804     fn clone(&self) -> Self {
805         *self
806     }
807 }
808 #[repr(C)]
809 pub struct READER_SEL_REQUEST_0_1 {
810     pub cbSerialNumberOffset: u32,
811     pub cbSerialNumberLength: u32,
812     pub dwDesiredCardModuleVersion: u32,
813 }
814 impl ::core::marker::Copy for READER_SEL_REQUEST_0_1 {}
815 impl ::core::clone::Clone for READER_SEL_REQUEST_0_1 {
clone(&self) -> Self816     fn clone(&self) -> Self {
817         *self
818     }
819 }
820 pub type READER_SEL_REQUEST_MATCH_TYPE = i32;
821 pub const RSR_MATCH_TYPE_READER_AND_CONTAINER: READER_SEL_REQUEST_MATCH_TYPE = 1i32;
822 pub const RSR_MATCH_TYPE_SERIAL_NUMBER: READER_SEL_REQUEST_MATCH_TYPE = 2i32;
823 pub const RSR_MATCH_TYPE_ALL_CARDS: READER_SEL_REQUEST_MATCH_TYPE = 3i32;
824 #[repr(C)]
825 pub struct READER_SEL_RESPONSE {
826     pub cbReaderNameOffset: u32,
827     pub cchReaderNameLength: u32,
828     pub cbCardNameOffset: u32,
829     pub cchCardNameLength: u32,
830 }
831 impl ::core::marker::Copy for READER_SEL_RESPONSE {}
832 impl ::core::clone::Clone for READER_SEL_RESPONSE {
clone(&self) -> Self833     fn clone(&self) -> Self {
834         *self
835     }
836 }
837 pub const SCARD_ABSENT: u32 = 1u32;
838 #[repr(C)]
839 pub struct SCARD_ATRMASK {
840     pub cbAtr: u32,
841     pub rgbAtr: [u8; 36],
842     pub rgbMask: [u8; 36],
843 }
844 impl ::core::marker::Copy for SCARD_ATRMASK {}
845 impl ::core::clone::Clone for SCARD_ATRMASK {
clone(&self) -> Self846     fn clone(&self) -> Self {
847         *self
848     }
849 }
850 pub const SCARD_ATR_LENGTH: u32 = 33u32;
851 pub const SCARD_AUDIT_CHV_FAILURE: u32 = 0u32;
852 pub const SCARD_AUDIT_CHV_SUCCESS: u32 = 1u32;
853 pub const SCARD_CLASS_COMMUNICATIONS: u32 = 2u32;
854 pub const SCARD_CLASS_ICC_STATE: u32 = 9u32;
855 pub const SCARD_CLASS_IFD_PROTOCOL: u32 = 8u32;
856 pub const SCARD_CLASS_MECHANICAL: u32 = 6u32;
857 pub const SCARD_CLASS_PERF: u32 = 32766u32;
858 pub const SCARD_CLASS_POWER_MGMT: u32 = 4u32;
859 pub const SCARD_CLASS_PROTOCOL: u32 = 3u32;
860 pub const SCARD_CLASS_SECURITY: u32 = 5u32;
861 pub const SCARD_CLASS_SYSTEM: u32 = 32767u32;
862 pub const SCARD_CLASS_VENDOR_DEFINED: u32 = 7u32;
863 pub const SCARD_CLASS_VENDOR_INFO: u32 = 1u32;
864 pub const SCARD_COLD_RESET: u32 = 1u32;
865 pub const SCARD_EJECT_CARD: u32 = 3u32;
866 #[repr(C)]
867 pub struct SCARD_IO_REQUEST {
868     pub dwProtocol: u32,
869     pub cbPciLength: u32,
870 }
871 impl ::core::marker::Copy for SCARD_IO_REQUEST {}
872 impl ::core::clone::Clone for SCARD_IO_REQUEST {
clone(&self) -> Self873     fn clone(&self) -> Self {
874         *self
875     }
876 }
877 pub const SCARD_LEAVE_CARD: u32 = 0u32;
878 pub const SCARD_NEGOTIABLE: u32 = 5u32;
879 pub const SCARD_POWERED: u32 = 4u32;
880 pub const SCARD_POWER_DOWN: u32 = 0u32;
881 pub const SCARD_PRESENT: u32 = 2u32;
882 pub const SCARD_PROTOCOL_DEFAULT: u32 = 2147483648u32;
883 pub const SCARD_PROTOCOL_OPTIMAL: u32 = 0u32;
884 pub const SCARD_PROTOCOL_RAW: u32 = 65536u32;
885 pub const SCARD_PROTOCOL_T0: u32 = 1u32;
886 pub const SCARD_PROTOCOL_T1: u32 = 2u32;
887 pub const SCARD_PROTOCOL_UNDEFINED: u32 = 0u32;
888 pub const SCARD_PROVIDER_CSP: u32 = 2u32;
889 pub const SCARD_PROVIDER_KSP: u32 = 3u32;
890 pub const SCARD_PROVIDER_PRIMARY: u32 = 1u32;
891 #[repr(C)]
892 #[cfg(feature = "Win32_Foundation")]
893 pub struct SCARD_READERSTATEA {
894     pub szReader: super::super::Foundation::PSTR,
895     pub pvUserData: *mut ::core::ffi::c_void,
896     pub dwCurrentState: SCARD_STATE,
897     pub dwEventState: SCARD_STATE,
898     pub cbAtr: u32,
899     pub rgbAtr: [u8; 36],
900 }
901 #[cfg(feature = "Win32_Foundation")]
902 impl ::core::marker::Copy for SCARD_READERSTATEA {}
903 #[cfg(feature = "Win32_Foundation")]
904 impl ::core::clone::Clone for SCARD_READERSTATEA {
clone(&self) -> Self905     fn clone(&self) -> Self {
906         *self
907     }
908 }
909 #[repr(C)]
910 #[cfg(feature = "Win32_Foundation")]
911 pub struct SCARD_READERSTATEW {
912     pub szReader: super::super::Foundation::PWSTR,
913     pub pvUserData: *mut ::core::ffi::c_void,
914     pub dwCurrentState: SCARD_STATE,
915     pub dwEventState: SCARD_STATE,
916     pub cbAtr: u32,
917     pub rgbAtr: [u8; 36],
918 }
919 #[cfg(feature = "Win32_Foundation")]
920 impl ::core::marker::Copy for SCARD_READERSTATEW {}
921 #[cfg(feature = "Win32_Foundation")]
922 impl ::core::clone::Clone for SCARD_READERSTATEW {
clone(&self) -> Self923     fn clone(&self) -> Self {
924         *self
925     }
926 }
927 pub const SCARD_READER_CONFISCATES: u32 = 4u32;
928 pub const SCARD_READER_CONTACTLESS: u32 = 8u32;
929 pub const SCARD_READER_EJECTS: u32 = 2u32;
930 pub const SCARD_READER_SWALLOWS: u32 = 1u32;
931 pub const SCARD_READER_TYPE_EMBEDDEDSE: u32 = 2048u32;
932 pub const SCARD_READER_TYPE_IDE: u32 = 16u32;
933 pub const SCARD_READER_TYPE_KEYBOARD: u32 = 4u32;
934 pub const SCARD_READER_TYPE_NFC: u32 = 256u32;
935 pub const SCARD_READER_TYPE_NGC: u32 = 1024u32;
936 pub const SCARD_READER_TYPE_PARALELL: u32 = 2u32;
937 pub const SCARD_READER_TYPE_PCMCIA: u32 = 64u32;
938 pub const SCARD_READER_TYPE_SCSI: u32 = 8u32;
939 pub const SCARD_READER_TYPE_SERIAL: u32 = 1u32;
940 pub const SCARD_READER_TYPE_TPM: u32 = 128u32;
941 pub const SCARD_READER_TYPE_UICC: u32 = 512u32;
942 pub const SCARD_READER_TYPE_USB: u32 = 32u32;
943 pub const SCARD_READER_TYPE_VENDOR: u32 = 240u32;
944 pub const SCARD_RESET_CARD: u32 = 1u32;
945 pub type SCARD_SCOPE = u32;
946 pub const SCARD_SCOPE_USER: SCARD_SCOPE = 0u32;
947 pub const SCARD_SCOPE_SYSTEM: SCARD_SCOPE = 2u32;
948 pub const SCARD_SCOPE_TERMINAL: u32 = 1u32;
949 pub const SCARD_SHARE_DIRECT: u32 = 3u32;
950 pub const SCARD_SHARE_EXCLUSIVE: u32 = 1u32;
951 pub const SCARD_SHARE_SHARED: u32 = 2u32;
952 pub const SCARD_SPECIFIC: u32 = 6u32;
953 pub type SCARD_STATE = u32;
954 pub const SCARD_STATE_UNAWARE: SCARD_STATE = 0u32;
955 pub const SCARD_STATE_IGNORE: SCARD_STATE = 1u32;
956 pub const SCARD_STATE_UNAVAILABLE: SCARD_STATE = 8u32;
957 pub const SCARD_STATE_EMPTY: SCARD_STATE = 16u32;
958 pub const SCARD_STATE_PRESENT: SCARD_STATE = 32u32;
959 pub const SCARD_STATE_ATRMATCH: SCARD_STATE = 64u32;
960 pub const SCARD_STATE_EXCLUSIVE: SCARD_STATE = 128u32;
961 pub const SCARD_STATE_INUSE: SCARD_STATE = 256u32;
962 pub const SCARD_STATE_MUTE: SCARD_STATE = 512u32;
963 pub const SCARD_STATE_CHANGED: SCARD_STATE = 2u32;
964 pub const SCARD_STATE_UNKNOWN: SCARD_STATE = 4u32;
965 pub const SCARD_STATE_UNPOWERED: u32 = 1024u32;
966 pub const SCARD_SWALLOWED: u32 = 3u32;
967 pub const SCARD_T0_CMD_LENGTH: u32 = 5u32;
968 #[repr(C)]
969 pub struct SCARD_T0_COMMAND {
970     pub bCla: u8,
971     pub bIns: u8,
972     pub bP1: u8,
973     pub bP2: u8,
974     pub bP3: u8,
975 }
976 impl ::core::marker::Copy for SCARD_T0_COMMAND {}
977 impl ::core::clone::Clone for SCARD_T0_COMMAND {
clone(&self) -> Self978     fn clone(&self) -> Self {
979         *self
980     }
981 }
982 pub const SCARD_T0_HEADER_LENGTH: u32 = 7u32;
983 #[repr(C)]
984 pub struct SCARD_T0_REQUEST {
985     pub ioRequest: SCARD_IO_REQUEST,
986     pub bSw1: u8,
987     pub bSw2: u8,
988     pub Anonymous: SCARD_T0_REQUEST_0,
989 }
990 impl ::core::marker::Copy for SCARD_T0_REQUEST {}
991 impl ::core::clone::Clone for SCARD_T0_REQUEST {
clone(&self) -> Self992     fn clone(&self) -> Self {
993         *self
994     }
995 }
996 #[repr(C)]
997 pub union SCARD_T0_REQUEST_0 {
998     pub CmdBytes: SCARD_T0_COMMAND,
999     pub rgbHeader: [u8; 5],
1000 }
1001 impl ::core::marker::Copy for SCARD_T0_REQUEST_0 {}
1002 impl ::core::clone::Clone for SCARD_T0_REQUEST_0 {
clone(&self) -> Self1003     fn clone(&self) -> Self {
1004         *self
1005     }
1006 }
1007 pub const SCARD_T1_EPILOGUE_LENGTH: u32 = 2u32;
1008 pub const SCARD_T1_EPILOGUE_LENGTH_LRC: u32 = 1u32;
1009 pub const SCARD_T1_MAX_IFS: u32 = 254u32;
1010 pub const SCARD_T1_PROLOGUE_LENGTH: u32 = 3u32;
1011 #[repr(C)]
1012 pub struct SCARD_T1_REQUEST {
1013     pub ioRequest: SCARD_IO_REQUEST,
1014 }
1015 impl ::core::marker::Copy for SCARD_T1_REQUEST {}
1016 impl ::core::clone::Clone for SCARD_T1_REQUEST {
clone(&self) -> Self1017     fn clone(&self) -> Self {
1018         *self
1019     }
1020 }
1021 pub const SCARD_UNKNOWN: u32 = 0u32;
1022 pub const SCARD_UNPOWER_CARD: u32 = 2u32;
1023 pub const SCARD_WARM_RESET: u32 = 2u32;
1024 pub const SCERR_NOCARDNAME: u32 = 16384u32;
1025 pub const SCERR_NOGUIDS: u32 = 32768u32;
1026 pub const SC_DLG_FORCE_UI: u32 = 4u32;
1027 pub const SC_DLG_MINIMAL_UI: u32 = 1u32;
1028 pub const SC_DLG_NO_UI: u32 = 2u32;
1029 pub const SECPKG_ALT_ATTR: u32 = 2147483648u32;
1030 pub const SECPKG_ATTR_C_FULL_IDENT_TOKEN: u32 = 2147483781u32;
1031 #[cfg(feature = "Win32_Foundation")]
1032 pub const STATUS_ACCESS_DENIED: super::super::Foundation::NTSTATUS = -1073741790i32;
1033 #[cfg(feature = "Win32_Foundation")]
1034 pub const STATUS_ACCOUNT_DISABLED: super::super::Foundation::NTSTATUS = -1073741710i32;
1035 #[cfg(feature = "Win32_Foundation")]
1036 pub const STATUS_ACCOUNT_EXPIRED: super::super::Foundation::NTSTATUS = -1073741421i32;
1037 #[cfg(feature = "Win32_Foundation")]
1038 pub const STATUS_ACCOUNT_LOCKED_OUT: super::super::Foundation::NTSTATUS = -1073741260i32;
1039 #[cfg(feature = "Win32_Foundation")]
1040 pub const STATUS_ACCOUNT_RESTRICTION: super::super::Foundation::NTSTATUS = -1073741714i32;
1041 #[cfg(feature = "Win32_Foundation")]
1042 pub const STATUS_AUTHENTICATION_FIREWALL_FAILED: super::super::Foundation::NTSTATUS = -1073740781i32;
1043 #[cfg(feature = "Win32_Foundation")]
1044 pub const STATUS_DOWNGRADE_DETECTED: super::super::Foundation::NTSTATUS = -1073740920i32;
1045 #[cfg(feature = "Win32_Foundation")]
1046 pub const STATUS_LOGON_FAILURE: super::super::Foundation::NTSTATUS = -1073741715i32;
1047 #[cfg(feature = "Win32_Foundation")]
1048 pub const STATUS_LOGON_TYPE_NOT_GRANTED: super::super::Foundation::NTSTATUS = -1073741477i32;
1049 #[cfg(feature = "Win32_Foundation")]
1050 pub const STATUS_NO_SUCH_LOGON_SESSION: super::super::Foundation::NTSTATUS = -1073741729i32;
1051 #[cfg(feature = "Win32_Foundation")]
1052 pub const STATUS_NO_SUCH_USER: super::super::Foundation::NTSTATUS = -1073741724i32;
1053 #[cfg(feature = "Win32_Foundation")]
1054 pub const STATUS_PASSWORD_EXPIRED: super::super::Foundation::NTSTATUS = -1073741711i32;
1055 #[cfg(feature = "Win32_Foundation")]
1056 pub const STATUS_PASSWORD_MUST_CHANGE: super::super::Foundation::NTSTATUS = -1073741276i32;
1057 #[cfg(feature = "Win32_Foundation")]
1058 pub const STATUS_WRONG_PASSWORD: super::super::Foundation::NTSTATUS = -1073741718i32;
1059 #[repr(C)]
1060 pub struct SecHandle {
1061     pub dwLower: usize,
1062     pub dwUpper: usize,
1063 }
1064 impl ::core::marker::Copy for SecHandle {}
1065 impl ::core::clone::Clone for SecHandle {
clone(&self) -> Self1066     fn clone(&self) -> Self {
1067         *self
1068     }
1069 }
1070 #[repr(C)]
1071 pub struct SecPkgContext_ClientCreds {
1072     pub AuthBufferLen: u32,
1073     pub AuthBuffer: *mut u8,
1074 }
1075 impl ::core::marker::Copy for SecPkgContext_ClientCreds {}
1076 impl ::core::clone::Clone for SecPkgContext_ClientCreds {
clone(&self) -> Self1077     fn clone(&self) -> Self {
1078         *self
1079     }
1080 }
1081 #[repr(C)]
1082 #[cfg(feature = "Win32_Foundation")]
1083 pub struct USERNAME_TARGET_CREDENTIAL_INFO {
1084     pub UserName: super::super::Foundation::PWSTR,
1085 }
1086 #[cfg(feature = "Win32_Foundation")]
1087 impl ::core::marker::Copy for USERNAME_TARGET_CREDENTIAL_INFO {}
1088 #[cfg(feature = "Win32_Foundation")]
1089 impl ::core::clone::Clone for USERNAME_TARGET_CREDENTIAL_INFO {
clone(&self) -> Self1090     fn clone(&self) -> Self {
1091         *self
1092     }
1093 }
1094