]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | #[cfg(feature = "Win32_Security_AppLocker")] |
2 | pub mod AppLocker; | |
3 | #[cfg(feature = "Win32_Security_Authentication")] | |
4 | pub mod Authentication; | |
5 | #[cfg(feature = "Win32_Security_Authorization")] | |
6 | pub mod Authorization; | |
7 | #[cfg(feature = "Win32_Security_ConfigurationSnapin")] | |
8 | pub mod ConfigurationSnapin; | |
9 | #[cfg(feature = "Win32_Security_Credentials")] | |
10 | pub mod Credentials; | |
11 | #[cfg(feature = "Win32_Security_Cryptography")] | |
12 | pub mod Cryptography; | |
13 | #[cfg(feature = "Win32_Security_DiagnosticDataQuery")] | |
14 | pub mod DiagnosticDataQuery; | |
15 | #[cfg(feature = "Win32_Security_DirectoryServices")] | |
16 | pub mod DirectoryServices; | |
17 | #[cfg(feature = "Win32_Security_EnterpriseData")] | |
18 | pub mod EnterpriseData; | |
19 | #[cfg(feature = "Win32_Security_ExtensibleAuthenticationProtocol")] | |
20 | pub mod ExtensibleAuthenticationProtocol; | |
21 | #[cfg(feature = "Win32_Security_Isolation")] | |
22 | pub mod Isolation; | |
23 | #[cfg(feature = "Win32_Security_LicenseProtection")] | |
24 | pub mod LicenseProtection; | |
25 | #[cfg(feature = "Win32_Security_NetworkAccessProtection")] | |
26 | pub mod NetworkAccessProtection; | |
27 | #[cfg(feature = "Win32_Security_Tpm")] | |
28 | pub mod Tpm; | |
29 | #[cfg(feature = "Win32_Security_WinTrust")] | |
30 | pub mod WinTrust; | |
31 | #[cfg(feature = "Win32_Security_WinWlx")] | |
32 | pub mod WinWlx; | |
33 | #[link(name = "windows")] | |
34 | extern "system" { | |
04454e1e | 35 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 36 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 37 | pub fn AccessCheck(psecuritydescriptor: PSECURITY_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; |
04454e1e | 38 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 39 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 40 | pub fn AccessCheckAndAuditAlarmA(subsystemname: ::windows_sys::core::PCSTR, handleid: *const ::core::ffi::c_void, objecttypename: ::windows_sys::core::PCSTR, objectname: ::windows_sys::core::PCSTR, securitydescriptor: PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccess: *mut u32, accessstatus: *mut i32, pfgenerateonclose: *mut i32) -> super::Foundation::BOOL; |
04454e1e | 41 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 42 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 43 | pub fn AccessCheckAndAuditAlarmW(subsystemname: ::windows_sys::core::PCWSTR, handleid: *const ::core::ffi::c_void, objecttypename: ::windows_sys::core::PCWSTR, objectname: ::windows_sys::core::PCWSTR, securitydescriptor: PSECURITY_DESCRIPTOR, desiredaccess: u32, genericmapping: *const GENERIC_MAPPING, objectcreation: super::Foundation::BOOL, grantedaccess: *mut u32, accessstatus: *mut i32, pfgenerateonclose: *mut i32) -> super::Foundation::BOOL; |
04454e1e | 44 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 45 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 46 | pub fn AccessCheckByType(psecuritydescriptor: PSECURITY_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; |
04454e1e | 47 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 48 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 49 | pub fn AccessCheckByTypeAndAuditAlarmA(subsystemname: ::windows_sys::core::PCSTR, handleid: *const ::core::ffi::c_void, objecttypename: ::windows_sys::core::PCSTR, objectname: ::windows_sys::core::PCSTR, securitydescriptor: PSECURITY_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::BOOL; |
04454e1e | 50 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 51 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 52 | pub fn AccessCheckByTypeAndAuditAlarmW(subsystemname: ::windows_sys::core::PCWSTR, handleid: *const ::core::ffi::c_void, objecttypename: ::windows_sys::core::PCWSTR, objectname: ::windows_sys::core::PCWSTR, securitydescriptor: PSECURITY_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::BOOL; |
04454e1e | 53 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 54 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 55 | pub fn AccessCheckByTypeResultList(psecuritydescriptor: PSECURITY_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; |
04454e1e | 56 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 57 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 58 | pub fn AccessCheckByTypeResultListAndAuditAlarmA(subsystemname: ::windows_sys::core::PCSTR, handleid: *const ::core::ffi::c_void, objecttypename: ::windows_sys::core::PCSTR, objectname: ::windows_sys::core::PCSTR, securitydescriptor: PSECURITY_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::BOOL; |
04454e1e | 59 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 60 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 61 | pub fn AccessCheckByTypeResultListAndAuditAlarmByHandleA(subsystemname: ::windows_sys::core::PCSTR, handleid: *const ::core::ffi::c_void, clienttoken: super::Foundation::HANDLE, objecttypename: ::windows_sys::core::PCSTR, objectname: ::windows_sys::core::PCSTR, securitydescriptor: PSECURITY_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::BOOL; |
04454e1e | 62 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 63 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 64 | pub fn AccessCheckByTypeResultListAndAuditAlarmByHandleW(subsystemname: ::windows_sys::core::PCWSTR, handleid: *const ::core::ffi::c_void, clienttoken: super::Foundation::HANDLE, objecttypename: ::windows_sys::core::PCWSTR, objectname: ::windows_sys::core::PCWSTR, securitydescriptor: PSECURITY_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::BOOL; |
04454e1e | 65 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 66 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 67 | pub fn AccessCheckByTypeResultListAndAuditAlarmW(subsystemname: ::windows_sys::core::PCWSTR, handleid: *const ::core::ffi::c_void, objecttypename: ::windows_sys::core::PCWSTR, objectname: ::windows_sys::core::PCWSTR, securitydescriptor: PSECURITY_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::BOOL; |
04454e1e | 68 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
69 | #[cfg(feature = "Win32_Foundation")] |
70 | pub fn AddAccessAllowedAce(pacl: *mut ACL, dwacerevision: u32, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL; | |
04454e1e | 71 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
72 | #[cfg(feature = "Win32_Foundation")] |
73 | pub fn AddAccessAllowedAceEx(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL; | |
04454e1e | 74 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
75 | #[cfg(feature = "Win32_Foundation")] |
76 | 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; | |
04454e1e | 77 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
78 | #[cfg(feature = "Win32_Foundation")] |
79 | pub fn AddAccessDeniedAce(pacl: *mut ACL, dwacerevision: u32, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL; | |
04454e1e | 80 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
81 | #[cfg(feature = "Win32_Foundation")] |
82 | pub fn AddAccessDeniedAceEx(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL; | |
04454e1e | 83 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
84 | #[cfg(feature = "Win32_Foundation")] |
85 | 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; | |
04454e1e | 86 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
87 | #[cfg(feature = "Win32_Foundation")] |
88 | pub fn AddAce(pacl: *mut ACL, dwacerevision: u32, dwstartingaceindex: u32, pacelist: *const ::core::ffi::c_void, nacelistlength: u32) -> super::Foundation::BOOL; | |
04454e1e | 89 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
90 | #[cfg(feature = "Win32_Foundation")] |
91 | 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; | |
04454e1e | 92 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
93 | #[cfg(feature = "Win32_Foundation")] |
94 | 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; | |
04454e1e | 95 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
96 | #[cfg(feature = "Win32_Foundation")] |
97 | 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; | |
04454e1e | 98 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 99 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
100 | pub fn AddConditionalAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, acetype: u8, accessmask: u32, psid: super::Foundation::PSID, conditionstr: ::windows_sys::core::PCWSTR, returnlength: *mut u32) -> super::Foundation::BOOL; |
101 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 FG |
102 | #[cfg(feature = "Win32_Foundation")] |
103 | pub fn AddMandatoryAce(pacl: *mut ACL, dwacerevision: ACE_REVISION, aceflags: ACE_FLAGS, mandatorypolicy: u32, plabelsid: super::Foundation::PSID) -> super::Foundation::BOOL; | |
04454e1e | 104 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
105 | #[cfg(feature = "Win32_Foundation")] |
106 | 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; | |
04454e1e | 107 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
108 | #[cfg(feature = "Win32_Foundation")] |
109 | pub fn AddScopedPolicyIDAce(pacl: *mut ACL, dwacerevision: u32, aceflags: ACE_FLAGS, accessmask: u32, psid: super::Foundation::PSID) -> super::Foundation::BOOL; | |
04454e1e | 110 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
111 | #[cfg(feature = "Win32_Foundation")] |
112 | 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; | |
04454e1e | 113 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
114 | #[cfg(feature = "Win32_Foundation")] |
115 | 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; | |
04454e1e | 116 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
117 | #[cfg(feature = "Win32_Foundation")] |
118 | 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; | |
04454e1e | 119 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
120 | #[cfg(feature = "Win32_Foundation")] |
121 | pub fn AllocateLocallyUniqueId(luid: *mut super::Foundation::LUID) -> super::Foundation::BOOL; | |
04454e1e | 122 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
123 | #[cfg(feature = "Win32_Foundation")] |
124 | pub fn AreAllAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> super::Foundation::BOOL; | |
04454e1e | 125 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
126 | #[cfg(feature = "Win32_Foundation")] |
127 | pub fn AreAnyAccessesGranted(grantedaccess: u32, desiredaccess: u32) -> super::Foundation::BOOL; | |
04454e1e | 128 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
129 | #[cfg(feature = "Win32_Foundation")] |
130 | pub fn CheckTokenCapability(tokenhandle: super::Foundation::HANDLE, capabilitysidtocheck: super::Foundation::PSID, hascapability: *mut super::Foundation::BOOL) -> super::Foundation::BOOL; | |
04454e1e | 131 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
132 | #[cfg(feature = "Win32_Foundation")] |
133 | pub fn CheckTokenMembership(tokenhandle: super::Foundation::HANDLE, sidtocheck: super::Foundation::PSID, ismember: *mut super::Foundation::BOOL) -> super::Foundation::BOOL; | |
04454e1e | 134 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
135 | #[cfg(feature = "Win32_Foundation")] |
136 | pub fn CheckTokenMembershipEx(tokenhandle: super::Foundation::HANDLE, sidtocheck: super::Foundation::PSID, flags: u32, ismember: *mut super::Foundation::BOOL) -> super::Foundation::BOOL; | |
04454e1e | 137 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 138 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 139 | pub fn ConvertToAutoInheritPrivateObjectSecurity(parentdescriptor: PSECURITY_DESCRIPTOR, currentsecuritydescriptor: PSECURITY_DESCRIPTOR, newsecuritydescriptor: *mut PSECURITY_DESCRIPTOR, objecttype: *const ::windows_sys::core::GUID, isdirectoryobject: super::Foundation::BOOLEAN, genericmapping: *const GENERIC_MAPPING) -> super::Foundation::BOOL; |
04454e1e | 140 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
141 | #[cfg(feature = "Win32_Foundation")] |
142 | pub fn CopySid(ndestinationsidlength: u32, pdestinationsid: super::Foundation::PSID, psourcesid: super::Foundation::PSID) -> super::Foundation::BOOL; | |
04454e1e | 143 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 144 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 145 | pub fn CreatePrivateObjectSecurity(parentdescriptor: PSECURITY_DESCRIPTOR, creatordescriptor: PSECURITY_DESCRIPTOR, newdescriptor: *mut PSECURITY_DESCRIPTOR, isdirectoryobject: super::Foundation::BOOL, token: super::Foundation::HANDLE, genericmapping: *const GENERIC_MAPPING) -> super::Foundation::BOOL; |
04454e1e | 146 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 147 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 148 | pub fn CreatePrivateObjectSecurityEx(parentdescriptor: PSECURITY_DESCRIPTOR, creatordescriptor: PSECURITY_DESCRIPTOR, newdescriptor: *mut PSECURITY_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; |
04454e1e | 149 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 150 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 151 | pub fn CreatePrivateObjectSecurityWithMultipleInheritance(parentdescriptor: PSECURITY_DESCRIPTOR, creatordescriptor: PSECURITY_DESCRIPTOR, newdescriptor: *mut PSECURITY_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; |
04454e1e | 152 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
153 | #[cfg(feature = "Win32_Foundation")] |
154 | 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; | |
04454e1e | 155 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
156 | #[cfg(feature = "Win32_Foundation")] |
157 | pub fn CreateWellKnownSid(wellknownsidtype: WELL_KNOWN_SID_TYPE, domainsid: super::Foundation::PSID, psid: super::Foundation::PSID, cbsid: *mut u32) -> super::Foundation::BOOL; | |
04454e1e | 158 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
159 | #[cfg(feature = "Win32_Foundation")] |
160 | pub fn DeleteAce(pacl: *mut ACL, dwaceindex: u32) -> super::Foundation::BOOL; | |
04454e1e | 161 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 162 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
163 | pub fn DeriveCapabilitySidsFromName(capname: ::windows_sys::core::PCWSTR, capabilitygroupsids: *mut *mut super::Foundation::PSID, capabilitygroupsidcount: *mut u32, capabilitysids: *mut *mut super::Foundation::PSID, capabilitysidcount: *mut u32) -> super::Foundation::BOOL; |
164 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 165 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 166 | pub fn DestroyPrivateObjectSecurity(objectdescriptor: *const PSECURITY_DESCRIPTOR) -> super::Foundation::BOOL; |
04454e1e | 167 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
168 | #[cfg(feature = "Win32_Foundation")] |
169 | pub fn DuplicateToken(existingtokenhandle: super::Foundation::HANDLE, impersonationlevel: SECURITY_IMPERSONATION_LEVEL, duplicatetokenhandle: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL; | |
04454e1e | 170 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
171 | #[cfg(feature = "Win32_Foundation")] |
172 | 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; | |
04454e1e | 173 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
174 | #[cfg(feature = "Win32_Foundation")] |
175 | pub fn EqualDomainSid(psid1: super::Foundation::PSID, psid2: super::Foundation::PSID, pfequal: *mut super::Foundation::BOOL) -> super::Foundation::BOOL; | |
04454e1e | 176 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
177 | #[cfg(feature = "Win32_Foundation")] |
178 | pub fn EqualPrefixSid(psid1: super::Foundation::PSID, psid2: super::Foundation::PSID) -> super::Foundation::BOOL; | |
04454e1e | 179 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
180 | #[cfg(feature = "Win32_Foundation")] |
181 | pub fn EqualSid(psid1: super::Foundation::PSID, psid2: super::Foundation::PSID) -> super::Foundation::BOOL; | |
04454e1e | 182 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
183 | #[cfg(feature = "Win32_Foundation")] |
184 | pub fn FindFirstFreeAce(pacl: *const ACL, pace: *mut *mut ::core::ffi::c_void) -> super::Foundation::BOOL; | |
04454e1e | 185 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
186 | #[cfg(feature = "Win32_Foundation")] |
187 | pub fn FreeSid(psid: super::Foundation::PSID) -> *mut ::core::ffi::c_void; | |
04454e1e | 188 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
189 | #[cfg(feature = "Win32_Foundation")] |
190 | pub fn GetAce(pacl: *const ACL, dwaceindex: u32, pace: *mut *mut ::core::ffi::c_void) -> super::Foundation::BOOL; | |
04454e1e | 191 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
192 | #[cfg(feature = "Win32_Foundation")] |
193 | pub fn GetAclInformation(pacl: *const ACL, paclinformation: *mut ::core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> super::Foundation::BOOL; | |
04454e1e | 194 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
195 | #[cfg(feature = "Win32_Foundation")] |
196 | pub fn GetAppContainerAce(acl: *const ACL, startingaceindex: u32, appcontainerace: *mut *mut ::core::ffi::c_void, appcontaineraceindex: *mut u32) -> super::Foundation::BOOL; | |
04454e1e | 197 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
198 | #[cfg(feature = "Win32_Foundation")] |
199 | 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; | |
04454e1e | 200 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 201 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 202 | pub fn GetFileSecurityA(lpfilename: ::windows_sys::core::PCSTR, requestedinformation: u32, psecuritydescriptor: PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL; |
04454e1e | 203 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 204 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 205 | pub fn GetFileSecurityW(lpfilename: ::windows_sys::core::PCWSTR, requestedinformation: u32, psecuritydescriptor: PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL; |
04454e1e | 206 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 207 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 208 | pub fn GetKernelObjectSecurity(handle: super::Foundation::HANDLE, requestedinformation: u32, psecuritydescriptor: PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL; |
04454e1e | 209 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
210 | #[cfg(feature = "Win32_Foundation")] |
211 | pub fn GetLengthSid(psid: super::Foundation::PSID) -> u32; | |
04454e1e | 212 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 213 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 214 | pub fn GetPrivateObjectSecurity(objectdescriptor: PSECURITY_DESCRIPTOR, securityinformation: u32, resultantdescriptor: PSECURITY_DESCRIPTOR, descriptorlength: u32, returnlength: *mut u32) -> super::Foundation::BOOL; |
04454e1e | 215 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 216 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 217 | pub fn GetSecurityDescriptorControl(psecuritydescriptor: PSECURITY_DESCRIPTOR, pcontrol: *mut u16, lpdwrevision: *mut u32) -> super::Foundation::BOOL; |
04454e1e | 218 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 219 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 220 | pub fn GetSecurityDescriptorDacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, lpbdaclpresent: *mut i32, pdacl: *mut *mut ACL, lpbdacldefaulted: *mut i32) -> super::Foundation::BOOL; |
04454e1e | 221 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 222 | #[cfg(feature = "Win32_Foundation")] |
923072b8 FG |
223 | pub fn GetSecurityDescriptorGroup(psecuritydescriptor: PSECURITY_DESCRIPTOR, pgroup: *mut super::Foundation::PSID, lpbgroupdefaulted: *mut i32) -> super::Foundation::BOOL; |
224 | #[doc = "*Required features: `\"Win32_Security\"`*"] | |
225 | pub fn GetSecurityDescriptorLength(psecuritydescriptor: PSECURITY_DESCRIPTOR) -> u32; | |
04454e1e | 226 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 227 | #[cfg(feature = "Win32_Foundation")] |
923072b8 FG |
228 | pub fn GetSecurityDescriptorOwner(psecuritydescriptor: PSECURITY_DESCRIPTOR, powner: *mut super::Foundation::PSID, lpbownerdefaulted: *mut i32) -> super::Foundation::BOOL; |
229 | #[doc = "*Required features: `\"Win32_Security\"`*"] | |
230 | pub fn GetSecurityDescriptorRMControl(securitydescriptor: PSECURITY_DESCRIPTOR, rmcontrol: *mut u8) -> u32; | |
04454e1e | 231 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 232 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 233 | pub fn GetSecurityDescriptorSacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, lpbsaclpresent: *mut i32, psacl: *mut *mut ACL, lpbsacldefaulted: *mut i32) -> super::Foundation::BOOL; |
04454e1e | 234 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
235 | #[cfg(feature = "Win32_Foundation")] |
236 | pub fn GetSidIdentifierAuthority(psid: super::Foundation::PSID) -> *mut SID_IDENTIFIER_AUTHORITY; | |
04454e1e | 237 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 238 | pub fn GetSidLengthRequired(nsubauthoritycount: u8) -> u32; |
04454e1e | 239 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
240 | #[cfg(feature = "Win32_Foundation")] |
241 | pub fn GetSidSubAuthority(psid: super::Foundation::PSID, nsubauthority: u32) -> *mut u32; | |
04454e1e | 242 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
243 | #[cfg(feature = "Win32_Foundation")] |
244 | pub fn GetSidSubAuthorityCount(psid: super::Foundation::PSID) -> *mut u8; | |
04454e1e | 245 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
246 | #[cfg(feature = "Win32_Foundation")] |
247 | 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; | |
04454e1e | 248 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 249 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 250 | pub fn GetUserObjectSecurity(hobj: super::Foundation::HANDLE, psirequested: *const u32, psid: PSECURITY_DESCRIPTOR, nlength: u32, lpnlengthneeded: *mut u32) -> super::Foundation::BOOL; |
04454e1e | 251 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
252 | #[cfg(feature = "Win32_Foundation")] |
253 | pub fn GetWindowsAccountDomainSid(psid: super::Foundation::PSID, pdomainsid: super::Foundation::PSID, cbdomainsid: *mut u32) -> super::Foundation::BOOL; | |
04454e1e | 254 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
255 | #[cfg(feature = "Win32_Foundation")] |
256 | pub fn ImpersonateAnonymousToken(threadhandle: super::Foundation::HANDLE) -> super::Foundation::BOOL; | |
04454e1e | 257 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
258 | #[cfg(feature = "Win32_Foundation")] |
259 | pub fn ImpersonateLoggedOnUser(htoken: super::Foundation::HANDLE) -> super::Foundation::BOOL; | |
04454e1e | 260 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
261 | #[cfg(feature = "Win32_Foundation")] |
262 | pub fn ImpersonateSelf(impersonationlevel: SECURITY_IMPERSONATION_LEVEL) -> super::Foundation::BOOL; | |
04454e1e | 263 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
264 | #[cfg(feature = "Win32_Foundation")] |
265 | pub fn InitializeAcl(pacl: *mut ACL, nacllength: u32, dwaclrevision: u32) -> super::Foundation::BOOL; | |
04454e1e | 266 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 267 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 268 | pub fn InitializeSecurityDescriptor(psecuritydescriptor: PSECURITY_DESCRIPTOR, dwrevision: u32) -> super::Foundation::BOOL; |
04454e1e | 269 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
270 | #[cfg(feature = "Win32_Foundation")] |
271 | pub fn InitializeSid(sid: super::Foundation::PSID, pidentifierauthority: *const SID_IDENTIFIER_AUTHORITY, nsubauthoritycount: u8) -> super::Foundation::BOOL; | |
04454e1e | 272 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
273 | #[cfg(feature = "Win32_Foundation")] |
274 | pub fn IsTokenRestricted(tokenhandle: super::Foundation::HANDLE) -> super::Foundation::BOOL; | |
04454e1e | 275 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
276 | #[cfg(feature = "Win32_Foundation")] |
277 | pub fn IsValidAcl(pacl: *const ACL) -> super::Foundation::BOOL; | |
04454e1e | 278 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 279 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 280 | pub fn IsValidSecurityDescriptor(psecuritydescriptor: PSECURITY_DESCRIPTOR) -> super::Foundation::BOOL; |
04454e1e | 281 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
282 | #[cfg(feature = "Win32_Foundation")] |
283 | pub fn IsValidSid(psid: super::Foundation::PSID) -> super::Foundation::BOOL; | |
04454e1e | 284 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
285 | #[cfg(feature = "Win32_Foundation")] |
286 | pub fn IsWellKnownSid(psid: super::Foundation::PSID, wellknownsidtype: WELL_KNOWN_SID_TYPE) -> super::Foundation::BOOL; | |
04454e1e | 287 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 288 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
289 | pub fn LogonUserA(lpszusername: ::windows_sys::core::PCSTR, lpszdomain: ::windows_sys::core::PCSTR, lpszpassword: ::windows_sys::core::PCSTR, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL; |
290 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 291 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
292 | pub fn LogonUserExA(lpszusername: ::windows_sys::core::PCSTR, lpszdomain: ::windows_sys::core::PCSTR, lpszpassword: ::windows_sys::core::PCSTR, 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; |
293 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 294 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
295 | pub fn LogonUserExW(lpszusername: ::windows_sys::core::PCWSTR, lpszdomain: ::windows_sys::core::PCWSTR, lpszpassword: ::windows_sys::core::PCWSTR, 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; |
296 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 297 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
298 | pub fn LogonUserW(lpszusername: ::windows_sys::core::PCWSTR, lpszdomain: ::windows_sys::core::PCWSTR, lpszpassword: ::windows_sys::core::PCWSTR, dwlogontype: LOGON32_LOGON, dwlogonprovider: LOGON32_PROVIDER, phtoken: *mut super::Foundation::HANDLE) -> super::Foundation::BOOL; |
299 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 300 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
301 | pub fn LookupAccountNameA(lpsystemname: ::windows_sys::core::PCSTR, lpaccountname: ::windows_sys::core::PCSTR, sid: super::Foundation::PSID, cbsid: *mut u32, referenceddomainname: ::windows_sys::core::PSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL; |
302 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 303 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
304 | pub fn LookupAccountNameW(lpsystemname: ::windows_sys::core::PCWSTR, lpaccountname: ::windows_sys::core::PCWSTR, sid: super::Foundation::PSID, cbsid: *mut u32, referenceddomainname: ::windows_sys::core::PWSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL; |
305 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 306 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
307 | pub fn LookupAccountSidA(lpsystemname: ::windows_sys::core::PCSTR, sid: super::Foundation::PSID, name: ::windows_sys::core::PSTR, cchname: *mut u32, referenceddomainname: ::windows_sys::core::PSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL; |
308 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 309 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
310 | pub fn LookupAccountSidW(lpsystemname: ::windows_sys::core::PCWSTR, sid: super::Foundation::PSID, name: ::windows_sys::core::PWSTR, cchname: *mut u32, referenceddomainname: ::windows_sys::core::PWSTR, cchreferenceddomainname: *mut u32, peuse: *mut SID_NAME_USE) -> super::Foundation::BOOL; |
311 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 312 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
313 | pub fn LookupPrivilegeDisplayNameA(lpsystemname: ::windows_sys::core::PCSTR, lpname: ::windows_sys::core::PCSTR, lpdisplayname: ::windows_sys::core::PSTR, cchdisplayname: *mut u32, lplanguageid: *mut u32) -> super::Foundation::BOOL; |
314 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 315 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
316 | pub fn LookupPrivilegeDisplayNameW(lpsystemname: ::windows_sys::core::PCWSTR, lpname: ::windows_sys::core::PCWSTR, lpdisplayname: ::windows_sys::core::PWSTR, cchdisplayname: *mut u32, lplanguageid: *mut u32) -> super::Foundation::BOOL; |
317 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 318 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
319 | pub fn LookupPrivilegeNameA(lpsystemname: ::windows_sys::core::PCSTR, lpluid: *const super::Foundation::LUID, lpname: ::windows_sys::core::PSTR, cchname: *mut u32) -> super::Foundation::BOOL; |
320 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 321 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
322 | pub fn LookupPrivilegeNameW(lpsystemname: ::windows_sys::core::PCWSTR, lpluid: *const super::Foundation::LUID, lpname: ::windows_sys::core::PWSTR, cchname: *mut u32) -> super::Foundation::BOOL; |
323 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 324 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
325 | pub fn LookupPrivilegeValueA(lpsystemname: ::windows_sys::core::PCSTR, lpname: ::windows_sys::core::PCSTR, lpluid: *mut super::Foundation::LUID) -> super::Foundation::BOOL; |
326 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 327 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
328 | pub fn LookupPrivilegeValueW(lpsystemname: ::windows_sys::core::PCWSTR, lpname: ::windows_sys::core::PCWSTR, lpluid: *mut super::Foundation::LUID) -> super::Foundation::BOOL; |
329 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 330 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 331 | pub fn MakeAbsoluteSD(pselfrelativesecuritydescriptor: PSECURITY_DESCRIPTOR, pabsolutesecuritydescriptor: PSECURITY_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; |
04454e1e | 332 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 333 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 334 | pub fn MakeSelfRelativeSD(pabsolutesecuritydescriptor: PSECURITY_DESCRIPTOR, pselfrelativesecuritydescriptor: PSECURITY_DESCRIPTOR, lpdwbufferlength: *mut u32) -> super::Foundation::BOOL; |
04454e1e | 335 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 336 | pub fn MapGenericMask(accessmask: *mut u32, genericmapping: *const GENERIC_MAPPING); |
04454e1e | 337 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 338 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
339 | pub fn ObjectCloseAuditAlarmA(subsystemname: ::windows_sys::core::PCSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL; |
340 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 341 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
342 | pub fn ObjectCloseAuditAlarmW(subsystemname: ::windows_sys::core::PCWSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL; |
343 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 344 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
345 | pub fn ObjectDeleteAuditAlarmA(subsystemname: ::windows_sys::core::PCSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL; |
346 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 347 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
348 | pub fn ObjectDeleteAuditAlarmW(subsystemname: ::windows_sys::core::PCWSTR, handleid: *const ::core::ffi::c_void, generateonclose: super::Foundation::BOOL) -> super::Foundation::BOOL; |
349 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 350 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 351 | pub fn ObjectOpenAuditAlarmA(subsystemname: ::windows_sys::core::PCSTR, handleid: *const ::core::ffi::c_void, objecttypename: ::windows_sys::core::PCSTR, objectname: ::windows_sys::core::PCSTR, psecuritydescriptor: PSECURITY_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; |
04454e1e | 352 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 353 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 354 | pub fn ObjectOpenAuditAlarmW(subsystemname: ::windows_sys::core::PCWSTR, handleid: *const ::core::ffi::c_void, objecttypename: ::windows_sys::core::PCWSTR, objectname: ::windows_sys::core::PCWSTR, psecuritydescriptor: PSECURITY_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; |
04454e1e | 355 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 356 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
357 | pub fn ObjectPrivilegeAuditAlarmA(subsystemname: ::windows_sys::core::PCSTR, handleid: *const ::core::ffi::c_void, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL; |
358 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 359 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
360 | pub fn ObjectPrivilegeAuditAlarmW(subsystemname: ::windows_sys::core::PCWSTR, handleid: *const ::core::ffi::c_void, clienttoken: super::Foundation::HANDLE, desiredaccess: u32, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL; |
361 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 FG |
362 | #[cfg(feature = "Win32_Foundation")] |
363 | pub fn PrivilegeCheck(clienttoken: super::Foundation::HANDLE, requiredprivileges: *mut PRIVILEGE_SET, pfresult: *mut i32) -> super::Foundation::BOOL; | |
04454e1e | 364 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 365 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
366 | pub fn PrivilegedServiceAuditAlarmA(subsystemname: ::windows_sys::core::PCSTR, servicename: ::windows_sys::core::PCSTR, clienttoken: super::Foundation::HANDLE, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL; |
367 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] | |
5e7ed085 | 368 | #[cfg(feature = "Win32_Foundation")] |
04454e1e FG |
369 | pub fn PrivilegedServiceAuditAlarmW(subsystemname: ::windows_sys::core::PCWSTR, servicename: ::windows_sys::core::PCWSTR, clienttoken: super::Foundation::HANDLE, privileges: *const PRIVILEGE_SET, accessgranted: super::Foundation::BOOL) -> super::Foundation::BOOL; |
370 | #[doc = "*Required features: `\"Win32_Security\"`*"] | |
5e7ed085 | 371 | pub fn QuerySecurityAccessMask(securityinformation: u32, desiredaccess: *mut u32); |
04454e1e | 372 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
373 | #[cfg(feature = "Win32_Foundation")] |
374 | pub fn RevertToSelf() -> super::Foundation::BOOL; | |
04454e1e | 375 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
376 | #[cfg(feature = "Win32_Foundation")] |
377 | pub fn RtlConvertSidToUnicodeString(unicodestring: *mut super::Foundation::UNICODE_STRING, sid: super::Foundation::PSID, allocatedestinationstring: super::Foundation::BOOLEAN) -> super::Foundation::NTSTATUS; | |
04454e1e | 378 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 379 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 380 | pub fn RtlNormalizeSecurityDescriptor(securitydescriptor: *mut PSECURITY_DESCRIPTOR, securitydescriptorlength: u32, newsecuritydescriptor: *mut PSECURITY_DESCRIPTOR, newsecuritydescriptorlength: *mut u32, checkonly: super::Foundation::BOOLEAN) -> super::Foundation::BOOLEAN; |
04454e1e | 381 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
382 | #[cfg(feature = "Win32_Foundation")] |
383 | pub fn SetAclInformation(pacl: *mut ACL, paclinformation: *const ::core::ffi::c_void, naclinformationlength: u32, dwaclinformationclass: ACL_INFORMATION_CLASS) -> super::Foundation::BOOL; | |
04454e1e | 384 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
385 | #[cfg(feature = "Win32_Foundation")] |
386 | pub fn SetCachedSigningLevel(sourcefiles: *const super::Foundation::HANDLE, sourcefilecount: u32, flags: u32, targetfile: super::Foundation::HANDLE) -> super::Foundation::BOOL; | |
04454e1e | 387 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 388 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 389 | pub fn SetFileSecurityA(lpfilename: ::windows_sys::core::PCSTR, securityinformation: u32, psecuritydescriptor: PSECURITY_DESCRIPTOR) -> super::Foundation::BOOL; |
04454e1e | 390 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 391 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 392 | pub fn SetFileSecurityW(lpfilename: ::windows_sys::core::PCWSTR, securityinformation: u32, psecuritydescriptor: PSECURITY_DESCRIPTOR) -> super::Foundation::BOOL; |
04454e1e | 393 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 394 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 395 | pub fn SetKernelObjectSecurity(handle: super::Foundation::HANDLE, securityinformation: u32, securitydescriptor: PSECURITY_DESCRIPTOR) -> super::Foundation::BOOL; |
04454e1e | 396 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 397 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 398 | pub fn SetPrivateObjectSecurity(securityinformation: u32, modificationdescriptor: PSECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut PSECURITY_DESCRIPTOR, genericmapping: *const GENERIC_MAPPING, token: super::Foundation::HANDLE) -> super::Foundation::BOOL; |
04454e1e | 399 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 400 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 401 | pub fn SetPrivateObjectSecurityEx(securityinformation: u32, modificationdescriptor: PSECURITY_DESCRIPTOR, objectssecuritydescriptor: *mut PSECURITY_DESCRIPTOR, autoinheritflags: SECURITY_AUTO_INHERIT_FLAGS, genericmapping: *const GENERIC_MAPPING, token: super::Foundation::HANDLE) -> super::Foundation::BOOL; |
04454e1e | 402 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 403 | pub fn SetSecurityAccessMask(securityinformation: u32, desiredaccess: *mut u32); |
04454e1e | 404 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 405 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 406 | pub fn SetSecurityDescriptorControl(psecuritydescriptor: PSECURITY_DESCRIPTOR, controlbitsofinterest: u16, controlbitstoset: u16) -> super::Foundation::BOOL; |
04454e1e | 407 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 408 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 409 | pub fn SetSecurityDescriptorDacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, bdaclpresent: super::Foundation::BOOL, pdacl: *const ACL, bdacldefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL; |
04454e1e | 410 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 411 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 412 | pub fn SetSecurityDescriptorGroup(psecuritydescriptor: PSECURITY_DESCRIPTOR, pgroup: super::Foundation::PSID, bgroupdefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL; |
04454e1e | 413 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 414 | #[cfg(feature = "Win32_Foundation")] |
923072b8 FG |
415 | pub fn SetSecurityDescriptorOwner(psecuritydescriptor: PSECURITY_DESCRIPTOR, powner: super::Foundation::PSID, bownerdefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL; |
416 | #[doc = "*Required features: `\"Win32_Security\"`*"] | |
417 | pub fn SetSecurityDescriptorRMControl(securitydescriptor: PSECURITY_DESCRIPTOR, rmcontrol: *const u8) -> u32; | |
04454e1e | 418 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 419 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 420 | pub fn SetSecurityDescriptorSacl(psecuritydescriptor: PSECURITY_DESCRIPTOR, bsaclpresent: super::Foundation::BOOL, psacl: *const ACL, bsacldefaulted: super::Foundation::BOOL) -> super::Foundation::BOOL; |
04454e1e | 421 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
422 | #[cfg(feature = "Win32_Foundation")] |
423 | pub fn SetTokenInformation(tokenhandle: super::Foundation::HANDLE, tokeninformationclass: TOKEN_INFORMATION_CLASS, tokeninformation: *const ::core::ffi::c_void, tokeninformationlength: u32) -> super::Foundation::BOOL; | |
04454e1e | 424 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 | 425 | #[cfg(feature = "Win32_Foundation")] |
923072b8 | 426 | pub fn SetUserObjectSecurity(hobj: super::Foundation::HANDLE, psirequested: *const OBJECT_SECURITY_INFORMATION, psid: PSECURITY_DESCRIPTOR) -> super::Foundation::BOOL; |
5e7ed085 FG |
427 | } |
428 | #[repr(C)] | |
04454e1e | 429 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
430 | pub struct ACCESS_ALLOWED_ACE { |
431 | pub Header: ACE_HEADER, | |
432 | pub Mask: u32, | |
433 | pub SidStart: u32, | |
434 | } | |
435 | impl ::core::marker::Copy for ACCESS_ALLOWED_ACE {} | |
436 | impl ::core::clone::Clone for ACCESS_ALLOWED_ACE { | |
437 | fn clone(&self) -> Self { | |
438 | *self | |
439 | } | |
440 | } | |
441 | #[repr(C)] | |
04454e1e | 442 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
443 | pub struct ACCESS_ALLOWED_CALLBACK_ACE { |
444 | pub Header: ACE_HEADER, | |
445 | pub Mask: u32, | |
446 | pub SidStart: u32, | |
447 | } | |
448 | impl ::core::marker::Copy for ACCESS_ALLOWED_CALLBACK_ACE {} | |
449 | impl ::core::clone::Clone for ACCESS_ALLOWED_CALLBACK_ACE { | |
450 | fn clone(&self) -> Self { | |
451 | *self | |
452 | } | |
453 | } | |
454 | #[repr(C)] | |
04454e1e | 455 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
456 | pub struct ACCESS_ALLOWED_CALLBACK_OBJECT_ACE { |
457 | pub Header: ACE_HEADER, | |
458 | pub Mask: u32, | |
459 | pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, | |
460 | pub ObjectType: ::windows_sys::core::GUID, | |
461 | pub InheritedObjectType: ::windows_sys::core::GUID, | |
462 | pub SidStart: u32, | |
463 | } | |
464 | impl ::core::marker::Copy for ACCESS_ALLOWED_CALLBACK_OBJECT_ACE {} | |
465 | impl ::core::clone::Clone for ACCESS_ALLOWED_CALLBACK_OBJECT_ACE { | |
466 | fn clone(&self) -> Self { | |
467 | *self | |
468 | } | |
469 | } | |
470 | #[repr(C)] | |
04454e1e | 471 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
472 | pub struct ACCESS_ALLOWED_OBJECT_ACE { |
473 | pub Header: ACE_HEADER, | |
474 | pub Mask: u32, | |
475 | pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, | |
476 | pub ObjectType: ::windows_sys::core::GUID, | |
477 | pub InheritedObjectType: ::windows_sys::core::GUID, | |
478 | pub SidStart: u32, | |
479 | } | |
480 | impl ::core::marker::Copy for ACCESS_ALLOWED_OBJECT_ACE {} | |
481 | impl ::core::clone::Clone for ACCESS_ALLOWED_OBJECT_ACE { | |
482 | fn clone(&self) -> Self { | |
483 | *self | |
484 | } | |
485 | } | |
486 | #[repr(C)] | |
04454e1e | 487 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
488 | pub struct ACCESS_DENIED_ACE { |
489 | pub Header: ACE_HEADER, | |
490 | pub Mask: u32, | |
491 | pub SidStart: u32, | |
492 | } | |
493 | impl ::core::marker::Copy for ACCESS_DENIED_ACE {} | |
494 | impl ::core::clone::Clone for ACCESS_DENIED_ACE { | |
495 | fn clone(&self) -> Self { | |
496 | *self | |
497 | } | |
498 | } | |
499 | #[repr(C)] | |
04454e1e | 500 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
501 | pub struct ACCESS_DENIED_CALLBACK_ACE { |
502 | pub Header: ACE_HEADER, | |
503 | pub Mask: u32, | |
504 | pub SidStart: u32, | |
505 | } | |
506 | impl ::core::marker::Copy for ACCESS_DENIED_CALLBACK_ACE {} | |
507 | impl ::core::clone::Clone for ACCESS_DENIED_CALLBACK_ACE { | |
508 | fn clone(&self) -> Self { | |
509 | *self | |
510 | } | |
511 | } | |
512 | #[repr(C)] | |
04454e1e | 513 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
514 | pub struct ACCESS_DENIED_CALLBACK_OBJECT_ACE { |
515 | pub Header: ACE_HEADER, | |
516 | pub Mask: u32, | |
517 | pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, | |
518 | pub ObjectType: ::windows_sys::core::GUID, | |
519 | pub InheritedObjectType: ::windows_sys::core::GUID, | |
520 | pub SidStart: u32, | |
521 | } | |
522 | impl ::core::marker::Copy for ACCESS_DENIED_CALLBACK_OBJECT_ACE {} | |
523 | impl ::core::clone::Clone for ACCESS_DENIED_CALLBACK_OBJECT_ACE { | |
524 | fn clone(&self) -> Self { | |
525 | *self | |
526 | } | |
527 | } | |
528 | #[repr(C)] | |
04454e1e | 529 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
530 | pub struct ACCESS_DENIED_OBJECT_ACE { |
531 | pub Header: ACE_HEADER, | |
532 | pub Mask: u32, | |
533 | pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, | |
534 | pub ObjectType: ::windows_sys::core::GUID, | |
535 | pub InheritedObjectType: ::windows_sys::core::GUID, | |
536 | pub SidStart: u32, | |
537 | } | |
538 | impl ::core::marker::Copy for ACCESS_DENIED_OBJECT_ACE {} | |
539 | impl ::core::clone::Clone for ACCESS_DENIED_OBJECT_ACE { | |
540 | fn clone(&self) -> Self { | |
541 | *self | |
542 | } | |
543 | } | |
544 | #[repr(C)] | |
04454e1e | 545 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
546 | pub struct ACCESS_REASONS { |
547 | pub Data: [u32; 32], | |
548 | } | |
549 | impl ::core::marker::Copy for ACCESS_REASONS {} | |
550 | impl ::core::clone::Clone for ACCESS_REASONS { | |
551 | fn clone(&self) -> Self { | |
552 | *self | |
553 | } | |
554 | } | |
04454e1e | 555 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 556 | pub type ACE_FLAGS = u32; |
04454e1e | 557 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 558 | pub const CONTAINER_INHERIT_ACE: ACE_FLAGS = 2u32; |
04454e1e | 559 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 560 | pub const FAILED_ACCESS_ACE_FLAG: ACE_FLAGS = 128u32; |
04454e1e | 561 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 562 | pub const INHERIT_ONLY_ACE: ACE_FLAGS = 8u32; |
04454e1e | 563 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 564 | pub const INHERITED_ACE: ACE_FLAGS = 16u32; |
04454e1e | 565 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 566 | pub const NO_PROPAGATE_INHERIT_ACE: ACE_FLAGS = 4u32; |
04454e1e | 567 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 568 | pub const OBJECT_INHERIT_ACE: ACE_FLAGS = 1u32; |
04454e1e | 569 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 570 | pub const SUCCESSFUL_ACCESS_ACE_FLAG: ACE_FLAGS = 64u32; |
04454e1e | 571 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 572 | pub const SUB_CONTAINERS_AND_OBJECTS_INHERIT: ACE_FLAGS = 3u32; |
04454e1e | 573 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 574 | pub const SUB_CONTAINERS_ONLY_INHERIT: ACE_FLAGS = 2u32; |
04454e1e | 575 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 576 | pub const SUB_OBJECTS_ONLY_INHERIT: ACE_FLAGS = 1u32; |
04454e1e | 577 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 578 | pub const INHERIT_NO_PROPAGATE: ACE_FLAGS = 4u32; |
04454e1e | 579 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 580 | pub const INHERIT_ONLY: ACE_FLAGS = 8u32; |
04454e1e | 581 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 582 | pub const NO_INHERITANCE: ACE_FLAGS = 0u32; |
5e7ed085 | 583 | #[repr(C)] |
04454e1e | 584 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
585 | pub struct ACE_HEADER { |
586 | pub AceType: u8, | |
587 | pub AceFlags: u8, | |
588 | pub AceSize: u16, | |
589 | } | |
590 | impl ::core::marker::Copy for ACE_HEADER {} | |
591 | impl ::core::clone::Clone for ACE_HEADER { | |
592 | fn clone(&self) -> Self { | |
593 | *self | |
594 | } | |
595 | } | |
04454e1e | 596 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 597 | pub type ACE_REVISION = u32; |
04454e1e | 598 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 599 | pub const ACL_REVISION: ACE_REVISION = 2u32; |
04454e1e | 600 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
601 | pub const ACL_REVISION_DS: ACE_REVISION = 4u32; |
602 | #[repr(C)] | |
04454e1e | 603 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
604 | pub struct ACL { |
605 | pub AclRevision: u8, | |
606 | pub Sbz1: u8, | |
607 | pub AclSize: u16, | |
608 | pub AceCount: u16, | |
609 | pub Sbz2: u16, | |
610 | } | |
611 | impl ::core::marker::Copy for ACL {} | |
612 | impl ::core::clone::Clone for ACL { | |
613 | fn clone(&self) -> Self { | |
614 | *self | |
615 | } | |
616 | } | |
04454e1e | 617 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 618 | pub type ACL_INFORMATION_CLASS = i32; |
04454e1e | 619 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 620 | pub const AclRevisionInformation: ACL_INFORMATION_CLASS = 1i32; |
04454e1e | 621 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
622 | pub const AclSizeInformation: ACL_INFORMATION_CLASS = 2i32; |
623 | #[repr(C)] | |
04454e1e | 624 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
625 | pub struct ACL_REVISION_INFORMATION { |
626 | pub AclRevision: u32, | |
627 | } | |
628 | impl ::core::marker::Copy for ACL_REVISION_INFORMATION {} | |
629 | impl ::core::clone::Clone for ACL_REVISION_INFORMATION { | |
630 | fn clone(&self) -> Self { | |
631 | *self | |
632 | } | |
633 | } | |
634 | #[repr(C)] | |
04454e1e | 635 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
636 | pub struct ACL_SIZE_INFORMATION { |
637 | pub AceCount: u32, | |
638 | pub AclBytesInUse: u32, | |
639 | pub AclBytesFree: u32, | |
640 | } | |
641 | impl ::core::marker::Copy for ACL_SIZE_INFORMATION {} | |
642 | impl ::core::clone::Clone for ACL_SIZE_INFORMATION { | |
643 | fn clone(&self) -> Self { | |
644 | *self | |
645 | } | |
646 | } | |
04454e1e | 647 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 648 | pub type AUDIT_EVENT_TYPE = i32; |
04454e1e | 649 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 650 | pub const AuditEventObjectAccess: AUDIT_EVENT_TYPE = 0i32; |
04454e1e | 651 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
652 | pub const AuditEventDirectoryServiceAccess: AUDIT_EVENT_TYPE = 1i32; |
653 | #[repr(C)] | |
04454e1e | 654 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
655 | pub struct CLAIM_SECURITY_ATTRIBUTES_INFORMATION { |
656 | pub Version: u16, | |
657 | pub Reserved: u16, | |
658 | pub AttributeCount: u32, | |
659 | pub Attribute: CLAIM_SECURITY_ATTRIBUTES_INFORMATION_0, | |
660 | } | |
5e7ed085 | 661 | impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTES_INFORMATION {} |
5e7ed085 FG |
662 | impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTES_INFORMATION { |
663 | fn clone(&self) -> Self { | |
664 | *self | |
665 | } | |
666 | } | |
667 | #[repr(C)] | |
04454e1e | 668 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
669 | pub union CLAIM_SECURITY_ATTRIBUTES_INFORMATION_0 { |
670 | pub pAttributeV1: *mut CLAIM_SECURITY_ATTRIBUTE_V1, | |
671 | } | |
5e7ed085 | 672 | impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTES_INFORMATION_0 {} |
5e7ed085 FG |
673 | impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTES_INFORMATION_0 { |
674 | fn clone(&self) -> Self { | |
675 | *self | |
676 | } | |
677 | } | |
04454e1e | 678 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 679 | pub type CLAIM_SECURITY_ATTRIBUTE_FLAGS = u32; |
04454e1e | 680 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 681 | pub const CLAIM_SECURITY_ATTRIBUTE_NON_INHERITABLE: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 1u32; |
04454e1e | 682 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 683 | pub const CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 2u32; |
04454e1e | 684 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 685 | pub const CLAIM_SECURITY_ATTRIBUTE_USE_FOR_DENY_ONLY: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 4u32; |
04454e1e | 686 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 687 | pub const CLAIM_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 8u32; |
04454e1e | 688 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 689 | pub const CLAIM_SECURITY_ATTRIBUTE_DISABLED: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 16u32; |
04454e1e | 690 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
691 | pub const CLAIM_SECURITY_ATTRIBUTE_MANDATORY: CLAIM_SECURITY_ATTRIBUTE_FLAGS = 32u32; |
692 | #[repr(C)] | |
04454e1e | 693 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
694 | pub struct CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE { |
695 | pub Version: u64, | |
04454e1e | 696 | pub Name: ::windows_sys::core::PWSTR, |
5e7ed085 | 697 | } |
5e7ed085 | 698 | impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE {} |
5e7ed085 FG |
699 | impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE { |
700 | fn clone(&self) -> Self { | |
701 | *self | |
702 | } | |
703 | } | |
704 | #[repr(C)] | |
04454e1e | 705 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
706 | pub struct CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE { |
707 | pub pValue: *mut ::core::ffi::c_void, | |
708 | pub ValueLength: u32, | |
709 | } | |
710 | impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE {} | |
711 | impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE { | |
712 | fn clone(&self) -> Self { | |
713 | *self | |
714 | } | |
715 | } | |
716 | #[repr(C)] | |
04454e1e | 717 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
718 | pub struct CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 { |
719 | pub Name: u32, | |
720 | pub ValueType: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE, | |
721 | pub Reserved: u16, | |
722 | pub Flags: CLAIM_SECURITY_ATTRIBUTE_FLAGS, | |
723 | pub ValueCount: u32, | |
724 | pub Values: CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1_0, | |
725 | } | |
726 | impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 {} | |
727 | impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1 { | |
728 | fn clone(&self) -> Self { | |
729 | *self | |
730 | } | |
731 | } | |
732 | #[repr(C)] | |
04454e1e | 733 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
734 | pub union CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1_0 { |
735 | pub pInt64: [u32; 1], | |
736 | pub pUint64: [u32; 1], | |
737 | pub ppString: [u32; 1], | |
738 | pub pFqbn: [u32; 1], | |
739 | pub pOctetString: [u32; 1], | |
740 | } | |
741 | impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1_0 {} | |
742 | impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_RELATIVE_V1_0 { | |
743 | fn clone(&self) -> Self { | |
744 | *self | |
745 | } | |
746 | } | |
747 | #[repr(C)] | |
04454e1e | 748 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 749 | pub struct CLAIM_SECURITY_ATTRIBUTE_V1 { |
04454e1e | 750 | pub Name: ::windows_sys::core::PWSTR, |
5e7ed085 FG |
751 | pub ValueType: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE, |
752 | pub Reserved: u16, | |
753 | pub Flags: u32, | |
754 | pub ValueCount: u32, | |
755 | pub Values: CLAIM_SECURITY_ATTRIBUTE_V1_0, | |
756 | } | |
5e7ed085 | 757 | impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_V1 {} |
5e7ed085 FG |
758 | impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_V1 { |
759 | fn clone(&self) -> Self { | |
760 | *self | |
761 | } | |
762 | } | |
763 | #[repr(C)] | |
04454e1e | 764 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
765 | pub union CLAIM_SECURITY_ATTRIBUTE_V1_0 { |
766 | pub pInt64: *mut i64, | |
767 | pub pUint64: *mut u64, | |
04454e1e | 768 | pub ppString: *mut ::windows_sys::core::PWSTR, |
5e7ed085 FG |
769 | pub pFqbn: *mut CLAIM_SECURITY_ATTRIBUTE_FQBN_VALUE, |
770 | pub pOctetString: *mut CLAIM_SECURITY_ATTRIBUTE_OCTET_STRING_VALUE, | |
771 | } | |
5e7ed085 | 772 | impl ::core::marker::Copy for CLAIM_SECURITY_ATTRIBUTE_V1_0 {} |
5e7ed085 FG |
773 | impl ::core::clone::Clone for CLAIM_SECURITY_ATTRIBUTE_V1_0 { |
774 | fn clone(&self) -> Self { | |
775 | *self | |
776 | } | |
777 | } | |
04454e1e | 778 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 779 | pub type CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = u16; |
04454e1e | 780 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 781 | pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_INT64: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 1u16; |
04454e1e | 782 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 783 | pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_UINT64: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 2u16; |
04454e1e | 784 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 785 | pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_STRING: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 3u16; |
04454e1e | 786 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 787 | pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_OCTET_STRING: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 16u16; |
04454e1e | 788 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 789 | pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_FQBN: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 4u16; |
04454e1e | 790 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 791 | pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_SID: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 5u16; |
04454e1e | 792 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 793 | pub const CLAIM_SECURITY_ATTRIBUTE_TYPE_BOOLEAN: CLAIM_SECURITY_ATTRIBUTE_VALUE_TYPE = 6u16; |
04454e1e | 794 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 795 | pub type CREATE_RESTRICTED_TOKEN_FLAGS = u32; |
04454e1e | 796 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 797 | pub const DISABLE_MAX_PRIVILEGE: CREATE_RESTRICTED_TOKEN_FLAGS = 1u32; |
04454e1e | 798 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 799 | pub const SANDBOX_INERT: CREATE_RESTRICTED_TOKEN_FLAGS = 2u32; |
04454e1e | 800 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 801 | pub const LUA_TOKEN: CREATE_RESTRICTED_TOKEN_FLAGS = 4u32; |
04454e1e | 802 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 803 | pub const WRITE_RESTRICTED: CREATE_RESTRICTED_TOKEN_FLAGS = 8u32; |
04454e1e | 804 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 805 | pub const CVT_SECONDS: u32 = 1u32; |
04454e1e | 806 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 807 | pub type ENUM_PERIOD = i32; |
04454e1e | 808 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 809 | pub const ENUM_PERIOD_INVALID: ENUM_PERIOD = -1i32; |
04454e1e | 810 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 811 | pub const ENUM_PERIOD_SECONDS: ENUM_PERIOD = 0i32; |
04454e1e | 812 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 813 | pub const ENUM_PERIOD_MINUTES: ENUM_PERIOD = 1i32; |
04454e1e | 814 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 815 | pub const ENUM_PERIOD_HOURS: ENUM_PERIOD = 2i32; |
04454e1e | 816 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 817 | pub const ENUM_PERIOD_DAYS: ENUM_PERIOD = 3i32; |
04454e1e | 818 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 819 | pub const ENUM_PERIOD_WEEKS: ENUM_PERIOD = 4i32; |
04454e1e | 820 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 821 | pub const ENUM_PERIOD_MONTHS: ENUM_PERIOD = 5i32; |
04454e1e | 822 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
823 | pub const ENUM_PERIOD_YEARS: ENUM_PERIOD = 6i32; |
824 | #[repr(C)] | |
04454e1e | 825 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
826 | pub struct GENERIC_MAPPING { |
827 | pub GenericRead: u32, | |
828 | pub GenericWrite: u32, | |
829 | pub GenericExecute: u32, | |
830 | pub GenericAll: u32, | |
831 | } | |
832 | impl ::core::marker::Copy for GENERIC_MAPPING {} | |
833 | impl ::core::clone::Clone for GENERIC_MAPPING { | |
834 | fn clone(&self) -> Self { | |
835 | *self | |
836 | } | |
837 | } | |
838 | pub type HDIAGNOSTIC_DATA_QUERY_SESSION = isize; | |
839 | pub type HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION = isize; | |
840 | pub type HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION = isize; | |
841 | pub type HDIAGNOSTIC_EVENT_TAG_DESCRIPTION = isize; | |
842 | pub type HDIAGNOSTIC_RECORD = isize; | |
843 | pub type HDIAGNOSTIC_REPORT = isize; | |
844 | #[repr(C)] | |
04454e1e | 845 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
846 | #[cfg(feature = "Win32_Foundation")] |
847 | pub struct LLFILETIME { | |
848 | pub Anonymous: LLFILETIME_0, | |
849 | } | |
850 | #[cfg(feature = "Win32_Foundation")] | |
851 | impl ::core::marker::Copy for LLFILETIME {} | |
852 | #[cfg(feature = "Win32_Foundation")] | |
853 | impl ::core::clone::Clone for LLFILETIME { | |
854 | fn clone(&self) -> Self { | |
855 | *self | |
856 | } | |
857 | } | |
858 | #[repr(C)] | |
04454e1e | 859 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
860 | #[cfg(feature = "Win32_Foundation")] |
861 | pub union LLFILETIME_0 { | |
862 | pub ll: i64, | |
863 | pub ft: super::Foundation::FILETIME, | |
864 | } | |
865 | #[cfg(feature = "Win32_Foundation")] | |
866 | impl ::core::marker::Copy for LLFILETIME_0 {} | |
867 | #[cfg(feature = "Win32_Foundation")] | |
868 | impl ::core::clone::Clone for LLFILETIME_0 { | |
869 | fn clone(&self) -> Self { | |
870 | *self | |
871 | } | |
872 | } | |
04454e1e | 873 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 874 | pub type LOGON32_LOGON = u32; |
04454e1e | 875 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 876 | pub const LOGON32_LOGON_BATCH: LOGON32_LOGON = 4u32; |
04454e1e | 877 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 878 | pub const LOGON32_LOGON_INTERACTIVE: LOGON32_LOGON = 2u32; |
04454e1e | 879 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 880 | pub const LOGON32_LOGON_NETWORK: LOGON32_LOGON = 3u32; |
04454e1e | 881 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 882 | pub const LOGON32_LOGON_NETWORK_CLEARTEXT: LOGON32_LOGON = 8u32; |
04454e1e | 883 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 884 | pub const LOGON32_LOGON_NEW_CREDENTIALS: LOGON32_LOGON = 9u32; |
04454e1e | 885 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 886 | pub const LOGON32_LOGON_SERVICE: LOGON32_LOGON = 5u32; |
04454e1e | 887 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 888 | pub const LOGON32_LOGON_UNLOCK: LOGON32_LOGON = 7u32; |
04454e1e | 889 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 890 | pub type LOGON32_PROVIDER = u32; |
04454e1e | 891 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 892 | pub const LOGON32_PROVIDER_DEFAULT: LOGON32_PROVIDER = 0u32; |
04454e1e | 893 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 894 | pub const LOGON32_PROVIDER_WINNT50: LOGON32_PROVIDER = 3u32; |
04454e1e | 895 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
896 | pub const LOGON32_PROVIDER_WINNT40: LOGON32_PROVIDER = 2u32; |
897 | #[repr(C)] | |
04454e1e | 898 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
899 | #[cfg(feature = "Win32_Foundation")] |
900 | pub struct LUID_AND_ATTRIBUTES { | |
901 | pub Luid: super::Foundation::LUID, | |
902 | pub Attributes: TOKEN_PRIVILEGES_ATTRIBUTES, | |
903 | } | |
904 | #[cfg(feature = "Win32_Foundation")] | |
905 | impl ::core::marker::Copy for LUID_AND_ATTRIBUTES {} | |
906 | #[cfg(feature = "Win32_Foundation")] | |
907 | impl ::core::clone::Clone for LUID_AND_ATTRIBUTES { | |
908 | fn clone(&self) -> Self { | |
909 | *self | |
910 | } | |
911 | } | |
04454e1e | 912 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 913 | pub type MANDATORY_LEVEL = i32; |
04454e1e | 914 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 915 | pub const MandatoryLevelUntrusted: MANDATORY_LEVEL = 0i32; |
04454e1e | 916 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 917 | pub const MandatoryLevelLow: MANDATORY_LEVEL = 1i32; |
04454e1e | 918 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 919 | pub const MandatoryLevelMedium: MANDATORY_LEVEL = 2i32; |
04454e1e | 920 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 921 | pub const MandatoryLevelHigh: MANDATORY_LEVEL = 3i32; |
04454e1e | 922 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 923 | pub const MandatoryLevelSystem: MANDATORY_LEVEL = 4i32; |
04454e1e | 924 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 925 | pub const MandatoryLevelSecureProcess: MANDATORY_LEVEL = 5i32; |
04454e1e | 926 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
927 | pub const MandatoryLevelCount: MANDATORY_LEVEL = 6i32; |
928 | pub type NCRYPT_DESCRIPTOR_HANDLE = isize; | |
929 | pub type NCRYPT_STREAM_HANDLE = isize; | |
04454e1e | 930 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 931 | pub type OBJECT_SECURITY_INFORMATION = u32; |
04454e1e | 932 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 933 | pub const ATTRIBUTE_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 32u32; |
04454e1e | 934 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 935 | pub const BACKUP_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 65536u32; |
04454e1e | 936 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 937 | pub const DACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 4u32; |
04454e1e | 938 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 939 | pub const GROUP_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 2u32; |
04454e1e | 940 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 941 | pub const LABEL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 16u32; |
04454e1e | 942 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 943 | pub const OWNER_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 1u32; |
04454e1e | 944 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 945 | pub const PROTECTED_DACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 2147483648u32; |
04454e1e | 946 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 947 | pub const PROTECTED_SACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 1073741824u32; |
04454e1e | 948 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 949 | pub const SACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 8u32; |
04454e1e | 950 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 951 | pub const SCOPE_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 64u32; |
04454e1e | 952 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 953 | pub const UNPROTECTED_DACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 536870912u32; |
04454e1e | 954 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
955 | pub const UNPROTECTED_SACL_SECURITY_INFORMATION: OBJECT_SECURITY_INFORMATION = 268435456u32; |
956 | #[repr(C)] | |
04454e1e | 957 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
958 | pub struct OBJECT_TYPE_LIST { |
959 | pub Level: u16, | |
960 | pub Sbz: u16, | |
961 | pub ObjectType: *mut ::windows_sys::core::GUID, | |
962 | } | |
963 | impl ::core::marker::Copy for OBJECT_TYPE_LIST {} | |
964 | impl ::core::clone::Clone for OBJECT_TYPE_LIST { | |
965 | fn clone(&self) -> Self { | |
966 | *self | |
967 | } | |
968 | } | |
04454e1e | 969 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
970 | #[cfg(feature = "Win32_Foundation")] |
971 | pub type PLSA_AP_CALL_PACKAGE_UNTRUSTED = ::core::option::Option<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>; | |
972 | #[repr(C)] | |
04454e1e | 973 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
974 | #[cfg(feature = "Win32_Foundation")] |
975 | pub struct PRIVILEGE_SET { | |
976 | pub PrivilegeCount: u32, | |
977 | pub Control: u32, | |
978 | pub Privilege: [LUID_AND_ATTRIBUTES; 1], | |
979 | } | |
980 | #[cfg(feature = "Win32_Foundation")] | |
981 | impl ::core::marker::Copy for PRIVILEGE_SET {} | |
982 | #[cfg(feature = "Win32_Foundation")] | |
983 | impl ::core::clone::Clone for PRIVILEGE_SET { | |
984 | fn clone(&self) -> Self { | |
985 | *self | |
986 | } | |
987 | } | |
923072b8 | 988 | pub type PSECURITY_DESCRIPTOR = *mut ::core::ffi::c_void; |
5e7ed085 | 989 | #[repr(C)] |
04454e1e | 990 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
991 | pub struct QUOTA_LIMITS { |
992 | pub PagedPoolLimit: usize, | |
993 | pub NonPagedPoolLimit: usize, | |
994 | pub MinimumWorkingSetSize: usize, | |
995 | pub MaximumWorkingSetSize: usize, | |
996 | pub PagefileLimit: usize, | |
997 | pub TimeLimit: i64, | |
998 | } | |
999 | impl ::core::marker::Copy for QUOTA_LIMITS {} | |
1000 | impl ::core::clone::Clone for QUOTA_LIMITS { | |
1001 | fn clone(&self) -> Self { | |
1002 | *self | |
1003 | } | |
1004 | } | |
1005 | pub type SAFER_LEVEL_HANDLE = isize; | |
1006 | pub type SC_HANDLE = isize; | |
1007 | #[repr(C)] | |
04454e1e | 1008 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1009 | #[cfg(feature = "Win32_Foundation")] |
1010 | pub struct SECURITY_ATTRIBUTES { | |
1011 | pub nLength: u32, | |
1012 | pub lpSecurityDescriptor: *mut ::core::ffi::c_void, | |
1013 | pub bInheritHandle: super::Foundation::BOOL, | |
1014 | } | |
1015 | #[cfg(feature = "Win32_Foundation")] | |
1016 | impl ::core::marker::Copy for SECURITY_ATTRIBUTES {} | |
1017 | #[cfg(feature = "Win32_Foundation")] | |
1018 | impl ::core::clone::Clone for SECURITY_ATTRIBUTES { | |
1019 | fn clone(&self) -> Self { | |
1020 | *self | |
1021 | } | |
1022 | } | |
04454e1e | 1023 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1024 | pub type SECURITY_AUTO_INHERIT_FLAGS = u32; |
04454e1e | 1025 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1026 | pub const SEF_AVOID_OWNER_CHECK: SECURITY_AUTO_INHERIT_FLAGS = 16u32; |
04454e1e | 1027 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1028 | pub const SEF_AVOID_OWNER_RESTRICTION: SECURITY_AUTO_INHERIT_FLAGS = 4096u32; |
04454e1e | 1029 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1030 | pub const SEF_AVOID_PRIVILEGE_CHECK: SECURITY_AUTO_INHERIT_FLAGS = 8u32; |
04454e1e | 1031 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1032 | pub const SEF_DACL_AUTO_INHERIT: SECURITY_AUTO_INHERIT_FLAGS = 1u32; |
04454e1e | 1033 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1034 | pub const SEF_DEFAULT_DESCRIPTOR_FOR_OBJECT: SECURITY_AUTO_INHERIT_FLAGS = 4u32; |
04454e1e | 1035 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1036 | pub const SEF_DEFAULT_GROUP_FROM_PARENT: SECURITY_AUTO_INHERIT_FLAGS = 64u32; |
04454e1e | 1037 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1038 | pub const SEF_DEFAULT_OWNER_FROM_PARENT: SECURITY_AUTO_INHERIT_FLAGS = 32u32; |
04454e1e | 1039 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1040 | pub const SEF_MACL_NO_EXECUTE_UP: SECURITY_AUTO_INHERIT_FLAGS = 1024u32; |
04454e1e | 1041 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1042 | pub const SEF_MACL_NO_READ_UP: SECURITY_AUTO_INHERIT_FLAGS = 512u32; |
04454e1e | 1043 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1044 | pub const SEF_MACL_NO_WRITE_UP: SECURITY_AUTO_INHERIT_FLAGS = 256u32; |
04454e1e | 1045 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1046 | pub const SEF_SACL_AUTO_INHERIT: SECURITY_AUTO_INHERIT_FLAGS = 2u32; |
1047 | #[repr(C)] | |
04454e1e | 1048 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1049 | #[cfg(feature = "Win32_Foundation")] |
1050 | pub struct SECURITY_CAPABILITIES { | |
1051 | pub AppContainerSid: super::Foundation::PSID, | |
1052 | pub Capabilities: *mut SID_AND_ATTRIBUTES, | |
1053 | pub CapabilityCount: u32, | |
1054 | pub Reserved: u32, | |
1055 | } | |
1056 | #[cfg(feature = "Win32_Foundation")] | |
1057 | impl ::core::marker::Copy for SECURITY_CAPABILITIES {} | |
1058 | #[cfg(feature = "Win32_Foundation")] | |
1059 | impl ::core::clone::Clone for SECURITY_CAPABILITIES { | |
1060 | fn clone(&self) -> Self { | |
1061 | *self | |
1062 | } | |
1063 | } | |
1064 | #[repr(C)] | |
04454e1e | 1065 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1066 | #[cfg(feature = "Win32_Foundation")] |
1067 | pub struct SECURITY_DESCRIPTOR { | |
1068 | pub Revision: u8, | |
1069 | pub Sbz1: u8, | |
1070 | pub Control: u16, | |
1071 | pub Owner: super::Foundation::PSID, | |
1072 | pub Group: super::Foundation::PSID, | |
1073 | pub Sacl: *mut ACL, | |
1074 | pub Dacl: *mut ACL, | |
1075 | } | |
1076 | #[cfg(feature = "Win32_Foundation")] | |
1077 | impl ::core::marker::Copy for SECURITY_DESCRIPTOR {} | |
1078 | #[cfg(feature = "Win32_Foundation")] | |
1079 | impl ::core::clone::Clone for SECURITY_DESCRIPTOR { | |
1080 | fn clone(&self) -> Self { | |
1081 | *self | |
1082 | } | |
1083 | } | |
04454e1e | 1084 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1085 | pub type SECURITY_IMPERSONATION_LEVEL = i32; |
04454e1e | 1086 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1087 | pub const SecurityAnonymous: SECURITY_IMPERSONATION_LEVEL = 0i32; |
04454e1e | 1088 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1089 | pub const SecurityIdentification: SECURITY_IMPERSONATION_LEVEL = 1i32; |
04454e1e | 1090 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1091 | pub const SecurityImpersonation: SECURITY_IMPERSONATION_LEVEL = 2i32; |
04454e1e | 1092 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1093 | pub const SecurityDelegation: SECURITY_IMPERSONATION_LEVEL = 3i32; |
1094 | #[repr(C)] | |
04454e1e | 1095 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1096 | #[cfg(feature = "Win32_Foundation")] |
1097 | pub struct SECURITY_QUALITY_OF_SERVICE { | |
1098 | pub Length: u32, | |
1099 | pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, | |
1100 | pub ContextTrackingMode: u8, | |
1101 | pub EffectiveOnly: super::Foundation::BOOLEAN, | |
1102 | } | |
1103 | #[cfg(feature = "Win32_Foundation")] | |
1104 | impl ::core::marker::Copy for SECURITY_QUALITY_OF_SERVICE {} | |
1105 | #[cfg(feature = "Win32_Foundation")] | |
1106 | impl ::core::clone::Clone for SECURITY_QUALITY_OF_SERVICE { | |
1107 | fn clone(&self) -> Self { | |
1108 | *self | |
1109 | } | |
1110 | } | |
04454e1e | 1111 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1112 | pub type SEC_THREAD_START = ::core::option::Option<unsafe extern "system" fn(lpthreadparameter: *mut ::core::ffi::c_void) -> u32>; |
1113 | #[repr(C)] | |
04454e1e | 1114 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1115 | #[cfg(feature = "Win32_Foundation")] |
1116 | pub struct SE_ACCESS_REPLY { | |
1117 | pub Size: u32, | |
1118 | pub ResultListCount: u32, | |
1119 | pub GrantedAccess: *mut u32, | |
1120 | pub AccessStatus: *mut u32, | |
1121 | pub AccessReason: *mut ACCESS_REASONS, | |
1122 | pub Privileges: *mut *mut PRIVILEGE_SET, | |
1123 | } | |
1124 | #[cfg(feature = "Win32_Foundation")] | |
1125 | impl ::core::marker::Copy for SE_ACCESS_REPLY {} | |
1126 | #[cfg(feature = "Win32_Foundation")] | |
1127 | impl ::core::clone::Clone for SE_ACCESS_REPLY { | |
1128 | fn clone(&self) -> Self { | |
1129 | *self | |
1130 | } | |
1131 | } | |
1132 | #[repr(C)] | |
04454e1e | 1133 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1134 | #[cfg(feature = "Win32_Foundation")] |
1135 | pub struct SE_ACCESS_REQUEST { | |
1136 | pub Size: u32, | |
1137 | pub SeSecurityDescriptor: *mut SE_SECURITY_DESCRIPTOR, | |
1138 | pub DesiredAccess: u32, | |
1139 | pub PreviouslyGrantedAccess: u32, | |
1140 | pub PrincipalSelfSid: super::Foundation::PSID, | |
1141 | pub GenericMapping: *mut GENERIC_MAPPING, | |
1142 | pub ObjectTypeListCount: u32, | |
1143 | pub ObjectTypeList: *mut OBJECT_TYPE_LIST, | |
1144 | } | |
1145 | #[cfg(feature = "Win32_Foundation")] | |
1146 | impl ::core::marker::Copy for SE_ACCESS_REQUEST {} | |
1147 | #[cfg(feature = "Win32_Foundation")] | |
1148 | impl ::core::clone::Clone for SE_ACCESS_REQUEST { | |
1149 | fn clone(&self) -> Self { | |
1150 | *self | |
1151 | } | |
1152 | } | |
1153 | #[repr(C)] | |
04454e1e | 1154 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1155 | #[cfg(feature = "Win32_Foundation")] |
1156 | pub struct SE_IMPERSONATION_STATE { | |
1157 | pub Token: *mut ::core::ffi::c_void, | |
1158 | pub CopyOnOpen: super::Foundation::BOOLEAN, | |
1159 | pub EffectiveOnly: super::Foundation::BOOLEAN, | |
1160 | pub Level: SECURITY_IMPERSONATION_LEVEL, | |
1161 | } | |
1162 | #[cfg(feature = "Win32_Foundation")] | |
1163 | impl ::core::marker::Copy for SE_IMPERSONATION_STATE {} | |
1164 | #[cfg(feature = "Win32_Foundation")] | |
1165 | impl ::core::clone::Clone for SE_IMPERSONATION_STATE { | |
1166 | fn clone(&self) -> Self { | |
1167 | *self | |
1168 | } | |
1169 | } | |
1170 | #[repr(C)] | |
923072b8 | 1171 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1172 | pub struct SE_SECURITY_DESCRIPTOR { |
1173 | pub Size: u32, | |
1174 | pub Flags: u32, | |
923072b8 | 1175 | pub SecurityDescriptor: PSECURITY_DESCRIPTOR, |
5e7ed085 | 1176 | } |
5e7ed085 | 1177 | impl ::core::marker::Copy for SE_SECURITY_DESCRIPTOR {} |
5e7ed085 FG |
1178 | impl ::core::clone::Clone for SE_SECURITY_DESCRIPTOR { |
1179 | fn clone(&self) -> Self { | |
1180 | *self | |
1181 | } | |
1182 | } | |
1183 | #[repr(C)] | |
04454e1e | 1184 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1185 | pub union SE_SID { |
1186 | pub Sid: SID, | |
1187 | pub Buffer: [u8; 68], | |
1188 | } | |
1189 | impl ::core::marker::Copy for SE_SID {} | |
1190 | impl ::core::clone::Clone for SE_SID { | |
1191 | fn clone(&self) -> Self { | |
1192 | *self | |
1193 | } | |
1194 | } | |
1195 | #[repr(C)] | |
04454e1e | 1196 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1197 | pub struct SID { |
1198 | pub Revision: u8, | |
1199 | pub SubAuthorityCount: u8, | |
1200 | pub IdentifierAuthority: SID_IDENTIFIER_AUTHORITY, | |
1201 | pub SubAuthority: [u32; 1], | |
1202 | } | |
1203 | impl ::core::marker::Copy for SID {} | |
1204 | impl ::core::clone::Clone for SID { | |
1205 | fn clone(&self) -> Self { | |
1206 | *self | |
1207 | } | |
1208 | } | |
1209 | #[repr(C)] | |
04454e1e | 1210 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1211 | #[cfg(feature = "Win32_Foundation")] |
1212 | pub struct SID_AND_ATTRIBUTES { | |
1213 | pub Sid: super::Foundation::PSID, | |
1214 | pub Attributes: u32, | |
1215 | } | |
1216 | #[cfg(feature = "Win32_Foundation")] | |
1217 | impl ::core::marker::Copy for SID_AND_ATTRIBUTES {} | |
1218 | #[cfg(feature = "Win32_Foundation")] | |
1219 | impl ::core::clone::Clone for SID_AND_ATTRIBUTES { | |
1220 | fn clone(&self) -> Self { | |
1221 | *self | |
1222 | } | |
1223 | } | |
1224 | #[repr(C)] | |
04454e1e | 1225 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1226 | #[cfg(feature = "Win32_Foundation")] |
1227 | pub struct SID_AND_ATTRIBUTES_HASH { | |
1228 | pub SidCount: u32, | |
1229 | pub SidAttr: *mut SID_AND_ATTRIBUTES, | |
1230 | pub Hash: [usize; 32], | |
1231 | } | |
1232 | #[cfg(feature = "Win32_Foundation")] | |
1233 | impl ::core::marker::Copy for SID_AND_ATTRIBUTES_HASH {} | |
1234 | #[cfg(feature = "Win32_Foundation")] | |
1235 | impl ::core::clone::Clone for SID_AND_ATTRIBUTES_HASH { | |
1236 | fn clone(&self) -> Self { | |
1237 | *self | |
1238 | } | |
1239 | } | |
1240 | #[repr(C)] | |
04454e1e | 1241 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1242 | pub struct SID_IDENTIFIER_AUTHORITY { |
1243 | pub Value: [u8; 6], | |
1244 | } | |
1245 | impl ::core::marker::Copy for SID_IDENTIFIER_AUTHORITY {} | |
1246 | impl ::core::clone::Clone for SID_IDENTIFIER_AUTHORITY { | |
1247 | fn clone(&self) -> Self { | |
1248 | *self | |
1249 | } | |
1250 | } | |
04454e1e | 1251 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1252 | pub type SID_NAME_USE = i32; |
04454e1e | 1253 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1254 | pub const SidTypeUser: SID_NAME_USE = 1i32; |
04454e1e | 1255 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1256 | pub const SidTypeGroup: SID_NAME_USE = 2i32; |
04454e1e | 1257 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1258 | pub const SidTypeDomain: SID_NAME_USE = 3i32; |
04454e1e | 1259 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1260 | pub const SidTypeAlias: SID_NAME_USE = 4i32; |
04454e1e | 1261 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1262 | pub const SidTypeWellKnownGroup: SID_NAME_USE = 5i32; |
04454e1e | 1263 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1264 | pub const SidTypeDeletedAccount: SID_NAME_USE = 6i32; |
04454e1e | 1265 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1266 | pub const SidTypeInvalid: SID_NAME_USE = 7i32; |
04454e1e | 1267 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1268 | pub const SidTypeUnknown: SID_NAME_USE = 8i32; |
04454e1e | 1269 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1270 | pub const SidTypeComputer: SID_NAME_USE = 9i32; |
04454e1e | 1271 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1272 | pub const SidTypeLabel: SID_NAME_USE = 10i32; |
04454e1e | 1273 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1274 | pub const SidTypeLogonSession: SID_NAME_USE = 11i32; |
1275 | #[repr(C)] | |
04454e1e | 1276 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1277 | pub struct SYSTEM_ACCESS_FILTER_ACE { |
1278 | pub Header: ACE_HEADER, | |
1279 | pub Mask: u32, | |
1280 | pub SidStart: u32, | |
1281 | } | |
1282 | impl ::core::marker::Copy for SYSTEM_ACCESS_FILTER_ACE {} | |
1283 | impl ::core::clone::Clone for SYSTEM_ACCESS_FILTER_ACE { | |
1284 | fn clone(&self) -> Self { | |
1285 | *self | |
1286 | } | |
1287 | } | |
1288 | #[repr(C)] | |
04454e1e | 1289 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1290 | pub struct SYSTEM_ALARM_ACE { |
1291 | pub Header: ACE_HEADER, | |
1292 | pub Mask: u32, | |
1293 | pub SidStart: u32, | |
1294 | } | |
1295 | impl ::core::marker::Copy for SYSTEM_ALARM_ACE {} | |
1296 | impl ::core::clone::Clone for SYSTEM_ALARM_ACE { | |
1297 | fn clone(&self) -> Self { | |
1298 | *self | |
1299 | } | |
1300 | } | |
1301 | #[repr(C)] | |
04454e1e | 1302 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1303 | pub struct SYSTEM_ALARM_CALLBACK_ACE { |
1304 | pub Header: ACE_HEADER, | |
1305 | pub Mask: u32, | |
1306 | pub SidStart: u32, | |
1307 | } | |
1308 | impl ::core::marker::Copy for SYSTEM_ALARM_CALLBACK_ACE {} | |
1309 | impl ::core::clone::Clone for SYSTEM_ALARM_CALLBACK_ACE { | |
1310 | fn clone(&self) -> Self { | |
1311 | *self | |
1312 | } | |
1313 | } | |
1314 | #[repr(C)] | |
04454e1e | 1315 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1316 | pub struct SYSTEM_ALARM_CALLBACK_OBJECT_ACE { |
1317 | pub Header: ACE_HEADER, | |
1318 | pub Mask: u32, | |
1319 | pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, | |
1320 | pub ObjectType: ::windows_sys::core::GUID, | |
1321 | pub InheritedObjectType: ::windows_sys::core::GUID, | |
1322 | pub SidStart: u32, | |
1323 | } | |
1324 | impl ::core::marker::Copy for SYSTEM_ALARM_CALLBACK_OBJECT_ACE {} | |
1325 | impl ::core::clone::Clone for SYSTEM_ALARM_CALLBACK_OBJECT_ACE { | |
1326 | fn clone(&self) -> Self { | |
1327 | *self | |
1328 | } | |
1329 | } | |
1330 | #[repr(C)] | |
04454e1e | 1331 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1332 | pub struct SYSTEM_ALARM_OBJECT_ACE { |
1333 | pub Header: ACE_HEADER, | |
1334 | pub Mask: u32, | |
1335 | pub Flags: u32, | |
1336 | pub ObjectType: ::windows_sys::core::GUID, | |
1337 | pub InheritedObjectType: ::windows_sys::core::GUID, | |
1338 | pub SidStart: u32, | |
1339 | } | |
1340 | impl ::core::marker::Copy for SYSTEM_ALARM_OBJECT_ACE {} | |
1341 | impl ::core::clone::Clone for SYSTEM_ALARM_OBJECT_ACE { | |
1342 | fn clone(&self) -> Self { | |
1343 | *self | |
1344 | } | |
1345 | } | |
1346 | #[repr(C)] | |
04454e1e | 1347 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1348 | pub struct SYSTEM_AUDIT_ACE { |
1349 | pub Header: ACE_HEADER, | |
1350 | pub Mask: u32, | |
1351 | pub SidStart: u32, | |
1352 | } | |
1353 | impl ::core::marker::Copy for SYSTEM_AUDIT_ACE {} | |
1354 | impl ::core::clone::Clone for SYSTEM_AUDIT_ACE { | |
1355 | fn clone(&self) -> Self { | |
1356 | *self | |
1357 | } | |
1358 | } | |
1359 | #[repr(C)] | |
04454e1e | 1360 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1361 | pub struct SYSTEM_AUDIT_CALLBACK_ACE { |
1362 | pub Header: ACE_HEADER, | |
1363 | pub Mask: u32, | |
1364 | pub SidStart: u32, | |
1365 | } | |
1366 | impl ::core::marker::Copy for SYSTEM_AUDIT_CALLBACK_ACE {} | |
1367 | impl ::core::clone::Clone for SYSTEM_AUDIT_CALLBACK_ACE { | |
1368 | fn clone(&self) -> Self { | |
1369 | *self | |
1370 | } | |
1371 | } | |
1372 | #[repr(C)] | |
04454e1e | 1373 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1374 | pub struct SYSTEM_AUDIT_CALLBACK_OBJECT_ACE { |
1375 | pub Header: ACE_HEADER, | |
1376 | pub Mask: u32, | |
1377 | pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, | |
1378 | pub ObjectType: ::windows_sys::core::GUID, | |
1379 | pub InheritedObjectType: ::windows_sys::core::GUID, | |
1380 | pub SidStart: u32, | |
1381 | } | |
1382 | impl ::core::marker::Copy for SYSTEM_AUDIT_CALLBACK_OBJECT_ACE {} | |
1383 | impl ::core::clone::Clone for SYSTEM_AUDIT_CALLBACK_OBJECT_ACE { | |
1384 | fn clone(&self) -> Self { | |
1385 | *self | |
1386 | } | |
1387 | } | |
1388 | #[repr(C)] | |
04454e1e | 1389 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1390 | pub struct SYSTEM_AUDIT_OBJECT_ACE { |
1391 | pub Header: ACE_HEADER, | |
1392 | pub Mask: u32, | |
1393 | pub Flags: SYSTEM_AUDIT_OBJECT_ACE_FLAGS, | |
1394 | pub ObjectType: ::windows_sys::core::GUID, | |
1395 | pub InheritedObjectType: ::windows_sys::core::GUID, | |
1396 | pub SidStart: u32, | |
1397 | } | |
1398 | impl ::core::marker::Copy for SYSTEM_AUDIT_OBJECT_ACE {} | |
1399 | impl ::core::clone::Clone for SYSTEM_AUDIT_OBJECT_ACE { | |
1400 | fn clone(&self) -> Self { | |
1401 | *self | |
1402 | } | |
1403 | } | |
04454e1e | 1404 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1405 | pub type SYSTEM_AUDIT_OBJECT_ACE_FLAGS = u32; |
04454e1e | 1406 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1407 | pub const ACE_OBJECT_TYPE_PRESENT: SYSTEM_AUDIT_OBJECT_ACE_FLAGS = 1u32; |
04454e1e | 1408 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1409 | pub const ACE_INHERITED_OBJECT_TYPE_PRESENT: SYSTEM_AUDIT_OBJECT_ACE_FLAGS = 2u32; |
1410 | #[repr(C)] | |
04454e1e | 1411 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1412 | pub struct SYSTEM_MANDATORY_LABEL_ACE { |
1413 | pub Header: ACE_HEADER, | |
1414 | pub Mask: u32, | |
1415 | pub SidStart: u32, | |
1416 | } | |
1417 | impl ::core::marker::Copy for SYSTEM_MANDATORY_LABEL_ACE {} | |
1418 | impl ::core::clone::Clone for SYSTEM_MANDATORY_LABEL_ACE { | |
1419 | fn clone(&self) -> Self { | |
1420 | *self | |
1421 | } | |
1422 | } | |
1423 | #[repr(C)] | |
04454e1e | 1424 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1425 | pub struct SYSTEM_PROCESS_TRUST_LABEL_ACE { |
1426 | pub Header: ACE_HEADER, | |
1427 | pub Mask: u32, | |
1428 | pub SidStart: u32, | |
1429 | } | |
1430 | impl ::core::marker::Copy for SYSTEM_PROCESS_TRUST_LABEL_ACE {} | |
1431 | impl ::core::clone::Clone for SYSTEM_PROCESS_TRUST_LABEL_ACE { | |
1432 | fn clone(&self) -> Self { | |
1433 | *self | |
1434 | } | |
1435 | } | |
1436 | #[repr(C)] | |
04454e1e | 1437 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1438 | pub struct SYSTEM_RESOURCE_ATTRIBUTE_ACE { |
1439 | pub Header: ACE_HEADER, | |
1440 | pub Mask: u32, | |
1441 | pub SidStart: u32, | |
1442 | } | |
1443 | impl ::core::marker::Copy for SYSTEM_RESOURCE_ATTRIBUTE_ACE {} | |
1444 | impl ::core::clone::Clone for SYSTEM_RESOURCE_ATTRIBUTE_ACE { | |
1445 | fn clone(&self) -> Self { | |
1446 | *self | |
1447 | } | |
1448 | } | |
1449 | #[repr(C)] | |
04454e1e | 1450 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1451 | pub struct SYSTEM_SCOPED_POLICY_ID_ACE { |
1452 | pub Header: ACE_HEADER, | |
1453 | pub Mask: u32, | |
1454 | pub SidStart: u32, | |
1455 | } | |
1456 | impl ::core::marker::Copy for SYSTEM_SCOPED_POLICY_ID_ACE {} | |
1457 | impl ::core::clone::Clone for SYSTEM_SCOPED_POLICY_ID_ACE { | |
1458 | fn clone(&self) -> Self { | |
1459 | *self | |
1460 | } | |
1461 | } | |
1462 | #[repr(C)] | |
04454e1e | 1463 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1464 | #[cfg(feature = "Win32_Foundation")] |
1465 | pub struct TOKEN_ACCESS_INFORMATION { | |
1466 | pub SidHash: *mut SID_AND_ATTRIBUTES_HASH, | |
1467 | pub RestrictedSidHash: *mut SID_AND_ATTRIBUTES_HASH, | |
1468 | pub Privileges: *mut TOKEN_PRIVILEGES, | |
1469 | pub AuthenticationId: super::Foundation::LUID, | |
1470 | pub TokenType: TOKEN_TYPE, | |
1471 | pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, | |
1472 | pub MandatoryPolicy: TOKEN_MANDATORY_POLICY, | |
1473 | pub Flags: u32, | |
1474 | pub AppContainerNumber: u32, | |
1475 | pub PackageSid: super::Foundation::PSID, | |
1476 | pub CapabilitiesHash: *mut SID_AND_ATTRIBUTES_HASH, | |
1477 | pub TrustLevelSid: super::Foundation::PSID, | |
1478 | pub SecurityAttributes: *mut ::core::ffi::c_void, | |
1479 | } | |
1480 | #[cfg(feature = "Win32_Foundation")] | |
1481 | impl ::core::marker::Copy for TOKEN_ACCESS_INFORMATION {} | |
1482 | #[cfg(feature = "Win32_Foundation")] | |
1483 | impl ::core::clone::Clone for TOKEN_ACCESS_INFORMATION { | |
1484 | fn clone(&self) -> Self { | |
1485 | *self | |
1486 | } | |
1487 | } | |
04454e1e | 1488 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1489 | pub type TOKEN_ACCESS_MASK = u32; |
04454e1e | 1490 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1491 | pub const TOKEN_DELETE: TOKEN_ACCESS_MASK = 65536u32; |
04454e1e | 1492 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1493 | pub const TOKEN_READ_CONTROL: TOKEN_ACCESS_MASK = 131072u32; |
04454e1e | 1494 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1495 | pub const TOKEN_WRITE_DAC: TOKEN_ACCESS_MASK = 262144u32; |
04454e1e | 1496 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1497 | pub const TOKEN_WRITE_OWNER: TOKEN_ACCESS_MASK = 524288u32; |
04454e1e | 1498 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1499 | pub const TOKEN_ACCESS_SYSTEM_SECURITY: TOKEN_ACCESS_MASK = 16777216u32; |
04454e1e | 1500 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1501 | pub const TOKEN_ASSIGN_PRIMARY: TOKEN_ACCESS_MASK = 1u32; |
04454e1e | 1502 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1503 | pub const TOKEN_DUPLICATE: TOKEN_ACCESS_MASK = 2u32; |
04454e1e | 1504 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1505 | pub const TOKEN_IMPERSONATE: TOKEN_ACCESS_MASK = 4u32; |
04454e1e | 1506 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1507 | pub const TOKEN_QUERY: TOKEN_ACCESS_MASK = 8u32; |
04454e1e | 1508 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1509 | pub const TOKEN_QUERY_SOURCE: TOKEN_ACCESS_MASK = 16u32; |
04454e1e | 1510 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1511 | pub const TOKEN_ADJUST_PRIVILEGES: TOKEN_ACCESS_MASK = 32u32; |
04454e1e | 1512 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1513 | pub const TOKEN_ADJUST_GROUPS: TOKEN_ACCESS_MASK = 64u32; |
04454e1e | 1514 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1515 | pub const TOKEN_ADJUST_DEFAULT: TOKEN_ACCESS_MASK = 128u32; |
04454e1e | 1516 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1517 | pub const TOKEN_ADJUST_SESSIONID: TOKEN_ACCESS_MASK = 256u32; |
04454e1e | 1518 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1519 | pub const TOKEN_ALL_ACCESS: TOKEN_ACCESS_MASK = 983295u32; |
1520 | #[repr(C)] | |
04454e1e | 1521 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1522 | #[cfg(feature = "Win32_Foundation")] |
1523 | pub struct TOKEN_APPCONTAINER_INFORMATION { | |
1524 | pub TokenAppContainer: super::Foundation::PSID, | |
1525 | } | |
1526 | #[cfg(feature = "Win32_Foundation")] | |
1527 | impl ::core::marker::Copy for TOKEN_APPCONTAINER_INFORMATION {} | |
1528 | #[cfg(feature = "Win32_Foundation")] | |
1529 | impl ::core::clone::Clone for TOKEN_APPCONTAINER_INFORMATION { | |
1530 | fn clone(&self) -> Self { | |
1531 | *self | |
1532 | } | |
1533 | } | |
1534 | #[repr(C)] | |
04454e1e | 1535 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1536 | pub struct TOKEN_AUDIT_POLICY { |
1537 | pub PerUserPolicy: [u8; 30], | |
1538 | } | |
1539 | impl ::core::marker::Copy for TOKEN_AUDIT_POLICY {} | |
1540 | impl ::core::clone::Clone for TOKEN_AUDIT_POLICY { | |
1541 | fn clone(&self) -> Self { | |
1542 | *self | |
1543 | } | |
1544 | } | |
1545 | #[repr(C)] | |
04454e1e | 1546 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1547 | #[cfg(feature = "Win32_Foundation")] |
1548 | pub struct TOKEN_CONTROL { | |
1549 | pub TokenId: super::Foundation::LUID, | |
1550 | pub AuthenticationId: super::Foundation::LUID, | |
1551 | pub ModifiedId: super::Foundation::LUID, | |
1552 | pub TokenSource: TOKEN_SOURCE, | |
1553 | } | |
1554 | #[cfg(feature = "Win32_Foundation")] | |
1555 | impl ::core::marker::Copy for TOKEN_CONTROL {} | |
1556 | #[cfg(feature = "Win32_Foundation")] | |
1557 | impl ::core::clone::Clone for TOKEN_CONTROL { | |
1558 | fn clone(&self) -> Self { | |
1559 | *self | |
1560 | } | |
1561 | } | |
1562 | #[repr(C)] | |
04454e1e | 1563 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1564 | pub struct TOKEN_DEFAULT_DACL { |
1565 | pub DefaultDacl: *mut ACL, | |
1566 | } | |
1567 | impl ::core::marker::Copy for TOKEN_DEFAULT_DACL {} | |
1568 | impl ::core::clone::Clone for TOKEN_DEFAULT_DACL { | |
1569 | fn clone(&self) -> Self { | |
1570 | *self | |
1571 | } | |
1572 | } | |
1573 | #[repr(C)] | |
04454e1e | 1574 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1575 | pub struct TOKEN_DEVICE_CLAIMS { |
1576 | pub DeviceClaims: *mut ::core::ffi::c_void, | |
1577 | } | |
1578 | impl ::core::marker::Copy for TOKEN_DEVICE_CLAIMS {} | |
1579 | impl ::core::clone::Clone for TOKEN_DEVICE_CLAIMS { | |
1580 | fn clone(&self) -> Self { | |
1581 | *self | |
1582 | } | |
1583 | } | |
1584 | #[repr(C)] | |
04454e1e | 1585 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1586 | pub struct TOKEN_ELEVATION { |
1587 | pub TokenIsElevated: u32, | |
1588 | } | |
1589 | impl ::core::marker::Copy for TOKEN_ELEVATION {} | |
1590 | impl ::core::clone::Clone for TOKEN_ELEVATION { | |
1591 | fn clone(&self) -> Self { | |
1592 | *self | |
1593 | } | |
1594 | } | |
04454e1e | 1595 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1596 | pub type TOKEN_ELEVATION_TYPE = i32; |
04454e1e | 1597 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1598 | pub const TokenElevationTypeDefault: TOKEN_ELEVATION_TYPE = 1i32; |
04454e1e | 1599 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1600 | pub const TokenElevationTypeFull: TOKEN_ELEVATION_TYPE = 2i32; |
04454e1e | 1601 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1602 | pub const TokenElevationTypeLimited: TOKEN_ELEVATION_TYPE = 3i32; |
1603 | #[repr(C)] | |
04454e1e | 1604 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1605 | #[cfg(feature = "Win32_Foundation")] |
1606 | pub struct TOKEN_GROUPS { | |
1607 | pub GroupCount: u32, | |
1608 | pub Groups: [SID_AND_ATTRIBUTES; 1], | |
1609 | } | |
1610 | #[cfg(feature = "Win32_Foundation")] | |
1611 | impl ::core::marker::Copy for TOKEN_GROUPS {} | |
1612 | #[cfg(feature = "Win32_Foundation")] | |
1613 | impl ::core::clone::Clone for TOKEN_GROUPS { | |
1614 | fn clone(&self) -> Self { | |
1615 | *self | |
1616 | } | |
1617 | } | |
1618 | #[repr(C)] | |
04454e1e | 1619 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1620 | #[cfg(feature = "Win32_Foundation")] |
1621 | pub struct TOKEN_GROUPS_AND_PRIVILEGES { | |
1622 | pub SidCount: u32, | |
1623 | pub SidLength: u32, | |
1624 | pub Sids: *mut SID_AND_ATTRIBUTES, | |
1625 | pub RestrictedSidCount: u32, | |
1626 | pub RestrictedSidLength: u32, | |
1627 | pub RestrictedSids: *mut SID_AND_ATTRIBUTES, | |
1628 | pub PrivilegeCount: u32, | |
1629 | pub PrivilegeLength: u32, | |
1630 | pub Privileges: *mut LUID_AND_ATTRIBUTES, | |
1631 | pub AuthenticationId: super::Foundation::LUID, | |
1632 | } | |
1633 | #[cfg(feature = "Win32_Foundation")] | |
1634 | impl ::core::marker::Copy for TOKEN_GROUPS_AND_PRIVILEGES {} | |
1635 | #[cfg(feature = "Win32_Foundation")] | |
1636 | impl ::core::clone::Clone for TOKEN_GROUPS_AND_PRIVILEGES { | |
1637 | fn clone(&self) -> Self { | |
1638 | *self | |
1639 | } | |
1640 | } | |
04454e1e | 1641 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1642 | pub type TOKEN_INFORMATION_CLASS = i32; |
04454e1e | 1643 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1644 | pub const TokenUser: TOKEN_INFORMATION_CLASS = 1i32; |
04454e1e | 1645 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1646 | pub const TokenGroups: TOKEN_INFORMATION_CLASS = 2i32; |
04454e1e | 1647 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1648 | pub const TokenPrivileges: TOKEN_INFORMATION_CLASS = 3i32; |
04454e1e | 1649 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1650 | pub const TokenOwner: TOKEN_INFORMATION_CLASS = 4i32; |
04454e1e | 1651 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1652 | pub const TokenPrimaryGroup: TOKEN_INFORMATION_CLASS = 5i32; |
04454e1e | 1653 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1654 | pub const TokenDefaultDacl: TOKEN_INFORMATION_CLASS = 6i32; |
04454e1e | 1655 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1656 | pub const TokenSource: TOKEN_INFORMATION_CLASS = 7i32; |
04454e1e | 1657 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1658 | pub const TokenType: TOKEN_INFORMATION_CLASS = 8i32; |
04454e1e | 1659 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1660 | pub const TokenImpersonationLevel: TOKEN_INFORMATION_CLASS = 9i32; |
04454e1e | 1661 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1662 | pub const TokenStatistics: TOKEN_INFORMATION_CLASS = 10i32; |
04454e1e | 1663 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1664 | pub const TokenRestrictedSids: TOKEN_INFORMATION_CLASS = 11i32; |
04454e1e | 1665 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1666 | pub const TokenSessionId: TOKEN_INFORMATION_CLASS = 12i32; |
04454e1e | 1667 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1668 | pub const TokenGroupsAndPrivileges: TOKEN_INFORMATION_CLASS = 13i32; |
04454e1e | 1669 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1670 | pub const TokenSessionReference: TOKEN_INFORMATION_CLASS = 14i32; |
04454e1e | 1671 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1672 | pub const TokenSandBoxInert: TOKEN_INFORMATION_CLASS = 15i32; |
04454e1e | 1673 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1674 | pub const TokenAuditPolicy: TOKEN_INFORMATION_CLASS = 16i32; |
04454e1e | 1675 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1676 | pub const TokenOrigin: TOKEN_INFORMATION_CLASS = 17i32; |
04454e1e | 1677 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1678 | pub const TokenElevationType: TOKEN_INFORMATION_CLASS = 18i32; |
04454e1e | 1679 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1680 | pub const TokenLinkedToken: TOKEN_INFORMATION_CLASS = 19i32; |
04454e1e | 1681 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1682 | pub const TokenElevation: TOKEN_INFORMATION_CLASS = 20i32; |
04454e1e | 1683 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1684 | pub const TokenHasRestrictions: TOKEN_INFORMATION_CLASS = 21i32; |
04454e1e | 1685 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1686 | pub const TokenAccessInformation: TOKEN_INFORMATION_CLASS = 22i32; |
04454e1e | 1687 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1688 | pub const TokenVirtualizationAllowed: TOKEN_INFORMATION_CLASS = 23i32; |
04454e1e | 1689 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1690 | pub const TokenVirtualizationEnabled: TOKEN_INFORMATION_CLASS = 24i32; |
04454e1e | 1691 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1692 | pub const TokenIntegrityLevel: TOKEN_INFORMATION_CLASS = 25i32; |
04454e1e | 1693 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1694 | pub const TokenUIAccess: TOKEN_INFORMATION_CLASS = 26i32; |
04454e1e | 1695 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1696 | pub const TokenMandatoryPolicy: TOKEN_INFORMATION_CLASS = 27i32; |
04454e1e | 1697 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1698 | pub const TokenLogonSid: TOKEN_INFORMATION_CLASS = 28i32; |
04454e1e | 1699 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1700 | pub const TokenIsAppContainer: TOKEN_INFORMATION_CLASS = 29i32; |
04454e1e | 1701 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1702 | pub const TokenCapabilities: TOKEN_INFORMATION_CLASS = 30i32; |
04454e1e | 1703 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1704 | pub const TokenAppContainerSid: TOKEN_INFORMATION_CLASS = 31i32; |
04454e1e | 1705 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1706 | pub const TokenAppContainerNumber: TOKEN_INFORMATION_CLASS = 32i32; |
04454e1e | 1707 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1708 | pub const TokenUserClaimAttributes: TOKEN_INFORMATION_CLASS = 33i32; |
04454e1e | 1709 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1710 | pub const TokenDeviceClaimAttributes: TOKEN_INFORMATION_CLASS = 34i32; |
04454e1e | 1711 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1712 | pub const TokenRestrictedUserClaimAttributes: TOKEN_INFORMATION_CLASS = 35i32; |
04454e1e | 1713 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1714 | pub const TokenRestrictedDeviceClaimAttributes: TOKEN_INFORMATION_CLASS = 36i32; |
04454e1e | 1715 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1716 | pub const TokenDeviceGroups: TOKEN_INFORMATION_CLASS = 37i32; |
04454e1e | 1717 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1718 | pub const TokenRestrictedDeviceGroups: TOKEN_INFORMATION_CLASS = 38i32; |
04454e1e | 1719 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1720 | pub const TokenSecurityAttributes: TOKEN_INFORMATION_CLASS = 39i32; |
04454e1e | 1721 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1722 | pub const TokenIsRestricted: TOKEN_INFORMATION_CLASS = 40i32; |
04454e1e | 1723 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1724 | pub const TokenProcessTrustLevel: TOKEN_INFORMATION_CLASS = 41i32; |
04454e1e | 1725 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1726 | pub const TokenPrivateNameSpace: TOKEN_INFORMATION_CLASS = 42i32; |
04454e1e | 1727 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1728 | pub const TokenSingletonAttributes: TOKEN_INFORMATION_CLASS = 43i32; |
04454e1e | 1729 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1730 | pub const TokenBnoIsolation: TOKEN_INFORMATION_CLASS = 44i32; |
04454e1e | 1731 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1732 | pub const TokenChildProcessFlags: TOKEN_INFORMATION_CLASS = 45i32; |
04454e1e | 1733 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1734 | pub const TokenIsLessPrivilegedAppContainer: TOKEN_INFORMATION_CLASS = 46i32; |
04454e1e | 1735 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1736 | pub const TokenIsSandboxed: TOKEN_INFORMATION_CLASS = 47i32; |
04454e1e | 1737 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1738 | pub const MaxTokenInfoClass: TOKEN_INFORMATION_CLASS = 48i32; |
1739 | #[repr(C)] | |
04454e1e | 1740 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1741 | #[cfg(feature = "Win32_Foundation")] |
1742 | pub struct TOKEN_LINKED_TOKEN { | |
1743 | pub LinkedToken: super::Foundation::HANDLE, | |
1744 | } | |
1745 | #[cfg(feature = "Win32_Foundation")] | |
1746 | impl ::core::marker::Copy for TOKEN_LINKED_TOKEN {} | |
1747 | #[cfg(feature = "Win32_Foundation")] | |
1748 | impl ::core::clone::Clone for TOKEN_LINKED_TOKEN { | |
1749 | fn clone(&self) -> Self { | |
1750 | *self | |
1751 | } | |
1752 | } | |
1753 | #[repr(C)] | |
04454e1e | 1754 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1755 | #[cfg(feature = "Win32_Foundation")] |
1756 | pub struct TOKEN_MANDATORY_LABEL { | |
1757 | pub Label: SID_AND_ATTRIBUTES, | |
1758 | } | |
1759 | #[cfg(feature = "Win32_Foundation")] | |
1760 | impl ::core::marker::Copy for TOKEN_MANDATORY_LABEL {} | |
1761 | #[cfg(feature = "Win32_Foundation")] | |
1762 | impl ::core::clone::Clone for TOKEN_MANDATORY_LABEL { | |
1763 | fn clone(&self) -> Self { | |
1764 | *self | |
1765 | } | |
1766 | } | |
1767 | #[repr(C)] | |
04454e1e | 1768 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1769 | pub struct TOKEN_MANDATORY_POLICY { |
1770 | pub Policy: TOKEN_MANDATORY_POLICY_ID, | |
1771 | } | |
1772 | impl ::core::marker::Copy for TOKEN_MANDATORY_POLICY {} | |
1773 | impl ::core::clone::Clone for TOKEN_MANDATORY_POLICY { | |
1774 | fn clone(&self) -> Self { | |
1775 | *self | |
1776 | } | |
1777 | } | |
04454e1e | 1778 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1779 | pub type TOKEN_MANDATORY_POLICY_ID = u32; |
04454e1e | 1780 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1781 | pub const TOKEN_MANDATORY_POLICY_OFF: TOKEN_MANDATORY_POLICY_ID = 0u32; |
04454e1e | 1782 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1783 | pub const TOKEN_MANDATORY_POLICY_NO_WRITE_UP: TOKEN_MANDATORY_POLICY_ID = 1u32; |
04454e1e | 1784 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1785 | pub const TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN: TOKEN_MANDATORY_POLICY_ID = 2u32; |
04454e1e | 1786 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1787 | pub const TOKEN_MANDATORY_POLICY_VALID_MASK: TOKEN_MANDATORY_POLICY_ID = 3u32; |
1788 | #[repr(C)] | |
04454e1e | 1789 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1790 | #[cfg(feature = "Win32_Foundation")] |
1791 | pub struct TOKEN_ORIGIN { | |
1792 | pub OriginatingLogonSession: super::Foundation::LUID, | |
1793 | } | |
1794 | #[cfg(feature = "Win32_Foundation")] | |
1795 | impl ::core::marker::Copy for TOKEN_ORIGIN {} | |
1796 | #[cfg(feature = "Win32_Foundation")] | |
1797 | impl ::core::clone::Clone for TOKEN_ORIGIN { | |
1798 | fn clone(&self) -> Self { | |
1799 | *self | |
1800 | } | |
1801 | } | |
1802 | #[repr(C)] | |
04454e1e | 1803 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1804 | #[cfg(feature = "Win32_Foundation")] |
1805 | pub struct TOKEN_OWNER { | |
1806 | pub Owner: super::Foundation::PSID, | |
1807 | } | |
1808 | #[cfg(feature = "Win32_Foundation")] | |
1809 | impl ::core::marker::Copy for TOKEN_OWNER {} | |
1810 | #[cfg(feature = "Win32_Foundation")] | |
1811 | impl ::core::clone::Clone for TOKEN_OWNER { | |
1812 | fn clone(&self) -> Self { | |
1813 | *self | |
1814 | } | |
1815 | } | |
1816 | #[repr(C)] | |
04454e1e | 1817 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1818 | #[cfg(feature = "Win32_Foundation")] |
1819 | pub struct TOKEN_PRIMARY_GROUP { | |
1820 | pub PrimaryGroup: super::Foundation::PSID, | |
1821 | } | |
1822 | #[cfg(feature = "Win32_Foundation")] | |
1823 | impl ::core::marker::Copy for TOKEN_PRIMARY_GROUP {} | |
1824 | #[cfg(feature = "Win32_Foundation")] | |
1825 | impl ::core::clone::Clone for TOKEN_PRIMARY_GROUP { | |
1826 | fn clone(&self) -> Self { | |
1827 | *self | |
1828 | } | |
1829 | } | |
1830 | #[repr(C)] | |
04454e1e | 1831 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1832 | #[cfg(feature = "Win32_Foundation")] |
1833 | pub struct TOKEN_PRIVILEGES { | |
1834 | pub PrivilegeCount: u32, | |
1835 | pub Privileges: [LUID_AND_ATTRIBUTES; 1], | |
1836 | } | |
1837 | #[cfg(feature = "Win32_Foundation")] | |
1838 | impl ::core::marker::Copy for TOKEN_PRIVILEGES {} | |
1839 | #[cfg(feature = "Win32_Foundation")] | |
1840 | impl ::core::clone::Clone for TOKEN_PRIVILEGES { | |
1841 | fn clone(&self) -> Self { | |
1842 | *self | |
1843 | } | |
1844 | } | |
04454e1e | 1845 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1846 | pub type TOKEN_PRIVILEGES_ATTRIBUTES = u32; |
04454e1e | 1847 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1848 | pub const SE_PRIVILEGE_ENABLED: TOKEN_PRIVILEGES_ATTRIBUTES = 2u32; |
04454e1e | 1849 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1850 | pub const SE_PRIVILEGE_ENABLED_BY_DEFAULT: TOKEN_PRIVILEGES_ATTRIBUTES = 1u32; |
04454e1e | 1851 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1852 | pub const SE_PRIVILEGE_REMOVED: TOKEN_PRIVILEGES_ATTRIBUTES = 4u32; |
04454e1e | 1853 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1854 | pub const SE_PRIVILEGE_USED_FOR_ACCESS: TOKEN_PRIVILEGES_ATTRIBUTES = 2147483648u32; |
1855 | #[repr(C)] | |
04454e1e | 1856 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1857 | #[cfg(feature = "Win32_Foundation")] |
1858 | pub struct TOKEN_SOURCE { | |
1859 | pub SourceName: [super::Foundation::CHAR; 8], | |
1860 | pub SourceIdentifier: super::Foundation::LUID, | |
1861 | } | |
1862 | #[cfg(feature = "Win32_Foundation")] | |
1863 | impl ::core::marker::Copy for TOKEN_SOURCE {} | |
1864 | #[cfg(feature = "Win32_Foundation")] | |
1865 | impl ::core::clone::Clone for TOKEN_SOURCE { | |
1866 | fn clone(&self) -> Self { | |
1867 | *self | |
1868 | } | |
1869 | } | |
1870 | #[repr(C)] | |
04454e1e | 1871 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1872 | #[cfg(feature = "Win32_Foundation")] |
1873 | pub struct TOKEN_STATISTICS { | |
1874 | pub TokenId: super::Foundation::LUID, | |
1875 | pub AuthenticationId: super::Foundation::LUID, | |
1876 | pub ExpirationTime: i64, | |
1877 | pub TokenType: TOKEN_TYPE, | |
1878 | pub ImpersonationLevel: SECURITY_IMPERSONATION_LEVEL, | |
1879 | pub DynamicCharged: u32, | |
1880 | pub DynamicAvailable: u32, | |
1881 | pub GroupCount: u32, | |
1882 | pub PrivilegeCount: u32, | |
1883 | pub ModifiedId: super::Foundation::LUID, | |
1884 | } | |
1885 | #[cfg(feature = "Win32_Foundation")] | |
1886 | impl ::core::marker::Copy for TOKEN_STATISTICS {} | |
1887 | #[cfg(feature = "Win32_Foundation")] | |
1888 | impl ::core::clone::Clone for TOKEN_STATISTICS { | |
1889 | fn clone(&self) -> Self { | |
1890 | *self | |
1891 | } | |
1892 | } | |
04454e1e | 1893 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1894 | pub type TOKEN_TYPE = i32; |
04454e1e | 1895 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1896 | pub const TokenPrimary: TOKEN_TYPE = 1i32; |
04454e1e | 1897 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1898 | pub const TokenImpersonation: TOKEN_TYPE = 2i32; |
1899 | #[repr(C)] | |
04454e1e | 1900 | #[doc = "*Required features: `\"Win32_Security\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
1901 | #[cfg(feature = "Win32_Foundation")] |
1902 | pub struct TOKEN_USER { | |
1903 | pub User: SID_AND_ATTRIBUTES, | |
1904 | } | |
1905 | #[cfg(feature = "Win32_Foundation")] | |
1906 | impl ::core::marker::Copy for TOKEN_USER {} | |
1907 | #[cfg(feature = "Win32_Foundation")] | |
1908 | impl ::core::clone::Clone for TOKEN_USER { | |
1909 | fn clone(&self) -> Self { | |
1910 | *self | |
1911 | } | |
1912 | } | |
1913 | #[repr(C)] | |
04454e1e | 1914 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 FG |
1915 | pub struct TOKEN_USER_CLAIMS { |
1916 | pub UserClaims: *mut ::core::ffi::c_void, | |
1917 | } | |
1918 | impl ::core::marker::Copy for TOKEN_USER_CLAIMS {} | |
1919 | impl ::core::clone::Clone for TOKEN_USER_CLAIMS { | |
1920 | fn clone(&self) -> Self { | |
1921 | *self | |
1922 | } | |
1923 | } | |
04454e1e | 1924 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1925 | pub type WELL_KNOWN_SID_TYPE = i32; |
04454e1e | 1926 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1927 | pub const WinNullSid: WELL_KNOWN_SID_TYPE = 0i32; |
04454e1e | 1928 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1929 | pub const WinWorldSid: WELL_KNOWN_SID_TYPE = 1i32; |
04454e1e | 1930 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1931 | pub const WinLocalSid: WELL_KNOWN_SID_TYPE = 2i32; |
04454e1e | 1932 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1933 | pub const WinCreatorOwnerSid: WELL_KNOWN_SID_TYPE = 3i32; |
04454e1e | 1934 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1935 | pub const WinCreatorGroupSid: WELL_KNOWN_SID_TYPE = 4i32; |
04454e1e | 1936 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1937 | pub const WinCreatorOwnerServerSid: WELL_KNOWN_SID_TYPE = 5i32; |
04454e1e | 1938 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1939 | pub const WinCreatorGroupServerSid: WELL_KNOWN_SID_TYPE = 6i32; |
04454e1e | 1940 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1941 | pub const WinNtAuthoritySid: WELL_KNOWN_SID_TYPE = 7i32; |
04454e1e | 1942 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1943 | pub const WinDialupSid: WELL_KNOWN_SID_TYPE = 8i32; |
04454e1e | 1944 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1945 | pub const WinNetworkSid: WELL_KNOWN_SID_TYPE = 9i32; |
04454e1e | 1946 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1947 | pub const WinBatchSid: WELL_KNOWN_SID_TYPE = 10i32; |
04454e1e | 1948 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1949 | pub const WinInteractiveSid: WELL_KNOWN_SID_TYPE = 11i32; |
04454e1e | 1950 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1951 | pub const WinServiceSid: WELL_KNOWN_SID_TYPE = 12i32; |
04454e1e | 1952 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1953 | pub const WinAnonymousSid: WELL_KNOWN_SID_TYPE = 13i32; |
04454e1e | 1954 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1955 | pub const WinProxySid: WELL_KNOWN_SID_TYPE = 14i32; |
04454e1e | 1956 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1957 | pub const WinEnterpriseControllersSid: WELL_KNOWN_SID_TYPE = 15i32; |
04454e1e | 1958 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1959 | pub const WinSelfSid: WELL_KNOWN_SID_TYPE = 16i32; |
04454e1e | 1960 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1961 | pub const WinAuthenticatedUserSid: WELL_KNOWN_SID_TYPE = 17i32; |
04454e1e | 1962 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1963 | pub const WinRestrictedCodeSid: WELL_KNOWN_SID_TYPE = 18i32; |
04454e1e | 1964 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1965 | pub const WinTerminalServerSid: WELL_KNOWN_SID_TYPE = 19i32; |
04454e1e | 1966 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1967 | pub const WinRemoteLogonIdSid: WELL_KNOWN_SID_TYPE = 20i32; |
04454e1e | 1968 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1969 | pub const WinLogonIdsSid: WELL_KNOWN_SID_TYPE = 21i32; |
04454e1e | 1970 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1971 | pub const WinLocalSystemSid: WELL_KNOWN_SID_TYPE = 22i32; |
04454e1e | 1972 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1973 | pub const WinLocalServiceSid: WELL_KNOWN_SID_TYPE = 23i32; |
04454e1e | 1974 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1975 | pub const WinNetworkServiceSid: WELL_KNOWN_SID_TYPE = 24i32; |
04454e1e | 1976 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1977 | pub const WinBuiltinDomainSid: WELL_KNOWN_SID_TYPE = 25i32; |
04454e1e | 1978 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1979 | pub const WinBuiltinAdministratorsSid: WELL_KNOWN_SID_TYPE = 26i32; |
04454e1e | 1980 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1981 | pub const WinBuiltinUsersSid: WELL_KNOWN_SID_TYPE = 27i32; |
04454e1e | 1982 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1983 | pub const WinBuiltinGuestsSid: WELL_KNOWN_SID_TYPE = 28i32; |
04454e1e | 1984 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1985 | pub const WinBuiltinPowerUsersSid: WELL_KNOWN_SID_TYPE = 29i32; |
04454e1e | 1986 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1987 | pub const WinBuiltinAccountOperatorsSid: WELL_KNOWN_SID_TYPE = 30i32; |
04454e1e | 1988 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1989 | pub const WinBuiltinSystemOperatorsSid: WELL_KNOWN_SID_TYPE = 31i32; |
04454e1e | 1990 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1991 | pub const WinBuiltinPrintOperatorsSid: WELL_KNOWN_SID_TYPE = 32i32; |
04454e1e | 1992 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1993 | pub const WinBuiltinBackupOperatorsSid: WELL_KNOWN_SID_TYPE = 33i32; |
04454e1e | 1994 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1995 | pub const WinBuiltinReplicatorSid: WELL_KNOWN_SID_TYPE = 34i32; |
04454e1e | 1996 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1997 | pub const WinBuiltinPreWindows2000CompatibleAccessSid: WELL_KNOWN_SID_TYPE = 35i32; |
04454e1e | 1998 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 1999 | pub const WinBuiltinRemoteDesktopUsersSid: WELL_KNOWN_SID_TYPE = 36i32; |
04454e1e | 2000 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2001 | pub const WinBuiltinNetworkConfigurationOperatorsSid: WELL_KNOWN_SID_TYPE = 37i32; |
04454e1e | 2002 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2003 | pub const WinAccountAdministratorSid: WELL_KNOWN_SID_TYPE = 38i32; |
04454e1e | 2004 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2005 | pub const WinAccountGuestSid: WELL_KNOWN_SID_TYPE = 39i32; |
04454e1e | 2006 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2007 | pub const WinAccountKrbtgtSid: WELL_KNOWN_SID_TYPE = 40i32; |
04454e1e | 2008 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2009 | pub const WinAccountDomainAdminsSid: WELL_KNOWN_SID_TYPE = 41i32; |
04454e1e | 2010 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2011 | pub const WinAccountDomainUsersSid: WELL_KNOWN_SID_TYPE = 42i32; |
04454e1e | 2012 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2013 | pub const WinAccountDomainGuestsSid: WELL_KNOWN_SID_TYPE = 43i32; |
04454e1e | 2014 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2015 | pub const WinAccountComputersSid: WELL_KNOWN_SID_TYPE = 44i32; |
04454e1e | 2016 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2017 | pub const WinAccountControllersSid: WELL_KNOWN_SID_TYPE = 45i32; |
04454e1e | 2018 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2019 | pub const WinAccountCertAdminsSid: WELL_KNOWN_SID_TYPE = 46i32; |
04454e1e | 2020 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2021 | pub const WinAccountSchemaAdminsSid: WELL_KNOWN_SID_TYPE = 47i32; |
04454e1e | 2022 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2023 | pub const WinAccountEnterpriseAdminsSid: WELL_KNOWN_SID_TYPE = 48i32; |
04454e1e | 2024 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2025 | pub const WinAccountPolicyAdminsSid: WELL_KNOWN_SID_TYPE = 49i32; |
04454e1e | 2026 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2027 | pub const WinAccountRasAndIasServersSid: WELL_KNOWN_SID_TYPE = 50i32; |
04454e1e | 2028 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2029 | pub const WinNTLMAuthenticationSid: WELL_KNOWN_SID_TYPE = 51i32; |
04454e1e | 2030 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2031 | pub const WinDigestAuthenticationSid: WELL_KNOWN_SID_TYPE = 52i32; |
04454e1e | 2032 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2033 | pub const WinSChannelAuthenticationSid: WELL_KNOWN_SID_TYPE = 53i32; |
04454e1e | 2034 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2035 | pub const WinThisOrganizationSid: WELL_KNOWN_SID_TYPE = 54i32; |
04454e1e | 2036 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2037 | pub const WinOtherOrganizationSid: WELL_KNOWN_SID_TYPE = 55i32; |
04454e1e | 2038 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2039 | pub const WinBuiltinIncomingForestTrustBuildersSid: WELL_KNOWN_SID_TYPE = 56i32; |
04454e1e | 2040 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2041 | pub const WinBuiltinPerfMonitoringUsersSid: WELL_KNOWN_SID_TYPE = 57i32; |
04454e1e | 2042 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2043 | pub const WinBuiltinPerfLoggingUsersSid: WELL_KNOWN_SID_TYPE = 58i32; |
04454e1e | 2044 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2045 | pub const WinBuiltinAuthorizationAccessSid: WELL_KNOWN_SID_TYPE = 59i32; |
04454e1e | 2046 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2047 | pub const WinBuiltinTerminalServerLicenseServersSid: WELL_KNOWN_SID_TYPE = 60i32; |
04454e1e | 2048 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2049 | pub const WinBuiltinDCOMUsersSid: WELL_KNOWN_SID_TYPE = 61i32; |
04454e1e | 2050 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2051 | pub const WinBuiltinIUsersSid: WELL_KNOWN_SID_TYPE = 62i32; |
04454e1e | 2052 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2053 | pub const WinIUserSid: WELL_KNOWN_SID_TYPE = 63i32; |
04454e1e | 2054 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2055 | pub const WinBuiltinCryptoOperatorsSid: WELL_KNOWN_SID_TYPE = 64i32; |
04454e1e | 2056 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2057 | pub const WinUntrustedLabelSid: WELL_KNOWN_SID_TYPE = 65i32; |
04454e1e | 2058 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2059 | pub const WinLowLabelSid: WELL_KNOWN_SID_TYPE = 66i32; |
04454e1e | 2060 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2061 | pub const WinMediumLabelSid: WELL_KNOWN_SID_TYPE = 67i32; |
04454e1e | 2062 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2063 | pub const WinHighLabelSid: WELL_KNOWN_SID_TYPE = 68i32; |
04454e1e | 2064 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2065 | pub const WinSystemLabelSid: WELL_KNOWN_SID_TYPE = 69i32; |
04454e1e | 2066 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2067 | pub const WinWriteRestrictedCodeSid: WELL_KNOWN_SID_TYPE = 70i32; |
04454e1e | 2068 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2069 | pub const WinCreatorOwnerRightsSid: WELL_KNOWN_SID_TYPE = 71i32; |
04454e1e | 2070 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2071 | pub const WinCacheablePrincipalsGroupSid: WELL_KNOWN_SID_TYPE = 72i32; |
04454e1e | 2072 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2073 | pub const WinNonCacheablePrincipalsGroupSid: WELL_KNOWN_SID_TYPE = 73i32; |
04454e1e | 2074 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2075 | pub const WinEnterpriseReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 74i32; |
04454e1e | 2076 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2077 | pub const WinAccountReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 75i32; |
04454e1e | 2078 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2079 | pub const WinBuiltinEventLogReadersGroup: WELL_KNOWN_SID_TYPE = 76i32; |
04454e1e | 2080 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2081 | pub const WinNewEnterpriseReadonlyControllersSid: WELL_KNOWN_SID_TYPE = 77i32; |
04454e1e | 2082 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2083 | pub const WinBuiltinCertSvcDComAccessGroup: WELL_KNOWN_SID_TYPE = 78i32; |
04454e1e | 2084 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2085 | pub const WinMediumPlusLabelSid: WELL_KNOWN_SID_TYPE = 79i32; |
04454e1e | 2086 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2087 | pub const WinLocalLogonSid: WELL_KNOWN_SID_TYPE = 80i32; |
04454e1e | 2088 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2089 | pub const WinConsoleLogonSid: WELL_KNOWN_SID_TYPE = 81i32; |
04454e1e | 2090 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2091 | pub const WinThisOrganizationCertificateSid: WELL_KNOWN_SID_TYPE = 82i32; |
04454e1e | 2092 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2093 | pub const WinApplicationPackageAuthoritySid: WELL_KNOWN_SID_TYPE = 83i32; |
04454e1e | 2094 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2095 | pub const WinBuiltinAnyPackageSid: WELL_KNOWN_SID_TYPE = 84i32; |
04454e1e | 2096 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2097 | pub const WinCapabilityInternetClientSid: WELL_KNOWN_SID_TYPE = 85i32; |
04454e1e | 2098 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2099 | pub const WinCapabilityInternetClientServerSid: WELL_KNOWN_SID_TYPE = 86i32; |
04454e1e | 2100 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2101 | pub const WinCapabilityPrivateNetworkClientServerSid: WELL_KNOWN_SID_TYPE = 87i32; |
04454e1e | 2102 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2103 | pub const WinCapabilityPicturesLibrarySid: WELL_KNOWN_SID_TYPE = 88i32; |
04454e1e | 2104 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2105 | pub const WinCapabilityVideosLibrarySid: WELL_KNOWN_SID_TYPE = 89i32; |
04454e1e | 2106 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2107 | pub const WinCapabilityMusicLibrarySid: WELL_KNOWN_SID_TYPE = 90i32; |
04454e1e | 2108 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2109 | pub const WinCapabilityDocumentsLibrarySid: WELL_KNOWN_SID_TYPE = 91i32; |
04454e1e | 2110 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2111 | pub const WinCapabilitySharedUserCertificatesSid: WELL_KNOWN_SID_TYPE = 92i32; |
04454e1e | 2112 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2113 | pub const WinCapabilityEnterpriseAuthenticationSid: WELL_KNOWN_SID_TYPE = 93i32; |
04454e1e | 2114 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2115 | pub const WinCapabilityRemovableStorageSid: WELL_KNOWN_SID_TYPE = 94i32; |
04454e1e | 2116 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2117 | pub const WinBuiltinRDSRemoteAccessServersSid: WELL_KNOWN_SID_TYPE = 95i32; |
04454e1e | 2118 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2119 | pub const WinBuiltinRDSEndpointServersSid: WELL_KNOWN_SID_TYPE = 96i32; |
04454e1e | 2120 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2121 | pub const WinBuiltinRDSManagementServersSid: WELL_KNOWN_SID_TYPE = 97i32; |
04454e1e | 2122 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2123 | pub const WinUserModeDriversSid: WELL_KNOWN_SID_TYPE = 98i32; |
04454e1e | 2124 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2125 | pub const WinBuiltinHyperVAdminsSid: WELL_KNOWN_SID_TYPE = 99i32; |
04454e1e | 2126 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2127 | pub const WinAccountCloneableControllersSid: WELL_KNOWN_SID_TYPE = 100i32; |
04454e1e | 2128 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2129 | pub const WinBuiltinAccessControlAssistanceOperatorsSid: WELL_KNOWN_SID_TYPE = 101i32; |
04454e1e | 2130 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2131 | pub const WinBuiltinRemoteManagementUsersSid: WELL_KNOWN_SID_TYPE = 102i32; |
04454e1e | 2132 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2133 | pub const WinAuthenticationAuthorityAssertedSid: WELL_KNOWN_SID_TYPE = 103i32; |
04454e1e | 2134 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2135 | pub const WinAuthenticationServiceAssertedSid: WELL_KNOWN_SID_TYPE = 104i32; |
04454e1e | 2136 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2137 | pub const WinLocalAccountSid: WELL_KNOWN_SID_TYPE = 105i32; |
04454e1e | 2138 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2139 | pub const WinLocalAccountAndAdministratorSid: WELL_KNOWN_SID_TYPE = 106i32; |
04454e1e | 2140 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2141 | pub const WinAccountProtectedUsersSid: WELL_KNOWN_SID_TYPE = 107i32; |
04454e1e | 2142 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2143 | pub const WinCapabilityAppointmentsSid: WELL_KNOWN_SID_TYPE = 108i32; |
04454e1e | 2144 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2145 | pub const WinCapabilityContactsSid: WELL_KNOWN_SID_TYPE = 109i32; |
04454e1e | 2146 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2147 | pub const WinAccountDefaultSystemManagedSid: WELL_KNOWN_SID_TYPE = 110i32; |
04454e1e | 2148 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2149 | pub const WinBuiltinDefaultSystemManagedGroupSid: WELL_KNOWN_SID_TYPE = 111i32; |
04454e1e | 2150 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2151 | pub const WinBuiltinStorageReplicaAdminsSid: WELL_KNOWN_SID_TYPE = 112i32; |
04454e1e | 2152 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2153 | pub const WinAccountKeyAdminsSid: WELL_KNOWN_SID_TYPE = 113i32; |
04454e1e | 2154 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2155 | pub const WinAccountEnterpriseKeyAdminsSid: WELL_KNOWN_SID_TYPE = 114i32; |
04454e1e | 2156 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2157 | pub const WinAuthenticationKeyTrustSid: WELL_KNOWN_SID_TYPE = 115i32; |
04454e1e | 2158 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2159 | pub const WinAuthenticationKeyPropertyMFASid: WELL_KNOWN_SID_TYPE = 116i32; |
04454e1e | 2160 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2161 | pub const WinAuthenticationKeyPropertyAttestationSid: WELL_KNOWN_SID_TYPE = 117i32; |
04454e1e | 2162 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2163 | pub const WinAuthenticationFreshKeyAuthSid: WELL_KNOWN_SID_TYPE = 118i32; |
04454e1e | 2164 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2165 | pub const WinBuiltinDeviceOwnersSid: WELL_KNOWN_SID_TYPE = 119i32; |
04454e1e | 2166 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2167 | pub const cwcFILENAMESUFFIXMAX: u32 = 20u32; |
04454e1e | 2168 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
5e7ed085 | 2169 | pub const cwcHRESULTSTRING: u32 = 40u32; |
04454e1e | 2170 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2171 | pub const szLBRACE: &str = "{"; |
04454e1e | 2172 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2173 | pub const szLPAREN: &str = "("; |
04454e1e | 2174 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2175 | pub const szRBRACE: &str = "}"; |
04454e1e | 2176 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2177 | pub const szRPAREN: &str = ")"; |
04454e1e | 2178 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2179 | pub const wszCERTENROLLSHAREPATH: &str = "CertSrv\\CertEnroll"; |
04454e1e | 2180 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2181 | pub const wszFCSAPARM_CERTFILENAMESUFFIX: &str = "%4"; |
04454e1e | 2182 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2183 | pub const wszFCSAPARM_CONFIGDN: &str = "%6"; |
04454e1e | 2184 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2185 | pub const wszFCSAPARM_CRLDELTAFILENAMESUFFIX: &str = "%9"; |
04454e1e | 2186 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2187 | pub const wszFCSAPARM_CRLFILENAMESUFFIX: &str = "%8"; |
04454e1e | 2188 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2189 | pub const wszFCSAPARM_DOMAINDN: &str = "%5"; |
04454e1e | 2190 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2191 | pub const wszFCSAPARM_DSCACERTATTRIBUTE: &str = "%11"; |
04454e1e | 2192 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2193 | pub const wszFCSAPARM_DSCRLATTRIBUTE: &str = "%10"; |
04454e1e | 2194 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2195 | pub const wszFCSAPARM_DSCROSSCERTPAIRATTRIBUTE: &str = "%14"; |
04454e1e | 2196 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2197 | pub const wszFCSAPARM_DSKRACERTATTRIBUTE: &str = "%13"; |
04454e1e | 2198 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2199 | pub const wszFCSAPARM_DSUSERCERTATTRIBUTE: &str = "%12"; |
04454e1e | 2200 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2201 | pub const wszFCSAPARM_SANITIZEDCANAME: &str = "%3"; |
04454e1e | 2202 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2203 | pub const wszFCSAPARM_SANITIZEDCANAMEHASH: &str = "%7"; |
04454e1e | 2204 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2205 | pub const wszFCSAPARM_SERVERDNSNAME: &str = "%1"; |
04454e1e | 2206 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2207 | pub const wszFCSAPARM_SERVERSHORTNAME: &str = "%2"; |
04454e1e | 2208 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2209 | pub const wszLBRACE: &str = "{"; |
04454e1e | 2210 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2211 | pub const wszLPAREN: &str = "("; |
04454e1e | 2212 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2213 | pub const wszRBRACE: &str = "}"; |
04454e1e | 2214 | #[doc = "*Required features: `\"Win32_Security\"`*"] |
923072b8 | 2215 | pub const wszRPAREN: &str = ")"; |