]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys-0.28.0/src/Windows/ApplicationModel/ExtendedExecution/Foreground/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / ApplicationModel / ExtendedExecution / Foreground / mod.rs
CommitLineData
064997fb
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#[repr(transparent)]
5pub struct ExtendedExecutionForegroundReason(pub i32);
6impl ExtendedExecutionForegroundReason {
7 pub const Unspecified: Self = Self(0i32);
8 pub const SavingData: Self = Self(1i32);
9 pub const BackgroundAudio: Self = Self(2i32);
10 pub const Unconstrained: Self = Self(3i32);
11}
12impl ::core::marker::Copy for ExtendedExecutionForegroundReason {}
13impl ::core::clone::Clone for ExtendedExecutionForegroundReason {
14 fn clone(&self) -> Self {
15 *self
16 }
17}
18#[repr(transparent)]
19pub struct ExtendedExecutionForegroundResult(pub i32);
20impl ExtendedExecutionForegroundResult {
21 pub const Allowed: Self = Self(0i32);
22 pub const Denied: Self = Self(1i32);
23}
24impl ::core::marker::Copy for ExtendedExecutionForegroundResult {}
25impl ::core::clone::Clone for ExtendedExecutionForegroundResult {
26 fn clone(&self) -> Self {
27 *self
28 }
29}
30pub type ExtendedExecutionForegroundRevokedEventArgs = *mut ::core::ffi::c_void;
31#[repr(transparent)]
32pub struct ExtendedExecutionForegroundRevokedReason(pub i32);
33impl ExtendedExecutionForegroundRevokedReason {
34 pub const Resumed: Self = Self(0i32);
35 pub const SystemPolicy: Self = Self(1i32);
36}
37impl ::core::marker::Copy for ExtendedExecutionForegroundRevokedReason {}
38impl ::core::clone::Clone for ExtendedExecutionForegroundRevokedReason {
39 fn clone(&self) -> Self {
40 *self
41 }
42}
43pub type ExtendedExecutionForegroundSession = *mut ::core::ffi::c_void;