]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys-0.28.0/src/Windows/Win32/Storage/OperationRecorder/mod.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Win32 / Storage / OperationRecorder / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
3 extern "system" {
4 #[cfg(feature = "Win32_Foundation")]
5 pub fn OperationEnd(operationendparams: *const OPERATION_END_PARAMETERS) -> super::super::Foundation::BOOL;
6 #[cfg(feature = "Win32_Foundation")]
7 pub fn OperationStart(operationstartparams: *const OPERATION_START_PARAMETERS) -> super::super::Foundation::BOOL;
8 }
9 #[repr(C)]
10 pub struct OPERATION_END_PARAMETERS {
11 pub Version: u32,
12 pub OperationId: u32,
13 pub Flags: OPERATION_END_PARAMETERS_FLAGS,
14 }
15 impl ::core::marker::Copy for OPERATION_END_PARAMETERS {}
16 impl ::core::clone::Clone for OPERATION_END_PARAMETERS {
17 fn clone(&self) -> Self {
18 *self
19 }
20 }
21 pub type OPERATION_END_PARAMETERS_FLAGS = u32;
22 pub const OPERATION_END_DISCARD: OPERATION_END_PARAMETERS_FLAGS = 1u32;
23 pub type OPERATION_START_FLAGS = u32;
24 pub const OPERATION_START_TRACE_CURRENT_THREAD: OPERATION_START_FLAGS = 1u32;
25 #[repr(C)]
26 pub struct OPERATION_START_PARAMETERS {
27 pub Version: u32,
28 pub OperationId: u32,
29 pub Flags: OPERATION_START_FLAGS,
30 }
31 impl ::core::marker::Copy for OPERATION_START_PARAMETERS {}
32 impl ::core::clone::Clone for OPERATION_START_PARAMETERS {
33 fn clone(&self) -> Self {
34 *self
35 }
36 }