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