Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/Security/EnterpriseData/mod.rs

raw
1 ::windows_targets::link!("efswrt.dll" "system" fn ProtectFileToEnterpriseIdentity(fileorfolderpath : ::windows_sys::core::PCWSTR, identity : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
2 #[cfg(feature = "Win32_Foundation")]
3 ::windows_targets::link!("srpapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SrpCloseThreadNetworkContext(threadnetworkcontext : *mut HTHREAD_NETWORK_CONTEXT) -> ::windows_sys::core::HRESULT);
4 #[cfg(feature = "Win32_Foundation")]
5 ::windows_targets::link!("srpapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SrpCreateThreadNetworkContext(enterpriseid : ::windows_sys::core::PCWSTR, threadnetworkcontext : *mut HTHREAD_NETWORK_CONTEXT) -> ::windows_sys::core::HRESULT);
6 ::windows_targets::link!("srpapi.dll" "system" fn SrpDisablePermissiveModeFileEncryption() -> ::windows_sys::core::HRESULT);
7 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_Packaging_Appx"))]
8 ::windows_targets::link!("srpapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Storage_Packaging_Appx\"`"] fn SrpDoesPolicyAllowAppExecution(packageid : *const super::super::Storage::Packaging::Appx:: PACKAGE_ID, isallowed : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT);
9 ::windows_targets::link!("srpapi.dll" "system" fn SrpEnablePermissiveModeFileEncryption(enterpriseid : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
10 #[cfg(feature = "Win32_Foundation")]
11 ::windows_targets::link!("srpapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SrpGetEnterpriseIds(tokenhandle : super::super::Foundation:: HANDLE, numberofbytes : *mut u32, enterpriseids : *mut ::windows_sys::core::PCWSTR, enterpriseidcount : *mut u32) -> ::windows_sys::core::HRESULT);
12 #[cfg(feature = "Win32_Foundation")]
13 ::windows_targets::link!("srpapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SrpGetEnterprisePolicy(tokenhandle : super::super::Foundation:: HANDLE, policyflags : *mut ENTERPRISE_DATA_POLICIES) -> ::windows_sys::core::HRESULT);
14 ::windows_targets::link!("srpapi.dll" "system" fn SrpHostingInitialize(version : SRPHOSTING_VERSION, r#type : SRPHOSTING_TYPE, pvdata : *const ::core::ffi::c_void, cbdata : u32) -> ::windows_sys::core::HRESULT);
15 ::windows_targets::link!("srpapi.dll" "system" fn SrpHostingTerminate(r#type : SRPHOSTING_TYPE) -> ());
16 #[cfg(feature = "Win32_Foundation")]
17 ::windows_targets::link!("srpapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SrpIsTokenService(tokenhandle : super::super::Foundation:: HANDLE, istokenservice : *mut u8) -> super::super::Foundation:: NTSTATUS);
18 #[cfg(feature = "Win32_Foundation")]
19 ::windows_targets::link!("srpapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SrpSetTokenEnterpriseId(tokenhandle : super::super::Foundation:: HANDLE, enterpriseid : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
20 ::windows_targets::link!("efswrt.dll" "system" fn UnprotectFile(fileorfolderpath : ::windows_sys::core::PCWSTR, options : *const FILE_UNPROTECT_OPTIONS) -> ::windows_sys::core::HRESULT);
21 pub type IProtectionPolicyManagerInterop = *mut ::core::ffi::c_void;
22 pub type IProtectionPolicyManagerInterop2 = *mut ::core::ffi::c_void;
23 pub type IProtectionPolicyManagerInterop3 = *mut ::core::ffi::c_void;
24 pub const ENTERPRISE_POLICY_ALLOWED: ENTERPRISE_DATA_POLICIES = 1i32;
25 pub const ENTERPRISE_POLICY_ENLIGHTENED: ENTERPRISE_DATA_POLICIES = 2i32;
26 pub const ENTERPRISE_POLICY_EXEMPT: ENTERPRISE_DATA_POLICIES = 4i32;
27 pub const ENTERPRISE_POLICY_NONE: ENTERPRISE_DATA_POLICIES = 0i32;
28 pub const SRPHOSTING_TYPE_NONE: SRPHOSTING_TYPE = 0i32;
29 pub const SRPHOSTING_TYPE_WINHTTP: SRPHOSTING_TYPE = 1i32;
30 pub const SRPHOSTING_TYPE_WININET: SRPHOSTING_TYPE = 2i32;
31 pub const SRPHOSTING_VERSION1: SRPHOSTING_VERSION = 1i32;
32 pub type ENTERPRISE_DATA_POLICIES = i32;
33 pub type SRPHOSTING_TYPE = i32;
34 pub type SRPHOSTING_VERSION = i32;
35 #[repr(C)]
36 pub struct FILE_UNPROTECT_OPTIONS {
37 pub audit: u8,
38 }
39 impl ::core::marker::Copy for FILE_UNPROTECT_OPTIONS {}
40 impl ::core::clone::Clone for FILE_UNPROTECT_OPTIONS {
41 fn clone(&self) -> Self {
42 *self
43 }
44 }
45 #[repr(C)]
46 #[doc = "Required features: `\"Win32_Foundation\"`"]
47 #[cfg(feature = "Win32_Foundation")]
48 pub struct HTHREAD_NETWORK_CONTEXT {
49 pub ThreadId: u32,
50 pub ThreadContext: super::super::Foundation::HANDLE,
51 }
52 #[cfg(feature = "Win32_Foundation")]
53 impl ::core::marker::Copy for HTHREAD_NETWORK_CONTEXT {}
54 #[cfg(feature = "Win32_Foundation")]
55 impl ::core::clone::Clone for HTHREAD_NETWORK_CONTEXT {
56 fn clone(&self) -> Self {
57 *self
58 }
59 }