1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] 2 #[cfg(feature = "Win32_Security_AppLocker")] 3 pub mod AppLocker; 4 #[cfg(feature = "Win32_Security_Authentication")] 5 pub mod Authentication; 6 #[cfg(feature = "Win32_Security_Authorization")] 7 pub mod Authorization; 8 #[cfg(feature = "Win32_Security_ConfigurationSnapin")] 9 pub mod ConfigurationSnapin; 10 #[cfg(feature = "Win32_Security_Credentials")] 11 pub mod Credentials; 12 #[cfg(feature = "Win32_Security_Cryptography")] 13 pub mod Cryptography; 14 #[cfg(feature = "Win32_Security_DiagnosticDataQuery")] 15 pub mod DiagnosticDataQuery; 16 #[cfg(feature = "Win32_Security_DirectoryServices")] 17 pub mod DirectoryServices; 18 #[cfg(feature = "Win32_Security_EnterpriseData")] 19 pub mod EnterpriseData; 20 #[cfg(feature = "Win32_Security_ExtensibleAuthenticationProtocol")] 21 pub mod ExtensibleAuthenticationProtocol; 22 #[cfg(feature = "Win32_Security_Isolation")] 23 pub mod Isolation; 24 #[cfg(feature = "Win32_Security_LicenseProtection")] 25 pub mod LicenseProtection; 26 #[cfg(feature = "Win32_Security_NetworkAccessProtection")] 27 pub mod NetworkAccessProtection; 28 #[cfg(feature = "Win32_Security_Tpm")] 29 pub mod Tpm; 30 #[cfg(feature = "Win32_Security_WinTrust")] 31 pub mod WinTrust; 32 #[cfg(feature = "Win32_Security_WinWlx")] 33 pub mod WinWlx; 34 #[link(name = "windows")] 35 extern "system" { 36 #[cfg(feature = "Win32_Foundation")] AccessCheck(psecuritydescriptor: *const SECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: *mut PRIVILEGE_SET, privilegesetlength: *mut u32, grantedaccess: *mut u32, accessstatus: *mut i32) -> super::Foundation::BOOL37 pub fn AccessCheck(psecuritydescriptor: *const SECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: *mut PRIVILEGE_SET, privilegesetlength: *mut u32, grantedaccess: *mut u32, accessstatus: *mut i32) -> super::Foundation::BOOL; 38 #[cfg(feature = "Win32_Foundation")] AccessCheckAndAuditAlarmA(subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PSTR, objectname: super::Foundation::PSTR, securitydescriptor: *const SECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccess: *mut u32, accessstatus: *mut i32, pfgenerateonclose: *mut i32) -> super::Foundation::BOOL39 pub fn AccessCheckAndAuditAlarmA(subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PSTR, objectname: super::Foundation::PSTR, securitydescriptor: *const SECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccess: *mut u32, accessstatus: *mut i32, pfgenerateonclose: *mut i32) -> super::Foundation::BOOL; 40 #[cfg(feature = "Win32_Foundation")] AccessCheckAndAuditAlarmW(subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PWSTR, objectname: super::Foundation::PWSTR, securitydescriptor: *const SECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccess: *mut u32, accessstatus: *mut i32, pfgenerateonclose: *mut i32) -> super::Foundation::BOOL41 pub fn AccessCheckAndAuditAlarmW(subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PWSTR, objectname: super::Foundation::PWSTR, securitydescriptor: *const SECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccess: *mut u32, accessstatus: *mut i32, pfgenerateonclose: *mut i32) -> super::Foundation::BOOL; 42 #[cfg(feature = "Win32_Foundation")] AccessCheckByType(psecuritydescriptor: *const SECURITY_DESCRIPTOR, principalselfsid: super::Foundation::PSID, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, objecttypelist: *mut OBJECT_TYPE_LIST, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: *mut PRIVILEGE_SET, privilegesetlength: *mut u32, grantedaccess: *mut u32, accessstatus: *mut i32) -> super::Foundation::BOOL43 pub fn AccessCheckByType(psecuritydescriptor: *const SECURITY_DESCRIPTOR, principalselfsid: super::Foundation::PSID, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, objecttypelist: *mut OBJECT_TYPE_LIST, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: *mut PRIVILEGE_SET, privilegesetlength: *mut u32, grantedaccess: *mut u32, accessstatus: *mut i32) -> super::Foundation::BOOL; 44 #[cfg(feature = "Win32_Foundation")] AccessCheckByTypeAndAuditAlarmA( subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PSTR, objectname: super::Foundation::PSTR, securitydescriptor: *const SECURITY_DESCRIPTOR, principalselfsid: super::Foundation::PSID, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: *mut OBJECT_TYPE_LIST, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccess: *mut u32, accessstatus: *mut i32, pfgenerateonclose: *mut i32, ) -> super::Foundation::BOOL45 pub fn AccessCheckByTypeAndAuditAlarmA( 46 subsystemname: super::Foundation::PSTR, 47 handleid: *const ::core::ffi::c_void, 48 objecttypename: super::Foundation::PSTR, 49 objectname: super::Foundation::PSTR, 50 securitydescriptor: *const SECURITY_DESCRIPTOR, 51 principalselfsid: super::Foundation::PSID, 52 desiredaccess: u32, 53 audittype: AUDIT_EVENT_TYPE, 54 flags: u32, 55 objecttypelist: *mut OBJECT_TYPE_LIST, 56 objecttypelistlength: u32, 57 genericmapping: *const GENERIC_MAPPING, 58 objectcreation: super::Foundation::BOOL, 59 grantedaccess: *mut u32, 60 accessstatus: *mut i32, 61 pfgenerateonclose: *mut i32, 62 ) -> super::Foundation::BOOL; 63 #[cfg(feature = "Win32_Foundation")] AccessCheckByTypeAndAuditAlarmW( subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PWSTR, objectname: super::Foundation::PWSTR, securitydescriptor: *const SECURITY_DESCRIPTOR, principalselfsid: super::Foundation::PSID, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: *mut OBJECT_TYPE_LIST, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccess: *mut u32, accessstatus: *mut i32, pfgenerateonclose: *mut i32, ) -> super::Foundation::BOOL64 pub fn AccessCheckByTypeAndAuditAlarmW( 65 subsystemname: super::Foundation::PWSTR, 66 handleid: *const ::core::ffi::c_void, 67 objecttypename: super::Foundation::PWSTR, 68 objectname: super::Foundation::PWSTR, 69 securitydescriptor: *const SECURITY_DESCRIPTOR, 70 principalselfsid: super::Foundation::PSID, 71 desiredaccess: u32, 72 audittype: AUDIT_EVENT_TYPE, 73 flags: u32, 74 objecttypelist: *mut OBJECT_TYPE_LIST, 75 objecttypelistlength: u32, 76 genericmapping: *const GENERIC_MAPPING, 77 objectcreation: super::Foundation::BOOL, 78 grantedaccess: *mut u32, 79 accessstatus: *mut i32, 80 pfgenerateonclose: *mut i32, 81 ) -> super::Foundation::BOOL; 82 #[cfg(feature = "Win32_Foundation")] AccessCheckByTypeResultList(psecuritydescriptor: *const SECURITY_DESCRIPTOR, principalselfsid: super::Foundation::PSID, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, objecttypelist: *mut OBJECT_TYPE_LIST, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: *mut PRIVILEGE_SET, privilegesetlength: *mut u32, grantedaccesslist: *mut u32, accessstatuslist: *mut u32) -> super::Foundation::BOOL83 pub fn AccessCheckByTypeResultList(psecuritydescriptor: *const SECURITY_DESCRIPTOR, principalselfsid: super::Foundation::PSID, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, objecttypelist: *mut OBJECT_TYPE_LIST, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, privilegeset: *mut PRIVILEGE_SET, privilegesetlength: *mut u32, grantedaccesslist: *mut u32, accessstatuslist: *mut u32) -> super::Foundation::BOOL; 84 #[cfg(feature = "Win32_Foundation")] AccessCheckByTypeResultListAndAuditAlarmA( subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PSTR, objectname: super::Foundation::PSTR, securitydescriptor: *const SECURITY_DESCRIPTOR, principalselfsid: super::Foundation::PSID, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: *mut OBJECT_TYPE_LIST, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccess: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut i32, ) -> super::Foundation::BOOL85 pub fn AccessCheckByTypeResultListAndAuditAlarmA( 86 subsystemname: super::Foundation::PSTR, 87 handleid: *const ::core::ffi::c_void, 88 objecttypename: super::Foundation::PSTR, 89 objectname: super::Foundation::PSTR, 90 securitydescriptor: *const SECURITY_DESCRIPTOR, 91 principalselfsid: super::Foundation::PSID, 92 desiredaccess: u32, 93 audittype: AUDIT_EVENT_TYPE, 94 flags: u32, 95 objecttypelist: *mut OBJECT_TYPE_LIST, 96 objecttypelistlength: u32, 97 genericmapping: *const GENERIC_MAPPING, 98 objectcreation: super::Foundation::BOOL, 99 grantedaccess: *mut u32, 100 accessstatuslist: *mut u32, 101 pfgenerateonclose: *mut i32, 102 ) -> super::Foundation::BOOL; 103 #[cfg(feature = "Win32_Foundation")] AccessCheckByTypeResultListAndAuditAlarmByHandleA( subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, clienttoken: super::Foundation::HANDLE, objecttypename: super::Foundation::PSTR, objectname: super::Foundation::PSTR, securitydescriptor: *const SECURITY_DESCRIPTOR, principalselfsid: super::Foundation::PSID, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: *mut OBJECT_TYPE_LIST, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccess: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut i32, ) -> super::Foundation::BOOL104 pub fn AccessCheckByTypeResultListAndAuditAlarmByHandleA( 105 subsystemname: super::Foundation::PSTR, 106 handleid: *const ::core::ffi::c_void, 107 clienttoken: super::Foundation::HANDLE, 108 objecttypename: super::Foundation::PSTR, 109 objectname: super::Foundation::PSTR, 110 securitydescriptor: *const SECURITY_DESCRIPTOR, 111 principalselfsid: super::Foundation::PSID, 112 desiredaccess: u32, 113 audittype: AUDIT_EVENT_TYPE, 114 flags: u32, 115 objecttypelist: *mut OBJECT_TYPE_LIST, 116 objecttypelistlength: u32, 117 genericmapping: *const GENERIC_MAPPING, 118 objectcreation: super::Foundation::BOOL, 119 grantedaccess: *mut u32, 120 accessstatuslist: *mut u32, 121 pfgenerateonclose: *mut i32, 122 ) -> super::Foundation::BOOL; 123 #[cfg(feature = "Win32_Foundation")] AccessCheckByTypeResultListAndAuditAlarmByHandleW( subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, clienttoken: super::Foundation::HANDLE, objecttypename: super::Foundation::PWSTR, objectname: super::Foundation::PWSTR, securitydescriptor: *const SECURITY_DESCRIPTOR, principalselfsid: super::Foundation::PSID, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: *mut OBJECT_TYPE_LIST, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccesslist: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut i32, ) -> super::Foundation::BOOL124 pub fn AccessCheckByTypeResultListAndAuditAlarmByHandleW( 125 subsystemname: super::Foundation::PWSTR, 126 handleid: *const ::core::ffi::c_void, 127 clienttoken: super::Foundation::HANDLE, 128 objecttypename: super::Foundation::PWSTR, 129 objectname: super::Foundation::PWSTR, 130 securitydescriptor: *const SECURITY_DESCRIPTOR, 131 principalselfsid: super::Foundation::PSID, 132 desiredaccess: u32, 133 audittype: AUDIT_EVENT_TYPE, 134 flags: u32, 135 objecttypelist: *mut OBJECT_TYPE_LIST, 136 objecttypelistlength: u32, 137 genericmapping: *const GENERIC_MAPPING, 138 objectcreation: super::Foundation::BOOL, 139 grantedaccesslist: *mut u32, 140 accessstatuslist: *mut u32, 141 pfgenerateonclose: *mut i32, 142 ) -> super::Foundation::BOOL; 143 #[cfg(feature = "Win32_Foundation")] AccessCheckByTypeResultListAndAuditAlarmW( subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PWSTR, objectname: super::Foundation::PWSTR, securitydescriptor: *const SECURITY_DESCRIPTOR, principalselfsid: super::Foundation::PSID, desiredaccess: u32, audittype: AUDIT_EVENT_TYPE, flags: u32, objecttypelist: *mut OBJECT_TYPE_LIST, objecttypelistlength: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccesslist: *mut u32, accessstatuslist: *mut u32, pfgenerateonclose: *mut i32, ) -> super::Foundation::BOOL144 pub fn AccessCheckByTypeResultListAndAuditAlarmW( 145 subsystemname: super::Foundation::PWSTR, 146 handleid: *const ::core::ffi::c_void, 147 objecttypename: super::Foundation::PWSTR, 148 objectname: super::Foundation::PWSTR, 149 securitydescriptor: *const SECURITY_DESCRIPTOR, 150 principalselfsid: super::Foundation::PSID, 151 desiredaccess: u32, 152 audittype: AUDIT_EVENT_TYPE, 153 flags: u32, 154 objecttypelist: *mut OBJECT_TYPE_LIST, 155 objecttypelistlength: u32, 156 genericmapping: *const GENERIC_MAPPING, 157 objectcreation: super::Foundation::BOOL, 158 grantedaccesslist: *mut u32, 159 accessstatuslist: *mut u32, 160 pfgenerateonclose: *mut i32, 161 ) -> super::Foundation::BOOL; 162 #[cfg(feature = "Win32_Foundation")] AddAccessAllowedAce(pacl: *mut ACL, dwacerevision: u32, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL163 pub fn AddAccessAllowedAce(pacl: *mut ACL, dwacerevision: u32, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL; 164 #[cfg(feature = "Win32_Foundation")] AddAccessAllowedAceEx(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL165 pub fn AddAccessAllowedAceEx(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL; 166 #[cfg(feature = "Win32_Foundation")] AddAccessAllowedObjectAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: *const ::windows_sys::core::GUID, inheritedobjecttypeguid: *const ::windows_sys::core::GUID, psid: super::Foundation::PSID) -> super::Foundation::BOOL167 pub fn AddAccessAllowedObjectAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: *const ::windows_sys::core::GUID, inheritedobjecttypeguid: *const ::windows_sys::core::GUID, psid: super::Foundation::PSID) -> super::Foundation::BOOL; 168 #[cfg(feature = "Win32_Foundation")] AddAccessDeniedAce(pacl: *mut ACL, dwacerevision: u32, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL169 pub fn AddAccessDeniedAce(pacl: *mut ACL, dwacerevision: u32, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL; 170 #[cfg(feature = "Win32_Foundation")] AddAccessDeniedAceEx(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL171 pub fn AddAccessDeniedAceEx(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL; 172 #[cfg(feature = "Win32_Foundation")] AddAccessDeniedObjectAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: *const ::windows_sys::core::GUID, inheritedobjecttypeguid: *const ::windows_sys::core::GUID, psid: super::Foundation::PSID) -> super::Foundation::BOOL173 pub fn AddAccessDeniedObjectAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: *const ::windows_sys::core::GUID, inheritedobjecttypeguid: *const ::windows_sys::core::GUID, psid: super::Foundation::PSID) -> super::Foundation::BOOL; 174 #[cfg(feature = "Win32_Foundation")] AddAce(pacl: *mut ACL, dwacerevision: u32, dwstartingaceindex: u32, pacelist: *const ::core::ffi::c_void, nacelistlength: u32) -> super::Foundation::BOOL175 pub fn AddAce(pacl: *mut ACL, dwacerevision: u32, dwstartingaceindex: u32, pacelist: *const ::core::ffi::c_void, nacelistlength: u32) -> super::Foundation::BOOL; 176 #[cfg(feature = "Win32_Foundation")] AddAuditAccessAce(pacl: *mut ACL, dwacerevision: u32, dwaccessmask: u32, psid: super::Foundation::PSID, bauditsuccess: super::Foundation::BOOL, bauditfailure: super::Foundation::BOOL) -> super::Foundation::BOOL177 pub fn AddAuditAccessAce(pacl: *mut ACL, dwacerevision: u32, dwaccessmask: u32, psid: super::Foundation::PSID, bauditsuccess: super::Foundation::BOOL, bauditfailure: super::Foundation::BOOL) -> super::Foundation::BOOL; 178 #[cfg(feature = "Win32_Foundation")] AddAuditAccessAceEx(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, dwaccessmask: u32, psid: super::Foundation::PSID, bauditsuccess: super::Foundation::BOOL, bauditfailure: super::Foundation::BOOL) -> super::Foundation::BOOL179 pub fn AddAuditAccessAceEx(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, dwaccessmask: u32, psid: super::Foundation::PSID, bauditsuccess: super::Foundation::BOOL, bauditfailure: super::Foundation::BOOL) -> super::Foundation::BOOL; 180 #[cfg(feature = "Win32_Foundation")] AddAuditAccessObjectAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: *const ::windows_sys::core::GUID, inheritedobjecttypeguid: *const ::windows_sys::core::GUID, psid: super::Foundation::PSID, bauditsuccess: super::Foundation::BOOL, bauditfailure: super::Foundation::BOOL) -> super::Foundation::BOOL181 pub fn AddAuditAccessObjectAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, objecttypeguid: *const ::windows_sys::core::GUID, inheritedobjecttypeguid: *const ::windows_sys::core::GUID, psid: super::Foundation::PSID, bauditsuccess: super::Foundation::BOOL, bauditfailure: super::Foundation::BOOL) -> super::Foundation::BOOL; 182 #[cfg(feature = "Win32_Foundation")] AddConditionalAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, acetype: u8, accessmask: u32, psid: super::Foundation::PSID, conditionstr: super::Foundation::PWSTR, returnlength: *mut u32) -> super::Foundation::BOOL183 pub fn AddConditionalAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, acetype: u8, accessmask: u32, psid: super::Foundation::PSID, conditionstr: super::Foundation::PWSTR, returnlength: *mut u32) -> super::Foundation::BOOL; 184 #[cfg(feature = "Win32_Foundation")] AddMandatoryAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, mandatorypolicy: u32, plabelsid: super::Foundation::PSID) -> super::Foundation::BOOL185 pub fn AddMandatoryAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, mandatorypolicy: u32, plabelsid: super::Foundation::PSID) -> super::Foundation::BOOL; 186 #[cfg(feature = "Win32_Foundation")] AddResourceAttributeAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID, pattributeinfo: *const CLAIM_SECURITY_ATTRIBUTES_INFORMATION, preturnlength: *mut u32) -> super::Foundation::BOOL187 pub fn AddResourceAttributeAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID, pattributeinfo: *const CLAIM_SECURITY_ATTRIBUTES_INFORMATION, preturnlength: *mut u32) -> super::Foundation::BOOL; 188 #[cfg(feature = "Win32_Foundation")] AddScopedPolicyIDAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL189 pub fn AddScopedPolicyIDAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL; 190 #[cfg(feature = "Win32_Foundation")] AdjustTokenGroups(tokenhandle: super::Foundation::HANDLE, resettodefault: super::Foundation::BOOL, newstate: *const TOKEN_GROUPS, bufferlength: u32, previousstate: *mut TOKEN_GROUPS, returnlength: *mut u32) -> super::Foundation::BOOL191 pub fn AdjustTokenGroups(tokenhandle: super::Foundation::HANDLE, resettodefault: super::Foundation::BOOL, newstate: *const TOKEN_GROUPS, bufferlength: u32, previousstate: *mut TOKEN_GROUPS, returnlength: *mut u32) -> super::Foundation::BOOL; 192 #[cfg(feature = "Win32_Foundation")] AdjustTokenPrivileges(tokenhandle: super::Foundation::HANDLE, disableallprivileges: super::Foundation::BOOL, newstate: *const TOKEN_PRIVILEGES, bufferlength: u32, previousstate: *mut TOKEN_PRIVILEGES, returnlength: *mut u32) -> super::Foundation::BOOL193 pub fn AdjustTokenPrivileges(tokenhandle: super::Foundation::HANDLE, disableallprivileges: super::Foundation::BOOL, newstate: *const TOKEN_PRIVILEGES, bufferlength: u32, previousstate: *mut TOKEN_PRIVILEGES, returnlength: *mut u32) -> super::Foundation::BOOL; 194 #[cfg(feature = "Win32_Foundation")] AllocateAndInitializeSid(pidentifierauthority: *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount: u8, nsubauthority0: u32, nsubauthority1: u32, nsubauthority2: u32, nsubauthority3: u32, nsubauthority4: u32, nsubauthority5: u32, nsubauthority6: u32, nsubauthority7: u32, psid: *mut super::Foundation::PSID) -> super::Foundation::BOOL195 pub fn AllocateAndInitializeSid(pidentifierauthority: *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount: u8, nsubauthority0: u32, nsubauthority1: u32, nsubauthority2: u32, nsubauthority3: u32, nsubauthority4: u32, nsubauthority5: u32, nsubauthority6: u32, nsubauthority7: u32, psid: *mut super::Foundation::PSID) -> super::Foundation::BOOL; 196 #[cfg(feature = "Win32_Foundation")] AllocateLocallyUniqueId(luid: *mut super::Foundation::LUID) -> super::Foundation::BOOL197 pub fn AllocateLocallyUniqueId(luid: *mut super::Foundation::LUID) -> super::Foundation::BOOL; 198 #[cfg(feature = "Win32_Foundation")] AreAllAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> super::Foundation::BOOL199 pub fn AreAllAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> super::Foundation::BOOL; 200 #[cfg(feature = "Win32_Foundation")] AreAnyAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> super::Foundation::BOOL201 pub fn AreAnyAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> super::Foundation::BOOL; 202 #[cfg(feature = "Win32_Foundation")] CheckTokenCapability(tokenhandle: super::Foundation::HANDLE, capabilitysidtocheck: super::Foundation::PSID, hascapability: *mut super::Foundation::BOOL) -> super::Foundation::BOOL203 pub fn CheckTokenCapability(tokenhandle: super::Foundation::HANDLE, capabilitysidtocheck: super::Foundation::PSID, hascapability: *mut super::Foundation::BOOL) -> super::Foundation::BOOL; 204 #[cfg(feature = "Win32_Foundation")] CheckTokenMembership(tokenhandle: super::Foundation::HANDLE, sidtocheck: super::Foundation::PSID, ismember: *mut super::Foundation::BOOL) -> super::Foundation::BOOL205 pub fn CheckTokenMembership(tokenhandle: super::Foundation::HANDLE, sidtocheck: super::Foundation::PSID, ismember: *mut super::Foundation::BOOL) -> super::Foundation::BOOL; 206 #[cfg(feature = "Win32_Foundation")] CheckTokenMembershipEx(tokenhandle: super::Foundation::HANDLE, sidtocheck: super::Foundation::PSID, flags: u32, ismember: *mut super::Foundation::BOOL) -> super::Foundation::BOOL207 pub fn CheckTokenMembershipEx(tokenhandle: super::Foundation::HANDLE, sidtocheck: super::Foundation::PSID, flags: u32, ismember: *mut super::Foundation::BOOL) -> super::Foundation::BOOL; 208 #[cfg(feature = "Win32_Foundation")] ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor: *const SECURITY_DESCRIPTOR, currentsecuritydescriptor: *const SECURITY_DESCRIPTOR, newsecuritydescriptor: *mut *mut SECURITY_DESCRIPTOR, objecttype: *const ::windows_sys::core::GUID, isdirectoryobject: super::Foundation::BOOLEAN, genericmapping: *const GENERIC_MAPPING) -> super::Foundation::BOOL209 pub fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor: *const SECURITY_DESCRIPTOR, currentsecuritydescriptor: *const SECURITY_DESCRIPTOR, newsecuritydescriptor: *mut *mut SECURITY_DESCRIPTOR, objecttype: *const ::windows_sys::core::GUID, isdirectoryobject: super::Foundation::BOOLEAN, genericmapping: *const GENERIC_MAPPING) -> super::Foundation::BOOL; 210 #[cfg(feature = "Win32_Foundation")] CopySid(ndestinationsidlength: u32, pdestinationsid: super::Foundation::PSID, psourcesid: super::Foundation::PSID) -> super::Foundation::BOOL211 pub fn CopySid(ndestinationsidlength: u32, pdestinationsid: super::Foundation::PSID, psourcesid: super::Foundation::PSID) -> super::Foundation::BOOL; 212 #[cfg(feature = "Win32_Foundation")] CreatePrivateObjectSecurity(parentdescriptor: *const SECURITY_DESCRIPTOR, creatordescriptor: *const SECURITY_DESCRIPTOR, newdescriptor: *mut *mut SECURITY_DESCRIPTOR, isdirectoryobject: super::Foundation::BOOL, token: super::Foundation::HANDLE, genericmapping: *const GENERIC_MAPPING) -> super::Foundation::BOOL213 pub fn CreatePrivateObjectSecurity(parentdescriptor: *const SECURITY_DESCRIPTOR, creatordescriptor: *const SECURITY_DESCRIPTOR, newdescriptor: *mut *mut SECURITY_DESCRIPTOR, isdirectoryobject: super::Foundation::BOOL, token: super::Foundation::HANDLE, genericmapping: *const GENERIC_MAPPING) -> super::Foundation::BOOL; 214 #[cfg(feature = "Win32_Foundation")] CreatePrivateObjectSecurityEx(parentdescriptor: *const SECURITY_DESCRIPTOR, creatordescriptor: *const SECURITY_DESCRIPTOR, newdescriptor: *mut *mut SECURITY_DESCRIPTOR, objecttype: *const ::windows_sys::core::GUID, iscontainerobject: super::Foundation::BOOL, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, token: super::Foundation::HANDLE, genericmapping: *const GENERIC_MAPPING) -> super::Foundation::BOOL215 pub fn CreatePrivateObjectSecurityEx(parentdescriptor: *const SECURITY_DESCRIPTOR, creatordescriptor: *const SECURITY_DESCRIPTOR, newdescriptor: *mut *mut SECURITY_DESCRIPTOR, objecttype: *const ::windows_sys::core::GUID, iscontainerobject: super::Foundation::BOOL, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, token: super::Foundation::HANDLE, genericmapping: *const GENERIC_MAPPING) -> super::Foundation::BOOL; 216 #[cfg(feature = "Win32_Foundation")] CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor: *const SECURITY_DESCRIPTOR, creatordescriptor: *const SECURITY_DESCRIPTOR, newdescriptor: *mut *mut SECURITY_DESCRIPTOR, objecttypes: *const *const ::windows_sys::core::GUID, guidcount: u32, iscontainerobject: super::Foundation::BOOL, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, token: super::Foundation::HANDLE, genericmapping: *const GENERIC_MAPPING) -> super::Foundation::BOOL217 pub fn CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor: *const SECURITY_DESCRIPTOR, creatordescriptor: *const SECURITY_DESCRIPTOR, newdescriptor: *mut *mut SECURITY_DESCRIPTOR, objecttypes: *const *const ::windows_sys::core::GUID, guidcount: u32, iscontainerobject: super::Foundation::BOOL, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, token: super::Foundation::HANDLE, genericmapping: *const GENERIC_MAPPING) -> super::Foundation::BOOL; 218 #[cfg(feature = "Win32_Foundation")] CreateRestrictedToken(existingtokenhandle: super::Foundation::HANDLE, flags: CREATE_RESTRICTED_TOKEN_FLAGS, disablesidcount: u32, sidstodisable: *const SID_AND_ATTRIBUTES, deleteprivilegecount: u32, privilegestodelete: *const LUID_AND_ATTRIBUTES, restrictedsidcount: u32, sidstorestrict: *const SID_AND_ATTRIBUTES, newtokenhandle: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL219 pub fn CreateRestrictedToken(existingtokenhandle: super::Foundation::HANDLE, flags: CREATE_RESTRICTED_TOKEN_FLAGS, disablesidcount: u32, sidstodisable: *const SID_AND_ATTRIBUTES, deleteprivilegecount: u32, privilegestodelete: *const LUID_AND_ATTRIBUTES, restrictedsidcount: u32, sidstorestrict: *const SID_AND_ATTRIBUTES, newtokenhandle: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL; 220 #[cfg(feature = "Win32_Foundation")] CreateWellKnownSid(wellknownsidtype: WELL_KNOWN_SID_TYPE, domainsid: super::Foundation::PSID, psid: super::Foundation::PSID, cbsid: *mut u32) -> super::Foundation::BOOL221 pub fn CreateWellKnownSid(wellknownsidtype: WELL_KNOWN_SID_TYPE, domainsid: super::Foundation::PSID, psid: super::Foundation::PSID, cbsid: *mut u32) -> super::Foundation::BOOL; 222 #[cfg(feature = "Win32_Foundation")] DeleteAce(pacl: *mut ACL, dwaceindex: u32) -> super::Foundation::BOOL223 pub fn DeleteAce(pacl: *mut ACL, dwaceindex: u32) -> super::Foundation::BOOL; 224 #[cfg(feature = "Win32_Foundation")] DeriveCapabilitySidsFromName(capname: super::Foundation::PWSTR, capabilitygroupsids: *mut *mut super::Foundation::PSID, capabilitygroupsidcount: *mut u32, capabilitysids: *mut *mut super::Foundation::PSID, capabilitysidcount: *mut u32) -> super::Foundation::BOOL225 pub fn DeriveCapabilitySidsFromName(capname: super::Foundation::PWSTR, capabilitygroupsids: *mut *mut super::Foundation::PSID, capabilitygroupsidcount: *mut u32, capabilitysids: *mut *mut super::Foundation::PSID, capabilitysidcount: *mut u32) -> super::Foundation::BOOL; 226 #[cfg(feature = "Win32_Foundation")] DestroyPrivateObjectSecurity(objectdescriptor: *const *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL227 pub fn DestroyPrivateObjectSecurity(objectdescriptor: *const *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL; 228 #[cfg(feature = "Win32_Foundation")] DuplicateToken(existingtokenhandle: super::Foundation::HANDLE, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, duplicatetokenhandle: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL229 pub fn DuplicateToken(existingtokenhandle: super::Foundation::HANDLE, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, duplicatetokenhandle: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL; 230 #[cfg(feature = "Win32_Foundation")] DuplicateTokenEx(hexistingtoken: super::Foundation::HANDLE, dwdesiredaccess: TOKEN_ACCESS_MASK, lptokenattributes: *const SECURITY_ATTRIBUTES, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, tokentype: TOKEN_TYPE, phnewtoken: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL231 pub fn DuplicateTokenEx(hexistingtoken: super::Foundation::HANDLE, dwdesiredaccess: TOKEN_ACCESS_MASK, lptokenattributes: *const SECURITY_ATTRIBUTES, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, tokentype: TOKEN_TYPE, phnewtoken: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL; 232 #[cfg(feature = "Win32_Foundation")] EqualDomainSid(psid1: super::Foundation::PSID, psid2: super::Foundation::PSID, pfequal: *mut super::Foundation::BOOL) -> super::Foundation::BOOL233 pub fn EqualDomainSid(psid1: super::Foundation::PSID, psid2: super::Foundation::PSID, pfequal: *mut super::Foundation::BOOL) -> super::Foundation::BOOL; 234 #[cfg(feature = "Win32_Foundation")] EqualPrefixSid(psid1: super::Foundation::PSID, psid2: super::Foundation::PSID) -> super::Foundation::BOOL235 pub fn EqualPrefixSid(psid1: super::Foundation::PSID, psid2: super::Foundation::PSID) -> super::Foundation::BOOL; 236 #[cfg(feature = "Win32_Foundation")] EqualSid(psid1: super::Foundation::PSID, psid2: super::Foundation::PSID) -> super::Foundation::BOOL237 pub fn EqualSid(psid1: super::Foundation::PSID, psid2: super::Foundation::PSID) -> super::Foundation::BOOL; 238 #[cfg(feature = "Win32_Foundation")] FindFirstFreeAce(pacl: *const ACL, pace: *mut *mut ::core::ffi::c_void) -> super::Foundation::BOOL239 pub fn FindFirstFreeAce(pacl: *const ACL, pace: *mut *mut ::core::ffi::c_void) -> super::Foundation::BOOL; 240 #[cfg(feature = "Win32_Foundation")] FreeSid(psid: super::Foundation::PSID) -> *mut ::core::ffi::c_void241 pub fn FreeSid(psid: super::Foundation::PSID) -> *mut ::core::ffi::c_void; 242 #[cfg(feature = "Win32_Foundation")] GetAce(pacl: *const ACL, dwaceindex: u32, pace: *mut *mut ::core::ffi::c_void) -> super::Foundation::BOOL243 pub fn GetAce(pacl: *const ACL, dwaceindex: u32, pace: *mut *mut ::core::ffi::c_void) -> super::Foundation::BOOL; 244 #[cfg(feature = "Win32_Foundation")] GetAclInformation(pacl: *const ACL, paclinformation: *mut ::core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> super::Foundation::BOOL245 pub fn GetAclInformation(pacl: *const ACL, paclinformation: *mut ::core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> super::Foundation::BOOL; 246 #[cfg(feature = "Win32_Foundation")] GetAppContainerAce(acl: *const ACL, startingaceindex: u32, appcontainerace: *mut *mut ::core::ffi::c_void, appcontaineraceindex: *mut u32) -> super::Foundation::BOOL247 pub fn GetAppContainerAce(acl: *const ACL, startingaceindex: u32, appcontainerace: *mut *mut ::core::ffi::c_void, appcontaineraceindex: *mut u32) -> super::Foundation::BOOL; 248 #[cfg(feature = "Win32_Foundation")] GetCachedSigningLevel(file: super::Foundation::HANDLE, flags: *mut u32, signinglevel: *mut u32, thumbprint: *mut u8, thumbprintsize: *mut u32, thumbprintalgorithm: *mut u32) -> super::Foundation::BOOL249 pub fn GetCachedSigningLevel(file: super::Foundation::HANDLE, flags: *mut u32, signinglevel: *mut u32, thumbprint: *mut u8, thumbprintsize: *mut u32, thumbprintalgorithm: *mut u32) -> super::Foundation::BOOL; 250 #[cfg(feature = "Win32_Foundation")] GetFileSecurityA(lpfilename: super::Foundation::PSTR, requestedinformation: u32, psecuritydescriptor: *mut SECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL251 pub fn GetFileSecurityA(lpfilename: super::Foundation::PSTR, requestedinformation: u32, psecuritydescriptor: *mut SECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL; 252 #[cfg(feature = "Win32_Foundation")] GetFileSecurityW(lpfilename: super::Foundation::PWSTR, requestedinformation: u32, psecuritydescriptor: *mut SECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL253 pub fn GetFileSecurityW(lpfilename: super::Foundation::PWSTR, requestedinformation: u32, psecuritydescriptor: *mut SECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL; 254 #[cfg(feature = "Win32_Foundation")] GetKernelObjectSecurity(handle: super::Foundation::HANDLE, requestedinformation: u32, psecuritydescriptor: *mut SECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL255 pub fn GetKernelObjectSecurity(handle: super::Foundation::HANDLE, requestedinformation: u32, psecuritydescriptor: *mut SECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL; 256 #[cfg(feature = "Win32_Foundation")] GetLengthSid(psid: super::Foundation::PSID) -> u32257 pub fn GetLengthSid(psid: super::Foundation::PSID) -> u32; 258 #[cfg(feature = "Win32_Foundation")] GetPrivateObjectSecurity(objectdescriptor: *const SECURITY_DESCRIPTOR, securityinformation: u32, resultantdescriptor: *mut SECURITY_DESCRIPTOR, descriptorlength: u32, returnlength: *mut u32) -> super::Foundation::BOOL259 pub fn GetPrivateObjectSecurity(objectdescriptor: *const SECURITY_DESCRIPTOR, securityinformation: u32, resultantdescriptor: *mut SECURITY_DESCRIPTOR, descriptorlength: u32, returnlength: *mut u32) -> super::Foundation::BOOL; 260 #[cfg(feature = "Win32_Foundation")] GetSecurityDescriptorControl(psecuritydescriptor: *const SECURITY_DESCRIPTOR, pcontrol: *mut u16, lpdwrevision: *mut u32) -> super::Foundation::BOOL261 pub fn GetSecurityDescriptorControl(psecuritydescriptor: *const SECURITY_DESCRIPTOR, pcontrol: *mut u16, lpdwrevision: *mut u32) -> super::Foundation::BOOL; 262 #[cfg(feature = "Win32_Foundation")] GetSecurityDescriptorDacl(psecuritydescriptor: *const SECURITY_DESCRIPTOR, lpbdaclpresent: *mut i32, pdacl: *mut *mut ACL, lpbdacldefaulted: *mut i32) -> super::Foundation::BOOL263 pub fn GetSecurityDescriptorDacl(psecuritydescriptor: *const SECURITY_DESCRIPTOR, lpbdaclpresent: *mut i32, pdacl: *mut *mut ACL, lpbdacldefaulted: *mut i32) -> super::Foundation::BOOL; 264 #[cfg(feature = "Win32_Foundation")] GetSecurityDescriptorGroup(psecuritydescriptor: *const SECURITY_DESCRIPTOR, pgroup: *mut super::Foundation::PSID, lpbgroupdefaulted: *mut i32) -> super::Foundation::BOOL265 pub fn GetSecurityDescriptorGroup(psecuritydescriptor: *const SECURITY_DESCRIPTOR, pgroup: *mut super::Foundation::PSID, lpbgroupdefaulted: *mut i32) -> super::Foundation::BOOL; 266 #[cfg(feature = "Win32_Foundation")] GetSecurityDescriptorLength(psecuritydescriptor: *const SECURITY_DESCRIPTOR) -> u32267 pub fn GetSecurityDescriptorLength(psecuritydescriptor: *const SECURITY_DESCRIPTOR) -> u32; 268 #[cfg(feature = "Win32_Foundation")] GetSecurityDescriptorOwner(psecuritydescriptor: *const SECURITY_DESCRIPTOR, powner: *mut super::Foundation::PSID, lpbownerdefaulted: *mut i32) -> super::Foundation::BOOL269 pub fn GetSecurityDescriptorOwner(psecuritydescriptor: *const SECURITY_DESCRIPTOR, powner: *mut super::Foundation::PSID, lpbownerdefaulted: *mut i32) -> super::Foundation::BOOL; 270 #[cfg(feature = "Win32_Foundation")] GetSecurityDescriptorRMControl(securitydescriptor: *const SECURITY_DESCRIPTOR, rmcontrol: *mut u8) -> u32271 pub fn GetSecurityDescriptorRMControl(securitydescriptor: *const SECURITY_DESCRIPTOR, rmcontrol: *mut u8) -> u32; 272 #[cfg(feature = "Win32_Foundation")] GetSecurityDescriptorSacl(psecuritydescriptor: *const SECURITY_DESCRIPTOR, lpbsaclpresent: *mut i32, psacl: *mut *mut ACL, lpbsacldefaulted: *mut i32) -> super::Foundation::BOOL273 pub fn GetSecurityDescriptorSacl(psecuritydescriptor: *const SECURITY_DESCRIPTOR, lpbsaclpresent: *mut i32, psacl: *mut *mut ACL, lpbsacldefaulted: *mut i32) -> super::Foundation::BOOL; 274 #[cfg(feature = "Win32_Foundation")] GetSidIdentifierAuthority(psid: super::Foundation::PSID) -> *mut SID_IDENTIFIER_AUTHORITY275 pub fn GetSidIdentifierAuthority(psid: super::Foundation::PSID) -> *mut SID_IDENTIFIER_AUTHORITY; GetSidLengthRequired(nsubauthoritycount: u8) -> u32276 pub fn GetSidLengthRequired(nsubauthoritycount: u8) -> u32; 277 #[cfg(feature = "Win32_Foundation")] GetSidSubAuthority(psid: super::Foundation::PSID, nsubauthority: u32) -> *mut u32278 pub fn GetSidSubAuthority(psid: super::Foundation::PSID, nsubauthority: u32) -> *mut u32; 279 #[cfg(feature = "Win32_Foundation")] GetSidSubAuthorityCount(psid: super::Foundation::PSID) -> *mut u8280 pub fn GetSidSubAuthorityCount(psid: super::Foundation::PSID) -> *mut u8; 281 #[cfg(feature = "Win32_Foundation")] GetTokenInformation(tokenhandle: super::Foundation::HANDLE, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: *mut ::core::ffi::c_void, tokeninformationlength: u32, returnlength: *mut u32) -> super::Foundation::BOOL282 pub fn GetTokenInformation(tokenhandle: super::Foundation::HANDLE, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: *mut ::core::ffi::c_void, tokeninformationlength: u32, returnlength: *mut u32) -> super::Foundation::BOOL; 283 #[cfg(feature = "Win32_Foundation")] GetUserObjectSecurity(hobj: super::Foundation::HANDLE, psirequested: *const u32, psid: *mut SECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL284 pub fn GetUserObjectSecurity(hobj: super::Foundation::HANDLE, psirequested: *const u32, psid: *mut SECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL; 285 #[cfg(feature = "Win32_Foundation")] GetWindowsAccountDomainSid(psid: super::Foundation::PSID, pdomainsid: super::Foundation::PSID, cbdomainsid: *mut u32) -> super::Foundation::BOOL286 pub fn GetWindowsAccountDomainSid(psid: super::Foundation::PSID, pdomainsid: super::Foundation::PSID, cbdomainsid: *mut u32) -> super::Foundation::BOOL; 287 #[cfg(feature = "Win32_Foundation")] ImpersonateAnonymousToken(threadhandle: super::Foundation::HANDLE) -> super::Foundation::BOOL288 pub fn ImpersonateAnonymousToken(threadhandle: super::Foundation::HANDLE) -> super::Foundation::BOOL; 289 #[cfg(feature = "Win32_Foundation")] ImpersonateLoggedOnUser(htoken: super::Foundation::HANDLE) -> super::Foundation::BOOL290 pub fn ImpersonateLoggedOnUser(htoken: super::Foundation::HANDLE) -> super::Foundation::BOOL; 291 #[cfg(feature = "Win32_Foundation")] ImpersonateSelf(impersonationlevel: SECURITY_IMPERSONATION_LEVEL) -> super::Foundation::BOOL292 pub fn ImpersonateSelf(impersonationlevel: SECURITY_IMPERSONATION_LEVEL) -> super::Foundation::BOOL; 293 #[cfg(feature = "Win32_Foundation")] InitializeAcl(pacl: *mut ACL, nacllength: u32, dwaclrevision: u32) -> super::Foundation::BOOL294 pub fn InitializeAcl(pacl: *mut ACL, nacllength: u32, dwaclrevision: u32) -> super::Foundation::BOOL; 295 #[cfg(feature = "Win32_Foundation")] InitializeSecurityDescriptor(psecuritydescriptor: *mut SECURITY_DESCRIPTOR, dwrevision: u32) -> super::Foundation::BOOL296 pub fn InitializeSecurityDescriptor(psecuritydescriptor: *mut SECURITY_DESCRIPTOR, dwrevision: u32) -> super::Foundation::BOOL; 297 #[cfg(feature = "Win32_Foundation")] InitializeSid(sid: super::Foundation::PSID, pidentifierauthority: *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount: u8) -> super::Foundation::BOOL298 pub fn InitializeSid(sid: super::Foundation::PSID, pidentifierauthority: *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount: u8) -> super::Foundation::BOOL; 299 #[cfg(feature = "Win32_Foundation")] IsTokenRestricted(tokenhandle: super::Foundation::HANDLE) -> super::Foundation::BOOL300 pub fn IsTokenRestricted(tokenhandle: super::Foundation::HANDLE) -> super::Foundation::BOOL; 301 #[cfg(feature = "Win32_Foundation")] IsValidAcl(pacl: *const ACL) -> super::Foundation::BOOL302 pub fn IsValidAcl(pacl: *const ACL) -> super::Foundation::BOOL; 303 #[cfg(feature = "Win32_Foundation")] IsValidSecurityDescriptor(psecuritydescriptor: *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL304 pub fn IsValidSecurityDescriptor(psecuritydescriptor: *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL; 305 #[cfg(feature = "Win32_Foundation")] IsValidSid(psid: super::Foundation::PSID) -> super::Foundation::BOOL306 pub fn IsValidSid(psid: super::Foundation::PSID) -> super::Foundation::BOOL; 307 #[cfg(feature = "Win32_Foundation")] IsWellKnownSid(psid: super::Foundation::PSID, wellknownsidtype: WELL_KNOWN_SID_TYPE) -> super::Foundation::BOOL308 pub fn IsWellKnownSid(psid: super::Foundation::PSID, wellknownsidtype: WELL_KNOWN_SID_TYPE) -> super::Foundation::BOOL; 309 #[cfg(feature = "Win32_Foundation")] LogonUserA(lpszusername: super::Foundation::PSTR, lpszdomain: super::Foundation::PSTR, lpszpassword: super::Foundation::PSTR, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL310 pub fn LogonUserA(lpszusername: super::Foundation::PSTR, lpszdomain: super::Foundation::PSTR, lpszpassword: super::Foundation::PSTR, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL; 311 #[cfg(feature = "Win32_Foundation")] LogonUserExA(lpszusername: super::Foundation::PSTR, lpszdomain: super::Foundation::PSTR, lpszpassword: super::Foundation::PSTR, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE, pplogonsid: *mut super::Foundation::PSID, ppprofilebuffer: *mut *mut ::core::ffi::c_void, pdwprofilelength: *mut u32, pquotalimits: *mut QUOTA_LIMITS) -> super::Foundation::BOOL312 pub fn LogonUserExA(lpszusername: super::Foundation::PSTR, lpszdomain: super::Foundation::PSTR, lpszpassword: super::Foundation::PSTR, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE, pplogonsid: *mut super::Foundation::PSID, ppprofilebuffer: *mut *mut ::core::ffi::c_void, pdwprofilelength: *mut u32, pquotalimits: *mut QUOTA_LIMITS) -> super::Foundation::BOOL; 313 #[cfg(feature = "Win32_Foundation")] LogonUserExW(lpszusername: super::Foundation::PWSTR, lpszdomain: super::Foundation::PWSTR, lpszpassword: super::Foundation::PWSTR, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE, pplogonsid: *mut super::Foundation::PSID, ppprofilebuffer: *mut *mut ::core::ffi::c_void, pdwprofilelength: *mut u32, pquotalimits: *mut QUOTA_LIMITS) -> super::Foundation::BOOL314 pub fn LogonUserExW(lpszusername: super::Foundation::PWSTR, lpszdomain: super::Foundation::PWSTR, lpszpassword: super::Foundation::PWSTR, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE, pplogonsid: *mut super::Foundation::PSID, ppprofilebuffer: *mut *mut ::core::ffi::c_void, pdwprofilelength: *mut u32, pquotalimits: *mut QUOTA_LIMITS) -> super::Foundation::BOOL; 315 #[cfg(feature = "Win32_Foundation")] LogonUserW(lpszusername: super::Foundation::PWSTR, lpszdomain: super::Foundation::PWSTR, lpszpassword: super::Foundation::PWSTR, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL316 pub fn LogonUserW(lpszusername: super::Foundation::PWSTR, lpszdomain: super::Foundation::PWSTR, lpszpassword: super::Foundation::PWSTR, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL; 317 #[cfg(feature = "Win32_Foundation")] LookupAccountNameA(lpsystemname: super::Foundation::PSTR, lpaccountname: super::Foundation::PSTR, sid: super::Foundation::PSID, cbsid: *mut u32, referenceddomainname: super::Foundation::PSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL318 pub fn LookupAccountNameA(lpsystemname: super::Foundation::PSTR, lpaccountname: super::Foundation::PSTR, sid: super::Foundation::PSID, cbsid: *mut u32, referenceddomainname: super::Foundation::PSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL; 319 #[cfg(feature = "Win32_Foundation")] LookupAccountNameW(lpsystemname: super::Foundation::PWSTR, lpaccountname: super::Foundation::PWSTR, sid: super::Foundation::PSID, cbsid: *mut u32, referenceddomainname: super::Foundation::PWSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL320 pub fn LookupAccountNameW(lpsystemname: super::Foundation::PWSTR, lpaccountname: super::Foundation::PWSTR, sid: super::Foundation::PSID, cbsid: *mut u32, referenceddomainname: super::Foundation::PWSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL; 321 #[cfg(feature = "Win32_Foundation")] LookupAccountSidA(lpsystemname: super::Foundation::PSTR, sid: super::Foundation::PSID, name: super::Foundation::PSTR, cchname: *mut u32, referenceddomainname: super::Foundation::PSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL322 pub fn LookupAccountSidA(lpsystemname: super::Foundation::PSTR, sid: super::Foundation::PSID, name: super::Foundation::PSTR, cchname: *mut u32, referenceddomainname: super::Foundation::PSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL; 323 #[cfg(feature = "Win32_Foundation")] LookupAccountSidW(lpsystemname: super::Foundation::PWSTR, sid: super::Foundation::PSID, name: super::Foundation::PWSTR, cchname: *mut u32, referenceddomainname: super::Foundation::PWSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL324 pub fn LookupAccountSidW(lpsystemname: super::Foundation::PWSTR, sid: super::Foundation::PSID, name: super::Foundation::PWSTR, cchname: *mut u32, referenceddomainname: super::Foundation::PWSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL; 325 #[cfg(feature = "Win32_Foundation")] LookupPrivilegeDisplayNameA(lpsystemname: super::Foundation::PSTR, lpname: super::Foundation::PSTR, lpdisplayname: super::Foundation::PSTR, cchdisplayname: *mut u32, lplanguageid: *mut u32) -> super::Foundation::BOOL326 pub fn LookupPrivilegeDisplayNameA(lpsystemname: super::Foundation::PSTR, lpname: super::Foundation::PSTR, lpdisplayname: super::Foundation::PSTR, cchdisplayname: *mut u32, lplanguageid: *mut u32) -> super::Foundation::BOOL; 327 #[cfg(feature = "Win32_Foundation")] LookupPrivilegeDisplayNameW(lpsystemname: super::Foundation::PWSTR, lpname: super::Foundation::PWSTR, lpdisplayname: super::Foundation::PWSTR, cchdisplayname: *mut u32, lplanguageid: *mut u32) -> super::Foundation::BOOL328 pub fn LookupPrivilegeDisplayNameW(lpsystemname: super::Foundation::PWSTR, lpname: super::Foundation::PWSTR, lpdisplayname: super::Foundation::PWSTR, cchdisplayname: *mut u32, lplanguageid: *mut u32) -> super::Foundation::BOOL; 329 #[cfg(feature = "Win32_Foundation")] LookupPrivilegeNameA(lpsystemname: super::Foundation::PSTR, lpluid: *const super::Foundation::LUID, lpname: super::Foundation::PSTR, cchname: *mut u32) -> super::Foundation::BOOL330 pub fn LookupPrivilegeNameA(lpsystemname: super::Foundation::PSTR, lpluid: *const super::Foundation::LUID, lpname: super::Foundation::PSTR, cchname: *mut u32) -> super::Foundation::BOOL; 331 #[cfg(feature = "Win32_Foundation")] LookupPrivilegeNameW(lpsystemname: super::Foundation::PWSTR, lpluid: *const super::Foundation::LUID, lpname: super::Foundation::PWSTR, cchname: *mut u32) -> super::Foundation::BOOL332 pub fn LookupPrivilegeNameW(lpsystemname: super::Foundation::PWSTR, lpluid: *const super::Foundation::LUID, lpname: super::Foundation::PWSTR, cchname: *mut u32) -> super::Foundation::BOOL; 333 #[cfg(feature = "Win32_Foundation")] LookupPrivilegeValueA(lpsystemname: super::Foundation::PSTR, lpname: super::Foundation::PSTR, lpluid: *mut super::Foundation::LUID) -> super::Foundation::BOOL334 pub fn LookupPrivilegeValueA(lpsystemname: super::Foundation::PSTR, lpname: super::Foundation::PSTR, lpluid: *mut super::Foundation::LUID) -> super::Foundation::BOOL; 335 #[cfg(feature = "Win32_Foundation")] LookupPrivilegeValueW(lpsystemname: super::Foundation::PWSTR, lpname: super::Foundation::PWSTR, lpluid: *mut super::Foundation::LUID) -> super::Foundation::BOOL336 pub fn LookupPrivilegeValueW(lpsystemname: super::Foundation::PWSTR, lpname: super::Foundation::PWSTR, lpluid: *mut super::Foundation::LUID) -> super::Foundation::BOOL; 337 #[cfg(feature = "Win32_Foundation")] MakeAbsoluteSD(pselfrelativesecuritydescriptor: *const SECURITY_DESCRIPTOR, pabsolutesecuritydescriptor: *mut SECURITY_DESCRIPTOR, lpdwabsolutesecuritydescriptorsize: *mut u32, pdacl: *mut ACL, lpdwdaclsize: *mut u32, psacl: *mut ACL, lpdwsaclsize: *mut u32, powner: super::Foundation::PSID, lpdwownersize: *mut u32, pprimarygroup: super::Foundation::PSID, lpdwprimarygroupsize: *mut u32) -> super::Foundation::BOOL338 pub fn MakeAbsoluteSD(pselfrelativesecuritydescriptor: *const SECURITY_DESCRIPTOR, pabsolutesecuritydescriptor: *mut SECURITY_DESCRIPTOR, lpdwabsolutesecuritydescriptorsize: *mut u32, pdacl: *mut ACL, lpdwdaclsize: *mut u32, psacl: *mut ACL, lpdwsaclsize: *mut u32, powner: super::Foundation::PSID, lpdwownersize: *mut u32, pprimarygroup: super::Foundation::PSID, lpdwprimarygroupsize: *mut u32) -> super::Foundation::BOOL; 339 #[cfg(feature = "Win32_Foundation")] MakeSelfRelativeSD(pabsolutesecuritydescriptor: *const SECURITY_DESCRIPTOR, pselfrelativesecuritydescriptor: *mut SECURITY_DESCRIPTOR, lpdwbufferlength: *mut u32) -> super::Foundation::BOOL340 pub fn MakeSelfRelativeSD(pabsolutesecuritydescriptor: *const SECURITY_DESCRIPTOR, pselfrelativesecuritydescriptor: *mut SECURITY_DESCRIPTOR, lpdwbufferlength: *mut u32) -> super::Foundation::BOOL; MapGenericMask(accessmask: *mut u32, genericmapping: *const GENERIC_MAPPING)341 pub fn MapGenericMask(accessmask: *mut u32, genericmapping: *const GENERIC_MAPPING); 342 #[cfg(feature = "Win32_Foundation")] ObjectCloseAuditAlarmA(subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL343 pub fn ObjectCloseAuditAlarmA(subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL; 344 #[cfg(feature = "Win32_Foundation")] ObjectCloseAuditAlarmW(subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL345 pub fn ObjectCloseAuditAlarmW(subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL; 346 #[cfg(feature = "Win32_Foundation")] ObjectDeleteAuditAlarmA(subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL347 pub fn ObjectDeleteAuditAlarmA(subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL; 348 #[cfg(feature = "Win32_Foundation")] ObjectDeleteAuditAlarmW(subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL349 pub fn ObjectDeleteAuditAlarmW(subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL; 350 #[cfg(feature = "Win32_Foundation")] ObjectOpenAuditAlarmA(subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PSTR, objectname: super::Foundation::PSTR, psecuritydescriptor: *const SECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: *const PRIVILEGE_SET, objectcreation: super::Foundation::BOOL, accessgranted: super::Foundation::BOOL, generateonclose: *mut i32) -> super::Foundation::BOOL351 pub fn ObjectOpenAuditAlarmA(subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PSTR, objectname: super::Foundation::PSTR, psecuritydescriptor: *const SECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: *const PRIVILEGE_SET, objectcreation: super::Foundation::BOOL, accessgranted: super::Foundation::BOOL, generateonclose: *mut i32) -> super::Foundation::BOOL; 352 #[cfg(feature = "Win32_Foundation")] ObjectOpenAuditAlarmW(subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PWSTR, objectname: super::Foundation::PWSTR, psecuritydescriptor: *const SECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: *const PRIVILEGE_SET, objectcreation: super::Foundation::BOOL, accessgranted: super::Foundation::BOOL, generateonclose: *mut i32) -> super::Foundation::BOOL353 pub fn ObjectOpenAuditAlarmW(subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, objecttypename: super::Foundation::PWSTR, objectname: super::Foundation::PWSTR, psecuritydescriptor: *const SECURITY_DESCRIPTOR, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, grantedaccess: u32, privileges: *const PRIVILEGE_SET, objectcreation: super::Foundation::BOOL, accessgranted: super::Foundation::BOOL, generateonclose: *mut i32) -> super::Foundation::BOOL; 354 #[cfg(feature = "Win32_Foundation")] ObjectPrivilegeAuditAlarmA(subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL355 pub fn ObjectPrivilegeAuditAlarmA(subsystemname: super::Foundation::PSTR, handleid: *const ::core::ffi::c_void, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL; 356 #[cfg(feature = "Win32_Foundation")] ObjectPrivilegeAuditAlarmW(subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL357 pub fn ObjectPrivilegeAuditAlarmW(subsystemname: super::Foundation::PWSTR, handleid: *const ::core::ffi::c_void, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL; 358 #[cfg(feature = "Win32_Foundation")] PrivilegeCheck(clienttoken: super::Foundation::HANDLE, requiredprivileges: *mut PRIVILEGE_SET, pfresult: *mut i32) -> super::Foundation::BOOL359 pub fn PrivilegeCheck(clienttoken: super::Foundation::HANDLE, requiredprivileges: *mut PRIVILEGE_SET, pfresult: *mut i32) -> super::Foundation::BOOL; 360 #[cfg(feature = "Win32_Foundation")] PrivilegedServiceAuditAlarmA(subsystemname: super::Foundation::PSTR, servicename: super::Foundation::PSTR, clienttoken: super::Foundation::HANDLE, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL361 pub fn PrivilegedServiceAuditAlarmA(subsystemname: super::Foundation::PSTR, servicename: super::Foundation::PSTR, clienttoken: super::Foundation::HANDLE, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL; 362 #[cfg(feature = "Win32_Foundation")] PrivilegedServiceAuditAlarmW(subsystemname: super::Foundation::PWSTR, servicename: super::Foundation::PWSTR, clienttoken: super::Foundation::HANDLE, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL363 pub fn PrivilegedServiceAuditAlarmW(subsystemname: super::Foundation::PWSTR, servicename: super::Foundation::PWSTR, clienttoken: super::Foundation::HANDLE, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL; QuerySecurityAccessMask(securityinformation: u32, desiredaccess: *mut u32)364 pub fn QuerySecurityAccessMask(securityinformation: u32, desiredaccess: *mut u32); 365 #[cfg(feature = "Win32_Foundation")] RevertToSelf() -> super::Foundation::BOOL366 pub fn RevertToSelf() -> super::Foundation::BOOL; 367 #[cfg(feature = "Win32_Foundation")] RtlConvertSidToUnicodeString(unicodestring: *mut super::Foundation::UNICODE_STRING, sid: super::Foundation::PSID, allocatedestinationstring: super::Foundation::BOOLEAN) -> super::Foundation::NTSTATUS368 pub fn RtlConvertSidToUnicodeString(unicodestring: *mut super::Foundation::UNICODE_STRING, sid: super::Foundation::PSID, allocatedestinationstring: super::Foundation::BOOLEAN) -> super::Foundation::NTSTATUS; 369 #[cfg(feature = "Win32_Foundation")] RtlNormalizeSecurityDescriptor(securitydescriptor: *mut *mut SECURITY_DESCRIPTOR, securitydescriptorlength: u32, newsecuritydescriptor: *mut *mut SECURITY_DESCRIPTOR, newsecuritydescriptorlength: *mut u32, checkonly: super::Foundation::BOOLEAN) -> super::Foundation::BOOLEAN370 pub fn RtlNormalizeSecurityDescriptor(securitydescriptor: *mut *mut SECURITY_DESCRIPTOR, securitydescriptorlength: u32, newsecuritydescriptor: *mut *mut SECURITY_DESCRIPTOR, newsecuritydescriptorlength: *mut u32, checkonly: super::Foundation::BOOLEAN) -> super::Foundation::BOOLEAN; 371 #[cfg(feature = "Win32_Foundation")] SetAclInformation(pacl: *mut ACL, paclinformation: *const ::core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> super::Foundation::BOOL372 pub fn SetAclInformation(pacl: *mut ACL, paclinformation: *const ::core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> super::Foundation::BOOL; 373 #[cfg(feature = "Win32_Foundation")] SetCachedSigningLevel(sourcefiles: *const super::Foundation::HANDLE, sourcefilecount: u32, flags: u32, targetfile: super::Foundation::HANDLE) -> super::Foundation::BOOL374 pub fn SetCachedSigningLevel(sourcefiles: *const super::Foundation::HANDLE, sourcefilecount: u32, flags: u32, targetfile: super::Foundation::HANDLE) -> super::Foundation::BOOL; 375 #[cfg(feature = "Win32_Foundation")] SetFileSecurityA(lpfilename: super::Foundation::PSTR, securityinformation: u32, psecuritydescriptor: *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL376 pub fn SetFileSecurityA(lpfilename: super::Foundation::PSTR, securityinformation: u32, psecuritydescriptor: *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL; 377 #[cfg(feature = "Win32_Foundation")] SetFileSecurityW(lpfilename: super::Foundation::PWSTR, securityinformation: u32, psecuritydescriptor: *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL378 pub fn SetFileSecurityW(lpfilename: super::Foundation::PWSTR, securityinformation: u32, psecuritydescriptor: *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL; 379 #[cfg(feature = "Win32_Foundation")] SetKernelObjectSecurity(handle: super::Foundation::HANDLE, securityinformation: u32, securitydescriptor: *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL380 pub fn SetKernelObjectSecurity(handle: super::Foundation::HANDLE, securityinformation: u32, securitydescriptor: *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL; 381 #[cfg(feature = "Win32_Foundation")] SetPrivateObjectSecurity(securityinformation: u32, modificationdescriptor: *const SECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut *mut SECURITY_DESCRIPTOR, genericmapping: *const GENERIC_MAPPING, token: super::Foundation::HANDLE) -> super::Foundation::BOOL382 pub fn SetPrivateObjectSecurity(securityinformation: u32, modificationdescriptor: *const SECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut *mut SECURITY_DESCRIPTOR, genericmapping: *const GENERIC_MAPPING, token: super::Foundation::HANDLE) -> super::Foundation::BOOL; 383 #[cfg(feature = "Win32_Foundation")] SetPrivateObjectSecurityEx(securityinformation: u32, modificationdescriptor: *const SECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut *mut SECURITY_DESCRIPTOR, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, genericmapping: *const GENERIC_MAPPING, token: super::Foundation::HANDLE) -> super::Foundation::BOOL384 pub fn SetPrivateObjectSecurityEx(securityinformation: u32, modificationdescriptor: *const SECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut *mut SECURITY_DESCRIPTOR, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, genericmapping: *const GENERIC_MAPPING, token: super::Foundation::HANDLE) -> super::Foundation::BOOL; SetSecurityAccessMask(securityinformation: u32, desiredaccess: *mut u32)385 pub fn SetSecurityAccessMask(securityinformation: u32, desiredaccess: *mut u32); 386 #[cfg(feature = "Win32_Foundation")] SetSecurityDescriptorControl(psecuritydescriptor: *const SECURITY_DESCRIPTOR, controlbitsofinterest: u16, controlbitstoset: u16) -> super::Foundation::BOOL387 pub fn SetSecurityDescriptorControl(psecuritydescriptor: *const SECURITY_DESCRIPTOR, controlbitsofinterest: u16, controlbitstoset: u16) -> super::Foundation::BOOL; 388 #[cfg(feature = "Win32_Foundation")] SetSecurityDescriptorDacl(psecuritydescriptor: *mut SECURITY_DESCRIPTOR, bdaclpresent: super::Foundation::BOOL, pdacl: *const ACL, bdacldefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL389 pub fn SetSecurityDescriptorDacl(psecuritydescriptor: *mut SECURITY_DESCRIPTOR, bdaclpresent: super::Foundation::BOOL, pdacl: *const ACL, bdacldefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL; 390 #[cfg(feature = "Win32_Foundation")] SetSecurityDescriptorGroup(psecuritydescriptor: *mut SECURITY_DESCRIPTOR, pgroup: super::Foundation::PSID, bgroupdefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL391 pub fn SetSecurityDescriptorGroup(psecuritydescriptor: *mut SECURITY_DESCRIPTOR, pgroup: super::Foundation::PSID, bgroupdefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL; 392 #[cfg(feature = "Win32_Foundation")] SetSecurityDescriptorOwner(psecuritydescriptor: *mut SECURITY_DESCRIPTOR, powner: super::Foundation::PSID, bownerdefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL393 pub fn SetSecurityDescriptorOwner(psecuritydescriptor: *mut SECURITY_DESCRIPTOR, powner: super::Foundation::PSID, bownerdefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL; 394 #[cfg(feature = "Win32_Foundation")] SetSecurityDescriptorRMControl(securitydescriptor: *mut SECURITY_DESCRIPTOR, rmcontrol: *const u8) -> u32395 pub fn SetSecurityDescriptorRMControl(securitydescriptor: *mut SECURITY_DESCRIPTOR, rmcontrol: *const u8) -> u32; 396 #[cfg(feature = "Win32_Foundation")] SetSecurityDescriptorSacl(psecuritydescriptor: *mut SECURITY_DESCRIPTOR, bsaclpresent: super::Foundation::BOOL, psacl: *const ACL, bsacldefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL397 pub fn SetSecurityDescriptorSacl(psecuritydescriptor: *mut SECURITY_DESCRIPTOR, bsaclpresent: super::Foundation::BOOL, psacl: *const ACL, bsacldefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL; 398 #[cfg(feature = "Win32_Foundation")] SetTokenInformation(tokenhandle: super::Foundation::HANDLE, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: *const ::core::ffi::c_void, tokeninformationlength: u32) -> super::Foundation::BOOL399 pub fn SetTokenInformation(tokenhandle: super::Foundation::HANDLE, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: *const ::core::ffi::c_void, tokeninformationlength: u32) -> super::Foundation::BOOL; 400 #[cfg(feature = "Win32_Foundation")] SetUserObjectSecurity(hobj: super::Foundation::HANDLE, psirequested: *const OBJECT_SECURITY_INFORMATION, psid: *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL401 pub fn SetUserObjectSecurity(hobj: super::Foundation::HANDLE, psirequested: *const OBJECT_SECURITY_INFORMATION, psid: *const SECURITY_DESCRIPTOR) -> super::Foundation::BOOL; 402 } 403 #[repr(C)] 404 pub struct ACCESS_ALLOWED_ACE { 405 pub Header: ACE_HEADER, 406 pub Mask: u32, 407 pub SidStart: u32, 408 } 409 impl ::core::marker::Copy for ACCESS_ALLOWED_ACE {} 410 impl ::core::clone::Clone for ACCESS_ALLOWED_ACE { clone(&self) -> Self411 fn clone(&self) -> Self { 412 *self 413 } 414 } 415 #[repr(C)] 416 pub struct ACCESS_ALLOWED_CALLBACK_ACE { 417 pub Header: ACE_HEADER, 418 pub Mask: u32, 419 pub SidStart: u32, 420 } 421 impl ::core::marker::Copy for ACCESS_ALLOWED_CALLBACK_ACE {} 422 impl ::core::clone::Clone for ACCESS_ALLOWED_CALLBACK_ACE { clone(&self) -> Self423 fn clone(&self) -> Self { 424 *self 425 } 426 } 427 #[repr(C)] 428 pub struct ACCESS_ALLOWED_CALLBACK_OBJECT_ACE { 429 pub Header: ACE_HEADER, 430 pub Mask: u32, 431 pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, 432 pub ObjectType: ::windows_sys::core::GUID, 433 pub InheritedObjectType: ::windows_sys::core::GUID, 434 pub SidStart: u32, 435 } 436 impl ::core::marker::Copy for ACCESS_ALLOWED_CALLBACK_OBJECT_ACE {} 437 impl ::core::clone::Clone for ACCESS_ALLOWED_CALLBACK_OBJECT_ACE { clone(&self) -> Self438 fn clone(&self) -> Self { 439 *self 440 } 441 } 442 #[repr(C)] 443 pub struct ACCESS_ALLOWED_OBJECT_ACE { 444 pub Header: ACE_HEADER, 445 pub Mask: u32, 446 pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, 447 pub ObjectType: ::windows_sys::core::GUID, 448 pub InheritedObjectType: ::windows_sys::core::GUID, 449 pub SidStart: u32, 450 } 451 impl ::core::marker::Copy for ACCESS_ALLOWED_OBJECT_ACE {} 452 impl ::core::clone::Clone for ACCESS_ALLOWED_OBJECT_ACE { clone(&self) -> Self453 fn clone(&self) -> Self { 454 *self 455 } 456 } 457 #[repr(C)] 458 pub struct ACCESS_DENIED_ACE { 459 pub Header: ACE_HEADER, 460 pub Mask: u32, 461 pub SidStart: u32, 462 } 463 impl ::core::marker::Copy for ACCESS_DENIED_ACE {} 464 impl ::core::clone::Clone for ACCESS_DENIED_ACE { clone(&self) -> Self465 fn clone(&self) -> Self { 466 *self 467 } 468 } 469 #[repr(C)] 470 pub struct ACCESS_DENIED_CALLBACK_ACE { 471 pub Header: ACE_HEADER, 472 pub Mask: u32, 473 pub SidStart: u32, 474 } 475 impl ::core::marker::Copy for ACCESS_DENIED_CALLBACK_ACE {} 476 impl ::core::clone::Clone for ACCESS_DENIED_CALLBACK_ACE { clone(&self) -> Self477 fn clone(&self) -> Self { 478 *self 479 } 480 } 481 #[repr(C)] 482 pub struct ACCESS_DENIED_CALLBACK_OBJECT_ACE { 483 pub Header: ACE_HEADER, 484 pub Mask: u32, 485 pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, 486 pub ObjectType: ::windows_sys::core::GUID, 487 pub InheritedObjectType: ::windows_sys::core::GUID, 488 pub SidStart: u32, 489 } 490 impl ::core::marker::Copy for ACCESS_DENIED_CALLBACK_OBJECT_ACE {} 491 impl ::core::clone::Clone for ACCESS_DENIED_CALLBACK_OBJECT_ACE { clone(&self) -> Self492 fn clone(&self) -> Self { 493 *self 494 } 495 } 496 #[repr(C)] 497 pub struct ACCESS_DENIED_OBJECT_ACE { 498 pub Header: ACE_HEADER, 499 pub Mask: u32, 500 pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, 501 pub ObjectType: ::windows_sys::core::GUID, 502 pub InheritedObjectType: ::windows_sys::core::GUID, 503 pub SidStart: u32, 504 } 505 impl ::core::marker::Copy for ACCESS_DENIED_OBJECT_ACE {} 506 impl ::core::clone::Clone for ACCESS_DENIED_OBJECT_ACE { clone(&self) -> Self507 fn clone(&self) -> Self { 508 *self 509 } 510 } 511 #[repr(C)] 512 pub struct ACCESS_REASONS { 513 pub Data: [u32; 32], 514 } 515 impl ::core::marker::Copy for ACCESS_REASONS {} 516 impl ::core::clone::Clone for ACCESS_REASONS { clone(&self) -> Self517 fn clone(&self) -> Self { 518 *self 519 } 520 } 521 pub type ACE_FLAGS = u32; 522 pub const CONTAINER_INHERIT_ACE: ACE_FLAGS = 2u32; 523 pub const FAILED_ACCESS_ACE_FLAG: ACE_FLAGS = 128u32; 524 pub const INHERIT_ONLY_ACE: ACE_FLAGS = 8u32; 525 pub const INHERITED_ACE: ACE_FLAGS = 16u32; 526 pub const NO_PROPAGATE_INHERIT_ACE: ACE_FLAGS = 4u32; 527 pub const OBJECT_INHERIT_ACE: ACE_FLAGS = 1u32; 528 pub const SUCCESSFUL_ACCESS_ACE_FLAG: ACE_FLAGS = 64u32; 529 pub const SUB_CONTAINERS_AND_OBJECTS_INHERIT: ACE_FLAGS = 3u32; 530 pub const SUB_CONTAINERS_ONLY_INHERIT: ACE_FLAGS = 2u32; 531 pub const SUB_OBJECTS_ONLY_INHERIT: ACE_FLAGS = 1u32; 532 pub const INHERIT_NO_PROPAGATE: ACE_FLAGS = 4u32; 533 pub const INHERIT_ONLY: ACE_FLAGS = 8u32; 534 pub const NO_INHERITANCE: ACE_FLAGS = 0u32; 535 pub const INHERIT_ONLY_ACE_: ACE_FLAGS = 8u32; 536 #[repr(C)] 537 pub struct ACE_HEADER { 538 pub AceType: u8, 539 pub AceFlags: u8, 540 pub AceSize: u16, 541 } 542 impl ::core::marker::Copy for ACE_HEADER {} 543 impl ::core::clone::Clone for ACE_HEADER { clone(&self) -> Self544 fn clone(&self) -> Self { 545 *self 546 } 547 } 548 pub type ACE_REVISION = u32; 549 pub const ACL_REVISION: ACE_REVISION = 2u32; 550 pub const ACL_REVISION_DS: ACE_REVISION = 4u32; 551 #[repr(C)] 552 pub struct ACL { 553 pub AclRevision: u8, 554 pub Sbz1: u8, 555 pub AclSize: u16, 556 pub AceCount: u16, 557 pub Sbz2: u16, 558 } 559 impl ::core::marker::Copy for ACL {} 560 impl ::core::clone::Clone for ACL { clone(&self) -> Self561 fn clone(&self) -> Self { 562 *self 563 } 564 } 565 pub type ACL_INFORMATION_CLASS = i32; 566 pub const AclRevisionInformation: ACL_INFORMATION_CLASS = 1i32; 567 pub const AclSizeInformation: ACL_INFORMATION_CLASS = 2i32; 568 #[repr(C)] 569 pub struct ACL_REVISION_INFORMATION { 570 pub AclRevision: u32, 571 } 572 impl ::core::marker::Copy for ACL_REVISION_INFORMATION {} 573 impl ::core::clone::Clone for ACL_REVISION_INFORMATION { clone(&self) -> Self574 fn clone(&self) -> Self { 575 *self 576 } 577 } 578 #[repr(C)] 579 pub struct ACL_SIZE_INFORMATION { 580 pub AceCount: u32, 581 pub AclBytesInUse: u32, 582 pub AclBytesFree: u32, 583 } 584 impl ::core::marker::Copy for ACL_SIZE_INFORMATION {} 585 impl ::core::clone::Clone for ACL_SIZE_INFORMATION { clone(&self) -> Self586 fn clone(&self) -> Self { 587 *self 588 } 589 } 590 pub type AUDIT_EVENT_TYPE = i32; 591 pub const AuditEventObjectAccess: AUDIT_EVENT_TYPE = 0i32; 592 pub const AuditEventDirectoryServiceAccess: AUDIT_EVENT_TYPE = 1i32; 593 #[repr(C)] 594 #[cfg(feature = "Win32_Foundation")] 595 pub struct CLAIM_SECURITY_ATTRIBUTES_INFORMATION { 596 pub Version: u16, 597 pub Reserved: u16, 598 pub AttributeCount: u32, 599 pub Attribute: CLAIM_SECURITY_ATTRIBUTES_INFORMATION_0, 600 } 601 #[cfg(feature = "Win32_Foundation")] 602 impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTES_INFORMATION {} 603 #[cfg(feature = "Win32_Foundation")] 604 impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTES_INFORMATION { clone(&self) -> Self605 fn clone(&self) -> Self { 606 *self 607 } 608 } 609 #[repr(C)] 610 #[cfg(feature = "Win32_Foundation")] 611 pub union CLAIM_SECURITY_ATTRIBUTES_INFORMATION_0 { 612 pub pAttributeV1: *mut CLAIM_SECURITY_ATTRIBUTE_V1, 613 } 614 #[cfg(feature = "Win32_Foundation")] 615 impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTES_INFORMATION_0 {} 616 #[cfg(feature = "Win32_Foundation")] 617 impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTES_INFORMATION_0 { clone(&self) -> Self618 fn clone(&self) -> Self { 619 *self 620 } 621 } 622 pub type CLAIM_SECURITY_ATTRIBUTE_FLAGS = u32; 623 pub const CLAIM_SECURITY_ATTRIBUTE_NON_INHERITABLE: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 1u32; 624 pub const CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 2u32; 625 pub const CLAIM_SECURITY_ATTRIBUTE_USE_FOR_DENY_ONLY: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 4u32; 626 pub const CLAIM_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 8u32; 627 pub const CLAIM_SECURITY_ATTRIBUTE_DISABLED: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 16u32; 628 pub const CLAIM_SECURITY_ATTRIBUTE_MANDATORY: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 32u32; 629 #[repr(C)] 630 #[cfg(feature = "Win32_Foundation")] 631 pub struct CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE { 632 pub Version: u64, 633 pub Name: super::Foundation::PWSTR, 634 } 635 #[cfg(feature = "Win32_Foundation")] 636 impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE {} 637 #[cfg(feature = "Win32_Foundation")] 638 impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE { clone(&self) -> Self639 fn clone(&self) -> Self { 640 *self 641 } 642 } 643 #[repr(C)] 644 pub struct CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE { 645 pub pValue: *mut ::core::ffi::c_void, 646 pub ValueLength: u32, 647 } 648 impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE {} 649 impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE { clone(&self) -> Self650 fn clone(&self) -> Self { 651 *self 652 } 653 } 654 #[repr(C)] 655 pub struct CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 { 656 pub Name: u32, 657 pub ValueType: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE, 658 pub Reserved: u16, 659 pub Flags: CLAIM_SECURITY_ATTRIBUTE_FLAGS, 660 pub ValueCount: u32, 661 pub Values: CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1_0, 662 } 663 impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 {} 664 impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 { clone(&self) -> Self665 fn clone(&self) -> Self { 666 *self 667 } 668 } 669 #[repr(C)] 670 pub union CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1_0 { 671 pub pInt64: [u32; 1], 672 pub pUint64: [u32; 1], 673 pub ppString: [u32; 1], 674 pub pFqbn: [u32; 1], 675 pub pOctetString: [u32; 1], 676 } 677 impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1_0 {} 678 impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1_0 { clone(&self) -> Self679 fn clone(&self) -> Self { 680 *self 681 } 682 } 683 #[repr(C)] 684 #[cfg(feature = "Win32_Foundation")] 685 pub struct CLAIM_SECURITY_ATTRIBUTE_V1 { 686 pub Name: super::Foundation::PWSTR, 687 pub ValueType: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE, 688 pub Reserved: u16, 689 pub Flags: u32, 690 pub ValueCount: u32, 691 pub Values: CLAIM_SECURITY_ATTRIBUTE_V1_0, 692 } 693 #[cfg(feature = "Win32_Foundation")] 694 impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_V1 {} 695 #[cfg(feature = "Win32_Foundation")] 696 impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_V1 { clone(&self) -> Self697 fn clone(&self) -> Self { 698 *self 699 } 700 } 701 #[repr(C)] 702 #[cfg(feature = "Win32_Foundation")] 703 pub union CLAIM_SECURITY_ATTRIBUTE_V1_0 { 704 pub pInt64: *mut i64, 705 pub pUint64: *mut u64, 706 pub ppString: *mut super::Foundation::PWSTR, 707 pub pFqbn: *mut CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE, 708 pub pOctetString: *mut CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE, 709 } 710 #[cfg(feature = "Win32_Foundation")] 711 impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_V1_0 {} 712 #[cfg(feature = "Win32_Foundation")] 713 impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_V1_0 { clone(&self) -> Self714 fn clone(&self) -> Self { 715 *self 716 } 717 } 718 pub type CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = u16; 719 pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_INT64: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 1u16; 720 pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_UINT64: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 2u16; 721 pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_STRING: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 3u16; 722 pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_OCTET_STRING: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 16u16; 723 pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_FQBN: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 4u16; 724 pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_SID: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 5u16; 725 pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_BOOLEAN: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 6u16; 726 pub type CREATE_RESTRICTED_TOKEN_FLAGS = u32; 727 pub const DISABLE_MAX_PRIVILEGE: CREATE_RESTRICTED_TOKEN_FLAGS = 1u32; 728 pub const SANDBOX_INERT: CREATE_RESTRICTED_TOKEN_FLAGS = 2u32; 729 pub const LUA_TOKEN: CREATE_RESTRICTED_TOKEN_FLAGS = 4u32; 730 pub const WRITE_RESTRICTED: CREATE_RESTRICTED_TOKEN_FLAGS = 8u32; 731 pub const CVT_SECONDS: u32 = 1u32; 732 pub type ENUM_PERIOD = i32; 733 pub const ENUM_PERIOD_INVALID: ENUM_PERIOD = -1i32; 734 pub const ENUM_PERIOD_SECONDS: ENUM_PERIOD = 0i32; 735 pub const ENUM_PERIOD_MINUTES: ENUM_PERIOD = 1i32; 736 pub const ENUM_PERIOD_HOURS: ENUM_PERIOD = 2i32; 737 pub const ENUM_PERIOD_DAYS: ENUM_PERIOD = 3i32; 738 pub const ENUM_PERIOD_WEEKS: ENUM_PERIOD = 4i32; 739 pub const ENUM_PERIOD_MONTHS: ENUM_PERIOD = 5i32; 740 pub const ENUM_PERIOD_YEARS: ENUM_PERIOD = 6i32; 741 #[repr(C)] 742 pub struct GENERIC_MAPPING { 743 pub GenericRead: u32, 744 pub GenericWrite: u32, 745 pub GenericExecute: u32, 746 pub GenericAll: u32, 747 } 748 impl ::core::marker::Copy for GENERIC_MAPPING {} 749 impl ::core::clone::Clone for GENERIC_MAPPING { clone(&self) -> Self750 fn clone(&self) -> Self { 751 *self 752 } 753 } 754 pub type HDIAGNOSTIC_DATA_QUERY_SESSION = isize; 755 pub type HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION = isize; 756 pub type HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION = isize; 757 pub type HDIAGNOSTIC_EVENT_TAG_DESCRIPTION = isize; 758 pub type HDIAGNOSTIC_RECORD = isize; 759 pub type HDIAGNOSTIC_REPORT = isize; 760 #[repr(C)] 761 #[cfg(feature = "Win32_Foundation")] 762 pub struct LLFILETIME { 763 pub Anonymous: LLFILETIME_0, 764 } 765 #[cfg(feature = "Win32_Foundation")] 766 impl ::core::marker::Copy for LLFILETIME {} 767 #[cfg(feature = "Win32_Foundation")] 768 impl ::core::clone::Clone for LLFILETIME { clone(&self) -> Self769 fn clone(&self) -> Self { 770 *self 771 } 772 } 773 #[repr(C)] 774 #[cfg(feature = "Win32_Foundation")] 775 pub union LLFILETIME_0 { 776 pub ll: i64, 777 pub ft: super::Foundation::FILETIME, 778 } 779 #[cfg(feature = "Win32_Foundation")] 780 impl ::core::marker::Copy for LLFILETIME_0 {} 781 #[cfg(feature = "Win32_Foundation")] 782 impl ::core::clone::Clone for LLFILETIME_0 { clone(&self) -> Self783 fn clone(&self) -> Self { 784 *self 785 } 786 } 787 pub type LOGON32_LOGON = u32; 788 pub const LOGON32_LOGON_BATCH: LOGON32_LOGON = 4u32; 789 pub const LOGON32_LOGON_INTERACTIVE: LOGON32_LOGON = 2u32; 790 pub const LOGON32_LOGON_NETWORK: LOGON32_LOGON = 3u32; 791 pub const LOGON32_LOGON_NETWORK_CLEARTEXT: LOGON32_LOGON = 8u32; 792 pub const LOGON32_LOGON_NEW_CREDENTIALS: LOGON32_LOGON = 9u32; 793 pub const LOGON32_LOGON_SERVICE: LOGON32_LOGON = 5u32; 794 pub const LOGON32_LOGON_UNLOCK: LOGON32_LOGON = 7u32; 795 pub type LOGON32_PROVIDER = u32; 796 pub const LOGON32_PROVIDER_DEFAULT: LOGON32_PROVIDER = 0u32; 797 pub const LOGON32_PROVIDER_WINNT50: LOGON32_PROVIDER = 3u32; 798 pub const LOGON32_PROVIDER_WINNT40: LOGON32_PROVIDER = 2u32; 799 #[repr(C)] 800 #[cfg(feature = "Win32_Foundation")] 801 pub struct LUID_AND_ATTRIBUTES { 802 pub Luid: super::Foundation::LUID, 803 pub Attributes: TOKEN_PRIVILEGES_ATTRIBUTES, 804 } 805 #[cfg(feature = "Win32_Foundation")] 806 impl ::core::marker::Copy for LUID_AND_ATTRIBUTES {} 807 #[cfg(feature = "Win32_Foundation")] 808 impl ::core::clone::Clone for LUID_AND_ATTRIBUTES { clone(&self) -> Self809 fn clone(&self) -> Self { 810 *self 811 } 812 } 813 pub type MANDATORY_LEVEL = i32; 814 pub const MandatoryLevelUntrusted: MANDATORY_LEVEL = 0i32; 815 pub const MandatoryLevelLow: MANDATORY_LEVEL = 1i32; 816 pub const MandatoryLevelMedium: MANDATORY_LEVEL = 2i32; 817 pub const MandatoryLevelHigh: MANDATORY_LEVEL = 3i32; 818 pub const MandatoryLevelSystem: MANDATORY_LEVEL = 4i32; 819 pub const MandatoryLevelSecureProcess: MANDATORY_LEVEL = 5i32; 820 pub const MandatoryLevelCount: MANDATORY_LEVEL = 6i32; 821 pub type NCRYPT_DESCRIPTOR_HANDLE = isize; 822 pub type NCRYPT_STREAM_HANDLE = isize; 823 pub type OBJECT_SECURITY_INFORMATION = u32; 824 pub const ATTRIBUTE_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 32u32; 825 pub const BACKUP_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 65536u32; 826 pub const DACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 4u32; 827 pub const GROUP_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 2u32; 828 pub const LABEL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 16u32; 829 pub const OWNER_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 1u32; 830 pub const PROTECTED_DACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 2147483648u32; 831 pub const PROTECTED_SACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 1073741824u32; 832 pub const SACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 8u32; 833 pub const SCOPE_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 64u32; 834 pub const UNPROTECTED_DACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 536870912u32; 835 pub const UNPROTECTED_SACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 268435456u32; 836 #[repr(C)] 837 pub struct OBJECT_TYPE_LIST { 838 pub Level: u16, 839 pub Sbz: u16, 840 pub ObjectType: *mut ::windows_sys::core::GUID, 841 } 842 impl ::core::marker::Copy for OBJECT_TYPE_LIST {} 843 impl ::core::clone::Clone for OBJECT_TYPE_LIST { clone(&self) -> Self844 fn clone(&self) -> Self { 845 *self 846 } 847 } 848 #[cfg(feature = "Win32_Foundation")] 849 pub type PLSA_AP_CALL_PACKAGE_UNTRUSTED = unsafe extern "system" fn(clientrequest: *const *const ::core::ffi::c_void, protocolsubmitbuffer: *const ::core::ffi::c_void, clientbufferbase: *const ::core::ffi::c_void, submitbufferlength: u32, protocolreturnbuffer: *mut *mut ::core::ffi::c_void, returnbufferlength: *mut u32, protocolstatus: *mut i32) -> super::Foundation::NTSTATUS; 850 #[repr(C)] 851 #[cfg(feature = "Win32_Foundation")] 852 pub struct PRIVILEGE_SET { 853 pub PrivilegeCount: u32, 854 pub Control: u32, 855 pub Privilege: [LUID_AND_ATTRIBUTES; 1], 856 } 857 #[cfg(feature = "Win32_Foundation")] 858 impl ::core::marker::Copy for PRIVILEGE_SET {} 859 #[cfg(feature = "Win32_Foundation")] 860 impl ::core::clone::Clone for PRIVILEGE_SET { clone(&self) -> Self861 fn clone(&self) -> Self { 862 *self 863 } 864 } 865 #[repr(C)] 866 pub struct QUOTA_LIMITS { 867 pub PagedPoolLimit: usize, 868 pub NonPagedPoolLimit: usize, 869 pub MinimumWorkingSetSize: usize, 870 pub MaximumWorkingSetSize: usize, 871 pub PagefileLimit: usize, 872 pub TimeLimit: i64, 873 } 874 impl ::core::marker::Copy for QUOTA_LIMITS {} 875 impl ::core::clone::Clone for QUOTA_LIMITS { clone(&self) -> Self876 fn clone(&self) -> Self { 877 *self 878 } 879 } 880 pub type SAFER_LEVEL_HANDLE = isize; 881 pub type SC_HANDLE = isize; 882 #[repr(C)] 883 #[cfg(feature = "Win32_Foundation")] 884 pub struct SECURITY_ATTRIBUTES { 885 pub nLength: u32, 886 pub lpSecurityDescriptor: *mut ::core::ffi::c_void, 887 pub bInheritHandle: super::Foundation::BOOL, 888 } 889 #[cfg(feature = "Win32_Foundation")] 890 impl ::core::marker::Copy for SECURITY_ATTRIBUTES {} 891 #[cfg(feature = "Win32_Foundation")] 892 impl ::core::clone::Clone for SECURITY_ATTRIBUTES { clone(&self) -> Self893 fn clone(&self) -> Self { 894 *self 895 } 896 } 897 pub type SECURITY_AUTO_INHERIT_FLAGS = u32; 898 pub const SEF_AVOID_OWNER_CHECK: SECURITY_AUTO_INHERIT_FLAGS = 16u32; 899 pub const SEF_AVOID_OWNER_RESTRICTION: SECURITY_AUTO_INHERIT_FLAGS = 4096u32; 900 pub const SEF_AVOID_PRIVILEGE_CHECK: SECURITY_AUTO_INHERIT_FLAGS = 8u32; 901 pub const SEF_DACL_AUTO_INHERIT: SECURITY_AUTO_INHERIT_FLAGS = 1u32; 902 pub const SEF_DEFAULT_DESCRIPTOR_FOR_OBJECT: SECURITY_AUTO_INHERIT_FLAGS = 4u32; 903 pub const SEF_DEFAULT_GROUP_FROM_PARENT: SECURITY_AUTO_INHERIT_FLAGS = 64u32; 904 pub const SEF_DEFAULT_OWNER_FROM_PARENT: SECURITY_AUTO_INHERIT_FLAGS = 32u32; 905 pub const SEF_MACL_NO_EXECUTE_UP: SECURITY_AUTO_INHERIT_FLAGS = 1024u32; 906 pub const SEF_MACL_NO_READ_UP: SECURITY_AUTO_INHERIT_FLAGS = 512u32; 907 pub const SEF_MACL_NO_WRITE_UP: SECURITY_AUTO_INHERIT_FLAGS = 256u32; 908 pub const SEF_SACL_AUTO_INHERIT: SECURITY_AUTO_INHERIT_FLAGS = 2u32; 909 #[repr(C)] 910 #[cfg(feature = "Win32_Foundation")] 911 pub struct SECURITY_CAPABILITIES { 912 pub AppContainerSid: super::Foundation::PSID, 913 pub Capabilities: *mut SID_AND_ATTRIBUTES, 914 pub CapabilityCount: u32, 915 pub Reserved: u32, 916 } 917 #[cfg(feature = "Win32_Foundation")] 918 impl ::core::marker::Copy for SECURITY_CAPABILITIES {} 919 #[cfg(feature = "Win32_Foundation")] 920 impl ::core::clone::Clone for SECURITY_CAPABILITIES { clone(&self) -> Self921 fn clone(&self) -> Self { 922 *self 923 } 924 } 925 #[repr(C)] 926 #[cfg(feature = "Win32_Foundation")] 927 pub struct SECURITY_DESCRIPTOR { 928 pub Revision: u8, 929 pub Sbz1: u8, 930 pub Control: u16, 931 pub Owner: super::Foundation::PSID, 932 pub Group: super::Foundation::PSID, 933 pub Sacl: *mut ACL, 934 pub Dacl: *mut ACL, 935 } 936 #[cfg(feature = "Win32_Foundation")] 937 impl ::core::marker::Copy for SECURITY_DESCRIPTOR {} 938 #[cfg(feature = "Win32_Foundation")] 939 impl ::core::clone::Clone for SECURITY_DESCRIPTOR { clone(&self) -> Self940 fn clone(&self) -> Self { 941 *self 942 } 943 } 944 pub type SECURITY_IMPERSONATION_LEVEL = i32; 945 pub const SecurityAnonymous: SECURITY_IMPERSONATION_LEVEL = 0i32; 946 pub const SecurityIdentification: SECURITY_IMPERSONATION_LEVEL = 1i32; 947 pub const SecurityImpersonation: SECURITY_IMPERSONATION_LEVEL = 2i32; 948 pub const SecurityDelegation: SECURITY_IMPERSONATION_LEVEL = 3i32; 949 #[repr(C)] 950 #[cfg(feature = "Win32_Foundation")] 951 pub struct SECURITY_QUALITY_OF_SERVICE { 952 pub Length: u32, 953 pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, 954 pub ContextTrackingMode: u8, 955 pub EffectiveOnly: super::Foundation::BOOLEAN, 956 } 957 #[cfg(feature = "Win32_Foundation")] 958 impl ::core::marker::Copy for SECURITY_QUALITY_OF_SERVICE {} 959 #[cfg(feature = "Win32_Foundation")] 960 impl ::core::clone::Clone for SECURITY_QUALITY_OF_SERVICE { clone(&self) -> Self961 fn clone(&self) -> Self { 962 *self 963 } 964 } 965 pub type SEC_THREAD_START = unsafe extern "system" fn(lpthreadparameter: *mut ::core::ffi::c_void) -> u32; 966 #[repr(C)] 967 #[cfg(feature = "Win32_Foundation")] 968 pub struct SE_ACCESS_REPLY { 969 pub Size: u32, 970 pub ResultListCount: u32, 971 pub GrantedAccess: *mut u32, 972 pub AccessStatus: *mut u32, 973 pub AccessReason: *mut ACCESS_REASONS, 974 pub Privileges: *mut *mut PRIVILEGE_SET, 975 } 976 #[cfg(feature = "Win32_Foundation")] 977 impl ::core::marker::Copy for SE_ACCESS_REPLY {} 978 #[cfg(feature = "Win32_Foundation")] 979 impl ::core::clone::Clone for SE_ACCESS_REPLY { clone(&self) -> Self980 fn clone(&self) -> Self { 981 *self 982 } 983 } 984 #[repr(C)] 985 #[cfg(feature = "Win32_Foundation")] 986 pub struct SE_ACCESS_REQUEST { 987 pub Size: u32, 988 pub SeSecurityDescriptor: *mut SE_SECURITY_DESCRIPTOR, 989 pub DesiredAccess: u32, 990 pub PreviouslyGrantedAccess: u32, 991 pub PrincipalSelfSid: super::Foundation::PSID, 992 pub GenericMapping: *mut GENERIC_MAPPING, 993 pub ObjectTypeListCount: u32, 994 pub ObjectTypeList: *mut OBJECT_TYPE_LIST, 995 } 996 #[cfg(feature = "Win32_Foundation")] 997 impl ::core::marker::Copy for SE_ACCESS_REQUEST {} 998 #[cfg(feature = "Win32_Foundation")] 999 impl ::core::clone::Clone for SE_ACCESS_REQUEST { clone(&self) -> Self1000 fn clone(&self) -> Self { 1001 *self 1002 } 1003 } 1004 #[repr(C)] 1005 #[cfg(feature = "Win32_Foundation")] 1006 pub struct SE_IMPERSONATION_STATE { 1007 pub Token: *mut ::core::ffi::c_void, 1008 pub CopyOnOpen: super::Foundation::BOOLEAN, 1009 pub EffectiveOnly: super::Foundation::BOOLEAN, 1010 pub Level: SECURITY_IMPERSONATION_LEVEL, 1011 } 1012 #[cfg(feature = "Win32_Foundation")] 1013 impl ::core::marker::Copy for SE_IMPERSONATION_STATE {} 1014 #[cfg(feature = "Win32_Foundation")] 1015 impl ::core::clone::Clone for SE_IMPERSONATION_STATE { clone(&self) -> Self1016 fn clone(&self) -> Self { 1017 *self 1018 } 1019 } 1020 #[repr(C)] 1021 #[cfg(feature = "Win32_Foundation")] 1022 pub struct SE_SECURITY_DESCRIPTOR { 1023 pub Size: u32, 1024 pub Flags: u32, 1025 pub SecurityDescriptor: *mut SECURITY_DESCRIPTOR, 1026 } 1027 #[cfg(feature = "Win32_Foundation")] 1028 impl ::core::marker::Copy for SE_SECURITY_DESCRIPTOR {} 1029 #[cfg(feature = "Win32_Foundation")] 1030 impl ::core::clone::Clone for SE_SECURITY_DESCRIPTOR { clone(&self) -> Self1031 fn clone(&self) -> Self { 1032 *self 1033 } 1034 } 1035 #[repr(C)] 1036 pub union SE_SID { 1037 pub Sid: SID, 1038 pub Buffer: [u8; 68], 1039 } 1040 impl ::core::marker::Copy for SE_SID {} 1041 impl ::core::clone::Clone for SE_SID { clone(&self) -> Self1042 fn clone(&self) -> Self { 1043 *self 1044 } 1045 } 1046 #[repr(C)] 1047 pub struct SID { 1048 pub Revision: u8, 1049 pub SubAuthorityCount: u8, 1050 pub IdentifierAuthority: SID_IDENTIFIER_AUTHORITY, 1051 pub SubAuthority: [u32; 1], 1052 } 1053 impl ::core::marker::Copy for SID {} 1054 impl ::core::clone::Clone for SID { clone(&self) -> Self1055 fn clone(&self) -> Self { 1056 *self 1057 } 1058 } 1059 #[repr(C)] 1060 #[cfg(feature = "Win32_Foundation")] 1061 pub struct SID_AND_ATTRIBUTES { 1062 pub Sid: super::Foundation::PSID, 1063 pub Attributes: u32, 1064 } 1065 #[cfg(feature = "Win32_Foundation")] 1066 impl ::core::marker::Copy for SID_AND_ATTRIBUTES {} 1067 #[cfg(feature = "Win32_Foundation")] 1068 impl ::core::clone::Clone for SID_AND_ATTRIBUTES { clone(&self) -> Self1069 fn clone(&self) -> Self { 1070 *self 1071 } 1072 } 1073 #[repr(C)] 1074 #[cfg(feature = "Win32_Foundation")] 1075 pub struct SID_AND_ATTRIBUTES_HASH { 1076 pub SidCount: u32, 1077 pub SidAttr: *mut SID_AND_ATTRIBUTES, 1078 pub Hash: [usize; 32], 1079 } 1080 #[cfg(feature = "Win32_Foundation")] 1081 impl ::core::marker::Copy for SID_AND_ATTRIBUTES_HASH {} 1082 #[cfg(feature = "Win32_Foundation")] 1083 impl ::core::clone::Clone for SID_AND_ATTRIBUTES_HASH { clone(&self) -> Self1084 fn clone(&self) -> Self { 1085 *self 1086 } 1087 } 1088 #[repr(C)] 1089 pub struct SID_IDENTIFIER_AUTHORITY { 1090 pub Value: [u8; 6], 1091 } 1092 impl ::core::marker::Copy for SID_IDENTIFIER_AUTHORITY {} 1093 impl ::core::clone::Clone for SID_IDENTIFIER_AUTHORITY { clone(&self) -> Self1094 fn clone(&self) -> Self { 1095 *self 1096 } 1097 } 1098 pub type SID_NAME_USE = i32; 1099 pub const SidTypeUser: SID_NAME_USE = 1i32; 1100 pub const SidTypeGroup: SID_NAME_USE = 2i32; 1101 pub const SidTypeDomain: SID_NAME_USE = 3i32; 1102 pub const SidTypeAlias: SID_NAME_USE = 4i32; 1103 pub const SidTypeWellKnownGroup: SID_NAME_USE = 5i32; 1104 pub const SidTypeDeletedAccount: SID_NAME_USE = 6i32; 1105 pub const SidTypeInvalid: SID_NAME_USE = 7i32; 1106 pub const SidTypeUnknown: SID_NAME_USE = 8i32; 1107 pub const SidTypeComputer: SID_NAME_USE = 9i32; 1108 pub const SidTypeLabel: SID_NAME_USE = 10i32; 1109 pub const SidTypeLogonSession: SID_NAME_USE = 11i32; 1110 #[repr(C)] 1111 pub struct SYSTEM_ACCESS_FILTER_ACE { 1112 pub Header: ACE_HEADER, 1113 pub Mask: u32, 1114 pub SidStart: u32, 1115 } 1116 impl ::core::marker::Copy for SYSTEM_ACCESS_FILTER_ACE {} 1117 impl ::core::clone::Clone for SYSTEM_ACCESS_FILTER_ACE { clone(&self) -> Self1118 fn clone(&self) -> Self { 1119 *self 1120 } 1121 } 1122 #[repr(C)] 1123 pub struct SYSTEM_ALARM_ACE { 1124 pub Header: ACE_HEADER, 1125 pub Mask: u32, 1126 pub SidStart: u32, 1127 } 1128 impl ::core::marker::Copy for SYSTEM_ALARM_ACE {} 1129 impl ::core::clone::Clone for SYSTEM_ALARM_ACE { clone(&self) -> Self1130 fn clone(&self) -> Self { 1131 *self 1132 } 1133 } 1134 #[repr(C)] 1135 pub struct SYSTEM_ALARM_CALLBACK_ACE { 1136 pub Header: ACE_HEADER, 1137 pub Mask: u32, 1138 pub SidStart: u32, 1139 } 1140 impl ::core::marker::Copy for SYSTEM_ALARM_CALLBACK_ACE {} 1141 impl ::core::clone::Clone for SYSTEM_ALARM_CALLBACK_ACE { clone(&self) -> Self1142 fn clone(&self) -> Self { 1143 *self 1144 } 1145 } 1146 #[repr(C)] 1147 pub struct SYSTEM_ALARM_CALLBACK_OBJECT_ACE { 1148 pub Header: ACE_HEADER, 1149 pub Mask: u32, 1150 pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, 1151 pub ObjectType: ::windows_sys::core::GUID, 1152 pub InheritedObjectType: ::windows_sys::core::GUID, 1153 pub SidStart: u32, 1154 } 1155 impl ::core::marker::Copy for SYSTEM_ALARM_CALLBACK_OBJECT_ACE {} 1156 impl ::core::clone::Clone for SYSTEM_ALARM_CALLBACK_OBJECT_ACE { clone(&self) -> Self1157 fn clone(&self) -> Self { 1158 *self 1159 } 1160 } 1161 #[repr(C)] 1162 pub struct SYSTEM_ALARM_OBJECT_ACE { 1163 pub Header: ACE_HEADER, 1164 pub Mask: u32, 1165 pub Flags: u32, 1166 pub ObjectType: ::windows_sys::core::GUID, 1167 pub InheritedObjectType: ::windows_sys::core::GUID, 1168 pub SidStart: u32, 1169 } 1170 impl ::core::marker::Copy for SYSTEM_ALARM_OBJECT_ACE {} 1171 impl ::core::clone::Clone for SYSTEM_ALARM_OBJECT_ACE { clone(&self) -> Self1172 fn clone(&self) -> Self { 1173 *self 1174 } 1175 } 1176 #[repr(C)] 1177 pub struct SYSTEM_AUDIT_ACE { 1178 pub Header: ACE_HEADER, 1179 pub Mask: u32, 1180 pub SidStart: u32, 1181 } 1182 impl ::core::marker::Copy for SYSTEM_AUDIT_ACE {} 1183 impl ::core::clone::Clone for SYSTEM_AUDIT_ACE { clone(&self) -> Self1184 fn clone(&self) -> Self { 1185 *self 1186 } 1187 } 1188 #[repr(C)] 1189 pub struct SYSTEM_AUDIT_CALLBACK_ACE { 1190 pub Header: ACE_HEADER, 1191 pub Mask: u32, 1192 pub SidStart: u32, 1193 } 1194 impl ::core::marker::Copy for SYSTEM_AUDIT_CALLBACK_ACE {} 1195 impl ::core::clone::Clone for SYSTEM_AUDIT_CALLBACK_ACE { clone(&self) -> Self1196 fn clone(&self) -> Self { 1197 *self 1198 } 1199 } 1200 #[repr(C)] 1201 pub struct SYSTEM_AUDIT_CALLBACK_OBJECT_ACE { 1202 pub Header: ACE_HEADER, 1203 pub Mask: u32, 1204 pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, 1205 pub ObjectType: ::windows_sys::core::GUID, 1206 pub InheritedObjectType: ::windows_sys::core::GUID, 1207 pub SidStart: u32, 1208 } 1209 impl ::core::marker::Copy for SYSTEM_AUDIT_CALLBACK_OBJECT_ACE {} 1210 impl ::core::clone::Clone for SYSTEM_AUDIT_CALLBACK_OBJECT_ACE { clone(&self) -> Self1211 fn clone(&self) -> Self { 1212 *self 1213 } 1214 } 1215 #[repr(C)] 1216 pub struct SYSTEM_AUDIT_OBJECT_ACE { 1217 pub Header: ACE_HEADER, 1218 pub Mask: u32, 1219 pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, 1220 pub ObjectType: ::windows_sys::core::GUID, 1221 pub InheritedObjectType: ::windows_sys::core::GUID, 1222 pub SidStart: u32, 1223 } 1224 impl ::core::marker::Copy for SYSTEM_AUDIT_OBJECT_ACE {} 1225 impl ::core::clone::Clone for SYSTEM_AUDIT_OBJECT_ACE { clone(&self) -> Self1226 fn clone(&self) -> Self { 1227 *self 1228 } 1229 } 1230 pub type SYSTEM_AUDIT_OBJECT_ACE_FLAGS = u32; 1231 pub const ACE_OBJECT_TYPE_PRESENT: SYSTEM_AUDIT_OBJECT_ACE_FLAGS = 1u32; 1232 pub const ACE_INHERITED_OBJECT_TYPE_PRESENT: SYSTEM_AUDIT_OBJECT_ACE_FLAGS = 2u32; 1233 #[repr(C)] 1234 pub struct SYSTEM_MANDATORY_LABEL_ACE { 1235 pub Header: ACE_HEADER, 1236 pub Mask: u32, 1237 pub SidStart: u32, 1238 } 1239 impl ::core::marker::Copy for SYSTEM_MANDATORY_LABEL_ACE {} 1240 impl ::core::clone::Clone for SYSTEM_MANDATORY_LABEL_ACE { clone(&self) -> Self1241 fn clone(&self) -> Self { 1242 *self 1243 } 1244 } 1245 #[repr(C)] 1246 pub struct SYSTEM_PROCESS_TRUST_LABEL_ACE { 1247 pub Header: ACE_HEADER, 1248 pub Mask: u32, 1249 pub SidStart: u32, 1250 } 1251 impl ::core::marker::Copy for SYSTEM_PROCESS_TRUST_LABEL_ACE {} 1252 impl ::core::clone::Clone for SYSTEM_PROCESS_TRUST_LABEL_ACE { clone(&self) -> Self1253 fn clone(&self) -> Self { 1254 *self 1255 } 1256 } 1257 #[repr(C)] 1258 pub struct SYSTEM_RESOURCE_ATTRIBUTE_ACE { 1259 pub Header: ACE_HEADER, 1260 pub Mask: u32, 1261 pub SidStart: u32, 1262 } 1263 impl ::core::marker::Copy for SYSTEM_RESOURCE_ATTRIBUTE_ACE {} 1264 impl ::core::clone::Clone for SYSTEM_RESOURCE_ATTRIBUTE_ACE { clone(&self) -> Self1265 fn clone(&self) -> Self { 1266 *self 1267 } 1268 } 1269 #[repr(C)] 1270 pub struct SYSTEM_SCOPED_POLICY_ID_ACE { 1271 pub Header: ACE_HEADER, 1272 pub Mask: u32, 1273 pub SidStart: u32, 1274 } 1275 impl ::core::marker::Copy for SYSTEM_SCOPED_POLICY_ID_ACE {} 1276 impl ::core::clone::Clone for SYSTEM_SCOPED_POLICY_ID_ACE { clone(&self) -> Self1277 fn clone(&self) -> Self { 1278 *self 1279 } 1280 } 1281 #[repr(C)] 1282 #[cfg(feature = "Win32_Foundation")] 1283 pub struct TOKEN_ACCESS_INFORMATION { 1284 pub SidHash: *mut SID_AND_ATTRIBUTES_HASH, 1285 pub RestrictedSidHash: *mut SID_AND_ATTRIBUTES_HASH, 1286 pub Privileges: *mut TOKEN_PRIVILEGES, 1287 pub AuthenticationId: super::Foundation::LUID, 1288 pub TokenType: TOKEN_TYPE, 1289 pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, 1290 pub MandatoryPolicy: TOKEN_MANDATORY_POLICY, 1291 pub Flags: u32, 1292 pub AppContainerNumber: u32, 1293 pub PackageSid: super::Foundation::PSID, 1294 pub CapabilitiesHash: *mut SID_AND_ATTRIBUTES_HASH, 1295 pub TrustLevelSid: super::Foundation::PSID, 1296 pub SecurityAttributes: *mut ::core::ffi::c_void, 1297 } 1298 #[cfg(feature = "Win32_Foundation")] 1299 impl ::core::marker::Copy for TOKEN_ACCESS_INFORMATION {} 1300 #[cfg(feature = "Win32_Foundation")] 1301 impl ::core::clone::Clone for TOKEN_ACCESS_INFORMATION { clone(&self) -> Self1302 fn clone(&self) -> Self { 1303 *self 1304 } 1305 } 1306 pub type TOKEN_ACCESS_MASK = u32; 1307 pub const TOKEN_DELETE: TOKEN_ACCESS_MASK = 65536u32; 1308 pub const TOKEN_READ_CONTROL: TOKEN_ACCESS_MASK = 131072u32; 1309 pub const TOKEN_WRITE_DAC: TOKEN_ACCESS_MASK = 262144u32; 1310 pub const TOKEN_WRITE_OWNER: TOKEN_ACCESS_MASK = 524288u32; 1311 pub const TOKEN_ACCESS_SYSTEM_SECURITY: TOKEN_ACCESS_MASK = 16777216u32; 1312 pub const TOKEN_ASSIGN_PRIMARY: TOKEN_ACCESS_MASK = 1u32; 1313 pub const TOKEN_DUPLICATE: TOKEN_ACCESS_MASK = 2u32; 1314 pub const TOKEN_IMPERSONATE: TOKEN_ACCESS_MASK = 4u32; 1315 pub const TOKEN_QUERY: TOKEN_ACCESS_MASK = 8u32; 1316 pub const TOKEN_QUERY_SOURCE: TOKEN_ACCESS_MASK = 16u32; 1317 pub const TOKEN_ADJUST_PRIVILEGES: TOKEN_ACCESS_MASK = 32u32; 1318 pub const TOKEN_ADJUST_GROUPS: TOKEN_ACCESS_MASK = 64u32; 1319 pub const TOKEN_ADJUST_DEFAULT: TOKEN_ACCESS_MASK = 128u32; 1320 pub const TOKEN_ADJUST_SESSIONID: TOKEN_ACCESS_MASK = 256u32; 1321 pub const TOKEN_ALL_ACCESS: TOKEN_ACCESS_MASK = 983295u32; 1322 #[repr(C)] 1323 #[cfg(feature = "Win32_Foundation")] 1324 pub struct TOKEN_APPCONTAINER_INFORMATION { 1325 pub TokenAppContainer: super::Foundation::PSID, 1326 } 1327 #[cfg(feature = "Win32_Foundation")] 1328 impl ::core::marker::Copy for TOKEN_APPCONTAINER_INFORMATION {} 1329 #[cfg(feature = "Win32_Foundation")] 1330 impl ::core::clone::Clone for TOKEN_APPCONTAINER_INFORMATION { clone(&self) -> Self1331 fn clone(&self) -> Self { 1332 *self 1333 } 1334 } 1335 #[repr(C)] 1336 pub struct TOKEN_AUDIT_POLICY { 1337 pub PerUserPolicy: [u8; 30], 1338 } 1339 impl ::core::marker::Copy for TOKEN_AUDIT_POLICY {} 1340 impl ::core::clone::Clone for TOKEN_AUDIT_POLICY { clone(&self) -> Self1341 fn clone(&self) -> Self { 1342 *self 1343 } 1344 } 1345 #[repr(C)] 1346 #[cfg(feature = "Win32_Foundation")] 1347 pub struct TOKEN_CONTROL { 1348 pub TokenId: super::Foundation::LUID, 1349 pub AuthenticationId: super::Foundation::LUID, 1350 pub ModifiedId: super::Foundation::LUID, 1351 pub TokenSource: TOKEN_SOURCE, 1352 } 1353 #[cfg(feature = "Win32_Foundation")] 1354 impl ::core::marker::Copy for TOKEN_CONTROL {} 1355 #[cfg(feature = "Win32_Foundation")] 1356 impl ::core::clone::Clone for TOKEN_CONTROL { clone(&self) -> Self1357 fn clone(&self) -> Self { 1358 *self 1359 } 1360 } 1361 #[repr(C)] 1362 pub struct TOKEN_DEFAULT_DACL { 1363 pub DefaultDacl: *mut ACL, 1364 } 1365 impl ::core::marker::Copy for TOKEN_DEFAULT_DACL {} 1366 impl ::core::clone::Clone for TOKEN_DEFAULT_DACL { clone(&self) -> Self1367 fn clone(&self) -> Self { 1368 *self 1369 } 1370 } 1371 #[repr(C)] 1372 pub struct TOKEN_DEVICE_CLAIMS { 1373 pub DeviceClaims: *mut ::core::ffi::c_void, 1374 } 1375 impl ::core::marker::Copy for TOKEN_DEVICE_CLAIMS {} 1376 impl ::core::clone::Clone for TOKEN_DEVICE_CLAIMS { clone(&self) -> Self1377 fn clone(&self) -> Self { 1378 *self 1379 } 1380 } 1381 #[repr(C)] 1382 pub struct TOKEN_ELEVATION { 1383 pub TokenIsElevated: u32, 1384 } 1385 impl ::core::marker::Copy for TOKEN_ELEVATION {} 1386 impl ::core::clone::Clone for TOKEN_ELEVATION { clone(&self) -> Self1387 fn clone(&self) -> Self { 1388 *self 1389 } 1390 } 1391 pub type TOKEN_ELEVATION_TYPE = i32; 1392 pub const TokenElevationTypeDefault: TOKEN_ELEVATION_TYPE = 1i32; 1393 pub const TokenElevationTypeFull: TOKEN_ELEVATION_TYPE = 2i32; 1394 pub const TokenElevationTypeLimited: TOKEN_ELEVATION_TYPE = 3i32; 1395 #[repr(C)] 1396 #[cfg(feature = "Win32_Foundation")] 1397 pub struct TOKEN_GROUPS { 1398 pub GroupCount: u32, 1399 pub Groups: [SID_AND_ATTRIBUTES; 1], 1400 } 1401 #[cfg(feature = "Win32_Foundation")] 1402 impl ::core::marker::Copy for TOKEN_GROUPS {} 1403 #[cfg(feature = "Win32_Foundation")] 1404 impl ::core::clone::Clone for TOKEN_GROUPS { clone(&self) -> Self1405 fn clone(&self) -> Self { 1406 *self 1407 } 1408 } 1409 #[repr(C)] 1410 #[cfg(feature = "Win32_Foundation")] 1411 pub struct TOKEN_GROUPS_AND_PRIVILEGES { 1412 pub SidCount: u32, 1413 pub SidLength: u32, 1414 pub Sids: *mut SID_AND_ATTRIBUTES, 1415 pub RestrictedSidCount: u32, 1416 pub RestrictedSidLength: u32, 1417 pub RestrictedSids: *mut SID_AND_ATTRIBUTES, 1418 pub PrivilegeCount: u32, 1419 pub PrivilegeLength: u32, 1420 pub Privileges: *mut LUID_AND_ATTRIBUTES, 1421 pub AuthenticationId: super::Foundation::LUID, 1422 } 1423 #[cfg(feature = "Win32_Foundation")] 1424 impl ::core::marker::Copy for TOKEN_GROUPS_AND_PRIVILEGES {} 1425 #[cfg(feature = "Win32_Foundation")] 1426 impl ::core::clone::Clone for TOKEN_GROUPS_AND_PRIVILEGES { clone(&self) -> Self1427 fn clone(&self) -> Self { 1428 *self 1429 } 1430 } 1431 pub type TOKEN_INFORMATION_CLASS = i32; 1432 pub const TokenUser: TOKEN_INFORMATION_CLASS = 1i32; 1433 pub const TokenGroups: TOKEN_INFORMATION_CLASS = 2i32; 1434 pub const TokenPrivileges: TOKEN_INFORMATION_CLASS = 3i32; 1435 pub const TokenOwner: TOKEN_INFORMATION_CLASS = 4i32; 1436 pub const TokenPrimaryGroup: TOKEN_INFORMATION_CLASS = 5i32; 1437 pub const TokenDefaultDacl: TOKEN_INFORMATION_CLASS = 6i32; 1438 pub const TokenSource: TOKEN_INFORMATION_CLASS = 7i32; 1439 pub const TokenType: TOKEN_INFORMATION_CLASS = 8i32; 1440 pub const TokenImpersonationLevel: TOKEN_INFORMATION_CLASS = 9i32; 1441 pub const TokenStatistics: TOKEN_INFORMATION_CLASS = 10i32; 1442 pub const TokenRestrictedSids: TOKEN_INFORMATION_CLASS = 11i32; 1443 pub const TokenSessionId: TOKEN_INFORMATION_CLASS = 12i32; 1444 pub const TokenGroupsAndPrivileges: TOKEN_INFORMATION_CLASS = 13i32; 1445 pub const TokenSessionReference: TOKEN_INFORMATION_CLASS = 14i32; 1446 pub const TokenSandBoxInert: TOKEN_INFORMATION_CLASS = 15i32; 1447 pub const TokenAuditPolicy: TOKEN_INFORMATION_CLASS = 16i32; 1448 pub const TokenOrigin: TOKEN_INFORMATION_CLASS = 17i32; 1449 pub const TokenElevationType: TOKEN_INFORMATION_CLASS = 18i32; 1450 pub const TokenLinkedToken: TOKEN_INFORMATION_CLASS = 19i32; 1451 pub const TokenElevation: TOKEN_INFORMATION_CLASS = 20i32; 1452 pub const TokenHasRestrictions: TOKEN_INFORMATION_CLASS = 21i32; 1453 pub const TokenAccessInformation: TOKEN_INFORMATION_CLASS = 22i32; 1454 pub const TokenVirtualizationAllowed: TOKEN_INFORMATION_CLASS = 23i32; 1455 pub const TokenVirtualizationEnabled: TOKEN_INFORMATION_CLASS = 24i32; 1456 pub const TokenIntegrityLevel: TOKEN_INFORMATION_CLASS = 25i32; 1457 pub const TokenUIAccess: TOKEN_INFORMATION_CLASS = 26i32; 1458 pub const TokenMandatoryPolicy: TOKEN_INFORMATION_CLASS = 27i32; 1459 pub const TokenLogonSid: TOKEN_INFORMATION_CLASS = 28i32; 1460 pub const TokenIsAppContainer: TOKEN_INFORMATION_CLASS = 29i32; 1461 pub const TokenCapabilities: TOKEN_INFORMATION_CLASS = 30i32; 1462 pub const TokenAppContainerSid: TOKEN_INFORMATION_CLASS = 31i32; 1463 pub const TokenAppContainerNumber: TOKEN_INFORMATION_CLASS = 32i32; 1464 pub const TokenUserClaimAttributes: TOKEN_INFORMATION_CLASS = 33i32; 1465 pub const TokenDeviceClaimAttributes: TOKEN_INFORMATION_CLASS = 34i32; 1466 pub const TokenRestrictedUserClaimAttributes: TOKEN_INFORMATION_CLASS = 35i32; 1467 pub const TokenRestrictedDeviceClaimAttributes: TOKEN_INFORMATION_CLASS = 36i32; 1468 pub const TokenDeviceGroups: TOKEN_INFORMATION_CLASS = 37i32; 1469 pub const TokenRestrictedDeviceGroups: TOKEN_INFORMATION_CLASS = 38i32; 1470 pub const TokenSecurityAttributes: TOKEN_INFORMATION_CLASS = 39i32; 1471 pub const TokenIsRestricted: TOKEN_INFORMATION_CLASS = 40i32; 1472 pub const TokenProcessTrustLevel: TOKEN_INFORMATION_CLASS = 41i32; 1473 pub const TokenPrivateNameSpace: TOKEN_INFORMATION_CLASS = 42i32; 1474 pub const TokenSingletonAttributes: TOKEN_INFORMATION_CLASS = 43i32; 1475 pub const TokenBnoIsolation: TOKEN_INFORMATION_CLASS = 44i32; 1476 pub const TokenChildProcessFlags: TOKEN_INFORMATION_CLASS = 45i32; 1477 pub const TokenIsLessPrivilegedAppContainer: TOKEN_INFORMATION_CLASS = 46i32; 1478 pub const TokenIsSandboxed: TOKEN_INFORMATION_CLASS = 47i32; 1479 pub const MaxTokenInfoClass: TOKEN_INFORMATION_CLASS = 48i32; 1480 #[repr(C)] 1481 #[cfg(feature = "Win32_Foundation")] 1482 pub struct TOKEN_LINKED_TOKEN { 1483 pub LinkedToken: super::Foundation::HANDLE, 1484 } 1485 #[cfg(feature = "Win32_Foundation")] 1486 impl ::core::marker::Copy for TOKEN_LINKED_TOKEN {} 1487 #[cfg(feature = "Win32_Foundation")] 1488 impl ::core::clone::Clone for TOKEN_LINKED_TOKEN { clone(&self) -> Self1489 fn clone(&self) -> Self { 1490 *self 1491 } 1492 } 1493 #[repr(C)] 1494 #[cfg(feature = "Win32_Foundation")] 1495 pub struct TOKEN_MANDATORY_LABEL { 1496 pub Label: SID_AND_ATTRIBUTES, 1497 } 1498 #[cfg(feature = "Win32_Foundation")] 1499 impl ::core::marker::Copy for TOKEN_MANDATORY_LABEL {} 1500 #[cfg(feature = "Win32_Foundation")] 1501 impl ::core::clone::Clone for TOKEN_MANDATORY_LABEL { clone(&self) -> Self1502 fn clone(&self) -> Self { 1503 *self 1504 } 1505 } 1506 #[repr(C)] 1507 pub struct TOKEN_MANDATORY_POLICY { 1508 pub Policy: TOKEN_MANDATORY_POLICY_ID, 1509 } 1510 impl ::core::marker::Copy for TOKEN_MANDATORY_POLICY {} 1511 impl ::core::clone::Clone for TOKEN_MANDATORY_POLICY { clone(&self) -> Self1512 fn clone(&self) -> Self { 1513 *self 1514 } 1515 } 1516 pub type TOKEN_MANDATORY_POLICY_ID = u32; 1517 pub const TOKEN_MANDATORY_POLICY_OFF: TOKEN_MANDATORY_POLICY_ID = 0u32; 1518 pub const TOKEN_MANDATORY_POLICY_NO_WRITE_UP: TOKEN_MANDATORY_POLICY_ID = 1u32; 1519 pub const TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN: TOKEN_MANDATORY_POLICY_ID = 2u32; 1520 pub const TOKEN_MANDATORY_POLICY_VALID_MASK: TOKEN_MANDATORY_POLICY_ID = 3u32; 1521 #[repr(C)] 1522 #[cfg(feature = "Win32_Foundation")] 1523 pub struct TOKEN_ORIGIN { 1524 pub OriginatingLogonSession: super::Foundation::LUID, 1525 } 1526 #[cfg(feature = "Win32_Foundation")] 1527 impl ::core::marker::Copy for TOKEN_ORIGIN {} 1528 #[cfg(feature = "Win32_Foundation")] 1529 impl ::core::clone::Clone for TOKEN_ORIGIN { clone(&self) -> Self1530 fn clone(&self) -> Self { 1531 *self 1532 } 1533 } 1534 #[repr(C)] 1535 #[cfg(feature = "Win32_Foundation")] 1536 pub struct TOKEN_OWNER { 1537 pub Owner: super::Foundation::PSID, 1538 } 1539 #[cfg(feature = "Win32_Foundation")] 1540 impl ::core::marker::Copy for TOKEN_OWNER {} 1541 #[cfg(feature = "Win32_Foundation")] 1542 impl ::core::clone::Clone for TOKEN_OWNER { clone(&self) -> Self1543 fn clone(&self) -> Self { 1544 *self 1545 } 1546 } 1547 #[repr(C)] 1548 #[cfg(feature = "Win32_Foundation")] 1549 pub struct TOKEN_PRIMARY_GROUP { 1550 pub PrimaryGroup: super::Foundation::PSID, 1551 } 1552 #[cfg(feature = "Win32_Foundation")] 1553 impl ::core::marker::Copy for TOKEN_PRIMARY_GROUP {} 1554 #[cfg(feature = "Win32_Foundation")] 1555 impl ::core::clone::Clone for TOKEN_PRIMARY_GROUP { clone(&self) -> Self1556 fn clone(&self) -> Self { 1557 *self 1558 } 1559 } 1560 #[repr(C)] 1561 #[cfg(feature = "Win32_Foundation")] 1562 pub struct TOKEN_PRIVILEGES { 1563 pub PrivilegeCount: u32, 1564 pub Privileges: [LUID_AND_ATTRIBUTES; 1], 1565 } 1566 #[cfg(feature = "Win32_Foundation")] 1567 impl ::core::marker::Copy for TOKEN_PRIVILEGES {} 1568 #[cfg(feature = "Win32_Foundation")] 1569 impl ::core::clone::Clone for TOKEN_PRIVILEGES { clone(&self) -> Self1570 fn clone(&self) -> Self { 1571 *self 1572 } 1573 } 1574 pub type TOKEN_PRIVILEGES_ATTRIBUTES = u32; 1575 pub const SE_PRIVILEGE_ENABLED: TOKEN_PRIVILEGES_ATTRIBUTES = 2u32; 1576 pub const SE_PRIVILEGE_ENABLED_BY_DEFAULT: TOKEN_PRIVILEGES_ATTRIBUTES = 1u32; 1577 pub const SE_PRIVILEGE_REMOVED: TOKEN_PRIVILEGES_ATTRIBUTES = 4u32; 1578 pub const SE_PRIVILEGE_USED_FOR_ACCESS: TOKEN_PRIVILEGES_ATTRIBUTES = 2147483648u32; 1579 #[repr(C)] 1580 #[cfg(feature = "Win32_Foundation")] 1581 pub struct TOKEN_SOURCE { 1582 pub SourceName: [super::Foundation::CHAR; 8], 1583 pub SourceIdentifier: super::Foundation::LUID, 1584 } 1585 #[cfg(feature = "Win32_Foundation")] 1586 impl ::core::marker::Copy for TOKEN_SOURCE {} 1587 #[cfg(feature = "Win32_Foundation")] 1588 impl ::core::clone::Clone for TOKEN_SOURCE { clone(&self) -> Self1589 fn clone(&self) -> Self { 1590 *self 1591 } 1592 } 1593 #[repr(C)] 1594 #[cfg(feature = "Win32_Foundation")] 1595 pub struct TOKEN_STATISTICS { 1596 pub TokenId: super::Foundation::LUID, 1597 pub AuthenticationId: super::Foundation::LUID, 1598 pub ExpirationTime: i64, 1599 pub TokenType: TOKEN_TYPE, 1600 pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, 1601 pub DynamicCharged: u32, 1602 pub DynamicAvailable: u32, 1603 pub GroupCount: u32, 1604 pub PrivilegeCount: u32, 1605 pub ModifiedId: super::Foundation::LUID, 1606 } 1607 #[cfg(feature = "Win32_Foundation")] 1608 impl ::core::marker::Copy for TOKEN_STATISTICS {} 1609 #[cfg(feature = "Win32_Foundation")] 1610 impl ::core::clone::Clone for TOKEN_STATISTICS { clone(&self) -> Self1611 fn clone(&self) -> Self { 1612 *self 1613 } 1614 } 1615 pub type TOKEN_TYPE = i32; 1616 pub const TokenPrimary: TOKEN_TYPE = 1i32; 1617 pub const TokenImpersonation: TOKEN_TYPE = 2i32; 1618 #[repr(C)] 1619 #[cfg(feature = "Win32_Foundation")] 1620 pub struct TOKEN_USER { 1621 pub User: SID_AND_ATTRIBUTES, 1622 } 1623 #[cfg(feature = "Win32_Foundation")] 1624 impl ::core::marker::Copy for TOKEN_USER {} 1625 #[cfg(feature = "Win32_Foundation")] 1626 impl ::core::clone::Clone for TOKEN_USER { clone(&self) -> Self1627 fn clone(&self) -> Self { 1628 *self 1629 } 1630 } 1631 #[repr(C)] 1632 pub struct TOKEN_USER_CLAIMS { 1633 pub UserClaims: *mut ::core::ffi::c_void, 1634 } 1635 impl ::core::marker::Copy for TOKEN_USER_CLAIMS {} 1636 impl ::core::clone::Clone for TOKEN_USER_CLAIMS { clone(&self) -> Self1637 fn clone(&self) -> Self { 1638 *self 1639 } 1640 } 1641 pub type WELL_KNOWN_SID_TYPE = i32; 1642 pub const WinNullSid: WELL_KNOWN_SID_TYPE = 0i32; 1643 pub const WinWorldSid: WELL_KNOWN_SID_TYPE = 1i32; 1644 pub const WinLocalSid: WELL_KNOWN_SID_TYPE = 2i32; 1645 pub const WinCreatorOwnerSid: WELL_KNOWN_SID_TYPE = 3i32; 1646 pub const WinCreatorGroupSid: WELL_KNOWN_SID_TYPE = 4i32; 1647 pub const WinCreatorOwnerServerSid: WELL_KNOWN_SID_TYPE = 5i32; 1648 pub const WinCreatorGroupServerSid: WELL_KNOWN_SID_TYPE = 6i32; 1649 pub const WinNtAuthoritySid: WELL_KNOWN_SID_TYPE = 7i32; 1650 pub const WinDialupSid: WELL_KNOWN_SID_TYPE = 8i32; 1651 pub const WinNetworkSid: WELL_KNOWN_SID_TYPE = 9i32; 1652 pub const WinBatchSid: WELL_KNOWN_SID_TYPE = 10i32; 1653 pub const WinInteractiveSid: WELL_KNOWN_SID_TYPE = 11i32; 1654 pub const WinServiceSid: WELL_KNOWN_SID_TYPE = 12i32; 1655 pub const WinAnonymousSid: WELL_KNOWN_SID_TYPE = 13i32; 1656 pub const WinProxySid: WELL_KNOWN_SID_TYPE = 14i32; 1657 pub const WinEnterpriseControllersSid: WELL_KNOWN_SID_TYPE = 15i32; 1658 pub const WinSelfSid: WELL_KNOWN_SID_TYPE = 16i32; 1659 pub const WinAuthenticatedUserSid: WELL_KNOWN_SID_TYPE = 17i32; 1660 pub const WinRestrictedCodeSid: WELL_KNOWN_SID_TYPE = 18i32; 1661 pub const WinTerminalServerSid: WELL_KNOWN_SID_TYPE = 19i32; 1662 pub const WinRemoteLogonIdSid: WELL_KNOWN_SID_TYPE = 20i32; 1663 pub const WinLogonIdsSid: WELL_KNOWN_SID_TYPE = 21i32; 1664 pub const WinLocalSystemSid: WELL_KNOWN_SID_TYPE = 22i32; 1665 pub const WinLocalServiceSid: WELL_KNOWN_SID_TYPE = 23i32; 1666 pub const WinNetworkServiceSid: WELL_KNOWN_SID_TYPE = 24i32; 1667 pub const WinBuiltinDomainSid: WELL_KNOWN_SID_TYPE = 25i32; 1668 pub const WinBuiltinAdministratorsSid: WELL_KNOWN_SID_TYPE = 26i32; 1669 pub const WinBuiltinUsersSid: WELL_KNOWN_SID_TYPE = 27i32; 1670 pub const WinBuiltinGuestsSid: WELL_KNOWN_SID_TYPE = 28i32; 1671 pub const WinBuiltinPowerUsersSid: WELL_KNOWN_SID_TYPE = 29i32; 1672 pub const WinBuiltinAccountOperatorsSid: WELL_KNOWN_SID_TYPE = 30i32; 1673 pub const WinBuiltinSystemOperatorsSid: WELL_KNOWN_SID_TYPE = 31i32; 1674 pub const WinBuiltinPrintOperatorsSid: WELL_KNOWN_SID_TYPE = 32i32; 1675 pub const WinBuiltinBackupOperatorsSid: WELL_KNOWN_SID_TYPE = 33i32; 1676 pub const WinBuiltinReplicatorSid: WELL_KNOWN_SID_TYPE = 34i32; 1677 pub const WinBuiltinPreWindows2000CompatibleAccessSid: WELL_KNOWN_SID_TYPE = 35i32; 1678 pub const WinBuiltinRemoteDesktopUsersSid: WELL_KNOWN_SID_TYPE = 36i32; 1679 pub const WinBuiltinNetworkConfigurationOperatorsSid: WELL_KNOWN_SID_TYPE = 37i32; 1680 pub const WinAccountAdministratorSid: WELL_KNOWN_SID_TYPE = 38i32; 1681 pub const WinAccountGuestSid: WELL_KNOWN_SID_TYPE = 39i32; 1682 pub const WinAccountKrbtgtSid: WELL_KNOWN_SID_TYPE = 40i32; 1683 pub const WinAccountDomainAdminsSid: WELL_KNOWN_SID_TYPE = 41i32; 1684 pub const WinAccountDomainUsersSid: WELL_KNOWN_SID_TYPE = 42i32; 1685 pub const WinAccountDomainGuestsSid: WELL_KNOWN_SID_TYPE = 43i32; 1686 pub const WinAccountComputersSid: WELL_KNOWN_SID_TYPE = 44i32; 1687 pub const WinAccountControllersSid: WELL_KNOWN_SID_TYPE = 45i32; 1688 pub const WinAccountCertAdminsSid: WELL_KNOWN_SID_TYPE = 46i32; 1689 pub const WinAccountSchemaAdminsSid: WELL_KNOWN_SID_TYPE = 47i32; 1690 pub const WinAccountEnterpriseAdminsSid: WELL_KNOWN_SID_TYPE = 48i32; 1691 pub const WinAccountPolicyAdminsSid: WELL_KNOWN_SID_TYPE = 49i32; 1692 pub const WinAccountRasAndIasServersSid: WELL_KNOWN_SID_TYPE = 50i32; 1693 pub const WinNTLMAuthenticationSid: WELL_KNOWN_SID_TYPE = 51i32; 1694 pub const WinDigestAuthenticationSid: WELL_KNOWN_SID_TYPE = 52i32; 1695 pub const WinSChannelAuthenticationSid: WELL_KNOWN_SID_TYPE = 53i32; 1696 pub const WinThisOrganizationSid: WELL_KNOWN_SID_TYPE = 54i32; 1697 pub const WinOtherOrganizationSid: WELL_KNOWN_SID_TYPE = 55i32; 1698 pub const WinBuiltinIncomingForestTrustBuildersSid: WELL_KNOWN_SID_TYPE = 56i32; 1699 pub const WinBuiltinPerfMonitoringUsersSid: WELL_KNOWN_SID_TYPE = 57i32; 1700 pub const WinBuiltinPerfLoggingUsersSid: WELL_KNOWN_SID_TYPE = 58i32; 1701 pub const WinBuiltinAuthorizationAccessSid: WELL_KNOWN_SID_TYPE = 59i32; 1702 pub const WinBuiltinTerminalServerLicenseServersSid: WELL_KNOWN_SID_TYPE = 60i32; 1703 pub const WinBuiltinDCOMUsersSid: WELL_KNOWN_SID_TYPE = 61i32; 1704 pub const WinBuiltinIUsersSid: WELL_KNOWN_SID_TYPE = 62i32; 1705 pub const WinIUserSid: WELL_KNOWN_SID_TYPE = 63i32; 1706 pub const WinBuiltinCryptoOperatorsSid: WELL_KNOWN_SID_TYPE = 64i32; 1707 pub const WinUntrustedLabelSid: WELL_KNOWN_SID_TYPE = 65i32; 1708 pub const WinLowLabelSid: WELL_KNOWN_SID_TYPE = 66i32; 1709 pub const WinMediumLabelSid: WELL_KNOWN_SID_TYPE = 67i32; 1710 pub const WinHighLabelSid: WELL_KNOWN_SID_TYPE = 68i32; 1711 pub const WinSystemLabelSid: WELL_KNOWN_SID_TYPE = 69i32; 1712 pub const WinWriteRestrictedCodeSid: WELL_KNOWN_SID_TYPE = 70i32; 1713 pub const WinCreatorOwnerRightsSid: WELL_KNOWN_SID_TYPE = 71i32; 1714 pub const WinCacheablePrincipalsGroupSid: WELL_KNOWN_SID_TYPE = 72i32; 1715 pub const WinNonCacheablePrincipalsGroupSid: WELL_KNOWN_SID_TYPE = 73i32; 1716 pub const WinEnterpriseReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 74i32; 1717 pub const WinAccountReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 75i32; 1718 pub const WinBuiltinEventLogReadersGroup: WELL_KNOWN_SID_TYPE = 76i32; 1719 pub const WinNewEnterpriseReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 77i32; 1720 pub const WinBuiltinCertSvcDComAccessGroup: WELL_KNOWN_SID_TYPE = 78i32; 1721 pub const WinMediumPlusLabelSid: WELL_KNOWN_SID_TYPE = 79i32; 1722 pub const WinLocalLogonSid: WELL_KNOWN_SID_TYPE = 80i32; 1723 pub const WinConsoleLogonSid: WELL_KNOWN_SID_TYPE = 81i32; 1724 pub const WinThisOrganizationCertificateSid: WELL_KNOWN_SID_TYPE = 82i32; 1725 pub const WinApplicationPackageAuthoritySid: WELL_KNOWN_SID_TYPE = 83i32; 1726 pub const WinBuiltinAnyPackageSid: WELL_KNOWN_SID_TYPE = 84i32; 1727 pub const WinCapabilityInternetClientSid: WELL_KNOWN_SID_TYPE = 85i32; 1728 pub const WinCapabilityInternetClientServerSid: WELL_KNOWN_SID_TYPE = 86i32; 1729 pub const WinCapabilityPrivateNetworkClientServerSid: WELL_KNOWN_SID_TYPE = 87i32; 1730 pub const WinCapabilityPicturesLibrarySid: WELL_KNOWN_SID_TYPE = 88i32; 1731 pub const WinCapabilityVideosLibrarySid: WELL_KNOWN_SID_TYPE = 89i32; 1732 pub const WinCapabilityMusicLibrarySid: WELL_KNOWN_SID_TYPE = 90i32; 1733 pub const WinCapabilityDocumentsLibrarySid: WELL_KNOWN_SID_TYPE = 91i32; 1734 pub const WinCapabilitySharedUserCertificatesSid: WELL_KNOWN_SID_TYPE = 92i32; 1735 pub const WinCapabilityEnterpriseAuthenticationSid: WELL_KNOWN_SID_TYPE = 93i32; 1736 pub const WinCapabilityRemovableStorageSid: WELL_KNOWN_SID_TYPE = 94i32; 1737 pub const WinBuiltinRDSRemoteAccessServersSid: WELL_KNOWN_SID_TYPE = 95i32; 1738 pub const WinBuiltinRDSEndpointServersSid: WELL_KNOWN_SID_TYPE = 96i32; 1739 pub const WinBuiltinRDSManagementServersSid: WELL_KNOWN_SID_TYPE = 97i32; 1740 pub const WinUserModeDriversSid: WELL_KNOWN_SID_TYPE = 98i32; 1741 pub const WinBuiltinHyperVAdminsSid: WELL_KNOWN_SID_TYPE = 99i32; 1742 pub const WinAccountCloneableControllersSid: WELL_KNOWN_SID_TYPE = 100i32; 1743 pub const WinBuiltinAccessControlAssistanceOperatorsSid: WELL_KNOWN_SID_TYPE = 101i32; 1744 pub const WinBuiltinRemoteManagementUsersSid: WELL_KNOWN_SID_TYPE = 102i32; 1745 pub const WinAuthenticationAuthorityAssertedSid: WELL_KNOWN_SID_TYPE = 103i32; 1746 pub const WinAuthenticationServiceAssertedSid: WELL_KNOWN_SID_TYPE = 104i32; 1747 pub const WinLocalAccountSid: WELL_KNOWN_SID_TYPE = 105i32; 1748 pub const WinLocalAccountAndAdministratorSid: WELL_KNOWN_SID_TYPE = 106i32; 1749 pub const WinAccountProtectedUsersSid: WELL_KNOWN_SID_TYPE = 107i32; 1750 pub const WinCapabilityAppointmentsSid: WELL_KNOWN_SID_TYPE = 108i32; 1751 pub const WinCapabilityContactsSid: WELL_KNOWN_SID_TYPE = 109i32; 1752 pub const WinAccountDefaultSystemManagedSid: WELL_KNOWN_SID_TYPE = 110i32; 1753 pub const WinBuiltinDefaultSystemManagedGroupSid: WELL_KNOWN_SID_TYPE = 111i32; 1754 pub const WinBuiltinStorageReplicaAdminsSid: WELL_KNOWN_SID_TYPE = 112i32; 1755 pub const WinAccountKeyAdminsSid: WELL_KNOWN_SID_TYPE = 113i32; 1756 pub const WinAccountEnterpriseKeyAdminsSid: WELL_KNOWN_SID_TYPE = 114i32; 1757 pub const WinAuthenticationKeyTrustSid: WELL_KNOWN_SID_TYPE = 115i32; 1758 pub const WinAuthenticationKeyPropertyMFASid: WELL_KNOWN_SID_TYPE = 116i32; 1759 pub const WinAuthenticationKeyPropertyAttestationSid: WELL_KNOWN_SID_TYPE = 117i32; 1760 pub const WinAuthenticationFreshKeyAuthSid: WELL_KNOWN_SID_TYPE = 118i32; 1761 pub const WinBuiltinDeviceOwnersSid: WELL_KNOWN_SID_TYPE = 119i32; 1762