]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Win32/Security/EnterpriseData/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / Security / EnterpriseData / mod.rs
CommitLineData
5e7ed085
FG
1#[link(name = "windows")]
2extern "system" {
04454e1e
FG
3 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
4 pub fn ProtectFileToEnterpriseIdentity(fileorfolderpath: ::windows_sys::core::PCWSTR, identity: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT;
5 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"]
5e7ed085
FG
6 #[cfg(feature = "Win32_Foundation")]
7 pub fn SrpCloseThreadNetworkContext(threadnetworkcontext: *mut HTHREAD_NETWORK_CONTEXT) -> ::windows_sys::core::HRESULT;
04454e1e 8 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"]
5e7ed085 9 #[cfg(feature = "Win32_Foundation")]
04454e1e
FG
10 pub fn SrpCreateThreadNetworkContext(enterpriseid: ::windows_sys::core::PCWSTR, threadnetworkcontext: *mut HTHREAD_NETWORK_CONTEXT) -> ::windows_sys::core::HRESULT;
11 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 12 pub fn SrpDisablePermissiveModeFileEncryption() -> ::windows_sys::core::HRESULT;
04454e1e 13 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`, `\"Win32_Storage_Packaging_Appx\"`*"]
5e7ed085
FG
14 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Storage_Packaging_Appx"))]
15 pub fn SrpDoesPolicyAllowAppExecution(packageid: *const super::super::Storage::Packaging::Appx::PACKAGE_ID, isallowed: *mut super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT;
04454e1e
FG
16 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
17 pub fn SrpEnablePermissiveModeFileEncryption(enterpriseid: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT;
18 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"]
5e7ed085 19 #[cfg(feature = "Win32_Foundation")]
04454e1e
FG
20 pub fn SrpGetEnterpriseIds(tokenhandle: super::super::Foundation::HANDLE, numberofbytes: *mut u32, enterpriseids: *mut ::windows_sys::core::PWSTR, enterpriseidcount: *mut u32) -> ::windows_sys::core::HRESULT;
21 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"]
5e7ed085
FG
22 #[cfg(feature = "Win32_Foundation")]
23 pub fn SrpGetEnterprisePolicy(tokenhandle: super::super::Foundation::HANDLE, policyflags: *mut ENTERPRISE_DATA_POLICIES) -> ::windows_sys::core::HRESULT;
04454e1e 24 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 25 pub fn SrpHostingInitialize(version: SRPHOSTING_VERSION, r#type: SRPHOSTING_TYPE, pvdata: *const ::core::ffi::c_void, cbdata: u32) -> ::windows_sys::core::HRESULT;
04454e1e 26 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 27 pub fn SrpHostingTerminate(r#type: SRPHOSTING_TYPE);
04454e1e 28 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"]
5e7ed085
FG
29 #[cfg(feature = "Win32_Foundation")]
30 pub fn SrpIsTokenService(tokenhandle: super::super::Foundation::HANDLE, istokenservice: *mut u8) -> super::super::Foundation::NTSTATUS;
04454e1e 31 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"]
5e7ed085 32 #[cfg(feature = "Win32_Foundation")]
04454e1e
FG
33 pub fn SrpSetTokenEnterpriseId(tokenhandle: super::super::Foundation::HANDLE, enterpriseid: ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT;
34 #[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
35 pub fn UnprotectFile(fileorfolderpath: ::windows_sys::core::PCWSTR, options: *const FILE_UNPROTECT_OPTIONS) -> ::windows_sys::core::HRESULT;
5e7ed085 36}
04454e1e 37#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 38pub type ENTERPRISE_DATA_POLICIES = u32;
04454e1e 39#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 40pub const ENTERPRISE_POLICY_NONE: ENTERPRISE_DATA_POLICIES = 0u32;
04454e1e 41#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 42pub const ENTERPRISE_POLICY_ALLOWED: ENTERPRISE_DATA_POLICIES = 1u32;
04454e1e 43#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 44pub const ENTERPRISE_POLICY_ENLIGHTENED: ENTERPRISE_DATA_POLICIES = 2u32;
04454e1e 45#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085
FG
46pub const ENTERPRISE_POLICY_EXEMPT: ENTERPRISE_DATA_POLICIES = 4u32;
47#[repr(C)]
04454e1e 48#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085
FG
49pub struct FILE_UNPROTECT_OPTIONS {
50 pub audit: bool,
51}
52impl ::core::marker::Copy for FILE_UNPROTECT_OPTIONS {}
53impl ::core::clone::Clone for FILE_UNPROTECT_OPTIONS {
54 fn clone(&self) -> Self {
55 *self
56 }
57}
58#[repr(C)]
04454e1e 59#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`, `\"Win32_Foundation\"`*"]
5e7ed085
FG
60#[cfg(feature = "Win32_Foundation")]
61pub struct HTHREAD_NETWORK_CONTEXT {
62 pub ThreadId: u32,
63 pub ThreadContext: super::super::Foundation::HANDLE,
64}
65#[cfg(feature = "Win32_Foundation")]
66impl ::core::marker::Copy for HTHREAD_NETWORK_CONTEXT {}
67#[cfg(feature = "Win32_Foundation")]
68impl ::core::clone::Clone for HTHREAD_NETWORK_CONTEXT {
69 fn clone(&self) -> Self {
70 *self
71 }
72}
73pub type IProtectionPolicyManagerInterop = *mut ::core::ffi::c_void;
74pub type IProtectionPolicyManagerInterop2 = *mut ::core::ffi::c_void;
75pub type IProtectionPolicyManagerInterop3 = *mut ::core::ffi::c_void;
04454e1e 76#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 77pub type SRPHOSTING_TYPE = i32;
04454e1e 78#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 79pub const SRPHOSTING_TYPE_NONE: SRPHOSTING_TYPE = 0i32;
04454e1e 80#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 81pub const SRPHOSTING_TYPE_WINHTTP: SRPHOSTING_TYPE = 1i32;
04454e1e 82#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 83pub const SRPHOSTING_TYPE_WININET: SRPHOSTING_TYPE = 2i32;
04454e1e 84#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 85pub type SRPHOSTING_VERSION = i32;
04454e1e 86#[doc = "*Required features: `\"Win32_Security_EnterpriseData\"`*"]
5e7ed085 87pub const SRPHOSTING_VERSION1: SRPHOSTING_VERSION = 1i32;