summaryrefslogtreecommitdiffstats
path: root/vendor/windows-sys/src/Windows/Win32/System/Antimalware/mod.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:21 +0000
commit4e8199b572f2035b7749cba276ece3a26630d23e (patch)
treef09feeed6a0fe39d027b1908aa63ea6b35e4b631 /vendor/windows-sys/src/Windows/Win32/System/Antimalware/mod.rs
parentAdding upstream version 1.66.0+dfsg1. (diff)
downloadrustc-4e8199b572f2035b7749cba276ece3a26630d23e.tar.xz
rustc-4e8199b572f2035b7749cba276ece3a26630d23e.zip
Adding upstream version 1.67.1+dfsg1.upstream/1.67.1+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/System/Antimalware/mod.rs')
-rw-r--r--vendor/windows-sys/src/Windows/Win32/System/Antimalware/mod.rs64
1 files changed, 32 insertions, 32 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/System/Antimalware/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/Antimalware/mod.rs
index aed42249d..409e0ebc4 100644
--- a/vendor/windows-sys/src/Windows/Win32/System/Antimalware/mod.rs
+++ b/vendor/windows-sys/src/Windows/Win32/System/Antimalware/mod.rs
@@ -1,4 +1,4 @@
-#[link(name = "windows")]
+#[cfg_attr(windows, link(name = "windows"))]
extern "system" {
#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
pub fn AmsiCloseSession(amsicontext: HAMSICONTEXT, amsisession: HAMSISESSION);
@@ -18,6 +18,13 @@ extern "system" {
#[cfg(feature = "Win32_Foundation")]
pub fn InstallELAMCertificateInfo(elamfile: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL;
}
+pub type IAmsiStream = *mut ::core::ffi::c_void;
+pub type IAntimalware = *mut ::core::ffi::c_void;
+pub type IAntimalware2 = *mut ::core::ffi::c_void;
+pub type IAntimalwareProvider = *mut ::core::ffi::c_void;
+pub type IAntimalwareProvider2 = *mut ::core::ffi::c_void;
+pub type IAntimalwareUacProvider = *mut ::core::ffi::c_void;
+pub const CAntimalware: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 4256173650, data2: 41492, data3: 19105, data4: [143, 186, 67, 87, 187, 0, 114, 236] };
#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
pub type AMSI_ATTRIBUTE = i32;
#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
@@ -64,6 +71,30 @@ pub const AMSI_UAC_MSI_ACTION_UPDATE: AMSI_UAC_MSI_ACTION = 2i32;
pub const AMSI_UAC_MSI_ACTION_MAINTENANCE: AMSI_UAC_MSI_ACTION = 3i32;
#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
pub const AMSI_UAC_MSI_ACTION_MAX: AMSI_UAC_MSI_ACTION = 4i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub type AMSI_UAC_REQUEST_TYPE = i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub const AMSI_UAC_REQUEST_TYPE_EXE: AMSI_UAC_REQUEST_TYPE = 0i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub const AMSI_UAC_REQUEST_TYPE_COM: AMSI_UAC_REQUEST_TYPE = 1i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub const AMSI_UAC_REQUEST_TYPE_MSI: AMSI_UAC_REQUEST_TYPE = 2i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub const AMSI_UAC_REQUEST_TYPE_AX: AMSI_UAC_REQUEST_TYPE = 3i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub const AMSI_UAC_REQUEST_TYPE_PACKAGED_APP: AMSI_UAC_REQUEST_TYPE = 4i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub const AMSI_UAC_REQUEST_TYPE_MAX: AMSI_UAC_REQUEST_TYPE = 5i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub type AMSI_UAC_TRUST_STATE = i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub const AMSI_UAC_TRUST_STATE_TRUSTED: AMSI_UAC_TRUST_STATE = 0i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub const AMSI_UAC_TRUST_STATE_UNTRUSTED: AMSI_UAC_TRUST_STATE = 1i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub const AMSI_UAC_TRUST_STATE_BLOCKED: AMSI_UAC_TRUST_STATE = 2i32;
+#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
+pub const AMSI_UAC_TRUST_STATE_MAX: AMSI_UAC_TRUST_STATE = 3i32;
#[repr(C)]
#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
pub struct AMSI_UAC_REQUEST_AX_INFO {
@@ -178,36 +209,5 @@ impl ::core::clone::Clone for AMSI_UAC_REQUEST_PACKAGED_APP_INFO {
*self
}
}
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub type AMSI_UAC_REQUEST_TYPE = i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub const AMSI_UAC_REQUEST_TYPE_EXE: AMSI_UAC_REQUEST_TYPE = 0i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub const AMSI_UAC_REQUEST_TYPE_COM: AMSI_UAC_REQUEST_TYPE = 1i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub const AMSI_UAC_REQUEST_TYPE_MSI: AMSI_UAC_REQUEST_TYPE = 2i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub const AMSI_UAC_REQUEST_TYPE_AX: AMSI_UAC_REQUEST_TYPE = 3i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub const AMSI_UAC_REQUEST_TYPE_PACKAGED_APP: AMSI_UAC_REQUEST_TYPE = 4i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub const AMSI_UAC_REQUEST_TYPE_MAX: AMSI_UAC_REQUEST_TYPE = 5i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub type AMSI_UAC_TRUST_STATE = i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub const AMSI_UAC_TRUST_STATE_TRUSTED: AMSI_UAC_TRUST_STATE = 0i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub const AMSI_UAC_TRUST_STATE_UNTRUSTED: AMSI_UAC_TRUST_STATE = 1i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub const AMSI_UAC_TRUST_STATE_BLOCKED: AMSI_UAC_TRUST_STATE = 2i32;
-#[doc = "*Required features: `\"Win32_System_Antimalware\"`*"]
-pub const AMSI_UAC_TRUST_STATE_MAX: AMSI_UAC_TRUST_STATE = 3i32;
-pub const CAntimalware: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 4256173650, data2: 41492, data3: 19105, data4: [143, 186, 67, 87, 187, 0, 114, 236] };
pub type HAMSICONTEXT = isize;
pub type HAMSISESSION = isize;
-pub type IAmsiStream = *mut ::core::ffi::c_void;
-pub type IAntimalware = *mut ::core::ffi::c_void;
-pub type IAntimalware2 = *mut ::core::ffi::c_void;
-pub type IAntimalwareProvider = *mut ::core::ffi::c_void;
-pub type IAntimalwareProvider2 = *mut ::core::ffi::c_void;
-pub type IAntimalwareUacProvider = *mut ::core::ffi::c_void;