| 1 |
#[cfg(feature = "Win32_Foundation")] |
| 2 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SaferCloseLevel(hlevelhandle : super:: SAFER_LEVEL_HANDLE) -> super::super::Foundation:: BOOL); |
| 3 |
#[cfg(feature = "Win32_Foundation")] |
| 4 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SaferComputeTokenFromLevel(levelhandle : super:: SAFER_LEVEL_HANDLE, inaccesstoken : super::super::Foundation:: HANDLE, outaccesstoken : *mut super::super::Foundation:: HANDLE, dwflags : SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS, lpreserved : *mut ::core::ffi::c_void) -> super::super::Foundation:: BOOL); |
| 5 |
#[cfg(feature = "Win32_Foundation")] |
| 6 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SaferCreateLevel(dwscopeid : u32, dwlevelid : u32, openflags : u32, plevelhandle : *mut super:: SAFER_LEVEL_HANDLE, lpreserved : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL); |
| 7 |
#[cfg(feature = "Win32_Foundation")] |
| 8 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SaferGetLevelInformation(levelhandle : super:: SAFER_LEVEL_HANDLE, dwinfotype : SAFER_OBJECT_INFO_CLASS, lpquerybuffer : *mut ::core::ffi::c_void, dwinbuffersize : u32, lpdwoutbuffersize : *mut u32) -> super::super::Foundation:: BOOL); |
| 9 |
#[cfg(feature = "Win32_Foundation")] |
| 10 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SaferGetPolicyInformation(dwscopeid : u32, saferpolicyinfoclass : SAFER_POLICY_INFO_CLASS, infobuffersize : u32, infobuffer : *mut ::core::ffi::c_void, infobufferretsize : *mut u32, lpreserved : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL); |
| 11 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 12 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"] fn SaferIdentifyLevel(dwnumproperties : u32, pcodeproperties : *const SAFER_CODE_PROPERTIES_V2, plevelhandle : *mut super:: SAFER_LEVEL_HANDLE, lpreserved : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL); |
| 13 |
#[cfg(feature = "Win32_Foundation")] |
| 14 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SaferRecordEventLogEntry(hlevel : super:: SAFER_LEVEL_HANDLE, sztargetpath : ::windows_sys::core::PCWSTR, lpreserved : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL); |
| 15 |
#[cfg(feature = "Win32_Foundation")] |
| 16 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SaferSetLevelInformation(levelhandle : super:: SAFER_LEVEL_HANDLE, dwinfotype : SAFER_OBJECT_INFO_CLASS, lpquerybuffer : *const ::core::ffi::c_void, dwinbuffersize : u32) -> super::super::Foundation:: BOOL); |
| 17 |
#[cfg(feature = "Win32_Foundation")] |
| 18 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SaferSetPolicyInformation(dwscopeid : u32, saferpolicyinfoclass : SAFER_POLICY_INFO_CLASS, infobuffersize : u32, infobuffer : *const ::core::ffi::c_void, lpreserved : *const ::core::ffi::c_void) -> super::super::Foundation:: BOOL); |
| 19 |
#[cfg(feature = "Win32_Foundation")] |
| 20 |
::windows_targets::link!("advapi32.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SaferiIsExecutableFileType(szfullpathname : ::windows_sys::core::PCWSTR, bfromshellexecute : super::super::Foundation:: BOOLEAN) -> super::super::Foundation:: BOOL); |
| 21 |
pub const SAFER_CRITERIA_APPX_PACKAGE: u32 = 32u32; |
| 22 |
pub const SAFER_CRITERIA_AUTHENTICODE: u32 = 8u32; |
| 23 |
pub const SAFER_CRITERIA_IMAGEHASH: u32 = 4u32; |
| 24 |
pub const SAFER_CRITERIA_IMAGEPATH: u32 = 1u32; |
| 25 |
pub const SAFER_CRITERIA_IMAGEPATH_NT: u32 = 4096u32; |
| 26 |
pub const SAFER_CRITERIA_NOSIGNEDHASH: u32 = 2u32; |
| 27 |
pub const SAFER_CRITERIA_URLZONE: u32 = 16u32; |
| 28 |
pub const SAFER_LEVELID_CONSTRAINED: u32 = 65536u32; |
| 29 |
pub const SAFER_LEVELID_DISALLOWED: u32 = 0u32; |
| 30 |
pub const SAFER_LEVELID_FULLYTRUSTED: u32 = 262144u32; |
| 31 |
pub const SAFER_LEVELID_NORMALUSER: u32 = 131072u32; |
| 32 |
pub const SAFER_LEVELID_UNTRUSTED: u32 = 4096u32; |
| 33 |
pub const SAFER_LEVEL_OPEN: u32 = 1u32; |
| 34 |
pub const SAFER_MAX_DESCRIPTION_SIZE: u32 = 256u32; |
| 35 |
pub const SAFER_MAX_FRIENDLYNAME_SIZE: u32 = 256u32; |
| 36 |
pub const SAFER_MAX_HASH_SIZE: u32 = 64u32; |
| 37 |
pub const SAFER_POLICY_BLOCK_CLIENT_UI: u32 = 8192u32; |
| 38 |
pub const SAFER_POLICY_HASH_DUPLICATE: u32 = 262144u32; |
| 39 |
pub const SAFER_POLICY_JOBID_CONSTRAINED: u32 = 67108864u32; |
| 40 |
pub const SAFER_POLICY_JOBID_MASK: u32 = 4278190080u32; |
| 41 |
pub const SAFER_POLICY_JOBID_UNTRUSTED: u32 = 50331648u32; |
| 42 |
pub const SAFER_POLICY_ONLY_AUDIT: u32 = 4096u32; |
| 43 |
pub const SAFER_POLICY_ONLY_EXES: u32 = 65536u32; |
| 44 |
pub const SAFER_POLICY_SANDBOX_INERT: u32 = 131072u32; |
| 45 |
pub const SAFER_POLICY_UIFLAGS_HIDDEN: u32 = 4u32; |
| 46 |
pub const SAFER_POLICY_UIFLAGS_INFORMATION_PROMPT: u32 = 1u32; |
| 47 |
pub const SAFER_POLICY_UIFLAGS_MASK: u32 = 255u32; |
| 48 |
pub const SAFER_POLICY_UIFLAGS_OPTION_PROMPT: u32 = 2u32; |
| 49 |
pub const SAFER_SCOPEID_MACHINE: u32 = 1u32; |
| 50 |
pub const SAFER_SCOPEID_USER: u32 = 2u32; |
| 51 |
pub const SAFER_TOKEN_COMPARE_ONLY: SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS = 2u32; |
| 52 |
pub const SAFER_TOKEN_MAKE_INERT: SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS = 4u32; |
| 53 |
pub const SAFER_TOKEN_NULL_IF_EQUAL: SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS = 1u32; |
| 54 |
pub const SAFER_TOKEN_WANT_FLAGS: SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS = 8u32; |
| 55 |
pub const SRP_POLICY_APPX: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("APPX"); |
| 56 |
pub const SRP_POLICY_DLL: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("DLL"); |
| 57 |
pub const SRP_POLICY_EXE: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("EXE"); |
| 58 |
pub const SRP_POLICY_MANAGEDINSTALLER: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("MANAGEDINSTALLER"); |
| 59 |
pub const SRP_POLICY_MSI: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("MSI"); |
| 60 |
pub const SRP_POLICY_NOV2: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("IGNORESRPV2"); |
| 61 |
pub const SRP_POLICY_SCRIPT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SCRIPT"); |
| 62 |
pub const SRP_POLICY_SHELL: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("SHELL"); |
| 63 |
pub const SRP_POLICY_WLDPCONFIGCI: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("WLDPCONFIGCI"); |
| 64 |
pub const SRP_POLICY_WLDPMSI: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("WLDPMSI"); |
| 65 |
pub const SRP_POLICY_WLDPSCRIPT: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("WLDPSCRIPT"); |
| 66 |
pub const SaferIdentityDefault: SAFER_IDENTIFICATION_TYPES = 0i32; |
| 67 |
pub const SaferIdentityTypeCertificate: SAFER_IDENTIFICATION_TYPES = 4i32; |
| 68 |
pub const SaferIdentityTypeImageHash: SAFER_IDENTIFICATION_TYPES = 2i32; |
| 69 |
pub const SaferIdentityTypeImageName: SAFER_IDENTIFICATION_TYPES = 1i32; |
| 70 |
pub const SaferIdentityTypeUrlZone: SAFER_IDENTIFICATION_TYPES = 3i32; |
| 71 |
pub const SaferObjectAllIdentificationGuids: SAFER_OBJECT_INFO_CLASS = 14i32; |
| 72 |
pub const SaferObjectBuiltin: SAFER_OBJECT_INFO_CLASS = 5i32; |
| 73 |
pub const SaferObjectDefaultOwner: SAFER_OBJECT_INFO_CLASS = 10i32; |
| 74 |
pub const SaferObjectDeletedPrivileges: SAFER_OBJECT_INFO_CLASS = 9i32; |
| 75 |
pub const SaferObjectDescription: SAFER_OBJECT_INFO_CLASS = 4i32; |
| 76 |
pub const SaferObjectDisableMaxPrivilege: SAFER_OBJECT_INFO_CLASS = 7i32; |
| 77 |
pub const SaferObjectDisallowed: SAFER_OBJECT_INFO_CLASS = 6i32; |
| 78 |
pub const SaferObjectExtendedError: SAFER_OBJECT_INFO_CLASS = 16i32; |
| 79 |
pub const SaferObjectFriendlyName: SAFER_OBJECT_INFO_CLASS = 3i32; |
| 80 |
pub const SaferObjectInvertDeletedPrivileges: SAFER_OBJECT_INFO_CLASS = 8i32; |
| 81 |
pub const SaferObjectLevelId: SAFER_OBJECT_INFO_CLASS = 1i32; |
| 82 |
pub const SaferObjectRestrictedSidsAdded: SAFER_OBJECT_INFO_CLASS = 13i32; |
| 83 |
pub const SaferObjectRestrictedSidsInverted: SAFER_OBJECT_INFO_CLASS = 12i32; |
| 84 |
pub const SaferObjectScopeId: SAFER_OBJECT_INFO_CLASS = 2i32; |
| 85 |
pub const SaferObjectSidsToDisable: SAFER_OBJECT_INFO_CLASS = 11i32; |
| 86 |
pub const SaferObjectSingleIdentification: SAFER_OBJECT_INFO_CLASS = 15i32; |
| 87 |
pub const SaferPolicyAuthenticodeEnabled: SAFER_POLICY_INFO_CLASS = 7i32; |
| 88 |
pub const SaferPolicyDefaultLevel: SAFER_POLICY_INFO_CLASS = 3i32; |
| 89 |
pub const SaferPolicyDefaultLevelFlags: SAFER_POLICY_INFO_CLASS = 6i32; |
| 90 |
pub const SaferPolicyEnableTransparentEnforcement: SAFER_POLICY_INFO_CLASS = 2i32; |
| 91 |
pub const SaferPolicyEvaluateUserScope: SAFER_POLICY_INFO_CLASS = 4i32; |
| 92 |
pub const SaferPolicyLevelList: SAFER_POLICY_INFO_CLASS = 1i32; |
| 93 |
pub const SaferPolicyScopeFlags: SAFER_POLICY_INFO_CLASS = 5i32; |
| 94 |
pub type SAFER_COMPUTE_TOKEN_FROM_LEVEL_FLAGS = u32; |
| 95 |
pub type SAFER_IDENTIFICATION_TYPES = i32; |
| 96 |
pub type SAFER_OBJECT_INFO_CLASS = i32; |
| 97 |
pub type SAFER_POLICY_INFO_CLASS = i32; |
| 98 |
#[repr(C)] |
| 99 |
#[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"] |
| 100 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 101 |
pub struct SAFER_CODE_PROPERTIES_V1 { |
| 102 |
pub cbSize: u32, |
| 103 |
pub dwCheckFlags: u32, |
| 104 |
pub ImagePath: ::windows_sys::core::PCWSTR, |
| 105 |
pub hImageFileHandle: super::super::Foundation::HANDLE, |
| 106 |
pub UrlZoneId: u32, |
| 107 |
pub ImageHash: [u8; 64], |
| 108 |
pub dwImageHashSize: u32, |
| 109 |
pub ImageSize: i64, |
| 110 |
pub HashAlgorithm: super::Cryptography::ALG_ID, |
| 111 |
pub pByteBlock: *mut u8, |
| 112 |
pub hWndParent: super::super::Foundation::HWND, |
| 113 |
pub dwWVTUIChoice: u32, |
| 114 |
} |
| 115 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 116 |
impl ::core::marker::Copy for SAFER_CODE_PROPERTIES_V1 {} |
| 117 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 118 |
impl ::core::clone::Clone for SAFER_CODE_PROPERTIES_V1 { |
| 119 |
fn clone(&self) -> Self { |
| 120 |
*self |
| 121 |
} |
| 122 |
} |
| 123 |
#[repr(C)] |
| 124 |
#[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"] |
| 125 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 126 |
pub struct SAFER_CODE_PROPERTIES_V2 { |
| 127 |
pub cbSize: u32, |
| 128 |
pub dwCheckFlags: u32, |
| 129 |
pub ImagePath: ::windows_sys::core::PCWSTR, |
| 130 |
pub hImageFileHandle: super::super::Foundation::HANDLE, |
| 131 |
pub UrlZoneId: u32, |
| 132 |
pub ImageHash: [u8; 64], |
| 133 |
pub dwImageHashSize: u32, |
| 134 |
pub ImageSize: i64, |
| 135 |
pub HashAlgorithm: super::Cryptography::ALG_ID, |
| 136 |
pub pByteBlock: *mut u8, |
| 137 |
pub hWndParent: super::super::Foundation::HWND, |
| 138 |
pub dwWVTUIChoice: u32, |
| 139 |
pub PackageMoniker: ::windows_sys::core::PCWSTR, |
| 140 |
pub PackagePublisher: ::windows_sys::core::PCWSTR, |
| 141 |
pub PackageName: ::windows_sys::core::PCWSTR, |
| 142 |
pub PackageVersion: u64, |
| 143 |
pub PackageIsFramework: super::super::Foundation::BOOL, |
| 144 |
} |
| 145 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 146 |
impl ::core::marker::Copy for SAFER_CODE_PROPERTIES_V2 {} |
| 147 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 148 |
impl ::core::clone::Clone for SAFER_CODE_PROPERTIES_V2 { |
| 149 |
fn clone(&self) -> Self { |
| 150 |
*self |
| 151 |
} |
| 152 |
} |
| 153 |
#[repr(C)] |
| 154 |
#[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"] |
| 155 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 156 |
pub struct SAFER_HASH_IDENTIFICATION { |
| 157 |
pub header: SAFER_IDENTIFICATION_HEADER, |
| 158 |
pub Description: [u16; 256], |
| 159 |
pub FriendlyName: [u16; 256], |
| 160 |
pub HashSize: u32, |
| 161 |
pub ImageHash: [u8; 64], |
| 162 |
pub HashAlgorithm: super::Cryptography::ALG_ID, |
| 163 |
pub ImageSize: i64, |
| 164 |
pub dwSaferFlags: u32, |
| 165 |
} |
| 166 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 167 |
impl ::core::marker::Copy for SAFER_HASH_IDENTIFICATION {} |
| 168 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 169 |
impl ::core::clone::Clone for SAFER_HASH_IDENTIFICATION { |
| 170 |
fn clone(&self) -> Self { |
| 171 |
*self |
| 172 |
} |
| 173 |
} |
| 174 |
#[repr(C)] |
| 175 |
#[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Security_Cryptography\"`"] |
| 176 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 177 |
pub struct SAFER_HASH_IDENTIFICATION2 { |
| 178 |
pub hashIdentification: SAFER_HASH_IDENTIFICATION, |
| 179 |
pub HashSize: u32, |
| 180 |
pub ImageHash: [u8; 64], |
| 181 |
pub HashAlgorithm: super::Cryptography::ALG_ID, |
| 182 |
} |
| 183 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 184 |
impl ::core::marker::Copy for SAFER_HASH_IDENTIFICATION2 {} |
| 185 |
#[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] |
| 186 |
impl ::core::clone::Clone for SAFER_HASH_IDENTIFICATION2 { |
| 187 |
fn clone(&self) -> Self { |
| 188 |
*self |
| 189 |
} |
| 190 |
} |
| 191 |
#[repr(C)] |
| 192 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 193 |
#[cfg(feature = "Win32_Foundation")] |
| 194 |
pub struct SAFER_IDENTIFICATION_HEADER { |
| 195 |
pub dwIdentificationType: SAFER_IDENTIFICATION_TYPES, |
| 196 |
pub cbStructSize: u32, |
| 197 |
pub IdentificationGuid: ::windows_sys::core::GUID, |
| 198 |
pub lastModified: super::super::Foundation::FILETIME, |
| 199 |
} |
| 200 |
#[cfg(feature = "Win32_Foundation")] |
| 201 |
impl ::core::marker::Copy for SAFER_IDENTIFICATION_HEADER {} |
| 202 |
#[cfg(feature = "Win32_Foundation")] |
| 203 |
impl ::core::clone::Clone for SAFER_IDENTIFICATION_HEADER { |
| 204 |
fn clone(&self) -> Self { |
| 205 |
*self |
| 206 |
} |
| 207 |
} |
| 208 |
#[repr(C)] |
| 209 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 210 |
#[cfg(feature = "Win32_Foundation")] |
| 211 |
pub struct SAFER_PATHNAME_IDENTIFICATION { |
| 212 |
pub header: SAFER_IDENTIFICATION_HEADER, |
| 213 |
pub Description: [u16; 256], |
| 214 |
pub ImageName: ::windows_sys::core::PWSTR, |
| 215 |
pub dwSaferFlags: u32, |
| 216 |
} |
| 217 |
#[cfg(feature = "Win32_Foundation")] |
| 218 |
impl ::core::marker::Copy for SAFER_PATHNAME_IDENTIFICATION {} |
| 219 |
#[cfg(feature = "Win32_Foundation")] |
| 220 |
impl ::core::clone::Clone for SAFER_PATHNAME_IDENTIFICATION { |
| 221 |
fn clone(&self) -> Self { |
| 222 |
*self |
| 223 |
} |
| 224 |
} |
| 225 |
#[repr(C)] |
| 226 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 227 |
#[cfg(feature = "Win32_Foundation")] |
| 228 |
pub struct SAFER_URLZONE_IDENTIFICATION { |
| 229 |
pub header: SAFER_IDENTIFICATION_HEADER, |
| 230 |
pub UrlZoneId: u32, |
| 231 |
pub dwSaferFlags: u32, |
| 232 |
} |
| 233 |
#[cfg(feature = "Win32_Foundation")] |
| 234 |
impl ::core::marker::Copy for SAFER_URLZONE_IDENTIFICATION {} |
| 235 |
#[cfg(feature = "Win32_Foundation")] |
| 236 |
impl ::core::clone::Clone for SAFER_URLZONE_IDENTIFICATION { |
| 237 |
fn clone(&self) -> Self { |
| 238 |
*self |
| 239 |
} |
| 240 |
} |