diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:25 +0000 |
commit | 5363f350887b1e5b5dd21a86f88c8af9d7fea6da (patch) | |
tree | 35ca005eb6e0e9a1ba3bb5dbc033209ad445dc17 /vendor/windows-sys/src/Windows/Win32/System/Environment | |
parent | Adding debian version 1.66.0+dfsg1-1. (diff) | |
download | rustc-5363f350887b1e5b5dd21a86f88c8af9d7fea6da.tar.xz rustc-5363f350887b1e5b5dd21a86f88c8af9d7fea6da.zip |
Merging upstream version 1.67.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/System/Environment')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/System/Environment/mod.rs | 160 |
1 files changed, 80 insertions, 80 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/System/Environment/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/Environment/mod.rs index 83bfdce2b..afb526948 100644 --- a/vendor/windows-sys/src/Windows/Win32/System/Environment/mod.rs +++ b/vendor/windows-sys/src/Windows/Win32/System/Environment/mod.rs @@ -1,4 +1,4 @@ -#[link(name = "windows")] +#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_System_Environment\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -103,6 +103,46 @@ pub const ENCLAVE_FLAG_DYNAMIC_DEBUG_ACTIVE: u32 = 4u32; pub const ENCLAVE_FLAG_DYNAMIC_DEBUG_ENABLED: u32 = 2u32; #[doc = "*Required features: `\"Win32_System_Environment\"`*"] pub const ENCLAVE_FLAG_FULL_DEBUG_ENABLED: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_REPORT_DATA_LENGTH: u32 = 64u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_RUNTIME_POLICY_ALLOW_DYNAMIC_DEBUG: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_RUNTIME_POLICY_ALLOW_FULL_DEBUG: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_UNSEAL_FLAG_STALE_KEY: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_VBS_BASIC_KEY_FLAG_DEBUG_KEY: u32 = 8u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_VBS_BASIC_KEY_FLAG_FAMILY_ID: u32 = 2u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_VBS_BASIC_KEY_FLAG_IMAGE_ID: u32 = 4u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_VBS_BASIC_KEY_FLAG_MEASUREMENT: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const VBS_ENCLAVE_REPORT_PKG_HEADER_VERSION_CURRENT: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const VBS_ENCLAVE_REPORT_SIGNATURE_SCHEME_SHA256_RSA_PSS_SHA256: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const VBS_ENCLAVE_REPORT_VERSION_CURRENT: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const VBS_ENCLAVE_VARDATA_INVALID: u32 = 0u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const VBS_ENCLAVE_VARDATA_MODULE: u32 = 1u32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub type ENCLAVE_SEALING_IDENTITY_POLICY = i32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_IDENTITY_POLICY_SEAL_INVALID: ENCLAVE_SEALING_IDENTITY_POLICY = 0i32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_IDENTITY_POLICY_SEAL_EXACT_CODE: ENCLAVE_SEALING_IDENTITY_POLICY = 1i32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_PRIMARY_CODE: ENCLAVE_SEALING_IDENTITY_POLICY = 2i32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_IMAGE: ENCLAVE_SEALING_IDENTITY_POLICY = 3i32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_FAMILY: ENCLAVE_SEALING_IDENTITY_POLICY = 4i32; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_AUTHOR: ENCLAVE_SEALING_IDENTITY_POLICY = 5i32; #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_Environment\"`*"] pub struct ENCLAVE_IDENTITY { @@ -139,36 +179,6 @@ impl ::core::clone::Clone for ENCLAVE_INFORMATION { *self } } -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_REPORT_DATA_LENGTH: u32 = 64u32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_RUNTIME_POLICY_ALLOW_DYNAMIC_DEBUG: u32 = 2u32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_RUNTIME_POLICY_ALLOW_FULL_DEBUG: u32 = 1u32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub type ENCLAVE_SEALING_IDENTITY_POLICY = i32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_IDENTITY_POLICY_SEAL_INVALID: ENCLAVE_SEALING_IDENTITY_POLICY = 0i32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_IDENTITY_POLICY_SEAL_EXACT_CODE: ENCLAVE_SEALING_IDENTITY_POLICY = 1i32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_PRIMARY_CODE: ENCLAVE_SEALING_IDENTITY_POLICY = 2i32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_IMAGE: ENCLAVE_SEALING_IDENTITY_POLICY = 3i32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_FAMILY: ENCLAVE_SEALING_IDENTITY_POLICY = 4i32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_AUTHOR: ENCLAVE_SEALING_IDENTITY_POLICY = 5i32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_UNSEAL_FLAG_STALE_KEY: u32 = 1u32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_VBS_BASIC_KEY_FLAG_DEBUG_KEY: u32 = 8u32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_VBS_BASIC_KEY_FLAG_FAMILY_ID: u32 = 2u32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_VBS_BASIC_KEY_FLAG_IMAGE_ID: u32 = 4u32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const ENCLAVE_VBS_BASIC_KEY_FLAG_MEASUREMENT: u32 = 1u32; #[repr(C)] #[doc = "*Required features: `\"Win32_System_Environment\"`*"] pub struct ENCLAVE_VBS_BASIC_KEY_REQUEST { @@ -184,48 +194,6 @@ impl ::core::clone::Clone for ENCLAVE_VBS_BASIC_KEY_REQUEST { *self } } -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_COMMIT_PAGES = ::core::option::Option<unsafe extern "system" fn(enclaveaddress: *const ::core::ffi::c_void, numberofbytes: usize, sourceaddress: *const ::core::ffi::c_void, pageprotection: u32) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -#[cfg(target_arch = "x86")] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_DECOMMIT_PAGES = ::core::option::Option<unsafe extern "system" fn(enclaveaddress: *const ::core::ffi::c_void, numberofbytes: usize) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_KEY = ::core::option::Option<unsafe extern "system" fn(keyrequest: *mut ENCLAVE_VBS_BASIC_KEY_REQUEST, requestedkeysize: u32, returnedkey: *mut u8) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_RANDOM_DATA = ::core::option::Option<unsafe extern "system" fn(buffer: *mut u8, numberofbytes: u32, generation: *mut u64) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_REPORT = ::core::option::Option<unsafe extern "system" fn(enclavedata: *const u8, report: *mut ::core::ffi::c_void, buffersize: u32, outputsize: *mut u32) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_GET_ENCLAVE_INFORMATION = ::core::option::Option<unsafe extern "system" fn(enclaveinfo: *mut ENCLAVE_INFORMATION) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_INTERRUPT_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -#[cfg(target_arch = "x86")] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_INTERRUPT_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_PROTECT_PAGES = ::core::option::Option<unsafe extern "system" fn(enclaveaddress: *const ::core::ffi::c_void, numberofytes: usize, pageprotection: u32) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_ENCLAVE = ::core::option::Option<unsafe extern "system" fn(returnvalue: usize)>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -#[cfg(target_arch = "x86_64")] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_EXCEPTION = ::core::option::Option<unsafe extern "system" fn(exceptionrecord: *const VBS_BASIC_ENCLAVE_EXCEPTION_AMD64) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86"))] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_EXCEPTION = ::core::option::Option<unsafe extern "system" fn(exceptionrecord: *const ::core::ffi::c_void) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_TERMINATE_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -#[cfg(target_arch = "x86")] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_TERMINATE_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32) -> i32>; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub type VBS_BASIC_ENCLAVE_BASIC_CALL_VERIFY_REPORT = ::core::option::Option<unsafe extern "system" fn(report: *const ::core::ffi::c_void, reportsize: u32) -> i32>; #[repr(C)] #[doc = "*Required features: `\"Win32_System_Environment\"`*"] pub struct VBS_BASIC_ENCLAVE_EXCEPTION_AMD64 { @@ -346,10 +314,6 @@ impl ::core::clone::Clone for VBS_ENCLAVE_REPORT_PKG_HEADER { *self } } -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const VBS_ENCLAVE_REPORT_PKG_HEADER_VERSION_CURRENT: u32 = 1u32; -#[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const VBS_ENCLAVE_REPORT_SIGNATURE_SCHEME_SHA256_RSA_PSS_SHA256: u32 = 1u32; #[repr(C, packed(1))] #[doc = "*Required features: `\"Win32_System_Environment\"`*"] pub struct VBS_ENCLAVE_REPORT_VARDATA_HEADER { @@ -363,8 +327,44 @@ impl ::core::clone::Clone for VBS_ENCLAVE_REPORT_VARDATA_HEADER { } } #[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const VBS_ENCLAVE_REPORT_VERSION_CURRENT: u32 = 1u32; +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_COMMIT_PAGES = ::core::option::Option<unsafe extern "system" fn(enclaveaddress: *const ::core::ffi::c_void, numberofbytes: usize, sourceaddress: *const ::core::ffi::c_void, pageprotection: u32) -> i32>; #[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const VBS_ENCLAVE_VARDATA_INVALID: u32 = 0u32; +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64) -> i32>; #[doc = "*Required features: `\"Win32_System_Environment\"`*"] -pub const VBS_ENCLAVE_VARDATA_MODULE: u32 = 1u32; +#[cfg(target_arch = "x86")] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_DECOMMIT_PAGES = ::core::option::Option<unsafe extern "system" fn(enclaveaddress: *const ::core::ffi::c_void, numberofbytes: usize) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_KEY = ::core::option::Option<unsafe extern "system" fn(keyrequest: *mut ENCLAVE_VBS_BASIC_KEY_REQUEST, requestedkeysize: u32, returnedkey: *mut u8) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_RANDOM_DATA = ::core::option::Option<unsafe extern "system" fn(buffer: *mut u8, numberofbytes: u32, generation: *mut u64) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_REPORT = ::core::option::Option<unsafe extern "system" fn(enclavedata: *const u8, report: *mut ::core::ffi::c_void, buffersize: u32, outputsize: *mut u32) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_GET_ENCLAVE_INFORMATION = ::core::option::Option<unsafe extern "system" fn(enclaveinfo: *mut ENCLAVE_INFORMATION) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_INTERRUPT_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +#[cfg(target_arch = "x86")] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_INTERRUPT_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_PROTECT_PAGES = ::core::option::Option<unsafe extern "system" fn(enclaveaddress: *const ::core::ffi::c_void, numberofytes: usize, pageprotection: u32) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_ENCLAVE = ::core::option::Option<unsafe extern "system" fn(returnvalue: usize)>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +#[cfg(target_arch = "x86_64")] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_EXCEPTION = ::core::option::Option<unsafe extern "system" fn(exceptionrecord: *const VBS_BASIC_ENCLAVE_EXCEPTION_AMD64) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86"))] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_EXCEPTION = ::core::option::Option<unsafe extern "system" fn(exceptionrecord: *const ::core::ffi::c_void) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_TERMINATE_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +#[cfg(target_arch = "x86")] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_TERMINATE_THREAD = ::core::option::Option<unsafe extern "system" fn(threaddescriptor: *const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32) -> i32>; +#[doc = "*Required features: `\"Win32_System_Environment\"`*"] +pub type VBS_BASIC_ENCLAVE_BASIC_CALL_VERIFY_REPORT = ::core::option::Option<unsafe extern "system" fn(report: *const ::core::ffi::c_void, reportsize: u32) -> i32>; |