[INFO] cloning repository https://github.com/TomPridham/windows-events-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TomPridham/windows-events-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTomPridham%2Fwindows-events-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTomPridham%2Fwindows-events-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 502b8169773b815108a79268b343abedc5b62ae7 [INFO] checking TomPridham/windows-events-rust/502b8169773b815108a79268b343abedc5b62ae7 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTomPridham%2Fwindows-events-rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TomPridham/windows-events-rust on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/TomPridham/windows-events-rust [INFO] finished tweaking git repo https://github.com/TomPridham/windows-events-rust [INFO] tweaked toml for git repo https://github.com/TomPridham/windows-events-rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/TomPridham/windows-events-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows_gen v0.21.1 [INFO] [stderr] Downloaded windows v0.21.1 [INFO] [stderr] Downloaded windows_macros v0.21.1 [INFO] [stderr] Downloaded windows_quote v0.21.1 [INFO] [stderr] Downloaded windows_reader v0.21.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 22ba1997e1292087a8330bec987dd6f104b81812704cca5b1353bf3a4fdc5881 [INFO] running `Command { std: "docker" "start" "-a" "22ba1997e1292087a8330bec987dd6f104b81812704cca5b1353bf3a4fdc5881", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22ba1997e1292087a8330bec987dd6f104b81812704cca5b1353bf3a4fdc5881", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22ba1997e1292087a8330bec987dd6f104b81812704cca5b1353bf3a4fdc5881", kill_on_drop: false }` [INFO] [stdout] 22ba1997e1292087a8330bec987dd6f104b81812704cca5b1353bf3a4fdc5881 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91f18fdc7d30c020c0b9c5d5f2fc97cfdc7fafa1e8a085520959155a3908aea6 [INFO] running `Command { std: "docker" "start" "-a" "91f18fdc7d30c020c0b9c5d5f2fc97cfdc7fafa1e8a085520959155a3908aea6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling windows_quote v0.21.1 [INFO] [stderr] Compiling windows_reader v0.21.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling const-sha1 v0.2.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling tokio v1.14.0 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Checking windows_gen v0.21.1 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling windows_macros v0.21.1 [INFO] [stderr] Compiling tokio-macros v1.6.0 [INFO] [stderr] Compiling windows v0.21.1 [INFO] [stderr] Compiling bindings v0.1.0 (/opt/rustwide/workdir/bindings) [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> /opt/rustwide/target/debug/build/bindings-b437a2eb08301e75/out/windows.rs:1:5359 [INFO] [stdout] | [INFO] [stdout] 1 | ...aram { if ! value . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: Into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1 | # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Windows { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Win32 { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Foundation { # [ repr ( transparent ) ] # [ derive ( :: std :: default :: Default , :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct BOOL ( pub i32 ) ; unsafe impl :: windows :: Abi for BOOL { type Abi = Self ; type DefaultType = Self ; } impl BOOL { # [ inline ] pub fn as_bool ( self ) -> bool { ! ( self . 0 == 0 ) } # [ inline ] pub fn ok ( self ) -> :: windows :: Result < ( ) > { if self . as_bool ( ) { Ok ( ( ) ) } else { Err ( :: windows :: Error :: from_win32 ( ) ) } } # [ inline ] # [ track_caller ] pub fn unwrap ( self ) { self . ok ( ) . unwrap ( ) ; } # [ inline ] # [ track_caller ] pub fn expect ( self , msg : & str ) { self . ok ( ) . expect ( msg ) ; } } impl :: std :: convert :: From < BOOL > for bool { fn from ( value : BOOL ) -> Self { value . as_bool ( ) } } impl :: std :: convert :: From < & BOOL > for bool { fn from ( value : & BOOL ) -> Self { value . as_bool ( ) } } impl :: std :: convert :: From < bool > for BOOL { fn from ( value : bool ) -> Self { if value { BOOL ( 1 ) } else { BOOL ( 0 ) } } } impl :: std :: convert :: From < & bool > for BOOL { fn from ( value : & bool ) -> Self { ( * value ) . into ( ) } } impl :: std :: cmp :: PartialEq < bool > for BOOL { fn eq ( & self , other : & bool ) -> bool { self . as_bool ( ) == * other } } impl :: std :: cmp :: PartialEq < BOOL > for bool { fn eq ( & self , other : & BOOL ) -> bool { * self == other . as_bool ( ) } } impl std :: ops :: Not for BOOL { type Output = Self ; fn not ( self ) -> Self :: Output { if self . as_bool ( ) { BOOL ( 0 ) } else { BOOL ( 1 ) } } } impl < 'a > :: windows :: IntoParam < 'a , BOOL > for bool { fn into_param ( self ) -> :: windows :: Param < 'a , BOOL > { :: windows :: Param :: Owned ( self . into ( ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct FILETIME { pub dwLowDateTime : u32 , pub dwHighDateTime : u32 } impl FILETIME { } impl :: std :: default :: Default for FILETIME { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for FILETIME { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FILETIME" ) . field ( "dwLowDateTime" , & self . dwLowDateTime ) . field ( "dwHighDateTime" , & self . dwHighDateTime ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FILETIME { fn eq ( & self , other : & Self ) -> bool { self . dwLowDateTime == other . dwLowDateTime && self . dwHighDateTime == other . dwHighDateTime } } impl :: std :: cmp :: Eq for FILETIME { } unsafe impl :: windows :: Abi for FILETIME { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: default :: Default , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HANDLE ( pub isize ) ; unsafe impl :: windows :: Handle for HANDLE { fn is_invalid ( & self ) -> bool { self . 0 == 0 || self . 0 == - 1 } fn ok ( self ) -> :: windows :: Result < Self > { if self . is_invalid ( ) { Err ( :: windows :: Error :: from_win32 ( ) ) } else { Ok ( self ) } } } unsafe impl :: windows :: Abi for HANDLE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HWND ( pub isize ) ; impl :: std :: default :: Default for HWND { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for HWND { } unsafe impl :: windows :: Abi for HWND { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PSID ( pub isize ) ; impl :: std :: default :: Default for PSID { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for PSID { } unsafe impl :: windows :: Abi for PSID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PSTR ( pub * mut u8 ) ; impl PSTR { pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } unsafe impl :: windows :: Abi for PSTR { type Abi = Self ; type DefaultType = Self ; unsafe fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . is_null ( ) { unsafe { let _ = :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for & str { fn into_param ( self ) -> :: windows :: Param < 'a , PSTR > { :: windows :: Param :: Boxed ( PSTR ( :: std :: boxed :: Box :: < [ u8 ] > :: into_raw ( self . bytes ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u8 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for String { fn into_param ( self ) -> :: windows :: Param < 'a , PSTR > { :: windows :: Param :: Boxed ( PSTR ( :: std :: boxed :: Box :: < [ u8 ] > :: into_raw ( self . bytes ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u8 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PWSTR ( pub * mut u16 ) ; impl PWSTR { pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PWSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } unsafe impl :: windows :: Abi for PWSTR { type Abi = Self ; type DefaultType = Self ; unsafe fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & str { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_utf16 ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for String { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_utf16 ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ cfg ( windows ) ] impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & :: std :: ffi :: OsStr { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { use std :: os :: windows :: ffi :: OsStrExt ; :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_wide ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ cfg ( windows ) ] impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for :: std :: ffi :: OsString { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { use std :: os :: windows :: ffi :: OsStrExt ; :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_wide ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SYSTEMTIME { pub wYear : u16 , pub wMonth : u16 , pub wDayOfWeek : u16 , pub wDay : u16 , pub wHour : u16 , pub wMinute : u16 , pub wSecond : u16 , pub wMilliseconds : u16 } impl SYSTEMTIME { } impl :: std :: default :: Default for SYSTEMTIME { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for SYSTEMTIME { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SYSTEMTIME" ) . field ( "wYear" , & self . wYear ) . field ( "wMonth" , & self . wMonth ) . field ( "wDayOfWeek" , & self . wDayOfWeek ) . field ( "wDay" , & self . wDay ) . field ( "wHour" , & self . wHour ) . field ( "wMinute" , & self . wMinute ) . field ( "wSecond" , & self . wSecond ) . field ( "wMilliseconds" , & self . wMilliseconds ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SYSTEMTIME { fn eq ( & self , other : & Self ) -> bool { self . wYear == other . wYear && self . wMonth == other . wMonth && self . wDayOfWeek == other . wDayOfWeek && self . wDay == other . wDay && self . wHour == other . wHour && self . wMinute == other . wMinute && self . wSecond == other . wSecond && self . wMilliseconds == other . wMilliseconds } } impl :: std :: cmp :: Eq for SYSTEMTIME { } unsafe impl :: windows :: Abi for SYSTEMTIME { type Abi = Self ; type DefaultType = Self ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod System { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Diagnostics { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Debug { pub unsafe fn GetLastError < > ( ) -> WIN32_ERROR { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn GetLastError ( ) -> WIN32_ERROR ; } :: std :: mem :: transmute ( GetLastError ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WIN32_ERROR ( pub u32 ) ; impl :: std :: convert :: From < u32 > for WIN32_ERROR { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WIN32_ERROR { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WIN32_ERROR { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WIN32_ERROR { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WIN32_ERROR { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WIN32_ERROR { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for WIN32_ERROR { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } impl :: std :: convert :: From < WIN32_ERROR > for :: windows :: HRESULT { fn from ( value : WIN32_ERROR ) -> Self { Self ( if value . 0 as i32 <= 0 { value . 0 } else { ( value . 0 & 0x0000_FFFF ) | ( 7 << 16 ) | 0x8000_0000 } ) } } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod EventLog { pub unsafe fn BackupEventLogA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( heventlog : Param0 , lpbackupfilename : Param1 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn BackupEventLogA ( heventlog : super::super::Foundation:: HANDLE , lpbackupfilename : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( BackupEventLogA ( heventlog . into_param ( ) . abi ( ) , lpbackupfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BackupEventLogW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( heventlog : Param0 , lpbackupfilename : Param1 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn BackupEventLogW ( heventlog : super::super::Foundation:: HANDLE , lpbackupfilename : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( BackupEventLogW ( heventlog . into_param ( ) . abi ( ) , lpbackupfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ClearEventLogA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( heventlog : Param0 , lpbackupfilename : Param1 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ClearEventLogA ( heventlog : super::super::Foundation:: HANDLE , lpbackupfilename : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ClearEventLogA ( heventlog . into_param ( ) . abi ( ) , lpbackupfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ClearEventLogW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( heventlog : Param0 , lpbackupfilename : Param1 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ClearEventLogW ( heventlog : super::super::Foundation:: HANDLE , lpbackupfilename : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ClearEventLogW ( heventlog . into_param ( ) . abi ( ) , lpbackupfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CloseEventLog < 'a , Param0 : :: windows :: IntoParam < 'a , EventLogHandle > , > ( heventlog : Param0 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn CloseEventLog ( heventlog : EventLogHandle ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( CloseEventLog ( heventlog . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeregisterEventSource < 'a , Param0 : :: windows :: IntoParam < 'a , EventSourceHandle > , > ( heventlog : Param0 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn DeregisterEventSource ( heventlog : EventSourceHandle ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( DeregisterEventSource ( heventlog . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EVENTLOG_FULL_INFORMATION { pub dwFull : u32 } impl EVENTLOG_FULL_INFORMATION { } impl :: std :: default :: Default for EVENTLOG_FULL_INFORMATION { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for EVENTLOG_FULL_INFORMATION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "EVENTLOG_FULL_INFORMATION" ) . field ( "dwFull" , & self . dwFull ) . finish ( ) } } impl :: std :: cmp :: PartialEq for EVENTLOG_FULL_INFORMATION { fn eq ( & self , other : & Self ) -> bool { self . dwFull == other . dwFull } } impl :: std :: cmp :: Eq for EVENTLOG_FULL_INFORMATION { } unsafe impl :: windows :: Abi for EVENTLOG_FULL_INFORMATION { type Abi = Self ; type DefaultType = Self ; } pub const EVT_ALL_ACCESS : u32 = 7u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_CLOCK_TYPE ( pub i32 ) ; pub const EvtChannelClockTypeSystemTime : EVT_CHANNEL_CLOCK_TYPE = EVT_CHANNEL_CLOCK_TYPE ( 0i32 ) ; pub const EvtChannelClockTypeQPC : EVT_CHANNEL_CLOCK_TYPE = EVT_CHANNEL_CLOCK_TYPE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_CLOCK_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_CLOCK_TYPE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_CONFIG_PROPERTY_ID ( pub i32 ) ; pub const EvtChannelConfigEnabled : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 0i32 ) ; pub const EvtChannelConfigIsolation : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 1i32 ) ; pub const EvtChannelConfigType : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 2i32 ) ; pub const EvtChannelConfigOwningPublisher : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 3i32 ) ; pub const EvtChannelConfigClassicEventlog : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 4i32 ) ; pub const EvtChannelConfigAccess : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 5i32 ) ; pub const EvtChannelLoggingConfigRetention : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 6i32 ) ; pub const EvtChannelLoggingConfigAutoBackup : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 7i32 ) ; pub const EvtChannelLoggingConfigMaxSize : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 8i32 ) ; pub const EvtChannelLoggingConfigLogFilePath : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 9i32 ) ; pub const EvtChannelPublishingConfigLevel : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 10i32 ) ; pub const EvtChannelPublishingConfigKeywords : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 11i32 ) ; pub const EvtChannelPublishingConfigControlGuid : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 12i32 ) ; pub const EvtChannelPublishingConfigBufferSize : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 13i32 ) ; pub const EvtChannelPublishingConfigMinBuffers : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 14i32 ) ; pub const EvtChannelPublishingConfigMaxBuffers : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 15i32 ) ; pub const EvtChannelPublishingConfigLatency : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 16i32 ) ; pub const EvtChannelPublishingConfigClockType : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 17i32 ) ; pub const EvtChannelPublishingConfigSidType : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 18i32 ) ; pub const EvtChannelPublisherList : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 19i32 ) ; pub const EvtChannelPublishingConfigFileMax : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 20i32 ) ; pub const EvtChannelConfigPropertyIdEND : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 21i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_CONFIG_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_CONFIG_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_ISOLATION_TYPE ( pub i32 ) ; pub const EvtChannelIsolationTypeApplication : EVT_CHANNEL_ISOLATION_TYPE = EVT_CHANNEL_ISOLATION_TYPE ( 0i32 ) ; pub const EvtChannelIsolationTypeSystem : EVT_CHANNEL_ISOLATION_TYPE = EVT_CHANNEL_ISOLATION_TYPE ( 1i32 ) ; pub const EvtChannelIsolationTypeCustom : EVT_CHANNEL_ISOLATION_TYPE = EVT_CHANNEL_ISOLATION_TYPE ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_ISOLATION_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_ISOLATION_TYPE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_REFERENCE_FLAGS ( pub i32 ) ; pub const EvtChannelReferenceImported : EVT_CHANNEL_REFERENCE_FLAGS = EVT_CHANNEL_REFERENCE_FLAGS ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_REFERENCE_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_REFERENCE_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_SID_TYPE ( pub i32 ) ; pub const EvtChannelSidTypeNone : EVT_CHANNEL_SID_TYPE = EVT_CHANNEL_SID_TYPE ( 0i32 ) ; pub const EvtChannelSidTypePublishing : EVT_CHANNEL_SID_TYPE = EVT_CHANNEL_SID_TYPE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_SID_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_SID_TYPE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_TYPE ( pub i32 ) ; pub const EvtChannelTypeAdmin : EVT_CHANNEL_TYPE = EVT_CHANNEL_TYPE ( 0i32 ) ; pub const EvtChannelTypeOperational : EVT_CHANNEL_TYPE = EVT_CHANNEL_TYPE ( 1i32 ) ; pub const EvtChannelTypeAnalytic : EVT_CHANNEL_TYPE = EVT_CHANNEL_TYPE ( 2i32 ) ; pub const EvtChannelTypeDebug : EVT_CHANNEL_TYPE = EVT_CHANNEL_TYPE ( 3i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_TYPE { type Abi = Self ; type DefaultType = Self ; } pub const EVT_CLEAR_ACCESS : u32 = 4u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_EVENT_METADATA_PROPERTY_ID ( pub i32 ) ; pub const EventMetadataEventID : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 0i32 ) ; pub const EventMetadataEventVersion : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 1i32 ) ; pub const EventMetadataEventChannel : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 2i32 ) ; pub const EventMetadataEventLevel : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 3i32 ) ; pub const EventMetadataEventOpcode : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 4i32 ) ; pub const EventMetadataEventTask : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 5i32 ) ; pub const EventMetadataEventKeyword : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 6i32 ) ; pub const EventMetadataEventMessageID : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 7i32 ) ; pub const EventMetadataEventTemplate : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 8i32 ) ; pub const EvtEventMetadataPropertyIdEND : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 9i32 ) ; impl :: std :: convert :: From < i32 > for EVT_EVENT_METADATA_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_EVENT_METADATA_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_EVENT_PROPERTY_ID ( pub i32 ) ; pub const EvtEventQueryIDs : EVT_EVENT_PROPERTY_ID = EVT_EVENT_PROPERTY_ID ( 0i32 ) ; pub const EvtEventPath : EVT_EVENT_PROPERTY_ID = EVT_EVENT_PROPERTY_ID ( 1i32 ) ; pub const EvtEventPropertyIdEND : EVT_EVENT_PROPERTY_ID = EVT_EVENT_PROPERTY_ID ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_EVENT_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_EVENT_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_EXPORTLOG_FLAGS ( pub i32 ) ; pub const EvtExportLogChannelPath : EVT_EXPORTLOG_FLAGS = EVT_EXPORTLOG_FLAGS ( 1i32 ) ; pub const EvtExportLogFilePath : EVT_EXPORTLOG_FLAGS = EVT_EXPORTLOG_FLAGS ( 2i32 ) ; pub const EvtExportLogTolerateQueryErrors : EVT_EXPORTLOG_FLAGS = EVT_EXPORTLOG_FLAGS ( 4096i32 ) ; pub const EvtExportLogOverwrite : EVT_EXPORTLOG_FLAGS = EVT_EXPORTLOG_FLAGS ( 8192i32 ) ; impl :: std :: convert :: From < i32 > for EVT_EXPORTLOG_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_EXPORTLOG_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_FORMAT_MESSAGE_FLAGS ( pub i32 ) ; pub const EvtFormatMessageEvent : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 1i32 ) ; pub const EvtFormatMessageLevel : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 2i32 ) ; pub const EvtFormatMessageTask : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 3i32 ) ; pub const EvtFormatMessageOpcode : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 4i32 ) ; pub const EvtFormatMessageKeyword : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 5i32 ) ; pub const EvtFormatMessageChannel : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 6i32 ) ; pub const EvtFormatMessageProvider : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 7i32 ) ; pub const EvtFormatMessageId : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 8i32 ) ; pub const EvtFormatMessageXml : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 9i32 ) ; impl :: std :: convert :: From < i32 > for EVT_FORMAT_MESSAGE_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_FORMAT_MESSAGE_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_LOGIN_CLASS ( pub i32 ) ; pub const EvtRpcLogin : EVT_LOGIN_CLASS = EVT_LOGIN_CLASS ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EVT_LOGIN_CLASS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_LOGIN_CLASS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_LOG_PROPERTY_ID ( pub i32 ) ; pub const EvtLogCreationTime : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 0i32 ) ; pub const EvtLogLastAccessTime : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 1i32 ) ; pub const EvtLogLastWriteTime : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 2i32 ) ; pub const EvtLogFileSize : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 3i32 ) ; pub const EvtLogAttributes : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 4i32 ) ; pub const EvtLogNumberOfLogRecords : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 5i32 ) ; pub const EvtLogOldestRecordNumber : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 6i32 ) ; pub const EvtLogFull : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 7i32 ) ; impl :: std :: convert :: From < i32 > for EVT_LOG_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_LOG_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_OPEN_LOG_FLAGS ( pub i32 ) ; pub const EvtOpenChannelPath : EVT_OPEN_LOG_FLAGS = EVT_OPEN_LOG_FLAGS ( 1i32 ) ; pub const EvtOpenFilePath : EVT_OPEN_LOG_FLAGS = EVT_OPEN_LOG_FLAGS ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_OPEN_LOG_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_OPEN_LOG_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_PUBLISHER_METADATA_PROPERTY_ID ( pub i32 ) ; pub const EvtPublisherMetadataPublisherGuid : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 0i32 ) ; pub const EvtPublisherMetadataResourceFilePath : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 1i32 ) ; pub const EvtPublisherMetadataParameterFilePath : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 2i32 ) ; pub const EvtPublisherMetadataMessageFilePath : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 3i32 ) ; pub const EvtPublisherMetadataHelpLink : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 4i32 ) ; pub const EvtPublisherMetadataPublisherMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 5i32 ) ; pub const EvtPublisherMetadataChannelReferences : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 6i32 ) ; pub const EvtPublisherMetadataChannelReferencePath : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 7i32 ) ; pub const EvtPublisherMetadataChannelReferenceIndex : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 8i32 ) ; pub const EvtPublisherMetadataChannelReferenceID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 9i32 ) ; pub const EvtPublisherMetadataChannelReferenceFlags : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 10i32 ) ; pub const EvtPublisherMetadataChannelReferenceMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 11i32 ) ; pub const EvtPublisherMetadataLevels : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 12i32 ) ; pub const EvtPublisherMetadataLevelName : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 13i32 ) ; pub const EvtPublisherMetadataLevelValue : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 14i32 ) ; pub const EvtPublisherMetadataLevelMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 15i32 ) ; pub const EvtPublisherMetadataTasks : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 16i32 ) ; pub const EvtPublisherMetadataTaskName : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 17i32 ) ; pub const EvtPublisherMetadataTaskEventGuid : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 18i32 ) ; pub const EvtPublisherMetadataTaskValue : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 19i32 ) ; pub const EvtPublisherMetadataTaskMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 20i32 ) ; pub const EvtPublisherMetadataOpcodes : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 21i32 ) ; pub const EvtPublisherMetadataOpcodeName : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 22i32 ) ; pub const EvtPublisherMetadataOpcodeValue : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 23i32 ) ; pub const EvtPublisherMetadataOpcodeMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 24i32 ) ; pub const EvtPublisherMetadataKeywords : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 25i32 ) ; pub const EvtPublisherMetadataKeywordName : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 26i32 ) ; pub const EvtPublisherMetadataKeywordValue : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 27i32 ) ; pub const EvtPublisherMetadataKeywordMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 28i32 ) ; pub const EvtPublisherMetadataPropertyIdEND : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 29i32 ) ; impl :: std :: convert :: From < i32 > for EVT_PUBLISHER_METADATA_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_PUBLISHER_METADATA_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_QUERY_FLAGS ( pub i32 ) ; pub const EvtQueryChannelPath : EVT_QUERY_FLAGS = EVT_QUERY_FLAGS ( 1i32 ) ; pub const EvtQueryFilePath : EVT_QUERY_FLAGS = EVT_QUERY_FLAGS ( 2i32 ) ; pub const EvtQueryForwardDirection : EVT_QUERY_FLAGS = EVT_QUERY_FLAGS ( 256i32 ) ; pub const EvtQueryReverseDirection : EVT_QUERY_FLAGS = EVT_QUERY_FLAGS ( 512i32 ) ; pub const EvtQueryTolerateQueryErrors : EVT_QUERY_FLAGS = EVT_QUERY_FLAGS ( 4096i32 ) ; impl :: std :: convert :: From < i32 > for EVT_QUERY_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_QUERY_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_QUERY_PROPERTY_ID ( pub i32 ) ; pub const EvtQueryNames : EVT_QUERY_PROPERTY_ID = EVT_QUERY_PROPERTY_ID ( 0i32 ) ; pub const EvtQueryStatuses : EVT_QUERY_PROPERTY_ID = EVT_QUERY_PROPERTY_ID ( 1i32 ) ; pub const EvtQueryPropertyIdEND : EVT_QUERY_PROPERTY_ID = EVT_QUERY_PROPERTY_ID ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_QUERY_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_QUERY_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } pub const EVT_READ_ACCESS : u32 = 1u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_RENDER_CONTEXT_FLAGS ( pub i32 ) ; pub const EvtRenderContextValues : EVT_RENDER_CONTEXT_FLAGS = EVT_RENDER_CONTEXT_FLAGS ( 0i32 ) ; pub const EvtRenderContextSystem : EVT_RENDER_CONTEXT_FLAGS = EVT_RENDER_CONTEXT_FLAGS ( 1i32 ) ; pub const EvtRenderContextUser : EVT_RENDER_CONTEXT_FLAGS = EVT_RENDER_CONTEXT_FLAGS ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_RENDER_CONTEXT_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_RENDER_CONTEXT_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_RENDER_FLAGS ( pub i32 ) ; pub const EvtRenderEventValues : EVT_RENDER_FLAGS = EVT_RENDER_FLAGS ( 0i32 ) ; pub const EvtRenderEventXml : EVT_RENDER_FLAGS = EVT_RENDER_FLAGS ( 1i32 ) ; pub const EvtRenderBookmark : EVT_RENDER_FLAGS = EVT_RENDER_FLAGS ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_RENDER_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_RENDER_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EVT_RPC_LOGIN { pub Server : super::super::Foundation:: PWSTR , pub User : super::super::Foundation:: PWSTR , pub Domain : super::super::Foundation:: PWSTR , pub Password : super::super::Foundation:: PWSTR , pub Flags : u32 } impl EVT_RPC_LOGIN { } impl :: std :: default :: Default for EVT_RPC_LOGIN { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for EVT_RPC_LOGIN { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "EVT_RPC_LOGIN" ) . field ( "Server" , & self . Server ) . field ( "User" , & self . User ) . field ( "Domain" , & self . Domain ) . field ( "Password" , & self . Password ) . field ( "Flags" , & self . Flags ) . finish ( ) } } impl :: std :: cmp :: PartialEq for EVT_RPC_LOGIN { fn eq ( & self , other : & Self ) -> bool { self . Server == other . Server && self . User == other . User && self . Domain == other . Domain && self . Password == other . Password && self . Flags == other . Flags } } impl :: std :: cmp :: Eq for EVT_RPC_LOGIN { } unsafe impl :: windows :: Abi for EVT_RPC_LOGIN { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_RPC_LOGIN_FLAGS ( pub i32 ) ; pub const EvtRpcLoginAuthDefault : EVT_RPC_LOGIN_FLAGS = EVT_RPC_LOGIN_FLAGS ( 0i32 ) ; pub const EvtRpcLoginAuthNegotiate : EVT_RPC_LOGIN_FLAGS = EVT_RPC_LOGIN_FLAGS ( 1i32 ) ; pub const EvtRpcLoginAuthKerberos : EVT_RPC_LOGIN_FLAGS = EVT_RPC_LOGIN_FLAGS ( 2i32 ) ; pub const EvtRpcLoginAuthNTLM : EVT_RPC_LOGIN_FLAGS = EVT_RPC_LOGIN_FLAGS ( 3i32 ) ; impl :: std :: convert :: From < i32 > for EVT_RPC_LOGIN_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_RPC_LOGIN_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_SEEK_FLAGS ( pub i32 ) ; pub const EvtSeekRelativeToFirst : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 1i32 ) ; pub const EvtSeekRelativeToLast : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 2i32 ) ; pub const EvtSeekRelativeToCurrent : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 3i32 ) ; pub const EvtSeekRelativeToBookmark : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 4i32 ) ; pub const EvtSeekOriginMask : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 7i32 ) ; pub const EvtSeekStrict : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 65536i32 ) ; impl :: std :: convert :: From < i32 > for EVT_SEEK_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_SEEK_FLAGS { type Abi = Self ; type DefaultType = Self ; } pub type EVT_SUBSCRIBE_CALLBACK = unsafe extern "system" fn ( action : EVT_SUBSCRIBE_NOTIFY_ACTION , usercontext : * const :: std :: ffi :: c_void , event : isize ) -> u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_SUBSCRIBE_FLAGS ( pub i32 ) ; pub const EvtSubscribeToFutureEvents : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 1i32 ) ; pub const EvtSubscribeStartAtOldestRecord : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 2i32 ) ; pub const EvtSubscribeStartAfterBookmark : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 3i32 ) ; pub const EvtSubscribeOriginMask : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 3i32 ) ; pub const EvtSubscribeTolerateQueryErrors : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 4096i32 ) ; pub const EvtSubscribeStrict : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 65536i32 ) ; impl :: std :: convert :: From < i32 > for EVT_SUBSCRIBE_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_SUBSCRIBE_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_SUBSCRIBE_NOTIFY_ACTION ( pub i32 ) ; pub const EvtSubscribeActionError : EVT_SUBSCRIBE_NOTIFY_ACTION = EVT_SUBSCRIBE_NOTIFY_ACTION ( 0i32 ) ; pub const EvtSubscribeActionDeliver : EVT_SUBSCRIBE_NOTIFY_ACTION = EVT_SUBSCRIBE_NOTIFY_ACTION ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EVT_SUBSCRIBE_NOTIFY_ACTION { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_SUBSCRIBE_NOTIFY_ACTION { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_SYSTEM_PROPERTY_ID ( pub i32 ) ; pub const EvtSystemProviderName : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 0i32 ) ; pub const EvtSystemProviderGuid : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 1i32 ) ; pub const EvtSystemEventID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 2i32 ) ; pub const EvtSystemQualifiers : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 3i32 ) ; pub const EvtSystemLevel : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 4i32 ) ; pub const EvtSystemTask : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 5i32 ) ; pub const EvtSystemOpcode : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 6i32 ) ; pub const EvtSystemKeywords : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 7i32 ) ; pub const EvtSystemTimeCreated : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 8i32 ) ; pub const EvtSystemEventRecordId : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 9i32 ) ; pub const EvtSystemActivityID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 10i32 ) ; pub const EvtSystemRelatedActivityID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 11i32 ) ; pub const EvtSystemProcessID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 12i32 ) ; pub const EvtSystemThreadID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 13i32 ) ; pub const EvtSystemChannel : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 14i32 ) ; pub const EvtSystemComputer : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 15i32 ) ; pub const EvtSystemUserID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 16i32 ) ; pub const EvtSystemVersion : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 17i32 ) ; pub const EvtSystemPropertyIdEND : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 18i32 ) ; impl :: std :: convert :: From < i32 > for EVT_SYSTEM_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_SYSTEM_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EVT_VARIANT { pub Anonymous : EVT_VARIANT_0 , pub Count : u32 , pub Type : u32 } impl EVT_VARIANT { } impl :: std :: default :: Default for EVT_VARIANT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for EVT_VARIANT { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for EVT_VARIANT { } unsafe impl :: windows :: Abi for EVT_VARIANT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union EVT_VARIANT_0 { pub BooleanVal : super::super::Foundation:: BOOL , pub SByteVal : i8 , pub Int16Val : i16 , pub Int32Val : i32 , pub Int64Val : i64 , pub ByteVal : u8 , pub UInt16Val : u16 , pub UInt32Val : u32 , pub UInt64Val : u64 , pub SingleVal : f32 , pub DoubleVal : f64 , pub FileTimeVal : u64 , pub SysTimeVal : * mut super::super::Foundation:: SYSTEMTIME , pub GuidVal : * mut :: windows :: Guid , pub StringVal : super::super::Foundation:: PWSTR , pub AnsiStringVal : super::super::Foundation:: PSTR , pub BinaryVal : * mut u8 , pub SidVal : super::super::Foundation:: PSID , pub SizeTVal : usize , pub BooleanArr : * mut super::super::Foundation:: BOOL , pub SByteArr : * mut i8 , pub Int16Arr : * mut i16 , pub Int32Arr : * mut i32 , pub Int64Arr : * mut i64 , pub ByteArr : * mut u8 , pub UInt16Arr : * mut u16 , pub UInt32Arr : * mut u32 , pub UInt64Arr : * mut u64 , pub SingleArr : * mut f32 , pub DoubleArr : * mut f64 , pub FileTimeArr : * mut super::super::Foundation:: FILETIME , pub SysTimeArr : * mut super::super::Foundation:: SYSTEMTIME , pub GuidArr : * mut :: windows :: Guid , pub StringArr : * mut super::super::Foundation:: PWSTR , pub AnsiStringArr : * mut super::super::Foundation:: PSTR , pub SidArr : * mut super::super::Foundation:: PSID , pub SizeTArr : * mut usize , pub EvtHandleVal : isize , pub XmlVal : super::super::Foundation:: PWSTR , pub XmlValArr : * mut super::super::Foundation:: PWSTR } impl EVT_VARIANT_0 { } impl :: std :: default :: Default for EVT_VARIANT_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for EVT_VARIANT_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for EVT_VARIANT_0 { } unsafe impl :: windows :: Abi for EVT_VARIANT_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_VARIANT_TYPE ( pub i32 ) ; pub const EvtVarTypeNull : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 0i32 ) ; pub const EvtVarTypeString : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 1i32 ) ; pub const EvtVarTypeAnsiString : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 2i32 ) ; pub const EvtVarTypeSByte : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 3i32 ) ; pub const EvtVarTypeByte : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 4i32 ) ; pub const EvtVarTypeInt16 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 5i32 ) ; pub const EvtVarTypeUInt16 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 6i32 ) ; pub const EvtVarTypeInt32 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 7i32 ) ; pub const EvtVarTypeUInt32 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 8i32 ) ; pub const EvtVarTypeInt64 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 9i32 ) ; pub const EvtVarTypeUInt64 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 10i32 ) ; pub const EvtVarTypeSingle : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 11i32 ) ; pub const EvtVarTypeDouble : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 12i32 ) ; pub const EvtVarTypeBoolean : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 13i32 ) ; pub const EvtVarTypeBinary : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 14i32 ) ; pub const EvtVarTypeGuid : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 15i32 ) ; pub const EvtVarTypeSizeT : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 16i32 ) ; pub const EvtVarTypeFileTime : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 17i32 ) ; pub const EvtVarTypeSysTime : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 18i32 ) ; pub const EvtVarTypeSid : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 19i32 ) ; pub const EvtVarTypeHexInt32 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 20i32 ) ; pub const EvtVarTypeHexInt64 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 21i32 ) ; pub const EvtVarTypeEvtHandle : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 32i32 ) ; pub const EvtVarTypeEvtXml : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 35i32 ) ; impl :: std :: convert :: From < i32 > for EVT_VARIANT_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_VARIANT_TYPE { type Abi = Self ; type DefaultType = Self ; } pub const EVT_VARIANT_TYPE_ARRAY : u32 = 128u32 ; pub const EVT_VARIANT_TYPE_MASK : u32 = 127u32 ; pub const EVT_WRITE_ACCESS : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct EventLogHandle ( pub isize ) ; impl :: std :: default :: Default for EventLogHandle { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for EventLogHandle { } unsafe impl :: windows :: Abi for EventLogHandle { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct EventSourceHandle ( pub isize ) ; impl :: std :: default :: Default for EventSourceHandle { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for EventSourceHandle { } unsafe impl :: windows :: Abi for EventSourceHandle { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn EvtArchiveExportedLog < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , logfilepath : Param1 , locale : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtArchiveExportedLog ( session : isize , logfilepath : super::super::Foundation:: PWSTR , locale : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtArchiveExportedLog ( :: std :: mem :: transmute ( session ) , logfilepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( locale ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtCancel < > ( object : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtCancel ( object : isize ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtCancel ( :: std :: mem :: transmute ( object ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtClearLog < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , channelpath : Param1 , targetfilepath : Param2 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtClearLog ( session : isize , channelpath : super::super::Foundation:: PWSTR , targetfilepath : super::super::Foundation:: PWSTR , flags : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtClearLog ( :: std :: mem :: transmute ( session ) , channelpath . into_param ( ) . abi ( ) , targetfilepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtClose < > ( object : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtClose ( object : isize ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtClose ( :: std :: mem :: transmute ( object ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtCreateBookmark < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( bookmarkxml : Param0 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtCreateBookmark ( bookmarkxml : super::super::Foundation:: PWSTR ) -> isize ; } :: std :: mem :: transmute ( EvtCreateBookmark ( bookmarkxml . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtCreateRenderContext < > ( valuepathscount : u32 , valuepaths : * const super::super::Foundation:: PWSTR , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtCreateRenderContext ( valuepathscount : u32 , valuepaths : * const super::super::Foundation:: PWSTR , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtCreateRenderContext ( :: std :: mem :: transmute ( valuepathscount ) , :: std :: mem :: transmute ( valuepaths ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtExportLog < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param3 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , path : Param1 , query : Param2 , targetfilepath : Param3 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtExportLog ( session : isize , path : super::super::Foundation:: PWSTR , query : super::super::Foundation:: PWSTR , targetfilepath : super::super::Foundation:: PWSTR , flags : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtExportLog ( :: std :: mem :: transmute ( session ) , path . into_param ( ) . abi ( ) , query . into_param ( ) . abi ( ) , targetfilepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtFormatMessage < > ( publishermetadata : isize , event : isize , messageid : u32 , valuecount : u32 , values : * const EVT_VARIANT , flags : u32 , buffersize : u32 , buffer : super::super::Foundation:: PWSTR , bufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtFormatMessage ( publishermetadata : isize , event : isize , messageid : u32 , valuecount : u32 , values : * const EVT_VARIANT , flags : u32 , buffersize : u32 , buffer : super::super::Foundation:: PWSTR , bufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtFormatMessage ( :: std :: mem :: transmute ( publishermetadata ) , :: std :: mem :: transmute ( event ) , :: std :: mem :: transmute ( messageid ) , :: std :: mem :: transmute ( valuecount ) , :: std :: mem :: transmute ( values ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( buffersize ) , :: std :: mem :: transmute ( buffer ) , :: std :: mem :: transmute ( bufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetChannelConfigProperty < > ( channelconfig : isize , propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID , flags : u32 , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetChannelConfigProperty ( channelconfig : isize , propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID , flags : u32 , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetChannelConfigProperty ( :: std :: mem :: transmute ( channelconfig ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( propertyvaluebuffersize ) , :: std :: mem :: transmute ( propertyvaluebuffer ) , :: std :: mem :: transmute ( propertyvaluebufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetEventInfo < > ( event : isize , propertyid : EVT_EVENT_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetEventInfo ( event : isize , propertyid : EVT_EVENT_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetEventInfo ( :: std :: mem :: transmute ( event ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( propertyvaluebuffersize ) , :: std :: mem :: transmute ( propertyvaluebuffer ) , :: std :: mem :: transmute ( propertyvaluebufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetEventMetadataProperty < > ( eventmetadata : isize , propertyid : EVT_EVENT_METADATA_PROPERTY_ID , flags : u32 , eventmetadatapropertybuffersize : u32 , eventmetadatapropertybuffer : * mut EVT_VARIANT , eventmetadatapropertybufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetEventMetadataProperty ( eventmetadata : isize , propertyid : EVT_EVENT_METADATA_PROPERTY_ID , flags : u32 , eventmetadatapropertybuffersize : u32 , eventmetadatapropertybuffer : * mut EVT_VARIANT , eventmetadatapropertybufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetEventMetadataProperty ( :: std :: mem :: transmute ( eventmetadata ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( eventmetadatapropertybuffersize ) , :: std :: mem :: transmute ( eventmetadatapropertybuffer ) , :: std :: mem :: transmute ( eventmetadatapropertybufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetExtendedStatus < > ( buffersize : u32 , buffer : super::super::Foundation:: PWSTR , bufferused : * mut u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetExtendedStatus ( buffersize : u32 , buffer : super::super::Foundation:: PWSTR , bufferused : * mut u32 ) -> u32 ; } :: std :: mem :: transmute ( EvtGetExtendedStatus ( :: std :: mem :: transmute ( buffersize ) , :: std :: mem :: transmute ( buffer ) , :: std :: mem :: transmute ( bufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetLogInfo < > ( log : isize , propertyid : EVT_LOG_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetLogInfo ( log : isize , propertyid : EVT_LOG_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetLogInfo ( :: std :: mem :: transmute ( log ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( propertyvaluebuffersize ) , :: std :: mem :: transmute ( propertyvaluebuffer ) , :: std :: mem :: transmute ( propertyvaluebufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetObjectArrayProperty < > ( objectarray : isize , propertyid : u32 , arrayindex : u32 , flags : u32 , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetObjectArrayProperty ( objectarray : isize , propertyid : u32 , arrayindex : u32 , flags : u32 , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetObjectArrayProperty ( :: std :: mem :: transmute ( objectarray ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( arrayindex ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( propertyvaluebuffersize ) , :: std :: mem :: transmute ( propertyvaluebuffer ) , :: std :: mem :: transmute ( propertyvaluebufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetObjectArraySize < > ( objectarray : isize , objectarraysize : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetObjectArraySize ( objectarray : isize , objectarraysize : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetObjectArraySize ( :: std :: mem :: transmute ( objectarray ) , :: std :: mem :: transmute ( objectarraysize ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetPublisherMetadataProperty < > ( publishermetadata : isize , propertyid : EVT_PUBLISHER_METADATA_PROPERTY_ID , flags : u32 , publishermetadatapropertybuffersize : u32 , publishermetadatapropertybuffer : * mut EVT_VARIANT , publishermetadatapropertybufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetPublisherMetadataProperty ( publishermetadata : isize , propertyid : EVT_PUBLISHER_METADATA_PROPERTY_ID , flags : u32 , publishermetadatapropertybuffersize : u32 , publishermetadatapropertybuffer : * mut EVT_VARIANT , publishermetadatapropertybufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetPublisherMetadataProperty ( :: std :: mem :: transmute ( publishermetadata ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( publishermetadatapropertybuffersize ) , :: std :: mem :: transmute ( publishermetadatapropertybuffer ) , :: std :: mem :: transmute ( publishermetadatapropertybufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetQueryInfo < > ( queryorsubscription : isize , propertyid : EVT_QUERY_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetQueryInfo ( queryorsubscription : isize , propertyid : EVT_QUERY_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetQueryInfo ( :: std :: mem :: transmute ( queryorsubscription ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( propertyvaluebuffersize ) , :: std :: mem :: transmute ( propertyvaluebuffer ) , :: std :: mem :: transmute ( propertyvaluebufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtNext < > ( resultset : isize , eventssize : u32 , events : * mut isize , timeout : u32 , flags : u32 , returned : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtNext ( resultset : isize , eventssize : u32 , events : * mut isize , timeout : u32 , flags : u32 , returned : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtNext ( :: std :: mem :: transmute ( resultset ) , :: std :: mem :: transmute ( eventssize ) , :: std :: mem :: transmute ( events ) , :: std :: mem :: transmute ( timeout ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( returned ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtNextChannelPath < > ( channelenum : isize , channelpathbuffersize : u32 , channelpathbuffer : super::super::Foundation:: PWSTR , channelpathbufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtNextChannelPath ( channelenum : isize , channelpathbuffersize : u32 , channelpathbuffer : super::super::Foundation:: PWSTR , channelpathbufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtNextChannelPath ( :: std :: mem :: transmute ( channelenum ) , :: std :: mem :: transmute ( channelpathbuffersize ) , :: std :: mem :: transmute ( channelpathbuffer ) , :: std :: mem :: transmute ( channelpathbufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtNextEventMetadata < > ( eventmetadataenum : isize , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtNextEventMetadata ( eventmetadataenum : isize , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtNextEventMetadata ( :: std :: mem :: transmute ( eventmetadataenum ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtNextPublisherId < > ( publisherenum : isize , publisheridbuffersize : u32 , publisheridbuffer : super::super::Foundation:: PWSTR , publisheridbufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtNextPublisherId ( publisherenum : isize , publisheridbuffersize : u32 , publisheridbuffer : super::super::Foundation:: PWSTR , publisheridbufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtNextPublisherId ( :: std :: mem :: transmute ( publisherenum ) , :: std :: mem :: transmute ( publisheridbuffersize ) , :: std :: mem :: transmute ( publisheridbuffer ) , :: std :: mem :: transmute ( publisheridbufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenChannelConfig < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , channelpath : Param1 , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenChannelConfig ( session : isize , channelpath : super::super::Foundation:: PWSTR , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenChannelConfig ( :: std :: mem :: transmute ( session ) , channelpath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenChannelEnum < > ( session : isize , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenChannelEnum ( session : isize , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenChannelEnum ( :: std :: mem :: transmute ( session ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenEventMetadataEnum < > ( publishermetadata : isize , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenEventMetadataEnum ( publishermetadata : isize , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenEventMetadataEnum ( :: std :: mem :: transmute ( publishermetadata ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenLog < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , path : Param1 , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenLog ( session : isize , path : super::super::Foundation:: PWSTR , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenLog ( :: std :: mem :: transmute ( session ) , path . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenPublisherEnum < > ( session : isize , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenPublisherEnum ( session : isize , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenPublisherEnum ( :: std :: mem :: transmute ( session ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenPublisherMetadata < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , publisherid : Param1 , logfilepath : Param2 , locale : u32 , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenPublisherMetadata ( session : isize , publisherid : super::super::Foundation:: PWSTR , logfilepath : super::super::Foundation:: PWSTR , locale : u32 , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenPublisherMetadata ( :: std :: mem :: transmute ( session ) , publisherid . into_param ( ) . abi ( ) , logfilepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( locale ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenSession < > ( loginclass : EVT_LOGIN_CLASS , login : * const :: std :: ffi :: c_void , timeout : u32 , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenSession ( loginclass : EVT_LOGIN_CLASS , login : * const :: std :: ffi :: c_void , timeout : u32 , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenSession ( :: std :: mem :: transmute ( loginclass ) , :: std :: mem :: transmute ( login ) , :: std :: mem :: transmute ( timeout ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtQuery < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , path : Param1 , query : Param2 , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtQuery ( session : isize , path : super::super::Foundation:: PWSTR , query : super::super::Foundation:: PWSTR , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtQuery ( :: std :: mem :: transmute ( session ) , path . into_param ( ) . abi ( ) , query . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtRender < > ( context : isize , fragment : isize , flags : u32 , buffersize : u32 , buffer : * mut :: std :: ffi :: c_void , bufferused : * mut u32 , propertycount : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtRender ( context : isize , fragment : isize , flags : u32 , buffersize : u32 , buffer : * mut :: std :: ffi :: c_void , bufferused : * mut u32 , propertycount : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtRender ( :: std :: mem :: transmute ( context ) , :: std :: mem :: transmute ( fragment ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( buffersize ) , :: std :: mem :: transmute ( buffer ) , :: std :: mem :: transmute ( bufferused ) , :: std :: mem :: transmute ( propertycount ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtSaveChannelConfig < > ( channelconfig : isize , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtSaveChannelConfig ( channelconfig : isize , flags : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtSaveChannelConfig ( :: std :: mem :: transmute ( channelconfig ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtSeek < > ( resultset : isize , position : i64 , bookmark : isize , timeout : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtSeek ( resultset : isize , position : i64 , bookmark : isize , timeout : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtSeek ( :: std :: mem :: transmute ( resultset ) , :: std :: mem :: transmute ( position ) , :: std :: mem :: transmute ( bookmark ) , :: std :: mem :: transmute ( timeout ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtSetChannelConfigProperty < > ( channelconfig : isize , propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID , flags : u32 , propertyvalue : * const EVT_VARIANT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtSetChannelConfigProperty ( channelconfig : isize , propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID , flags : u32 , propertyvalue : * const EVT_VARIANT ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtSetChannelConfigProperty ( :: std :: mem :: transmute ( channelconfig ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( propertyvalue ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtSubscribe < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param3 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , signalevent : Param1 , channelpath : Param2 , query : Param3 , bookmark : isize , context : * const :: std :: ffi :: c_void , callback : :: std :: option :: Option < EVT_SUBSCRIBE_CALLBACK > , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtSubscribe ( session : isize , signalevent : super::super::Foundation:: HANDLE , channelpath : super::super::Foundation:: PWSTR , query : super::super::Foundation:: PWSTR , bookmark : isize , context : * const :: std :: ffi :: c_void , callback : :: windows :: RawPtr , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtSubscribe ( :: std :: mem :: transmute ( session ) , signalevent . into_param ( ) . abi ( ) , channelpath . into_param ( ) . abi ( ) , query . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bookmark ) , :: std :: mem :: transmute ( context ) , :: std :: mem :: transmute ( callback ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtUpdateBookmark < > ( bookmark : isize , event : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtUpdateBookmark ( bookmark : isize , event : isize ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtUpdateBookmark ( :: std :: mem :: transmute ( bookmark ) , :: std :: mem :: transmute ( event ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetEventLogInformation < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , dwinfolevel : u32 , lpbuffer : * mut :: std :: ffi :: c_void , cbbufsize : u32 , pcbbytesneeded : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn GetEventLogInformation ( heventlog : super::super::Foundation:: HANDLE , dwinfolevel : u32 , lpbuffer : * mut :: std :: ffi :: c_void , cbbufsize : u32 , pcbbytesneeded : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( GetEventLogInformation ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwinfolevel ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( cbbufsize ) , :: std :: mem :: transmute ( pcbbytesneeded ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetNumberOfEventLogRecords < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , numberofrecords : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn GetNumberOfEventLogRecords ( heventlog : super::super::Foundation:: HANDLE , numberofrecords : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( GetNumberOfEventLogRecords ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( numberofrecords ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetOldestEventLogRecord < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , oldestrecord : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn GetOldestEventLogRecord ( heventlog : super::super::Foundation:: HANDLE , oldestrecord : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( GetOldestEventLogRecord ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( oldestrecord ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn NotifyChangeEventLog < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , hevent : Param1 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn NotifyChangeEventLog ( heventlog : super::super::Foundation:: HANDLE , hevent : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( NotifyChangeEventLog ( heventlog . into_param ( ) . abi ( ) , hevent . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenBackupEventLogA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( lpuncservername : Param0 , lpfilename : Param1 , ) -> EventLogHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn OpenBackupEventLogA ( lpuncservername : super::super::Foundation:: PSTR , lpfilename : super::super::Foundation:: PSTR ) -> EventLogHandle ; } :: std :: mem :: transmute ( OpenBackupEventLogA ( lpuncservername . into_param ( ) . abi ( ) , lpfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenBackupEventLogW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( lpuncservername : Param0 , lpfilename : Param1 , ) -> EventLogHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn OpenBackupEventLogW ( lpuncservername : super::super::Foundation:: PWSTR , lpfilename : super::super::Foundation:: PWSTR ) -> EventLogHandle ; } :: std :: mem :: transmute ( OpenBackupEventLogW ( lpuncservername . into_param ( ) . abi ( ) , lpfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenEventLogA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( lpuncservername : Param0 , lpsourcename : Param1 , ) -> EventLogHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn OpenEventLogA ( lpuncservername : super::super::Foundation:: PSTR , lpsourcename : super::super::Foundation:: PSTR ) -> EventLogHandle ; } :: std :: mem :: transmute ( OpenEventLogA ( lpuncservername . into_param ( ) . abi ( ) , lpsourcename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenEventLogW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( lpuncservername : Param0 , lpsourcename : Param1 , ) -> EventLogHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn OpenEventLogW ( lpuncservername : super::super::Foundation:: PWSTR , lpsourcename : super::super::Foundation:: PWSTR ) -> EventLogHandle ; } :: std :: mem :: transmute ( OpenEventLogW ( lpuncservername . into_param ( ) . abi ( ) , lpsourcename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct READ_EVENT_LOG_READ_FLAGS ( pub u32 ) ; pub const EVENTLOG_SEEK_READ : READ_EVENT_LOG_READ_FLAGS = READ_EVENT_LOG_READ_FLAGS ( 2u32 ) ; pub const EVENTLOG_SEQUENTIAL_READ : READ_EVENT_LOG_READ_FLAGS = READ_EVENT_LOG_READ_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for READ_EVENT_LOG_READ_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for READ_EVENT_LOG_READ_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for READ_EVENT_LOG_READ_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for READ_EVENT_LOG_READ_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for READ_EVENT_LOG_READ_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for READ_EVENT_LOG_READ_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for READ_EVENT_LOG_READ_FLAGS { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct REPORT_EVENT_TYPE ( pub u32 ) ; pub const EVENTLOG_SUCCESS : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 0u32 ) ; pub const EVENTLOG_AUDIT_FAILURE : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 16u32 ) ; pub const EVENTLOG_AUDIT_SUCCESS : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 8u32 ) ; pub const EVENTLOG_ERROR_TYPE : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 1u32 ) ; pub const EVENTLOG_INFORMATION_TYPE : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 4u32 ) ; pub const EVENTLOG_WARNING_TYPE : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 2u32 ) ; impl :: std :: convert :: From < u32 > for REPORT_EVENT_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for REPORT_EVENT_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for REPORT_EVENT_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for REPORT_EVENT_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for REPORT_EVENT_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for REPORT_EVENT_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for REPORT_EVENT_TYPE { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub unsafe fn ReadEventLogA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , dwreadflags : READ_EVENT_LOG_READ_FLAGS , dwrecordoffset : u32 , lpbuffer : * mut :: std :: ffi :: c_void , nnumberofbytestoread : u32 , pnbytesread : * mut u32 , pnminnumberofbytesneeded : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ReadEventLogA ( heventlog : super::super::Foundation:: HANDLE , dwreadflags : READ_EVENT_LOG_READ_FLAGS , dwrecordoffset : u32 , lpbuffer : * mut :: std :: ffi :: c_void , nnumberofbytestoread : u32 , pnbytesread : * mut u32 , pnminnumberofbytesneeded : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ReadEventLogA ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwreadflags ) , :: std :: mem :: transmute ( dwrecordoffset ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( nnumberofbytestoread ) , :: std :: mem :: transmute ( pnbytesread ) , :: std :: mem :: transmute ( pnminnumberofbytesneeded ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReadEventLogW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , dwreadflags : READ_EVENT_LOG_READ_FLAGS , dwrecordoffset : u32 , lpbuffer : * mut :: std :: ffi :: c_void , nnumberofbytestoread : u32 , pnbytesread : * mut u32 , pnminnumberofbytesneeded : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ReadEventLogW ( heventlog : super::super::Foundation:: HANDLE , dwreadflags : READ_EVENT_LOG_READ_FLAGS , dwrecordoffset : u32 , lpbuffer : * mut :: std :: ffi :: c_void , nnumberofbytestoread : u32 , pnbytesread : * mut u32 , pnminnumberofbytesneeded : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ReadEventLogW ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwreadflags ) , :: std :: mem :: transmute ( dwrecordoffset ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( nnumberofbytestoread ) , :: std :: mem :: transmute ( pnbytesread ) , :: std :: mem :: transmute ( pnminnumberofbytesneeded ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterEventSourceA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( lpuncservername : Param0 , lpsourcename : Param1 , ) -> EventSourceHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn RegisterEventSourceA ( lpuncservername : super::super::Foundation:: PSTR , lpsourcename : super::super::Foundation:: PSTR ) -> EventSourceHandle ; } :: std :: mem :: transmute ( RegisterEventSourceA ( lpuncservername . into_param ( ) . abi ( ) , lpsourcename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterEventSourceW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( lpuncservername : Param0 , lpsourcename : Param1 , ) -> EventSourceHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn RegisterEventSourceW ( lpuncservername : super::super::Foundation:: PWSTR , lpsourcename : super::super::Foundation:: PWSTR ) -> EventSourceHandle ; } :: std :: mem :: transmute ( RegisterEventSourceW ( lpuncservername . into_param ( ) . abi ( ) , lpsourcename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReportEventA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param4 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSID > , > ( heventlog : Param0 , wtype : REPORT_EVENT_TYPE , wcategory : u16 , dweventid : u32 , lpusersid : Param4 , wnumstrings : u16 , dwdatasize : u32 , lpstrings : * const super::super::Foundation:: PSTR , lprawdata : * const :: std :: ffi :: c_void , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ReportEventA ( heventlog : super::super::Foundation:: HANDLE , wtype : REPORT_EVENT_TYPE , wcategory : u16 , dweventid : u32 , lpusersid : super::super::Foundation:: PSID , wnumstrings : u16 , dwdatasize : u32 , lpstrings : * const super::super::Foundation:: PSTR , lprawdata : * const :: std :: ffi :: c_void ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ReportEventA ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wtype ) , :: std :: mem :: transmute ( wcategory ) , :: std :: mem :: transmute ( dweventid ) , lpusersid . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wnumstrings ) , :: std :: mem :: transmute ( dwdatasize ) , :: std :: mem :: transmute ( lpstrings ) , :: std :: mem :: transmute ( lprawdata ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReportEventW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param4 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSID > , > ( heventlog : Param0 , wtype : REPORT_EVENT_TYPE , wcategory : u16 , dweventid : u32 , lpusersid : Param4 , wnumstrings : u16 , dwdatasize : u32 , lpstrings : * const super::super::Foundation:: PWSTR , lprawdata : * const :: std :: ffi :: c_void , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ReportEventW ( heventlog : super::super::Foundation:: HANDLE , wtype : REPORT_EVENT_TYPE , wcategory : u16 , dweventid : u32 , lpusersid : super::super::Foundation:: PSID , wnumstrings : u16 , dwdatasize : u32 , lpstrings : * const super::super::Foundation:: PWSTR , lprawdata : * const :: std :: ffi :: c_void ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ReportEventW ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wtype ) , :: std :: mem :: transmute ( wcategory ) , :: std :: mem :: transmute ( dweventid ) , lpusersid . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wnumstrings ) , :: std :: mem :: transmute ( dwdatasize ) , :: std :: mem :: transmute ( lpstrings ) , :: std :: mem :: transmute ( lprawdata ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod UI { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod WindowsAndMessaging { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MESSAGEBOX_RESULT ( pub i32 ) ; pub const IDOK : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 1i32 ) ; pub const IDCANCEL : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 2i32 ) ; pub const IDABORT : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 3i32 ) ; pub const IDRETRY : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 4i32 ) ; pub const IDIGNORE : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 5i32 ) ; pub const IDYES : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 6i32 ) ; pub const IDNO : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 7i32 ) ; pub const IDCLOSE : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 8i32 ) ; pub const IDHELP : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 9i32 ) ; pub const IDTRYAGAIN : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 10i32 ) ; pub const IDCONTINUE : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 11i32 ) ; pub const IDASYNC : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 32001i32 ) ; pub const IDTIMEOUT : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 32000i32 ) ; impl :: std :: convert :: From < i32 > for MESSAGEBOX_RESULT { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MESSAGEBOX_RESULT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MESSAGEBOX_STYLE ( pub u32 ) ; pub const MB_ABORTRETRYIGNORE : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 2u32 ) ; pub const MB_CANCELTRYCONTINUE : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 6u32 ) ; pub const MB_HELP : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 16384u32 ) ; pub const MB_OK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 0u32 ) ; pub const MB_OKCANCEL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 1u32 ) ; pub const MB_RETRYCANCEL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 5u32 ) ; pub const MB_YESNO : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 4u32 ) ; pub const MB_YESNOCANCEL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 3u32 ) ; pub const MB_ICONHAND : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 16u32 ) ; pub const MB_ICONQUESTION : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 32u32 ) ; pub const MB_ICONEXCLAMATION : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 48u32 ) ; pub const MB_ICONASTERISK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 64u32 ) ; pub const MB_USERICON : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 128u32 ) ; pub const MB_ICONWARNING : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 48u32 ) ; pub const MB_ICONERROR : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 16u32 ) ; pub const MB_ICONINFORMATION : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 64u32 ) ; pub const MB_ICONSTOP : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 16u32 ) ; pub const MB_DEFBUTTON1 : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 0u32 ) ; pub const MB_DEFBUTTON2 : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 256u32 ) ; pub const MB_DEFBUTTON3 : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 512u32 ) ; pub const MB_DEFBUTTON4 : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 768u32 ) ; pub const MB_APPLMODAL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 0u32 ) ; pub const MB_SYSTEMMODAL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 4096u32 ) ; pub const MB_TASKMODAL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 8192u32 ) ; pub const MB_NOFOCUS : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 32768u32 ) ; pub const MB_SETFOREGROUND : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 65536u32 ) ; pub const MB_DEFAULT_DESKTOP_ONLY : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 131072u32 ) ; pub const MB_TOPMOST : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 262144u32 ) ; pub const MB_RIGHT : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 524288u32 ) ; pub const MB_RTLREADING : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 1048576u32 ) ; pub const MB_SERVICE_NOTIFICATION : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 2097152u32 ) ; pub const MB_SERVICE_NOTIFICATION_NT3X : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 262144u32 ) ; pub const MB_TYPEMASK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 15u32 ) ; pub const MB_ICONMASK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 240u32 ) ; pub const MB_DEFMASK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 3840u32 ) ; pub const MB_MODEMASK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 12288u32 ) ; pub const MB_MISCMASK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 49152u32 ) ; impl :: std :: convert :: From < u32 > for MESSAGEBOX_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MESSAGEBOX_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MESSAGEBOX_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MESSAGEBOX_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MESSAGEBOX_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MESSAGEBOX_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for MESSAGEBOX_STYLE { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub unsafe fn MessageBoxA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( hwnd : Param0 , lptext : Param1 , lpcaption : Param2 , utype : MESSAGEBOX_STYLE , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn MessageBoxA ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PSTR , lpcaption : super::super::Foundation:: PSTR , utype : MESSAGEBOX_STYLE ) -> MESSAGEBOX_RESULT ; } :: std :: mem :: transmute ( MessageBoxA ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } } } } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> /opt/rustwide/target/debug/build/bindings-b437a2eb08301e75/out/windows.rs:1:6781 [INFO] [stdout] | [INFO] [stdout] 1 | ...aram { if ! value . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: Into... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1 | # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Windows { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Win32 { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Foundation { # [ repr ( transparent ) ] # [ derive ( :: std :: default :: Default , :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct BOOL ( pub i32 ) ; unsafe impl :: windows :: Abi for BOOL { type Abi = Self ; type DefaultType = Self ; } impl BOOL { # [ inline ] pub fn as_bool ( self ) -> bool { ! ( self . 0 == 0 ) } # [ inline ] pub fn ok ( self ) -> :: windows :: Result < ( ) > { if self . as_bool ( ) { Ok ( ( ) ) } else { Err ( :: windows :: Error :: from_win32 ( ) ) } } # [ inline ] # [ track_caller ] pub fn unwrap ( self ) { self . ok ( ) . unwrap ( ) ; } # [ inline ] # [ track_caller ] pub fn expect ( self , msg : & str ) { self . ok ( ) . expect ( msg ) ; } } impl :: std :: convert :: From < BOOL > for bool { fn from ( value : BOOL ) -> Self { value . as_bool ( ) } } impl :: std :: convert :: From < & BOOL > for bool { fn from ( value : & BOOL ) -> Self { value . as_bool ( ) } } impl :: std :: convert :: From < bool > for BOOL { fn from ( value : bool ) -> Self { if value { BOOL ( 1 ) } else { BOOL ( 0 ) } } } impl :: std :: convert :: From < & bool > for BOOL { fn from ( value : & bool ) -> Self { ( * value ) . into ( ) } } impl :: std :: cmp :: PartialEq < bool > for BOOL { fn eq ( & self , other : & bool ) -> bool { self . as_bool ( ) == * other } } impl :: std :: cmp :: PartialEq < BOOL > for bool { fn eq ( & self , other : & BOOL ) -> bool { * self == other . as_bool ( ) } } impl std :: ops :: Not for BOOL { type Output = Self ; fn not ( self ) -> Self :: Output { if self . as_bool ( ) { BOOL ( 0 ) } else { BOOL ( 1 ) } } } impl < 'a > :: windows :: IntoParam < 'a , BOOL > for bool { fn into_param ( self ) -> :: windows :: Param < 'a , BOOL > { :: windows :: Param :: Owned ( self . into ( ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct FILETIME { pub dwLowDateTime : u32 , pub dwHighDateTime : u32 } impl FILETIME { } impl :: std :: default :: Default for FILETIME { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for FILETIME { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FILETIME" ) . field ( "dwLowDateTime" , & self . dwLowDateTime ) . field ( "dwHighDateTime" , & self . dwHighDateTime ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FILETIME { fn eq ( & self , other : & Self ) -> bool { self . dwLowDateTime == other . dwLowDateTime && self . dwHighDateTime == other . dwHighDateTime } } impl :: std :: cmp :: Eq for FILETIME { } unsafe impl :: windows :: Abi for FILETIME { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: default :: Default , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HANDLE ( pub isize ) ; unsafe impl :: windows :: Handle for HANDLE { fn is_invalid ( & self ) -> bool { self . 0 == 0 || self . 0 == - 1 } fn ok ( self ) -> :: windows :: Result < Self > { if self . is_invalid ( ) { Err ( :: windows :: Error :: from_win32 ( ) ) } else { Ok ( self ) } } } unsafe impl :: windows :: Abi for HANDLE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct HWND ( pub isize ) ; impl :: std :: default :: Default for HWND { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for HWND { } unsafe impl :: windows :: Abi for HWND { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PSID ( pub isize ) ; impl :: std :: default :: Default for PSID { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for PSID { } unsafe impl :: windows :: Abi for PSID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PSTR ( pub * mut u8 ) ; impl PSTR { pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } unsafe impl :: windows :: Abi for PSTR { type Abi = Self ; type DefaultType = Self ; unsafe fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for & str { fn into_param ( self ) -> :: windows :: Param < 'a , PSTR > { :: windows :: Param :: Boxed ( PSTR ( :: std :: boxed :: Box :: < [ u8 ] > :: into_raw ( self . bytes ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u8 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for String { fn into_param ( self ) -> :: windows :: Param < 'a , PSTR > { :: windows :: Param :: Boxed ( PSTR ( :: std :: boxed :: Box :: < [ u8 ] > :: into_raw ( self . bytes ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u8 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct PWSTR ( pub * mut u16 ) ; impl PWSTR { pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PWSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } unsafe impl :: windows :: Abi for PWSTR { type Abi = Self ; type DefaultType = Self ; unsafe fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . is_null ( ) { unsafe { let _ = :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & str { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_utf16 ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for String { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_utf16 ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ cfg ( windows ) ] impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & :: std :: ffi :: OsStr { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { use std :: os :: windows :: ffi :: OsStrExt ; :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_wide ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ cfg ( windows ) ] impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for :: std :: ffi :: OsString { fn into_param ( self ) -> :: windows :: Param < 'a , PWSTR > { use std :: os :: windows :: ffi :: OsStrExt ; :: windows :: Param :: Boxed ( PWSTR ( :: std :: boxed :: Box :: < [ u16 ] > :: into_raw ( self . encode_wide ( ) . chain ( :: std :: iter :: once ( 0 ) ) . collect :: < std :: vec :: Vec < u16 >> ( ) . into_boxed_slice ( ) ) as _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SYSTEMTIME { pub wYear : u16 , pub wMonth : u16 , pub wDayOfWeek : u16 , pub wDay : u16 , pub wHour : u16 , pub wMinute : u16 , pub wSecond : u16 , pub wMilliseconds : u16 } impl SYSTEMTIME { } impl :: std :: default :: Default for SYSTEMTIME { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for SYSTEMTIME { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SYSTEMTIME" ) . field ( "wYear" , & self . wYear ) . field ( "wMonth" , & self . wMonth ) . field ( "wDayOfWeek" , & self . wDayOfWeek ) . field ( "wDay" , & self . wDay ) . field ( "wHour" , & self . wHour ) . field ( "wMinute" , & self . wMinute ) . field ( "wSecond" , & self . wSecond ) . field ( "wMilliseconds" , & self . wMilliseconds ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SYSTEMTIME { fn eq ( & self , other : & Self ) -> bool { self . wYear == other . wYear && self . wMonth == other . wMonth && self . wDayOfWeek == other . wDayOfWeek && self . wDay == other . wDay && self . wHour == other . wHour && self . wMinute == other . wMinute && self . wSecond == other . wSecond && self . wMilliseconds == other . wMilliseconds } } impl :: std :: cmp :: Eq for SYSTEMTIME { } unsafe impl :: windows :: Abi for SYSTEMTIME { type Abi = Self ; type DefaultType = Self ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod System { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Diagnostics { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Debug { pub unsafe fn GetLastError < > ( ) -> WIN32_ERROR { # [ cfg ( windows ) ] { # [ link ( name ="kernel32" ) ] extern "system" { fn GetLastError ( ) -> WIN32_ERROR ; } :: std :: mem :: transmute ( GetLastError ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WIN32_ERROR ( pub u32 ) ; impl :: std :: convert :: From < u32 > for WIN32_ERROR { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WIN32_ERROR { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WIN32_ERROR { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WIN32_ERROR { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WIN32_ERROR { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WIN32_ERROR { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for WIN32_ERROR { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } impl :: std :: convert :: From < WIN32_ERROR > for :: windows :: HRESULT { fn from ( value : WIN32_ERROR ) -> Self { Self ( if value . 0 as i32 <= 0 { value . 0 } else { ( value . 0 & 0x0000_FFFF ) | ( 7 << 16 ) | 0x8000_0000 } ) } } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod EventLog { pub unsafe fn BackupEventLogA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( heventlog : Param0 , lpbackupfilename : Param1 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn BackupEventLogA ( heventlog : super::super::Foundation:: HANDLE , lpbackupfilename : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( BackupEventLogA ( heventlog . into_param ( ) . abi ( ) , lpbackupfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BackupEventLogW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( heventlog : Param0 , lpbackupfilename : Param1 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn BackupEventLogW ( heventlog : super::super::Foundation:: HANDLE , lpbackupfilename : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( BackupEventLogW ( heventlog . into_param ( ) . abi ( ) , lpbackupfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ClearEventLogA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( heventlog : Param0 , lpbackupfilename : Param1 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ClearEventLogA ( heventlog : super::super::Foundation:: HANDLE , lpbackupfilename : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ClearEventLogA ( heventlog . into_param ( ) . abi ( ) , lpbackupfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ClearEventLogW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( heventlog : Param0 , lpbackupfilename : Param1 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ClearEventLogW ( heventlog : super::super::Foundation:: HANDLE , lpbackupfilename : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ClearEventLogW ( heventlog . into_param ( ) . abi ( ) , lpbackupfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CloseEventLog < 'a , Param0 : :: windows :: IntoParam < 'a , EventLogHandle > , > ( heventlog : Param0 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn CloseEventLog ( heventlog : EventLogHandle ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( CloseEventLog ( heventlog . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeregisterEventSource < 'a , Param0 : :: windows :: IntoParam < 'a , EventSourceHandle > , > ( heventlog : Param0 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn DeregisterEventSource ( heventlog : EventSourceHandle ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( DeregisterEventSource ( heventlog . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EVENTLOG_FULL_INFORMATION { pub dwFull : u32 } impl EVENTLOG_FULL_INFORMATION { } impl :: std :: default :: Default for EVENTLOG_FULL_INFORMATION { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for EVENTLOG_FULL_INFORMATION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "EVENTLOG_FULL_INFORMATION" ) . field ( "dwFull" , & self . dwFull ) . finish ( ) } } impl :: std :: cmp :: PartialEq for EVENTLOG_FULL_INFORMATION { fn eq ( & self , other : & Self ) -> bool { self . dwFull == other . dwFull } } impl :: std :: cmp :: Eq for EVENTLOG_FULL_INFORMATION { } unsafe impl :: windows :: Abi for EVENTLOG_FULL_INFORMATION { type Abi = Self ; type DefaultType = Self ; } pub const EVT_ALL_ACCESS : u32 = 7u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_CLOCK_TYPE ( pub i32 ) ; pub const EvtChannelClockTypeSystemTime : EVT_CHANNEL_CLOCK_TYPE = EVT_CHANNEL_CLOCK_TYPE ( 0i32 ) ; pub const EvtChannelClockTypeQPC : EVT_CHANNEL_CLOCK_TYPE = EVT_CHANNEL_CLOCK_TYPE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_CLOCK_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_CLOCK_TYPE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_CONFIG_PROPERTY_ID ( pub i32 ) ; pub const EvtChannelConfigEnabled : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 0i32 ) ; pub const EvtChannelConfigIsolation : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 1i32 ) ; pub const EvtChannelConfigType : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 2i32 ) ; pub const EvtChannelConfigOwningPublisher : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 3i32 ) ; pub const EvtChannelConfigClassicEventlog : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 4i32 ) ; pub const EvtChannelConfigAccess : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 5i32 ) ; pub const EvtChannelLoggingConfigRetention : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 6i32 ) ; pub const EvtChannelLoggingConfigAutoBackup : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 7i32 ) ; pub const EvtChannelLoggingConfigMaxSize : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 8i32 ) ; pub const EvtChannelLoggingConfigLogFilePath : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 9i32 ) ; pub const EvtChannelPublishingConfigLevel : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 10i32 ) ; pub const EvtChannelPublishingConfigKeywords : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 11i32 ) ; pub const EvtChannelPublishingConfigControlGuid : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 12i32 ) ; pub const EvtChannelPublishingConfigBufferSize : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 13i32 ) ; pub const EvtChannelPublishingConfigMinBuffers : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 14i32 ) ; pub const EvtChannelPublishingConfigMaxBuffers : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 15i32 ) ; pub const EvtChannelPublishingConfigLatency : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 16i32 ) ; pub const EvtChannelPublishingConfigClockType : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 17i32 ) ; pub const EvtChannelPublishingConfigSidType : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 18i32 ) ; pub const EvtChannelPublisherList : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 19i32 ) ; pub const EvtChannelPublishingConfigFileMax : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 20i32 ) ; pub const EvtChannelConfigPropertyIdEND : EVT_CHANNEL_CONFIG_PROPERTY_ID = EVT_CHANNEL_CONFIG_PROPERTY_ID ( 21i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_CONFIG_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_CONFIG_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_ISOLATION_TYPE ( pub i32 ) ; pub const EvtChannelIsolationTypeApplication : EVT_CHANNEL_ISOLATION_TYPE = EVT_CHANNEL_ISOLATION_TYPE ( 0i32 ) ; pub const EvtChannelIsolationTypeSystem : EVT_CHANNEL_ISOLATION_TYPE = EVT_CHANNEL_ISOLATION_TYPE ( 1i32 ) ; pub const EvtChannelIsolationTypeCustom : EVT_CHANNEL_ISOLATION_TYPE = EVT_CHANNEL_ISOLATION_TYPE ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_ISOLATION_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_ISOLATION_TYPE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_REFERENCE_FLAGS ( pub i32 ) ; pub const EvtChannelReferenceImported : EVT_CHANNEL_REFERENCE_FLAGS = EVT_CHANNEL_REFERENCE_FLAGS ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_REFERENCE_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_REFERENCE_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_SID_TYPE ( pub i32 ) ; pub const EvtChannelSidTypeNone : EVT_CHANNEL_SID_TYPE = EVT_CHANNEL_SID_TYPE ( 0i32 ) ; pub const EvtChannelSidTypePublishing : EVT_CHANNEL_SID_TYPE = EVT_CHANNEL_SID_TYPE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_SID_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_SID_TYPE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_CHANNEL_TYPE ( pub i32 ) ; pub const EvtChannelTypeAdmin : EVT_CHANNEL_TYPE = EVT_CHANNEL_TYPE ( 0i32 ) ; pub const EvtChannelTypeOperational : EVT_CHANNEL_TYPE = EVT_CHANNEL_TYPE ( 1i32 ) ; pub const EvtChannelTypeAnalytic : EVT_CHANNEL_TYPE = EVT_CHANNEL_TYPE ( 2i32 ) ; pub const EvtChannelTypeDebug : EVT_CHANNEL_TYPE = EVT_CHANNEL_TYPE ( 3i32 ) ; impl :: std :: convert :: From < i32 > for EVT_CHANNEL_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_CHANNEL_TYPE { type Abi = Self ; type DefaultType = Self ; } pub const EVT_CLEAR_ACCESS : u32 = 4u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_EVENT_METADATA_PROPERTY_ID ( pub i32 ) ; pub const EventMetadataEventID : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 0i32 ) ; pub const EventMetadataEventVersion : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 1i32 ) ; pub const EventMetadataEventChannel : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 2i32 ) ; pub const EventMetadataEventLevel : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 3i32 ) ; pub const EventMetadataEventOpcode : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 4i32 ) ; pub const EventMetadataEventTask : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 5i32 ) ; pub const EventMetadataEventKeyword : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 6i32 ) ; pub const EventMetadataEventMessageID : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 7i32 ) ; pub const EventMetadataEventTemplate : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 8i32 ) ; pub const EvtEventMetadataPropertyIdEND : EVT_EVENT_METADATA_PROPERTY_ID = EVT_EVENT_METADATA_PROPERTY_ID ( 9i32 ) ; impl :: std :: convert :: From < i32 > for EVT_EVENT_METADATA_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_EVENT_METADATA_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_EVENT_PROPERTY_ID ( pub i32 ) ; pub const EvtEventQueryIDs : EVT_EVENT_PROPERTY_ID = EVT_EVENT_PROPERTY_ID ( 0i32 ) ; pub const EvtEventPath : EVT_EVENT_PROPERTY_ID = EVT_EVENT_PROPERTY_ID ( 1i32 ) ; pub const EvtEventPropertyIdEND : EVT_EVENT_PROPERTY_ID = EVT_EVENT_PROPERTY_ID ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_EVENT_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_EVENT_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_EXPORTLOG_FLAGS ( pub i32 ) ; pub const EvtExportLogChannelPath : EVT_EXPORTLOG_FLAGS = EVT_EXPORTLOG_FLAGS ( 1i32 ) ; pub const EvtExportLogFilePath : EVT_EXPORTLOG_FLAGS = EVT_EXPORTLOG_FLAGS ( 2i32 ) ; pub const EvtExportLogTolerateQueryErrors : EVT_EXPORTLOG_FLAGS = EVT_EXPORTLOG_FLAGS ( 4096i32 ) ; pub const EvtExportLogOverwrite : EVT_EXPORTLOG_FLAGS = EVT_EXPORTLOG_FLAGS ( 8192i32 ) ; impl :: std :: convert :: From < i32 > for EVT_EXPORTLOG_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_EXPORTLOG_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_FORMAT_MESSAGE_FLAGS ( pub i32 ) ; pub const EvtFormatMessageEvent : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 1i32 ) ; pub const EvtFormatMessageLevel : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 2i32 ) ; pub const EvtFormatMessageTask : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 3i32 ) ; pub const EvtFormatMessageOpcode : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 4i32 ) ; pub const EvtFormatMessageKeyword : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 5i32 ) ; pub const EvtFormatMessageChannel : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 6i32 ) ; pub const EvtFormatMessageProvider : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 7i32 ) ; pub const EvtFormatMessageId : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 8i32 ) ; pub const EvtFormatMessageXml : EVT_FORMAT_MESSAGE_FLAGS = EVT_FORMAT_MESSAGE_FLAGS ( 9i32 ) ; impl :: std :: convert :: From < i32 > for EVT_FORMAT_MESSAGE_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_FORMAT_MESSAGE_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_LOGIN_CLASS ( pub i32 ) ; pub const EvtRpcLogin : EVT_LOGIN_CLASS = EVT_LOGIN_CLASS ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EVT_LOGIN_CLASS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_LOGIN_CLASS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_LOG_PROPERTY_ID ( pub i32 ) ; pub const EvtLogCreationTime : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 0i32 ) ; pub const EvtLogLastAccessTime : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 1i32 ) ; pub const EvtLogLastWriteTime : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 2i32 ) ; pub const EvtLogFileSize : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 3i32 ) ; pub const EvtLogAttributes : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 4i32 ) ; pub const EvtLogNumberOfLogRecords : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 5i32 ) ; pub const EvtLogOldestRecordNumber : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 6i32 ) ; pub const EvtLogFull : EVT_LOG_PROPERTY_ID = EVT_LOG_PROPERTY_ID ( 7i32 ) ; impl :: std :: convert :: From < i32 > for EVT_LOG_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_LOG_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_OPEN_LOG_FLAGS ( pub i32 ) ; pub const EvtOpenChannelPath : EVT_OPEN_LOG_FLAGS = EVT_OPEN_LOG_FLAGS ( 1i32 ) ; pub const EvtOpenFilePath : EVT_OPEN_LOG_FLAGS = EVT_OPEN_LOG_FLAGS ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_OPEN_LOG_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_OPEN_LOG_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_PUBLISHER_METADATA_PROPERTY_ID ( pub i32 ) ; pub const EvtPublisherMetadataPublisherGuid : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 0i32 ) ; pub const EvtPublisherMetadataResourceFilePath : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 1i32 ) ; pub const EvtPublisherMetadataParameterFilePath : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 2i32 ) ; pub const EvtPublisherMetadataMessageFilePath : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 3i32 ) ; pub const EvtPublisherMetadataHelpLink : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 4i32 ) ; pub const EvtPublisherMetadataPublisherMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 5i32 ) ; pub const EvtPublisherMetadataChannelReferences : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 6i32 ) ; pub const EvtPublisherMetadataChannelReferencePath : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 7i32 ) ; pub const EvtPublisherMetadataChannelReferenceIndex : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 8i32 ) ; pub const EvtPublisherMetadataChannelReferenceID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 9i32 ) ; pub const EvtPublisherMetadataChannelReferenceFlags : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 10i32 ) ; pub const EvtPublisherMetadataChannelReferenceMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 11i32 ) ; pub const EvtPublisherMetadataLevels : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 12i32 ) ; pub const EvtPublisherMetadataLevelName : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 13i32 ) ; pub const EvtPublisherMetadataLevelValue : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 14i32 ) ; pub const EvtPublisherMetadataLevelMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 15i32 ) ; pub const EvtPublisherMetadataTasks : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 16i32 ) ; pub const EvtPublisherMetadataTaskName : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 17i32 ) ; pub const EvtPublisherMetadataTaskEventGuid : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 18i32 ) ; pub const EvtPublisherMetadataTaskValue : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 19i32 ) ; pub const EvtPublisherMetadataTaskMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 20i32 ) ; pub const EvtPublisherMetadataOpcodes : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 21i32 ) ; pub const EvtPublisherMetadataOpcodeName : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 22i32 ) ; pub const EvtPublisherMetadataOpcodeValue : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 23i32 ) ; pub const EvtPublisherMetadataOpcodeMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 24i32 ) ; pub const EvtPublisherMetadataKeywords : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 25i32 ) ; pub const EvtPublisherMetadataKeywordName : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 26i32 ) ; pub const EvtPublisherMetadataKeywordValue : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 27i32 ) ; pub const EvtPublisherMetadataKeywordMessageID : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 28i32 ) ; pub const EvtPublisherMetadataPropertyIdEND : EVT_PUBLISHER_METADATA_PROPERTY_ID = EVT_PUBLISHER_METADATA_PROPERTY_ID ( 29i32 ) ; impl :: std :: convert :: From < i32 > for EVT_PUBLISHER_METADATA_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_PUBLISHER_METADATA_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_QUERY_FLAGS ( pub i32 ) ; pub const EvtQueryChannelPath : EVT_QUERY_FLAGS = EVT_QUERY_FLAGS ( 1i32 ) ; pub const EvtQueryFilePath : EVT_QUERY_FLAGS = EVT_QUERY_FLAGS ( 2i32 ) ; pub const EvtQueryForwardDirection : EVT_QUERY_FLAGS = EVT_QUERY_FLAGS ( 256i32 ) ; pub const EvtQueryReverseDirection : EVT_QUERY_FLAGS = EVT_QUERY_FLAGS ( 512i32 ) ; pub const EvtQueryTolerateQueryErrors : EVT_QUERY_FLAGS = EVT_QUERY_FLAGS ( 4096i32 ) ; impl :: std :: convert :: From < i32 > for EVT_QUERY_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_QUERY_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_QUERY_PROPERTY_ID ( pub i32 ) ; pub const EvtQueryNames : EVT_QUERY_PROPERTY_ID = EVT_QUERY_PROPERTY_ID ( 0i32 ) ; pub const EvtQueryStatuses : EVT_QUERY_PROPERTY_ID = EVT_QUERY_PROPERTY_ID ( 1i32 ) ; pub const EvtQueryPropertyIdEND : EVT_QUERY_PROPERTY_ID = EVT_QUERY_PROPERTY_ID ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_QUERY_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_QUERY_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } pub const EVT_READ_ACCESS : u32 = 1u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_RENDER_CONTEXT_FLAGS ( pub i32 ) ; pub const EvtRenderContextValues : EVT_RENDER_CONTEXT_FLAGS = EVT_RENDER_CONTEXT_FLAGS ( 0i32 ) ; pub const EvtRenderContextSystem : EVT_RENDER_CONTEXT_FLAGS = EVT_RENDER_CONTEXT_FLAGS ( 1i32 ) ; pub const EvtRenderContextUser : EVT_RENDER_CONTEXT_FLAGS = EVT_RENDER_CONTEXT_FLAGS ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_RENDER_CONTEXT_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_RENDER_CONTEXT_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_RENDER_FLAGS ( pub i32 ) ; pub const EvtRenderEventValues : EVT_RENDER_FLAGS = EVT_RENDER_FLAGS ( 0i32 ) ; pub const EvtRenderEventXml : EVT_RENDER_FLAGS = EVT_RENDER_FLAGS ( 1i32 ) ; pub const EvtRenderBookmark : EVT_RENDER_FLAGS = EVT_RENDER_FLAGS ( 2i32 ) ; impl :: std :: convert :: From < i32 > for EVT_RENDER_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_RENDER_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EVT_RPC_LOGIN { pub Server : super::super::Foundation:: PWSTR , pub User : super::super::Foundation:: PWSTR , pub Domain : super::super::Foundation:: PWSTR , pub Password : super::super::Foundation:: PWSTR , pub Flags : u32 } impl EVT_RPC_LOGIN { } impl :: std :: default :: Default for EVT_RPC_LOGIN { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: fmt :: Debug for EVT_RPC_LOGIN { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "EVT_RPC_LOGIN" ) . field ( "Server" , & self . Server ) . field ( "User" , & self . User ) . field ( "Domain" , & self . Domain ) . field ( "Password" , & self . Password ) . field ( "Flags" , & self . Flags ) . finish ( ) } } impl :: std :: cmp :: PartialEq for EVT_RPC_LOGIN { fn eq ( & self , other : & Self ) -> bool { self . Server == other . Server && self . User == other . User && self . Domain == other . Domain && self . Password == other . Password && self . Flags == other . Flags } } impl :: std :: cmp :: Eq for EVT_RPC_LOGIN { } unsafe impl :: windows :: Abi for EVT_RPC_LOGIN { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_RPC_LOGIN_FLAGS ( pub i32 ) ; pub const EvtRpcLoginAuthDefault : EVT_RPC_LOGIN_FLAGS = EVT_RPC_LOGIN_FLAGS ( 0i32 ) ; pub const EvtRpcLoginAuthNegotiate : EVT_RPC_LOGIN_FLAGS = EVT_RPC_LOGIN_FLAGS ( 1i32 ) ; pub const EvtRpcLoginAuthKerberos : EVT_RPC_LOGIN_FLAGS = EVT_RPC_LOGIN_FLAGS ( 2i32 ) ; pub const EvtRpcLoginAuthNTLM : EVT_RPC_LOGIN_FLAGS = EVT_RPC_LOGIN_FLAGS ( 3i32 ) ; impl :: std :: convert :: From < i32 > for EVT_RPC_LOGIN_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_RPC_LOGIN_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_SEEK_FLAGS ( pub i32 ) ; pub const EvtSeekRelativeToFirst : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 1i32 ) ; pub const EvtSeekRelativeToLast : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 2i32 ) ; pub const EvtSeekRelativeToCurrent : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 3i32 ) ; pub const EvtSeekRelativeToBookmark : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 4i32 ) ; pub const EvtSeekOriginMask : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 7i32 ) ; pub const EvtSeekStrict : EVT_SEEK_FLAGS = EVT_SEEK_FLAGS ( 65536i32 ) ; impl :: std :: convert :: From < i32 > for EVT_SEEK_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_SEEK_FLAGS { type Abi = Self ; type DefaultType = Self ; } pub type EVT_SUBSCRIBE_CALLBACK = unsafe extern "system" fn ( action : EVT_SUBSCRIBE_NOTIFY_ACTION , usercontext : * const :: std :: ffi :: c_void , event : isize ) -> u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_SUBSCRIBE_FLAGS ( pub i32 ) ; pub const EvtSubscribeToFutureEvents : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 1i32 ) ; pub const EvtSubscribeStartAtOldestRecord : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 2i32 ) ; pub const EvtSubscribeStartAfterBookmark : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 3i32 ) ; pub const EvtSubscribeOriginMask : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 3i32 ) ; pub const EvtSubscribeTolerateQueryErrors : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 4096i32 ) ; pub const EvtSubscribeStrict : EVT_SUBSCRIBE_FLAGS = EVT_SUBSCRIBE_FLAGS ( 65536i32 ) ; impl :: std :: convert :: From < i32 > for EVT_SUBSCRIBE_FLAGS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_SUBSCRIBE_FLAGS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_SUBSCRIBE_NOTIFY_ACTION ( pub i32 ) ; pub const EvtSubscribeActionError : EVT_SUBSCRIBE_NOTIFY_ACTION = EVT_SUBSCRIBE_NOTIFY_ACTION ( 0i32 ) ; pub const EvtSubscribeActionDeliver : EVT_SUBSCRIBE_NOTIFY_ACTION = EVT_SUBSCRIBE_NOTIFY_ACTION ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EVT_SUBSCRIBE_NOTIFY_ACTION { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_SUBSCRIBE_NOTIFY_ACTION { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_SYSTEM_PROPERTY_ID ( pub i32 ) ; pub const EvtSystemProviderName : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 0i32 ) ; pub const EvtSystemProviderGuid : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 1i32 ) ; pub const EvtSystemEventID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 2i32 ) ; pub const EvtSystemQualifiers : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 3i32 ) ; pub const EvtSystemLevel : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 4i32 ) ; pub const EvtSystemTask : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 5i32 ) ; pub const EvtSystemOpcode : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 6i32 ) ; pub const EvtSystemKeywords : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 7i32 ) ; pub const EvtSystemTimeCreated : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 8i32 ) ; pub const EvtSystemEventRecordId : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 9i32 ) ; pub const EvtSystemActivityID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 10i32 ) ; pub const EvtSystemRelatedActivityID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 11i32 ) ; pub const EvtSystemProcessID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 12i32 ) ; pub const EvtSystemThreadID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 13i32 ) ; pub const EvtSystemChannel : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 14i32 ) ; pub const EvtSystemComputer : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 15i32 ) ; pub const EvtSystemUserID : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 16i32 ) ; pub const EvtSystemVersion : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 17i32 ) ; pub const EvtSystemPropertyIdEND : EVT_SYSTEM_PROPERTY_ID = EVT_SYSTEM_PROPERTY_ID ( 18i32 ) ; impl :: std :: convert :: From < i32 > for EVT_SYSTEM_PROPERTY_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_SYSTEM_PROPERTY_ID { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EVT_VARIANT { pub Anonymous : EVT_VARIANT_0 , pub Count : u32 , pub Type : u32 } impl EVT_VARIANT { } impl :: std :: default :: Default for EVT_VARIANT { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for EVT_VARIANT { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for EVT_VARIANT { } unsafe impl :: windows :: Abi for EVT_VARIANT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union EVT_VARIANT_0 { pub BooleanVal : super::super::Foundation:: BOOL , pub SByteVal : i8 , pub Int16Val : i16 , pub Int32Val : i32 , pub Int64Val : i64 , pub ByteVal : u8 , pub UInt16Val : u16 , pub UInt32Val : u32 , pub UInt64Val : u64 , pub SingleVal : f32 , pub DoubleVal : f64 , pub FileTimeVal : u64 , pub SysTimeVal : * mut super::super::Foundation:: SYSTEMTIME , pub GuidVal : * mut :: windows :: Guid , pub StringVal : super::super::Foundation:: PWSTR , pub AnsiStringVal : super::super::Foundation:: PSTR , pub BinaryVal : * mut u8 , pub SidVal : super::super::Foundation:: PSID , pub SizeTVal : usize , pub BooleanArr : * mut super::super::Foundation:: BOOL , pub SByteArr : * mut i8 , pub Int16Arr : * mut i16 , pub Int32Arr : * mut i32 , pub Int64Arr : * mut i64 , pub ByteArr : * mut u8 , pub UInt16Arr : * mut u16 , pub UInt32Arr : * mut u32 , pub UInt64Arr : * mut u64 , pub SingleArr : * mut f32 , pub DoubleArr : * mut f64 , pub FileTimeArr : * mut super::super::Foundation:: FILETIME , pub SysTimeArr : * mut super::super::Foundation:: SYSTEMTIME , pub GuidArr : * mut :: windows :: Guid , pub StringArr : * mut super::super::Foundation:: PWSTR , pub AnsiStringArr : * mut super::super::Foundation:: PSTR , pub SidArr : * mut super::super::Foundation:: PSID , pub SizeTArr : * mut usize , pub EvtHandleVal : isize , pub XmlVal : super::super::Foundation:: PWSTR , pub XmlValArr : * mut super::super::Foundation:: PWSTR } impl EVT_VARIANT_0 { } impl :: std :: default :: Default for EVT_VARIANT_0 { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl :: std :: cmp :: PartialEq for EVT_VARIANT_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for EVT_VARIANT_0 { } unsafe impl :: windows :: Abi for EVT_VARIANT_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct EVT_VARIANT_TYPE ( pub i32 ) ; pub const EvtVarTypeNull : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 0i32 ) ; pub const EvtVarTypeString : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 1i32 ) ; pub const EvtVarTypeAnsiString : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 2i32 ) ; pub const EvtVarTypeSByte : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 3i32 ) ; pub const EvtVarTypeByte : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 4i32 ) ; pub const EvtVarTypeInt16 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 5i32 ) ; pub const EvtVarTypeUInt16 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 6i32 ) ; pub const EvtVarTypeInt32 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 7i32 ) ; pub const EvtVarTypeUInt32 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 8i32 ) ; pub const EvtVarTypeInt64 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 9i32 ) ; pub const EvtVarTypeUInt64 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 10i32 ) ; pub const EvtVarTypeSingle : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 11i32 ) ; pub const EvtVarTypeDouble : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 12i32 ) ; pub const EvtVarTypeBoolean : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 13i32 ) ; pub const EvtVarTypeBinary : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 14i32 ) ; pub const EvtVarTypeGuid : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 15i32 ) ; pub const EvtVarTypeSizeT : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 16i32 ) ; pub const EvtVarTypeFileTime : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 17i32 ) ; pub const EvtVarTypeSysTime : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 18i32 ) ; pub const EvtVarTypeSid : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 19i32 ) ; pub const EvtVarTypeHexInt32 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 20i32 ) ; pub const EvtVarTypeHexInt64 : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 21i32 ) ; pub const EvtVarTypeEvtHandle : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 32i32 ) ; pub const EvtVarTypeEvtXml : EVT_VARIANT_TYPE = EVT_VARIANT_TYPE ( 35i32 ) ; impl :: std :: convert :: From < i32 > for EVT_VARIANT_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EVT_VARIANT_TYPE { type Abi = Self ; type DefaultType = Self ; } pub const EVT_VARIANT_TYPE_ARRAY : u32 = 128u32 ; pub const EVT_VARIANT_TYPE_MASK : u32 = 127u32 ; pub const EVT_WRITE_ACCESS : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct EventLogHandle ( pub isize ) ; impl :: std :: default :: Default for EventLogHandle { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for EventLogHandle { } unsafe impl :: windows :: Abi for EventLogHandle { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: fmt :: Debug , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq ) ] # [ repr ( transparent ) ] pub struct EventSourceHandle ( pub isize ) ; impl :: std :: default :: Default for EventSourceHandle { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } unsafe impl :: windows :: Handle for EventSourceHandle { } unsafe impl :: windows :: Abi for EventSourceHandle { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn EvtArchiveExportedLog < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , logfilepath : Param1 , locale : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtArchiveExportedLog ( session : isize , logfilepath : super::super::Foundation:: PWSTR , locale : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtArchiveExportedLog ( :: std :: mem :: transmute ( session ) , logfilepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( locale ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtCancel < > ( object : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtCancel ( object : isize ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtCancel ( :: std :: mem :: transmute ( object ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtClearLog < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , channelpath : Param1 , targetfilepath : Param2 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtClearLog ( session : isize , channelpath : super::super::Foundation:: PWSTR , targetfilepath : super::super::Foundation:: PWSTR , flags : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtClearLog ( :: std :: mem :: transmute ( session ) , channelpath . into_param ( ) . abi ( ) , targetfilepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtClose < > ( object : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtClose ( object : isize ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtClose ( :: std :: mem :: transmute ( object ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtCreateBookmark < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( bookmarkxml : Param0 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtCreateBookmark ( bookmarkxml : super::super::Foundation:: PWSTR ) -> isize ; } :: std :: mem :: transmute ( EvtCreateBookmark ( bookmarkxml . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtCreateRenderContext < > ( valuepathscount : u32 , valuepaths : * const super::super::Foundation:: PWSTR , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtCreateRenderContext ( valuepathscount : u32 , valuepaths : * const super::super::Foundation:: PWSTR , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtCreateRenderContext ( :: std :: mem :: transmute ( valuepathscount ) , :: std :: mem :: transmute ( valuepaths ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtExportLog < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param3 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , path : Param1 , query : Param2 , targetfilepath : Param3 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtExportLog ( session : isize , path : super::super::Foundation:: PWSTR , query : super::super::Foundation:: PWSTR , targetfilepath : super::super::Foundation:: PWSTR , flags : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtExportLog ( :: std :: mem :: transmute ( session ) , path . into_param ( ) . abi ( ) , query . into_param ( ) . abi ( ) , targetfilepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtFormatMessage < > ( publishermetadata : isize , event : isize , messageid : u32 , valuecount : u32 , values : * const EVT_VARIANT , flags : u32 , buffersize : u32 , buffer : super::super::Foundation:: PWSTR , bufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtFormatMessage ( publishermetadata : isize , event : isize , messageid : u32 , valuecount : u32 , values : * const EVT_VARIANT , flags : u32 , buffersize : u32 , buffer : super::super::Foundation:: PWSTR , bufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtFormatMessage ( :: std :: mem :: transmute ( publishermetadata ) , :: std :: mem :: transmute ( event ) , :: std :: mem :: transmute ( messageid ) , :: std :: mem :: transmute ( valuecount ) , :: std :: mem :: transmute ( values ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( buffersize ) , :: std :: mem :: transmute ( buffer ) , :: std :: mem :: transmute ( bufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetChannelConfigProperty < > ( channelconfig : isize , propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID , flags : u32 , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetChannelConfigProperty ( channelconfig : isize , propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID , flags : u32 , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetChannelConfigProperty ( :: std :: mem :: transmute ( channelconfig ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( propertyvaluebuffersize ) , :: std :: mem :: transmute ( propertyvaluebuffer ) , :: std :: mem :: transmute ( propertyvaluebufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetEventInfo < > ( event : isize , propertyid : EVT_EVENT_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetEventInfo ( event : isize , propertyid : EVT_EVENT_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetEventInfo ( :: std :: mem :: transmute ( event ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( propertyvaluebuffersize ) , :: std :: mem :: transmute ( propertyvaluebuffer ) , :: std :: mem :: transmute ( propertyvaluebufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetEventMetadataProperty < > ( eventmetadata : isize , propertyid : EVT_EVENT_METADATA_PROPERTY_ID , flags : u32 , eventmetadatapropertybuffersize : u32 , eventmetadatapropertybuffer : * mut EVT_VARIANT , eventmetadatapropertybufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetEventMetadataProperty ( eventmetadata : isize , propertyid : EVT_EVENT_METADATA_PROPERTY_ID , flags : u32 , eventmetadatapropertybuffersize : u32 , eventmetadatapropertybuffer : * mut EVT_VARIANT , eventmetadatapropertybufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetEventMetadataProperty ( :: std :: mem :: transmute ( eventmetadata ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( eventmetadatapropertybuffersize ) , :: std :: mem :: transmute ( eventmetadatapropertybuffer ) , :: std :: mem :: transmute ( eventmetadatapropertybufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetExtendedStatus < > ( buffersize : u32 , buffer : super::super::Foundation:: PWSTR , bufferused : * mut u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetExtendedStatus ( buffersize : u32 , buffer : super::super::Foundation:: PWSTR , bufferused : * mut u32 ) -> u32 ; } :: std :: mem :: transmute ( EvtGetExtendedStatus ( :: std :: mem :: transmute ( buffersize ) , :: std :: mem :: transmute ( buffer ) , :: std :: mem :: transmute ( bufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetLogInfo < > ( log : isize , propertyid : EVT_LOG_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetLogInfo ( log : isize , propertyid : EVT_LOG_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetLogInfo ( :: std :: mem :: transmute ( log ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( propertyvaluebuffersize ) , :: std :: mem :: transmute ( propertyvaluebuffer ) , :: std :: mem :: transmute ( propertyvaluebufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetObjectArrayProperty < > ( objectarray : isize , propertyid : u32 , arrayindex : u32 , flags : u32 , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetObjectArrayProperty ( objectarray : isize , propertyid : u32 , arrayindex : u32 , flags : u32 , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetObjectArrayProperty ( :: std :: mem :: transmute ( objectarray ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( arrayindex ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( propertyvaluebuffersize ) , :: std :: mem :: transmute ( propertyvaluebuffer ) , :: std :: mem :: transmute ( propertyvaluebufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetObjectArraySize < > ( objectarray : isize , objectarraysize : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetObjectArraySize ( objectarray : isize , objectarraysize : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetObjectArraySize ( :: std :: mem :: transmute ( objectarray ) , :: std :: mem :: transmute ( objectarraysize ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetPublisherMetadataProperty < > ( publishermetadata : isize , propertyid : EVT_PUBLISHER_METADATA_PROPERTY_ID , flags : u32 , publishermetadatapropertybuffersize : u32 , publishermetadatapropertybuffer : * mut EVT_VARIANT , publishermetadatapropertybufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetPublisherMetadataProperty ( publishermetadata : isize , propertyid : EVT_PUBLISHER_METADATA_PROPERTY_ID , flags : u32 , publishermetadatapropertybuffersize : u32 , publishermetadatapropertybuffer : * mut EVT_VARIANT , publishermetadatapropertybufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetPublisherMetadataProperty ( :: std :: mem :: transmute ( publishermetadata ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( publishermetadatapropertybuffersize ) , :: std :: mem :: transmute ( publishermetadatapropertybuffer ) , :: std :: mem :: transmute ( publishermetadatapropertybufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtGetQueryInfo < > ( queryorsubscription : isize , propertyid : EVT_QUERY_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtGetQueryInfo ( queryorsubscription : isize , propertyid : EVT_QUERY_PROPERTY_ID , propertyvaluebuffersize : u32 , propertyvaluebuffer : * mut EVT_VARIANT , propertyvaluebufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtGetQueryInfo ( :: std :: mem :: transmute ( queryorsubscription ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( propertyvaluebuffersize ) , :: std :: mem :: transmute ( propertyvaluebuffer ) , :: std :: mem :: transmute ( propertyvaluebufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtNext < > ( resultset : isize , eventssize : u32 , events : * mut isize , timeout : u32 , flags : u32 , returned : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtNext ( resultset : isize , eventssize : u32 , events : * mut isize , timeout : u32 , flags : u32 , returned : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtNext ( :: std :: mem :: transmute ( resultset ) , :: std :: mem :: transmute ( eventssize ) , :: std :: mem :: transmute ( events ) , :: std :: mem :: transmute ( timeout ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( returned ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtNextChannelPath < > ( channelenum : isize , channelpathbuffersize : u32 , channelpathbuffer : super::super::Foundation:: PWSTR , channelpathbufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtNextChannelPath ( channelenum : isize , channelpathbuffersize : u32 , channelpathbuffer : super::super::Foundation:: PWSTR , channelpathbufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtNextChannelPath ( :: std :: mem :: transmute ( channelenum ) , :: std :: mem :: transmute ( channelpathbuffersize ) , :: std :: mem :: transmute ( channelpathbuffer ) , :: std :: mem :: transmute ( channelpathbufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtNextEventMetadata < > ( eventmetadataenum : isize , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtNextEventMetadata ( eventmetadataenum : isize , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtNextEventMetadata ( :: std :: mem :: transmute ( eventmetadataenum ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtNextPublisherId < > ( publisherenum : isize , publisheridbuffersize : u32 , publisheridbuffer : super::super::Foundation:: PWSTR , publisheridbufferused : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtNextPublisherId ( publisherenum : isize , publisheridbuffersize : u32 , publisheridbuffer : super::super::Foundation:: PWSTR , publisheridbufferused : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtNextPublisherId ( :: std :: mem :: transmute ( publisherenum ) , :: std :: mem :: transmute ( publisheridbuffersize ) , :: std :: mem :: transmute ( publisheridbuffer ) , :: std :: mem :: transmute ( publisheridbufferused ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenChannelConfig < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , channelpath : Param1 , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenChannelConfig ( session : isize , channelpath : super::super::Foundation:: PWSTR , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenChannelConfig ( :: std :: mem :: transmute ( session ) , channelpath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenChannelEnum < > ( session : isize , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenChannelEnum ( session : isize , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenChannelEnum ( :: std :: mem :: transmute ( session ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenEventMetadataEnum < > ( publishermetadata : isize , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenEventMetadataEnum ( publishermetadata : isize , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenEventMetadataEnum ( :: std :: mem :: transmute ( publishermetadata ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenLog < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , path : Param1 , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenLog ( session : isize , path : super::super::Foundation:: PWSTR , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenLog ( :: std :: mem :: transmute ( session ) , path . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenPublisherEnum < > ( session : isize , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenPublisherEnum ( session : isize , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenPublisherEnum ( :: std :: mem :: transmute ( session ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenPublisherMetadata < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , publisherid : Param1 , logfilepath : Param2 , locale : u32 , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenPublisherMetadata ( session : isize , publisherid : super::super::Foundation:: PWSTR , logfilepath : super::super::Foundation:: PWSTR , locale : u32 , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenPublisherMetadata ( :: std :: mem :: transmute ( session ) , publisherid . into_param ( ) . abi ( ) , logfilepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( locale ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtOpenSession < > ( loginclass : EVT_LOGIN_CLASS , login : * const :: std :: ffi :: c_void , timeout : u32 , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtOpenSession ( loginclass : EVT_LOGIN_CLASS , login : * const :: std :: ffi :: c_void , timeout : u32 , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtOpenSession ( :: std :: mem :: transmute ( loginclass ) , :: std :: mem :: transmute ( login ) , :: std :: mem :: transmute ( timeout ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtQuery < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , path : Param1 , query : Param2 , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtQuery ( session : isize , path : super::super::Foundation:: PWSTR , query : super::super::Foundation:: PWSTR , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtQuery ( :: std :: mem :: transmute ( session ) , path . into_param ( ) . abi ( ) , query . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtRender < > ( context : isize , fragment : isize , flags : u32 , buffersize : u32 , buffer : * mut :: std :: ffi :: c_void , bufferused : * mut u32 , propertycount : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtRender ( context : isize , fragment : isize , flags : u32 , buffersize : u32 , buffer : * mut :: std :: ffi :: c_void , bufferused : * mut u32 , propertycount : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtRender ( :: std :: mem :: transmute ( context ) , :: std :: mem :: transmute ( fragment ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( buffersize ) , :: std :: mem :: transmute ( buffer ) , :: std :: mem :: transmute ( bufferused ) , :: std :: mem :: transmute ( propertycount ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtSaveChannelConfig < > ( channelconfig : isize , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtSaveChannelConfig ( channelconfig : isize , flags : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtSaveChannelConfig ( :: std :: mem :: transmute ( channelconfig ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtSeek < > ( resultset : isize , position : i64 , bookmark : isize , timeout : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtSeek ( resultset : isize , position : i64 , bookmark : isize , timeout : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtSeek ( :: std :: mem :: transmute ( resultset ) , :: std :: mem :: transmute ( position ) , :: std :: mem :: transmute ( bookmark ) , :: std :: mem :: transmute ( timeout ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtSetChannelConfigProperty < > ( channelconfig : isize , propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID , flags : u32 , propertyvalue : * const EVT_VARIANT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtSetChannelConfigProperty ( channelconfig : isize , propertyid : EVT_CHANNEL_CONFIG_PROPERTY_ID , flags : u32 , propertyvalue : * const EVT_VARIANT ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtSetChannelConfigProperty ( :: std :: mem :: transmute ( channelconfig ) , :: std :: mem :: transmute ( propertyid ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( propertyvalue ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtSubscribe < 'a , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param3 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( session : isize , signalevent : Param1 , channelpath : Param2 , query : Param3 , bookmark : isize , context : * const :: std :: ffi :: c_void , callback : :: std :: option :: Option < EVT_SUBSCRIBE_CALLBACK > , flags : u32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtSubscribe ( session : isize , signalevent : super::super::Foundation:: HANDLE , channelpath : super::super::Foundation:: PWSTR , query : super::super::Foundation:: PWSTR , bookmark : isize , context : * const :: std :: ffi :: c_void , callback : :: windows :: RawPtr , flags : u32 ) -> isize ; } :: std :: mem :: transmute ( EvtSubscribe ( :: std :: mem :: transmute ( session ) , signalevent . into_param ( ) . abi ( ) , channelpath . into_param ( ) . abi ( ) , query . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bookmark ) , :: std :: mem :: transmute ( context ) , :: std :: mem :: transmute ( callback ) , :: std :: mem :: transmute ( flags ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EvtUpdateBookmark < > ( bookmark : isize , event : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="wevtapi" ) ] extern "system" { fn EvtUpdateBookmark ( bookmark : isize , event : isize ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( EvtUpdateBookmark ( :: std :: mem :: transmute ( bookmark ) , :: std :: mem :: transmute ( event ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetEventLogInformation < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , dwinfolevel : u32 , lpbuffer : * mut :: std :: ffi :: c_void , cbbufsize : u32 , pcbbytesneeded : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn GetEventLogInformation ( heventlog : super::super::Foundation:: HANDLE , dwinfolevel : u32 , lpbuffer : * mut :: std :: ffi :: c_void , cbbufsize : u32 , pcbbytesneeded : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( GetEventLogInformation ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwinfolevel ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( cbbufsize ) , :: std :: mem :: transmute ( pcbbytesneeded ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetNumberOfEventLogRecords < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , numberofrecords : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn GetNumberOfEventLogRecords ( heventlog : super::super::Foundation:: HANDLE , numberofrecords : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( GetNumberOfEventLogRecords ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( numberofrecords ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetOldestEventLogRecord < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , oldestrecord : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn GetOldestEventLogRecord ( heventlog : super::super::Foundation:: HANDLE , oldestrecord : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( GetOldestEventLogRecord ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( oldestrecord ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn NotifyChangeEventLog < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , hevent : Param1 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn NotifyChangeEventLog ( heventlog : super::super::Foundation:: HANDLE , hevent : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( NotifyChangeEventLog ( heventlog . into_param ( ) . abi ( ) , hevent . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenBackupEventLogA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( lpuncservername : Param0 , lpfilename : Param1 , ) -> EventLogHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn OpenBackupEventLogA ( lpuncservername : super::super::Foundation:: PSTR , lpfilename : super::super::Foundation:: PSTR ) -> EventLogHandle ; } :: std :: mem :: transmute ( OpenBackupEventLogA ( lpuncservername . into_param ( ) . abi ( ) , lpfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenBackupEventLogW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( lpuncservername : Param0 , lpfilename : Param1 , ) -> EventLogHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn OpenBackupEventLogW ( lpuncservername : super::super::Foundation:: PWSTR , lpfilename : super::super::Foundation:: PWSTR ) -> EventLogHandle ; } :: std :: mem :: transmute ( OpenBackupEventLogW ( lpuncservername . into_param ( ) . abi ( ) , lpfilename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenEventLogA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( lpuncservername : Param0 , lpsourcename : Param1 , ) -> EventLogHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn OpenEventLogA ( lpuncservername : super::super::Foundation:: PSTR , lpsourcename : super::super::Foundation:: PSTR ) -> EventLogHandle ; } :: std :: mem :: transmute ( OpenEventLogA ( lpuncservername . into_param ( ) . abi ( ) , lpsourcename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenEventLogW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( lpuncservername : Param0 , lpsourcename : Param1 , ) -> EventLogHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn OpenEventLogW ( lpuncservername : super::super::Foundation:: PWSTR , lpsourcename : super::super::Foundation:: PWSTR ) -> EventLogHandle ; } :: std :: mem :: transmute ( OpenEventLogW ( lpuncservername . into_param ( ) . abi ( ) , lpsourcename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct READ_EVENT_LOG_READ_FLAGS ( pub u32 ) ; pub const EVENTLOG_SEEK_READ : READ_EVENT_LOG_READ_FLAGS = READ_EVENT_LOG_READ_FLAGS ( 2u32 ) ; pub const EVENTLOG_SEQUENTIAL_READ : READ_EVENT_LOG_READ_FLAGS = READ_EVENT_LOG_READ_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for READ_EVENT_LOG_READ_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for READ_EVENT_LOG_READ_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for READ_EVENT_LOG_READ_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for READ_EVENT_LOG_READ_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for READ_EVENT_LOG_READ_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for READ_EVENT_LOG_READ_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for READ_EVENT_LOG_READ_FLAGS { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct REPORT_EVENT_TYPE ( pub u32 ) ; pub const EVENTLOG_SUCCESS : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 0u32 ) ; pub const EVENTLOG_AUDIT_FAILURE : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 16u32 ) ; pub const EVENTLOG_AUDIT_SUCCESS : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 8u32 ) ; pub const EVENTLOG_ERROR_TYPE : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 1u32 ) ; pub const EVENTLOG_INFORMATION_TYPE : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 4u32 ) ; pub const EVENTLOG_WARNING_TYPE : REPORT_EVENT_TYPE = REPORT_EVENT_TYPE ( 2u32 ) ; impl :: std :: convert :: From < u32 > for REPORT_EVENT_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for REPORT_EVENT_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for REPORT_EVENT_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for REPORT_EVENT_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for REPORT_EVENT_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for REPORT_EVENT_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for REPORT_EVENT_TYPE { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub unsafe fn ReadEventLogA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , dwreadflags : READ_EVENT_LOG_READ_FLAGS , dwrecordoffset : u32 , lpbuffer : * mut :: std :: ffi :: c_void , nnumberofbytestoread : u32 , pnbytesread : * mut u32 , pnminnumberofbytesneeded : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ReadEventLogA ( heventlog : super::super::Foundation:: HANDLE , dwreadflags : READ_EVENT_LOG_READ_FLAGS , dwrecordoffset : u32 , lpbuffer : * mut :: std :: ffi :: c_void , nnumberofbytestoread : u32 , pnbytesread : * mut u32 , pnminnumberofbytesneeded : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ReadEventLogA ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwreadflags ) , :: std :: mem :: transmute ( dwrecordoffset ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( nnumberofbytestoread ) , :: std :: mem :: transmute ( pnbytesread ) , :: std :: mem :: transmute ( pnminnumberofbytesneeded ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReadEventLogW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , > ( heventlog : Param0 , dwreadflags : READ_EVENT_LOG_READ_FLAGS , dwrecordoffset : u32 , lpbuffer : * mut :: std :: ffi :: c_void , nnumberofbytestoread : u32 , pnbytesread : * mut u32 , pnminnumberofbytesneeded : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ReadEventLogW ( heventlog : super::super::Foundation:: HANDLE , dwreadflags : READ_EVENT_LOG_READ_FLAGS , dwrecordoffset : u32 , lpbuffer : * mut :: std :: ffi :: c_void , nnumberofbytestoread : u32 , pnbytesread : * mut u32 , pnminnumberofbytesneeded : * mut u32 ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ReadEventLogW ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwreadflags ) , :: std :: mem :: transmute ( dwrecordoffset ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( nnumberofbytestoread ) , :: std :: mem :: transmute ( pnbytesread ) , :: std :: mem :: transmute ( pnminnumberofbytesneeded ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterEventSourceA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( lpuncservername : Param0 , lpsourcename : Param1 , ) -> EventSourceHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn RegisterEventSourceA ( lpuncservername : super::super::Foundation:: PSTR , lpsourcename : super::super::Foundation:: PSTR ) -> EventSourceHandle ; } :: std :: mem :: transmute ( RegisterEventSourceA ( lpuncservername . into_param ( ) . abi ( ) , lpsourcename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterEventSourceW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , > ( lpuncservername : Param0 , lpsourcename : Param1 , ) -> EventSourceHandle { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn RegisterEventSourceW ( lpuncservername : super::super::Foundation:: PWSTR , lpsourcename : super::super::Foundation:: PWSTR ) -> EventSourceHandle ; } :: std :: mem :: transmute ( RegisterEventSourceW ( lpuncservername . into_param ( ) . abi ( ) , lpsourcename . into_param ( ) . abi ( ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReportEventA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param4 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSID > , > ( heventlog : Param0 , wtype : REPORT_EVENT_TYPE , wcategory : u16 , dweventid : u32 , lpusersid : Param4 , wnumstrings : u16 , dwdatasize : u32 , lpstrings : * const super::super::Foundation:: PSTR , lprawdata : * const :: std :: ffi :: c_void , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ReportEventA ( heventlog : super::super::Foundation:: HANDLE , wtype : REPORT_EVENT_TYPE , wcategory : u16 , dweventid : u32 , lpusersid : super::super::Foundation:: PSID , wnumstrings : u16 , dwdatasize : u32 , lpstrings : * const super::super::Foundation:: PSTR , lprawdata : * const :: std :: ffi :: c_void ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ReportEventA ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wtype ) , :: std :: mem :: transmute ( wcategory ) , :: std :: mem :: transmute ( dweventid ) , lpusersid . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wnumstrings ) , :: std :: mem :: transmute ( dwdatasize ) , :: std :: mem :: transmute ( lpstrings ) , :: std :: mem :: transmute ( lprawdata ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReportEventW < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , Param4 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSID > , > ( heventlog : Param0 , wtype : REPORT_EVENT_TYPE , wcategory : u16 , dweventid : u32 , lpusersid : Param4 , wnumstrings : u16 , dwdatasize : u32 , lpstrings : * const super::super::Foundation:: PWSTR , lprawdata : * const :: std :: ffi :: c_void , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="advapi32" ) ] extern "system" { fn ReportEventW ( heventlog : super::super::Foundation:: HANDLE , wtype : REPORT_EVENT_TYPE , wcategory : u16 , dweventid : u32 , lpusersid : super::super::Foundation:: PSID , wnumstrings : u16 , dwdatasize : u32 , lpstrings : * const super::super::Foundation:: PWSTR , lprawdata : * const :: std :: ffi :: c_void ) -> super::super::Foundation:: BOOL ; } :: std :: mem :: transmute ( ReportEventW ( heventlog . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wtype ) , :: std :: mem :: transmute ( wcategory ) , :: std :: mem :: transmute ( dweventid ) , lpusersid . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wnumstrings ) , :: std :: mem :: transmute ( dwdatasize ) , :: std :: mem :: transmute ( lpstrings ) , :: std :: mem :: transmute ( lprawdata ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod UI { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod WindowsAndMessaging { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MESSAGEBOX_RESULT ( pub i32 ) ; pub const IDOK : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 1i32 ) ; pub const IDCANCEL : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 2i32 ) ; pub const IDABORT : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 3i32 ) ; pub const IDRETRY : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 4i32 ) ; pub const IDIGNORE : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 5i32 ) ; pub const IDYES : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 6i32 ) ; pub const IDNO : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 7i32 ) ; pub const IDCLOSE : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 8i32 ) ; pub const IDHELP : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 9i32 ) ; pub const IDTRYAGAIN : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 10i32 ) ; pub const IDCONTINUE : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 11i32 ) ; pub const IDASYNC : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 32001i32 ) ; pub const IDTIMEOUT : MESSAGEBOX_RESULT = MESSAGEBOX_RESULT ( 32000i32 ) ; impl :: std :: convert :: From < i32 > for MESSAGEBOX_RESULT { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MESSAGEBOX_RESULT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MESSAGEBOX_STYLE ( pub u32 ) ; pub const MB_ABORTRETRYIGNORE : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 2u32 ) ; pub const MB_CANCELTRYCONTINUE : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 6u32 ) ; pub const MB_HELP : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 16384u32 ) ; pub const MB_OK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 0u32 ) ; pub const MB_OKCANCEL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 1u32 ) ; pub const MB_RETRYCANCEL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 5u32 ) ; pub const MB_YESNO : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 4u32 ) ; pub const MB_YESNOCANCEL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 3u32 ) ; pub const MB_ICONHAND : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 16u32 ) ; pub const MB_ICONQUESTION : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 32u32 ) ; pub const MB_ICONEXCLAMATION : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 48u32 ) ; pub const MB_ICONASTERISK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 64u32 ) ; pub const MB_USERICON : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 128u32 ) ; pub const MB_ICONWARNING : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 48u32 ) ; pub const MB_ICONERROR : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 16u32 ) ; pub const MB_ICONINFORMATION : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 64u32 ) ; pub const MB_ICONSTOP : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 16u32 ) ; pub const MB_DEFBUTTON1 : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 0u32 ) ; pub const MB_DEFBUTTON2 : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 256u32 ) ; pub const MB_DEFBUTTON3 : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 512u32 ) ; pub const MB_DEFBUTTON4 : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 768u32 ) ; pub const MB_APPLMODAL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 0u32 ) ; pub const MB_SYSTEMMODAL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 4096u32 ) ; pub const MB_TASKMODAL : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 8192u32 ) ; pub const MB_NOFOCUS : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 32768u32 ) ; pub const MB_SETFOREGROUND : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 65536u32 ) ; pub const MB_DEFAULT_DESKTOP_ONLY : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 131072u32 ) ; pub const MB_TOPMOST : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 262144u32 ) ; pub const MB_RIGHT : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 524288u32 ) ; pub const MB_RTLREADING : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 1048576u32 ) ; pub const MB_SERVICE_NOTIFICATION : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 2097152u32 ) ; pub const MB_SERVICE_NOTIFICATION_NT3X : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 262144u32 ) ; pub const MB_TYPEMASK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 15u32 ) ; pub const MB_ICONMASK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 240u32 ) ; pub const MB_DEFMASK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 3840u32 ) ; pub const MB_MODEMASK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 12288u32 ) ; pub const MB_MISCMASK : MESSAGEBOX_STYLE = MESSAGEBOX_STYLE ( 49152u32 ) ; impl :: std :: convert :: From < u32 > for MESSAGEBOX_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MESSAGEBOX_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MESSAGEBOX_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MESSAGEBOX_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MESSAGEBOX_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MESSAGEBOX_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } impl :: std :: ops :: Not for MESSAGEBOX_STYLE { type Output = Self ; fn not ( self ) -> Self { Self ( self . 0 . not ( ) ) } } pub unsafe fn MessageBoxA < 'a , Param0 : :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , Param1 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , Param2 : :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , > ( hwnd : Param0 , lptext : Param1 , lpcaption : Param2 , utype : MESSAGEBOX_STYLE , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="user32" ) ] extern "system" { fn MessageBoxA ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PSTR , lpcaption : super::super::Foundation:: PSTR , utype : MESSAGEBOX_STYLE ) -> MESSAGEBOX_RESULT ; } :: std :: mem :: transmute ( MessageBoxA ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } } } } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking windows-events-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.61s [INFO] running `Command { std: "docker" "inspect" "91f18fdc7d30c020c0b9c5d5f2fc97cfdc7fafa1e8a085520959155a3908aea6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91f18fdc7d30c020c0b9c5d5f2fc97cfdc7fafa1e8a085520959155a3908aea6", kill_on_drop: false }` [INFO] [stdout] 91f18fdc7d30c020c0b9c5d5f2fc97cfdc7fafa1e8a085520959155a3908aea6