[INFO] cloning repository https://github.com/JCBurnside/RustWindowsD3DErrorSample [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JCBurnside/RustWindowsD3DErrorSample" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJCBurnside%2FRustWindowsD3DErrorSample", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJCBurnside%2FRustWindowsD3DErrorSample'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5f997c84703f0f6f074a229b150f74a09ee15d0a [INFO] checking JCBurnside/RustWindowsD3DErrorSample/5f997c84703f0f6f074a229b150f74a09ee15d0a against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJCBurnside%2FRustWindowsD3DErrorSample" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JCBurnside/RustWindowsD3DErrorSample 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] started tweaking git repo https://github.com/JCBurnside/RustWindowsD3DErrorSample [INFO] finished tweaking git repo https://github.com/JCBurnside/RustWindowsD3DErrorSample [INFO] tweaked toml for git repo https://github.com/JCBurnside/RustWindowsD3DErrorSample written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/JCBurnside/RustWindowsD3DErrorSample 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_macros v0.19.0 [INFO] [stderr] Downloaded windows_quote v0.19.0 [INFO] [stderr] Downloaded windows_gen v0.19.0 [INFO] [stderr] Downloaded windows v0.19.0 [INFO] [stderr] Downloaded windows_reader v0.19.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] c5b81229917f96af6172e521ee88a96e20307d3e449b1d1d7459158807672ecf [INFO] running `Command { std: "docker" "start" "-a" "c5b81229917f96af6172e521ee88a96e20307d3e449b1d1d7459158807672ecf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c5b81229917f96af6172e521ee88a96e20307d3e449b1d1d7459158807672ecf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5b81229917f96af6172e521ee88a96e20307d3e449b1d1d7459158807672ecf", kill_on_drop: false }` [INFO] [stdout] c5b81229917f96af6172e521ee88a96e20307d3e449b1d1d7459158807672ecf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] df5c670241c65d2a8d64ced70faf39fc6468a8312932032dffd8a8533e0bd24a [INFO] running `Command { std: "docker" "start" "-a" "df5c670241c65d2a8d64ced70faf39fc6468a8312932032dffd8a8533e0bd24a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling windows_quote v0.19.0 [INFO] [stderr] Compiling windows_reader v0.19.0 [INFO] [stderr] Compiling const-sha1 v0.2.0 [INFO] [stderr] Checking windows_gen v0.19.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling windows_macros v0.19.0 [INFO] [stderr] Compiling windows v0.19.0 [INFO] [stderr] Compiling WindowsD2DErrorSample v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `WindowProc` should have a snake case name [INFO] [stdout] --> src/main.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | unsafe extern "system" fn WindowProc( [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `window_proc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | / D2D1CreateFactory( [INFO] [stdout] 32 | | D2D1_FACTORY_TYPE_SINGLE_THREADED, [INFO] [stdout] 33 | | &::IID, [INFO] [stdout] 34 | | std::ptr::null(), [INFO] [stdout] 35 | | (&mut factory) as *mut _ as *mut *mut c_void, [INFO] [stdout] 36 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 31 | let _ = D2D1CreateFactory( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `WindowProc` should have a snake case name [INFO] [stdout] --> src/main.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | unsafe extern "system" fn WindowProc( [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `window_proc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | / D2D1CreateFactory( [INFO] [stdout] 32 | | D2D1_FACTORY_TYPE_SINGLE_THREADED, [INFO] [stdout] 33 | | &::IID, [INFO] [stdout] 34 | | std::ptr::null(), [INFO] [stdout] 35 | | (&mut factory) as *mut _ as *mut *mut c_void, [INFO] [stdout] 36 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 31 | let _ = D2D1CreateFactory( [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/WindowsD2DErrorSample-113ee0a6732de562/out/windows.rs:1:14392 [INFO] [stdout] | [INFO] [stdout] 1 | ... { if ! value . 0 . 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 Foundation { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Numerics { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct Matrix3x2 { pub M11 : f32 , pub M12 : f32 , pub M21 : f32 , pub M22 : f32 , pub M31 : f32 , pub M32 : f32 } impl Matrix3x2 { } impl :: std :: default :: Default for Matrix3x2 { fn default ( ) -> Self { Self { M11 : 0.0 , M12 : 0.0 , M21 : 0.0 , M22 : 0.0 , M31 : 0.0 , M32 : 0.0 } } } impl :: std :: fmt :: Debug for Matrix3x2 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "Matrix3x2" ) . field ( "M11" , & self . M11 ) . field ( "M12" , & self . M12 ) . field ( "M21" , & self . M21 ) . field ( "M22" , & self . M22 ) . field ( "M31" , & self . M31 ) . field ( "M32" , & self . M32 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for Matrix3x2 { fn eq ( & self , other : & Self ) -> bool { self . M11 == other . M11 && self . M12 == other . M12 && self . M21 == other . M21 && self . M22 == other . M22 && self . M31 == other . M31 && self . M32 == other . M32 } } impl :: std :: cmp :: Eq for Matrix3x2 { } unsafe impl :: windows :: Abi for Matrix3x2 { type Abi = Self ; type DefaultType = Self ; } unsafe impl :: windows :: RuntimeType for Matrix3x2 { const SIGNATURE : :: windows :: ConstBuffer = :: windows :: ConstBuffer :: from_slice ( b"struct(Windows.Foundation.Numerics.Matrix3x2;f4;f4;f4;f4;f4;f4)" ) ; } impl Matrix3x2 { pub fn identity ( ) -> Self { Self { M11 : 1.0 , M12 : 0.0 , M21 : 0.0 , M22 : 1.0 , M31 : 0.0 , M32 : 0.0 , } } pub fn translation ( x : f32 , y : f32 ) -> Self { Self { M11 : 1.0 , M12 : 0.0 , M21 : 0.0 , M22 : 1.0 , M31 : x , M32 : y , } } pub fn rotation ( angle : f32 , x : f32 , y : f32 ) -> Self { let mut matrix = Self :: default ( ) ; unsafe { super :: super :: Win32 :: Graphics :: Direct2D :: D2D1MakeRotateMatrix ( angle , super :: super :: Win32 :: Graphics :: Direct2D :: D2D_POINT_2F { x , y } , & mut matrix ) ; } matrix } fn impl_add ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 + rhs . M11 , M12 : self . M12 + rhs . M12 , M21 : self . M21 + rhs . M21 , M22 : self . M22 + rhs . M22 , M31 : self . M31 + rhs . M31 , M32 : self . M32 + rhs . M32 , } } fn impl_sub ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 - rhs . M11 , M12 : self . M12 - rhs . M12 , M21 : self . M21 - rhs . M21 , M22 : self . M22 - rhs . M22 , M31 : self . M31 - rhs . M31 , M32 : self . M32 - rhs . M32 , } } fn impl_mul ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 * rhs . M11 + self . M12 * rhs . M21 , M12 : self . M11 * rhs . M12 + self . M12 * rhs . M22 , M21 : self . M21 * rhs . M11 + self . M22 * rhs . M21 , M22 : self . M21 * rhs . M12 + self . M22 * rhs . M22 , M31 : self . M31 * rhs . M11 + self . M32 * rhs . M21 + rhs . M31 , M32 : self . M31 * rhs . M12 + self . M32 * rhs . M22 + rhs . M32 , } } fn impl_mul_f32 ( & self , rhs : f32 ) -> Self { Self { M11 : self . M11 * rhs , M12 : self . M12 * rhs , M21 : self . M21 * rhs , M22 : self . M22 * rhs , M31 : self . M31 * rhs , M32 : self . M32 * rhs , } } } impl :: std :: ops :: Add < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_add ( & rhs ) } } impl :: std :: ops :: Add < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_add ( rhs ) } } impl :: std :: ops :: Add < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_add ( & rhs ) } } impl :: std :: ops :: Add < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_add ( rhs ) } } impl :: std :: ops :: Sub < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( & rhs ) } } impl :: std :: ops :: Sub < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( rhs ) } } impl :: std :: ops :: Sub < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( & rhs ) } } impl :: std :: ops :: Sub < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( rhs ) } } impl :: std :: ops :: Mul < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( & rhs ) } } impl :: std :: ops :: Mul < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( rhs ) } } impl :: std :: ops :: Mul < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( & rhs ) } } impl :: std :: ops :: Mul < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( rhs ) } } impl :: std :: ops :: Mul < f32 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : f32 ) -> Matrix3x2 { self . impl_mul_f32 ( rhs ) } } impl :: std :: ops :: Mul < f32 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : f32 ) -> Matrix3x2 { self . impl_mul_f32 ( rhs ) } } } } # [ 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 :: HRESULT :: from_thread ( ) . into ( ) ) } } # [ 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 ( transparent ) ] pub struct HANDLE ( pub isize ) ; impl HANDLE { } impl :: std :: default :: Default for HANDLE { fn default ( ) -> Self { Self ( 0 ) } } impl HANDLE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HANDLE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HANDLE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HANDLE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HANDLE { } unsafe impl :: windows :: Abi for HANDLE { type Abi = Self ; type DefaultType = Self ; } impl HANDLE { pub const INVALID : Self = Self ( - 1 ) ; pub fn is_invalid ( & self ) -> bool { self . 0 == - 1 } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HINSTANCE ( pub isize ) ; impl HINSTANCE { } impl :: std :: default :: Default for HINSTANCE { fn default ( ) -> Self { Self ( 0 ) } } impl HINSTANCE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HINSTANCE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HINSTANCE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HINSTANCE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HINSTANCE { } unsafe impl :: windows :: Abi for HINSTANCE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HWND ( pub isize ) ; impl HWND { } impl :: std :: default :: Default for HWND { fn default ( ) -> Self { Self ( 0 ) } } impl HWND { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HWND { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HWND" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HWND { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HWND { } unsafe impl :: windows :: Abi for HWND { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct LPARAM ( pub isize ) ; impl LPARAM { } impl :: std :: default :: Default for LPARAM { fn default ( ) -> Self { Self ( 0 ) } } impl LPARAM { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for LPARAM { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LPARAM" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LPARAM { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for LPARAM { } unsafe impl :: windows :: Abi for LPARAM { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct LRESULT ( pub i32 ) ; impl LRESULT { } impl :: std :: default :: Default for LRESULT { fn default ( ) -> Self { Self ( 0 ) } } impl LRESULT { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for LRESULT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LRESULT" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LRESULT { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for LRESULT { } unsafe impl :: windows :: Abi for LRESULT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct POINT { pub x : i32 , pub y : i32 } impl POINT { } impl :: std :: default :: Default for POINT { fn default ( ) -> Self { Self { x : 0 , y : 0 } } } impl :: std :: fmt :: Debug for POINT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "POINT" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for POINT { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for POINT { } unsafe impl :: windows :: Abi for POINT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct POINTL { pub x : i32 , pub y : i32 } impl POINTL { } impl :: std :: default :: Default for POINTL { fn default ( ) -> Self { Self { x : 0 , y : 0 } } } impl :: std :: fmt :: Debug for POINTL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "POINTL" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for POINTL { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for POINTL { } unsafe impl :: windows :: Abi for POINTL { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct PSTR ( pub * mut u8 ) ; impl PSTR { pub const NULL : Self = Self ( :: std :: ptr :: null_mut ( ) ) ; pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: cmp :: PartialEq for PSTR { fn eq ( & self , other : & Self ) -> bool { self . 0 == other . 0 } } unsafe impl :: windows :: Abi for PSTR { type Abi = Self ; type DefaultType = Self ; fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . 0 . is_null ( ) { unsafe { let _ = :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for & 'a 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 _ ) ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct PWSTR ( pub * mut u16 ) ; impl PWSTR { pub const NULL : Self = Self ( :: std :: ptr :: null_mut ( ) ) ; pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PWSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: cmp :: PartialEq for PWSTR { fn eq ( & self , other : & Self ) -> bool { self . 0 == other . 0 } } unsafe impl :: windows :: Abi for PWSTR { type Abi = Self ; type DefaultType = Self ; fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . 0 . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & 'a 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 _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct RECT { pub left : i32 , pub top : i32 , pub right : i32 , pub bottom : i32 } impl RECT { } impl :: std :: default :: Default for RECT { fn default ( ) -> Self { Self { left : 0 , top : 0 , right : 0 , bottom : 0 } } } impl :: std :: fmt :: Debug for RECT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "RECT" ) . field ( "left" , & self . left ) . field ( "top" , & self . top ) . field ( "right" , & self . right ) . field ( "bottom" , & self . bottom ) . finish ( ) } } impl :: std :: cmp :: PartialEq for RECT { fn eq ( & self , other : & Self ) -> bool { self . left == other . left && self . top == other . top && self . right == other . right && self . bottom == other . bottom } } impl :: std :: cmp :: Eq for RECT { } unsafe impl :: windows :: Abi for RECT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SIZE { pub cx : i32 , pub cy : i32 } impl SIZE { } impl :: std :: default :: Default for SIZE { fn default ( ) -> Self { Self { cx : 0 , cy : 0 } } } impl :: std :: fmt :: Debug for SIZE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SIZE" ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SIZE { fn eq ( & self , other : & Self ) -> bool { self . cx == other . cx && self . cy == other . cy } } impl :: std :: cmp :: Eq for SIZE { } unsafe impl :: windows :: Abi for SIZE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct WPARAM ( pub usize ) ; impl WPARAM { } impl :: std :: default :: Default for WPARAM { fn default ( ) -> Self { Self ( 0 ) } } impl WPARAM { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for WPARAM { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WPARAM" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WPARAM { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for WPARAM { } unsafe impl :: windows :: Abi for WPARAM { 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 Graphics { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Direct2D { pub unsafe fn D2D1CreateFactory < > ( factorytype : D2D1_FACTORY_TYPE , riid : * const :: windows :: Guid , pfactoryoptions : * const D2D1_FACTORY_OPTIONS , ppifactory : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="d2d1" ) ] extern "system" { fn D2D1CreateFactory ( factorytype : D2D1_FACTORY_TYPE , riid : * const :: windows :: Guid , pfactoryoptions : * const D2D1_FACTORY_OPTIONS , ppifactory : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } D2D1CreateFactory ( :: std :: mem :: transmute ( factorytype ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( pfactoryoptions ) , :: std :: mem :: transmute ( ppifactory ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn D2D1MakeRotateMatrix < 'a , > ( angle : f32 , center : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , matrix : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { # [ cfg ( windows ) ] { # [ link ( name ="d2d1" ) ] extern "system" { fn D2D1MakeRotateMatrix ( angle : f32 , center : D2D_POINT_2F , matrix : * mut super::super::super::Foundation::Numerics:: Matrix3x2 ) ; } D2D1MakeRotateMatrix ( :: std :: mem :: transmute ( angle ) , center . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( matrix ) ) } # [ 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 D2D1_ALPHA_MODE ( pub u32 ) ; pub const D2D1_ALPHA_MODE_UNKNOWN : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 0u32 ) ; pub const D2D1_ALPHA_MODE_PREMULTIPLIED : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 1u32 ) ; pub const D2D1_ALPHA_MODE_STRAIGHT : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 2u32 ) ; pub const D2D1_ALPHA_MODE_IGNORE : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 3u32 ) ; pub const D2D1_ALPHA_MODE_FORCE_DWORD : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_ALPHA_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_ALPHA_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_ALPHA_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_ALPHA_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_ALPHA_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_ALPHA_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_ANTIALIAS_MODE ( pub u32 ) ; pub const D2D1_ANTIALIAS_MODE_PER_PRIMITIVE : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 0u32 ) ; pub const D2D1_ANTIALIAS_MODE_ALIASED : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 1u32 ) ; pub const D2D1_ANTIALIAS_MODE_FORCE_DWORD : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_ANTIALIAS_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_ANTIALIAS_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_ANTIALIAS_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_ANTIALIAS_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_ANTIALIAS_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_ANTIALIAS_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BITMAP_BRUSH_PROPERTIES { pub extendModeX : D2D1_EXTEND_MODE , pub extendModeY : D2D1_EXTEND_MODE , pub interpolationMode : D2D1_BITMAP_INTERPOLATION_MODE } impl D2D1_BITMAP_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_BITMAP_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { extendModeX : :: std :: default :: Default :: default ( ) , extendModeY : :: std :: default :: Default :: default ( ) , interpolationMode : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_BITMAP_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BITMAP_BRUSH_PROPERTIES" ) . field ( "extendModeX" , & self . extendModeX ) . field ( "extendModeY" , & self . extendModeY ) . field ( "interpolationMode" , & self . interpolationMode ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BITMAP_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . extendModeX == other . extendModeX && self . extendModeY == other . extendModeY && self . interpolationMode == other . interpolationMode } } impl :: std :: cmp :: Eq for D2D1_BITMAP_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BITMAP_BRUSH_PROPERTIES { 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 D2D1_BITMAP_INTERPOLATION_MODE ( pub u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 0u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_LINEAR : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 1u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_FORCE_DWORD : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_BITMAP_INTERPOLATION_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_BITMAP_INTERPOLATION_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_BITMAP_INTERPOLATION_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_BITMAP_INTERPOLATION_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_BITMAP_INTERPOLATION_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_BITMAP_INTERPOLATION_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BITMAP_PROPERTIES { pub pixelFormat : D2D1_PIXEL_FORMAT , pub dpiX : f32 , pub dpiY : f32 } impl D2D1_BITMAP_PROPERTIES { } impl :: std :: default :: Default for D2D1_BITMAP_PROPERTIES { fn default ( ) -> Self { Self { pixelFormat : :: std :: default :: Default :: default ( ) , dpiX : 0.0 , dpiY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_BITMAP_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BITMAP_PROPERTIES" ) . field ( "pixelFormat" , & self . pixelFormat ) . field ( "dpiX" , & self . dpiX ) . field ( "dpiY" , & self . dpiY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BITMAP_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . pixelFormat == other . pixelFormat && self . dpiX == other . dpiX && self . dpiY == other . dpiY } } impl :: std :: cmp :: Eq for D2D1_BITMAP_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BITMAP_PROPERTIES { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BRUSH_PROPERTIES { pub opacity : f32 , pub transform : super::super::super::Foundation::Numerics:: Matrix3x2 } impl D2D1_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { opacity : 0.0 , transform : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BRUSH_PROPERTIES" ) . field ( "opacity" , & self . opacity ) . field ( "transform" , & self . transform ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . opacity == other . opacity && self . transform == other . transform } } impl :: std :: cmp :: Eq for D2D1_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BRUSH_PROPERTIES { 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 D2D1_CAP_STYLE ( pub u32 ) ; pub const D2D1_CAP_STYLE_FLAT : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 0u32 ) ; pub const D2D1_CAP_STYLE_SQUARE : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 1u32 ) ; pub const D2D1_CAP_STYLE_ROUND : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 2u32 ) ; pub const D2D1_CAP_STYLE_TRIANGLE : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 3u32 ) ; pub const D2D1_CAP_STYLE_FORCE_DWORD : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_CAP_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_CAP_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_CAP_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_CAP_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_CAP_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_CAP_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_COLOR_F { pub r : f32 , pub g : f32 , pub b : f32 , pub a : f32 } impl D2D1_COLOR_F { } impl :: std :: default :: Default for D2D1_COLOR_F { fn default ( ) -> Self { Self { r : 0.0 , g : 0.0 , b : 0.0 , a : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_COLOR_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_COLOR_F" ) . field ( "r" , & self . r ) . field ( "g" , & self . g ) . field ( "b" , & self . b ) . field ( "a" , & self . a ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_COLOR_F { fn eq ( & self , other : & Self ) -> bool { self . r == other . r && self . g == other . g && self . b == other . b && self . a == other . a } } impl :: std :: cmp :: Eq for D2D1_COLOR_F { } unsafe impl :: windows :: Abi for D2D1_COLOR_F { 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 D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( pub u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 0u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 1u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_FORCE_DWORD : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_DASH_STYLE ( pub u32 ) ; pub const D2D1_DASH_STYLE_SOLID : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 0u32 ) ; pub const D2D1_DASH_STYLE_DASH : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 1u32 ) ; pub const D2D1_DASH_STYLE_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 2u32 ) ; pub const D2D1_DASH_STYLE_DASH_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 3u32 ) ; pub const D2D1_DASH_STYLE_DASH_DOT_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 4u32 ) ; pub const D2D1_DASH_STYLE_CUSTOM : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 5u32 ) ; pub const D2D1_DASH_STYLE_FORCE_DWORD : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DASH_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DASH_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DASH_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DASH_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DASH_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DASH_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_DEBUG_LEVEL ( pub u32 ) ; pub const D2D1_DEBUG_LEVEL_NONE : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 0u32 ) ; pub const D2D1_DEBUG_LEVEL_ERROR : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 1u32 ) ; pub const D2D1_DEBUG_LEVEL_WARNING : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 2u32 ) ; pub const D2D1_DEBUG_LEVEL_INFORMATION : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 3u32 ) ; pub const D2D1_DEBUG_LEVEL_FORCE_DWORD : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DEBUG_LEVEL { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DEBUG_LEVEL { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DEBUG_LEVEL { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DEBUG_LEVEL { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DEBUG_LEVEL { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DEBUG_LEVEL { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_DRAWING_STATE_DESCRIPTION { pub antialiasMode : D2D1_ANTIALIAS_MODE , pub textAntialiasMode : D2D1_TEXT_ANTIALIAS_MODE , pub tag1 : u64 , pub tag2 : u64 , pub transform : super::super::super::Foundation::Numerics:: Matrix3x2 } impl D2D1_DRAWING_STATE_DESCRIPTION { } impl :: std :: default :: Default for D2D1_DRAWING_STATE_DESCRIPTION { fn default ( ) -> Self { Self { antialiasMode : :: std :: default :: Default :: default ( ) , textAntialiasMode : :: std :: default :: Default :: default ( ) , tag1 : 0 , tag2 : 0 , transform : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_DRAWING_STATE_DESCRIPTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_DRAWING_STATE_DESCRIPTION" ) . field ( "antialiasMode" , & self . antialiasMode ) . field ( "textAntialiasMode" , & self . textAntialiasMode ) . field ( "tag1" , & self . tag1 ) . field ( "tag2" , & self . tag2 ) . field ( "transform" , & self . transform ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_DRAWING_STATE_DESCRIPTION { fn eq ( & self , other : & Self ) -> bool { self . antialiasMode == other . antialiasMode && self . textAntialiasMode == other . textAntialiasMode && self . tag1 == other . tag1 && self . tag2 == other . tag2 && self . transform == other . transform } } impl :: std :: cmp :: Eq for D2D1_DRAWING_STATE_DESCRIPTION { } unsafe impl :: windows :: Abi for D2D1_DRAWING_STATE_DESCRIPTION { 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 D2D1_DRAW_TEXT_OPTIONS ( pub u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_NO_SNAP : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 1u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_CLIP : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 2u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 4u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_DISABLE_COLOR_BITMAP_SNAPPING : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 8u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_NONE : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 0u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_FORCE_DWORD : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DRAW_TEXT_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DRAW_TEXT_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DRAW_TEXT_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DRAW_TEXT_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DRAW_TEXT_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DRAW_TEXT_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_ELLIPSE { pub point : D2D_POINT_2F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_ELLIPSE { } impl :: std :: default :: Default for D2D1_ELLIPSE { fn default ( ) -> Self { Self { point : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_ELLIPSE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_ELLIPSE" ) . field ( "point" , & self . point ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_ELLIPSE { fn eq ( & self , other : & Self ) -> bool { self . point == other . point && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_ELLIPSE { } unsafe impl :: windows :: Abi for D2D1_ELLIPSE { 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 D2D1_EXTEND_MODE ( pub u32 ) ; pub const D2D1_EXTEND_MODE_CLAMP : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 0u32 ) ; pub const D2D1_EXTEND_MODE_WRAP : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 1u32 ) ; pub const D2D1_EXTEND_MODE_MIRROR : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 2u32 ) ; pub const D2D1_EXTEND_MODE_FORCE_DWORD : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_EXTEND_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_EXTEND_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_EXTEND_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_EXTEND_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_EXTEND_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_EXTEND_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_FACTORY_OPTIONS { pub debugLevel : D2D1_DEBUG_LEVEL } impl D2D1_FACTORY_OPTIONS { } impl :: std :: default :: Default for D2D1_FACTORY_OPTIONS { fn default ( ) -> Self { Self { debugLevel : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_FACTORY_OPTIONS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_FACTORY_OPTIONS" ) . field ( "debugLevel" , & self . debugLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_FACTORY_OPTIONS { fn eq ( & self , other : & Self ) -> bool { self . debugLevel == other . debugLevel } } impl :: std :: cmp :: Eq for D2D1_FACTORY_OPTIONS { } unsafe impl :: windows :: Abi for D2D1_FACTORY_OPTIONS { 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 D2D1_FACTORY_TYPE ( pub u32 ) ; pub const D2D1_FACTORY_TYPE_SINGLE_THREADED : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 0u32 ) ; pub const D2D1_FACTORY_TYPE_MULTI_THREADED : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 1u32 ) ; pub const D2D1_FACTORY_TYPE_FORCE_DWORD : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FACTORY_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FACTORY_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FACTORY_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FACTORY_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FACTORY_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FACTORY_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_FEATURE_LEVEL ( pub u32 ) ; pub const D2D1_FEATURE_LEVEL_DEFAULT : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 0u32 ) ; pub const D2D1_FEATURE_LEVEL_9 : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 37120u32 ) ; pub const D2D1_FEATURE_LEVEL_10 : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 40960u32 ) ; pub const D2D1_FEATURE_LEVEL_FORCE_DWORD : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FEATURE_LEVEL { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FEATURE_LEVEL { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FEATURE_LEVEL { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FEATURE_LEVEL { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FEATURE_LEVEL { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FEATURE_LEVEL { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_FILL_MODE ( pub u32 ) ; pub const D2D1_FILL_MODE_ALTERNATE : D2D1_FILL_MODE = D2D1_FILL_MODE ( 0u32 ) ; pub const D2D1_FILL_MODE_WINDING : D2D1_FILL_MODE = D2D1_FILL_MODE ( 1u32 ) ; pub const D2D1_FILL_MODE_FORCE_DWORD : D2D1_FILL_MODE = D2D1_FILL_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FILL_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FILL_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FILL_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FILL_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FILL_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FILL_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_GAMMA ( pub u32 ) ; pub const D2D1_GAMMA_2_2 : D2D1_GAMMA = D2D1_GAMMA ( 0u32 ) ; pub const D2D1_GAMMA_1_0 : D2D1_GAMMA = D2D1_GAMMA ( 1u32 ) ; pub const D2D1_GAMMA_FORCE_DWORD : D2D1_GAMMA = D2D1_GAMMA ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_GAMMA { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_GAMMA { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_GAMMA { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_GAMMA { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_GAMMA { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_GAMMA { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_GRADIENT_STOP { pub position : f32 , pub color : D2D1_COLOR_F } impl D2D1_GRADIENT_STOP { } impl :: std :: default :: Default for D2D1_GRADIENT_STOP { fn default ( ) -> Self { Self { position : 0.0 , color : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_GRADIENT_STOP { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_GRADIENT_STOP" ) . field ( "position" , & self . position ) . field ( "color" , & self . color ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_GRADIENT_STOP { fn eq ( & self , other : & Self ) -> bool { self . position == other . position && self . color == other . color } } impl :: std :: cmp :: Eq for D2D1_GRADIENT_STOP { } unsafe impl :: windows :: Abi for D2D1_GRADIENT_STOP { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_HWND_RENDER_TARGET_PROPERTIES { pub hwnd : super::super::Foundation:: HWND , pub pixelSize : D2D_SIZE_U , pub presentOptions : D2D1_PRESENT_OPTIONS } impl D2D1_HWND_RENDER_TARGET_PROPERTIES { } impl :: std :: default :: Default for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , pixelSize : :: std :: default :: Default :: default ( ) , presentOptions : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_HWND_RENDER_TARGET_PROPERTIES" ) . field ( "hwnd" , & self . hwnd ) . field ( "pixelSize" , & self . pixelSize ) . field ( "presentOptions" , & self . presentOptions ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . pixelSize == other . pixelSize && self . presentOptions == other . presentOptions } } impl :: std :: cmp :: Eq for D2D1_HWND_RENDER_TARGET_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_HWND_RENDER_TARGET_PROPERTIES { 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 D2D1_LAYER_OPTIONS ( pub u32 ) ; pub const D2D1_LAYER_OPTIONS_NONE : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 0u32 ) ; pub const D2D1_LAYER_OPTIONS_INITIALIZE_FOR_CLEARTYPE : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 1u32 ) ; pub const D2D1_LAYER_OPTIONS_FORCE_DWORD : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_LAYER_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_LAYER_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_LAYER_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_LAYER_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_LAYER_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_LAYER_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct D2D1_LAYER_PARAMETERS { pub contentBounds : D2D_RECT_F , pub geometricMask : :: std :: option :: Option < ID2D1Geometry > , pub maskAntialiasMode : D2D1_ANTIALIAS_MODE , pub maskTransform : super::super::super::Foundation::Numerics:: Matrix3x2 , pub opacity : f32 , pub opacityBrush : :: std :: option :: Option < ID2D1Brush > , pub layerOptions : D2D1_LAYER_OPTIONS } impl D2D1_LAYER_PARAMETERS { } impl :: std :: default :: Default for D2D1_LAYER_PARAMETERS { fn default ( ) -> Self { Self { contentBounds : :: std :: default :: Default :: default ( ) , geometricMask : :: std :: default :: Default :: default ( ) , maskAntialiasMode : :: std :: default :: Default :: default ( ) , maskTransform : :: std :: default :: Default :: default ( ) , opacity : 0.0 , opacityBrush : :: std :: default :: Default :: default ( ) , layerOptions : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_LAYER_PARAMETERS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_LAYER_PARAMETERS" ) . field ( "contentBounds" , & self . contentBounds ) . field ( "geometricMask" , & self . geometricMask ) . field ( "maskAntialiasMode" , & self . maskAntialiasMode ) . field ( "maskTransform" , & self . maskTransform ) . field ( "opacity" , & self . opacity ) . field ( "opacityBrush" , & self . opacityBrush ) . field ( "layerOptions" , & self . layerOptions ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_LAYER_PARAMETERS { fn eq ( & self , other : & Self ) -> bool { self . contentBounds == other . contentBounds && self . geometricMask == other . geometricMask && self . maskAntialiasMode == other . maskAntialiasMode && self . maskTransform == other . maskTransform && self . opacity == other . opacity && self . opacityBrush == other . opacityBrush && self . layerOptions == other . layerOptions } } impl :: std :: cmp :: Eq for D2D1_LAYER_PARAMETERS { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct D2D1_LAYER_PARAMETERS_abi { pub contentBounds : D2D_RECT_F , pub geometricMask : :: windows :: RawPtr , pub maskAntialiasMode : D2D1_ANTIALIAS_MODE , pub maskTransform : super::super::super::Foundation::Numerics:: Matrix3x2 , pub opacity : f32 , pub opacityBrush : :: windows :: RawPtr , pub layerOptions : D2D1_LAYER_OPTIONS } unsafe impl :: windows :: Abi for D2D1_LAYER_PARAMETERS { type Abi = D2D1_LAYER_PARAMETERS_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { pub startPoint : D2D_POINT_2F , pub endPoint : D2D_POINT_2F } impl D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { startPoint : :: std :: default :: Default :: default ( ) , endPoint : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES" ) . field ( "startPoint" , & self . startPoint ) . field ( "endPoint" , & self . endPoint ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . startPoint == other . startPoint && self . endPoint == other . endPoint } } impl :: std :: cmp :: Eq for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { 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 D2D1_LINE_JOIN ( pub u32 ) ; pub const D2D1_LINE_JOIN_MITER : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 0u32 ) ; pub const D2D1_LINE_JOIN_BEVEL : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 1u32 ) ; pub const D2D1_LINE_JOIN_ROUND : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 2u32 ) ; pub const D2D1_LINE_JOIN_MITER_OR_BEVEL : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 3u32 ) ; pub const D2D1_LINE_JOIN_FORCE_DWORD : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_LINE_JOIN { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_LINE_JOIN { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_LINE_JOIN { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_LINE_JOIN { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_LINE_JOIN { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_LINE_JOIN { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_OPACITY_MASK_CONTENT ( pub u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_GRAPHICS : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 0u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 1u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 2u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_FORCE_DWORD : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_OPACITY_MASK_CONTENT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_OPACITY_MASK_CONTENT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_OPACITY_MASK_CONTENT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_OPACITY_MASK_CONTENT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_OPACITY_MASK_CONTENT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_OPACITY_MASK_CONTENT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_PIXEL_FORMAT { pub format : super::Dxgi:: DXGI_FORMAT , pub alphaMode : D2D1_ALPHA_MODE } impl D2D1_PIXEL_FORMAT { } impl :: std :: default :: Default for D2D1_PIXEL_FORMAT { fn default ( ) -> Self { Self { format : :: std :: default :: Default :: default ( ) , alphaMode : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_PIXEL_FORMAT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_PIXEL_FORMAT" ) . field ( "format" , & self . format ) . field ( "alphaMode" , & self . alphaMode ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_PIXEL_FORMAT { fn eq ( & self , other : & Self ) -> bool { self . format == other . format && self . alphaMode == other . alphaMode } } impl :: std :: cmp :: Eq for D2D1_PIXEL_FORMAT { } unsafe impl :: windows :: Abi for D2D1_PIXEL_FORMAT { 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 D2D1_PRESENT_OPTIONS ( pub u32 ) ; pub const D2D1_PRESENT_OPTIONS_NONE : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 0u32 ) ; pub const D2D1_PRESENT_OPTIONS_RETAIN_CONTENTS : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 1u32 ) ; pub const D2D1_PRESENT_OPTIONS_IMMEDIATELY : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 2u32 ) ; pub const D2D1_PRESENT_OPTIONS_FORCE_DWORD : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_PRESENT_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_PRESENT_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_PRESENT_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_PRESENT_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_PRESENT_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_PRESENT_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { pub center : D2D_POINT_2F , pub gradientOriginOffset : D2D_POINT_2F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { center : :: std :: default :: Default :: default ( ) , gradientOriginOffset : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES" ) . field ( "center" , & self . center ) . field ( "gradientOriginOffset" , & self . gradientOriginOffset ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . center == other . center && self . gradientOriginOffset == other . gradientOriginOffset && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_RENDER_TARGET_PROPERTIES { pub r#type : D2D1_RENDER_TARGET_TYPE , pub pixelFormat : D2D1_PIXEL_FORMAT , pub dpiX : f32 , pub dpiY : f32 , pub usage : D2D1_RENDER_TARGET_USAGE , pub minLevel : D2D1_FEATURE_LEVEL } impl D2D1_RENDER_TARGET_PROPERTIES { } impl :: std :: default :: Default for D2D1_RENDER_TARGET_PROPERTIES { fn default ( ) -> Self { Self { r#type : :: std :: default :: Default :: default ( ) , pixelFormat : :: std :: default :: Default :: default ( ) , dpiX : 0.0 , dpiY : 0.0 , usage : :: std :: default :: Default :: default ( ) , minLevel : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_RENDER_TARGET_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_RENDER_TARGET_PROPERTIES" ) . field ( "r#type" , & self . r#type ) . field ( "pixelFormat" , & self . pixelFormat ) . field ( "dpiX" , & self . dpiX ) . field ( "dpiY" , & self . dpiY ) . field ( "usage" , & self . usage ) . field ( "minLevel" , & self . minLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_RENDER_TARGET_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . r#type == other . r#type && self . pixelFormat == other . pixelFormat && self . dpiX == other . dpiX && self . dpiY == other . dpiY && self . usage == other . usage && self . minLevel == other . minLevel } } impl :: std :: cmp :: Eq for D2D1_RENDER_TARGET_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_PROPERTIES { 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 D2D1_RENDER_TARGET_TYPE ( pub u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_DEFAULT : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 0u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_SOFTWARE : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 1u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_HARDWARE : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 2u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_FORCE_DWORD : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_RENDER_TARGET_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_RENDER_TARGET_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_RENDER_TARGET_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_RENDER_TARGET_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_RENDER_TARGET_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_RENDER_TARGET_USAGE ( pub u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_NONE : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 0u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_FORCE_BITMAP_REMOTING : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 1u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 2u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_FORCE_DWORD : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_RENDER_TARGET_USAGE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_USAGE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_RENDER_TARGET_USAGE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_RENDER_TARGET_USAGE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_RENDER_TARGET_USAGE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_RENDER_TARGET_USAGE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_ROUNDED_RECT { pub rect : D2D_RECT_F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_ROUNDED_RECT { } impl :: std :: default :: Default for D2D1_ROUNDED_RECT { fn default ( ) -> Self { Self { rect : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_ROUNDED_RECT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_ROUNDED_RECT" ) . field ( "rect" , & self . rect ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_ROUNDED_RECT { fn eq ( & self , other : & Self ) -> bool { self . rect == other . rect && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_ROUNDED_RECT { } unsafe impl :: windows :: Abi for D2D1_ROUNDED_RECT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_STROKE_STYLE_PROPERTIES { pub startCap : D2D1_CAP_STYLE , pub endCap : D2D1_CAP_STYLE , pub dashCap : D2D1_CAP_STYLE , pub lineJoin : D2D1_LINE_JOIN , pub miterLimit : f32 , pub dashStyle : D2D1_DASH_STYLE , pub dashOffset : f32 } impl D2D1_STROKE_STYLE_PROPERTIES { } impl :: std :: default :: Default for D2D1_STROKE_STYLE_PROPERTIES { fn default ( ) -> Self { Self { startCap : :: std :: default :: Default :: default ( ) , endCap : :: std :: default :: Default :: default ( ) , dashCap : :: std :: default :: Default :: default ( ) , lineJoin : :: std :: default :: Default :: default ( ) , miterLimit : 0.0 , dashStyle : :: std :: default :: Default :: default ( ) , dashOffset : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_STROKE_STYLE_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_STROKE_STYLE_PROPERTIES" ) . field ( "startCap" , & self . startCap ) . field ( "endCap" , & self . endCap ) . field ( "dashCap" , & self . dashCap ) . field ( "lineJoin" , & self . lineJoin ) . field ( "miterLimit" , & self . miterLimit ) . field ( "dashStyle" , & self . dashStyle ) . field ( "dashOffset" , & self . dashOffset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_STROKE_STYLE_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . startCap == other . startCap && self . endCap == other . endCap && self . dashCap == other . dashCap && self . lineJoin == other . lineJoin && self . miterLimit == other . miterLimit && self . dashStyle == other . dashStyle && self . dashOffset == other . dashOffset } } impl :: std :: cmp :: Eq for D2D1_STROKE_STYLE_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_STROKE_STYLE_PROPERTIES { 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 D2D1_TEXT_ANTIALIAS_MODE ( pub u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_DEFAULT : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 0u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 1u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 2u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_ALIASED : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 3u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_FORCE_DWORD : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_TEXT_ANTIALIAS_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_TEXT_ANTIALIAS_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_TEXT_ANTIALIAS_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_TEXT_ANTIALIAS_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_TEXT_ANTIALIAS_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_TEXT_ANTIALIAS_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_WINDOW_STATE ( pub u32 ) ; pub const D2D1_WINDOW_STATE_NONE : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 0u32 ) ; pub const D2D1_WINDOW_STATE_OCCLUDED : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 1u32 ) ; pub const D2D1_WINDOW_STATE_FORCE_DWORD : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_WINDOW_STATE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_WINDOW_STATE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_WINDOW_STATE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_WINDOW_STATE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_WINDOW_STATE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_WINDOW_STATE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_POINT_2F { pub x : f32 , pub y : f32 } impl D2D_POINT_2F { } impl :: std :: default :: Default for D2D_POINT_2F { fn default ( ) -> Self { Self { x : 0.0 , y : 0.0 } } } impl :: std :: fmt :: Debug for D2D_POINT_2F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_POINT_2F" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_POINT_2F { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for D2D_POINT_2F { } unsafe impl :: windows :: Abi for D2D_POINT_2F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_RECT_F { pub left : f32 , pub top : f32 , pub right : f32 , pub bottom : f32 } impl D2D_RECT_F { } impl :: std :: default :: Default for D2D_RECT_F { fn default ( ) -> Self { Self { left : 0.0 , top : 0.0 , right : 0.0 , bottom : 0.0 } } } impl :: std :: fmt :: Debug for D2D_RECT_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_RECT_F" ) . field ( "left" , & self . left ) . field ( "top" , & self . top ) . field ( "right" , & self . right ) . field ( "bottom" , & self . bottom ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_RECT_F { fn eq ( & self , other : & Self ) -> bool { self . left == other . left && self . top == other . top && self . right == other . right && self . bottom == other . bottom } } impl :: std :: cmp :: Eq for D2D_RECT_F { } unsafe impl :: windows :: Abi for D2D_RECT_F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_SIZE_F { pub width : f32 , pub height : f32 } impl D2D_SIZE_F { } impl :: std :: default :: Default for D2D_SIZE_F { fn default ( ) -> Self { Self { width : 0.0 , height : 0.0 } } } impl :: std :: fmt :: Debug for D2D_SIZE_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_SIZE_F" ) . field ( "width" , & self . width ) . field ( "height" , & self . height ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_SIZE_F { fn eq ( & self , other : & Self ) -> bool { self . width == other . width && self . height == other . height } } impl :: std :: cmp :: Eq for D2D_SIZE_F { } unsafe impl :: windows :: Abi for D2D_SIZE_F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_SIZE_U { pub width : u32 , pub height : u32 } impl D2D_SIZE_U { } impl :: std :: default :: Default for D2D_SIZE_U { fn default ( ) -> Self { Self { width : 0 , height : 0 } } } impl :: std :: fmt :: Debug for D2D_SIZE_U { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_SIZE_U" ) . field ( "width" , & self . width ) . field ( "height" , & self . height ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_SIZE_U { fn eq ( & self , other : & Self ) -> bool { self . width == other . width && self . height == other . height } } impl :: std :: cmp :: Eq for D2D_SIZE_U { } unsafe impl :: windows :: Abi for D2D_SIZE_U { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Bitmap ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Bitmap { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2720620631 ,59970 ,16537 , [ 152 ,59 ,83 ,159 ,182 ,80 ,84 ,38 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1BitmapBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1BitmapBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420522 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1BitmapRenderTarget ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1BitmapRenderTarget { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420501 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Brush ( :: windows :: IUnknown ) ; impl ID2D1Brush { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn SetOpacity < > ( & self , opacity : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( opacity ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetOpacity < > ( & self , ) -> f32 { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } } unsafe impl :: windows :: Interface for ID2D1Brush { type Vtable = ID2D1Brush_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420520 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1Brush > for :: windows :: IUnknown { fn from ( value : ID2D1Brush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Brush > for :: windows :: IUnknown { fn from ( value : & ID2D1Brush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1Brush > for ID2D1Resource { fn from ( value : ID2D1Brush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Brush > for ID2D1Resource { fn from ( value : & ID2D1Brush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Brush_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacity : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> f32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1DCRenderTarget ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1DCRenderTarget { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 475118692 ,56929 ,18173 , [ 152 ,153 ,99 ,165 ,216 ,240 ,57 ,80 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1DrawingStateBlock ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1DrawingStateBlock { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 676359737 ,60406 ,18081 , [ 187 ,71 ,253 ,133 ,86 ,90 ,185 ,87 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1EllipseGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1EllipseGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420516 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Factory ( :: windows :: IUnknown ) ; impl ID2D1Factory { pub unsafe fn ReloadSystemMetrics < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDesktopDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn CreateRectangleGeometry < > ( & self , rectangle : * const D2D_RECT_F , ) -> :: windows :: Result < ID2D1RectangleGeometry > { let mut result__ : < ID2D1RectangleGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rectangle ) , & mut result__ ) . from_abi :: < ID2D1RectangleGeometry > ( result__ ) } pub unsafe fn CreateRoundedRectangleGeometry < > ( & self , roundedrectangle : * const D2D1_ROUNDED_RECT , ) -> :: windows :: Result < ID2D1RoundedRectangleGeometry > { let mut result__ : < ID2D1RoundedRectangleGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrectangle ) , & mut result__ ) . from_abi :: < ID2D1RoundedRectangleGeometry > ( result__ ) } pub unsafe fn CreateEllipseGeometry < > ( & self , ellipse : * const D2D1_ELLIPSE , ) -> :: windows :: Result < ID2D1EllipseGeometry > { let mut result__ : < ID2D1EllipseGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , & mut result__ ) . from_abi :: < ID2D1EllipseGeometry > ( result__ ) } pub unsafe fn CreateGeometryGroup < > ( & self , fillmode : D2D1_FILL_MODE , geometries : * mut :: std :: option :: Option < ID2D1Geometry > , geometriescount : u32 , ) -> :: windows :: Result < ID2D1GeometryGroup > { let mut result__ : < ID2D1GeometryGroup as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( fillmode ) , :: std :: mem :: transmute ( geometries ) , :: std :: mem :: transmute ( geometriescount ) , & mut result__ ) . from_abi :: < ID2D1GeometryGroup > ( result__ ) } pub unsafe fn CreateTransformedGeometry < 'a , > ( & self , sourcegeometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) -> :: windows :: Result < ID2D1TransformedGeometry > { let mut result__ : < ID2D1TransformedGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , sourcegeometry . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( transform ) , & mut result__ ) . from_abi :: < ID2D1TransformedGeometry > ( result__ ) } pub unsafe fn CreatePathGeometry < > ( & self , ) -> :: windows :: Result < ID2D1PathGeometry > { let mut result__ : < ID2D1PathGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1PathGeometry > ( result__ ) } pub unsafe fn CreateStrokeStyle < > ( & self , strokestyleproperties : * const D2D1_STROKE_STYLE_PROPERTIES , dashes : * const f32 , dashescount : u32 , ) -> :: windows :: Result < ID2D1StrokeStyle > { let mut result__ : < ID2D1StrokeStyle as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( strokestyleproperties ) , :: std :: mem :: transmute ( dashes ) , :: std :: mem :: transmute ( dashescount ) , & mut result__ ) . from_abi :: < ID2D1StrokeStyle > ( result__ ) } pub unsafe fn CreateDrawingStateBlock < 'a , > ( & self , drawingstatedescription : * const D2D1_DRAWING_STATE_DESCRIPTION , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) -> :: windows :: Result < ID2D1DrawingStateBlock > { let mut result__ : < ID2D1DrawingStateBlock as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( drawingstatedescription ) , textrenderingparams . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1DrawingStateBlock > ( result__ ) } pub unsafe fn CreateWicBitmapRenderTarget < 'a , > ( & self , target : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmap > , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1RenderTarget > { let mut result__ : < ID2D1RenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , target . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1RenderTarget > ( result__ ) } pub unsafe fn CreateHwndRenderTarget < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , hwndrendertargetproperties : * const D2D1_HWND_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1HwndRenderTarget > { let mut result__ : < ID2D1HwndRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , :: std :: mem :: transmute ( hwndrendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1HwndRenderTarget > ( result__ ) } pub unsafe fn CreateDxgiSurfaceRenderTarget < 'a , > ( & self , dxgisurface : impl :: windows :: IntoParam < 'a , super::Dxgi:: IDXGISurface > , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1RenderTarget > { let mut result__ : < ID2D1RenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , dxgisurface . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1RenderTarget > ( result__ ) } pub unsafe fn CreateDCRenderTarget < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1DCRenderTarget > { let mut result__ : < ID2D1DCRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1DCRenderTarget > ( result__ ) } } unsafe impl :: windows :: Interface for ID2D1Factory { type Vtable = ID2D1Factory_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 102048327 ,28496 ,18010 , [ 146 ,69 ,17 ,139 ,253 ,59 ,96 ,7 ] , ) ; } impl :: std :: convert :: From < ID2D1Factory > for :: windows :: IUnknown { fn from ( value : ID2D1Factory ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Factory > for :: windows :: IUnknown { fn from ( value : & ID2D1Factory ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Factory { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Factory { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Factory_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rectangle : * const D2D_RECT_F , rectanglegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrectangle : * const D2D1_ROUNDED_RECT , roundedrectanglegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , ellipsegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , fillmode : D2D1_FILL_MODE , geometries : * mut :: windows :: RawPtr , geometriescount : u32 , geometrygroup : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sourcegeometry : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , transformedgeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pathgeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , strokestyleproperties : * const D2D1_STROKE_STYLE_PROPERTIES , dashes : * const f32 , dashescount : u32 , strokestyle : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstatedescription : * const D2D1_DRAWING_STATE_DESCRIPTION , textrenderingparams : :: windows :: RawPtr , drawingstateblock : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , rendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , hwndrendertargetproperties : * const D2D1_HWND_RENDER_TARGET_PROPERTIES , hwndrendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dxgisurface : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , rendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , dcrendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Geometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Geometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420513 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1GeometryGroup ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1GeometryGroup { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420518 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1GradientStopCollection ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1GradientStopCollection { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420519 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1HwndRenderTarget ( :: windows :: IUnknown ) ; impl ID2D1HwndRenderTarget { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn CreateBitmap < 'a , > ( & self , size : impl :: windows :: IntoParam < 'a , D2D_SIZE_U > , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , size . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( srcdata ) , :: std :: mem :: transmute ( pitch ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateBitmapFromWicBitmap < 'a , > ( & self , wicbitmapsource : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmapSource > , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , wicbitmapsource . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateSharedBitmap < > ( & self , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: std :: option :: Option < ID2D1Bitmap > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( data ) , :: std :: mem :: transmute ( bitmapproperties ) , :: std :: mem :: transmute ( bitmap ) , ) . ok ( ) } pub unsafe fn CreateBitmapBrush < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1BitmapBrush > { let mut result__ : < ID2D1BitmapBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1BitmapBrush > ( result__ ) } pub unsafe fn CreateSolidColorBrush < > ( & self , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1SolidColorBrush > { let mut result__ : < ID2D1SolidColorBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1SolidColorBrush > ( result__ ) } pub unsafe fn CreateGradientStopCollection < > ( & self , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , ) -> :: windows :: Result < ID2D1GradientStopCollection > { let mut result__ : < ID2D1GradientStopCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( gradientstops ) , :: std :: mem :: transmute ( gradientstopscount ) , :: std :: mem :: transmute ( colorinterpolationgamma ) , :: std :: mem :: transmute ( extendmode ) , & mut result__ ) . from_abi :: < ID2D1GradientStopCollection > ( result__ ) } pub unsafe fn CreateLinearGradientBrush < 'a , > ( & self , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1LinearGradientBrush > { let mut result__ : < ID2D1LinearGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( lineargradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1LinearGradientBrush > ( result__ ) } pub unsafe fn CreateRadialGradientBrush < 'a , > ( & self , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1RadialGradientBrush > { let mut result__ : < ID2D1RadialGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( radialgradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1RadialGradientBrush > ( result__ ) } pub unsafe fn CreateCompatibleRenderTarget < > ( & self , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , ) -> :: windows :: Result < ID2D1BitmapRenderTarget > { let mut result__ : < ID2D1BitmapRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( desiredsize ) , :: std :: mem :: transmute ( desiredpixelsize ) , :: std :: mem :: transmute ( desiredformat ) , :: std :: mem :: transmute ( options ) , & mut result__ ) . from_abi :: < ID2D1BitmapRenderTarget > ( result__ ) } pub unsafe fn CreateLayer < > ( & self , size : * const D2D_SIZE_F , ) -> :: windows :: Result < ID2D1Layer > { let mut result__ : < ID2D1Layer as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( size ) , & mut result__ ) . from_abi :: < ID2D1Layer > ( result__ ) } pub unsafe fn CreateMesh < > ( & self , ) -> :: windows :: Result < ID2D1Mesh > { let mut result__ : < ID2D1Mesh as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1Mesh > ( result__ ) } pub unsafe fn DrawLine < 'a , > ( & self , point0 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , point1 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , point0 . into_param ( ) . abi ( ) , point1 . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , opacitybrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , opacitybrush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillMesh < 'a , > ( & self , mesh : impl :: windows :: IntoParam < 'a , ID2D1Mesh > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , mesh . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillOpacityMask < 'a , > ( & self , opacitymask : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , opacitymask . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( content ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawBitmap < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( opacity ) , :: std :: mem :: transmute ( interpolationmode ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawText < 'a , > ( & self , string : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , stringlength : u32 , textformat : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextFormat > , layoutrect : * const D2D_RECT_F , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , string . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( stringlength ) , textformat . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( layoutrect ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn DrawTextLayout < 'a , > ( & self , origin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , textlayout : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextLayout > , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , ) { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , origin . into_param ( ) . abi ( ) , textlayout . into_param ( ) . abi ( ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , ) } pub unsafe fn DrawGlyphRun < 'a , > ( & self , baselineorigin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN , foregroundbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , baselineorigin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( glyphrun ) , foregroundbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetAntialiasMode < > ( & self , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn GetAntialiasMode < > ( & self , ) -> D2D1_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextAntialiasMode < > ( & self , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textantialiasmode ) , ) } pub unsafe fn GetTextAntialiasMode < > ( & self , ) -> D2D1_TEXT_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextRenderingParams < 'a , > ( & self , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , textrenderingparams . into_param ( ) . abi ( ) , ) } pub unsafe fn GetTextRenderingParams < > ( & self , textrenderingparams : * mut :: std :: option :: Option < super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textrenderingparams ) , ) } pub unsafe fn SetTags < > ( & self , tag1 : u64 , tag2 : u64 , ) { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn GetTags < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn PushLayer < 'a , > ( & self , layerparameters : * const D2D1_LAYER_PARAMETERS , layer : impl :: windows :: IntoParam < 'a , ID2D1Layer > , ) { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( layerparameters ) , layer . into_param ( ) . abi ( ) , ) } pub unsafe fn PopLayer < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Flush < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn SaveDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn RestoreDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn PushAxisAlignedClip < > ( & self , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cliprect ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn PopAxisAlignedClip < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Clear < > ( & self , clearcolor : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( clearcolor ) , ) } pub unsafe fn BeginDraw < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn EndDraw < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn GetPixelFormat < > ( & self , ) -> D2D1_PIXEL_FORMAT { let mut result__ : D2D1_PIXEL_FORMAT = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn SetDpi < > ( & self , dpix : f32 , dpiy : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetSize < > ( & self , ) -> D2D_SIZE_F { let mut result__ : D2D_SIZE_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetPixelSize < > ( & self , ) -> D2D_SIZE_U { let mut result__ : D2D_SIZE_U = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetMaximumBitmapSize < > ( & self , ) -> u32 { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn IsSupported < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , ) } pub unsafe fn CheckWindowState < > ( & self , ) -> D2D1_WINDOW_STATE { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Resize < > ( & self , pixelsize : * const D2D_SIZE_U , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pixelsize ) , ) . ok ( ) } pub unsafe fn GetHwnd < > ( & self , ) -> super::super::Foundation:: HWND { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , ) } } unsafe impl :: windows :: Interface for ID2D1HwndRenderTarget { type Vtable = ID2D1HwndRenderTarget_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420504 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for :: windows :: IUnknown { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for :: windows :: IUnknown { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for ID2D1RenderTarget { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for ID2D1RenderTarget { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1RenderTarget > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1RenderTarget > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1RenderTarget > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1RenderTarget > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1RenderTarget > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1RenderTarget > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for ID2D1Resource { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for ID2D1Resource { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1HwndRenderTarget_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : D2D_SIZE_U , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , wicbitmapsource : :: windows :: RawPtr , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , bitmapbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , solidcolorbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , gradientstopcollection : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , lineargradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , radialgradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , bitmaprendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : * const D2D_SIZE_F , layer : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , point0 : D2D_POINT_2F , point1 : D2D_POINT_2F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , opacitybrush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : :: windows :: RawPtr , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacitymask : :: windows :: RawPtr , brush : :: windows :: RawPtr , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , string : super::super::Foundation:: PWSTR , stringlength : u32 , textformat : :: windows :: RawPtr , layoutrect : * const D2D_RECT_F , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , origin : D2D_POINT_2F , textlayout : :: windows :: RawPtr , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , baselineorigin : D2D_POINT_2F , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN_abi , foregroundbrush : :: windows :: RawPtr , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_TEXT_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : u64 , tag2 : u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , layerparameters : * const D2D1_LAYER_PARAMETERS_abi , layer : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , clearcolor : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_PIXEL_FORMAT ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : f32 , dpiy : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_F ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_U ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_WINDOW_STATE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixelsize : * const D2D_SIZE_U , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> super::super::Foundation:: HWND , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Layer ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Layer { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420507 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1LinearGradientBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1LinearGradientBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420523 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Mesh ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Mesh { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420546 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1PathGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1PathGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420517 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RadialGradientBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RadialGradientBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420524 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RectangleGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RectangleGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420514 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1RenderTarget ( :: windows :: IUnknown ) ; impl ID2D1RenderTarget { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn CreateBitmap < 'a , > ( & self , size : impl :: windows :: IntoParam < 'a , D2D_SIZE_U > , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , size . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( srcdata ) , :: std :: mem :: transmute ( pitch ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateBitmapFromWicBitmap < 'a , > ( & self , wicbitmapsource : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmapSource > , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , wicbitmapsource . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateSharedBitmap < > ( & self , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: std :: option :: Option < ID2D1Bitmap > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( data ) , :: std :: mem :: transmute ( bitmapproperties ) , :: std :: mem :: transmute ( bitmap ) , ) . ok ( ) } pub unsafe fn CreateBitmapBrush < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1BitmapBrush > { let mut result__ : < ID2D1BitmapBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1BitmapBrush > ( result__ ) } pub unsafe fn CreateSolidColorBrush < > ( & self , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1SolidColorBrush > { let mut result__ : < ID2D1SolidColorBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1SolidColorBrush > ( result__ ) } pub unsafe fn CreateGradientStopCollection < > ( & self , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , ) -> :: windows :: Result < ID2D1GradientStopCollection > { let mut result__ : < ID2D1GradientStopCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( gradientstops ) , :: std :: mem :: transmute ( gradientstopscount ) , :: std :: mem :: transmute ( colorinterpolationgamma ) , :: std :: mem :: transmute ( extendmode ) , & mut result__ ) . from_abi :: < ID2D1GradientStopCollection > ( result__ ) } pub unsafe fn CreateLinearGradientBrush < 'a , > ( & self , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1LinearGradientBrush > { let mut result__ : < ID2D1LinearGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( lineargradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1LinearGradientBrush > ( result__ ) } pub unsafe fn CreateRadialGradientBrush < 'a , > ( & self , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1RadialGradientBrush > { let mut result__ : < ID2D1RadialGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( radialgradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1RadialGradientBrush > ( result__ ) } pub unsafe fn CreateCompatibleRenderTarget < > ( & self , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , ) -> :: windows :: Result < ID2D1BitmapRenderTarget > { let mut result__ : < ID2D1BitmapRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( desiredsize ) , :: std :: mem :: transmute ( desiredpixelsize ) , :: std :: mem :: transmute ( desiredformat ) , :: std :: mem :: transmute ( options ) , & mut result__ ) . from_abi :: < ID2D1BitmapRenderTarget > ( result__ ) } pub unsafe fn CreateLayer < > ( & self , size : * const D2D_SIZE_F , ) -> :: windows :: Result < ID2D1Layer > { let mut result__ : < ID2D1Layer as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( size ) , & mut result__ ) . from_abi :: < ID2D1Layer > ( result__ ) } pub unsafe fn CreateMesh < > ( & self , ) -> :: windows :: Result < ID2D1Mesh > { let mut result__ : < ID2D1Mesh as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1Mesh > ( result__ ) } pub unsafe fn DrawLine < 'a , > ( & self , point0 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , point1 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , point0 . into_param ( ) . abi ( ) , point1 . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , opacitybrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , opacitybrush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillMesh < 'a , > ( & self , mesh : impl :: windows :: IntoParam < 'a , ID2D1Mesh > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , mesh . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillOpacityMask < 'a , > ( & self , opacitymask : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , opacitymask . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( content ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawBitmap < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( opacity ) , :: std :: mem :: transmute ( interpolationmode ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawText < 'a , > ( & self , string : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , stringlength : u32 , textformat : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextFormat > , layoutrect : * const D2D_RECT_F , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , string . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( stringlength ) , textformat . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( layoutrect ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn DrawTextLayout < 'a , > ( & self , origin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , textlayout : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextLayout > , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , ) { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , origin . into_param ( ) . abi ( ) , textlayout . into_param ( ) . abi ( ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , ) } pub unsafe fn DrawGlyphRun < 'a , > ( & self , baselineorigin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN , foregroundbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , baselineorigin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( glyphrun ) , foregroundbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetAntialiasMode < > ( & self , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn GetAntialiasMode < > ( & self , ) -> D2D1_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextAntialiasMode < > ( & self , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textantialiasmode ) , ) } pub unsafe fn GetTextAntialiasMode < > ( & self , ) -> D2D1_TEXT_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextRenderingParams < 'a , > ( & self , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , textrenderingparams . into_param ( ) . abi ( ) , ) } pub unsafe fn GetTextRenderingParams < > ( & self , textrenderingparams : * mut :: std :: option :: Option < super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textrenderingparams ) , ) } pub unsafe fn SetTags < > ( & self , tag1 : u64 , tag2 : u64 , ) { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn GetTags < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn PushLayer < 'a , > ( & self , layerparameters : * const D2D1_LAYER_PARAMETERS , layer : impl :: windows :: IntoParam < 'a , ID2D1Layer > , ) { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( layerparameters ) , layer . into_param ( ) . abi ( ) , ) } pub unsafe fn PopLayer < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Flush < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn SaveDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn RestoreDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn PushAxisAlignedClip < > ( & self , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cliprect ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn PopAxisAlignedClip < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Clear < > ( & self , clearcolor : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( clearcolor ) , ) } pub unsafe fn BeginDraw < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn EndDraw < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn GetPixelFormat < > ( & self , ) -> D2D1_PIXEL_FORMAT { let mut result__ : D2D1_PIXEL_FORMAT = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn SetDpi < > ( & self , dpix : f32 , dpiy : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetSize < > ( & self , ) -> D2D_SIZE_F { let mut result__ : D2D_SIZE_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetPixelSize < > ( & self , ) -> D2D_SIZE_U { let mut result__ : D2D_SIZE_U = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetMaximumBitmapSize < > ( & self , ) -> u32 { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn IsSupported < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , ) } } unsafe impl :: windows :: Interface for ID2D1RenderTarget { type Vtable = ID2D1RenderTarget_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420500 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1RenderTarget > for :: windows :: IUnknown { fn from ( value : ID2D1RenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1RenderTarget > for :: windows :: IUnknown { fn from ( value : & ID2D1RenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1RenderTarget > for ID2D1Resource { fn from ( value : ID2D1RenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1RenderTarget > for ID2D1Resource { fn from ( value : & ID2D1RenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1RenderTarget_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : D2D_SIZE_U , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , wicbitmapsource : :: windows :: RawPtr , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , bitmapbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , solidcolorbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , gradientstopcollection : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , lineargradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , radialgradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , bitmaprendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : * const D2D_SIZE_F , layer : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , point0 : D2D_POINT_2F , point1 : D2D_POINT_2F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , opacitybrush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : :: windows :: RawPtr , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacitymask : :: windows :: RawPtr , brush : :: windows :: RawPtr , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , string : super::super::Foundation:: PWSTR , stringlength : u32 , textformat : :: windows :: RawPtr , layoutrect : * const D2D_RECT_F , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , origin : D2D_POINT_2F , textlayout : :: windows :: RawPtr , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , baselineorigin : D2D_POINT_2F , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN_abi , foregroundbrush : :: windows :: RawPtr , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_TEXT_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : u64 , tag2 : u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , layerparameters : * const D2D1_LAYER_PARAMETERS_abi , layer : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , clearcolor : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_PIXEL_FORMAT ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : f32 , dpiy : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_F ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_U ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Resource ( :: windows :: IUnknown ) ; impl ID2D1Resource { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } } unsafe impl :: windows :: Interface for ID2D1Resource { type Vtable = ID2D1Resource_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420497 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1Resource > for :: windows :: IUnknown { fn from ( value : ID2D1Resource ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Resource > for :: windows :: IUnknown { fn from ( value : & ID2D1Resource ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Resource { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Resource { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Resource_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RoundedRectangleGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RoundedRectangleGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420515 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1SolidColorBrush ( :: windows :: IUnknown ) ; impl ID2D1SolidColorBrush { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn SetOpacity < > ( & self , opacity : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( opacity ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetOpacity < > ( & self , ) -> f32 { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetColor < > ( & self , color : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , ) } pub unsafe fn GetColor < > ( & self , ) -> D2D1_COLOR_F { let mut result__ : D2D1_COLOR_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } } unsafe impl :: windows :: Interface for ID2D1SolidColorBrush { type Vtable = ID2D1SolidColorBrush_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420521 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1SolidColorBrush > for :: windows :: IUnknown { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for :: windows :: IUnknown { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1SolidColorBrush > for ID2D1Brush { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for ID2D1Brush { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Brush > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Brush > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Brush > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Brush > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Brush > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Brush > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1SolidColorBrush > for ID2D1Resource { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for ID2D1Resource { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1SolidColorBrush_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacity : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> f32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_COLOR_F ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1StrokeStyle ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1StrokeStyle { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420509 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1TransformedGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1TransformedGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420539 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod DirectWrite { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DWRITE_GLYPH_OFFSET { pub advanceOffset : f32 , pub ascenderOffset : f32 } impl DWRITE_GLYPH_OFFSET { } impl :: std :: default :: Default for DWRITE_GLYPH_OFFSET { fn default ( ) -> Self { Self { advanceOffset : 0.0 , ascenderOffset : 0.0 } } } impl :: std :: fmt :: Debug for DWRITE_GLYPH_OFFSET { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DWRITE_GLYPH_OFFSET" ) . field ( "advanceOffset" , & self . advanceOffset ) . field ( "ascenderOffset" , & self . ascenderOffset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DWRITE_GLYPH_OFFSET { fn eq ( & self , other : & Self ) -> bool { self . advanceOffset == other . advanceOffset && self . ascenderOffset == other . ascenderOffset } } impl :: std :: cmp :: Eq for DWRITE_GLYPH_OFFSET { } unsafe impl :: windows :: Abi for DWRITE_GLYPH_OFFSET { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct DWRITE_GLYPH_RUN { pub fontFace : :: std :: option :: Option < IDWriteFontFace > , pub fontEmSize : f32 , pub glyphCount : u32 , pub glyphIndices : * mut u16 , pub glyphAdvances : * mut f32 , pub glyphOffsets : * mut DWRITE_GLYPH_OFFSET , pub isSideways : super::super::Foundation:: BOOL , pub bidiLevel : u32 } impl DWRITE_GLYPH_RUN { } impl :: std :: default :: Default for DWRITE_GLYPH_RUN { fn default ( ) -> Self { Self { fontFace : :: std :: default :: Default :: default ( ) , fontEmSize : 0.0 , glyphCount : 0 , glyphIndices : :: std :: ptr :: null_mut ( ) , glyphAdvances : :: std :: ptr :: null_mut ( ) , glyphOffsets : :: std :: ptr :: null_mut ( ) , isSideways : :: std :: default :: Default :: default ( ) , bidiLevel : 0 } } } impl :: std :: fmt :: Debug for DWRITE_GLYPH_RUN { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DWRITE_GLYPH_RUN" ) . field ( "fontFace" , & self . fontFace ) . field ( "fontEmSize" , & self . fontEmSize ) . field ( "glyphCount" , & self . glyphCount ) . field ( "glyphIndices" , & self . glyphIndices ) . field ( "glyphAdvances" , & self . glyphAdvances ) . field ( "glyphOffsets" , & self . glyphOffsets ) . field ( "isSideways" , & self . isSideways ) . field ( "bidiLevel" , & self . bidiLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DWRITE_GLYPH_RUN { fn eq ( & self , other : & Self ) -> bool { self . fontFace == other . fontFace && self . fontEmSize == other . fontEmSize && self . glyphCount == other . glyphCount && self . glyphIndices == other . glyphIndices && self . glyphAdvances == other . glyphAdvances && self . glyphOffsets == other . glyphOffsets && self . isSideways == other . isSideways && self . bidiLevel == other . bidiLevel } } impl :: std :: cmp :: Eq for DWRITE_GLYPH_RUN { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct DWRITE_GLYPH_RUN_abi { pub fontFace : :: windows :: RawPtr , pub fontEmSize : f32 , pub glyphCount : u32 , pub glyphIndices : * mut u16 , pub glyphAdvances : * mut f32 , pub glyphOffsets : * mut DWRITE_GLYPH_OFFSET , pub isSideways : super::super::Foundation:: BOOL , pub bidiLevel : u32 } unsafe impl :: windows :: Abi for DWRITE_GLYPH_RUN { type Abi = DWRITE_GLYPH_RUN_abi ; 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 DWRITE_MEASURING_MODE ( pub i32 ) ; pub const DWRITE_MEASURING_MODE_NATURAL : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 0i32 ) ; pub const DWRITE_MEASURING_MODE_GDI_CLASSIC : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 1i32 ) ; pub const DWRITE_MEASURING_MODE_GDI_NATURAL : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 2i32 ) ; impl :: std :: convert :: From < i32 > for DWRITE_MEASURING_MODE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DWRITE_MEASURING_MODE { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteFontFace ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteFontFace { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1598652493 ,28708 ,19779 , [ 191 ,169 ,210 ,89 ,132 ,245 ,56 ,73 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteRenderingParams ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteRenderingParams { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 789423418 ,10973 ,18381 , [ 130 ,238 ,217 ,236 ,52 ,104 ,142 ,117 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteTextFormat ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteTextFormat { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2626709528 ,12759 ,20435 , [ 161 ,81 ,124 ,94 ,34 ,93 ,181 ,90 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteTextLayout ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteTextLayout { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1400074295 ,27924 ,16651 , [ 155 ,254 ,11 ,24 ,43 ,183 ,9 ,97 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Dxgi { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct DXGI_FORMAT ( pub u32 ) ; impl :: std :: convert :: From < u32 > for DXGI_FORMAT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DXGI_FORMAT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for DXGI_FORMAT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for DXGI_FORMAT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for DXGI_FORMAT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for DXGI_FORMAT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDXGISurface ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDXGISurface { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3405559148 ,27331 ,18569 , [ 191 ,71 ,158 ,35 ,187 ,210 ,96 ,236 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Gdi { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BLENDFUNCTION { pub BlendOp : u8 , pub BlendFlags : u8 , pub SourceConstantAlpha : u8 , pub AlphaFormat : u8 } impl BLENDFUNCTION { } impl :: std :: default :: Default for BLENDFUNCTION { fn default ( ) -> Self { Self { BlendOp : 0 , BlendFlags : 0 , SourceConstantAlpha : 0 , AlphaFormat : 0 } } } impl :: std :: fmt :: Debug for BLENDFUNCTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BLENDFUNCTION" ) . field ( "BlendOp" , & self . BlendOp ) . field ( "BlendFlags" , & self . BlendFlags ) . field ( "SourceConstantAlpha" , & self . SourceConstantAlpha ) . field ( "AlphaFormat" , & self . AlphaFormat ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BLENDFUNCTION { fn eq ( & self , other : & Self ) -> bool { self . BlendOp == other . BlendOp && self . BlendFlags == other . BlendFlags && self . SourceConstantAlpha == other . SourceConstantAlpha && self . AlphaFormat == other . AlphaFormat } } impl :: std :: cmp :: Eq for BLENDFUNCTION { } unsafe impl :: windows :: Abi for BLENDFUNCTION { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HBITMAP ( pub isize ) ; impl HBITMAP { } impl :: std :: default :: Default for HBITMAP { fn default ( ) -> Self { Self ( 0 ) } } impl HBITMAP { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HBITMAP { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HBITMAP" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HBITMAP { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HBITMAP { } unsafe impl :: windows :: Abi for HBITMAP { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HGDIOBJ > for HBITMAP { fn into_param ( self ) -> :: windows :: Param < 'a , HGDIOBJ > { :: windows :: Param :: Owned ( HGDIOBJ ( self . 0 ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HBRUSH ( pub isize ) ; impl HBRUSH { } impl :: std :: default :: Default for HBRUSH { fn default ( ) -> Self { Self ( 0 ) } } impl HBRUSH { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HBRUSH { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HBRUSH" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HBRUSH { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HBRUSH { } unsafe impl :: windows :: Abi for HBRUSH { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HGDIOBJ > for HBRUSH { fn into_param ( self ) -> :: windows :: Param < 'a , HGDIOBJ > { :: windows :: Param :: Owned ( HGDIOBJ ( self . 0 ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HDC ( pub isize ) ; impl HDC { } impl :: std :: default :: Default for HDC { fn default ( ) -> Self { Self ( 0 ) } } impl HDC { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HDC { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HDC" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HDC { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HDC { } unsafe impl :: windows :: Abi for HDC { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HGDIOBJ ( pub isize ) ; impl HGDIOBJ { } impl :: std :: default :: Default for HGDIOBJ { fn default ( ) -> Self { Self ( 0 ) } } impl HGDIOBJ { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HGDIOBJ { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HGDIOBJ" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HGDIOBJ { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HGDIOBJ { } unsafe impl :: windows :: Abi for HGDIOBJ { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LOGFONTA { pub lfHeight : i32 , pub lfWidth : i32 , pub lfEscapement : i32 , pub lfOrientation : i32 , pub lfWeight : i32 , pub lfItalic : u8 , pub lfUnderline : u8 , pub lfStrikeOut : u8 , pub lfCharSet : u8 , pub lfOutPrecision : u8 , pub lfClipPrecision : u8 , pub lfQuality : u8 , pub lfPitchAndFamily : u8 , pub lfFaceName : [ super::super::System::SystemServices:: CHAR ;32 ] } impl LOGFONTA { } impl :: std :: default :: Default for LOGFONTA { fn default ( ) -> Self { Self { lfHeight : 0 , lfWidth : 0 , lfEscapement : 0 , lfOrientation : 0 , lfWeight : 0 , lfItalic : 0 , lfUnderline : 0 , lfStrikeOut : 0 , lfCharSet : 0 , lfOutPrecision : 0 , lfClipPrecision : 0 , lfQuality : 0 , lfPitchAndFamily : 0 , lfFaceName : [ :: std :: default :: Default :: default ( ) ;32 ] } } } impl :: std :: fmt :: Debug for LOGFONTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LOGFONTA" ) . field ( "lfHeight" , & self . lfHeight ) . field ( "lfWidth" , & self . lfWidth ) . field ( "lfEscapement" , & self . lfEscapement ) . field ( "lfOrientation" , & self . lfOrientation ) . field ( "lfWeight" , & self . lfWeight ) . field ( "lfItalic" , & self . lfItalic ) . field ( "lfUnderline" , & self . lfUnderline ) . field ( "lfStrikeOut" , & self . lfStrikeOut ) . field ( "lfCharSet" , & self . lfCharSet ) . field ( "lfOutPrecision" , & self . lfOutPrecision ) . field ( "lfClipPrecision" , & self . lfClipPrecision ) . field ( "lfQuality" , & self . lfQuality ) . field ( "lfPitchAndFamily" , & self . lfPitchAndFamily ) . field ( "lfFaceName" , & self . lfFaceName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LOGFONTA { fn eq ( & self , other : & Self ) -> bool { self . lfHeight == other . lfHeight && self . lfWidth == other . lfWidth && self . lfEscapement == other . lfEscapement && self . lfOrientation == other . lfOrientation && self . lfWeight == other . lfWeight && self . lfItalic == other . lfItalic && self . lfUnderline == other . lfUnderline && self . lfStrikeOut == other . lfStrikeOut && self . lfCharSet == other . lfCharSet && self . lfOutPrecision == other . lfOutPrecision && self . lfClipPrecision == other . lfClipPrecision && self . lfQuality == other . lfQuality && self . lfPitchAndFamily == other . lfPitchAndFamily && self . lfFaceName == other . lfFaceName } } impl :: std :: cmp :: Eq for LOGFONTA { } unsafe impl :: windows :: Abi for LOGFONTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LOGFONTW { pub lfHeight : i32 , pub lfWidth : i32 , pub lfEscapement : i32 , pub lfOrientation : i32 , pub lfWeight : i32 , pub lfItalic : u8 , pub lfUnderline : u8 , pub lfStrikeOut : u8 , pub lfCharSet : u8 , pub lfOutPrecision : u8 , pub lfClipPrecision : u8 , pub lfQuality : u8 , pub lfPitchAndFamily : u8 , pub lfFaceName : [ u16 ;32 ] } impl LOGFONTW { } impl :: std :: default :: Default for LOGFONTW { fn default ( ) -> Self { Self { lfHeight : 0 , lfWidth : 0 , lfEscapement : 0 , lfOrientation : 0 , lfWeight : 0 , lfItalic : 0 , lfUnderline : 0 , lfStrikeOut : 0 , lfCharSet : 0 , lfOutPrecision : 0 , lfClipPrecision : 0 , lfQuality : 0 , lfPitchAndFamily : 0 , lfFaceName : [ 0 ;32 ] } } } impl :: std :: fmt :: Debug for LOGFONTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LOGFONTW" ) . field ( "lfHeight" , & self . lfHeight ) . field ( "lfWidth" , & self . lfWidth ) . field ( "lfEscapement" , & self . lfEscapement ) . field ( "lfOrientation" , & self . lfOrientation ) . field ( "lfWeight" , & self . lfWeight ) . field ( "lfItalic" , & self . lfItalic ) . field ( "lfUnderline" , & self . lfUnderline ) . field ( "lfStrikeOut" , & self . lfStrikeOut ) . field ( "lfCharSet" , & self . lfCharSet ) . field ( "lfOutPrecision" , & self . lfOutPrecision ) . field ( "lfClipPrecision" , & self . lfClipPrecision ) . field ( "lfQuality" , & self . lfQuality ) . field ( "lfPitchAndFamily" , & self . lfPitchAndFamily ) . field ( "lfFaceName" , & self . lfFaceName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LOGFONTW { fn eq ( & self , other : & Self ) -> bool { self . lfHeight == other . lfHeight && self . lfWidth == other . lfWidth && self . lfEscapement == other . lfEscapement && self . lfOrientation == other . lfOrientation && self . lfWeight == other . lfWeight && self . lfItalic == other . lfItalic && self . lfUnderline == other . lfUnderline && self . lfStrikeOut == other . lfStrikeOut && self . lfCharSet == other . lfCharSet && self . lfOutPrecision == other . lfOutPrecision && self . lfClipPrecision == other . lfClipPrecision && self . lfQuality == other . lfQuality && self . lfPitchAndFamily == other . lfPitchAndFamily && self . lfFaceName == other . lfFaceName } } impl :: std :: cmp :: Eq for LOGFONTW { } unsafe impl :: windows :: Abi for LOGFONTW { 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 Imaging { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IWICBitmap ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IWICBitmap { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 289 ,43250 ,18551 , [ 186 ,10 ,253 ,43 ,102 ,69 ,251 ,148 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IWICBitmapSource ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IWICBitmapSource { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 288 ,43250 ,18551 , [ 186 ,10 ,253 ,43 ,102 ,69 ,251 ,148 ] , ) ; } } } # [ 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 LibraryLoader { pub unsafe fn GetModuleHandleW < 'a , > ( lpmodulename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HINSTANCE { # [ cfg ( windows ) ] { # [ link ( name ="KERNEL32" ) ] extern "system" { fn GetModuleHandleW ( lpmodulename : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HINSTANCE ; } GetModuleHandleW ( lpmodulename . into_param ( ) . abi ( ) ) } # [ 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 StationsAndDesktops { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HDESK ( pub isize ) ; impl HDESK { } impl :: std :: default :: Default for HDESK { fn default ( ) -> Self { Self ( 0 ) } } impl HDESK { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HDESK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HDESK" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HDESK { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HDESK { } unsafe impl :: windows :: Abi for HDESK { 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 SystemServices { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct CHAR ( pub u8 ) ; impl CHAR { } impl :: std :: default :: Default for CHAR { fn default ( ) -> Self { Self ( 0 ) } } impl CHAR { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for CHAR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHAR" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHAR { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for CHAR { } unsafe impl :: windows :: Abi for CHAR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct DPI_AWARENESS_CONTEXT ( pub isize ) ; impl DPI_AWARENESS_CONTEXT { } impl :: std :: default :: Default for DPI_AWARENESS_CONTEXT { fn default ( ) -> Self { Self ( 0 ) } } impl DPI_AWARENESS_CONTEXT { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for DPI_AWARENESS_CONTEXT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DPI_AWARENESS_CONTEXT" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DPI_AWARENESS_CONTEXT { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for DPI_AWARENESS_CONTEXT { } unsafe impl :: windows :: Abi for DPI_AWARENESS_CONTEXT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LUID { pub LowPart : u32 , pub HighPart : i32 } impl LUID { } impl :: std :: default :: Default for LUID { fn default ( ) -> Self { Self { LowPart : 0 , HighPart : 0 } } } impl :: std :: fmt :: Debug for LUID { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LUID" ) . field ( "LowPart" , & self . LowPart ) . field ( "HighPart" , & self . HighPart ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LUID { fn eq ( & self , other : & Self ) -> bool { self . LowPart == other . LowPart && self . HighPart == other . HighPart } } impl :: std :: cmp :: Eq for LUID { } unsafe impl :: windows :: Abi for LUID { 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 UI { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Controls { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HPROPSHEETPAGE ( pub isize ) ; impl HPROPSHEETPAGE { } impl :: std :: default :: Default for HPROPSHEETPAGE { fn default ( ) -> Self { Self ( 0 ) } } impl HPROPSHEETPAGE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HPROPSHEETPAGE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HPROPSHEETPAGE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HPROPSHEETPAGE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HPROPSHEETPAGE { } unsafe impl :: windows :: Abi for HPROPSHEETPAGE { 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 IMAGE_FLAGS ( pub u32 ) ; pub const LR_CREATEDIBSECTION : IMAGE_FLAGS = IMAGE_FLAGS ( 8192u32 ) ; pub const LR_DEFAULTCOLOR : IMAGE_FLAGS = IMAGE_FLAGS ( 0u32 ) ; pub const LR_DEFAULTSIZE : IMAGE_FLAGS = IMAGE_FLAGS ( 64u32 ) ; pub const LR_LOADFROMFILE : IMAGE_FLAGS = IMAGE_FLAGS ( 16u32 ) ; pub const LR_LOADMAP3DCOLORS : IMAGE_FLAGS = IMAGE_FLAGS ( 4096u32 ) ; pub const LR_LOADTRANSPARENT : IMAGE_FLAGS = IMAGE_FLAGS ( 32u32 ) ; pub const LR_MONOCHROME : IMAGE_FLAGS = IMAGE_FLAGS ( 1u32 ) ; pub const LR_SHARED : IMAGE_FLAGS = IMAGE_FLAGS ( 32768u32 ) ; pub const LR_VGACOLOR : IMAGE_FLAGS = IMAGE_FLAGS ( 128u32 ) ; pub const LR_COPYDELETEORG : IMAGE_FLAGS = IMAGE_FLAGS ( 8u32 ) ; pub const LR_COPYFROMRESOURCE : IMAGE_FLAGS = IMAGE_FLAGS ( 16384u32 ) ; pub const LR_COPYRETURNORG : IMAGE_FLAGS = IMAGE_FLAGS ( 4u32 ) ; impl :: std :: convert :: From < u32 > for IMAGE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for IMAGE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for IMAGE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for IMAGE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for IMAGE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for IMAGE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NMHDR { pub hwndFrom : super::super::Foundation:: HWND , pub idFrom : usize , pub code : u32 } impl NMHDR { } impl :: std :: default :: Default for NMHDR { fn default ( ) -> Self { Self { hwndFrom : :: std :: default :: Default :: default ( ) , idFrom : 0 , code : 0 } } } impl :: std :: fmt :: Debug for NMHDR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NMHDR" ) . field ( "hwndFrom" , & self . hwndFrom ) . field ( "idFrom" , & self . idFrom ) . field ( "code" , & self . code ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NMHDR { fn eq ( & self , other : & Self ) -> bool { self . hwndFrom == other . hwndFrom && self . idFrom == other . idFrom && self . code == other . code } } impl :: std :: cmp :: Eq for NMHDR { } unsafe impl :: windows :: Abi for NMHDR { 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 SCROLLBAR_OBJID ( pub i32 ) ; pub const OBJID_CLIENT : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -4i32 ) ; pub const OBJID_HSCROLL : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -6i32 ) ; pub const OBJID_VSCROLL : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -5i32 ) ; pub const OBJID_MENU : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -3i32 ) ; pub const OBJID_SYSMENU : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -1i32 ) ; impl :: std :: convert :: From < i32 > for SCROLLBAR_OBJID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SCROLLBAR_OBJID { 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 DisplayDevices { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA { pub dmDeviceName : [ u8 ;32 ] , pub dmSpecVersion : u16 , pub dmDriverVersion : u16 , pub dmSize : u16 , pub dmDriverExtra : u16 , pub dmFields : u32 , pub Anonymous1 : DEVMODEA_0 , pub dmColor : i16 , pub dmDuplex : i16 , pub dmYResolution : i16 , pub dmTTOption : i16 , pub dmCollate : i16 , pub dmFormName : [ u8 ;32 ] , pub dmLogPixels : u16 , pub dmBitsPerPel : u32 , pub dmPelsWidth : u32 , pub dmPelsHeight : u32 , pub Anonymous2 : DEVMODEA_1 , pub dmDisplayFrequency : u32 , pub dmICMMethod : u32 , pub dmICMIntent : u32 , pub dmMediaType : u32 , pub dmDitherType : u32 , pub dmReserved1 : u32 , pub dmReserved2 : u32 , pub dmPanningWidth : u32 , pub dmPanningHeight : u32 } impl DEVMODEA { } impl :: std :: cmp :: PartialEq for DEVMODEA { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA { } unsafe impl :: windows :: Abi for DEVMODEA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DEVMODEA_0 { pub Anonymous1 : DEVMODEA_0_0 , pub Anonymous2 : DEVMODEA_0_1 } impl DEVMODEA_0 { } impl :: std :: cmp :: PartialEq for DEVMODEA_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA_0 { } unsafe impl :: windows :: Abi for DEVMODEA_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA_0_0 { pub dmOrientation : i16 , pub dmPaperSize : i16 , pub dmPaperLength : i16 , pub dmPaperWidth : i16 , pub dmScale : i16 , pub dmCopies : i16 , pub dmDefaultSource : i16 , pub dmPrintQuality : i16 } impl DEVMODEA_0_0 { } impl :: std :: default :: Default for DEVMODEA_0_0 { fn default ( ) -> Self { Self { dmOrientation : 0 , dmPaperSize : 0 , dmPaperLength : 0 , dmPaperWidth : 0 , dmScale : 0 , dmCopies : 0 , dmDefaultSource : 0 , dmPrintQuality : 0 } } } impl :: std :: fmt :: Debug for DEVMODEA_0_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous1_e__Struct" ) . field ( "dmOrientation" , & self . dmOrientation ) . field ( "dmPaperSize" , & self . dmPaperSize ) . field ( "dmPaperLength" , & self . dmPaperLength ) . field ( "dmPaperWidth" , & self . dmPaperWidth ) . field ( "dmScale" , & self . dmScale ) . field ( "dmCopies" , & self . dmCopies ) . field ( "dmDefaultSource" , & self . dmDefaultSource ) . field ( "dmPrintQuality" , & self . dmPrintQuality ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVMODEA_0_0 { fn eq ( & self , other : & Self ) -> bool { self . dmOrientation == other . dmOrientation && self . dmPaperSize == other . dmPaperSize && self . dmPaperLength == other . dmPaperLength && self . dmPaperWidth == other . dmPaperWidth && self . dmScale == other . dmScale && self . dmCopies == other . dmCopies && self . dmDefaultSource == other . dmDefaultSource && self . dmPrintQuality == other . dmPrintQuality } } impl :: std :: cmp :: Eq for DEVMODEA_0_0 { } unsafe impl :: windows :: Abi for DEVMODEA_0_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA_0_1 { pub dmPosition : super::super::Foundation:: POINTL , pub dmDisplayOrientation : u32 , pub dmDisplayFixedOutput : u32 } impl DEVMODEA_0_1 { } impl :: std :: default :: Default for DEVMODEA_0_1 { fn default ( ) -> Self { Self { dmPosition : :: std :: default :: Default :: default ( ) , dmDisplayOrientation : 0 , dmDisplayFixedOutput : 0 } } } impl :: std :: fmt :: Debug for DEVMODEA_0_1 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous2_e__Struct" ) . field ( "dmPosition" , & self . dmPosition ) . field ( "dmDisplayOrientation" , & self . dmDisplayOrientation ) . field ( "dmDisplayFixedOutput" , & self . dmDisplayFixedOutput ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVMODEA_0_1 { fn eq ( & self , other : & Self ) -> bool { self . dmPosition == other . dmPosition && self . dmDisplayOrientation == other . dmDisplayOrientation && self . dmDisplayFixedOutput == other . dmDisplayFixedOutput } } impl :: std :: cmp :: Eq for DEVMODEA_0_1 { } unsafe impl :: windows :: Abi for DEVMODEA_0_1 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DEVMODEA_1 { pub dmDisplayFlags : u32 , pub dmNup : u32 } impl DEVMODEA_1 { } impl :: std :: cmp :: PartialEq for DEVMODEA_1 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA_1 { } unsafe impl :: windows :: Abi for DEVMODEA_1 { 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 Shell { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct HELPINFO { pub cbSize : u32 , pub iContextType : i32 , pub iCtrlId : i32 , pub hItemHandle : super::super::Foundation:: HANDLE , pub dwContextId : usize , pub MousePos : super::super::Foundation:: POINT } impl HELPINFO { } impl :: std :: default :: Default for HELPINFO { fn default ( ) -> Self { Self { cbSize : 0 , iContextType : 0 , iCtrlId : 0 , hItemHandle : :: std :: default :: Default :: default ( ) , dwContextId : 0 , MousePos : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for HELPINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HELPINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "iContextType" , & self . iContextType ) . field ( "iCtrlId" , & self . iCtrlId ) . field ( "hItemHandle" , & self . hItemHandle ) . field ( "dwContextId" , & self . dwContextId ) . field ( "MousePos" , & self . MousePos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HELPINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iContextType == other . iContextType && self . iCtrlId == other . iCtrlId && self . hItemHandle == other . hItemHandle && self . dwContextId == other . dwContextId && self . MousePos == other . MousePos } } impl :: std :: cmp :: Eq for HELPINFO { } unsafe impl :: windows :: Abi for HELPINFO { 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 WindowsAndMessaging { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ACCEL { pub fVirt : u8 , pub key : u16 , pub cmd : u16 } impl ACCEL { } impl :: std :: default :: Default for ACCEL { fn default ( ) -> Self { Self { fVirt : 0 , key : 0 , cmd : 0 } } } impl :: std :: fmt :: Debug for ACCEL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ACCEL" ) . field ( "fVirt" , & self . fVirt ) . field ( "key" , & self . key ) . field ( "cmd" , & self . cmd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ACCEL { fn eq ( & self , other : & Self ) -> bool { self . fVirt == other . fVirt && self . key == other . key && self . cmd == other . cmd } } impl :: std :: cmp :: Eq for ACCEL { } unsafe impl :: windows :: Abi for ACCEL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ALTTABINFO { pub cbSize : u32 , pub cItems : i32 , pub cColumns : i32 , pub cRows : i32 , pub iColFocus : i32 , pub iRowFocus : i32 , pub cxItem : i32 , pub cyItem : i32 , pub ptStart : super::super::Foundation:: POINT } impl ALTTABINFO { } impl :: std :: default :: Default for ALTTABINFO { fn default ( ) -> Self { Self { cbSize : 0 , cItems : 0 , cColumns : 0 , cRows : 0 , iColFocus : 0 , iRowFocus : 0 , cxItem : 0 , cyItem : 0 , ptStart : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ALTTABINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ALTTABINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "cItems" , & self . cItems ) . field ( "cColumns" , & self . cColumns ) . field ( "cRows" , & self . cRows ) . field ( "iColFocus" , & self . iColFocus ) . field ( "iRowFocus" , & self . iRowFocus ) . field ( "cxItem" , & self . cxItem ) . field ( "cyItem" , & self . cyItem ) . field ( "ptStart" , & self . ptStart ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ALTTABINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . cItems == other . cItems && self . cColumns == other . cColumns && self . cRows == other . cRows && self . iColFocus == other . iColFocus && self . iRowFocus == other . iRowFocus && self . cxItem == other . cxItem && self . cyItem == other . cyItem && self . ptStart == other . ptStart } } impl :: std :: cmp :: Eq for ALTTABINFO { } unsafe impl :: windows :: Abi for ALTTABINFO { 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 ANIMATE_WINDOW_FLAGS ( pub u32 ) ; pub const AW_ACTIVATE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 131072u32 ) ; pub const AW_BLEND : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 524288u32 ) ; pub const AW_CENTER : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 16u32 ) ; pub const AW_HIDE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 65536u32 ) ; pub const AW_HOR_POSITIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 1u32 ) ; pub const AW_HOR_NEGATIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 2u32 ) ; pub const AW_SLIDE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 262144u32 ) ; pub const AW_VER_POSITIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 4u32 ) ; pub const AW_VER_NEGATIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for ANIMATE_WINDOW_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for ANIMATE_WINDOW_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for ANIMATE_WINDOW_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for ANIMATE_WINDOW_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for ANIMATE_WINDOW_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for ANIMATE_WINDOW_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ANIMATIONINFO { pub cbSize : u32 , pub iMinAnimate : i32 } impl ANIMATIONINFO { } impl :: std :: default :: Default for ANIMATIONINFO { fn default ( ) -> Self { Self { cbSize : 0 , iMinAnimate : 0 } } } impl :: std :: fmt :: Debug for ANIMATIONINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ANIMATIONINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "iMinAnimate" , & self . iMinAnimate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ANIMATIONINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iMinAnimate == other . iMinAnimate } } impl :: std :: cmp :: Eq for ANIMATIONINFO { } unsafe impl :: windows :: Abi for ANIMATIONINFO { type Abi = Self ; type DefaultType = Self ; } pub const ARW_DOWN : i32 = 4i32 ; pub const ARW_HIDE : i32 = 8i32 ; pub const ARW_LEFT : i32 = 0i32 ; pub const ARW_RIGHT : i32 = 0i32 ; pub const ARW_STARTMASK : i32 = 3i32 ; pub const ARW_STARTRIGHT : i32 = 1i32 ; pub const ARW_STARTTOP : i32 = 2i32 ; pub const ARW_UP : i32 = 4i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct AUDIODESCRIPTION { pub cbSize : u32 , pub Enabled : super::super::Foundation:: BOOL , pub Locale : u32 } impl AUDIODESCRIPTION { } impl :: std :: default :: Default for AUDIODESCRIPTION { fn default ( ) -> Self { Self { cbSize : 0 , Enabled : :: std :: default :: Default :: default ( ) , Locale : 0 } } } impl :: std :: fmt :: Debug for AUDIODESCRIPTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "AUDIODESCRIPTION" ) . field ( "cbSize" , & self . cbSize ) . field ( "Enabled" , & self . Enabled ) . field ( "Locale" , & self . Locale ) . finish ( ) } } impl :: std :: cmp :: PartialEq for AUDIODESCRIPTION { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . Enabled == other . Enabled && self . Locale == other . Locale } } impl :: std :: cmp :: Eq for AUDIODESCRIPTION { } unsafe impl :: windows :: Abi for AUDIODESCRIPTION { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn AdjustWindowRect < 'a , > ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AdjustWindowRect ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } AdjustWindowRect ( :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( dwstyle ) , bmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AdjustWindowRectEx < 'a , > ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwexstyle : WINDOW_EX_STYLE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AdjustWindowRectEx ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : super::super::Foundation:: BOOL , dwexstyle : WINDOW_EX_STYLE ) -> super::super::Foundation:: BOOL ; } AdjustWindowRectEx ( :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( dwstyle ) , bmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwexstyle ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AllowSetForegroundWindow < > ( dwprocessid : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AllowSetForegroundWindow ( dwprocessid : u32 ) -> super::super::Foundation:: BOOL ; } AllowSetForegroundWindow ( :: std :: mem :: transmute ( dwprocessid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AnimateWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , dwtime : u32 , dwflags : ANIMATE_WINDOW_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AnimateWindow ( hwnd : super::super::Foundation:: HWND , dwtime : u32 , dwflags : ANIMATE_WINDOW_FLAGS ) -> super::super::Foundation:: BOOL ; } AnimateWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwtime ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AnyPopup < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AnyPopup ( ) -> super::super::Foundation:: BOOL ; } AnyPopup ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AppendMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AppendMenuA ( hmenu : HMENU , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } AppendMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AppendMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AppendMenuW ( hmenu : HMENU , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } AppendMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ArrangeIconicWindows < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ArrangeIconicWindows ( hwnd : super::super::Foundation:: HWND ) -> u32 ; } ArrangeIconicWindows ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const BM_CLICK : u32 = 245u32 ; pub const BM_GETCHECK : u32 = 240u32 ; pub const BM_GETIMAGE : u32 = 246u32 ; pub const BM_GETSTATE : u32 = 242u32 ; pub const BM_SETCHECK : u32 = 241u32 ; pub const BM_SETDONTCLICK : u32 = 248u32 ; pub const BM_SETIMAGE : u32 = 247u32 ; pub const BM_SETSTATE : u32 = 243u32 ; pub const BM_SETSTYLE : u32 = 244u32 ; pub const BN_CLICKED : u32 = 0u32 ; pub const BN_DISABLE : u32 = 4u32 ; pub const BN_DOUBLECLICKED : u32 = 5u32 ; pub const BN_HILITE : u32 = 2u32 ; pub const BN_KILLFOCUS : u32 = 7u32 ; pub const BN_PAINT : u32 = 1u32 ; pub const BN_SETFOCUS : u32 = 6u32 ; pub const BN_UNHILITE : u32 = 3u32 ; pub const BROADCAST_QUERY_DENY : u32 = 1112363332u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct BROADCAST_SYSTEM_MESSAGE_FLAGS ( pub u32 ) ; pub const BSF_ALLOWSFW : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 128u32 ) ; pub const BSF_FLUSHDISK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 4u32 ) ; pub const BSF_FORCEIFHUNG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 32u32 ) ; pub const BSF_IGNORECURRENTTASK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 2u32 ) ; pub const BSF_NOHANG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 8u32 ) ; pub const BSF_NOTIMEOUTIFNOTHUNG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 64u32 ) ; pub const BSF_POSTMESSAGE : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 16u32 ) ; pub const BSF_QUERY : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 1u32 ) ; pub const BSF_SENDNOTIFYMESSAGE : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 256u32 ) ; pub const BSF_LUID : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 1024u32 ) ; pub const BSF_RETURNHDESK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 512u32 ) ; impl :: std :: convert :: From < u32 > for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct BROADCAST_SYSTEM_MESSAGE_INFO ( pub u32 ) ; pub const BSM_ALLCOMPONENTS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 0u32 ) ; pub const BSM_ALLDESKTOPS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 16u32 ) ; pub const BSM_APPLICATIONS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 8u32 ) ; impl :: std :: convert :: From < u32 > for BROADCAST_SYSTEM_MESSAGE_INFO { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for BROADCAST_SYSTEM_MESSAGE_INFO { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for BROADCAST_SYSTEM_MESSAGE_INFO { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for BROADCAST_SYSTEM_MESSAGE_INFO { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for BROADCAST_SYSTEM_MESSAGE_INFO { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for BROADCAST_SYSTEM_MESSAGE_INFO { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BSMINFO { pub cbSize : u32 , pub hdesk : super::super::System::StationsAndDesktops:: HDESK , pub hwnd : super::super::Foundation:: HWND , pub luid : super::super::System::SystemServices:: LUID } impl BSMINFO { } impl :: std :: default :: Default for BSMINFO { fn default ( ) -> Self { Self { cbSize : 0 , hdesk : :: std :: default :: Default :: default ( ) , hwnd : :: std :: default :: Default :: default ( ) , luid : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for BSMINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BSMINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "hdesk" , & self . hdesk ) . field ( "hwnd" , & self . hwnd ) . field ( "luid" , & self . luid ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BSMINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hdesk == other . hdesk && self . hwnd == other . hwnd && self . luid == other . luid } } impl :: std :: cmp :: Eq for BSMINFO { } unsafe impl :: windows :: Abi for BSMINFO { type Abi = Self ; type DefaultType = Self ; } pub const BSM_INSTALLABLEDRIVERS : u32 = 4u32 ; pub const BSM_NETDRIVER : u32 = 2u32 ; pub const BSM_VXDS : u32 = 1u32 ; pub const BST_FOCUS : u32 = 8u32 ; pub const BST_PUSHED : u32 = 4u32 ; pub const BS_3STATE : i32 = 5i32 ; pub const BS_AUTO3STATE : i32 = 6i32 ; pub const BS_AUTOCHECKBOX : i32 = 3i32 ; pub const BS_AUTORADIOBUTTON : i32 = 9i32 ; pub const BS_BITMAP : i32 = 128i32 ; pub const BS_BOTTOM : i32 = 2048i32 ; pub const BS_CENTER : i32 = 768i32 ; pub const BS_CHECKBOX : i32 = 2i32 ; pub const BS_DEFPUSHBUTTON : i32 = 1i32 ; pub const BS_FLAT : i32 = 32768i32 ; pub const BS_GROUPBOX : i32 = 7i32 ; pub const BS_ICON : i32 = 64i32 ; pub const BS_LEFT : i32 = 256i32 ; pub const BS_LEFTTEXT : i32 = 32i32 ; pub const BS_MULTILINE : i32 = 8192i32 ; pub const BS_NOTIFY : i32 = 16384i32 ; pub const BS_OWNERDRAW : i32 = 11i32 ; pub const BS_PUSHBOX : i32 = 10i32 ; pub const BS_PUSHBUTTON : i32 = 0i32 ; pub const BS_PUSHLIKE : i32 = 4096i32 ; pub const BS_RADIOBUTTON : i32 = 4i32 ; pub const BS_RIGHT : i32 = 512i32 ; pub const BS_TEXT : i32 = 0i32 ; pub const BS_TOP : i32 = 1024i32 ; pub const BS_TYPEMASK : i32 = 15i32 ; pub const BS_USERBUTTON : i32 = 8i32 ; pub const BS_VCENTER : i32 = 3072i32 ; pub unsafe fn BeginDeferWindowPos < > ( nnumwindows : i32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BeginDeferWindowPos ( nnumwindows : i32 ) -> isize ; } BeginDeferWindowPos ( :: std :: mem :: transmute ( nnumwindows ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BringWindowToTop < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BringWindowToTop ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } BringWindowToTop ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageA < 'a , > ( flags : u32 , lpinfo : * mut u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageA ( flags : u32 , lpinfo : * mut u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } BroadcastSystemMessageA ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageExA < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , pbsminfo : * mut BSMINFO , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageExA ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , pbsminfo : * mut BSMINFO ) -> i32 ; } BroadcastSystemMessageExA ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pbsminfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageExW < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , pbsminfo : * mut BSMINFO , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageExW ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , pbsminfo : * mut BSMINFO ) -> i32 ; } BroadcastSystemMessageExW ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pbsminfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageW < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageW ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } BroadcastSystemMessageW ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const CALERT_SYSTEM : u32 = 6u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CASCADE_WINDOWS_HOW ( pub u32 ) ; pub const MDITILE_SKIPDISABLED : CASCADE_WINDOWS_HOW = CASCADE_WINDOWS_HOW ( 2u32 ) ; pub const MDITILE_ZORDER : CASCADE_WINDOWS_HOW = CASCADE_WINDOWS_HOW ( 4u32 ) ; impl :: std :: convert :: From < u32 > for CASCADE_WINDOWS_HOW { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CASCADE_WINDOWS_HOW { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CASCADE_WINDOWS_HOW { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CASCADE_WINDOWS_HOW { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CASCADE_WINDOWS_HOW { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CASCADE_WINDOWS_HOW { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CBN_CLOSEUP : u32 = 8u32 ; pub const CBN_DBLCLK : u32 = 2u32 ; pub const CBN_DROPDOWN : u32 = 7u32 ; pub const CBN_EDITCHANGE : u32 = 5u32 ; pub const CBN_EDITUPDATE : u32 = 6u32 ; pub const CBN_ERRSPACE : i32 = -1i32 ; pub const CBN_KILLFOCUS : u32 = 4u32 ; pub const CBN_SELCHANGE : u32 = 1u32 ; pub const CBN_SELENDCANCEL : u32 = 10u32 ; pub const CBN_SELENDOK : u32 = 9u32 ; pub const CBN_SETFOCUS : u32 = 3u32 ; pub const CBS_AUTOHSCROLL : i32 = 64i32 ; pub const CBS_DISABLENOSCROLL : i32 = 2048i32 ; pub const CBS_DROPDOWN : i32 = 2i32 ; pub const CBS_DROPDOWNLIST : i32 = 3i32 ; pub const CBS_HASSTRINGS : i32 = 512i32 ; pub const CBS_LOWERCASE : i32 = 16384i32 ; pub const CBS_NOINTEGRALHEIGHT : i32 = 1024i32 ; pub const CBS_OEMCONVERT : i32 = 128i32 ; pub const CBS_OWNERDRAWFIXED : i32 = 16i32 ; pub const CBS_OWNERDRAWVARIABLE : i32 = 32i32 ; pub const CBS_SIMPLE : i32 = 1i32 ; pub const CBS_SORT : i32 = 256i32 ; pub const CBS_UPPERCASE : i32 = 8192i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBTACTIVATESTRUCT { pub fMouse : super::super::Foundation:: BOOL , pub hWndActive : super::super::Foundation:: HWND } impl CBTACTIVATESTRUCT { } impl :: std :: default :: Default for CBTACTIVATESTRUCT { fn default ( ) -> Self { Self { fMouse : :: std :: default :: Default :: default ( ) , hWndActive : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBTACTIVATESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBTACTIVATESTRUCT" ) . field ( "fMouse" , & self . fMouse ) . field ( "hWndActive" , & self . hWndActive ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBTACTIVATESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . fMouse == other . fMouse && self . hWndActive == other . hWndActive } } impl :: std :: cmp :: Eq for CBTACTIVATESTRUCT { } unsafe impl :: windows :: Abi for CBTACTIVATESTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBT_CREATEWNDA { pub lpcs : * mut CREATESTRUCTA , pub hwndInsertAfter : super::super::Foundation:: HWND } impl CBT_CREATEWNDA { } impl :: std :: default :: Default for CBT_CREATEWNDA { fn default ( ) -> Self { Self { lpcs : :: std :: ptr :: null_mut ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBT_CREATEWNDA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBT_CREATEWNDA" ) . field ( "lpcs" , & self . lpcs ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBT_CREATEWNDA { fn eq ( & self , other : & Self ) -> bool { self . lpcs == other . lpcs && self . hwndInsertAfter == other . hwndInsertAfter } } impl :: std :: cmp :: Eq for CBT_CREATEWNDA { } unsafe impl :: windows :: Abi for CBT_CREATEWNDA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBT_CREATEWNDW { pub lpcs : * mut CREATESTRUCTW , pub hwndInsertAfter : super::super::Foundation:: HWND } impl CBT_CREATEWNDW { } impl :: std :: default :: Default for CBT_CREATEWNDW { fn default ( ) -> Self { Self { lpcs : :: std :: ptr :: null_mut ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBT_CREATEWNDW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBT_CREATEWNDW" ) . field ( "lpcs" , & self . lpcs ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBT_CREATEWNDW { fn eq ( & self , other : & Self ) -> bool { self . lpcs == other . lpcs && self . hwndInsertAfter == other . hwndInsertAfter } } impl :: std :: cmp :: Eq for CBT_CREATEWNDW { } unsafe impl :: windows :: Abi for CBT_CREATEWNDW { type Abi = Self ; type DefaultType = Self ; } pub const CB_ADDSTRING : u32 = 323u32 ; pub const CB_DELETESTRING : u32 = 324u32 ; pub const CB_DIR : u32 = 325u32 ; pub const CB_ERR : i32 = -1i32 ; pub const CB_ERRSPACE : i32 = -2i32 ; pub const CB_FINDSTRING : u32 = 332u32 ; pub const CB_FINDSTRINGEXACT : u32 = 344u32 ; pub const CB_GETCOMBOBOXINFO : u32 = 356u32 ; pub const CB_GETCOUNT : u32 = 326u32 ; pub const CB_GETCURSEL : u32 = 327u32 ; pub const CB_GETDROPPEDCONTROLRECT : u32 = 338u32 ; pub const CB_GETDROPPEDSTATE : u32 = 343u32 ; pub const CB_GETDROPPEDWIDTH : u32 = 351u32 ; pub const CB_GETEDITSEL : u32 = 320u32 ; pub const CB_GETEXTENDEDUI : u32 = 342u32 ; pub const CB_GETHORIZONTALEXTENT : u32 = 349u32 ; pub const CB_GETITEMDATA : u32 = 336u32 ; pub const CB_GETITEMHEIGHT : u32 = 340u32 ; pub const CB_GETLBTEXT : u32 = 328u32 ; pub const CB_GETLBTEXTLEN : u32 = 329u32 ; pub const CB_GETLOCALE : u32 = 346u32 ; pub const CB_GETTOPINDEX : u32 = 347u32 ; pub const CB_INITSTORAGE : u32 = 353u32 ; pub const CB_INSERTSTRING : u32 = 330u32 ; pub const CB_LIMITTEXT : u32 = 321u32 ; pub const CB_MSGMAX : u32 = 357u32 ; pub const CB_MULTIPLEADDSTRING : u32 = 355u32 ; pub const CB_OKAY : u32 = 0u32 ; pub const CB_RESETCONTENT : u32 = 331u32 ; pub const CB_SELECTSTRING : u32 = 333u32 ; pub const CB_SETCURSEL : u32 = 334u32 ; pub const CB_SETDROPPEDWIDTH : u32 = 352u32 ; pub const CB_SETEDITSEL : u32 = 322u32 ; pub const CB_SETEXTENDEDUI : u32 = 341u32 ; pub const CB_SETHORIZONTALEXTENT : u32 = 350u32 ; pub const CB_SETITEMDATA : u32 = 337u32 ; pub const CB_SETITEMHEIGHT : u32 = 339u32 ; pub const CB_SETLOCALE : u32 = 345u32 ; pub const CB_SETTOPINDEX : u32 = 348u32 ; pub const CB_SHOWDROPDOWN : u32 = 335u32 ; pub const CCHILDREN_SCROLLBAR : u32 = 5u32 ; pub const CCHILDREN_TITLEBAR : u32 = 5u32 ; pub const CDM_FIRST : u32 = 1124u32 ; pub const CDM_GETFILEPATH : u32 = 1125u32 ; pub const CDM_GETFOLDERIDLIST : u32 = 1127u32 ; pub const CDM_GETFOLDERPATH : u32 = 1126u32 ; pub const CDM_GETSPEC : u32 = 1124u32 ; pub const CDM_HIDECONTROL : u32 = 1129u32 ; pub const CDM_LAST : u32 = 1224u32 ; pub const CDM_SETCONTROLTEXT : u32 = 1128u32 ; pub const CDM_SETDEFEXT : u32 = 1130u32 ; pub const CD_LBSELADD : u32 = 2u32 ; pub const CD_LBSELCHANGE : u32 = 0u32 ; pub const CD_LBSELNOITEMS : i32 = -1i32 ; pub const CD_LBSELSUB : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CHANGEFILTERSTRUCT { pub cbSize : u32 , pub ExtStatus : MSGFLTINFO_STATUS } impl CHANGEFILTERSTRUCT { } impl :: std :: default :: Default for CHANGEFILTERSTRUCT { fn default ( ) -> Self { Self { cbSize : 0 , ExtStatus : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHANGEFILTERSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHANGEFILTERSTRUCT" ) . field ( "cbSize" , & self . cbSize ) . field ( "ExtStatus" , & self . ExtStatus ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHANGEFILTERSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . ExtStatus == other . ExtStatus } } impl :: std :: cmp :: Eq for CHANGEFILTERSTRUCT { } unsafe impl :: windows :: Abi for CHANGEFILTERSTRUCT { 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 CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( pub u32 ) ; pub const MSGFLT_ADD : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( 1u32 ) ; pub const MSGFLT_REMOVE : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CHILDID_SELF : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSECOLORA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCCHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl CHOOSECOLORA { } impl :: std :: default :: Default for CHOOSECOLORA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , rgbResult : 0 , lpCustColors : :: std :: ptr :: null_mut ( ) , Flags : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHOOSECOLORA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSECOLORA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "rgbResult" , & self . rgbResult ) . field ( "lpCustColors" , & self . lpCustColors ) . field ( "Flags" , & self . Flags ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSECOLORA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . rgbResult == other . rgbResult && self . lpCustColors == other . lpCustColors && self . Flags == other . Flags && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for CHOOSECOLORA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSECOLORA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for CHOOSECOLORA { type Abi = CHOOSECOLORA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSECOLORW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCCHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl CHOOSECOLORW { } impl :: std :: default :: Default for CHOOSECOLORW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , rgbResult : 0 , lpCustColors : :: std :: ptr :: null_mut ( ) , Flags : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHOOSECOLORW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSECOLORW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "rgbResult" , & self . rgbResult ) . field ( "lpCustColors" , & self . lpCustColors ) . field ( "Flags" , & self . Flags ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSECOLORW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . rgbResult == other . rgbResult && self . lpCustColors == other . lpCustColors && self . Flags == other . Flags && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for CHOOSECOLORW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSECOLORW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for CHOOSECOLORW { type Abi = CHOOSECOLORW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSEFONTA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTA , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCFHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } impl CHOOSEFONTA { } impl :: std :: default :: Default for CHOOSEFONTA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDC : :: std :: default :: Default :: default ( ) , lpLogFont : :: std :: ptr :: null_mut ( ) , iPointSize : 0 , Flags : :: std :: default :: Default :: default ( ) , rgbColors : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszStyle : :: std :: default :: Default :: default ( ) , nFontType : :: std :: default :: Default :: default ( ) , ___MISSING_ALIGNMENT__ : 0 , nSizeMin : 0 , nSizeMax : 0 } } } impl :: std :: fmt :: Debug for CHOOSEFONTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSEFONTA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDC" , & self . hDC ) . field ( "lpLogFont" , & self . lpLogFont ) . field ( "iPointSize" , & self . iPointSize ) . field ( "Flags" , & self . Flags ) . field ( "rgbColors" , & self . rgbColors ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszStyle" , & self . lpszStyle ) . field ( "nFontType" , & self . nFontType ) . field ( "___MISSING_ALIGNMENT__" , & self . ___MISSING_ALIGNMENT__ ) . field ( "nSizeMin" , & self . nSizeMin ) . field ( "nSizeMax" , & self . nSizeMax ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSEFONTA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDC == other . hDC && self . lpLogFont == other . lpLogFont && self . iPointSize == other . iPointSize && self . Flags == other . Flags && self . rgbColors == other . rgbColors && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . hInstance == other . hInstance && self . lpszStyle == other . lpszStyle && self . nFontType == other . nFontType && self . ___MISSING_ALIGNMENT__ == other . ___MISSING_ALIGNMENT__ && self . nSizeMin == other . nSizeMin && self . nSizeMax == other . nSizeMax } } impl :: std :: cmp :: Eq for CHOOSEFONTA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSEFONTA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTA , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } unsafe impl :: windows :: Abi for CHOOSEFONTA { type Abi = CHOOSEFONTA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSEFONTW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTW , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCFHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PWSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } impl CHOOSEFONTW { } impl :: std :: default :: Default for CHOOSEFONTW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDC : :: std :: default :: Default :: default ( ) , lpLogFont : :: std :: ptr :: null_mut ( ) , iPointSize : 0 , Flags : :: std :: default :: Default :: default ( ) , rgbColors : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszStyle : :: std :: default :: Default :: default ( ) , nFontType : :: std :: default :: Default :: default ( ) , ___MISSING_ALIGNMENT__ : 0 , nSizeMin : 0 , nSizeMax : 0 } } } impl :: std :: fmt :: Debug for CHOOSEFONTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSEFONTW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDC" , & self . hDC ) . field ( "lpLogFont" , & self . lpLogFont ) . field ( "iPointSize" , & self . iPointSize ) . field ( "Flags" , & self . Flags ) . field ( "rgbColors" , & self . rgbColors ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszStyle" , & self . lpszStyle ) . field ( "nFontType" , & self . nFontType ) . field ( "___MISSING_ALIGNMENT__" , & self . ___MISSING_ALIGNMENT__ ) . field ( "nSizeMin" , & self . nSizeMin ) . field ( "nSizeMax" , & self . nSizeMax ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSEFONTW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDC == other . hDC && self . lpLogFont == other . lpLogFont && self . iPointSize == other . iPointSize && self . Flags == other . Flags && self . rgbColors == other . rgbColors && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . hInstance == other . hInstance && self . lpszStyle == other . lpszStyle && self . nFontType == other . nFontType && self . ___MISSING_ALIGNMENT__ == other . ___MISSING_ALIGNMENT__ && self . nSizeMin == other . nSizeMin && self . nSizeMax == other . nSizeMax } } impl :: std :: cmp :: Eq for CHOOSEFONTW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSEFONTW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTW , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PWSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } unsafe impl :: windows :: Abi for CHOOSEFONTW { type Abi = CHOOSEFONTW_abi ; 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 CHOOSEFONT_FLAGS ( pub u32 ) ; pub const CF_APPLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 512u32 ) ; pub const CF_ANSIONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1024u32 ) ; pub const CF_BOTH : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 3u32 ) ; pub const CF_EFFECTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 256u32 ) ; pub const CF_ENABLEHOOK : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8u32 ) ; pub const CF_ENABLETEMPLATE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16u32 ) ; pub const CF_ENABLETEMPLATEHANDLE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 32u32 ) ; pub const CF_FIXEDPITCHONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16384u32 ) ; pub const CF_FORCEFONTEXIST : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 65536u32 ) ; pub const CF_INACTIVEFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 33554432u32 ) ; pub const CF_INITTOLOGFONTSTRUCT : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 64u32 ) ; pub const CF_LIMITSIZE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8192u32 ) ; pub const CF_NOOEMFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2048u32 ) ; pub const CF_NOFACESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 524288u32 ) ; pub const CF_NOSCRIPTSEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8388608u32 ) ; pub const CF_NOSIMULATIONS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4096u32 ) ; pub const CF_NOSIZESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2097152u32 ) ; pub const CF_NOSTYLESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1048576u32 ) ; pub const CF_NOVECTORFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2048u32 ) ; pub const CF_NOVERTFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16777216u32 ) ; pub const CF_PRINTERFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2u32 ) ; pub const CF_SCALABLEONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 131072u32 ) ; pub const CF_SCREENFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1u32 ) ; pub const CF_SCRIPTSONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1024u32 ) ; pub const CF_SELECTSCRIPT : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4194304u32 ) ; pub const CF_SHOWHELP : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4u32 ) ; pub const CF_TTONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 262144u32 ) ; pub const CF_USESTYLE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 128u32 ) ; pub const CF_WYSIWYG : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 32768u32 ) ; impl :: std :: convert :: From < u32 > for CHOOSEFONT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHOOSEFONT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHOOSEFONT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHOOSEFONT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHOOSEFONT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHOOSEFONT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CHOOSEFONT_FONT_TYPE ( pub u32 ) ; pub const BOLD_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 256u32 ) ; pub const ITALIC_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 512u32 ) ; pub const PRINTER_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 16384u32 ) ; pub const REGULAR_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 1024u32 ) ; pub const SCREEN_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 8192u32 ) ; pub const SIMULATED_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 32768u32 ) ; impl :: std :: convert :: From < u32 > for CHOOSEFONT_FONT_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHOOSEFONT_FONT_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHOOSEFONT_FONT_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHOOSEFONT_FONT_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHOOSEFONT_FONT_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHOOSEFONT_FONT_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CLIENTCREATESTRUCT { pub hWindowMenu : super::super::Foundation:: HANDLE , pub idFirstChild : u32 } impl CLIENTCREATESTRUCT { } impl :: std :: default :: Default for CLIENTCREATESTRUCT { fn default ( ) -> Self { Self { hWindowMenu : :: std :: default :: Default :: default ( ) , idFirstChild : 0 } } } impl :: std :: fmt :: Debug for CLIENTCREATESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CLIENTCREATESTRUCT" ) . field ( "hWindowMenu" , & self . hWindowMenu ) . field ( "idFirstChild" , & self . idFirstChild ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CLIENTCREATESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hWindowMenu == other . hWindowMenu && self . idFirstChild == other . idFirstChild } } impl :: std :: cmp :: Eq for CLIENTCREATESTRUCT { } unsafe impl :: windows :: Abi for CLIENTCREATESTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const COLOR_BTNHIGHLIGHT : u32 = 20u32 ; pub const CONSOLE_APPLICATION_16BIT : u32 = 0u32 ; pub const CONSOLE_CARET_SELECTION : u32 = 1u32 ; pub const CONSOLE_CARET_VISIBLE : u32 = 2u32 ; pub const CONTACTVISUALIZATION_OFF : u32 = 0u32 ; pub const CONTACTVISUALIZATION_ON : u32 = 1u32 ; pub const CONTACTVISUALIZATION_PRESENTATIONMODE : u32 = 2u32 ; pub const CREATEPROCESS_MANIFEST_RESOURCE_ID : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CREATESTRUCTA { pub lpCreateParams : * mut :: std :: ffi :: c_void , pub hInstance : super::super::Foundation:: HINSTANCE , pub hMenu : HMENU , pub hwndParent : super::super::Foundation:: HWND , pub cy : i32 , pub cx : i32 , pub y : i32 , pub x : i32 , pub style : i32 , pub lpszName : super::super::Foundation:: PSTR , pub lpszClass : super::super::Foundation:: PSTR , pub dwExStyle : u32 } impl CREATESTRUCTA { } impl :: std :: default :: Default for CREATESTRUCTA { fn default ( ) -> Self { Self { lpCreateParams : :: std :: ptr :: null_mut ( ) , hInstance : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndParent : :: std :: default :: Default :: default ( ) , cy : 0 , cx : 0 , y : 0 , x : 0 , style : 0 , lpszName : :: std :: default :: Default :: default ( ) , lpszClass : :: std :: default :: Default :: default ( ) , dwExStyle : 0 } } } impl :: std :: fmt :: Debug for CREATESTRUCTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CREATESTRUCTA" ) . field ( "lpCreateParams" , & self . lpCreateParams ) . field ( "hInstance" , & self . hInstance ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndParent" , & self . hwndParent ) . field ( "cy" , & self . cy ) . field ( "cx" , & self . cx ) . field ( "y" , & self . y ) . field ( "x" , & self . x ) . field ( "style" , & self . style ) . field ( "lpszName" , & self . lpszName ) . field ( "lpszClass" , & self . lpszClass ) . field ( "dwExStyle" , & self . dwExStyle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CREATESTRUCTA { fn eq ( & self , other : & Self ) -> bool { self . lpCreateParams == other . lpCreateParams && self . hInstance == other . hInstance && self . hMenu == other . hMenu && self . hwndParent == other . hwndParent && self . cy == other . cy && self . cx == other . cx && self . y == other . y && self . x == other . x && self . style == other . style && self . lpszName == other . lpszName && self . lpszClass == other . lpszClass && self . dwExStyle == other . dwExStyle } } impl :: std :: cmp :: Eq for CREATESTRUCTA { } unsafe impl :: windows :: Abi for CREATESTRUCTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CREATESTRUCTW { pub lpCreateParams : * mut :: std :: ffi :: c_void , pub hInstance : super::super::Foundation:: HINSTANCE , pub hMenu : HMENU , pub hwndParent : super::super::Foundation:: HWND , pub cy : i32 , pub cx : i32 , pub y : i32 , pub x : i32 , pub style : i32 , pub lpszName : super::super::Foundation:: PWSTR , pub lpszClass : super::super::Foundation:: PWSTR , pub dwExStyle : u32 } impl CREATESTRUCTW { } impl :: std :: default :: Default for CREATESTRUCTW { fn default ( ) -> Self { Self { lpCreateParams : :: std :: ptr :: null_mut ( ) , hInstance : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndParent : :: std :: default :: Default :: default ( ) , cy : 0 , cx : 0 , y : 0 , x : 0 , style : 0 , lpszName : :: std :: default :: Default :: default ( ) , lpszClass : :: std :: default :: Default :: default ( ) , dwExStyle : 0 } } } impl :: std :: fmt :: Debug for CREATESTRUCTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CREATESTRUCTW" ) . field ( "lpCreateParams" , & self . lpCreateParams ) . field ( "hInstance" , & self . hInstance ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndParent" , & self . hwndParent ) . field ( "cy" , & self . cy ) . field ( "cx" , & self . cx ) . field ( "y" , & self . y ) . field ( "x" , & self . x ) . field ( "style" , & self . style ) . field ( "lpszName" , & self . lpszName ) . field ( "lpszClass" , & self . lpszClass ) . field ( "dwExStyle" , & self . dwExStyle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CREATESTRUCTW { fn eq ( & self , other : & Self ) -> bool { self . lpCreateParams == other . lpCreateParams && self . hInstance == other . hInstance && self . hMenu == other . hMenu && self . hwndParent == other . hwndParent && self . cy == other . cy && self . cx == other . cx && self . y == other . y && self . x == other . x && self . style == other . style && self . lpszName == other . lpszName && self . lpszClass == other . lpszClass && self . dwExStyle == other . dwExStyle } } impl :: std :: cmp :: Eq for CREATESTRUCTW { } unsafe impl :: windows :: Abi for CREATESTRUCTW { type Abi = Self ; type DefaultType = Self ; } pub const CSOUND_SYSTEM : u32 = 16u32 ; pub const CTLCOLOR_BTN : u32 = 3u32 ; pub const CTLCOLOR_DLG : u32 = 4u32 ; pub const CTLCOLOR_EDIT : u32 = 1u32 ; pub const CTLCOLOR_LISTBOX : u32 = 2u32 ; pub const CTLCOLOR_MAX : u32 = 7u32 ; pub const CTLCOLOR_MSGBOX : u32 = 0u32 ; pub const CTLCOLOR_SCROLLBAR : u32 = 5u32 ; pub const CTLCOLOR_STATIC : u32 = 6u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CURSORINFO { pub cbSize : u32 , pub flags : CURSORINFO_FLAGS , pub hCursor : HCURSOR , pub ptScreenPos : super::super::Foundation:: POINT } impl CURSORINFO { } impl :: std :: default :: Default for CURSORINFO { fn default ( ) -> Self { Self { cbSize : 0 , flags : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , ptScreenPos : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CURSORINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CURSORINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "flags" , & self . flags ) . field ( "hCursor" , & self . hCursor ) . field ( "ptScreenPos" , & self . ptScreenPos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CURSORINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . flags == other . flags && self . hCursor == other . hCursor && self . ptScreenPos == other . ptScreenPos } } impl :: std :: cmp :: Eq for CURSORINFO { } unsafe impl :: windows :: Abi for CURSORINFO { 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 CURSORINFO_FLAGS ( pub u32 ) ; pub const CURSOR_SHOWING : CURSORINFO_FLAGS = CURSORINFO_FLAGS ( 1u32 ) ; pub const CURSOR_SUPPRESSED : CURSORINFO_FLAGS = CURSORINFO_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for CURSORINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CURSORINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CURSORINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CURSORINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CURSORINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CURSORINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CURSORSHAPE { pub xHotSpot : i32 , pub yHotSpot : i32 , pub cx : i32 , pub cy : i32 , pub cbWidth : i32 , pub Planes : u8 , pub BitsPixel : u8 } impl CURSORSHAPE { } impl :: std :: default :: Default for CURSORSHAPE { fn default ( ) -> Self { Self { xHotSpot : 0 , yHotSpot : 0 , cx : 0 , cy : 0 , cbWidth : 0 , Planes : 0 , BitsPixel : 0 } } } impl :: std :: fmt :: Debug for CURSORSHAPE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CURSORSHAPE" ) . field ( "xHotSpot" , & self . xHotSpot ) . field ( "yHotSpot" , & self . yHotSpot ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "cbWidth" , & self . cbWidth ) . field ( "Planes" , & self . Planes ) . field ( "BitsPixel" , & self . BitsPixel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CURSORSHAPE { fn eq ( & self , other : & Self ) -> bool { self . xHotSpot == other . xHotSpot && self . yHotSpot == other . yHotSpot && self . cx == other . cx && self . cy == other . cy && self . cbWidth == other . cbWidth && self . Planes == other . Planes && self . BitsPixel == other . BitsPixel } } impl :: std :: cmp :: Eq for CURSORSHAPE { } unsafe impl :: windows :: Abi for CURSORSHAPE { type Abi = Self ; type DefaultType = Self ; } pub const CWF_CREATE_ONLY : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CWPRETSTRUCT { pub lResult : super::super::Foundation:: LRESULT , pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub message : u32 , pub hwnd : super::super::Foundation:: HWND } impl CWPRETSTRUCT { } impl :: std :: default :: Default for CWPRETSTRUCT { fn default ( ) -> Self { Self { lResult : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , message : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CWPRETSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CWPRETSTRUCT" ) . field ( "lResult" , & self . lResult ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "message" , & self . message ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CWPRETSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . lResult == other . lResult && self . lParam == other . lParam && self . wParam == other . wParam && self . message == other . message && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for CWPRETSTRUCT { } unsafe impl :: windows :: Abi for CWPRETSTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CWPSTRUCT { pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub message : u32 , pub hwnd : super::super::Foundation:: HWND } impl CWPSTRUCT { } impl :: std :: default :: Default for CWPSTRUCT { fn default ( ) -> Self { Self { lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , message : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CWPSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CWPSTRUCT" ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "message" , & self . message ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CWPSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . lParam == other . lParam && self . wParam == other . wParam && self . message == other . message && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for CWPSTRUCT { } unsafe impl :: windows :: Abi for CWPSTRUCT { 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 CWP_FLAGS ( pub u32 ) ; pub const CWP_ALL : CWP_FLAGS = CWP_FLAGS ( 0u32 ) ; pub const CWP_SKIPINVISIBLE : CWP_FLAGS = CWP_FLAGS ( 1u32 ) ; pub const CWP_SKIPDISABLED : CWP_FLAGS = CWP_FLAGS ( 2u32 ) ; pub const CWP_SKIPTRANSPARENT : CWP_FLAGS = CWP_FLAGS ( 4u32 ) ; impl :: std :: convert :: From < u32 > for CWP_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CWP_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CWP_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CWP_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CWP_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CWP_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CW_USEDEFAULT : i32 = -2147483648i32 ; pub unsafe fn CalculatePopupWindowPosition < > ( anchorpoint : * const super::super::Foundation:: POINT , windowsize : * const super::super::Foundation:: SIZE , flags : u32 , excluderect : * mut super::super::Foundation:: RECT , popupwindowposition : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CalculatePopupWindowPosition ( anchorpoint : * const super::super::Foundation:: POINT , windowsize : * const super::super::Foundation:: SIZE , flags : u32 , excluderect : * mut super::super::Foundation:: RECT , popupwindowposition : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } CalculatePopupWindowPosition ( :: std :: mem :: transmute ( anchorpoint ) , :: std :: mem :: transmute ( windowsize ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( excluderect ) , :: std :: mem :: transmute ( popupwindowposition ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallMsgFilterA < > ( lpmsg : * mut MSG , ncode : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallMsgFilterA ( lpmsg : * mut MSG , ncode : i32 ) -> super::super::Foundation:: BOOL ; } CallMsgFilterA ( :: std :: mem :: transmute ( lpmsg ) , :: std :: mem :: transmute ( ncode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallMsgFilterW < > ( lpmsg : * mut MSG , ncode : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallMsgFilterW ( lpmsg : * mut MSG , ncode : i32 ) -> super::super::Foundation:: BOOL ; } CallMsgFilterW ( :: std :: mem :: transmute ( lpmsg ) , :: std :: mem :: transmute ( ncode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallNextHookEx < 'a , > ( hhk : impl :: windows :: IntoParam < 'a , HHOOK > , ncode : i32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallNextHookEx ( hhk : HHOOK , ncode : i32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallNextHookEx ( hhk . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncode ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallWindowProcA < 'a , > ( lpprevwndfunc : :: std :: option :: Option < WNDPROC > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallWindowProcA ( lpprevwndfunc : :: windows :: RawPtr , hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallWindowProcA ( :: std :: mem :: transmute ( lpprevwndfunc ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallWindowProcW < 'a , > ( lpprevwndfunc : :: std :: option :: Option < WNDPROC > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallWindowProcW ( lpprevwndfunc : :: windows :: RawPtr , hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallWindowProcW ( :: std :: mem :: transmute ( lpprevwndfunc ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CancelShutdown < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CancelShutdown ( ) -> super::super::Foundation:: BOOL ; } CancelShutdown ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CascadeWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , whow : CASCADE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CascadeWindows ( hwndparent : super::super::Foundation:: HWND , whow : CASCADE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND ) -> u16 ; } CascadeWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( whow ) , :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( ckids ) , :: std :: mem :: transmute ( lpkids ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , cmd : u32 , lpsznewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cmdinsert : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeMenuA ( hmenu : HMENU , cmd : u32 , lpsznewitem : super::super::Foundation:: PSTR , cmdinsert : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } ChangeMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmd ) , lpsznewitem . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmdinsert ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , cmd : u32 , lpsznewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cmdinsert : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeMenuW ( hmenu : HMENU , cmd : u32 , lpsznewitem : super::super::Foundation:: PWSTR , cmdinsert : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } ChangeMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmd ) , lpsznewitem . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmdinsert ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeWindowMessageFilter < > ( message : u32 , dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeWindowMessageFilter ( message : u32 , dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ) -> super::super::Foundation:: BOOL ; } ChangeWindowMessageFilter ( :: std :: mem :: transmute ( message ) , :: std :: mem :: transmute ( dwflag ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeWindowMessageFilterEx < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , message : u32 , action : WINDOW_MESSAGE_FILTER_ACTION , pchangefilterstruct : * mut CHANGEFILTERSTRUCT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeWindowMessageFilterEx ( hwnd : super::super::Foundation:: HWND , message : u32 , action : WINDOW_MESSAGE_FILTER_ACTION , pchangefilterstruct : * mut CHANGEFILTERSTRUCT ) -> super::super::Foundation:: BOOL ; } ChangeWindowMessageFilterEx ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( message ) , :: std :: mem :: transmute ( action ) , :: std :: mem :: transmute ( pchangefilterstruct ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharLowerA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerBuffA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerBuffA ( lpsz : super::super::Foundation:: PSTR , cchlength : u32 ) -> u32 ; } CharLowerBuffA ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerBuffW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerBuffW ( lpsz : super::super::Foundation:: PWSTR , cchlength : u32 ) -> u32 ; } CharLowerBuffW ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharLowerW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharNextA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextExA < 'a , > ( codepage : u16 , lpcurrentchar : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwflags : u32 , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextExA ( codepage : u16 , lpcurrentchar : super::super::Foundation:: PSTR , dwflags : u32 ) -> super::super::Foundation:: PSTR ; } CharNextExA ( :: std :: mem :: transmute ( codepage ) , lpcurrentchar . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharNextW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevA < 'a , > ( lpszstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszcurrent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevA ( lpszstart : super::super::Foundation:: PSTR , lpszcurrent : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharPrevA ( lpszstart . into_param ( ) . abi ( ) , lpszcurrent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevExA < 'a , > ( codepage : u16 , lpstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcurrentchar : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwflags : u32 , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevExA ( codepage : u16 , lpstart : super::super::Foundation:: PSTR , lpcurrentchar : super::super::Foundation:: PSTR , dwflags : u32 ) -> super::super::Foundation:: PSTR ; } CharPrevExA ( :: std :: mem :: transmute ( codepage ) , lpstart . into_param ( ) . abi ( ) , lpcurrentchar . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevW < 'a , > ( lpszstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszcurrent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevW ( lpszstart : super::super::Foundation:: PWSTR , lpszcurrent : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharPrevW ( lpszstart . into_param ( ) . abi ( ) , lpszcurrent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemA < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemA ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } CharToOemA ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemBuffA < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemBuffA ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } CharToOemBuffA ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemBuffW < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemBuffW ( lpszsrc : super::super::Foundation:: PWSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } CharToOemBuffW ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemW < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemW ( psrc : super::super::Foundation:: PWSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } CharToOemW ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharUpperA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperBuffA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperBuffA ( lpsz : super::super::Foundation:: PSTR , cchlength : u32 ) -> u32 ; } CharUpperBuffA ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperBuffW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperBuffW ( lpsz : super::super::Foundation:: PWSTR , cchlength : u32 ) -> u32 ; } CharUpperBuffW ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharUpperW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CheckMenuItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidcheckitem : u32 , ucheck : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CheckMenuItem ( hmenu : HMENU , uidcheckitem : u32 , ucheck : u32 ) -> u32 ; } CheckMenuItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidcheckitem ) , :: std :: mem :: transmute ( ucheck ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CheckMenuRadioItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , first : u32 , last : u32 , check : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CheckMenuRadioItem ( hmenu : HMENU , first : u32 , last : u32 , check : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } CheckMenuRadioItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( first ) , :: std :: mem :: transmute ( last ) , :: std :: mem :: transmute ( check ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChildWindowFromPoint < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChildWindowFromPoint ( hwndparent : super::super::Foundation:: HWND , point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } ChildWindowFromPoint ( hwndparent . into_param ( ) . abi ( ) , point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChildWindowFromPointEx < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pt : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , flags : CWP_FLAGS , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChildWindowFromPointEx ( hwnd : super::super::Foundation:: HWND , pt : super::super::Foundation:: POINT , flags : CWP_FLAGS ) -> super::super::Foundation:: HWND ; } ChildWindowFromPointEx ( hwnd . into_param ( ) . abi ( ) , pt . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseColorA < > ( param0 : * mut CHOOSECOLORA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseColorA ( param0 : * mut CHOOSECOLORA_abi ) -> super::super::Foundation:: BOOL ; } ChooseColorA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseColorW < > ( param0 : * mut CHOOSECOLORW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseColorW ( param0 : * mut CHOOSECOLORW_abi ) -> super::super::Foundation:: BOOL ; } ChooseColorW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseFontA < > ( param0 : * mut CHOOSEFONTA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseFontA ( param0 : * mut CHOOSEFONTA_abi ) -> super::super::Foundation:: BOOL ; } ChooseFontA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseFontW < > ( param0 : * mut CHOOSEFONTW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseFontW ( param0 : * mut CHOOSEFONTW_abi ) -> super::super::Foundation:: BOOL ; } ChooseFontW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ClipCursor < > ( lprect : * const super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ClipCursor ( lprect : * const super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } ClipCursor ( :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CloseWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CloseWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } CloseWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CommDlgExtendedError < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn CommDlgExtendedError ( ) -> u32 ; } CommDlgExtendedError ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyAcceleratorTableA < 'a , > ( haccelsrc : impl :: windows :: IntoParam < 'a , HACCEL > , lpacceldst : * mut ACCEL , caccelentries : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyAcceleratorTableA ( haccelsrc : HACCEL , lpacceldst : * mut ACCEL , caccelentries : i32 ) -> i32 ; } CopyAcceleratorTableA ( haccelsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpacceldst ) , :: std :: mem :: transmute ( caccelentries ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyAcceleratorTableW < 'a , > ( haccelsrc : impl :: windows :: IntoParam < 'a , HACCEL > , lpacceldst : * mut ACCEL , caccelentries : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyAcceleratorTableW ( haccelsrc : HACCEL , lpacceldst : * mut ACCEL , caccelentries : i32 ) -> i32 ; } CopyAcceleratorTableW ( haccelsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpacceldst ) , :: std :: mem :: transmute ( caccelentries ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyIcon < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyIcon ( hicon : HICON ) -> HICON ; } CopyIcon ( hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyImage < 'a , > ( h : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyImage ( h : super::super::Foundation:: HANDLE , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } CopyImage ( h . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateAcceleratorTableA < > ( paccel : * mut ACCEL , caccel : i32 , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateAcceleratorTableA ( paccel : * mut ACCEL , caccel : i32 ) -> HACCEL ; } CreateAcceleratorTableA ( :: std :: mem :: transmute ( paccel ) , :: std :: mem :: transmute ( caccel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateAcceleratorTableW < > ( paccel : * mut ACCEL , caccel : i32 , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateAcceleratorTableW ( paccel : * mut ACCEL , caccel : i32 ) -> HACCEL ; } CreateAcceleratorTableW ( :: std :: mem :: transmute ( paccel ) , :: std :: mem :: transmute ( caccel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hbitmap : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , nwidth : i32 , nheight : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateCaret ( hwnd : super::super::Foundation:: HWND , hbitmap : super::super::Graphics::Gdi:: HBITMAP , nwidth : i32 , nheight : i32 ) -> super::super::Foundation:: BOOL ; } CreateCaret ( hwnd . into_param ( ) . abi ( ) , hbitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCursor < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , xhotspot : i32 , yhotspot : i32 , nwidth : i32 , nheight : i32 , pvandplane : * const :: std :: ffi :: c_void , pvxorplane : * const :: std :: ffi :: c_void , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateCursor ( hinst : super::super::Foundation:: HINSTANCE , xhotspot : i32 , yhotspot : i32 , nwidth : i32 , nheight : i32 , pvandplane : * const :: std :: ffi :: c_void , pvxorplane : * const :: std :: ffi :: c_void ) -> HCURSOR ; } CreateCursor ( hinst . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( xhotspot ) , :: std :: mem :: transmute ( yhotspot ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , :: std :: mem :: transmute ( pvandplane ) , :: std :: mem :: transmute ( pvxorplane ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogIndirectParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogIndirectParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogIndirectParamA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogIndirectParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogIndirectParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogIndirectParamW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogParamA ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PWSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogParamW ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIcon < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , nwidth : i32 , nheight : i32 , cplanes : u8 , cbitspixel : u8 , lpbandbits : * const u8 , lpbxorbits : * const u8 , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIcon ( hinstance : super::super::Foundation:: HINSTANCE , nwidth : i32 , nheight : i32 , cplanes : u8 , cbitspixel : u8 , lpbandbits : * const u8 , lpbxorbits : * const u8 ) -> HICON ; } CreateIcon ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , :: std :: mem :: transmute ( cplanes ) , :: std :: mem :: transmute ( cbitspixel ) , :: std :: mem :: transmute ( lpbandbits ) , :: std :: mem :: transmute ( lpbxorbits ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconFromResource < 'a , > ( presbits : * mut u8 , dwressize : u32 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwver : u32 , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconFromResource ( presbits : * mut u8 , dwressize : u32 , ficon : super::super::Foundation:: BOOL , dwver : u32 ) -> HICON ; } CreateIconFromResource ( :: std :: mem :: transmute ( presbits ) , :: std :: mem :: transmute ( dwressize ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwver ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconFromResourceEx < 'a , > ( presbits : * mut u8 , dwressize : u32 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwver : u32 , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconFromResourceEx ( presbits : * mut u8 , dwressize : u32 , ficon : super::super::Foundation:: BOOL , dwver : u32 , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> HICON ; } CreateIconFromResourceEx ( :: std :: mem :: transmute ( presbits ) , :: std :: mem :: transmute ( dwressize ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwver ) , :: std :: mem :: transmute ( cxdesired ) , :: std :: mem :: transmute ( cydesired ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconIndirect < > ( piconinfo : * mut ICONINFO , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconIndirect ( piconinfo : * mut ICONINFO ) -> HICON ; } CreateIconIndirect ( :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMDIWindowA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMDIWindowA ( lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hinstance : super::super::Foundation:: HINSTANCE , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateMDIWindowA ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMDIWindowW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMDIWindowW ( lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hinstance : super::super::Foundation:: HINSTANCE , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateMDIWindowW ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMenu < > ( ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMenu ( ) -> HMENU ; } CreateMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreatePopupMenu < > ( ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreatePopupMenu ( ) -> HMENU ; } CreatePopupMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateResourceIndexer < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , extensiondllpath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ppresourceindexer : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn CreateResourceIndexer ( projectroot : super::super::Foundation:: PWSTR , extensiondllpath : super::super::Foundation:: PWSTR , ppresourceindexer : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } CreateResourceIndexer ( projectroot . into_param ( ) . abi ( ) , extensiondllpath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ppresourceindexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateWindowExA < 'a , > ( dwexstyle : WINDOW_EX_STYLE , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpparam : * mut :: std :: ffi :: c_void , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateWindowExA ( dwexstyle : WINDOW_EX_STYLE , lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hmenu : HMENU , hinstance : super::super::Foundation:: HINSTANCE , lpparam : * mut :: std :: ffi :: c_void ) -> super::super::Foundation:: HWND ; } CreateWindowExA ( :: std :: mem :: transmute ( dwexstyle ) , lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateWindowExW < 'a , > ( dwexstyle : WINDOW_EX_STYLE , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpparam : * mut :: std :: ffi :: c_void , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateWindowExW ( dwexstyle : WINDOW_EX_STYLE , lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hmenu : HMENU , hinstance : super::super::Foundation:: HINSTANCE , lpparam : * mut :: std :: ffi :: c_void ) -> super::super::Foundation:: HWND ; } CreateWindowExW ( :: std :: mem :: transmute ( dwexstyle ) , lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const DCX_EXCLUDEUPDATE : i32 = 256i32 ; pub const DC_HASDEFID : u32 = 21323u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEBUGHOOKINFO { pub idThread : u32 , pub idThreadInstaller : u32 , pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub code : i32 } impl DEBUGHOOKINFO { } impl :: std :: default :: Default for DEBUGHOOKINFO { fn default ( ) -> Self { Self { idThread : 0 , idThreadInstaller : 0 , lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , code : 0 } } } impl :: std :: fmt :: Debug for DEBUGHOOKINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DEBUGHOOKINFO" ) . field ( "idThread" , & self . idThread ) . field ( "idThreadInstaller" , & self . idThreadInstaller ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "code" , & self . code ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEBUGHOOKINFO { fn eq ( & self , other : & Self ) -> bool { self . idThread == other . idThread && self . idThreadInstaller == other . idThreadInstaller && self . lParam == other . lParam && self . wParam == other . wParam && self . code == other . code } } impl :: std :: cmp :: Eq for DEBUGHOOKINFO { } unsafe impl :: windows :: Abi for DEBUGHOOKINFO { type Abi = Self ; type DefaultType = Self ; } pub type DESKTOPENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type DESKTOPENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub const DESKTOP_CREATEMENU : i32 = 4i32 ; pub const DESKTOP_CREATEWINDOW : i32 = 2i32 ; pub const DESKTOP_ENUMERATE : i32 = 64i32 ; pub const DESKTOP_HOOKCONTROL : i32 = 8i32 ; pub const DESKTOP_JOURNALPLAYBACK : i32 = 32i32 ; pub const DESKTOP_JOURNALRECORD : i32 = 16i32 ; pub const DESKTOP_READOBJECTS : i32 = 1i32 ; pub const DESKTOP_SWITCHDESKTOP : i32 = 256i32 ; pub const DESKTOP_WRITEOBJECTS : i32 = 128i32 ; pub const DEVICE_NOTIFY_ALL_INTERFACE_CLASSES : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVNAMES { pub wDriverOffset : u16 , pub wDeviceOffset : u16 , pub wOutputOffset : u16 , pub wDefault : u16 } impl DEVNAMES { } impl :: std :: default :: Default for DEVNAMES { fn default ( ) -> Self { Self { wDriverOffset : 0 , wDeviceOffset : 0 , wOutputOffset : 0 , wDefault : 0 } } } impl :: std :: fmt :: Debug for DEVNAMES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DEVNAMES" ) . field ( "wDriverOffset" , & self . wDriverOffset ) . field ( "wDeviceOffset" , & self . wDeviceOffset ) . field ( "wOutputOffset" , & self . wOutputOffset ) . field ( "wDefault" , & self . wDefault ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVNAMES { fn eq ( & self , other : & Self ) -> bool { self . wDriverOffset == other . wDriverOffset && self . wDeviceOffset == other . wDeviceOffset && self . wOutputOffset == other . wOutputOffset && self . wDefault == other . wDefault } } impl :: std :: cmp :: Eq for DEVNAMES { } unsafe impl :: windows :: Abi for DEVNAMES { type Abi = Self ; type DefaultType = Self ; } pub const DF_ALLOWOTHERACCOUNTHOOK : i32 = 1i32 ; pub const DIFFERENCE : u32 = 11u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct DI_FLAGS ( pub u32 ) ; pub const DI_MASK : DI_FLAGS = DI_FLAGS ( 1u32 ) ; pub const DI_IMAGE : DI_FLAGS = DI_FLAGS ( 2u32 ) ; pub const DI_NORMAL : DI_FLAGS = DI_FLAGS ( 3u32 ) ; pub const DI_COMPAT : DI_FLAGS = DI_FLAGS ( 4u32 ) ; pub const DI_DEFAULTSIZE : DI_FLAGS = DI_FLAGS ( 8u32 ) ; pub const DI_NOMIRROR : DI_FLAGS = DI_FLAGS ( 16u32 ) ; impl :: std :: convert :: From < u32 > for DI_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DI_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for DI_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for DI_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for DI_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for DI_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const DLGC_BUTTON : u32 = 8192u32 ; pub const DLGC_DEFPUSHBUTTON : u32 = 16u32 ; pub const DLGC_HASSETSEL : u32 = 8u32 ; pub const DLGC_RADIOBUTTON : u32 = 64u32 ; pub const DLGC_STATIC : u32 = 256u32 ; pub const DLGC_UNDEFPUSHBUTTON : u32 = 32u32 ; pub const DLGC_WANTALLKEYS : u32 = 4u32 ; pub const DLGC_WANTARROWS : u32 = 1u32 ; pub const DLGC_WANTCHARS : u32 = 128u32 ; pub const DLGC_WANTMESSAGE : u32 = 4u32 ; pub const DLGC_WANTTAB : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C , packed ( 2 ) ) ] pub struct DLGITEMTEMPLATE { pub style : u32 , pub dwExtendedStyle : u32 , pub x : i16 , pub y : i16 , pub cx : i16 , pub cy : i16 , pub id : u16 } impl DLGITEMTEMPLATE { } impl :: std :: cmp :: PartialEq for DLGITEMTEMPLATE { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DLGITEMTEMPLATE { } unsafe impl :: windows :: Abi for DLGITEMTEMPLATE { type Abi = Self ; type DefaultType = Self ; } pub type DLGPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> isize ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C , packed ( 2 ) ) ] pub struct DLGTEMPLATE { pub style : u32 , pub dwExtendedStyle : u32 , pub cdit : u16 , pub x : i16 , pub y : i16 , pub cx : i16 , pub cy : i16 } impl DLGTEMPLATE { } impl :: std :: cmp :: PartialEq for DLGTEMPLATE { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DLGTEMPLATE { } unsafe impl :: windows :: Abi for DLGTEMPLATE { type Abi = Self ; type DefaultType = Self ; } pub const DLGWINDOWEXTRA : u32 = 30u32 ; pub const DM_GETDEFID : u32 = 1024u32 ; pub const DM_POINTERHITTEST : u32 = 592u32 ; pub const DM_REPOSITION : u32 = 1026u32 ; pub const DM_SETDEFID : u32 = 1025u32 ; pub const DN_DEFAULTPRN : u32 = 1u32 ; pub const DOF_DIRECTORY : u32 = 32771u32 ; pub const DOF_DOCUMENT : u32 = 32770u32 ; pub const DOF_EXECUTABLE : u32 = 32769u32 ; pub const DOF_MULTIPLE : u32 = 32772u32 ; pub const DOF_PROGMAN : u32 = 1u32 ; pub const DOF_SHELLDATA : u32 = 2u32 ; pub const DO_DROPFILE : i32 = 1162627398i32 ; pub const DO_PRINTFILE : i32 = 1414419024i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DROPSTRUCT { pub hwndSource : super::super::Foundation:: HWND , pub hwndSink : super::super::Foundation:: HWND , pub wFmt : u32 , pub dwData : usize , pub ptDrop : super::super::Foundation:: POINT , pub dwControlData : u32 } impl DROPSTRUCT { } impl :: std :: default :: Default for DROPSTRUCT { fn default ( ) -> Self { Self { hwndSource : :: std :: default :: Default :: default ( ) , hwndSink : :: std :: default :: Default :: default ( ) , wFmt : 0 , dwData : 0 , ptDrop : :: std :: default :: Default :: default ( ) , dwControlData : 0 } } } impl :: std :: fmt :: Debug for DROPSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DROPSTRUCT" ) . field ( "hwndSource" , & self . hwndSource ) . field ( "hwndSink" , & self . hwndSink ) . field ( "wFmt" , & self . wFmt ) . field ( "dwData" , & self . dwData ) . field ( "ptDrop" , & self . ptDrop ) . field ( "dwControlData" , & self . dwControlData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DROPSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hwndSource == other . hwndSource && self . hwndSink == other . hwndSink && self . wFmt == other . wFmt && self . dwData == other . dwData && self . ptDrop == other . ptDrop && self . dwControlData == other . dwControlData } } impl :: std :: cmp :: Eq for DROPSTRUCT { } unsafe impl :: windows :: Abi for DROPSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const DS_3DLOOK : i32 = 4i32 ; pub const DS_ABSALIGN : i32 = 1i32 ; pub const DS_CENTER : i32 = 2048i32 ; pub const DS_CENTERMOUSE : i32 = 4096i32 ; pub const DS_CONTEXTHELP : i32 = 8192i32 ; pub const DS_CONTROL : i32 = 1024i32 ; pub const DS_FIXEDSYS : i32 = 8i32 ; pub const DS_LOCALEDIT : i32 = 32i32 ; pub const DS_MODALFRAME : i32 = 128i32 ; pub const DS_NOFAILCREATE : i32 = 16i32 ; pub const DS_NOIDLEMSG : i32 = 256i32 ; pub const DS_SETFONT : i32 = 64i32 ; pub const DS_SETFOREGROUND : i32 = 512i32 ; pub const DS_SYSMODAL : i32 = 2i32 ; pub const DS_USEPIXELS : i32 = 32768i32 ; pub const DWLP_MSGRESULT : u32 = 0u32 ; pub const DWL_DLGPROC : u32 = 4u32 ; pub const DWL_MSGRESULT : u32 = 0u32 ; pub const DWL_USER : u32 = 8u32 ; pub unsafe fn DefDlgProcA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefDlgProcA ( hdlg : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefDlgProcA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefDlgProcW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefDlgProcW ( hdlg : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefDlgProcW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefFrameProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndmdiclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefFrameProcA ( hwnd : super::super::Foundation:: HWND , hwndmdiclient : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefFrameProcA ( hwnd . into_param ( ) . abi ( ) , hwndmdiclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefFrameProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndmdiclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefFrameProcW ( hwnd : super::super::Foundation:: HWND , hwndmdiclient : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefFrameProcW ( hwnd . into_param ( ) . abi ( ) , hwndmdiclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefMDIChildProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefMDIChildProcA ( hwnd : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefMDIChildProcA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefMDIChildProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefMDIChildProcW ( hwnd : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefMDIChildProcW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefWindowProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefWindowProcA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefWindowProcA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefWindowProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefWindowProcW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefWindowProcW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeferWindowPos < 'a , > ( hwinposinfo : isize , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinsertafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeferWindowPos ( hwinposinfo : isize , hwnd : super::super::Foundation:: HWND , hwndinsertafter : super::super::Foundation:: HWND , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS ) -> isize ; } DeferWindowPos ( :: std :: mem :: transmute ( hwinposinfo ) , hwnd . into_param ( ) . abi ( ) , hwndinsertafter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeleteMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeleteMenu ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } DeleteMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeregisterShellHookWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeregisterShellHookWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DeregisterShellHookWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyAcceleratorTable < 'a , > ( haccel : impl :: windows :: IntoParam < 'a , HACCEL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyAcceleratorTable ( haccel : HACCEL ) -> super::super::Foundation:: BOOL ; } DestroyAcceleratorTable ( haccel . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyCaret < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyCaret ( ) -> super::super::Foundation:: BOOL ; } DestroyCaret ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyCursor < 'a , > ( hcursor : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyCursor ( hcursor : HCURSOR ) -> super::super::Foundation:: BOOL ; } DestroyCursor ( hcursor . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyIcon < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyIcon ( hicon : HICON ) -> super::super::Foundation:: BOOL ; } DestroyIcon ( hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyIndexedResults < 'a , > ( resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiercount : u32 , qualifiers : * mut IndexedResourceQualifier , ) { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn DestroyIndexedResults ( resourceuri : super::super::Foundation:: PWSTR , qualifiercount : u32 , qualifiers : * mut IndexedResourceQualifier ) ; } DestroyIndexedResults ( resourceuri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( qualifiercount ) , :: std :: mem :: transmute ( qualifiers ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyMenu ( hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } DestroyMenu ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyResourceIndexer < > ( resourceindexer : * mut :: std :: ffi :: c_void , ) { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn DestroyResourceIndexer ( resourceindexer : * mut :: std :: ffi :: c_void ) ; } DestroyResourceIndexer ( :: std :: mem :: transmute ( resourceindexer ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DestroyWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxIndirectParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxIndirectParamA ( hinstance : super::super::Foundation:: HINSTANCE , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxIndirectParamA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( hdialogtemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxIndirectParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxIndirectParamW ( hinstance : super::super::Foundation:: HINSTANCE , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxIndirectParamW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( hdialogtemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxParamA ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PWSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxParamW ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DisableProcessWindowsGhosting < > ( ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DisableProcessWindowsGhosting ( ) ; } DisableProcessWindowsGhosting ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DispatchMessageA < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DispatchMessageA ( lpmsg : * const MSG ) -> super::super::Foundation:: LRESULT ; } DispatchMessageA ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DispatchMessageW < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DispatchMessageW ( lpmsg : * const MSG ) -> super::super::Foundation:: LRESULT ; } DispatchMessageW ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DragObject < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndfrom : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , fmt : u32 , data : usize , hcur : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DragObject ( hwndparent : super::super::Foundation:: HWND , hwndfrom : super::super::Foundation:: HWND , fmt : u32 , data : usize , hcur : HCURSOR ) -> u32 ; } DragObject ( hwndparent . into_param ( ) . abi ( ) , hwndfrom . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fmt ) , :: std :: mem :: transmute ( data ) , hcur . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawIcon < 'a , > ( hdc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , x : i32 , y : i32 , hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawIcon ( hdc : super::super::Graphics::Gdi:: HDC , x : i32 , y : i32 , hicon : HICON ) -> super::super::Foundation:: BOOL ; } DrawIcon ( hdc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawIconEx < 'a , > ( hdc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , xleft : i32 , ytop : i32 , hicon : impl :: windows :: IntoParam < 'a , HICON > , cxwidth : i32 , cywidth : i32 , istepifanicur : u32 , hbrflickerfreedraw : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBRUSH > , diflags : DI_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawIconEx ( hdc : super::super::Graphics::Gdi:: HDC , xleft : i32 , ytop : i32 , hicon : HICON , cxwidth : i32 , cywidth : i32 , istepifanicur : u32 , hbrflickerfreedraw : super::super::Graphics::Gdi:: HBRUSH , diflags : DI_FLAGS ) -> super::super::Foundation:: BOOL ; } DrawIconEx ( hdc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( xleft ) , :: std :: mem :: transmute ( ytop ) , hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cxwidth ) , :: std :: mem :: transmute ( cywidth ) , :: std :: mem :: transmute ( istepifanicur ) , hbrflickerfreedraw . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( diflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawMenuBar < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawMenuBar ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DrawMenuBar ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const EC_LEFTMARGIN : u32 = 1u32 ; pub const EC_RIGHTMARGIN : u32 = 2u32 ; pub const EC_USEFONTINFO : u32 = 65535u32 ; pub const EDD_GET_DEVICE_INTERFACE_NAME : 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 EDIT_CONTROL_FEATURE ( pub i32 ) ; pub const EDIT_CONTROL_FEATURE_ENTERPRISE_DATA_PROTECTION_PASTE_SUPPORT : EDIT_CONTROL_FEATURE = EDIT_CONTROL_FEATURE ( 0i32 ) ; pub const EDIT_CONTROL_FEATURE_PASTE_NOTIFICATIONS : EDIT_CONTROL_FEATURE = EDIT_CONTROL_FEATURE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EDIT_CONTROL_FEATURE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EDIT_CONTROL_FEATURE { type Abi = Self ; type DefaultType = Self ; } pub const EDS_RAWMODE : u32 = 2u32 ; pub const EDS_ROTATEDMODE : u32 = 4u32 ; pub const EIMES_CANCELCOMPSTRINFOCUS : u32 = 2u32 ; pub const EIMES_COMPLETECOMPSTRKILLFOCUS : u32 = 4u32 ; pub const EIMES_GETCOMPSTRATONCE : u32 = 1u32 ; pub const EMSIS_COMPOSITIONSTRING : u32 = 1u32 ; pub const ENDSESSION_CLOSEAPP : u32 = 1u32 ; pub const ENDSESSION_CRITICAL : u32 = 1073741824u32 ; pub const ENDSESSION_LOGOFF : u32 = 2147483648u32 ; pub const EN_AFTER_PASTE : u32 = 2049u32 ; pub const EN_ALIGN_LTR_EC : u32 = 1792u32 ; pub const EN_ALIGN_RTL_EC : u32 = 1793u32 ; pub const EN_BEFORE_PASTE : u32 = 2048u32 ; pub const EN_CHANGE : u32 = 768u32 ; pub const EN_ERRSPACE : u32 = 1280u32 ; pub const EN_HSCROLL : u32 = 1537u32 ; pub const EN_KILLFOCUS : u32 = 512u32 ; pub const EN_MAXTEXT : u32 = 1281u32 ; pub const EN_SETFOCUS : u32 = 256u32 ; pub const EN_UPDATE : u32 = 1024u32 ; pub const EN_VSCROLL : u32 = 1538u32 ; pub const ES_AUTOHSCROLL : i32 = 128i32 ; pub const ES_AUTOVSCROLL : i32 = 64i32 ; pub const ES_CENTER : i32 = 1i32 ; pub const ES_LEFT : i32 = 0i32 ; pub const ES_LOWERCASE : i32 = 16i32 ; pub const ES_MULTILINE : i32 = 4i32 ; pub const ES_NOHIDESEL : i32 = 256i32 ; pub const ES_NUMBER : i32 = 8192i32 ; pub const ES_OEMCONVERT : i32 = 1024i32 ; pub const ES_PASSWORD : i32 = 32i32 ; pub const ES_READONLY : i32 = 2048i32 ; pub const ES_RIGHT : i32 = 2i32 ; pub const ES_UPPERCASE : i32 = 8i32 ; pub const ES_WANTRETURN : i32 = 4096i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EVENTMSG { pub message : u32 , pub paramL : u32 , pub paramH : u32 , pub time : u32 , pub hwnd : super::super::Foundation:: HWND } impl EVENTMSG { } impl :: std :: default :: Default for EVENTMSG { fn default ( ) -> Self { Self { message : 0 , paramL : 0 , paramH : 0 , time : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for EVENTMSG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "EVENTMSG" ) . field ( "message" , & self . message ) . field ( "paramL" , & self . paramL ) . field ( "paramH" , & self . paramH ) . field ( "time" , & self . time ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for EVENTMSG { fn eq ( & self , other : & Self ) -> bool { self . message == other . message && self . paramL == other . paramL && self . paramH == other . paramH && self . time == other . time && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for EVENTMSG { } unsafe impl :: windows :: Abi for EVENTMSG { type Abi = Self ; type DefaultType = Self ; } pub const EVENT_AIA_END : u32 = 45055u32 ; pub const EVENT_AIA_START : u32 = 40960u32 ; pub const EVENT_CONSOLE_CARET : u32 = 16385u32 ; pub const EVENT_CONSOLE_END : u32 = 16639u32 ; pub const EVENT_CONSOLE_END_APPLICATION : u32 = 16391u32 ; pub const EVENT_CONSOLE_LAYOUT : u32 = 16389u32 ; pub const EVENT_CONSOLE_START_APPLICATION : u32 = 16390u32 ; pub const EVENT_CONSOLE_UPDATE_REGION : u32 = 16386u32 ; pub const EVENT_CONSOLE_UPDATE_SCROLL : u32 = 16388u32 ; pub const EVENT_CONSOLE_UPDATE_SIMPLE : u32 = 16387u32 ; pub const EVENT_MAX : u32 = 2147483647u32 ; pub const EVENT_MIN : u32 = 1u32 ; pub const EVENT_OBJECT_ACCELERATORCHANGE : u32 = 32786u32 ; pub const EVENT_OBJECT_CLOAKED : u32 = 32791u32 ; pub const EVENT_OBJECT_CONTENTSCROLLED : u32 = 32789u32 ; pub const EVENT_OBJECT_CREATE : u32 = 32768u32 ; pub const EVENT_OBJECT_DEFACTIONCHANGE : u32 = 32785u32 ; pub const EVENT_OBJECT_DESCRIPTIONCHANGE : u32 = 32781u32 ; pub const EVENT_OBJECT_DESTROY : u32 = 32769u32 ; pub const EVENT_OBJECT_DRAGCANCEL : u32 = 32802u32 ; pub const EVENT_OBJECT_DRAGCOMPLETE : u32 = 32803u32 ; pub const EVENT_OBJECT_DRAGDROPPED : u32 = 32806u32 ; pub const EVENT_OBJECT_DRAGENTER : u32 = 32804u32 ; pub const EVENT_OBJECT_DRAGLEAVE : u32 = 32805u32 ; pub const EVENT_OBJECT_DRAGSTART : u32 = 32801u32 ; pub const EVENT_OBJECT_END : u32 = 33023u32 ; pub const EVENT_OBJECT_FOCUS : u32 = 32773u32 ; pub const EVENT_OBJECT_HELPCHANGE : u32 = 32784u32 ; pub const EVENT_OBJECT_HIDE : u32 = 32771u32 ; pub const EVENT_OBJECT_HOSTEDOBJECTSINVALIDATED : u32 = 32800u32 ; pub const EVENT_OBJECT_IME_CHANGE : u32 = 32809u32 ; pub const EVENT_OBJECT_IME_HIDE : u32 = 32808u32 ; pub const EVENT_OBJECT_IME_SHOW : u32 = 32807u32 ; pub const EVENT_OBJECT_INVOKED : u32 = 32787u32 ; pub const EVENT_OBJECT_LIVEREGIONCHANGED : u32 = 32793u32 ; pub const EVENT_OBJECT_LOCATIONCHANGE : u32 = 32779u32 ; pub const EVENT_OBJECT_NAMECHANGE : u32 = 32780u32 ; pub const EVENT_OBJECT_PARENTCHANGE : u32 = 32783u32 ; pub const EVENT_OBJECT_REORDER : u32 = 32772u32 ; pub const EVENT_OBJECT_SELECTION : u32 = 32774u32 ; pub const EVENT_OBJECT_SELECTIONADD : u32 = 32775u32 ; pub const EVENT_OBJECT_SELECTIONREMOVE : u32 = 32776u32 ; pub const EVENT_OBJECT_SELECTIONWITHIN : u32 = 32777u32 ; pub const EVENT_OBJECT_SHOW : u32 = 32770u32 ; pub const EVENT_OBJECT_STATECHANGE : u32 = 32778u32 ; pub const EVENT_OBJECT_TEXTEDIT_CONVERSIONTARGETCHANGED : u32 = 32816u32 ; pub const EVENT_OBJECT_TEXTSELECTIONCHANGED : u32 = 32788u32 ; pub const EVENT_OBJECT_UNCLOAKED : u32 = 32792u32 ; pub const EVENT_OBJECT_VALUECHANGE : u32 = 32782u32 ; pub const EVENT_OEM_DEFINED_END : u32 = 511u32 ; pub const EVENT_OEM_DEFINED_START : u32 = 257u32 ; pub const EVENT_SYSTEM_ALERT : u32 = 2u32 ; pub const EVENT_SYSTEM_ARRANGMENTPREVIEW : u32 = 32790u32 ; pub const EVENT_SYSTEM_CAPTUREEND : u32 = 9u32 ; pub const EVENT_SYSTEM_CAPTURESTART : u32 = 8u32 ; pub const EVENT_SYSTEM_CONTEXTHELPEND : u32 = 13u32 ; pub const EVENT_SYSTEM_CONTEXTHELPSTART : u32 = 12u32 ; pub const EVENT_SYSTEM_DESKTOPSWITCH : u32 = 32u32 ; pub const EVENT_SYSTEM_DIALOGEND : u32 = 17u32 ; pub const EVENT_SYSTEM_DIALOGSTART : u32 = 16u32 ; pub const EVENT_SYSTEM_DRAGDROPEND : u32 = 15u32 ; pub const EVENT_SYSTEM_DRAGDROPSTART : u32 = 14u32 ; pub const EVENT_SYSTEM_END : u32 = 255u32 ; pub const EVENT_SYSTEM_FOREGROUND : u32 = 3u32 ; pub const EVENT_SYSTEM_IME_KEY_NOTIFICATION : u32 = 41u32 ; pub const EVENT_SYSTEM_MENUEND : u32 = 5u32 ; pub const EVENT_SYSTEM_MENUPOPUPEND : u32 = 7u32 ; pub const EVENT_SYSTEM_MENUPOPUPSTART : u32 = 6u32 ; pub const EVENT_SYSTEM_MENUSTART : u32 = 4u32 ; pub const EVENT_SYSTEM_MINIMIZEEND : u32 = 23u32 ; pub const EVENT_SYSTEM_MINIMIZESTART : u32 = 22u32 ; pub const EVENT_SYSTEM_MOVESIZEEND : u32 = 11u32 ; pub const EVENT_SYSTEM_MOVESIZESTART : u32 = 10u32 ; pub const EVENT_SYSTEM_SCROLLINGEND : u32 = 19u32 ; pub const EVENT_SYSTEM_SCROLLINGSTART : u32 = 18u32 ; pub const EVENT_SYSTEM_SOUND : u32 = 1u32 ; pub const EVENT_SYSTEM_SWITCHEND : u32 = 21u32 ; pub const EVENT_SYSTEM_SWITCHER_APPDROPPED : u32 = 38u32 ; pub const EVENT_SYSTEM_SWITCHER_APPGRABBED : u32 = 36u32 ; pub const EVENT_SYSTEM_SWITCHER_APPOVERTARGET : u32 = 37u32 ; pub const EVENT_SYSTEM_SWITCHER_CANCELLED : u32 = 39u32 ; pub const EVENT_SYSTEM_SWITCHSTART : u32 = 20u32 ; pub const EVENT_UIA_EVENTID_END : u32 = 20223u32 ; pub const EVENT_UIA_EVENTID_START : u32 = 19968u32 ; pub const EVENT_UIA_PROPID_END : u32 = 30207u32 ; pub const EVENT_UIA_PROPID_START : u32 = 29952u32 ; pub const EWX_ARSO : u32 = 67108864u32 ; pub const EWX_BOOTOPTIONS : u32 = 16777216u32 ; pub const EWX_FORCE : u32 = 4u32 ; pub const EWX_FORCEIFHUNG : u32 = 16u32 ; pub const EWX_QUICKRESOLVE : u32 = 32u32 ; pub unsafe fn EnableMenuItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidenableitem : u32 , uenable : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnableMenuItem ( hmenu : HMENU , uidenableitem : u32 , uenable : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } EnableMenuItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidenableitem ) , :: std :: mem :: transmute ( uenable ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndDeferWindowPos < > ( hwinposinfo : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndDeferWindowPos ( hwinposinfo : isize ) -> super::super::Foundation:: BOOL ; } EndDeferWindowPos ( :: std :: mem :: transmute ( hwinposinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndDialog < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nresult : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndDialog ( hdlg : super::super::Foundation:: HWND , nresult : isize ) -> super::super::Foundation:: BOOL ; } EndDialog ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndMenu < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndMenu ( ) -> super::super::Foundation:: BOOL ; } EndMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumChildWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumChildWindows ( hwndparent : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumChildWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCA > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsA ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr ) -> i32 ; } EnumPropsA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsExA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCEXA > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsExA ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } EnumPropsExA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsExW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCEXW > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsExW ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } EnumPropsExW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCW > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsW ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr ) -> i32 ; } EnumPropsW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumThreadWindows < 'a , > ( dwthreadid : u32 , lpfn : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumThreadWindows ( dwthreadid : u32 , lpfn : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumThreadWindows ( :: std :: mem :: transmute ( dwthreadid ) , :: std :: mem :: transmute ( lpfn ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumWindows < 'a , > ( lpenumfunc : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumWindows ( lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumWindows ( :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const FALT : u32 = 16u32 ; pub const FAPPCOMMAND_KEY : u32 = 0u32 ; pub const FAPPCOMMAND_MASK : u32 = 61440u32 ; pub const FAPPCOMMAND_MOUSE : u32 = 32768u32 ; pub const FAPPCOMMAND_OEM : u32 = 4096u32 ; pub const FCONTROL : u32 = 8u32 ; pub const FE_FONTSMOOTHINGCLEARTYPE : u32 = 2u32 ; pub const FE_FONTSMOOTHINGORIENTATIONBGR : u32 = 0u32 ; pub const FE_FONTSMOOTHINGORIENTATIONRGB : u32 = 1u32 ; pub const FE_FONTSMOOTHINGSTANDARD : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct FINDREPLACEA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PSTR , pub lpstrReplaceWith : super::super::Foundation:: PSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPFRHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl FINDREPLACEA { } impl :: std :: default :: Default for FINDREPLACEA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , lpstrFindWhat : :: std :: default :: Default :: default ( ) , lpstrReplaceWith : :: std :: default :: Default :: default ( ) , wFindWhatLen : 0 , wReplaceWithLen : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for FINDREPLACEA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FINDREPLACEA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "Flags" , & self . Flags ) . field ( "lpstrFindWhat" , & self . lpstrFindWhat ) . field ( "lpstrReplaceWith" , & self . lpstrReplaceWith ) . field ( "wFindWhatLen" , & self . wFindWhatLen ) . field ( "wReplaceWithLen" , & self . wReplaceWithLen ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FINDREPLACEA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . Flags == other . Flags && self . lpstrFindWhat == other . lpstrFindWhat && self . lpstrReplaceWith == other . lpstrReplaceWith && self . wFindWhatLen == other . wFindWhatLen && self . wReplaceWithLen == other . wReplaceWithLen && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for FINDREPLACEA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct FINDREPLACEA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PSTR , pub lpstrReplaceWith : super::super::Foundation:: PSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for FINDREPLACEA { type Abi = FINDREPLACEA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct FINDREPLACEW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PWSTR , pub lpstrReplaceWith : super::super::Foundation:: PWSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPFRHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl FINDREPLACEW { } impl :: std :: default :: Default for FINDREPLACEW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , lpstrFindWhat : :: std :: default :: Default :: default ( ) , lpstrReplaceWith : :: std :: default :: Default :: default ( ) , wFindWhatLen : 0 , wReplaceWithLen : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for FINDREPLACEW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FINDREPLACEW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "Flags" , & self . Flags ) . field ( "lpstrFindWhat" , & self . lpstrFindWhat ) . field ( "lpstrReplaceWith" , & self . lpstrReplaceWith ) . field ( "wFindWhatLen" , & self . wFindWhatLen ) . field ( "wReplaceWithLen" , & self . wReplaceWithLen ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FINDREPLACEW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . Flags == other . Flags && self . lpstrFindWhat == other . lpstrFindWhat && self . lpstrReplaceWith == other . lpstrReplaceWith && self . wFindWhatLen == other . wFindWhatLen && self . wReplaceWithLen == other . wReplaceWithLen && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for FINDREPLACEW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct FINDREPLACEW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PWSTR , pub lpstrReplaceWith : super::super::Foundation:: PWSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for FINDREPLACEW { type Abi = FINDREPLACEW_abi ; 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 FINDREPLACE_FLAGS ( pub u32 ) ; pub const FR_DIALOGTERM : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 64u32 ) ; pub const FR_DOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 1u32 ) ; pub const FR_ENABLEHOOK : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 256u32 ) ; pub const FR_ENABLETEMPLATE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 512u32 ) ; pub const FR_ENABLETEMPLATEHANDLE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 8192u32 ) ; pub const FR_FINDNEXT : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 8u32 ) ; pub const FR_HIDEUPDOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 16384u32 ) ; pub const FR_HIDEMATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 32768u32 ) ; pub const FR_HIDEWHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 65536u32 ) ; pub const FR_MATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 4u32 ) ; pub const FR_NOMATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 2048u32 ) ; pub const FR_NOUPDOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 1024u32 ) ; pub const FR_NOWHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 4096u32 ) ; pub const FR_REPLACE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 16u32 ) ; pub const FR_REPLACEALL : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 32u32 ) ; pub const FR_SHOWHELP : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 128u32 ) ; pub const FR_WHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for FINDREPLACE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for FINDREPLACE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for FINDREPLACE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for FINDREPLACE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for FINDREPLACE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for FINDREPLACE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const FKF_AVAILABLE : u32 = 2u32 ; pub const FKF_CLICKON : u32 = 64u32 ; pub const FKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const FKF_FILTERKEYSON : u32 = 1u32 ; pub const FKF_HOTKEYACTIVE : u32 = 4u32 ; pub const FKF_HOTKEYSOUND : u32 = 16u32 ; pub const FKF_INDICATOR : u32 = 32u32 ; pub const FNOINVERT : u32 = 2u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct FOREGROUND_WINDOW_LOCK_CODE ( pub u32 ) ; pub const LSFW_LOCK : FOREGROUND_WINDOW_LOCK_CODE = FOREGROUND_WINDOW_LOCK_CODE ( 1u32 ) ; pub const LSFW_UNLOCK : FOREGROUND_WINDOW_LOCK_CODE = FOREGROUND_WINDOW_LOCK_CODE ( 2u32 ) ; impl :: std :: convert :: From < u32 > for FOREGROUND_WINDOW_LOCK_CODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for FOREGROUND_WINDOW_LOCK_CODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for FOREGROUND_WINDOW_LOCK_CODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for FOREGROUND_WINDOW_LOCK_CODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for FOREGROUND_WINDOW_LOCK_CODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for FOREGROUND_WINDOW_LOCK_CODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const FRM_FIRST : u32 = 1124u32 ; pub const FRM_LAST : u32 = 1224u32 ; pub const FRM_SETOPERATIONRESULT : u32 = 1124u32 ; pub const FRM_SETOPERATIONRESULTTEXT : u32 = 1125u32 ; pub const FR_NOWRAPAROUND : u32 = 524288u32 ; pub const FR_RAW : u32 = 131072u32 ; pub const FR_SHOWWRAPAROUND : u32 = 262144u32 ; pub const FR_WRAPAROUND : u32 = 1048576u32 ; pub const FSHIFT : u32 = 4u32 ; pub const FVIRTKEY : u32 = 1u32 ; pub unsafe fn FindTextA < > ( param0 : * mut FINDREPLACEA , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn FindTextA ( param0 : * mut FINDREPLACEA_abi ) -> super::super::Foundation:: HWND ; } FindTextA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindTextW < > ( param0 : * mut FINDREPLACEW , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn FindTextW ( param0 : * mut FINDREPLACEW_abi ) -> super::super::Foundation:: HWND ; } FindTextW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowA ( lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HWND ; } FindWindowA ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowExA < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndchildafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszwindow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowExA ( hwndparent : super::super::Foundation:: HWND , hwndchildafter : super::super::Foundation:: HWND , lpszclass : super::super::Foundation:: PSTR , lpszwindow : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HWND ; } FindWindowExA ( hwndparent . into_param ( ) . abi ( ) , hwndchildafter . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , lpszwindow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowExW < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndchildafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszwindow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowExW ( hwndparent : super::super::Foundation:: HWND , hwndchildafter : super::super::Foundation:: HWND , lpszclass : super::super::Foundation:: PWSTR , lpszwindow : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HWND ; } FindWindowExW ( hwndparent . into_param ( ) . abi ( ) , hwndchildafter . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , lpszwindow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowW ( lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HWND ; } FindWindowW ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const GCF_INCLUDE_ANCESTORS : 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 GDI_IMAGE_TYPE ( pub u32 ) ; pub const IMAGE_BITMAP : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 0u32 ) ; pub const IMAGE_CURSOR : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 2u32 ) ; pub const IMAGE_ICON : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 1u32 ) ; impl :: std :: convert :: From < u32 > for GDI_IMAGE_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GDI_IMAGE_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GDI_IMAGE_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GDI_IMAGE_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GDI_IMAGE_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GDI_IMAGE_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GESTURECONFIGMAXCOUNT : u32 = 256u32 ; pub const GESTUREVISUALIZATION_DOUBLETAP : u32 = 2u32 ; pub const GESTUREVISUALIZATION_OFF : u32 = 0u32 ; pub const GESTUREVISUALIZATION_ON : u32 = 31u32 ; pub const GESTUREVISUALIZATION_PRESSANDHOLD : u32 = 8u32 ; pub const GESTUREVISUALIZATION_PRESSANDTAP : u32 = 4u32 ; pub const GESTUREVISUALIZATION_RIGHTTAP : u32 = 16u32 ; pub const GESTUREVISUALIZATION_TAP : 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 GET_ANCESTOR_FLAGS ( pub u32 ) ; pub const GA_PARENT : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 1u32 ) ; pub const GA_ROOT : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 2u32 ) ; pub const GA_ROOTOWNER : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 3u32 ) ; impl :: std :: convert :: From < u32 > for GET_ANCESTOR_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_ANCESTOR_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_ANCESTOR_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_ANCESTOR_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_ANCESTOR_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_ANCESTOR_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct GET_CLASS_LONG_INDEX ( pub i32 ) ; pub const GCW_ATOM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -32i32 ) ; pub const GCL_CBCLSEXTRA : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -20i32 ) ; pub const GCL_CBWNDEXTRA : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -18i32 ) ; pub const GCL_HBRBACKGROUND : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -10i32 ) ; pub const GCL_HCURSOR : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -12i32 ) ; pub const GCL_HICON : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -14i32 ) ; pub const GCL_HICONSM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -34i32 ) ; pub const GCL_HMODULE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -16i32 ) ; pub const GCL_MENUNAME : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -8i32 ) ; pub const GCL_STYLE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -26i32 ) ; pub const GCL_WNDPROC : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -24i32 ) ; pub const GCLP_HBRBACKGROUND : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -10i32 ) ; pub const GCLP_HCURSOR : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -12i32 ) ; pub const GCLP_HICON : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -14i32 ) ; pub const GCLP_HICONSM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -34i32 ) ; pub const GCLP_HMODULE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -16i32 ) ; pub const GCLP_MENUNAME : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -8i32 ) ; pub const GCLP_WNDPROC : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -24i32 ) ; impl :: std :: convert :: From < i32 > for GET_CLASS_LONG_INDEX { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_CLASS_LONG_INDEX { 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 GET_MENU_DEFAULT_ITEM_FLAGS ( pub u32 ) ; pub const GMDI_GOINTOPOPUPS : GET_MENU_DEFAULT_ITEM_FLAGS = GET_MENU_DEFAULT_ITEM_FLAGS ( 2u32 ) ; pub const GMDI_USEDISABLED : GET_MENU_DEFAULT_ITEM_FLAGS = GET_MENU_DEFAULT_ITEM_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for GET_MENU_DEFAULT_ITEM_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_MENU_DEFAULT_ITEM_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_MENU_DEFAULT_ITEM_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_MENU_DEFAULT_ITEM_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_MENU_DEFAULT_ITEM_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_MENU_DEFAULT_ITEM_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct GET_WINDOW_CMD ( pub u32 ) ; pub const GW_CHILD : GET_WINDOW_CMD = GET_WINDOW_CMD ( 5u32 ) ; pub const GW_ENABLEDPOPUP : GET_WINDOW_CMD = GET_WINDOW_CMD ( 6u32 ) ; pub const GW_HWNDFIRST : GET_WINDOW_CMD = GET_WINDOW_CMD ( 0u32 ) ; pub const GW_HWNDLAST : GET_WINDOW_CMD = GET_WINDOW_CMD ( 1u32 ) ; pub const GW_HWNDNEXT : GET_WINDOW_CMD = GET_WINDOW_CMD ( 2u32 ) ; pub const GW_HWNDPREV : GET_WINDOW_CMD = GET_WINDOW_CMD ( 3u32 ) ; pub const GW_OWNER : GET_WINDOW_CMD = GET_WINDOW_CMD ( 4u32 ) ; impl :: std :: convert :: From < u32 > for GET_WINDOW_CMD { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_WINDOW_CMD { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_WINDOW_CMD { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_WINDOW_CMD { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_WINDOW_CMD { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_WINDOW_CMD { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GF_BEGIN : u32 = 1u32 ; pub const GF_END : u32 = 4u32 ; pub const GF_INERTIA : u32 = 2u32 ; pub const GIDC_ARRIVAL : u32 = 1u32 ; pub const GIDC_REMOVAL : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct GUITHREADINFO { pub cbSize : u32 , pub flags : GUITHREADINFO_FLAGS , pub hwndActive : super::super::Foundation:: HWND , pub hwndFocus : super::super::Foundation:: HWND , pub hwndCapture : super::super::Foundation:: HWND , pub hwndMenuOwner : super::super::Foundation:: HWND , pub hwndMoveSize : super::super::Foundation:: HWND , pub hwndCaret : super::super::Foundation:: HWND , pub rcCaret : super::super::Foundation:: RECT } impl GUITHREADINFO { } impl :: std :: default :: Default for GUITHREADINFO { fn default ( ) -> Self { Self { cbSize : 0 , flags : :: std :: default :: Default :: default ( ) , hwndActive : :: std :: default :: Default :: default ( ) , hwndFocus : :: std :: default :: Default :: default ( ) , hwndCapture : :: std :: default :: Default :: default ( ) , hwndMenuOwner : :: std :: default :: Default :: default ( ) , hwndMoveSize : :: std :: default :: Default :: default ( ) , hwndCaret : :: std :: default :: Default :: default ( ) , rcCaret : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for GUITHREADINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "GUITHREADINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "flags" , & self . flags ) . field ( "hwndActive" , & self . hwndActive ) . field ( "hwndFocus" , & self . hwndFocus ) . field ( "hwndCapture" , & self . hwndCapture ) . field ( "hwndMenuOwner" , & self . hwndMenuOwner ) . field ( "hwndMoveSize" , & self . hwndMoveSize ) . field ( "hwndCaret" , & self . hwndCaret ) . field ( "rcCaret" , & self . rcCaret ) . finish ( ) } } impl :: std :: cmp :: PartialEq for GUITHREADINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . flags == other . flags && self . hwndActive == other . hwndActive && self . hwndFocus == other . hwndFocus && self . hwndCapture == other . hwndCapture && self . hwndMenuOwner == other . hwndMenuOwner && self . hwndMoveSize == other . hwndMoveSize && self . hwndCaret == other . hwndCaret && self . rcCaret == other . rcCaret } } impl :: std :: cmp :: Eq for GUITHREADINFO { } unsafe impl :: windows :: Abi for GUITHREADINFO { 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 GUITHREADINFO_FLAGS ( pub u32 ) ; pub const GUI_CARETBLINKING : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 1u32 ) ; pub const GUI_INMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 4u32 ) ; pub const GUI_INMOVESIZE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 2u32 ) ; pub const GUI_POPUPMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 16u32 ) ; pub const GUI_SYSTEMMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for GUITHREADINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GUITHREADINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GUITHREADINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GUITHREADINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GUITHREADINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GUITHREADINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GUI_16BITTASK : u32 = 0u32 ; pub const GWFS_INCLUDE_ANCESTORS : u32 = 1u32 ; pub const GW_MAX : u32 = 5u32 ; pub unsafe fn GetAltTabInfoA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PSTR , cchitemtext : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAltTabInfoA ( hwnd : super::super::Foundation:: HWND , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PSTR , cchitemtext : u32 ) -> super::super::Foundation:: BOOL ; } GetAltTabInfoA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( iitem ) , :: std :: mem :: transmute ( pati ) , :: std :: mem :: transmute ( pszitemtext ) , :: std :: mem :: transmute ( cchitemtext ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetAltTabInfoW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PWSTR , cchitemtext : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAltTabInfoW ( hwnd : super::super::Foundation:: HWND , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PWSTR , cchitemtext : u32 ) -> super::super::Foundation:: BOOL ; } GetAltTabInfoW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( iitem ) , :: std :: mem :: transmute ( pati ) , :: std :: mem :: transmute ( pszitemtext ) , :: std :: mem :: transmute ( cchitemtext ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetAncestor < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , gaflags : GET_ANCESTOR_FLAGS , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAncestor ( hwnd : super::super::Foundation:: HWND , gaflags : GET_ANCESTOR_FLAGS ) -> super::super::Foundation:: HWND ; } GetAncestor ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( gaflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCaretBlinkTime < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCaretBlinkTime ( ) -> u32 ; } GetCaretBlinkTime ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCaretPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCaretPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetCaretPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwndclass : * mut WNDCLASSA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoA ( hinstance : super::super::Foundation:: HINSTANCE , lpclassname : super::super::Foundation:: PSTR , lpwndclass : * mut WNDCLASSA_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoA ( hinstance . into_param ( ) . abi ( ) , lpclassname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoExA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwcx : * mut WNDCLASSEXA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoExA ( hinstance : super::super::Foundation:: HINSTANCE , lpszclass : super::super::Foundation:: PSTR , lpwcx : * mut WNDCLASSEXA_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoExA ( hinstance . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwcx ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoExW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwcx : * mut WNDCLASSEXW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoExW ( hinstance : super::super::Foundation:: HINSTANCE , lpszclass : super::super::Foundation:: PWSTR , lpwcx : * mut WNDCLASSEXW_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoExW ( hinstance . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwcx ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwndclass : * mut WNDCLASSW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoW ( hinstance : super::super::Foundation:: HINSTANCE , lpclassname : super::super::Foundation:: PWSTR , lpwndclass : * mut WNDCLASSW_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoW ( hinstance . into_param ( ) . abi ( ) , lpclassname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> u32 ; } GetClassLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> usize ; } GetClassLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> usize ; } GetClassLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> u32 ; } GetClassLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassNameA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpclassname : super::super::Foundation:: PSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassNameA ( hwnd : super::super::Foundation:: HWND , lpclassname : super::super::Foundation:: PSTR , nmaxcount : i32 ) -> i32 ; } GetClassNameA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpclassname ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassNameW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpclassname : super::super::Foundation:: PWSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassNameW ( hwnd : super::super::Foundation:: HWND , lpclassname : super::super::Foundation:: PWSTR , nmaxcount : i32 ) -> i32 ; } GetClassNameW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpclassname ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 ) -> u16 ; } GetClassWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClientRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClientRect ( hwnd : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetClientRect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClipCursor < > ( lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClipCursor ( lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetClipCursor ( :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursor < > ( ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursor ( ) -> HCURSOR ; } GetCursor ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursorInfo < > ( pci : * mut CURSORINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursorInfo ( pci : * mut CURSORINFO ) -> super::super::Foundation:: BOOL ; } GetCursorInfo ( :: std :: mem :: transmute ( pci ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursorPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursorPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetCursorPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDesktopWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDesktopWindow ( ) -> super::super::Foundation:: HWND ; } GetDesktopWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDialogBaseUnits < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDialogBaseUnits ( ) -> i32 ; } GetDialogBaseUnits ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgCtrlID < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgCtrlID ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetDlgCtrlID ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItem ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 ) -> super::super::Foundation:: HWND ; } GetDlgItem ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemInt < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lptranslated : * mut super::super::Foundation:: BOOL , bsigned : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemInt ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lptranslated : * mut super::super::Foundation:: BOOL , bsigned : super::super::Foundation:: BOOL ) -> u32 ; } GetDlgItemInt ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lptranslated ) , bsigned . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemTextA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemTextA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 ) -> u32 ; } GetDlgItemTextA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemTextW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemTextW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 ) -> u32 ; } GetDlgItemTextW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDpiAwarenessContextForProcess < 'a , > ( hprocess : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::System::SystemServices:: DPI_AWARENESS_CONTEXT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDpiAwarenessContextForProcess ( hprocess : super::super::Foundation:: HANDLE ) -> super::super::System::SystemServices:: DPI_AWARENESS_CONTEXT ; } GetDpiAwarenessContextForProcess ( hprocess . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetFileTitleA < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , buf : super::super::Foundation:: PSTR , cchsize : u16 , ) -> i16 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetFileTitleA ( param0 : super::super::Foundation:: PSTR , buf : super::super::Foundation:: PSTR , cchsize : u16 ) -> i16 ; } GetFileTitleA ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( buf ) , :: std :: mem :: transmute ( cchsize ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetFileTitleW < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , buf : super::super::Foundation:: PWSTR , cchsize : u16 , ) -> i16 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetFileTitleW ( param0 : super::super::Foundation:: PWSTR , buf : super::super::Foundation:: PWSTR , cchsize : u16 ) -> i16 ; } GetFileTitleW ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( buf ) , :: std :: mem :: transmute ( cchsize ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetForegroundWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetForegroundWindow ( ) -> super::super::Foundation:: HWND ; } GetForegroundWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetGUIThreadInfo < > ( idthread : u32 , pgui : * mut GUITHREADINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetGUIThreadInfo ( idthread : u32 , pgui : * mut GUITHREADINFO ) -> super::super::Foundation:: BOOL ; } GetGUIThreadInfo ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( pgui ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfo < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfo ( hicon : HICON , piconinfo : * mut ICONINFO ) -> super::super::Foundation:: BOOL ; } GetIconInfo ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfoExA < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFOEXA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfoExA ( hicon : HICON , piconinfo : * mut ICONINFOEXA ) -> super::super::Foundation:: BOOL ; } GetIconInfoExA ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfoExW < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFOEXW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfoExW ( hicon : HICON , piconinfo : * mut ICONINFOEXW ) -> super::super::Foundation:: BOOL ; } GetIconInfoExW ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetInputState < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetInputState ( ) -> super::super::Foundation:: BOOL ; } GetInputState ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetLastActivePopup < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetLastActivePopup ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetLastActivePopup ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetLayeredWindowAttributes < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pcrkey : * mut u32 , pbalpha : * mut u8 , pdwflags : * mut LAYERED_WINDOW_ATTRIBUTES_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetLayeredWindowAttributes ( hwnd : super::super::Foundation:: HWND , pcrkey : * mut u32 , pbalpha : * mut u8 , pdwflags : * mut LAYERED_WINDOW_ATTRIBUTES_FLAGS ) -> super::super::Foundation:: BOOL ; } GetLayeredWindowAttributes ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pcrkey ) , :: std :: mem :: transmute ( pbalpha ) , :: std :: mem :: transmute ( pdwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenu ( hwnd : super::super::Foundation:: HWND ) -> HMENU ; } GetMenu ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuBarInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , idobject : super::Controls:: SCROLLBAR_OBJID , iditem : i32 , pmbi : * mut MENUBARINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuBarInfo ( hwnd : super::super::Foundation:: HWND , idobject : super::Controls:: SCROLLBAR_OBJID , iditem : i32 , pmbi : * mut MENUBARINFO ) -> super::super::Foundation:: BOOL ; } GetMenuBarInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( idobject ) , :: std :: mem :: transmute ( iditem ) , :: std :: mem :: transmute ( pmbi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuCheckMarkDimensions < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuCheckMarkDimensions ( ) -> i32 ; } GetMenuCheckMarkDimensions ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuDefaultItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , fbypos : u32 , gmdiflags : GET_MENU_DEFAULT_ITEM_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuDefaultItem ( hmenu : HMENU , fbypos : u32 , gmdiflags : GET_MENU_DEFAULT_ITEM_FLAGS ) -> u32 ; } GetMenuDefaultItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fbypos ) , :: std :: mem :: transmute ( gmdiflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuInfo < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , HMENU > , param1 : * mut MENUINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuInfo ( param0 : HMENU , param1 : * mut MENUINFO ) -> super::super::Foundation:: BOOL ; } GetMenuInfo ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( param1 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemCount < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemCount ( hmenu : HMENU ) -> i32 ; } GetMenuItemCount ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemID < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , npos : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemID ( hmenu : HMENU , npos : i32 ) -> u32 ; } GetMenuItemID ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( npos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemInfoA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemInfoA ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } GetMenuItemInfoA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemInfoW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemInfoW ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } GetMenuItemInfoW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uitem : u32 , lprcitem : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemRect ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , uitem : u32 , lprcitem : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetMenuItemRect ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uitem ) , :: std :: mem :: transmute ( lprcitem ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuState < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uid : u32 , uflags : MENU_ITEM_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuState ( hmenu : HMENU , uid : u32 , uflags : MENU_ITEM_FLAGS ) -> u32 ; } GetMenuState ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuStringA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uiditem : u32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuStringA ( hmenu : HMENU , uiditem : u32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS ) -> i32 ; } GetMenuStringA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uiditem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuStringW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uiditem : u32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuStringW ( hmenu : HMENU , uiditem : u32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS ) -> i32 ; } GetMenuStringW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uiditem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageA < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageA ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 ) -> super::super::Foundation:: BOOL ; } GetMessageA ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageExtraInfo < > ( ) -> super::super::Foundation:: LPARAM { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageExtraInfo ( ) -> super::super::Foundation:: LPARAM ; } GetMessageExtraInfo ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessagePos < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessagePos ( ) -> u32 ; } GetMessagePos ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageTime < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageTime ( ) -> i32 ; } GetMessageTime ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageW < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageW ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 ) -> super::super::Foundation:: BOOL ; } GetMessageW ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetNextDlgGroupItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hctl : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , bprevious : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetNextDlgGroupItem ( hdlg : super::super::Foundation:: HWND , hctl : super::super::Foundation:: HWND , bprevious : super::super::Foundation:: BOOL ) -> super::super::Foundation:: HWND ; } GetNextDlgGroupItem ( hdlg . into_param ( ) . abi ( ) , hctl . into_param ( ) . abi ( ) , bprevious . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetNextDlgTabItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hctl : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , bprevious : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetNextDlgTabItem ( hdlg : super::super::Foundation:: HWND , hctl : super::super::Foundation:: HWND , bprevious : super::super::Foundation:: BOOL ) -> super::super::Foundation:: HWND ; } GetNextDlgTabItem ( hdlg . into_param ( ) . abi ( ) , hctl . into_param ( ) . abi ( ) , bprevious . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetOpenFileNameA < > ( param0 : * mut OPENFILENAMEA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetOpenFileNameA ( param0 : * mut OPENFILENAMEA_abi ) -> super::super::Foundation:: BOOL ; } GetOpenFileNameA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetOpenFileNameW < > ( param0 : * mut OPENFILENAMEW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetOpenFileNameW ( param0 : * mut OPENFILENAMEW_abi ) -> super::super::Foundation:: BOOL ; } GetOpenFileNameW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetParent < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetParent ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetParent ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPhysicalCursorPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPhysicalCursorPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetPhysicalCursorPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetProcessDefaultLayout < > ( pdwdefaultlayout : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetProcessDefaultLayout ( pdwdefaultlayout : * mut u32 ) -> super::super::Foundation:: BOOL ; } GetProcessDefaultLayout ( :: std :: mem :: transmute ( pdwdefaultlayout ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HANDLE ; } GetPropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } GetPropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetQueueStatus < > ( flags : QUEUE_STATUS_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetQueueStatus ( flags : QUEUE_STATUS_FLAGS ) -> u32 ; } GetQueueStatus ( :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSaveFileNameA < > ( param0 : * mut OPENFILENAMEA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetSaveFileNameA ( param0 : * mut OPENFILENAMEA_abi ) -> super::super::Foundation:: BOOL ; } GetSaveFileNameA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSaveFileNameW < > ( param0 : * mut OPENFILENAMEW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetSaveFileNameW ( param0 : * mut OPENFILENAMEW_abi ) -> super::super::Foundation:: BOOL ; } GetSaveFileNameW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetShellWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetShellWindow ( ) -> super::super::Foundation:: HWND ; } GetShellWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSubMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , npos : i32 , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSubMenu ( hmenu : HMENU , npos : i32 ) -> HMENU ; } GetSubMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( npos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSysColor < > ( nindex : SYS_COLOR_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSysColor ( nindex : SYS_COLOR_INDEX ) -> u32 ; } GetSysColor ( :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSystemMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , brevert : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSystemMenu ( hwnd : super::super::Foundation:: HWND , brevert : super::super::Foundation:: BOOL ) -> HMENU ; } GetSystemMenu ( hwnd . into_param ( ) . abi ( ) , brevert . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSystemMetrics < > ( nindex : SYSTEM_METRICS_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSystemMetrics ( nindex : SYSTEM_METRICS_INDEX ) -> i32 ; } GetSystemMetrics ( :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetTitleBarInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pti : * mut TITLEBARINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetTitleBarInfo ( hwnd : super::super::Foundation:: HWND , pti : * mut TITLEBARINFO ) -> super::super::Foundation:: BOOL ; } GetTitleBarInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pti ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetTopWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetTopWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetTopWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ucmd : GET_WINDOW_CMD , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindow ( hwnd : super::super::Foundation:: HWND , ucmd : GET_WINDOW_CMD ) -> super::super::Foundation:: HWND ; } GetWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ucmd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowDisplayAffinity < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pdwaffinity : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowDisplayAffinity ( hwnd : super::super::Foundation:: HWND , pdwaffinity : * mut u32 ) -> super::super::Foundation:: BOOL ; } GetWindowDisplayAffinity ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdwaffinity ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pwi : * mut WINDOWINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowInfo ( hwnd : super::super::Foundation:: HWND , pwi : * mut WINDOWINFO ) -> super::super::Foundation:: BOOL ; } GetWindowInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pwi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> i32 ; } GetWindowLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> isize ; } GetWindowLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> isize ; } GetWindowLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> i32 ; } GetWindowLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowModuleFileNameA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pszfilename : super::super::Foundation:: PSTR , cchfilenamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowModuleFileNameA ( hwnd : super::super::Foundation:: HWND , pszfilename : super::super::Foundation:: PSTR , cchfilenamemax : u32 ) -> u32 ; } GetWindowModuleFileNameA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pszfilename ) , :: std :: mem :: transmute ( cchfilenamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowModuleFileNameW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pszfilename : super::super::Foundation:: PWSTR , cchfilenamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowModuleFileNameW ( hwnd : super::super::Foundation:: HWND , pszfilename : super::super::Foundation:: PWSTR , cchfilenamemax : u32 ) -> u32 ; } GetWindowModuleFileNameW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pszfilename ) , :: std :: mem :: transmute ( cchfilenamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowPlacement < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpwndpl : * mut WINDOWPLACEMENT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowPlacement ( hwnd : super::super::Foundation:: HWND , lpwndpl : * mut WINDOWPLACEMENT ) -> super::super::Foundation:: BOOL ; } GetWindowPlacement ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndpl ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowRect ( hwnd : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetWindowRect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : super::super::Foundation:: PSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR , nmaxcount : i32 ) -> i32 ; } GetWindowTextA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextLengthA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextLengthA ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetWindowTextLengthA ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextLengthW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextLengthW ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetWindowTextLengthW ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : super::super::Foundation:: PWSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR , nmaxcount : i32 ) -> i32 ; } GetWindowTextW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowThreadProcessId < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdwprocessid : * mut u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowThreadProcessId ( hwnd : super::super::Foundation:: HWND , lpdwprocessid : * mut u32 ) -> u32 ; } GetWindowThreadProcessId ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdwprocessid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 ) -> u16 ; } GetWindowWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HACCEL ( pub isize ) ; impl HACCEL { } impl :: std :: default :: Default for HACCEL { fn default ( ) -> Self { Self ( 0 ) } } impl HACCEL { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HACCEL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HACCEL" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HACCEL { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HACCEL { } unsafe impl :: windows :: Abi for HACCEL { 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 HANDEDNESS ( pub i32 ) ; pub const HANDEDNESS_LEFT : HANDEDNESS = HANDEDNESS ( 0i32 ) ; pub const HANDEDNESS_RIGHT : HANDEDNESS = HANDEDNESS ( 1i32 ) ; impl :: std :: convert :: From < i32 > for HANDEDNESS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for HANDEDNESS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct HARDWAREHOOKSTRUCT { pub hwnd : super::super::Foundation:: HWND , pub message : u32 , pub wParam : super::super::Foundation:: WPARAM , pub lParam : super::super::Foundation:: LPARAM } impl HARDWAREHOOKSTRUCT { } impl :: std :: default :: Default for HARDWAREHOOKSTRUCT { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , message : 0 , wParam : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for HARDWAREHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HARDWAREHOOKSTRUCT" ) . field ( "hwnd" , & self . hwnd ) . field ( "message" , & self . message ) . field ( "wParam" , & self . wParam ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HARDWAREHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . message == other . message && self . wParam == other . wParam && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for HARDWAREHOOKSTRUCT { } unsafe impl :: windows :: Abi for HARDWAREHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const HBMMENU_CALLBACK : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( -1i32 as _ ) ; pub const HBMMENU_MBAR_CLOSE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 5i32 as _ ) ; pub const HBMMENU_MBAR_CLOSE_D : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 6i32 as _ ) ; pub const HBMMENU_MBAR_MINIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 3i32 as _ ) ; pub const HBMMENU_MBAR_MINIMIZE_D : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 7i32 as _ ) ; pub const HBMMENU_MBAR_RESTORE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 2i32 as _ ) ; pub const HBMMENU_POPUP_CLOSE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 8i32 as _ ) ; pub const HBMMENU_POPUP_MAXIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 10i32 as _ ) ; pub const HBMMENU_POPUP_MINIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 11i32 as _ ) ; pub const HBMMENU_POPUP_RESTORE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 9i32 as _ ) ; pub const HBMMENU_SYSTEM : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 1i32 as _ ) ; pub const HCBT_ACTIVATE : u32 = 5u32 ; pub const HCBT_CLICKSKIPPED : u32 = 6u32 ; pub const HCBT_CREATEWND : u32 = 3u32 ; pub const HCBT_DESTROYWND : u32 = 4u32 ; pub const HCBT_KEYSKIPPED : u32 = 7u32 ; pub const HCBT_MINMAX : u32 = 1u32 ; pub const HCBT_MOVESIZE : u32 = 0u32 ; pub const HCBT_QS : u32 = 2u32 ; pub const HCBT_SETFOCUS : u32 = 9u32 ; pub const HCBT_SYSCOMMAND : u32 = 8u32 ; pub const HCF_DEFAULTDESKTOP : u32 = 512u32 ; pub const HCF_LOGONDESKTOP : u32 = 256u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HCURSOR ( pub isize ) ; impl HCURSOR { } impl :: std :: default :: Default for HCURSOR { fn default ( ) -> Self { Self ( 0 ) } } impl HCURSOR { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HCURSOR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HCURSOR" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HCURSOR { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HCURSOR { } unsafe impl :: windows :: Abi for HCURSOR { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HICON > for HCURSOR { fn into_param ( self ) -> :: windows :: Param < 'a , HICON > { :: windows :: Param :: Owned ( HICON ( self . 0 ) ) } } pub const HC_ACTION : u32 = 0u32 ; pub const HC_GETNEXT : u32 = 1u32 ; pub const HC_NOREMOVE : u32 = 3u32 ; pub const HC_SKIP : u32 = 2u32 ; pub const HC_SYSMODALOFF : u32 = 5u32 ; pub const HC_SYSMODALON : u32 = 4u32 ; pub const HELPINFO_MENUITEM : u32 = 2u32 ; pub const HELPINFO_WINDOW : u32 = 1u32 ; pub const HELP_COMMAND : i32 = 258i32 ; pub const HELP_CONTENTS : i32 = 3i32 ; pub const HELP_CONTEXT : i32 = 1i32 ; pub const HELP_CONTEXTMENU : u32 = 10u32 ; pub const HELP_CONTEXTPOPUP : i32 = 8i32 ; pub const HELP_FINDER : u32 = 11u32 ; pub const HELP_FORCEFILE : i32 = 9i32 ; pub const HELP_HELPONHELP : i32 = 4i32 ; pub const HELP_INDEX : i32 = 3i32 ; pub const HELP_KEY : i32 = 257i32 ; pub const HELP_MULTIKEY : i32 = 513i32 ; pub const HELP_PARTIALKEY : i32 = 261i32 ; pub const HELP_QUIT : i32 = 2i32 ; pub const HELP_SETCONTENTS : i32 = 5i32 ; pub const HELP_SETINDEX : i32 = 5i32 ; pub const HELP_SETPOPUP_POS : u32 = 13u32 ; pub const HELP_SETWINPOS : i32 = 515i32 ; pub const HELP_TCARD : u32 = 32768u32 ; pub const HELP_TCARD_DATA : u32 = 16u32 ; pub const HELP_TCARD_OTHER_CALLER : u32 = 17u32 ; pub const HELP_WM_HELP : u32 = 12u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HHOOK ( pub isize ) ; impl HHOOK { } impl :: std :: default :: Default for HHOOK { fn default ( ) -> Self { Self ( 0 ) } } impl HHOOK { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HHOOK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HHOOK" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HHOOK { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HHOOK { } unsafe impl :: windows :: Abi for HHOOK { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HICON ( pub isize ) ; impl HICON { } impl :: std :: default :: Default for HICON { fn default ( ) -> Self { Self ( 0 ) } } impl HICON { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HICON { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HICON" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HICON { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HICON { } unsafe impl :: windows :: Abi for HICON { type Abi = Self ; type DefaultType = Self ; } pub const HIDE_WINDOW : u32 = 0u32 ; pub const HKL_NEXT : u32 = 1u32 ; pub const HKL_PREV : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HMENU ( pub isize ) ; impl HMENU { } impl :: std :: default :: Default for HMENU { fn default ( ) -> Self { Self ( 0 ) } } impl HMENU { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HMENU { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HMENU" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HMENU { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HMENU { } unsafe impl :: windows :: Abi for HMENU { type Abi = Self ; type DefaultType = Self ; } pub type HOOKPROC = unsafe extern "system" fn ( code : i32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; pub const HSHELL_ACCESSIBILITYSTATE : u32 = 11u32 ; pub const HSHELL_ACTIVATESHELLWINDOW : u32 = 3u32 ; pub const HSHELL_APPCOMMAND : u32 = 12u32 ; pub const HSHELL_ENDTASK : u32 = 10u32 ; pub const HSHELL_GETMINRECT : u32 = 5u32 ; pub const HSHELL_HIGHBIT : u32 = 32768u32 ; pub const HSHELL_LANGUAGE : u32 = 8u32 ; pub const HSHELL_MONITORCHANGED : u32 = 16u32 ; pub const HSHELL_REDRAW : u32 = 6u32 ; pub const HSHELL_SYSMENU : u32 = 9u32 ; pub const HSHELL_TASKMAN : u32 = 7u32 ; pub const HSHELL_WINDOWACTIVATED : u32 = 4u32 ; pub const HSHELL_WINDOWCREATED : u32 = 1u32 ; pub const HSHELL_WINDOWDESTROYED : u32 = 2u32 ; pub const HSHELL_WINDOWREPLACED : u32 = 13u32 ; pub const HSHELL_WINDOWREPLACING : u32 = 14u32 ; pub const HTBORDER : u32 = 18u32 ; pub const HTBOTTOM : u32 = 15u32 ; pub const HTBOTTOMLEFT : u32 = 16u32 ; pub const HTBOTTOMRIGHT : u32 = 17u32 ; pub const HTCAPTION : u32 = 2u32 ; pub const HTCLIENT : u32 = 1u32 ; pub const HTCLOSE : u32 = 20u32 ; pub const HTERROR : i32 = -2i32 ; pub const HTGROWBOX : u32 = 4u32 ; pub const HTHELP : u32 = 21u32 ; pub const HTHSCROLL : u32 = 6u32 ; pub const HTLEFT : u32 = 10u32 ; pub const HTMAXBUTTON : u32 = 9u32 ; pub const HTMENU : u32 = 5u32 ; pub const HTMINBUTTON : u32 = 8u32 ; pub const HTNOWHERE : u32 = 0u32 ; pub const HTOBJECT : u32 = 19u32 ; pub const HTRIGHT : u32 = 11u32 ; pub const HTSYSMENU : u32 = 3u32 ; pub const HTTOP : u32 = 12u32 ; pub const HTTOPLEFT : u32 = 13u32 ; pub const HTTOPRIGHT : u32 = 14u32 ; pub const HTTRANSPARENT : i32 = -1i32 ; pub const HTVSCROLL : u32 = 7u32 ; pub const HWND_BOTTOM : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 1i32 as _ ) ; pub const HWND_DESKTOP : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 0i32 as _ ) ; pub const HWND_MESSAGE : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -3i32 as _ ) ; pub const HWND_NOTOPMOST : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -2i32 as _ ) ; pub const HWND_TOP : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 0i32 as _ ) ; pub const HWND_TOPMOST : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -1i32 as _ ) ; pub unsafe fn HideCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn HideCaret ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } HideCaret ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn HiliteMenuItem < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidhiliteitem : u32 , uhilite : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn HiliteMenuItem ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , uidhiliteitem : u32 , uhilite : u32 ) -> super::super::Foundation:: BOOL ; } HiliteMenuItem ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidhiliteitem ) , :: std :: mem :: transmute ( uhilite ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFO { pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP } impl ICONINFO { } impl :: std :: default :: Default for ICONINFO { fn default ( ) -> Self { Self { fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFO" ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFO { fn eq ( & self , other : & Self ) -> bool { self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor } } impl :: std :: cmp :: Eq for ICONINFO { } unsafe impl :: windows :: Abi for ICONINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFOEXA { pub cbSize : u32 , pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP , pub wResID : u16 , pub szModName : [ super::super::System::SystemServices:: CHAR ;260 ] , pub szResName : [ super::super::System::SystemServices:: CHAR ;260 ] } impl ICONINFOEXA { } impl :: std :: default :: Default for ICONINFOEXA { fn default ( ) -> Self { Self { cbSize : 0 , fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) , wResID : 0 , szModName : [ :: std :: default :: Default :: default ( ) ;260 ] , szResName : [ :: std :: default :: Default :: default ( ) ;260 ] } } } impl :: std :: fmt :: Debug for ICONINFOEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFOEXA" ) . field ( "cbSize" , & self . cbSize ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . field ( "wResID" , & self . wResID ) . field ( "szModName" , & self . szModName ) . field ( "szResName" , & self . szResName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFOEXA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor && self . wResID == other . wResID && self . szModName == other . szModName && self . szResName == other . szResName } } impl :: std :: cmp :: Eq for ICONINFOEXA { } unsafe impl :: windows :: Abi for ICONINFOEXA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFOEXW { pub cbSize : u32 , pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP , pub wResID : u16 , pub szModName : [ u16 ;260 ] , pub szResName : [ u16 ;260 ] } impl ICONINFOEXW { } impl :: std :: default :: Default for ICONINFOEXW { fn default ( ) -> Self { Self { cbSize : 0 , fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) , wResID : 0 , szModName : [ 0 ;260 ] , szResName : [ 0 ;260 ] } } } impl :: std :: fmt :: Debug for ICONINFOEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFOEXW" ) . field ( "cbSize" , & self . cbSize ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . field ( "wResID" , & self . wResID ) . field ( "szModName" , & self . szModName ) . field ( "szResName" , & self . szResName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFOEXW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor && self . wResID == other . wResID && self . szModName == other . szModName && self . szResName == other . szResName } } impl :: std :: cmp :: Eq for ICONINFOEXW { } unsafe impl :: windows :: Abi for ICONINFOEXW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONMETRICSA { pub cbSize : u32 , pub iHorzSpacing : i32 , pub iVertSpacing : i32 , pub iTitleWrap : i32 , pub lfFont : super::super::Graphics::Gdi:: LOGFONTA } impl ICONMETRICSA { } impl :: std :: default :: Default for ICONMETRICSA { fn default ( ) -> Self { Self { cbSize : 0 , iHorzSpacing : 0 , iVertSpacing : 0 , iTitleWrap : 0 , lfFont : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONMETRICSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONMETRICSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "iHorzSpacing" , & self . iHorzSpacing ) . field ( "iVertSpacing" , & self . iVertSpacing ) . field ( "iTitleWrap" , & self . iTitleWrap ) . field ( "lfFont" , & self . lfFont ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONMETRICSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iHorzSpacing == other . iHorzSpacing && self . iVertSpacing == other . iVertSpacing && self . iTitleWrap == other . iTitleWrap && self . lfFont == other . lfFont } } impl :: std :: cmp :: Eq for ICONMETRICSA { } unsafe impl :: windows :: Abi for ICONMETRICSA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONMETRICSW { pub cbSize : u32 , pub iHorzSpacing : i32 , pub iVertSpacing : i32 , pub iTitleWrap : i32 , pub lfFont : super::super::Graphics::Gdi:: LOGFONTW } impl ICONMETRICSW { } impl :: std :: default :: Default for ICONMETRICSW { fn default ( ) -> Self { Self { cbSize : 0 , iHorzSpacing : 0 , iVertSpacing : 0 , iTitleWrap : 0 , lfFont : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONMETRICSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONMETRICSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "iHorzSpacing" , & self . iHorzSpacing ) . field ( "iVertSpacing" , & self . iVertSpacing ) . field ( "iTitleWrap" , & self . iTitleWrap ) . field ( "lfFont" , & self . lfFont ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONMETRICSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iHorzSpacing == other . iHorzSpacing && self . iVertSpacing == other . iVertSpacing && self . iTitleWrap == other . iTitleWrap && self . lfFont == other . lfFont } } impl :: std :: cmp :: Eq for ICONMETRICSW { } unsafe impl :: windows :: Abi for ICONMETRICSW { type Abi = Self ; type DefaultType = Self ; } pub const ICON_BIG : u32 = 1u32 ; pub const ICON_SMALL : u32 = 0u32 ; pub const ICON_SMALL2 : u32 = 2u32 ; pub const IDANI_CAPTION : u32 = 3u32 ; pub const IDANI_OPEN : u32 = 1u32 ; pub const IDC_APPSTARTING : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32650i32 as _ ) ; pub const IDC_ARROW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32512i32 as _ ) ; pub const IDC_CROSS : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32515i32 as _ ) ; pub const IDC_HAND : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32649i32 as _ ) ; pub const IDC_HELP : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32651i32 as _ ) ; pub const IDC_IBEAM : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32513i32 as _ ) ; pub const IDC_ICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32641i32 as _ ) ; pub const IDC_NO : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32648i32 as _ ) ; pub const IDC_PERSON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32672i32 as _ ) ; pub const IDC_PIN : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32671i32 as _ ) ; pub const IDC_SIZE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32640i32 as _ ) ; pub const IDC_SIZEALL : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32646i32 as _ ) ; pub const IDC_SIZENESW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32643i32 as _ ) ; pub const IDC_SIZENS : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32645i32 as _ ) ; pub const IDC_SIZENWSE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32642i32 as _ ) ; pub const IDC_SIZEWE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32644i32 as _ ) ; pub const IDC_UPARROW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32516i32 as _ ) ; pub const IDC_WAIT : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32514i32 as _ ) ; pub const IDHOT_SNAPDESKTOP : i32 = -2i32 ; pub const IDHOT_SNAPWINDOW : i32 = -1i32 ; pub const IDH_CANCEL : u32 = 28444u32 ; pub const IDH_GENERIC_HELP_BUTTON : u32 = 28442u32 ; pub const IDH_HELP : u32 = 28445u32 ; pub const IDH_MISSING_CONTEXT : u32 = 28441u32 ; pub const IDH_NO_HELP : u32 = 28440u32 ; pub const IDH_OK : u32 = 28443u32 ; pub const IDI_APPLICATION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32512u32 as _ ) ; pub const IDI_ASTERISK : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32516u32 as _ ) ; pub const IDI_EXCLAMATION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32515u32 as _ ) ; pub const IDI_HAND : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32513u32 as _ ) ; pub const IDI_QUESTION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32514u32 as _ ) ; pub const IDI_SHIELD : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32518u32 as _ ) ; pub const IDI_WINLOGO : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32517u32 as _ ) ; pub const IMAGE_ENHMETAFILE : u32 = 3u32 ; pub const INDEXID_CONTAINER : u32 = 0u32 ; pub const INDEXID_OBJECT : u32 = 0u32 ; pub const INPUTLANGCHANGE_BACKWARD : u32 = 4u32 ; pub const INPUTLANGCHANGE_FORWARD : u32 = 2u32 ; pub const INPUTLANGCHANGE_SYSCHARSET : u32 = 1u32 ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IPrintDialogCallback ( :: windows :: IUnknown ) ; impl IPrintDialogCallback { pub unsafe fn InitDone < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn SelectionChange < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn HandleMessage < 'a , > ( & self , hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , presult : * mut super::super::Foundation:: LRESULT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( presult ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IPrintDialogCallback { type Vtable = IPrintDialogCallback_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1481810627 ,25904 ,4561 , [ 182 ,163 ,0 ,0 ,248 ,117 ,123 ,249 ] , ) ; } impl :: std :: convert :: From < IPrintDialogCallback > for :: windows :: IUnknown { fn from ( value : IPrintDialogCallback ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IPrintDialogCallback > for :: windows :: IUnknown { fn from ( value : & IPrintDialogCallback ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IPrintDialogCallback { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a IPrintDialogCallback { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IPrintDialogCallback_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hdlg : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , presult : * mut super::super::Foundation:: LRESULT , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IPrintDialogServices ( :: windows :: IUnknown ) ; impl IPrintDialogServices { pub unsafe fn GetCurrentDevMode < > ( & self , pdevmode : * mut super::DisplayDevices:: DEVMODEA , pcbsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pdevmode ) , :: std :: mem :: transmute ( pcbsize ) , ) . ok ( ) } pub unsafe fn GetCurrentPrinterName < > ( & self , pprintername : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pprintername ) , :: std :: mem :: transmute ( pcchsize ) , ) . ok ( ) } pub unsafe fn GetCurrentPortName < > ( & self , pportname : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pportname ) , :: std :: mem :: transmute ( pcchsize ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IPrintDialogServices { type Vtable = IPrintDialogServices_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1352314586 ,22073 ,4561 , [ 182 ,161 ,0 ,0 ,248 ,117 ,123 ,249 ] , ) ; } impl :: std :: convert :: From < IPrintDialogServices > for :: windows :: IUnknown { fn from ( value : IPrintDialogServices ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IPrintDialogServices > for :: windows :: IUnknown { fn from ( value : & IPrintDialogServices ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IPrintDialogServices { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a IPrintDialogServices { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IPrintDialogServices_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pdevmode : * mut super::DisplayDevices:: DEVMODEA , pcbsize : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pprintername : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pportname : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: HRESULT , ) ; pub const ISMEX_CALLBACK : u32 = 4u32 ; pub const ISMEX_NOSEND : u32 = 0u32 ; pub const ISMEX_NOTIFY : u32 = 2u32 ; pub const ISMEX_REPLIED : u32 = 8u32 ; pub const ISMEX_SEND : u32 = 1u32 ; pub const ISOLATIONAWARE_MANIFEST_RESOURCE_ID : u32 = 2u32 ; pub const ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID : u32 = 3u32 ; pub const ISOLATIONPOLICY_BROWSER_MANIFEST_RESOURCE_ID : u32 = 5u32 ; pub const ISOLATIONPOLICY_MANIFEST_RESOURCE_ID : u32 = 4u32 ; pub unsafe fn InSendMessage < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InSendMessage ( ) -> super::super::Foundation:: BOOL ; } InSendMessage ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InSendMessageEx < > ( lpreserved : * mut :: std :: ffi :: c_void , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InSendMessageEx ( lpreserved : * mut :: std :: ffi :: c_void ) -> u32 ; } InSendMessageEx ( :: std :: mem :: transmute ( lpreserved ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IndexFilePath < 'a , > ( resourceindexer : * mut :: std :: ffi :: c_void , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ppresourceuri : * mut super::super::Foundation:: PWSTR , pqualifiercount : * mut u32 , ppqualifiers : * mut * mut IndexedResourceQualifier , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn IndexFilePath ( resourceindexer : * mut :: std :: ffi :: c_void , filepath : super::super::Foundation:: PWSTR , ppresourceuri : * mut super::super::Foundation:: PWSTR , pqualifiercount : * mut u32 , ppqualifiers : * mut * mut IndexedResourceQualifier ) -> :: windows :: HRESULT ; } IndexFilePath ( :: std :: mem :: transmute ( resourceindexer ) , filepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ppresourceuri ) , :: std :: mem :: transmute ( pqualifiercount ) , :: std :: mem :: transmute ( ppqualifiers ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct IndexedResourceQualifier { pub name : super::super::Foundation:: PWSTR , pub value : super::super::Foundation:: PWSTR } impl IndexedResourceQualifier { } impl :: std :: default :: Default for IndexedResourceQualifier { fn default ( ) -> Self { Self { name : :: std :: default :: Default :: default ( ) , value : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for IndexedResourceQualifier { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "IndexedResourceQualifier" ) . field ( "name" , & self . name ) . field ( "value" , & self . value ) . finish ( ) } } impl :: std :: cmp :: PartialEq for IndexedResourceQualifier { fn eq ( & self , other : & Self ) -> bool { self . name == other . name && self . value == other . value } } impl :: std :: cmp :: Eq for IndexedResourceQualifier { } unsafe impl :: windows :: Abi for IndexedResourceQualifier { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn InheritWindowMonitor < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinherit : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InheritWindowMonitor ( hwnd : super::super::Foundation:: HWND , hwndinherit : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } InheritWindowMonitor ( hwnd . into_param ( ) . abi ( ) , hwndinherit . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuA ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } InsertMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuItemA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmi : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuItemA ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmi : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } InsertMenuItemA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuItemW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmi : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuItemW ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmi : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } InsertMenuItemW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuW ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } InsertMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InternalGetWindowText < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pstring : super::super::Foundation:: PWSTR , cchmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InternalGetWindowText ( hwnd : super::super::Foundation:: HWND , pstring : super::super::Foundation:: PWSTR , cchmaxcount : i32 ) -> i32 ; } InternalGetWindowText ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pstring ) , :: std :: mem :: transmute ( cchmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharAlphaA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaNumericA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaNumericA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharAlphaNumericA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaNumericW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaNumericW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharAlphaNumericW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharAlphaW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharLowerA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharLowerA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharLowerA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharUpperA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharUpperA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharUpperA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharUpperW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharUpperW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharUpperW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsChild < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsChild ( hwndparent : super::super::Foundation:: HWND , hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsChild ( hwndparent . into_param ( ) . abi ( ) , hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsDialogMessageA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsDialogMessageA ( hdlg : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } IsDialogMessageA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsDialogMessageW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsDialogMessageW ( hdlg : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } IsDialogMessageW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsGUIThread < 'a , > ( bconvert : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsGUIThread ( bconvert : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } IsGUIThread ( bconvert . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsHungAppWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsHungAppWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsHungAppWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsIconic < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsIconic ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsIconic ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsMenu ( hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } IsMenu ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsProcessDPIAware < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsProcessDPIAware ( ) -> super::super::Foundation:: BOOL ; } IsProcessDPIAware ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindowUnicode < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindowUnicode ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindowUnicode ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindowVisible < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindowVisible ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindowVisible ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWow64Message < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWow64Message ( ) -> super::super::Foundation:: BOOL ; } IsWow64Message ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsZoomed < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsZoomed ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsZoomed ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct KBDLLHOOKSTRUCT { pub vkCode : u32 , pub scanCode : u32 , pub flags : u32 , pub time : u32 , pub dwExtraInfo : usize } impl KBDLLHOOKSTRUCT { } impl :: std :: default :: Default for KBDLLHOOKSTRUCT { fn default ( ) -> Self { Self { vkCode : 0 , scanCode : 0 , flags : 0 , time : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for KBDLLHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "KBDLLHOOKSTRUCT" ) . field ( "vkCode" , & self . vkCode ) . field ( "scanCode" , & self . scanCode ) . field ( "flags" , & self . flags ) . field ( "time" , & self . time ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for KBDLLHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . vkCode == other . vkCode && self . scanCode == other . scanCode && self . flags == other . flags && self . time == other . time && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for KBDLLHOOKSTRUCT { } unsafe impl :: windows :: Abi for KBDLLHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const KF_ALTDOWN : u32 = 8192u32 ; pub const KF_DLGMODE : u32 = 2048u32 ; pub const KF_EXTENDED : u32 = 256u32 ; pub const KF_MENUMODE : u32 = 4096u32 ; pub const KF_REPEAT : u32 = 16384u32 ; pub const KF_UP : u32 = 32768u32 ; pub const KL_NAMELENGTH : u32 = 9u32 ; pub unsafe fn KillTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , uidevent : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn KillTimer ( hwnd : super::super::Foundation:: HWND , uidevent : usize ) -> super::super::Foundation:: BOOL ; } KillTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidevent ) ) } # [ 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 LAYERED_WINDOW_ATTRIBUTES_FLAGS ( pub u32 ) ; pub const LWA_ALPHA : LAYERED_WINDOW_ATTRIBUTES_FLAGS = LAYERED_WINDOW_ATTRIBUTES_FLAGS ( 2u32 ) ; pub const LWA_COLORKEY : LAYERED_WINDOW_ATTRIBUTES_FLAGS = LAYERED_WINDOW_ATTRIBUTES_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const LBN_DBLCLK : u32 = 2u32 ; pub const LBN_ERRSPACE : i32 = -2i32 ; pub const LBN_KILLFOCUS : u32 = 5u32 ; pub const LBN_SELCANCEL : u32 = 3u32 ; pub const LBN_SELCHANGE : u32 = 1u32 ; pub const LBN_SETFOCUS : u32 = 4u32 ; pub const LBS_COMBOBOX : i32 = 32768i32 ; pub const LBS_DISABLENOSCROLL : i32 = 4096i32 ; pub const LBS_EXTENDEDSEL : i32 = 2048i32 ; pub const LBS_HASSTRINGS : i32 = 64i32 ; pub const LBS_MULTICOLUMN : i32 = 512i32 ; pub const LBS_MULTIPLESEL : i32 = 8i32 ; pub const LBS_NODATA : i32 = 8192i32 ; pub const LBS_NOINTEGRALHEIGHT : i32 = 256i32 ; pub const LBS_NOREDRAW : i32 = 4i32 ; pub const LBS_NOSEL : i32 = 16384i32 ; pub const LBS_NOTIFY : i32 = 1i32 ; pub const LBS_OWNERDRAWFIXED : i32 = 16i32 ; pub const LBS_OWNERDRAWVARIABLE : i32 = 32i32 ; pub const LBS_SORT : i32 = 2i32 ; pub const LBS_STANDARD : i32 = 10485763i32 ; pub const LBS_USETABSTOPS : i32 = 128i32 ; pub const LBS_WANTKEYBOARDINPUT : i32 = 1024i32 ; pub const LB_ADDFILE : u32 = 406u32 ; pub const LB_ADDSTRING : u32 = 384u32 ; pub const LB_CTLCODE : i32 = 0i32 ; pub const LB_DELETESTRING : u32 = 386u32 ; pub const LB_DIR : u32 = 397u32 ; pub const LB_ERR : i32 = -1i32 ; pub const LB_ERRSPACE : i32 = -2i32 ; pub const LB_FINDSTRING : u32 = 399u32 ; pub const LB_FINDSTRINGEXACT : u32 = 418u32 ; pub const LB_GETANCHORINDEX : u32 = 413u32 ; pub const LB_GETCARETINDEX : u32 = 415u32 ; pub const LB_GETCOUNT : u32 = 395u32 ; pub const LB_GETCURSEL : u32 = 392u32 ; pub const LB_GETHORIZONTALEXTENT : u32 = 403u32 ; pub const LB_GETITEMDATA : u32 = 409u32 ; pub const LB_GETITEMHEIGHT : u32 = 417u32 ; pub const LB_GETITEMRECT : u32 = 408u32 ; pub const LB_GETLISTBOXINFO : u32 = 434u32 ; pub const LB_GETLOCALE : u32 = 422u32 ; pub const LB_GETSEL : u32 = 391u32 ; pub const LB_GETSELCOUNT : u32 = 400u32 ; pub const LB_GETSELITEMS : u32 = 401u32 ; pub const LB_GETTEXT : u32 = 393u32 ; pub const LB_GETTEXTLEN : u32 = 394u32 ; pub const LB_GETTOPINDEX : u32 = 398u32 ; pub const LB_INITSTORAGE : u32 = 424u32 ; pub const LB_INSERTSTRING : u32 = 385u32 ; pub const LB_ITEMFROMPOINT : u32 = 425u32 ; pub const LB_MSGMAX : u32 = 435u32 ; pub const LB_MULTIPLEADDSTRING : u32 = 433u32 ; pub const LB_OKAY : u32 = 0u32 ; pub const LB_RESETCONTENT : u32 = 388u32 ; pub const LB_SELECTSTRING : u32 = 396u32 ; pub const LB_SELITEMRANGE : u32 = 411u32 ; pub const LB_SELITEMRANGEEX : u32 = 387u32 ; pub const LB_SETANCHORINDEX : u32 = 412u32 ; pub const LB_SETCARETINDEX : u32 = 414u32 ; pub const LB_SETCOLUMNWIDTH : u32 = 405u32 ; pub const LB_SETCOUNT : u32 = 423u32 ; pub const LB_SETCURSEL : u32 = 390u32 ; pub const LB_SETHORIZONTALEXTENT : u32 = 404u32 ; pub const LB_SETITEMDATA : u32 = 410u32 ; pub const LB_SETITEMHEIGHT : u32 = 416u32 ; pub const LB_SETLOCALE : u32 = 421u32 ; pub const LB_SETSEL : u32 = 389u32 ; pub const LB_SETTABSTOPS : u32 = 402u32 ; pub const LB_SETTOPINDEX : u32 = 407u32 ; pub const LLKHF_INJECTED : u32 = 16u32 ; pub const LLKHF_LOWER_IL_INJECTED : u32 = 2u32 ; pub const LLMHF_INJECTED : u32 = 1u32 ; pub const LLMHF_LOWER_IL_INJECTED : u32 = 2u32 ; pub type LPCCHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPCFHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPFRHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPOFNHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPAGEPAINTHOOK = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPAGESETUPHOOK = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPRINTHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPSETUPHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub const LR_COLOR : u32 = 2u32 ; pub unsafe fn LoadAcceleratorsA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptablename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadAcceleratorsA ( hinstance : super::super::Foundation:: HINSTANCE , lptablename : super::super::Foundation:: PSTR ) -> HACCEL ; } LoadAcceleratorsA ( hinstance . into_param ( ) . abi ( ) , lptablename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadAcceleratorsW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptablename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadAcceleratorsW ( hinstance : super::super::Foundation:: HINSTANCE , lptablename : super::super::Foundation:: PWSTR ) -> HACCEL ; } LoadAcceleratorsW ( hinstance . into_param ( ) . abi ( ) , lptablename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpcursorname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorA ( hinstance : super::super::Foundation:: HINSTANCE , lpcursorname : super::super::Foundation:: PSTR ) -> HCURSOR ; } LoadCursorA ( hinstance . into_param ( ) . abi ( ) , lpcursorname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorFromFileA < 'a , > ( lpfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorFromFileA ( lpfilename : super::super::Foundation:: PSTR ) -> HCURSOR ; } LoadCursorFromFileA ( lpfilename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorFromFileW < 'a , > ( lpfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorFromFileW ( lpfilename : super::super::Foundation:: PWSTR ) -> HCURSOR ; } LoadCursorFromFileW ( lpfilename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpcursorname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorW ( hinstance : super::super::Foundation:: HINSTANCE , lpcursorname : super::super::Foundation:: PWSTR ) -> HCURSOR ; } LoadCursorW ( hinstance . into_param ( ) . abi ( ) , lpcursorname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadIconA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpiconname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadIconA ( hinstance : super::super::Foundation:: HINSTANCE , lpiconname : super::super::Foundation:: PSTR ) -> HICON ; } LoadIconA ( hinstance . into_param ( ) . abi ( ) , lpiconname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadIconW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpiconname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadIconW ( hinstance : super::super::Foundation:: HINSTANCE , lpiconname : super::super::Foundation:: PWSTR ) -> HICON ; } LoadIconW ( hinstance . into_param ( ) . abi ( ) , lpiconname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadImageA < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , name : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadImageA ( hinst : super::super::Foundation:: HINSTANCE , name : super::super::Foundation:: PSTR , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } LoadImageA ( hinst . into_param ( ) . abi ( ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( fuload ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadImageW < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , name : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadImageW ( hinst : super::super::Foundation:: HINSTANCE , name : super::super::Foundation:: PWSTR , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } LoadImageW ( hinst . into_param ( ) . abi ( ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( fuload ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpmenuname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuA ( hinstance : super::super::Foundation:: HINSTANCE , lpmenuname : super::super::Foundation:: PSTR ) -> HMENU ; } LoadMenuA ( hinstance . into_param ( ) . abi ( ) , lpmenuname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuIndirectA < > ( lpmenutemplate : * const :: std :: ffi :: c_void , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuIndirectA ( lpmenutemplate : * const :: std :: ffi :: c_void ) -> HMENU ; } LoadMenuIndirectA ( :: std :: mem :: transmute ( lpmenutemplate ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuIndirectW < > ( lpmenutemplate : * const :: std :: ffi :: c_void , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuIndirectW ( lpmenutemplate : * const :: std :: ffi :: c_void ) -> HMENU ; } LoadMenuIndirectW ( :: std :: mem :: transmute ( lpmenutemplate ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpmenuname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuW ( hinstance : super::super::Foundation:: HINSTANCE , lpmenuname : super::super::Foundation:: PWSTR ) -> HMENU ; } LoadMenuW ( hinstance . into_param ( ) . abi ( ) , lpmenuname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadStringA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , uid : u32 , lpbuffer : super::super::Foundation:: PSTR , cchbuffermax : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadStringA ( hinstance : super::super::Foundation:: HINSTANCE , uid : u32 , lpbuffer : super::super::Foundation:: PSTR , cchbuffermax : i32 ) -> i32 ; } LoadStringA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( cchbuffermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadStringW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , uid : u32 , lpbuffer : super::super::Foundation:: PWSTR , cchbuffermax : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadStringW ( hinstance : super::super::Foundation:: HINSTANCE , uid : u32 , lpbuffer : super::super::Foundation:: PWSTR , cchbuffermax : i32 ) -> i32 ; } LoadStringW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( cchbuffermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LockSetForegroundWindow < > ( ulockcode : FOREGROUND_WINDOW_LOCK_CODE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LockSetForegroundWindow ( ulockcode : FOREGROUND_WINDOW_LOCK_CODE ) -> super::super::Foundation:: BOOL ; } LockSetForegroundWindow ( :: std :: mem :: transmute ( ulockcode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LogicalToPhysicalPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LogicalToPhysicalPoint ( hwnd : super::super::Foundation:: HWND , lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } LogicalToPhysicalPoint ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LookupIconIdFromDirectory < 'a , > ( presbits : * mut u8 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LookupIconIdFromDirectory ( presbits : * mut u8 , ficon : super::super::Foundation:: BOOL ) -> i32 ; } LookupIconIdFromDirectory ( :: std :: mem :: transmute ( presbits ) , ficon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LookupIconIdFromDirectoryEx < 'a , > ( presbits : * mut u8 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LookupIconIdFromDirectoryEx ( presbits : * mut u8 , ficon : super::super::Foundation:: BOOL , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> i32 ; } LookupIconIdFromDirectoryEx ( :: std :: mem :: transmute ( presbits ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cxdesired ) , :: std :: mem :: transmute ( cydesired ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const MAPVK_VK_TO_CHAR : u32 = 2u32 ; pub const MAPVK_VK_TO_VSC : u32 = 0u32 ; pub const MAPVK_VK_TO_VSC_EX : u32 = 4u32 ; pub const MAPVK_VSC_TO_VK : u32 = 1u32 ; pub const MAPVK_VSC_TO_VK_EX : u32 = 3u32 ; pub const MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID : u32 = 16u32 ; pub const MAX_LOGICALDPIOVERRIDE : u32 = 2u32 ; pub const MAX_STR_BLOCKREASON : u32 = 256u32 ; pub const MAX_TOUCH_COUNT : u32 = 256u32 ; pub const MAX_TOUCH_PREDICTION_FILTER_TAPS : u32 = 3u32 ; pub const MA_ACTIVATE : u32 = 1u32 ; pub const MA_ACTIVATEANDEAT : u32 = 2u32 ; pub const MA_NOACTIVATE : u32 = 3u32 ; pub const MA_NOACTIVATEANDEAT : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDICREATESTRUCTA { pub szClass : super::super::Foundation:: PSTR , pub szTitle : super::super::Foundation:: PSTR , pub hOwner : super::super::Foundation:: HANDLE , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub style : WINDOW_STYLE , pub lParam : super::super::Foundation:: LPARAM } impl MDICREATESTRUCTA { } impl :: std :: default :: Default for MDICREATESTRUCTA { fn default ( ) -> Self { Self { szClass : :: std :: default :: Default :: default ( ) , szTitle : :: std :: default :: Default :: default ( ) , hOwner : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , style : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDICREATESTRUCTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDICREATESTRUCTA" ) . field ( "szClass" , & self . szClass ) . field ( "szTitle" , & self . szTitle ) . field ( "hOwner" , & self . hOwner ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "style" , & self . style ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDICREATESTRUCTA { fn eq ( & self , other : & Self ) -> bool { self . szClass == other . szClass && self . szTitle == other . szTitle && self . hOwner == other . hOwner && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . style == other . style && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for MDICREATESTRUCTA { } unsafe impl :: windows :: Abi for MDICREATESTRUCTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDICREATESTRUCTW { pub szClass : super::super::Foundation:: PWSTR , pub szTitle : super::super::Foundation:: PWSTR , pub hOwner : super::super::Foundation:: HANDLE , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub style : WINDOW_STYLE , pub lParam : super::super::Foundation:: LPARAM } impl MDICREATESTRUCTW { } impl :: std :: default :: Default for MDICREATESTRUCTW { fn default ( ) -> Self { Self { szClass : :: std :: default :: Default :: default ( ) , szTitle : :: std :: default :: Default :: default ( ) , hOwner : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , style : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDICREATESTRUCTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDICREATESTRUCTW" ) . field ( "szClass" , & self . szClass ) . field ( "szTitle" , & self . szTitle ) . field ( "hOwner" , & self . hOwner ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "style" , & self . style ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDICREATESTRUCTW { fn eq ( & self , other : & Self ) -> bool { self . szClass == other . szClass && self . szTitle == other . szTitle && self . hOwner == other . hOwner && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . style == other . style && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for MDICREATESTRUCTW { } unsafe impl :: windows :: Abi for MDICREATESTRUCTW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDINEXTMENU { pub hmenuIn : HMENU , pub hmenuNext : HMENU , pub hwndNext : super::super::Foundation:: HWND } impl MDINEXTMENU { } impl :: std :: default :: Default for MDINEXTMENU { fn default ( ) -> Self { Self { hmenuIn : :: std :: default :: Default :: default ( ) , hmenuNext : :: std :: default :: Default :: default ( ) , hwndNext : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDINEXTMENU { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDINEXTMENU" ) . field ( "hmenuIn" , & self . hmenuIn ) . field ( "hmenuNext" , & self . hmenuNext ) . field ( "hwndNext" , & self . hwndNext ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDINEXTMENU { fn eq ( & self , other : & Self ) -> bool { self . hmenuIn == other . hmenuIn && self . hmenuNext == other . hmenuNext && self . hwndNext == other . hwndNext } } impl :: std :: cmp :: Eq for MDINEXTMENU { } unsafe impl :: windows :: Abi for MDINEXTMENU { type Abi = Self ; type DefaultType = Self ; } pub const MDIS_ALLCHILDSTYLES : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUBARINFO { pub cbSize : u32 , pub rcBar : super::super::Foundation:: RECT , pub hMenu : HMENU , pub hwndMenu : super::super::Foundation:: HWND , pub _bitfield : i32 } impl MENUBARINFO { } impl :: std :: default :: Default for MENUBARINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcBar : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndMenu : :: std :: default :: Default :: default ( ) , _bitfield : 0 } } } impl :: std :: fmt :: Debug for MENUBARINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUBARINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcBar" , & self . rcBar ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndMenu" , & self . hwndMenu ) . field ( "_bitfield" , & self . _bitfield ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUBARINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcBar == other . rcBar && self . hMenu == other . hMenu && self . hwndMenu == other . hwndMenu && self . _bitfield == other . _bitfield } } impl :: std :: cmp :: Eq for MENUBARINFO { } unsafe impl :: windows :: Abi for MENUBARINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUGETOBJECTINFO { pub dwFlags : MENUGETOBJECTINFO_FLAGS , pub uPos : u32 , pub hmenu : HMENU , pub riid : * mut :: std :: ffi :: c_void , pub pvObj : * mut :: std :: ffi :: c_void } impl MENUGETOBJECTINFO { } impl :: std :: default :: Default for MENUGETOBJECTINFO { fn default ( ) -> Self { Self { dwFlags : :: std :: default :: Default :: default ( ) , uPos : 0 , hmenu : :: std :: default :: Default :: default ( ) , riid : :: std :: ptr :: null_mut ( ) , pvObj : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for MENUGETOBJECTINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUGETOBJECTINFO" ) . field ( "dwFlags" , & self . dwFlags ) . field ( "uPos" , & self . uPos ) . field ( "hmenu" , & self . hmenu ) . field ( "riid" , & self . riid ) . field ( "pvObj" , & self . pvObj ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUGETOBJECTINFO { fn eq ( & self , other : & Self ) -> bool { self . dwFlags == other . dwFlags && self . uPos == other . uPos && self . hmenu == other . hmenu && self . riid == other . riid && self . pvObj == other . pvObj } } impl :: std :: cmp :: Eq for MENUGETOBJECTINFO { } unsafe impl :: windows :: Abi for MENUGETOBJECTINFO { 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 MENUGETOBJECTINFO_FLAGS ( pub u32 ) ; pub const MNGOF_BOTTOMGAP : MENUGETOBJECTINFO_FLAGS = MENUGETOBJECTINFO_FLAGS ( 2u32 ) ; pub const MNGOF_TOPGAP : MENUGETOBJECTINFO_FLAGS = MENUGETOBJECTINFO_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for MENUGETOBJECTINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUGETOBJECTINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUGETOBJECTINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUGETOBJECTINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUGETOBJECTINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUGETOBJECTINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUINFO { pub cbSize : u32 , pub fMask : MENUINFO_MASK , pub dwStyle : MENUINFO_STYLE , pub cyMax : u32 , pub hbrBack : super::super::Graphics::Gdi:: HBRUSH , pub dwContextHelpID : u32 , pub dwMenuData : usize } impl MENUINFO { } impl :: std :: default :: Default for MENUINFO { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , cyMax : 0 , hbrBack : :: std :: default :: Default :: default ( ) , dwContextHelpID : 0 , dwMenuData : 0 } } } impl :: std :: fmt :: Debug for MENUINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "dwStyle" , & self . dwStyle ) . field ( "cyMax" , & self . cyMax ) . field ( "hbrBack" , & self . hbrBack ) . field ( "dwContextHelpID" , & self . dwContextHelpID ) . field ( "dwMenuData" , & self . dwMenuData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . dwStyle == other . dwStyle && self . cyMax == other . cyMax && self . hbrBack == other . hbrBack && self . dwContextHelpID == other . dwContextHelpID && self . dwMenuData == other . dwMenuData } } impl :: std :: cmp :: Eq for MENUINFO { } unsafe impl :: windows :: Abi for MENUINFO { 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 MENUINFO_MASK ( pub u32 ) ; pub const MIM_APPLYTOSUBMENUS : MENUINFO_MASK = MENUINFO_MASK ( 2147483648u32 ) ; pub const MIM_BACKGROUND : MENUINFO_MASK = MENUINFO_MASK ( 2u32 ) ; pub const MIM_HELPID : MENUINFO_MASK = MENUINFO_MASK ( 4u32 ) ; pub const MIM_MAXHEIGHT : MENUINFO_MASK = MENUINFO_MASK ( 1u32 ) ; pub const MIM_MENUDATA : MENUINFO_MASK = MENUINFO_MASK ( 8u32 ) ; pub const MIM_STYLE : MENUINFO_MASK = MENUINFO_MASK ( 16u32 ) ; impl :: std :: convert :: From < u32 > for MENUINFO_MASK { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUINFO_MASK { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUINFO_MASK { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUINFO_MASK { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUINFO_MASK { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUINFO_MASK { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENUINFO_STYLE ( pub u32 ) ; pub const MNS_AUTODISMISS : MENUINFO_STYLE = MENUINFO_STYLE ( 268435456u32 ) ; pub const MNS_CHECKORBMP : MENUINFO_STYLE = MENUINFO_STYLE ( 67108864u32 ) ; pub const MNS_DRAGDROP : MENUINFO_STYLE = MENUINFO_STYLE ( 536870912u32 ) ; pub const MNS_MODELESS : MENUINFO_STYLE = MENUINFO_STYLE ( 1073741824u32 ) ; pub const MNS_NOCHECK : MENUINFO_STYLE = MENUINFO_STYLE ( 2147483648u32 ) ; pub const MNS_NOTIFYBYPOS : MENUINFO_STYLE = MENUINFO_STYLE ( 134217728u32 ) ; impl :: std :: convert :: From < u32 > for MENUINFO_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUINFO_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUINFO_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUINFO_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUINFO_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUINFO_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMINFOA { pub cbSize : u32 , pub fMask : MENU_ITEM_MASK , pub fType : MENU_ITEM_TYPE , pub fState : MENU_ITEM_STATE , pub wID : u32 , pub hSubMenu : HMENU , pub hbmpChecked : super::super::Graphics::Gdi:: HBITMAP , pub hbmpUnchecked : super::super::Graphics::Gdi:: HBITMAP , pub dwItemData : usize , pub dwTypeData : super::super::Foundation:: PSTR , pub cch : u32 , pub hbmpItem : super::super::Graphics::Gdi:: HBITMAP } impl MENUITEMINFOA { } impl :: std :: default :: Default for MENUITEMINFOA { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , fType : :: std :: default :: Default :: default ( ) , fState : :: std :: default :: Default :: default ( ) , wID : 0 , hSubMenu : :: std :: default :: Default :: default ( ) , hbmpChecked : :: std :: default :: Default :: default ( ) , hbmpUnchecked : :: std :: default :: Default :: default ( ) , dwItemData : 0 , dwTypeData : :: std :: default :: Default :: default ( ) , cch : 0 , hbmpItem : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MENUITEMINFOA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMINFOA" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "fType" , & self . fType ) . field ( "fState" , & self . fState ) . field ( "wID" , & self . wID ) . field ( "hSubMenu" , & self . hSubMenu ) . field ( "hbmpChecked" , & self . hbmpChecked ) . field ( "hbmpUnchecked" , & self . hbmpUnchecked ) . field ( "dwItemData" , & self . dwItemData ) . field ( "dwTypeData" , & self . dwTypeData ) . field ( "cch" , & self . cch ) . field ( "hbmpItem" , & self . hbmpItem ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMINFOA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . fType == other . fType && self . fState == other . fState && self . wID == other . wID && self . hSubMenu == other . hSubMenu && self . hbmpChecked == other . hbmpChecked && self . hbmpUnchecked == other . hbmpUnchecked && self . dwItemData == other . dwItemData && self . dwTypeData == other . dwTypeData && self . cch == other . cch && self . hbmpItem == other . hbmpItem } } impl :: std :: cmp :: Eq for MENUITEMINFOA { } unsafe impl :: windows :: Abi for MENUITEMINFOA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMINFOW { pub cbSize : u32 , pub fMask : MENU_ITEM_MASK , pub fType : MENU_ITEM_TYPE , pub fState : MENU_ITEM_STATE , pub wID : u32 , pub hSubMenu : HMENU , pub hbmpChecked : super::super::Graphics::Gdi:: HBITMAP , pub hbmpUnchecked : super::super::Graphics::Gdi:: HBITMAP , pub dwItemData : usize , pub dwTypeData : super::super::Foundation:: PWSTR , pub cch : u32 , pub hbmpItem : super::super::Graphics::Gdi:: HBITMAP } impl MENUITEMINFOW { } impl :: std :: default :: Default for MENUITEMINFOW { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , fType : :: std :: default :: Default :: default ( ) , fState : :: std :: default :: Default :: default ( ) , wID : 0 , hSubMenu : :: std :: default :: Default :: default ( ) , hbmpChecked : :: std :: default :: Default :: default ( ) , hbmpUnchecked : :: std :: default :: Default :: default ( ) , dwItemData : 0 , dwTypeData : :: std :: default :: Default :: default ( ) , cch : 0 , hbmpItem : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MENUITEMINFOW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMINFOW" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "fType" , & self . fType ) . field ( "fState" , & self . fState ) . field ( "wID" , & self . wID ) . field ( "hSubMenu" , & self . hSubMenu ) . field ( "hbmpChecked" , & self . hbmpChecked ) . field ( "hbmpUnchecked" , & self . hbmpUnchecked ) . field ( "dwItemData" , & self . dwItemData ) . field ( "dwTypeData" , & self . dwTypeData ) . field ( "cch" , & self . cch ) . field ( "hbmpItem" , & self . hbmpItem ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMINFOW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . fType == other . fType && self . fState == other . fState && self . wID == other . wID && self . hSubMenu == other . hSubMenu && self . hbmpChecked == other . hbmpChecked && self . hbmpUnchecked == other . hbmpUnchecked && self . dwItemData == other . dwItemData && self . dwTypeData == other . dwTypeData && self . cch == other . cch && self . hbmpItem == other . hbmpItem } } impl :: std :: cmp :: Eq for MENUITEMINFOW { } unsafe impl :: windows :: Abi for MENUITEMINFOW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMTEMPLATE { pub mtOption : u16 , pub mtID : u16 , pub mtString : [ u16 ;1 ] } impl MENUITEMTEMPLATE { } impl :: std :: default :: Default for MENUITEMTEMPLATE { fn default ( ) -> Self { Self { mtOption : 0 , mtID : 0 , mtString : [ 0 ;1 ] } } } impl :: std :: fmt :: Debug for MENUITEMTEMPLATE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMTEMPLATE" ) . field ( "mtOption" , & self . mtOption ) . field ( "mtID" , & self . mtID ) . field ( "mtString" , & self . mtString ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMTEMPLATE { fn eq ( & self , other : & Self ) -> bool { self . mtOption == other . mtOption && self . mtID == other . mtID && self . mtString == other . mtString } } impl :: std :: cmp :: Eq for MENUITEMTEMPLATE { } unsafe impl :: windows :: Abi for MENUITEMTEMPLATE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMTEMPLATEHEADER { pub versionNumber : u16 , pub offset : u16 } impl MENUITEMTEMPLATEHEADER { } impl :: std :: default :: Default for MENUITEMTEMPLATEHEADER { fn default ( ) -> Self { Self { versionNumber : 0 , offset : 0 } } } impl :: std :: fmt :: Debug for MENUITEMTEMPLATEHEADER { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMTEMPLATEHEADER" ) . field ( "versionNumber" , & self . versionNumber ) . field ( "offset" , & self . offset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMTEMPLATEHEADER { fn eq ( & self , other : & Self ) -> bool { self . versionNumber == other . versionNumber && self . offset == other . offset } } impl :: std :: cmp :: Eq for MENUITEMTEMPLATEHEADER { } unsafe impl :: windows :: Abi for MENUITEMTEMPLATEHEADER { 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 MENU_ITEM_FLAGS ( pub u32 ) ; pub const MF_BYCOMMAND : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_BYPOSITION : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 1024u32 ) ; pub const MF_BITMAP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4u32 ) ; pub const MF_CHECKED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 8u32 ) ; pub const MF_DISABLED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 2u32 ) ; pub const MF_ENABLED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_GRAYED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 1u32 ) ; pub const MF_MENUBARBREAK : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 32u32 ) ; pub const MF_MENUBREAK : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 64u32 ) ; pub const MF_OWNERDRAW : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 256u32 ) ; pub const MF_POPUP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16u32 ) ; pub const MF_SEPARATOR : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 2048u32 ) ; pub const MF_STRING : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_UNCHECKED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_INSERT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_CHANGE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; pub const MF_APPEND : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 256u32 ) ; pub const MF_DELETE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 512u32 ) ; pub const MF_REMOVE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4096u32 ) ; pub const MF_USECHECKBITMAPS : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 512u32 ) ; pub const MF_UNHILITE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_HILITE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; pub const MF_DEFAULT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4096u32 ) ; pub const MF_SYSMENU : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 8192u32 ) ; pub const MF_HELP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16384u32 ) ; pub const MF_RIGHTJUSTIFY : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16384u32 ) ; pub const MF_MOUSESELECT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 32768u32 ) ; pub const MF_END : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_MASK ( pub u32 ) ; pub const MIIM_BITMAP : MENU_ITEM_MASK = MENU_ITEM_MASK ( 128u32 ) ; pub const MIIM_CHECKMARKS : MENU_ITEM_MASK = MENU_ITEM_MASK ( 8u32 ) ; pub const MIIM_DATA : MENU_ITEM_MASK = MENU_ITEM_MASK ( 32u32 ) ; pub const MIIM_FTYPE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 256u32 ) ; pub const MIIM_ID : MENU_ITEM_MASK = MENU_ITEM_MASK ( 2u32 ) ; pub const MIIM_STATE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 1u32 ) ; pub const MIIM_STRING : MENU_ITEM_MASK = MENU_ITEM_MASK ( 64u32 ) ; pub const MIIM_SUBMENU : MENU_ITEM_MASK = MENU_ITEM_MASK ( 4u32 ) ; pub const MIIM_TYPE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 16u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_MASK { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_MASK { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_MASK { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_MASK { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_MASK { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_MASK { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_STATE ( pub u32 ) ; pub const MFS_GRAYED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 3u32 ) ; pub const MFS_DISABLED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 3u32 ) ; pub const MFS_CHECKED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 8u32 ) ; pub const MFS_HILITE : MENU_ITEM_STATE = MENU_ITEM_STATE ( 128u32 ) ; pub const MFS_ENABLED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_UNCHECKED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_UNHILITE : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_DEFAULT : MENU_ITEM_STATE = MENU_ITEM_STATE ( 4096u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_STATE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_STATE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_STATE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_STATE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_STATE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_STATE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_TYPE ( pub u32 ) ; pub const MFT_BITMAP : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 4u32 ) ; pub const MFT_MENUBARBREAK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 32u32 ) ; pub const MFT_MENUBREAK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 64u32 ) ; pub const MFT_OWNERDRAW : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 256u32 ) ; pub const MFT_RADIOCHECK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 512u32 ) ; pub const MFT_RIGHTJUSTIFY : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 16384u32 ) ; pub const MFT_RIGHTORDER : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 8192u32 ) ; pub const MFT_SEPARATOR : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 2048u32 ) ; pub const MFT_STRING : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 0u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ 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 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_BLOCK { pub LowId : u32 , pub HighId : u32 , pub OffsetToEntries : u32 } impl MESSAGE_RESOURCE_BLOCK { } impl :: std :: default :: Default for MESSAGE_RESOURCE_BLOCK { fn default ( ) -> Self { Self { LowId : 0 , HighId : 0 , OffsetToEntries : 0 } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_BLOCK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_BLOCK" ) . field ( "LowId" , & self . LowId ) . field ( "HighId" , & self . HighId ) . field ( "OffsetToEntries" , & self . OffsetToEntries ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_BLOCK { fn eq ( & self , other : & Self ) -> bool { self . LowId == other . LowId && self . HighId == other . HighId && self . OffsetToEntries == other . OffsetToEntries } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_BLOCK { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_BLOCK { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_DATA { pub NumberOfBlocks : u32 , pub Blocks : [ MESSAGE_RESOURCE_BLOCK ;1 ] } impl MESSAGE_RESOURCE_DATA { } impl :: std :: default :: Default for MESSAGE_RESOURCE_DATA { fn default ( ) -> Self { Self { NumberOfBlocks : 0 , Blocks : [ :: std :: default :: Default :: default ( ) ;1 ] } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_DATA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_DATA" ) . field ( "NumberOfBlocks" , & self . NumberOfBlocks ) . field ( "Blocks" , & self . Blocks ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_DATA { fn eq ( & self , other : & Self ) -> bool { self . NumberOfBlocks == other . NumberOfBlocks && self . Blocks == other . Blocks } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_DATA { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_DATA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_ENTRY { pub Length : u16 , pub Flags : u16 , pub Text : [ u8 ;1 ] } impl MESSAGE_RESOURCE_ENTRY { } impl :: std :: default :: Default for MESSAGE_RESOURCE_ENTRY { fn default ( ) -> Self { Self { Length : 0 , Flags : 0 , Text : [ 0 ;1 ] } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_ENTRY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_ENTRY" ) . field ( "Length" , & self . Length ) . field ( "Flags" , & self . Flags ) . field ( "Text" , & self . Text ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_ENTRY { fn eq ( & self , other : & Self ) -> bool { self . Length == other . Length && self . Flags == other . Flags && self . Text == other . Text } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_ENTRY { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_ENTRY { type Abi = Self ; type DefaultType = Self ; } pub const METRICS_USEDEFAULT : i32 = -1i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MINIMIZEDMETRICS { pub cbSize : u32 , pub iWidth : i32 , pub iHorzGap : i32 , pub iVertGap : i32 , pub iArrange : MINIMIZEDMETRICS_ARRANGE } impl MINIMIZEDMETRICS { } impl :: std :: default :: Default for MINIMIZEDMETRICS { fn default ( ) -> Self { Self { cbSize : 0 , iWidth : 0 , iHorzGap : 0 , iVertGap : 0 , iArrange : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MINIMIZEDMETRICS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MINIMIZEDMETRICS" ) . field ( "cbSize" , & self . cbSize ) . field ( "iWidth" , & self . iWidth ) . field ( "iHorzGap" , & self . iHorzGap ) . field ( "iVertGap" , & self . iVertGap ) . field ( "iArrange" , & self . iArrange ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MINIMIZEDMETRICS { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iWidth == other . iWidth && self . iHorzGap == other . iHorzGap && self . iVertGap == other . iVertGap && self . iArrange == other . iArrange } } impl :: std :: cmp :: Eq for MINIMIZEDMETRICS { } unsafe impl :: windows :: Abi for MINIMIZEDMETRICS { 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 MINIMIZEDMETRICS_ARRANGE ( pub i32 ) ; pub const ARW_BOTTOMLEFT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 0i32 ) ; pub const ARW_BOTTOMRIGHT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 1i32 ) ; pub const ARW_TOPLEFT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 2i32 ) ; pub const ARW_TOPRIGHT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 3i32 ) ; impl :: std :: convert :: From < i32 > for MINIMIZEDMETRICS_ARRANGE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MINIMIZEDMETRICS_ARRANGE { type Abi = Self ; type DefaultType = Self ; } pub const MINIMUM_RESERVED_MANIFEST_RESOURCE_ID : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MINMAXINFO { pub ptReserved : super::super::Foundation:: POINT , pub ptMaxSize : super::super::Foundation:: POINT , pub ptMaxPosition : super::super::Foundation:: POINT , pub ptMinTrackSize : super::super::Foundation:: POINT , pub ptMaxTrackSize : super::super::Foundation:: POINT } impl MINMAXINFO { } impl :: std :: default :: Default for MINMAXINFO { fn default ( ) -> Self { Self { ptReserved : :: std :: default :: Default :: default ( ) , ptMaxSize : :: std :: default :: Default :: default ( ) , ptMaxPosition : :: std :: default :: Default :: default ( ) , ptMinTrackSize : :: std :: default :: Default :: default ( ) , ptMaxTrackSize : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MINMAXINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MINMAXINFO" ) . field ( "ptReserved" , & self . ptReserved ) . field ( "ptMaxSize" , & self . ptMaxSize ) . field ( "ptMaxPosition" , & self . ptMaxPosition ) . field ( "ptMinTrackSize" , & self . ptMinTrackSize ) . field ( "ptMaxTrackSize" , & self . ptMaxTrackSize ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MINMAXINFO { fn eq ( & self , other : & Self ) -> bool { self . ptReserved == other . ptReserved && self . ptMaxSize == other . ptMaxSize && self . ptMaxPosition == other . ptMaxPosition && self . ptMinTrackSize == other . ptMinTrackSize && self . ptMaxTrackSize == other . ptMaxTrackSize } } impl :: std :: cmp :: Eq for MINMAXINFO { } unsafe impl :: windows :: Abi for MINMAXINFO { type Abi = Self ; type DefaultType = Self ; } pub const MIN_LOGICALDPIOVERRIDE : i32 = -2i32 ; pub const MKF_AVAILABLE : u32 = 2u32 ; pub const MKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const MKF_HOTKEYACTIVE : u32 = 4u32 ; pub const MKF_HOTKEYSOUND : u32 = 16u32 ; pub const MKF_INDICATOR : u32 = 32u32 ; pub const MKF_LEFTBUTTONDOWN : u32 = 16777216u32 ; pub const MKF_LEFTBUTTONSEL : u32 = 268435456u32 ; pub const MKF_MODIFIERS : u32 = 64u32 ; pub const MKF_MOUSEKEYSON : u32 = 1u32 ; pub const MKF_MOUSEMODE : u32 = 2147483648u32 ; pub const MKF_REPLACENUMBERS : u32 = 128u32 ; pub const MKF_RIGHTBUTTONDOWN : u32 = 33554432u32 ; pub const MKF_RIGHTBUTTONSEL : u32 = 536870912u32 ; pub const MK_CONTROL : u32 = 8u32 ; pub const MK_LBUTTON : u32 = 1u32 ; pub const MK_MBUTTON : u32 = 16u32 ; pub const MK_RBUTTON : u32 = 2u32 ; pub const MK_SHIFT : u32 = 4u32 ; pub const MK_XBUTTON1 : u32 = 32u32 ; pub const MK_XBUTTON2 : u32 = 64u32 ; pub const MNC_CLOSE : u32 = 1u32 ; pub const MNC_EXECUTE : u32 = 2u32 ; pub const MNC_IGNORE : u32 = 0u32 ; pub const MNC_SELECT : u32 = 3u32 ; pub const MND_CONTINUE : u32 = 0u32 ; pub const MND_ENDMENU : u32 = 1u32 ; pub const MNGO_NOERROR : u32 = 1u32 ; pub const MNGO_NOINTERFACE : u32 = 0u32 ; pub const MN_GETHMENU : u32 = 481u32 ; pub const MONITORINFOF_PRIMARY : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MOUSEHOOKSTRUCT { pub pt : super::super::Foundation:: POINT , pub hwnd : super::super::Foundation:: HWND , pub wHitTestCode : u32 , pub dwExtraInfo : usize } impl MOUSEHOOKSTRUCT { } impl :: std :: default :: Default for MOUSEHOOKSTRUCT { fn default ( ) -> Self { Self { pt : :: std :: default :: Default :: default ( ) , hwnd : :: std :: default :: Default :: default ( ) , wHitTestCode : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for MOUSEHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MOUSEHOOKSTRUCT" ) . field ( "pt" , & self . pt ) . field ( "hwnd" , & self . hwnd ) . field ( "wHitTestCode" , & self . wHitTestCode ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MOUSEHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . pt == other . pt && self . hwnd == other . hwnd && self . wHitTestCode == other . wHitTestCode && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for MOUSEHOOKSTRUCT { } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MOUSEHOOKSTRUCTEX { pub __AnonymousBase_winuser_L1173_C46 : MOUSEHOOKSTRUCT , pub mouseData : MOUSEHOOKSTRUCTEX_MOUSE_DATA } impl MOUSEHOOKSTRUCTEX { } impl :: std :: default :: Default for MOUSEHOOKSTRUCTEX { fn default ( ) -> Self { Self { __AnonymousBase_winuser_L1173_C46 : :: std :: default :: Default :: default ( ) , mouseData : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MOUSEHOOKSTRUCTEX { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MOUSEHOOKSTRUCTEX" ) . field ( "__AnonymousBase_winuser_L1173_C46" , & self . __AnonymousBase_winuser_L1173_C46 ) . field ( "mouseData" , & self . mouseData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MOUSEHOOKSTRUCTEX { fn eq ( & self , other : & Self ) -> bool { self . __AnonymousBase_winuser_L1173_C46 == other . __AnonymousBase_winuser_L1173_C46 && self . mouseData == other . mouseData } } impl :: std :: cmp :: Eq for MOUSEHOOKSTRUCTEX { } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCTEX { 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 MOUSEHOOKSTRUCTEX_MOUSE_DATA ( pub u32 ) ; pub const XBUTTON1 : MOUSEHOOKSTRUCTEX_MOUSE_DATA = MOUSEHOOKSTRUCTEX_MOUSE_DATA ( 1u32 ) ; pub const XBUTTON2 : MOUSEHOOKSTRUCTEX_MOUSE_DATA = MOUSEHOOKSTRUCTEX_MOUSE_DATA ( 2u32 ) ; impl :: std :: convert :: From < u32 > for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const MOUSEWHEEL_ROUTING_FOCUS : u32 = 0u32 ; pub const MOUSEWHEEL_ROUTING_HYBRID : u32 = 1u32 ; pub const MOUSEWHEEL_ROUTING_MOUSE_POS : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MSG { pub hwnd : super::super::Foundation:: HWND , pub message : u32 , pub wParam : super::super::Foundation:: WPARAM , pub lParam : super::super::Foundation:: LPARAM , pub time : u32 , pub pt : super::super::Foundation:: POINT } impl MSG { } impl :: std :: default :: Default for MSG { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , message : 0 , wParam : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) , time : 0 , pt : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MSG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSG" ) . field ( "hwnd" , & self . hwnd ) . field ( "message" , & self . message ) . field ( "wParam" , & self . wParam ) . field ( "lParam" , & self . lParam ) . field ( "time" , & self . time ) . field ( "pt" , & self . pt ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSG { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . message == other . message && self . wParam == other . wParam && self . lParam == other . lParam && self . time == other . time && self . pt == other . pt } } impl :: std :: cmp :: Eq for MSG { } unsafe impl :: windows :: Abi for MSG { type Abi = Self ; type DefaultType = Self ; } pub type MSGBOXCALLBACK = unsafe extern "system" fn ( lphelpinfo : * mut super::Shell:: HELPINFO ) ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct MSGBOXPARAMSA { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PSTR , pub lpszCaption : super::super::Foundation:: PSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: std :: option :: Option < MSGBOXCALLBACK > , pub dwLanguageId : u32 } impl MSGBOXPARAMSA { } impl :: std :: default :: Default for MSGBOXPARAMSA { fn default ( ) -> Self { Self { cbSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszText : :: std :: default :: Default :: default ( ) , lpszCaption : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , lpszIcon : :: std :: default :: Default :: default ( ) , dwContextHelpId : 0 , lpfnMsgBoxCallback : :: std :: default :: Default :: default ( ) , dwLanguageId : 0 } } } impl :: std :: fmt :: Debug for MSGBOXPARAMSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSGBOXPARAMSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszText" , & self . lpszText ) . field ( "lpszCaption" , & self . lpszCaption ) . field ( "dwStyle" , & self . dwStyle ) . field ( "lpszIcon" , & self . lpszIcon ) . field ( "dwContextHelpId" , & self . dwContextHelpId ) . field ( "dwLanguageId" , & self . dwLanguageId ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSGBOXPARAMSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpszText == other . lpszText && self . lpszCaption == other . lpszCaption && self . dwStyle == other . dwStyle && self . lpszIcon == other . lpszIcon && self . dwContextHelpId == other . dwContextHelpId && self . lpfnMsgBoxCallback . map ( | f | f as usize ) == other . lpfnMsgBoxCallback . map ( | f | f as usize ) && self . dwLanguageId == other . dwLanguageId } } impl :: std :: cmp :: Eq for MSGBOXPARAMSA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct MSGBOXPARAMSA_abi { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PSTR , pub lpszCaption : super::super::Foundation:: PSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: windows :: RawPtr , pub dwLanguageId : u32 } unsafe impl :: windows :: Abi for MSGBOXPARAMSA { type Abi = MSGBOXPARAMSA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct MSGBOXPARAMSW { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PWSTR , pub lpszCaption : super::super::Foundation:: PWSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PWSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: std :: option :: Option < MSGBOXCALLBACK > , pub dwLanguageId : u32 } impl MSGBOXPARAMSW { } impl :: std :: default :: Default for MSGBOXPARAMSW { fn default ( ) -> Self { Self { cbSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszText : :: std :: default :: Default :: default ( ) , lpszCaption : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , lpszIcon : :: std :: default :: Default :: default ( ) , dwContextHelpId : 0 , lpfnMsgBoxCallback : :: std :: default :: Default :: default ( ) , dwLanguageId : 0 } } } impl :: std :: fmt :: Debug for MSGBOXPARAMSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSGBOXPARAMSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszText" , & self . lpszText ) . field ( "lpszCaption" , & self . lpszCaption ) . field ( "dwStyle" , & self . dwStyle ) . field ( "lpszIcon" , & self . lpszIcon ) . field ( "dwContextHelpId" , & self . dwContextHelpId ) . field ( "dwLanguageId" , & self . dwLanguageId ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSGBOXPARAMSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpszText == other . lpszText && self . lpszCaption == other . lpszCaption && self . dwStyle == other . dwStyle && self . lpszIcon == other . lpszIcon && self . dwContextHelpId == other . dwContextHelpId && self . lpfnMsgBoxCallback . map ( | f | f as usize ) == other . lpfnMsgBoxCallback . map ( | f | f as usize ) && self . dwLanguageId == other . dwLanguageId } } impl :: std :: cmp :: Eq for MSGBOXPARAMSW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct MSGBOXPARAMSW_abi { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PWSTR , pub lpszCaption : super::super::Foundation:: PWSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PWSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: windows :: RawPtr , pub dwLanguageId : u32 } unsafe impl :: windows :: Abi for MSGBOXPARAMSW { type Abi = MSGBOXPARAMSW_abi ; 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 MSGFLTINFO_STATUS ( pub u32 ) ; pub const MSGFLTINFO_NONE : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 0u32 ) ; pub const MSGFLTINFO_ALLOWED_HIGHER : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 3u32 ) ; pub const MSGFLTINFO_ALREADYALLOWED_FORWND : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 1u32 ) ; pub const MSGFLTINFO_ALREADYDISALLOWED_FORWND : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for MSGFLTINFO_STATUS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MSGFLTINFO_STATUS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MSGFLTINFO_STATUS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MSGFLTINFO_STATUS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MSGFLTINFO_STATUS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MSGFLTINFO_STATUS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const MSGF_DIALOGBOX : u32 = 0u32 ; pub const MSGF_MAX : u32 = 8u32 ; pub const MSGF_MENU : u32 = 2u32 ; pub const MSGF_MESSAGEBOX : u32 = 1u32 ; pub const MSGF_NEXTWINDOW : u32 = 6u32 ; pub const MSGF_SCROLLBAR : u32 = 5u32 ; pub const MSGF_USER : u32 = 4096u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MSLLHOOKSTRUCT { pub pt : super::super::Foundation:: POINT , pub mouseData : MOUSEHOOKSTRUCTEX_MOUSE_DATA , pub flags : u32 , pub time : u32 , pub dwExtraInfo : usize } impl MSLLHOOKSTRUCT { } impl :: std :: default :: Default for MSLLHOOKSTRUCT { fn default ( ) -> Self { Self { pt : :: std :: default :: Default :: default ( ) , mouseData : :: std :: default :: Default :: default ( ) , flags : 0 , time : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for MSLLHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSLLHOOKSTRUCT" ) . field ( "pt" , & self . pt ) . field ( "mouseData" , & self . mouseData ) . field ( "flags" , & self . flags ) . field ( "time" , & self . time ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSLLHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . pt == other . pt && self . mouseData == other . mouseData && self . flags == other . flags && self . time == other . time && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for MSLLHOOKSTRUCT { } unsafe impl :: windows :: Abi for MSLLHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MapDialogRect < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MapDialogRect ( hdlg : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } MapDialogRect ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MenuItemFromPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ptscreen : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MenuItemFromPoint ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , ptscreen : super::super::Foundation:: POINT ) -> i32 ; } MenuItemFromPoint ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , ptscreen . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , 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 ; } MessageBoxA ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxExA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , utype : MESSAGEBOX_STYLE , wlanguageid : u16 , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxExA ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PSTR , lpcaption : super::super::Foundation:: PSTR , utype : MESSAGEBOX_STYLE , wlanguageid : u16 ) -> MESSAGEBOX_RESULT ; } MessageBoxExA ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) , :: std :: mem :: transmute ( wlanguageid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxExW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , utype : MESSAGEBOX_STYLE , wlanguageid : u16 , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxExW ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PWSTR , lpcaption : super::super::Foundation:: PWSTR , utype : MESSAGEBOX_STYLE , wlanguageid : u16 ) -> MESSAGEBOX_RESULT ; } MessageBoxExW ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) , :: std :: mem :: transmute ( wlanguageid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxIndirectA < > ( lpmbp : * const MSGBOXPARAMSA , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxIndirectA ( lpmbp : * const MSGBOXPARAMSA_abi ) -> MESSAGEBOX_RESULT ; } MessageBoxIndirectA ( :: std :: mem :: transmute ( lpmbp ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxIndirectW < > ( lpmbp : * const MSGBOXPARAMSW , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxIndirectW ( lpmbp : * const MSGBOXPARAMSW_abi ) -> MESSAGEBOX_RESULT ; } MessageBoxIndirectW ( :: std :: mem :: transmute ( lpmbp ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , utype : MESSAGEBOX_STYLE , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxW ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PWSTR , lpcaption : super::super::Foundation:: PWSTR , utype : MESSAGEBOX_STYLE ) -> MESSAGEBOX_RESULT ; } MessageBoxW ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ModifyMenuA < 'a , > ( hmnu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ModifyMenuA ( hmnu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } ModifyMenuA ( hmnu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ModifyMenuW < 'a , > ( hmnu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ModifyMenuW ( hmnu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } ModifyMenuW ( hmnu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MoveWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , brepaint : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MoveWindow ( hwnd : super::super::Foundation:: HWND , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , brepaint : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } MoveWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , brepaint . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateConfig < 'a , > ( platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , outputxmlfile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateConfig ( platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , outputxmlfile : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmCreateConfig ( :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , outputxmlfile . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateConfigInMemory < 'a , > ( platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateConfigInMemory ( platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmCreateConfigInMemory ( :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceFile < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputdirectory : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceFile ( indexer : MrmResourceIndexerHandle , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputdirectory : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmCreateResourceFile ( indexer . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( packagingmode ) , :: std :: mem :: transmute ( packagingoptions ) , outputdirectory . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceFileInMemory < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputpridata : * mut * mut u8 , outputprisize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceFileInMemory ( indexer : MrmResourceIndexerHandle , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputpridata : * mut * mut u8 , outputprisize : * mut u32 ) -> :: windows :: HRESULT ; } MrmCreateResourceFileInMemory ( indexer . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( packagingmode ) , :: std :: mem :: transmute ( packagingoptions ) , :: std :: mem :: transmute ( outputpridata ) , :: std :: mem :: transmute ( outputprisize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexer < 'a , > ( packagefamilyname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexer ( packagefamilyname : super::super::Foundation:: PWSTR , projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexer ( packagefamilyname . into_param ( ) . abi ( ) , projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousPriData < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , pridata : * mut u8 , prisize : u32 , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousPriData ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , pridata : * mut u8 , prisize : u32 , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousPriData ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pridata ) , :: std :: mem :: transmute ( prisize ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousPriFile < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , prifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousPriFile ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , prifile : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousPriFile ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , prifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaData < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaxmldata : * mut u8 , schemaxmlsize : u32 , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousSchemaData ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , schemaxmldata : * mut u8 , schemaxmlsize : u32 , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousSchemaData ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( schemaxmldata ) , :: std :: mem :: transmute ( schemaxmlsize ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaFile < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemafile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousSchemaFile ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , schemafile : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousSchemaFile ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , schemafile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDestroyIndexerAndMessages < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDestroyIndexerAndMessages ( indexer : MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmDestroyIndexerAndMessages ( indexer . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriDataInMemory < > ( inputpridata : * mut u8 , inputprisize : u32 , schemapridata : * mut u8 , schemaprisize : u32 , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriDataInMemory ( inputpridata : * mut u8 , inputprisize : u32 , schemapridata : * mut u8 , schemaprisize : u32 , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmDumpPriDataInMemory ( :: std :: mem :: transmute ( inputpridata ) , :: std :: mem :: transmute ( inputprisize ) , :: std :: mem :: transmute ( schemapridata ) , :: std :: mem :: transmute ( schemaprisize ) , :: std :: mem :: transmute ( dumptype ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriFile < 'a , > ( indexfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaprifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dumptype : MrmDumpType , outputxmlfile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriFile ( indexfilename : super::super::Foundation:: PWSTR , schemaprifile : super::super::Foundation:: PWSTR , dumptype : MrmDumpType , outputxmlfile : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmDumpPriFile ( indexfilename . into_param ( ) . abi ( ) , schemaprifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dumptype ) , outputxmlfile . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriFileInMemory < 'a , > ( indexfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaprifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriFileInMemory ( indexfilename : super::super::Foundation:: PWSTR , schemaprifile : super::super::Foundation:: PWSTR , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmDumpPriFileInMemory ( indexfilename . into_param ( ) . abi ( ) , schemaprifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dumptype ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ 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 MrmDumpType ( pub i32 ) ; pub const MrmDumpType_Basic : MrmDumpType = MrmDumpType ( 0i32 ) ; pub const MrmDumpType_Detailed : MrmDumpType = MrmDumpType ( 1i32 ) ; pub const MrmDumpType_Schema : MrmDumpType = MrmDumpType ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmDumpType { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmDumpType { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MrmFreeMemory < > ( data : * mut u8 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmFreeMemory ( data : * mut u8 ) -> :: windows :: HRESULT ; } MrmFreeMemory ( :: std :: mem :: transmute ( data ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexEmbeddedData < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , embeddeddata : * const u8 , embeddeddatasize : u32 , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexEmbeddedData ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , embeddeddata : * const u8 , embeddeddatasize : u32 , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexEmbeddedData ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( embeddeddata ) , :: std :: mem :: transmute ( embeddeddatasize ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexFile < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexFile ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , filepath : super::super::Foundation:: PWSTR , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexFile ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , filepath . into_param ( ) . abi ( ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexFileAutoQualifiers < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexFileAutoQualifiers ( indexer : MrmResourceIndexerHandle , filepath : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexFileAutoQualifiers ( indexer . into_param ( ) . abi ( ) , filepath . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexResourceContainerAutoQualifiers < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , containerpath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexResourceContainerAutoQualifiers ( indexer : MrmResourceIndexerHandle , containerpath : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexResourceContainerAutoQualifiers ( indexer . into_param ( ) . abi ( ) , containerpath . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexString < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , resourcestring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexString ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , resourcestring : super::super::Foundation:: PWSTR , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexString ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , resourcestring . into_param ( ) . abi ( ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ 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 MrmPackagingMode ( pub i32 ) ; pub const MrmPackagingModeStandaloneFile : MrmPackagingMode = MrmPackagingMode ( 0i32 ) ; pub const MrmPackagingModeAutoSplit : MrmPackagingMode = MrmPackagingMode ( 1i32 ) ; pub const MrmPackagingModeResourcePack : MrmPackagingMode = MrmPackagingMode ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmPackagingMode { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPackagingMode { 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 MrmPackagingOptions ( pub i32 ) ; pub const MrmPackagingOptionsNone : MrmPackagingOptions = MrmPackagingOptions ( 0i32 ) ; pub const MrmPackagingOptionsOmitSchemaFromResourcePacks : MrmPackagingOptions = MrmPackagingOptions ( 1i32 ) ; pub const MrmPackagingOptionsSplitLanguageVariants : MrmPackagingOptions = MrmPackagingOptions ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmPackagingOptions { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPackagingOptions { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MrmPeekResourceIndexerMessages < 'a , > ( handle : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , messages : * mut * mut MrmResourceIndexerMessage , nummsgs : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmPeekResourceIndexerMessages ( handle : MrmResourceIndexerHandle , messages : * mut * mut MrmResourceIndexerMessage , nummsgs : * mut u32 ) -> :: windows :: HRESULT ; } MrmPeekResourceIndexerMessages ( handle . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( messages ) , :: std :: mem :: transmute ( nummsgs ) ) . ok ( ) } # [ 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 MrmPlatformVersion ( pub i32 ) ; pub const MrmPlatformVersion_Default : MrmPlatformVersion = MrmPlatformVersion ( 0i32 ) ; pub const MrmPlatformVersion_Windows10_0_0_0 : MrmPlatformVersion = MrmPlatformVersion ( 17432576i32 ) ; pub const MrmPlatformVersion_Windows10_0_0_5 : MrmPlatformVersion = MrmPlatformVersion ( 17432581i32 ) ; impl :: std :: convert :: From < i32 > for MrmPlatformVersion { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPlatformVersion { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MrmResourceIndexerHandle { pub handle : * mut :: std :: ffi :: c_void } impl MrmResourceIndexerHandle { } impl :: std :: default :: Default for MrmResourceIndexerHandle { fn default ( ) -> Self { Self { handle : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for MrmResourceIndexerHandle { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MrmResourceIndexerHandle" ) . field ( "handle" , & self . handle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MrmResourceIndexerHandle { fn eq ( & self , other : & Self ) -> bool { self . handle == other . handle } } impl :: std :: cmp :: Eq for MrmResourceIndexerHandle { } unsafe impl :: windows :: Abi for MrmResourceIndexerHandle { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MrmResourceIndexerMessage { pub severity : MrmResourceIndexerMessageSeverity , pub id : u32 , pub text : super::super::Foundation:: PWSTR } impl MrmResourceIndexerMessage { } impl :: std :: default :: Default for MrmResourceIndexerMessage { fn default ( ) -> Self { Self { severity : :: std :: default :: Default :: default ( ) , id : 0 , text : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MrmResourceIndexerMessage { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MrmResourceIndexerMessage" ) . field ( "severity" , & self . severity ) . field ( "id" , & self . id ) . field ( "text" , & self . text ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MrmResourceIndexerMessage { fn eq ( & self , other : & Self ) -> bool { self . severity == other . severity && self . id == other . id && self . text == other . text } } impl :: std :: cmp :: Eq for MrmResourceIndexerMessage { } unsafe impl :: windows :: Abi for MrmResourceIndexerMessage { 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 MrmResourceIndexerMessageSeverity ( pub i32 ) ; pub const MrmResourceIndexerMessageSeverityVerbose : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 0i32 ) ; pub const MrmResourceIndexerMessageSeverityInfo : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 1i32 ) ; pub const MrmResourceIndexerMessageSeverityWarning : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 2i32 ) ; pub const MrmResourceIndexerMessageSeverityError : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 3i32 ) ; impl :: std :: convert :: From < i32 > for MrmResourceIndexerMessageSeverity { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmResourceIndexerMessageSeverity { type Abi = Self ; type DefaultType = Self ; } pub type NAMEENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type NAMEENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NCCALCSIZE_PARAMS { pub rgrc : [ super::super::Foundation:: RECT ;3 ] , pub lppos : * mut WINDOWPOS } impl NCCALCSIZE_PARAMS { } impl :: std :: default :: Default for NCCALCSIZE_PARAMS { fn default ( ) -> Self { Self { rgrc : [ :: std :: default :: Default :: default ( ) ;3 ] , lppos : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for NCCALCSIZE_PARAMS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NCCALCSIZE_PARAMS" ) . field ( "rgrc" , & self . rgrc ) . field ( "lppos" , & self . lppos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NCCALCSIZE_PARAMS { fn eq ( & self , other : & Self ) -> bool { self . rgrc == other . rgrc && self . lppos == other . lppos } } impl :: std :: cmp :: Eq for NCCALCSIZE_PARAMS { } unsafe impl :: windows :: Abi for NCCALCSIZE_PARAMS { type Abi = Self ; type DefaultType = Self ; } pub const NFR_ANSI : u32 = 1u32 ; pub const NFR_UNICODE : u32 = 2u32 ; pub const NF_QUERY : u32 = 3u32 ; pub const NF_REQUERY : u32 = 4u32 ; pub const NID_EXTERNAL_PEN : u32 = 8u32 ; pub const NID_EXTERNAL_TOUCH : u32 = 2u32 ; pub const NID_INTEGRATED_PEN : u32 = 4u32 ; pub const NID_INTEGRATED_TOUCH : u32 = 1u32 ; pub const NID_MULTI_INPUT : u32 = 64u32 ; pub const NID_READY : u32 = 128u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NONCLIENTMETRICSA { pub cbSize : u32 , pub iBorderWidth : i32 , pub iScrollWidth : i32 , pub iScrollHeight : i32 , pub iCaptionWidth : i32 , pub iCaptionHeight : i32 , pub lfCaptionFont : super::super::Graphics::Gdi:: LOGFONTA , pub iSmCaptionWidth : i32 , pub iSmCaptionHeight : i32 , pub lfSmCaptionFont : super::super::Graphics::Gdi:: LOGFONTA , pub iMenuWidth : i32 , pub iMenuHeight : i32 , pub lfMenuFont : super::super::Graphics::Gdi:: LOGFONTA , pub lfStatusFont : super::super::Graphics::Gdi:: LOGFONTA , pub lfMessageFont : super::super::Graphics::Gdi:: LOGFONTA , pub iPaddedBorderWidth : i32 } impl NONCLIENTMETRICSA { } impl :: std :: default :: Default for NONCLIENTMETRICSA { fn default ( ) -> Self { Self { cbSize : 0 , iBorderWidth : 0 , iScrollWidth : 0 , iScrollHeight : 0 , iCaptionWidth : 0 , iCaptionHeight : 0 , lfCaptionFont : :: std :: default :: Default :: default ( ) , iSmCaptionWidth : 0 , iSmCaptionHeight : 0 , lfSmCaptionFont : :: std :: default :: Default :: default ( ) , iMenuWidth : 0 , iMenuHeight : 0 , lfMenuFont : :: std :: default :: Default :: default ( ) , lfStatusFont : :: std :: default :: Default :: default ( ) , lfMessageFont : :: std :: default :: Default :: default ( ) , iPaddedBorderWidth : 0 } } } impl :: std :: fmt :: Debug for NONCLIENTMETRICSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NONCLIENTMETRICSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "iBorderWidth" , & self . iBorderWidth ) . field ( "iScrollWidth" , & self . iScrollWidth ) . field ( "iScrollHeight" , & self . iScrollHeight ) . field ( "iCaptionWidth" , & self . iCaptionWidth ) . field ( "iCaptionHeight" , & self . iCaptionHeight ) . field ( "lfCaptionFont" , & self . lfCaptionFont ) . field ( "iSmCaptionWidth" , & self . iSmCaptionWidth ) . field ( "iSmCaptionHeight" , & self . iSmCaptionHeight ) . field ( "lfSmCaptionFont" , & self . lfSmCaptionFont ) . field ( "iMenuWidth" , & self . iMenuWidth ) . field ( "iMenuHeight" , & self . iMenuHeight ) . field ( "lfMenuFont" , & self . lfMenuFont ) . field ( "lfStatusFont" , & self . lfStatusFont ) . field ( "lfMessageFont" , & self . lfMessageFont ) . field ( "iPaddedBorderWidth" , & self . iPaddedBorderWidth ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NONCLIENTMETRICSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iBorderWidth == other . iBorderWidth && self . iScrollWidth == other . iScrollWidth && self . iScrollHeight == other . iScrollHeight && self . iCaptionWidth == other . iCaptionWidth && self . iCaptionHeight == other . iCaptionHeight && self . lfCaptionFont == other . lfCaptionFont && self . iSmCaptionWidth == other . iSmCaptionWidth && self . iSmCaptionHeight == other . iSmCaptionHeight && self . lfSmCaptionFont == other . lfSmCaptionFont && self . iMenuWidth == other . iMenuWidth && self . iMenuHeight == other . iMenuHeight && self . lfMenuFont == other . lfMenuFont && self . lfStatusFont == other . lfStatusFont && self . lfMessageFont == other . lfMessageFont && self . iPaddedBorderWidth == other . iPaddedBorderWidth } } impl :: std :: cmp :: Eq for NONCLIENTMETRICSA { } unsafe impl :: windows :: Abi for NONCLIENTMETRICSA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NONCLIENTMETRICSW { pub cbSize : u32 , pub iBorderWidth : i32 , pub iScrollWidth : i32 , pub iScrollHeight : i32 , pub iCaptionWidth : i32 , pub iCaptionHeight : i32 , pub lfCaptionFont : super::super::Graphics::Gdi:: LOGFONTW , pub iSmCaptionWidth : i32 , pub iSmCaptionHeight : i32 , pub lfSmCaptionFont : super::super::Graphics::Gdi:: LOGFONTW , pub iMenuWidth : i32 , pub iMenuHeight : i32 , pub lfMenuFont : super::super::Graphics::Gdi:: LOGFONTW , pub lfStatusFont : super::super::Graphics::Gdi:: LOGFONTW , pub lfMessageFont : super::super::Graphics::Gdi:: LOGFONTW , pub iPaddedBorderWidth : i32 } impl NONCLIENTMETRICSW { } impl :: std :: default :: Default for NONCLIENTMETRICSW { fn default ( ) -> Self { Self { cbSize : 0 , iBorderWidth : 0 , iScrollWidth : 0 , iScrollHeight : 0 , iCaptionWidth : 0 , iCaptionHeight : 0 , lfCaptionFont : :: std :: default :: Default :: default ( ) , iSmCaptionWidth : 0 , iSmCaptionHeight : 0 , lfSmCaptionFont : :: std :: default :: Default :: default ( ) , iMenuWidth : 0 , iMenuHeight : 0 , lfMenuFont : :: std :: default :: Default :: default ( ) , lfStatusFont : :: std :: default :: Default :: default ( ) , lfMessageFont : :: std :: default :: Default :: default ( ) , iPaddedBorderWidth : 0 } } } impl :: std :: fmt :: Debug for NONCLIENTMETRICSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NONCLIENTMETRICSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "iBorderWidth" , & self . iBorderWidth ) . field ( "iScrollWidth" , & self . iScrollWidth ) . field ( "iScrollHeight" , & self . iScrollHeight ) . field ( "iCaptionWidth" , & self . iCaptionWidth ) . field ( "iCaptionHeight" , & self . iCaptionHeight ) . field ( "lfCaptionFont" , & self . lfCaptionFont ) . field ( "iSmCaptionWidth" , & self . iSmCaptionWidth ) . field ( "iSmCaptionHeight" , & self . iSmCaptionHeight ) . field ( "lfSmCaptionFont" , & self . lfSmCaptionFont ) . field ( "iMenuWidth" , & self . iMenuWidth ) . field ( "iMenuHeight" , & self . iMenuHeight ) . field ( "lfMenuFont" , & self . lfMenuFont ) . field ( "lfStatusFont" , & self . lfStatusFont ) . field ( "lfMessageFont" , & self . lfMessageFont ) . field ( "iPaddedBorderWidth" , & self . iPaddedBorderWidth ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NONCLIENTMETRICSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iBorderWidth == other . iBorderWidth && self . iScrollWidth == other . iScrollWidth && self . iScrollHeight == other . iScrollHeight && self . iCaptionWidth == other . iCaptionWidth && self . iCaptionHeight == other . iCaptionHeight && self . lfCaptionFont == other . lfCaptionFont && self . iSmCaptionWidth == other . iSmCaptionWidth && self . iSmCaptionHeight == other . iSmCaptionHeight && self . lfSmCaptionFont == other . lfSmCaptionFont && self . iMenuWidth == other . iMenuWidth && self . iMenuHeight == other . iMenuHeight && self . lfMenuFont == other . lfMenuFont && self . lfStatusFont == other . lfStatusFont && self . lfMessageFont == other . lfMessageFont && self . iPaddedBorderWidth == other . iPaddedBorderWidth } } impl :: std :: cmp :: Eq for NONCLIENTMETRICSW { } unsafe impl :: windows :: Abi for NONCLIENTMETRICSW { type Abi = Self ; type DefaultType = Self ; } pub const OBM_BTNCORNERS : u32 = 32758u32 ; pub const OBM_BTSIZE : u32 = 32761u32 ; pub const OBM_CHECK : u32 = 32760u32 ; pub const OBM_CHECKBOXES : u32 = 32759u32 ; pub const OBM_CLOSE : u32 = 32754u32 ; pub const OBM_COMBO : u32 = 32738u32 ; pub const OBM_DNARROW : u32 = 32752u32 ; pub const OBM_DNARROWD : u32 = 32742u32 ; pub const OBM_DNARROWI : u32 = 32736u32 ; pub const OBM_LFARROW : u32 = 32750u32 ; pub const OBM_LFARROWD : u32 = 32740u32 ; pub const OBM_LFARROWI : u32 = 32734u32 ; pub const OBM_MNARROW : u32 = 32739u32 ; pub const OBM_OLD_CLOSE : u32 = 32767u32 ; pub const OBM_OLD_DNARROW : u32 = 32764u32 ; pub const OBM_OLD_LFARROW : u32 = 32762u32 ; pub const OBM_OLD_REDUCE : u32 = 32757u32 ; pub const OBM_OLD_RESTORE : u32 = 32755u32 ; pub const OBM_OLD_RGARROW : u32 = 32763u32 ; pub const OBM_OLD_UPARROW : u32 = 32765u32 ; pub const OBM_OLD_ZOOM : u32 = 32756u32 ; pub const OBM_REDUCE : u32 = 32749u32 ; pub const OBM_REDUCED : u32 = 32746u32 ; pub const OBM_RESTORE : u32 = 32747u32 ; pub const OBM_RESTORED : u32 = 32744u32 ; pub const OBM_RGARROW : u32 = 32751u32 ; pub const OBM_RGARROWD : u32 = 32741u32 ; pub const OBM_RGARROWI : u32 = 32735u32 ; pub const OBM_SIZE : u32 = 32766u32 ; pub const OBM_UPARROW : u32 = 32753u32 ; pub const OBM_UPARROWD : u32 = 32743u32 ; pub const OBM_UPARROWI : u32 = 32737u32 ; pub const OBM_ZOOM : u32 = 32748u32 ; pub const OBM_ZOOMD : u32 = 32745u32 ; pub const OCR_ICOCUR : u32 = 32647u32 ; pub const OCR_ICON : u32 = 32641u32 ; pub const OCR_SIZE : u32 = 32640u32 ; pub const ODA_DRAWENTIRE : u32 = 1u32 ; pub const ODA_FOCUS : u32 = 4u32 ; pub const ODA_SELECT : u32 = 2u32 ; pub const ODS_CHECKED : u32 = 8u32 ; pub const ODS_COMBOBOXEDIT : u32 = 4096u32 ; pub const ODS_DEFAULT : u32 = 32u32 ; pub const ODS_DISABLED : u32 = 4u32 ; pub const ODS_FOCUS : u32 = 16u32 ; pub const ODS_GRAYED : u32 = 2u32 ; pub const ODS_HOTLIGHT : u32 = 64u32 ; pub const ODS_INACTIVE : u32 = 128u32 ; pub const ODS_NOACCEL : u32 = 256u32 ; pub const ODS_NOFOCUSRECT : u32 = 512u32 ; pub const ODS_SELECTED : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYA { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEA , pub pszFile : super::super::Foundation:: PSTR } impl OFNOTIFYA { } impl :: std :: default :: Default for OFNOTIFYA { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , pszFile : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYA" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "pszFile" , & self . pszFile ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYA { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . pszFile == other . pszFile } } impl :: std :: cmp :: Eq for OFNOTIFYA { } unsafe impl :: windows :: Abi for OFNOTIFYA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYEXA { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEA , pub psf : * mut :: std :: ffi :: c_void , pub pidl : * mut :: std :: ffi :: c_void } impl OFNOTIFYEXA { } impl :: std :: default :: Default for OFNOTIFYEXA { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , psf : :: std :: ptr :: null_mut ( ) , pidl : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYEXA" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "psf" , & self . psf ) . field ( "pidl" , & self . pidl ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYEXA { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . psf == other . psf && self . pidl == other . pidl } } impl :: std :: cmp :: Eq for OFNOTIFYEXA { } unsafe impl :: windows :: Abi for OFNOTIFYEXA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYEXW { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEW , pub psf : * mut :: std :: ffi :: c_void , pub pidl : * mut :: std :: ffi :: c_void } impl OFNOTIFYEXW { } impl :: std :: default :: Default for OFNOTIFYEXW { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , psf : :: std :: ptr :: null_mut ( ) , pidl : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYEXW" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "psf" , & self . psf ) . field ( "pidl" , & self . pidl ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYEXW { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . psf == other . psf && self . pidl == other . pidl } } impl :: std :: cmp :: Eq for OFNOTIFYEXW { } unsafe impl :: windows :: Abi for OFNOTIFYEXW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYW { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEW , pub pszFile : super::super::Foundation:: PWSTR } impl OFNOTIFYW { } impl :: std :: default :: Default for OFNOTIFYW { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , pszFile : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYW" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "pszFile" , & self . pszFile ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYW { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . pszFile == other . pszFile } } impl :: std :: cmp :: Eq for OFNOTIFYW { } unsafe impl :: windows :: Abi for OFNOTIFYW { type Abi = Self ; type DefaultType = Self ; } pub const OFN_SHAREFALLTHROUGH : u32 = 2u32 ; pub const OFN_SHARENOWARN : u32 = 1u32 ; pub const OFN_SHAREWARN : u32 = 0u32 ; pub const OIC_BANG : u32 = 32515u32 ; pub const OIC_HAND : u32 = 32513u32 ; pub const OIC_NOTE : u32 = 32516u32 ; pub const OIC_QUES : u32 = 32514u32 ; pub const OIC_SAMPLE : u32 = 32512u32 ; pub const OIC_SHIELD : u32 = 32518u32 ; pub const OIC_WINLOGO : u32 = 32517u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAMEA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } impl OPENFILENAMEA { } impl :: std :: default :: Default for OPENFILENAMEA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , pvReserved : :: std :: ptr :: null_mut ( ) , dwReserved : 0 , FlagsEx : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAMEA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAMEA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "pvReserved" , & self . pvReserved ) . field ( "dwReserved" , & self . dwReserved ) . field ( "FlagsEx" , & self . FlagsEx ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAMEA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . pvReserved == other . pvReserved && self . dwReserved == other . dwReserved && self . FlagsEx == other . FlagsEx } } impl :: std :: cmp :: Eq for OPENFILENAMEA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAMEA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } unsafe impl :: windows :: Abi for OPENFILENAMEA { type Abi = OPENFILENAMEA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAMEW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } impl OPENFILENAMEW { } impl :: std :: default :: Default for OPENFILENAMEW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , pvReserved : :: std :: ptr :: null_mut ( ) , dwReserved : 0 , FlagsEx : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAMEW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAMEW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "pvReserved" , & self . pvReserved ) . field ( "dwReserved" , & self . dwReserved ) . field ( "FlagsEx" , & self . FlagsEx ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAMEW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . pvReserved == other . pvReserved && self . dwReserved == other . dwReserved && self . FlagsEx == other . FlagsEx } } impl :: std :: cmp :: Eq for OPENFILENAMEW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAMEW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } unsafe impl :: windows :: Abi for OPENFILENAMEW { type Abi = OPENFILENAMEW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAME_NT4A { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl OPENFILENAME_NT4A { } impl :: std :: default :: Default for OPENFILENAME_NT4A { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : 0 , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAME_NT4A { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAME_NT4A" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAME_NT4A { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for OPENFILENAME_NT4A { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAME_NT4A_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for OPENFILENAME_NT4A { type Abi = OPENFILENAME_NT4A_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAME_NT4W { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl OPENFILENAME_NT4W { } impl :: std :: default :: Default for OPENFILENAME_NT4W { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : 0 , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAME_NT4W { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAME_NT4W" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAME_NT4W { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for OPENFILENAME_NT4W { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAME_NT4W_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for OPENFILENAME_NT4W { type Abi = OPENFILENAME_NT4W_abi ; 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 OPEN_FILENAME_FLAGS ( pub u32 ) ; pub const OFN_READONLY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1u32 ) ; pub const OFN_OVERWRITEPROMPT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2u32 ) ; pub const OFN_HIDEREADONLY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4u32 ) ; pub const OFN_NOCHANGEDIR : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8u32 ) ; pub const OFN_SHOWHELP : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 16u32 ) ; pub const OFN_ENABLEHOOK : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 32u32 ) ; pub const OFN_ENABLETEMPLATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 64u32 ) ; pub const OFN_ENABLETEMPLATEHANDLE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 128u32 ) ; pub const OFN_NOVALIDATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 256u32 ) ; pub const OFN_ALLOWMULTISELECT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 512u32 ) ; pub const OFN_EXTENSIONDIFFERENT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1024u32 ) ; pub const OFN_PATHMUSTEXIST : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2048u32 ) ; pub const OFN_FILEMUSTEXIST : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4096u32 ) ; pub const OFN_CREATEPROMPT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8192u32 ) ; pub const OFN_SHAREAWARE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 16384u32 ) ; pub const OFN_NOREADONLYRETURN : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 32768u32 ) ; pub const OFN_NOTESTFILECREATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 65536u32 ) ; pub const OFN_NONETWORKBUTTON : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 131072u32 ) ; pub const OFN_NOLONGNAMES : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 262144u32 ) ; pub const OFN_EXPLORER : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 524288u32 ) ; pub const OFN_NODEREFERENCELINKS : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1048576u32 ) ; pub const OFN_LONGNAMES : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2097152u32 ) ; pub const OFN_ENABLEINCLUDENOTIFY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4194304u32 ) ; pub const OFN_ENABLESIZING : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8388608u32 ) ; pub const OFN_DONTADDTORECENT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 33554432u32 ) ; pub const OFN_FORCESHOWHIDDEN : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 268435456u32 ) ; impl :: std :: convert :: From < u32 > for OPEN_FILENAME_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for OPEN_FILENAME_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for OPEN_FILENAME_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for OPEN_FILENAME_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for OPEN_FILENAME_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for OPEN_FILENAME_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct OPEN_FILENAME_FLAGS_EX ( pub u32 ) ; pub const OFN_EX_NONE : OPEN_FILENAME_FLAGS_EX = OPEN_FILENAME_FLAGS_EX ( 0u32 ) ; pub const OFN_EX_NOPLACESBAR : OPEN_FILENAME_FLAGS_EX = OPEN_FILENAME_FLAGS_EX ( 1u32 ) ; impl :: std :: convert :: From < u32 > for OPEN_FILENAME_FLAGS_EX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for OPEN_FILENAME_FLAGS_EX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for OPEN_FILENAME_FLAGS_EX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for OPEN_FILENAME_FLAGS_EX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for OPEN_FILENAME_FLAGS_EX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for OPEN_FILENAME_FLAGS_EX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const ORD_LANGDRIVER : u32 = 1u32 ; pub unsafe fn OemToCharA < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharA ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } OemToCharA ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharBuffA < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharBuffA ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } OemToCharBuffA ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharBuffW < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PWSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharBuffW ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PWSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } OemToCharBuffW ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharW < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PWSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharW ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } OemToCharW ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenIcon < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OpenIcon ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } OpenIcon ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PAGESETUPDLGA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: std :: option :: Option < LPPAGESETUPHOOK > , pub lpfnPagePaintHook : :: std :: option :: Option < LPPAGEPAINTHOOK > , pub lpPageSetupTemplateName : super::super::Foundation:: PSTR , pub hPageSetupTemplate : isize } impl PAGESETUPDLGA { } impl :: std :: default :: Default for PAGESETUPDLGA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , Flags : :: std :: default :: Default :: default ( ) , ptPaperSize : :: std :: default :: Default :: default ( ) , rtMinMargin : :: std :: default :: Default :: default ( ) , rtMargin : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPageSetupHook : :: std :: default :: Default :: default ( ) , lpfnPagePaintHook : :: std :: default :: Default :: default ( ) , lpPageSetupTemplateName : :: std :: default :: Default :: default ( ) , hPageSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PAGESETUPDLGA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PAGESETUPDLGA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "Flags" , & self . Flags ) . field ( "ptPaperSize" , & self . ptPaperSize ) . field ( "rtMinMargin" , & self . rtMinMargin ) . field ( "rtMargin" , & self . rtMargin ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPageSetupTemplateName" , & self . lpPageSetupTemplateName ) . field ( "hPageSetupTemplate" , & self . hPageSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PAGESETUPDLGA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . Flags == other . Flags && self . ptPaperSize == other . ptPaperSize && self . rtMinMargin == other . rtMinMargin && self . rtMargin == other . rtMargin && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPageSetupHook . map ( | f | f as usize ) == other . lpfnPageSetupHook . map ( | f | f as usize ) && self . lpfnPagePaintHook . map ( | f | f as usize ) == other . lpfnPagePaintHook . map ( | f | f as usize ) && self . lpPageSetupTemplateName == other . lpPageSetupTemplateName && self . hPageSetupTemplate == other . hPageSetupTemplate } } impl :: std :: cmp :: Eq for PAGESETUPDLGA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PAGESETUPDLGA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: windows :: RawPtr , pub lpfnPagePaintHook : :: windows :: RawPtr , pub lpPageSetupTemplateName : super::super::Foundation:: PSTR , pub hPageSetupTemplate : isize } unsafe impl :: windows :: Abi for PAGESETUPDLGA { type Abi = PAGESETUPDLGA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PAGESETUPDLGW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: std :: option :: Option < LPPAGESETUPHOOK > , pub lpfnPagePaintHook : :: std :: option :: Option < LPPAGEPAINTHOOK > , pub lpPageSetupTemplateName : super::super::Foundation:: PWSTR , pub hPageSetupTemplate : isize } impl PAGESETUPDLGW { } impl :: std :: default :: Default for PAGESETUPDLGW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , Flags : :: std :: default :: Default :: default ( ) , ptPaperSize : :: std :: default :: Default :: default ( ) , rtMinMargin : :: std :: default :: Default :: default ( ) , rtMargin : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPageSetupHook : :: std :: default :: Default :: default ( ) , lpfnPagePaintHook : :: std :: default :: Default :: default ( ) , lpPageSetupTemplateName : :: std :: default :: Default :: default ( ) , hPageSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PAGESETUPDLGW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PAGESETUPDLGW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "Flags" , & self . Flags ) . field ( "ptPaperSize" , & self . ptPaperSize ) . field ( "rtMinMargin" , & self . rtMinMargin ) . field ( "rtMargin" , & self . rtMargin ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPageSetupTemplateName" , & self . lpPageSetupTemplateName ) . field ( "hPageSetupTemplate" , & self . hPageSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PAGESETUPDLGW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . Flags == other . Flags && self . ptPaperSize == other . ptPaperSize && self . rtMinMargin == other . rtMinMargin && self . rtMargin == other . rtMargin && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPageSetupHook . map ( | f | f as usize ) == other . lpfnPageSetupHook . map ( | f | f as usize ) && self . lpfnPagePaintHook . map ( | f | f as usize ) == other . lpfnPagePaintHook . map ( | f | f as usize ) && self . lpPageSetupTemplateName == other . lpPageSetupTemplateName && self . hPageSetupTemplate == other . hPageSetupTemplate } } impl :: std :: cmp :: Eq for PAGESETUPDLGW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PAGESETUPDLGW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: windows :: RawPtr , pub lpfnPagePaintHook : :: windows :: RawPtr , pub lpPageSetupTemplateName : super::super::Foundation:: PWSTR , pub hPageSetupTemplate : isize } unsafe impl :: windows :: Abi for PAGESETUPDLGW { type Abi = PAGESETUPDLGW_abi ; 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 PAGESETUPDLG_FLAGS ( pub u32 ) ; pub const PSD_DEFAULTMINMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 0u32 ) ; pub const PSD_DISABLEMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 16u32 ) ; pub const PSD_DISABLEORIENTATION : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 256u32 ) ; pub const PSD_DISABLEPAGEPAINTING : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 524288u32 ) ; pub const PSD_DISABLEPAPER : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 512u32 ) ; pub const PSD_DISABLEPRINTER : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 32u32 ) ; pub const PSD_ENABLEPAGEPAINTHOOK : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 262144u32 ) ; pub const PSD_ENABLEPAGESETUPHOOK : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 8192u32 ) ; pub const PSD_ENABLEPAGESETUPTEMPLATE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 32768u32 ) ; pub const PSD_ENABLEPAGESETUPTEMPLATEHANDLE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 131072u32 ) ; pub const PSD_INHUNDREDTHSOFMILLIMETERS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 8u32 ) ; pub const PSD_INTHOUSANDTHSOFINCHES : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 4u32 ) ; pub const PSD_INWININIINTLMEASURE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 0u32 ) ; pub const PSD_MARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2u32 ) ; pub const PSD_MINMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 1u32 ) ; pub const PSD_NONETWORKBUTTON : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2097152u32 ) ; pub const PSD_NOWARNING : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 128u32 ) ; pub const PSD_RETURNDEFAULT : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 1024u32 ) ; pub const PSD_SHOWHELP : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2048u32 ) ; impl :: std :: convert :: From < u32 > for PAGESETUPDLG_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PAGESETUPDLG_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PAGESETUPDLG_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PAGESETUPDLG_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PAGESETUPDLG_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PAGESETUPDLG_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const PBTF_APMRESUMEFROMFAILURE : u32 = 1u32 ; pub const PBT_APMBATTERYLOW : u32 = 9u32 ; pub const PBT_APMOEMEVENT : u32 = 11u32 ; pub const PBT_APMPOWERSTATUSCHANGE : u32 = 10u32 ; pub const PBT_APMQUERYSTANDBY : u32 = 1u32 ; pub const PBT_APMQUERYSTANDBYFAILED : u32 = 3u32 ; pub const PBT_APMQUERYSUSPEND : u32 = 0u32 ; pub const PBT_APMQUERYSUSPENDFAILED : u32 = 2u32 ; pub const PBT_APMRESUMEAUTOMATIC : u32 = 18u32 ; pub const PBT_APMRESUMECRITICAL : u32 = 6u32 ; pub const PBT_APMRESUMESTANDBY : u32 = 8u32 ; pub const PBT_APMRESUMESUSPEND : u32 = 7u32 ; pub const PBT_APMSTANDBY : u32 = 5u32 ; pub const PBT_APMSUSPEND : u32 = 4u32 ; pub const PBT_POWERSETTINGCHANGE : u32 = 32787u32 ; pub const PDC_ARRIVAL : u32 = 1u32 ; pub const PDC_MAPPING_CHANGE : u32 = 256u32 ; pub const PDC_MODE_ASPECTRATIOPRESERVED : u32 = 2048u32 ; pub const PDC_MODE_CENTERED : u32 = 128u32 ; pub const PDC_MODE_DEFAULT : u32 = 64u32 ; pub const PDC_ORIENTATION_0 : u32 = 4u32 ; pub const PDC_ORIENTATION_180 : u32 = 16u32 ; pub const PDC_ORIENTATION_270 : u32 = 32u32 ; pub const PDC_ORIENTATION_90 : u32 = 8u32 ; pub const PDC_ORIGIN : u32 = 1024u32 ; pub const PDC_REMOVAL : u32 = 2u32 ; pub const PDC_RESOLUTION : u32 = 512u32 ; pub const PD_RESULT_APPLY : u32 = 2u32 ; pub const PD_RESULT_CANCEL : u32 = 0u32 ; pub const PD_RESULT_PRINT : 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 PEEK_MESSAGE_REMOVE_TYPE ( pub u32 ) ; pub const PM_NOREMOVE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 0u32 ) ; pub const PM_REMOVE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 1u32 ) ; pub const PM_NOYIELD : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 2u32 ) ; pub const PM_QS_INPUT : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 67567616u32 ) ; pub const PM_QS_POSTMESSAGE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 9961472u32 ) ; pub const PM_QS_PAINT : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 2097152u32 ) ; pub const PM_QS_SENDMESSAGE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 4194304u32 ) ; impl :: std :: convert :: From < u32 > for PEEK_MESSAGE_REMOVE_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PEEK_MESSAGE_REMOVE_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PEEK_MESSAGE_REMOVE_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PEEK_MESSAGE_REMOVE_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PEEK_MESSAGE_REMOVE_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PEEK_MESSAGE_REMOVE_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const PENARBITRATIONTYPE_FIS : u32 = 2u32 ; pub const PENARBITRATIONTYPE_MAX : u32 = 4u32 ; pub const PENARBITRATIONTYPE_NONE : u32 = 0u32 ; pub const PENARBITRATIONTYPE_SPT : u32 = 3u32 ; pub const PENARBITRATIONTYPE_WIN8 : u32 = 1u32 ; pub const PENVISUALIZATION_CURSOR : u32 = 32u32 ; pub const PENVISUALIZATION_DOUBLETAP : u32 = 2u32 ; pub const PENVISUALIZATION_OFF : u32 = 0u32 ; pub const PENVISUALIZATION_ON : u32 = 35u32 ; pub const PENVISUALIZATION_TAP : u32 = 1u32 ; pub const PEN_FLAG_BARREL : u32 = 1u32 ; pub const PEN_FLAG_ERASER : u32 = 4u32 ; pub const PEN_FLAG_INVERTED : u32 = 2u32 ; pub const PEN_FLAG_NONE : u32 = 0u32 ; pub const PEN_MASK_NONE : u32 = 0u32 ; pub const PEN_MASK_PRESSURE : u32 = 1u32 ; pub const PEN_MASK_ROTATION : u32 = 2u32 ; pub const PEN_MASK_TILT_X : u32 = 4u32 ; pub const PEN_MASK_TILT_Y : u32 = 8u32 ; pub const PMB_ACTIVE : u32 = 1u32 ; pub const POINTER_DEVICE_PRODUCT_STRING_MAX : u32 = 520u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct POINTER_INPUT_TYPE ( pub i32 ) ; pub const PT_POINTER : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 1i32 ) ; pub const PT_TOUCH : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 2i32 ) ; pub const PT_PEN : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 3i32 ) ; pub const PT_MOUSE : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 4i32 ) ; pub const PT_TOUCHPAD : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 5i32 ) ; impl :: std :: convert :: From < i32 > for POINTER_INPUT_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for POINTER_INPUT_TYPE { type Abi = Self ; type DefaultType = Self ; } pub const POINTER_MESSAGE_FLAG_CANCELED : u32 = 32768u32 ; pub const POINTER_MESSAGE_FLAG_CONFIDENCE : u32 = 16384u32 ; pub const POINTER_MESSAGE_FLAG_FIFTHBUTTON : u32 = 256u32 ; pub const POINTER_MESSAGE_FLAG_FIRSTBUTTON : u32 = 16u32 ; pub const POINTER_MESSAGE_FLAG_FOURTHBUTTON : u32 = 128u32 ; pub const POINTER_MESSAGE_FLAG_INCONTACT : u32 = 4u32 ; pub const POINTER_MESSAGE_FLAG_INRANGE : u32 = 2u32 ; pub const POINTER_MESSAGE_FLAG_NEW : u32 = 1u32 ; pub const POINTER_MESSAGE_FLAG_PRIMARY : u32 = 8192u32 ; pub const POINTER_MESSAGE_FLAG_SECONDBUTTON : u32 = 32u32 ; pub const POINTER_MESSAGE_FLAG_THIRDBUTTON : u32 = 64u32 ; pub const POINTER_MOD_CTRL : u32 = 8u32 ; pub const POINTER_MOD_SHIFT : u32 = 4u32 ; pub type PREGISTERCLASSNAMEW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR ) -> u8 ; pub const PRF_CHECKVISIBLE : i32 = 1i32 ; pub const PRF_CHILDREN : i32 = 16i32 ; pub const PRF_CLIENT : i32 = 4i32 ; pub const PRF_ERASEBKGND : i32 = 8i32 ; pub const PRF_NONCLIENT : i32 = 2i32 ; pub const PRF_OWNED : i32 = 32i32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: std :: option :: Option < LPPRINTHOOKPROC > , pub lpfnSetupHook : :: std :: option :: Option < LPSETUPHOOKPROC > , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpSetupTemplateName : super::super::Foundation:: PSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } impl PRINTDLGA { } impl :: std :: default :: Default for PRINTDLGA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFromPage : 0 , nToPage : 0 , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPrintHook : :: std :: default :: Default :: default ( ) , lpfnSetupHook : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpSetupTemplateName : :: std :: default :: Default :: default ( ) , hPrintTemplate : 0 , hSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpSetupTemplateName" , & self . lpSetupTemplateName ) . field ( "hPrintTemplate" , & self . hPrintTemplate ) . field ( "hSetupTemplate" , & self . hSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . nFromPage == other . nFromPage && self . nToPage == other . nToPage && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPrintHook . map ( | f | f as usize ) == other . lpfnPrintHook . map ( | f | f as usize ) && self . lpfnSetupHook . map ( | f | f as usize ) == other . lpfnSetupHook . map ( | f | f as usize ) && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpSetupTemplateName == other . lpSetupTemplateName && self . hPrintTemplate == other . hPrintTemplate && self . hSetupTemplate == other . hSetupTemplate } } impl :: std :: cmp :: Eq for PRINTDLGA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: windows :: RawPtr , pub lpfnSetupHook : :: windows :: RawPtr , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpSetupTemplateName : super::super::Foundation:: PSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } unsafe impl :: windows :: Abi for PRINTDLGA { type Abi = PRINTDLGA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGEXA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpCallback : :: std :: option :: Option < :: windows :: IUnknown > , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } impl PRINTDLGEXA { } impl :: std :: default :: Default for PRINTDLGEXA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , Flags2 : 0 , ExclusionFlags : 0 , nPageRanges : 0 , nMaxPageRanges : 0 , lpPageRanges : :: std :: ptr :: null_mut ( ) , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpCallback : :: std :: default :: Default :: default ( ) , nPropertyPages : 0 , lphPropertyPages : :: std :: ptr :: null_mut ( ) , nStartPage : 0 , dwResultAction : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGEXA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "Flags2" , & self . Flags2 ) . field ( "ExclusionFlags" , & self . ExclusionFlags ) . field ( "nPageRanges" , & self . nPageRanges ) . field ( "nMaxPageRanges" , & self . nMaxPageRanges ) . field ( "lpPageRanges" , & self . lpPageRanges ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpCallback" , & self . lpCallback ) . field ( "nPropertyPages" , & self . nPropertyPages ) . field ( "lphPropertyPages" , & self . lphPropertyPages ) . field ( "nStartPage" , & self . nStartPage ) . field ( "dwResultAction" , & self . dwResultAction ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGEXA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . Flags2 == other . Flags2 && self . ExclusionFlags == other . ExclusionFlags && self . nPageRanges == other . nPageRanges && self . nMaxPageRanges == other . nMaxPageRanges && self . lpPageRanges == other . lpPageRanges && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpCallback == other . lpCallback && self . nPropertyPages == other . nPropertyPages && self . lphPropertyPages == other . lphPropertyPages && self . nStartPage == other . nStartPage && self . dwResultAction == other . dwResultAction } } impl :: std :: cmp :: Eq for PRINTDLGEXA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGEXA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpCallback : :: windows :: RawPtr , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } unsafe impl :: windows :: Abi for PRINTDLGEXA { type Abi = PRINTDLGEXA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGEXW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpCallback : :: std :: option :: Option < :: windows :: IUnknown > , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } impl PRINTDLGEXW { } impl :: std :: default :: Default for PRINTDLGEXW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , Flags2 : 0 , ExclusionFlags : 0 , nPageRanges : 0 , nMaxPageRanges : 0 , lpPageRanges : :: std :: ptr :: null_mut ( ) , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpCallback : :: std :: default :: Default :: default ( ) , nPropertyPages : 0 , lphPropertyPages : :: std :: ptr :: null_mut ( ) , nStartPage : 0 , dwResultAction : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGEXW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "Flags2" , & self . Flags2 ) . field ( "ExclusionFlags" , & self . ExclusionFlags ) . field ( "nPageRanges" , & self . nPageRanges ) . field ( "nMaxPageRanges" , & self . nMaxPageRanges ) . field ( "lpPageRanges" , & self . lpPageRanges ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpCallback" , & self . lpCallback ) . field ( "nPropertyPages" , & self . nPropertyPages ) . field ( "lphPropertyPages" , & self . lphPropertyPages ) . field ( "nStartPage" , & self . nStartPage ) . field ( "dwResultAction" , & self . dwResultAction ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGEXW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . Flags2 == other . Flags2 && self . ExclusionFlags == other . ExclusionFlags && self . nPageRanges == other . nPageRanges && self . nMaxPageRanges == other . nMaxPageRanges && self . lpPageRanges == other . lpPageRanges && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpCallback == other . lpCallback && self . nPropertyPages == other . nPropertyPages && self . lphPropertyPages == other . lphPropertyPages && self . nStartPage == other . nStartPage && self . dwResultAction == other . dwResultAction } } impl :: std :: cmp :: Eq for PRINTDLGEXW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGEXW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpCallback : :: windows :: RawPtr , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } unsafe impl :: windows :: Abi for PRINTDLGEXW { type Abi = PRINTDLGEXW_abi ; 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 PRINTDLGEX_FLAGS ( pub u32 ) ; pub const PD_ALLPAGES : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 0u32 ) ; pub const PD_COLLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16u32 ) ; pub const PD_CURRENTPAGE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4194304u32 ) ; pub const PD_DISABLEPRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 524288u32 ) ; pub const PD_ENABLEPRINTTEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16384u32 ) ; pub const PD_ENABLEPRINTTEMPLATEHANDLE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 65536u32 ) ; pub const PD_EXCLUSIONFLAGS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16777216u32 ) ; pub const PD_HIDEPRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1048576u32 ) ; pub const PD_NOCURRENTPAGE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8388608u32 ) ; pub const PD_NOPAGENUMS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8u32 ) ; pub const PD_NOSELECTION : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4u32 ) ; pub const PD_NOWARNING : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 128u32 ) ; pub const PD_PAGENUMS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2u32 ) ; pub const PD_PRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 32u32 ) ; pub const PD_RETURNDC : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 256u32 ) ; pub const PD_RETURNDEFAULT : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1024u32 ) ; pub const PD_RETURNIC : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 512u32 ) ; pub const PD_SELECTION : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1u32 ) ; pub const PD_USEDEVMODECOPIES : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 262144u32 ) ; pub const PD_USEDEVMODECOPIESANDCOLLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 262144u32 ) ; pub const PD_USELARGETEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 268435456u32 ) ; pub const PD_ENABLEPRINTHOOK : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4096u32 ) ; pub const PD_ENABLESETUPHOOK : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8192u32 ) ; pub const PD_ENABLESETUPTEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 32768u32 ) ; pub const PD_ENABLESETUPTEMPLATEHANDLE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 131072u32 ) ; pub const PD_NONETWORKBUTTON : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2097152u32 ) ; pub const PD_PRINTSETUP : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 64u32 ) ; pub const PD_SHOWHELP : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2048u32 ) ; impl :: std :: convert :: From < u32 > for PRINTDLGEX_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PRINTDLGEX_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PRINTDLGEX_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PRINTDLGEX_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PRINTDLGEX_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PRINTDLGEX_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: std :: option :: Option < LPPRINTHOOKPROC > , pub lpfnSetupHook : :: std :: option :: Option < LPSETUPHOOKPROC > , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpSetupTemplateName : super::super::Foundation:: PWSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } impl PRINTDLGW { } impl :: std :: default :: Default for PRINTDLGW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFromPage : 0 , nToPage : 0 , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPrintHook : :: std :: default :: Default :: default ( ) , lpfnSetupHook : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpSetupTemplateName : :: std :: default :: Default :: default ( ) , hPrintTemplate : 0 , hSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpSetupTemplateName" , & self . lpSetupTemplateName ) . field ( "hPrintTemplate" , & self . hPrintTemplate ) . field ( "hSetupTemplate" , & self . hSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . nFromPage == other . nFromPage && self . nToPage == other . nToPage && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPrintHook . map ( | f | f as usize ) == other . lpfnPrintHook . map ( | f | f as usize ) && self . lpfnSetupHook . map ( | f | f as usize ) == other . lpfnSetupHook . map ( | f | f as usize ) && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpSetupTemplateName == other . lpSetupTemplateName && self . hPrintTemplate == other . hPrintTemplate && self . hSetupTemplate == other . hSetupTemplate } } impl :: std :: cmp :: Eq for PRINTDLGW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: windows :: RawPtr , pub lpfnSetupHook : :: windows :: RawPtr , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpSetupTemplateName : super::super::Foundation:: PWSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } unsafe impl :: windows :: Abi for PRINTDLGW { type Abi = PRINTDLGW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct PRINTPAGERANGE { pub nFromPage : u32 , pub nToPage : u32 } impl PRINTPAGERANGE { } impl :: std :: default :: Default for PRINTPAGERANGE { fn default ( ) -> Self { Self { nFromPage : 0 , nToPage : 0 } } } impl :: std :: fmt :: Debug for PRINTPAGERANGE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTPAGERANGE" ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTPAGERANGE { fn eq ( & self , other : & Self ) -> bool { self . nFromPage == other . nFromPage && self . nToPage == other . nToPage } } impl :: std :: cmp :: Eq for PRINTPAGERANGE { } unsafe impl :: windows :: Abi for PRINTPAGERANGE { type Abi = Self ; type DefaultType = Self ; } pub type PROPENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PSTR , param2 : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCEXA = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PSTR , param2 : super::super::Foundation:: HANDLE , param3 : usize ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCEXW = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PWSTR , param2 : super::super::Foundation:: HANDLE , param3 : usize ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PWSTR , param2 : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; pub const PS_OPENTYPE_FONTTYPE : u32 = 65536u32 ; pub const PWR_CRITICALRESUME : u32 = 3u32 ; pub const PWR_FAIL : i32 = -1i32 ; pub const PWR_OK : u32 = 1u32 ; pub const PWR_SUSPENDREQUEST : u32 = 1u32 ; pub const PWR_SUSPENDRESUME : u32 = 2u32 ; pub const PW_RENDERFULLCONTENT : u32 = 2u32 ; pub unsafe fn PageSetupDlgA < > ( param0 : * mut PAGESETUPDLGA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PageSetupDlgA ( param0 : * mut PAGESETUPDLGA_abi ) -> super::super::Foundation:: BOOL ; } PageSetupDlgA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PageSetupDlgW < > ( param0 : * mut PAGESETUPDLGW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PageSetupDlgW ( param0 : * mut PAGESETUPDLGW_abi ) -> super::super::Foundation:: BOOL ; } PageSetupDlgW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PeekMessageA < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PeekMessageA ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE ) -> super::super::Foundation:: BOOL ; } PeekMessageA ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) , :: std :: mem :: transmute ( wremovemsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PeekMessageW < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PeekMessageW ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE ) -> super::super::Foundation:: BOOL ; } PeekMessageW ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) , :: std :: mem :: transmute ( wremovemsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PhysicalToLogicalPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PhysicalToLogicalPoint ( hwnd : super::super::Foundation:: HWND , lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } PhysicalToLogicalPoint ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostQuitMessage < > ( nexitcode : i32 , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostQuitMessage ( nexitcode : i32 ) ; } PostQuitMessage ( :: std :: mem :: transmute ( nexitcode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostThreadMessageA < 'a , > ( idthread : u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostThreadMessageA ( idthread : u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostThreadMessageA ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostThreadMessageW < 'a , > ( idthread : u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostThreadMessageW ( idthread : u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostThreadMessageW ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgA < > ( ppd : * mut PRINTDLGA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgA ( ppd : * mut PRINTDLGA_abi ) -> super::super::Foundation:: BOOL ; } PrintDlgA ( :: std :: mem :: transmute ( ppd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgExA < > ( ppd : * mut PRINTDLGEXA , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgExA ( ppd : * mut PRINTDLGEXA_abi ) -> :: windows :: HRESULT ; } PrintDlgExA ( :: std :: mem :: transmute ( ppd ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgExW < > ( ppd : * mut PRINTDLGEXW , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgExW ( ppd : * mut PRINTDLGEXW_abi ) -> :: windows :: HRESULT ; } PrintDlgExW ( :: std :: mem :: transmute ( ppd ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgW < > ( ppd : * mut PRINTDLGW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgW ( ppd : * mut PRINTDLGW_abi ) -> super::super::Foundation:: BOOL ; } PrintDlgW ( :: std :: mem :: transmute ( ppd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrivateExtractIconsA < 'a , > ( szfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PrivateExtractIconsA ( szfilename : super::super::Foundation:: PSTR , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 ) -> u32 ; } PrivateExtractIconsA ( szfilename . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niconindex ) , :: std :: mem :: transmute ( cxicon ) , :: std :: mem :: transmute ( cyicon ) , :: std :: mem :: transmute ( phicon ) , :: std :: mem :: transmute ( piconid ) , :: std :: mem :: transmute ( nicons ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrivateExtractIconsW < 'a , > ( szfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PrivateExtractIconsW ( szfilename : super::super::Foundation:: PWSTR , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 ) -> u32 ; } PrivateExtractIconsW ( szfilename . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niconindex ) , :: std :: mem :: transmute ( cxicon ) , :: std :: mem :: transmute ( cyicon ) , :: std :: mem :: transmute ( phicon ) , :: std :: mem :: transmute ( piconid ) , :: std :: mem :: transmute ( nicons ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const QS_POINTER : u32 = 4096u32 ; pub const QS_TOUCH : u32 = 2048u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct QUEUE_STATUS_FLAGS ( pub u32 ) ; pub const QS_ALLEVENTS : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1215u32 ) ; pub const QS_ALLINPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1279u32 ) ; pub const QS_ALLPOSTMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 256u32 ) ; pub const QS_HOTKEY : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 128u32 ) ; pub const QS_INPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1031u32 ) ; pub const QS_KEY : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1u32 ) ; pub const QS_MOUSE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 6u32 ) ; pub const QS_MOUSEBUTTON : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 4u32 ) ; pub const QS_MOUSEMOVE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 2u32 ) ; pub const QS_PAINT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 32u32 ) ; pub const QS_POSTMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 8u32 ) ; pub const QS_RAWINPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1024u32 ) ; pub const QS_SENDMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 64u32 ) ; pub const QS_TIMER : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 16u32 ) ; impl :: std :: convert :: From < u32 > for QUEUE_STATUS_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for QUEUE_STATUS_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for QUEUE_STATUS_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for QUEUE_STATUS_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for QUEUE_STATUS_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for QUEUE_STATUS_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const RES_CURSOR : u32 = 2u32 ; pub const RES_ICON : u32 = 1u32 ; pub const RIDEV_EXMODEMASK : u32 = 240u32 ; pub const RIM_INPUT : u32 = 0u32 ; pub const RIM_INPUTSINK : u32 = 1u32 ; pub const RIM_TYPEMAX : u32 = 2u32 ; pub const RI_KEY_BREAK : u32 = 1u32 ; pub const RI_KEY_E0 : u32 = 2u32 ; pub const RI_KEY_E1 : u32 = 4u32 ; pub const RI_KEY_MAKE : u32 = 0u32 ; pub const RI_KEY_TERMSRV_SET_LED : u32 = 8u32 ; pub const RI_KEY_TERMSRV_SHADOW : u32 = 16u32 ; pub const RI_MOUSE_BUTTON_4_DOWN : u32 = 64u32 ; pub const RI_MOUSE_BUTTON_4_UP : u32 = 128u32 ; pub const RI_MOUSE_BUTTON_5_DOWN : u32 = 256u32 ; pub const RI_MOUSE_BUTTON_5_UP : u32 = 512u32 ; pub const RI_MOUSE_HWHEEL : u32 = 2048u32 ; pub const RI_MOUSE_LEFT_BUTTON_DOWN : u32 = 1u32 ; pub const RI_MOUSE_LEFT_BUTTON_UP : u32 = 2u32 ; pub const RI_MOUSE_MIDDLE_BUTTON_DOWN : u32 = 16u32 ; pub const RI_MOUSE_MIDDLE_BUTTON_UP : u32 = 32u32 ; pub const RI_MOUSE_RIGHT_BUTTON_DOWN : u32 = 4u32 ; pub const RI_MOUSE_RIGHT_BUTTON_UP : u32 = 8u32 ; pub const RI_MOUSE_WHEEL : u32 = 1024u32 ; pub const RT_ACCELERATOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 9i32 as _ ) ; pub const RT_ANICURSOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 21i32 as _ ) ; pub const RT_ANIICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 22i32 as _ ) ; pub const RT_BITMAP : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 2i32 as _ ) ; pub const RT_CURSOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 1i32 as _ ) ; pub const RT_DIALOG : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 5i32 as _ ) ; pub const RT_DLGINCLUDE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 17i32 as _ ) ; pub const RT_FONT : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 8i32 as _ ) ; pub const RT_FONTDIR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 7i32 as _ ) ; pub const RT_HTML : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 23i32 as _ ) ; pub const RT_ICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 3i32 as _ ) ; pub const RT_MANIFEST : u32 = 24u32 ; pub const RT_MENU : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 4i32 as _ ) ; pub const RT_MESSAGETABLE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 11i32 as _ ) ; pub const RT_PLUGPLAY : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 19i32 as _ ) ; pub const RT_VERSION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 16i32 as _ ) ; pub const RT_VXD : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 20i32 as _ ) ; pub unsafe fn RealChildWindowFromPoint < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptparentclientcoords : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealChildWindowFromPoint ( hwndparent : super::super::Foundation:: HWND , ptparentclientcoords : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } RealChildWindowFromPoint ( hwndparent . into_param ( ) . abi ( ) , ptparentclientcoords . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RealGetWindowClassA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptszclassname : super::super::Foundation:: PSTR , cchclassnamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealGetWindowClassA ( hwnd : super::super::Foundation:: HWND , ptszclassname : super::super::Foundation:: PSTR , cchclassnamemax : u32 ) -> u32 ; } RealGetWindowClassA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ptszclassname ) , :: std :: mem :: transmute ( cchclassnamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RealGetWindowClassW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptszclassname : super::super::Foundation:: PWSTR , cchclassnamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealGetWindowClassW ( hwnd : super::super::Foundation:: HWND , ptszclassname : super::super::Foundation:: PWSTR , cchclassnamemax : u32 ) -> u32 ; } RealGetWindowClassW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ptszclassname ) , :: std :: mem :: transmute ( cchclassnamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassA < > ( lpwndclass : * const WNDCLASSA , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassA ( lpwndclass : * const WNDCLASSA_abi ) -> u16 ; } RegisterClassA ( :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassExA < > ( param0 : * const WNDCLASSEXA , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassExA ( param0 : * const WNDCLASSEXA_abi ) -> u16 ; } RegisterClassExA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassExW < > ( param0 : * const WNDCLASSEXW , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassExW ( param0 : * const WNDCLASSEXW_abi ) -> u16 ; } RegisterClassExW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassW < > ( lpwndclass : * const WNDCLASSW , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassW ( lpwndclass : * const WNDCLASSW_abi ) -> u16 ; } RegisterClassW ( :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterShellHookWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterShellHookWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } RegisterShellHookWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterWindowMessageA < 'a , > ( lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterWindowMessageA ( lpstring : super::super::Foundation:: PSTR ) -> u32 ; } RegisterWindowMessageA ( lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterWindowMessageW < 'a , > ( lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterWindowMessageW ( lpstring : super::super::Foundation:: PWSTR ) -> u32 ; } RegisterWindowMessageW ( lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemoveMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemoveMenu ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } RemoveMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemovePropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemovePropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HANDLE ; } RemovePropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemovePropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemovePropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } RemovePropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplaceTextA < > ( param0 : * mut FINDREPLACEA , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ReplaceTextA ( param0 : * mut FINDREPLACEA_abi ) -> super::super::Foundation:: HWND ; } ReplaceTextA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplaceTextW < > ( param0 : * mut FINDREPLACEW , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ReplaceTextW ( param0 : * mut FINDREPLACEW_abi ) -> super::super::Foundation:: HWND ; } ReplaceTextW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplyMessage < 'a , > ( lresult : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LRESULT > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ReplyMessage ( lresult : super::super::Foundation:: LRESULT ) -> super::super::Foundation:: BOOL ; } ReplyMessage ( lresult . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const SBM_ENABLE_ARROWS : u32 = 228u32 ; pub const SBM_GETPOS : u32 = 225u32 ; pub const SBM_GETRANGE : u32 = 227u32 ; pub const SBM_GETSCROLLBARINFO : u32 = 235u32 ; pub const SBM_GETSCROLLINFO : u32 = 234u32 ; pub const SBM_SETPOS : u32 = 224u32 ; pub const SBM_SETRANGE : u32 = 226u32 ; pub const SBM_SETRANGEREDRAW : u32 = 230u32 ; pub const SBM_SETSCROLLINFO : u32 = 233u32 ; pub const SBS_BOTTOMALIGN : i32 = 4i32 ; pub const SBS_HORZ : i32 = 0i32 ; pub const SBS_LEFTALIGN : i32 = 2i32 ; pub const SBS_RIGHTALIGN : i32 = 4i32 ; pub const SBS_SIZEBOX : i32 = 8i32 ; pub const SBS_SIZEBOXBOTTOMRIGHTALIGN : i32 = 4i32 ; pub const SBS_SIZEBOXTOPLEFTALIGN : i32 = 2i32 ; pub const SBS_SIZEGRIP : i32 = 16i32 ; pub const SBS_TOPALIGN : i32 = 2i32 ; pub const SBS_VERT : i32 = 1i32 ; pub const SB_BOTTOM : u32 = 7u32 ; pub const SB_ENDSCROLL : u32 = 8u32 ; pub const SB_LEFT : u32 = 6u32 ; pub const SB_LINEDOWN : u32 = 1u32 ; pub const SB_LINELEFT : u32 = 0u32 ; pub const SB_LINERIGHT : u32 = 1u32 ; pub const SB_LINEUP : u32 = 0u32 ; pub const SB_PAGEDOWN : u32 = 3u32 ; pub const SB_PAGELEFT : u32 = 2u32 ; pub const SB_PAGERIGHT : u32 = 3u32 ; pub const SB_PAGEUP : u32 = 2u32 ; pub const SB_RIGHT : u32 = 7u32 ; pub const SB_THUMBPOSITION : u32 = 4u32 ; pub const SB_THUMBTRACK : u32 = 5u32 ; pub const SB_TOP : u32 = 6u32 ; pub const SCF_ISSECURE : u32 = 1u32 ; pub const SC_ARRANGE : u32 = 61712u32 ; pub const SC_CLOSE : u32 = 61536u32 ; pub const SC_CONTEXTHELP : u32 = 61824u32 ; pub const SC_DEFAULT : u32 = 61792u32 ; pub const SC_HOTKEY : u32 = 61776u32 ; pub const SC_HSCROLL : u32 = 61568u32 ; pub const SC_KEYMENU : u32 = 61696u32 ; pub const SC_MAXIMIZE : u32 = 61488u32 ; pub const SC_MINIMIZE : u32 = 61472u32 ; pub const SC_MONITORPOWER : u32 = 61808u32 ; pub const SC_MOUSEMENU : u32 = 61584u32 ; pub const SC_MOVE : u32 = 61456u32 ; pub const SC_NEXTWINDOW : u32 = 61504u32 ; pub const SC_PREVWINDOW : u32 = 61520u32 ; pub const SC_RESTORE : u32 = 61728u32 ; pub const SC_SCREENSAVE : u32 = 61760u32 ; pub const SC_SEPARATOR : u32 = 61455u32 ; pub const SC_SIZE : u32 = 61440u32 ; pub const SC_TASKLIST : u32 = 61744u32 ; pub const SC_VSCROLL : u32 = 61552u32 ; pub type SENDASYNCPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : usize , param3 : super::super::Foundation:: LRESULT ) ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SEND_MESSAGE_TIMEOUT_FLAGS ( pub u32 ) ; pub const SMTO_ABORTIFHUNG : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 2u32 ) ; pub const SMTO_BLOCK : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 1u32 ) ; pub const SMTO_NORMAL : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 0u32 ) ; pub const SMTO_NOTIMEOUTIFNOTHUNG : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 8u32 ) ; pub const SMTO_ERRORONEXIT : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 32u32 ) ; impl :: std :: convert :: From < u32 > for SEND_MESSAGE_TIMEOUT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SEND_MESSAGE_TIMEOUT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SEND_MESSAGE_TIMEOUT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SEND_MESSAGE_TIMEOUT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SEND_MESSAGE_TIMEOUT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SEND_MESSAGE_TIMEOUT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SET_WINDOW_POS_FLAGS ( pub u32 ) ; pub const SWP_ASYNCWINDOWPOS : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 16384u32 ) ; pub const SWP_DEFERERASE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 8192u32 ) ; pub const SWP_DRAWFRAME : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 32u32 ) ; pub const SWP_FRAMECHANGED : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 32u32 ) ; pub const SWP_HIDEWINDOW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 128u32 ) ; pub const SWP_NOACTIVATE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 16u32 ) ; pub const SWP_NOCOPYBITS : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 256u32 ) ; pub const SWP_NOMOVE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 2u32 ) ; pub const SWP_NOOWNERZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; pub const SWP_NOREDRAW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 8u32 ) ; pub const SWP_NOREPOSITION : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; pub const SWP_NOSENDCHANGING : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 1024u32 ) ; pub const SWP_NOSIZE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 1u32 ) ; pub const SWP_NOZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 4u32 ) ; pub const SWP_SHOWWINDOW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 64u32 ) ; pub const SWP__NOOWNERZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; impl :: std :: convert :: From < u32 > for SET_WINDOW_POS_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SET_WINDOW_POS_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SET_WINDOW_POS_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SET_WINDOW_POS_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SET_WINDOW_POS_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SET_WINDOW_POS_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SHELLHOOKINFO { pub hwnd : super::super::Foundation:: HWND , pub rc : super::super::Foundation:: RECT } impl SHELLHOOKINFO { } impl :: std :: default :: Default for SHELLHOOKINFO { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , rc : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for SHELLHOOKINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SHELLHOOKINFO" ) . field ( "hwnd" , & self . hwnd ) . field ( "rc" , & self . rc ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SHELLHOOKINFO { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . rc == other . rc } } impl :: std :: cmp :: Eq for SHELLHOOKINFO { } unsafe impl :: windows :: Abi for SHELLHOOKINFO { type Abi = Self ; type DefaultType = Self ; } pub const SHOW_FULLSCREEN : u32 = 3u32 ; pub const SHOW_ICONWINDOW : u32 = 2u32 ; pub const SHOW_OPENNOACTIVATE : u32 = 4u32 ; pub const SHOW_OPENWINDOW : 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 SHOW_WINDOW_CMD ( pub u32 ) ; pub const SW_FORCEMINIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 11u32 ) ; pub const SW_HIDE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 0u32 ) ; pub const SW_MAXIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_MINIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 6u32 ) ; pub const SW_RESTORE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 9u32 ) ; pub const SW_SHOW : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 5u32 ) ; pub const SW_SHOWDEFAULT : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 10u32 ) ; pub const SW_SHOWMAXIMIZED : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_SHOWMINIMIZED : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_SHOWMINNOACTIVE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 7u32 ) ; pub const SW_SHOWNA : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 8u32 ) ; pub const SW_SHOWNOACTIVATE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SHOWNORMAL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_NORMAL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_MAX : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 11u32 ) ; pub const SW_PARENTCLOSING : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_OTHERZOOM : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_PARENTOPENING : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_OTHERUNZOOM : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SCROLLCHILDREN : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_INVALIDATE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_ERASE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SMOOTHSCROLL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 16u32 ) ; impl :: std :: convert :: From < u32 > for SHOW_WINDOW_CMD { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SHOW_WINDOW_CMD { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SHOW_WINDOW_CMD { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SHOW_WINDOW_CMD { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SHOW_WINDOW_CMD { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SHOW_WINDOW_CMD { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const SIZE_MAXHIDE : u32 = 4u32 ; pub const SIZE_MAXIMIZED : u32 = 2u32 ; pub const SIZE_MAXSHOW : u32 = 3u32 ; pub const SIZE_MINIMIZED : u32 = 1u32 ; pub const SIZE_RESTORED : u32 = 0u32 ; pub const SM_CARETBLINKINGENABLED : u32 = 8194u32 ; pub const SM_CMETRICS : u32 = 76u32 ; pub const SM_RESERVED1 : u32 = 24u32 ; pub const SM_RESERVED2 : u32 = 25u32 ; pub const SM_RESERVED3 : u32 = 26u32 ; pub const SM_RESERVED4 : u32 = 27u32 ; pub const SM_SYSTEMDOCKED : u32 = 8196u32 ; pub const SOUND_SYSTEM_APPEND : u32 = 14u32 ; pub const SOUND_SYSTEM_APPSTART : u32 = 12u32 ; pub const SOUND_SYSTEM_BEEP : u32 = 3u32 ; pub const SOUND_SYSTEM_ERROR : u32 = 4u32 ; pub const SOUND_SYSTEM_FAULT : u32 = 13u32 ; pub const SOUND_SYSTEM_INFORMATION : u32 = 7u32 ; pub const SOUND_SYSTEM_MAXIMIZE : u32 = 8u32 ; pub const SOUND_SYSTEM_MENUCOMMAND : u32 = 15u32 ; pub const SOUND_SYSTEM_MENUPOPUP : u32 = 16u32 ; pub const SOUND_SYSTEM_MINIMIZE : u32 = 9u32 ; pub const SOUND_SYSTEM_QUESTION : u32 = 5u32 ; pub const SOUND_SYSTEM_RESTOREDOWN : u32 = 11u32 ; pub const SOUND_SYSTEM_RESTOREUP : u32 = 10u32 ; pub const SOUND_SYSTEM_SHUTDOWN : u32 = 2u32 ; pub const SOUND_SYSTEM_STARTUP : u32 = 1u32 ; pub const SOUND_SYSTEM_WARNING : u32 = 6u32 ; pub const SS_BITMAP : i32 = 14i32 ; pub const SS_BLACKFRAME : i32 = 7i32 ; pub const SS_BLACKRECT : i32 = 4i32 ; pub const SS_CENTER : i32 = 1i32 ; pub const SS_CENTERIMAGE : i32 = 512i32 ; pub const SS_EDITCONTROL : i32 = 8192i32 ; pub const SS_ELLIPSISMASK : i32 = 49152i32 ; pub const SS_ENDELLIPSIS : i32 = 16384i32 ; pub const SS_ENHMETAFILE : i32 = 15i32 ; pub const SS_ETCHEDFRAME : i32 = 18i32 ; pub const SS_ETCHEDHORZ : i32 = 16i32 ; pub const SS_ETCHEDVERT : i32 = 17i32 ; pub const SS_GRAYFRAME : i32 = 8i32 ; pub const SS_GRAYRECT : i32 = 5i32 ; pub const SS_ICON : i32 = 3i32 ; pub const SS_LEFT : i32 = 0i32 ; pub const SS_LEFTNOWORDWRAP : i32 = 12i32 ; pub const SS_NOPREFIX : i32 = 128i32 ; pub const SS_NOTIFY : i32 = 256i32 ; pub const SS_OWNERDRAW : i32 = 13i32 ; pub const SS_PATHELLIPSIS : i32 = 32768i32 ; pub const SS_REALSIZECONTROL : i32 = 64i32 ; pub const SS_REALSIZEIMAGE : i32 = 2048i32 ; pub const SS_RIGHT : i32 = 2i32 ; pub const SS_RIGHTJUST : i32 = 1024i32 ; pub const SS_SIMPLE : i32 = 11i32 ; pub const SS_SUNKEN : i32 = 4096i32 ; pub const SS_TYPEMASK : i32 = 31i32 ; pub const SS_USERITEM : i32 = 10i32 ; pub const SS_WHITEFRAME : i32 = 9i32 ; pub const SS_WHITERECT : i32 = 6i32 ; pub const SS_WORDELLIPSIS : i32 = 49152i32 ; pub const START_PAGE_GENERAL : u32 = 4294967295u32 ; pub const STATE_SYSTEM_ALERT_HIGH : u32 = 268435456u32 ; pub const STATE_SYSTEM_ALERT_LOW : u32 = 67108864u32 ; pub const STATE_SYSTEM_ALERT_MEDIUM : u32 = 134217728u32 ; pub const STATE_SYSTEM_ANIMATED : u32 = 16384u32 ; pub const STATE_SYSTEM_BUSY : u32 = 2048u32 ; pub const STATE_SYSTEM_CHECKED : u32 = 16u32 ; pub const STATE_SYSTEM_COLLAPSED : u32 = 1024u32 ; pub const STATE_SYSTEM_DEFAULT : u32 = 256u32 ; pub const STATE_SYSTEM_EXPANDED : u32 = 512u32 ; pub const STATE_SYSTEM_EXTSELECTABLE : u32 = 33554432u32 ; pub const STATE_SYSTEM_FLOATING : u32 = 4096u32 ; pub const STATE_SYSTEM_FOCUSED : u32 = 4u32 ; pub const STATE_SYSTEM_HOTTRACKED : u32 = 128u32 ; pub const STATE_SYSTEM_LINKED : u32 = 4194304u32 ; pub const STATE_SYSTEM_MARQUEED : u32 = 8192u32 ; pub const STATE_SYSTEM_MIXED : u32 = 32u32 ; pub const STATE_SYSTEM_MOVEABLE : u32 = 262144u32 ; pub const STATE_SYSTEM_MULTISELECTABLE : u32 = 16777216u32 ; pub const STATE_SYSTEM_PROTECTED : u32 = 536870912u32 ; pub const STATE_SYSTEM_READONLY : u32 = 64u32 ; pub const STATE_SYSTEM_SELECTABLE : u32 = 2097152u32 ; pub const STATE_SYSTEM_SELECTED : u32 = 2u32 ; pub const STATE_SYSTEM_SELFVOICING : u32 = 524288u32 ; pub const STATE_SYSTEM_SIZEABLE : u32 = 131072u32 ; pub const STATE_SYSTEM_TRAVERSED : u32 = 8388608u32 ; pub const STATE_SYSTEM_VALID : u32 = 1073741823u32 ; pub const STM_GETICON : u32 = 369u32 ; pub const STM_GETIMAGE : u32 = 371u32 ; pub const STM_MSGMAX : u32 = 372u32 ; pub const STM_SETICON : u32 = 368u32 ; pub const STM_SETIMAGE : u32 = 370u32 ; pub const STN_CLICKED : u32 = 0u32 ; pub const STN_DBLCLK : u32 = 1u32 ; pub const STN_DISABLE : u32 = 3u32 ; pub const STN_ENABLE : u32 = 2u32 ; pub const STRSAFE_E_END_OF_FILE : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024858i32 as _ ) ; pub const STRSAFE_E_INSUFFICIENT_BUFFER : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024774i32 as _ ) ; pub const STRSAFE_E_INVALID_PARAMETER : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024809i32 as _ ) ; pub const STRSAFE_FILL_BEHIND_NULL : u32 = 512u32 ; pub const STRSAFE_FILL_ON_FAILURE : u32 = 1024u32 ; pub const STRSAFE_IGNORE_NULLS : u32 = 256u32 ; pub const STRSAFE_MAX_CCH : u32 = 2147483647u32 ; pub const STRSAFE_NO_TRUNCATION : u32 = 4096u32 ; pub const STRSAFE_NULL_ON_FAILURE : u32 = 2048u32 ; pub const STRSAFE_USE_SECURE_CRT : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct STYLESTRUCT { pub styleOld : u32 , pub styleNew : u32 } impl STYLESTRUCT { } impl :: std :: default :: Default for STYLESTRUCT { fn default ( ) -> Self { Self { styleOld : 0 , styleNew : 0 } } } impl :: std :: fmt :: Debug for STYLESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "STYLESTRUCT" ) . field ( "styleOld" , & self . styleOld ) . field ( "styleNew" , & self . styleNew ) . finish ( ) } } impl :: std :: cmp :: PartialEq for STYLESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . styleOld == other . styleOld && self . styleNew == other . styleNew } } impl :: std :: cmp :: Eq for STYLESTRUCT { } unsafe impl :: windows :: Abi for STYLESTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const SYMBOL_FONTTYPE : u32 = 524288u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_CURSOR_ID ( pub u32 ) ; pub const OCR_APPSTARTING : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32650u32 ) ; pub const OCR_NORMAL : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32512u32 ) ; pub const OCR_CROSS : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32515u32 ) ; pub const OCR_HAND : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32649u32 ) ; pub const OCR_HELP : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32651u32 ) ; pub const OCR_IBEAM : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32513u32 ) ; pub const OCR_NO : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32648u32 ) ; pub const OCR_SIZEALL : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32646u32 ) ; pub const OCR_SIZENESW : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32643u32 ) ; pub const OCR_SIZENS : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32645u32 ) ; pub const OCR_SIZENWSE : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32642u32 ) ; pub const OCR_SIZEWE : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32644u32 ) ; pub const OCR_UP : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32516u32 ) ; pub const OCR_WAIT : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32514u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_CURSOR_ID { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_CURSOR_ID { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_CURSOR_ID { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_CURSOR_ID { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_CURSOR_ID { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_CURSOR_ID { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_METRICS_INDEX ( pub u32 ) ; pub const SM_ARRANGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 56u32 ) ; pub const SM_CLEANBOOT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 67u32 ) ; pub const SM_CMONITORS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 80u32 ) ; pub const SM_CMOUSEBUTTONS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 43u32 ) ; pub const SM_CONVERTIBLESLATEMODE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8195u32 ) ; pub const SM_CXBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 5u32 ) ; pub const SM_CXCURSOR : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 13u32 ) ; pub const SM_CXDLGFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 7u32 ) ; pub const SM_CXDOUBLECLK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 36u32 ) ; pub const SM_CXDRAG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 68u32 ) ; pub const SM_CXEDGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 45u32 ) ; pub const SM_CXFIXEDFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 7u32 ) ; pub const SM_CXFOCUSBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 83u32 ) ; pub const SM_CXFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 32u32 ) ; pub const SM_CXFULLSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 16u32 ) ; pub const SM_CXHSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 21u32 ) ; pub const SM_CXHTHUMB : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 10u32 ) ; pub const SM_CXICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 11u32 ) ; pub const SM_CXICONSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 38u32 ) ; pub const SM_CXMAXIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 61u32 ) ; pub const SM_CXMAXTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 59u32 ) ; pub const SM_CXMENUCHECK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 71u32 ) ; pub const SM_CXMENUSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 54u32 ) ; pub const SM_CXMIN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 28u32 ) ; pub const SM_CXMINIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 57u32 ) ; pub const SM_CXMINSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 47u32 ) ; pub const SM_CXMINTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 34u32 ) ; pub const SM_CXPADDEDBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 92u32 ) ; pub const SM_CXSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 0u32 ) ; pub const SM_CXSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 30u32 ) ; pub const SM_CXSIZEFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 32u32 ) ; pub const SM_CXSMICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 49u32 ) ; pub const SM_CXSMSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 52u32 ) ; pub const SM_CXVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 78u32 ) ; pub const SM_CXVSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 2u32 ) ; pub const SM_CYBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 6u32 ) ; pub const SM_CYCAPTION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 4u32 ) ; pub const SM_CYCURSOR : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 14u32 ) ; pub const SM_CYDLGFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8u32 ) ; pub const SM_CYDOUBLECLK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 37u32 ) ; pub const SM_CYDRAG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 69u32 ) ; pub const SM_CYEDGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 46u32 ) ; pub const SM_CYFIXEDFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8u32 ) ; pub const SM_CYFOCUSBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 84u32 ) ; pub const SM_CYFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 33u32 ) ; pub const SM_CYFULLSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 17u32 ) ; pub const SM_CYHSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 3u32 ) ; pub const SM_CYICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 12u32 ) ; pub const SM_CYICONSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 39u32 ) ; pub const SM_CYKANJIWINDOW : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 18u32 ) ; pub const SM_CYMAXIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 62u32 ) ; pub const SM_CYMAXTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 60u32 ) ; pub const SM_CYMENU : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 15u32 ) ; pub const SM_CYMENUCHECK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 72u32 ) ; pub const SM_CYMENUSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 55u32 ) ; pub const SM_CYMIN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 29u32 ) ; pub const SM_CYMINIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 58u32 ) ; pub const SM_CYMINSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 48u32 ) ; pub const SM_CYMINTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 35u32 ) ; pub const SM_CYSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 1u32 ) ; pub const SM_CYSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 31u32 ) ; pub const SM_CYSIZEFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 33u32 ) ; pub const SM_CYSMCAPTION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 51u32 ) ; pub const SM_CYSMICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 50u32 ) ; pub const SM_CYSMSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 53u32 ) ; pub const SM_CYVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 79u32 ) ; pub const SM_CYVSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 20u32 ) ; pub const SM_CYVTHUMB : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 9u32 ) ; pub const SM_DBCSENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 42u32 ) ; pub const SM_DEBUG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 22u32 ) ; pub const SM_DIGITIZER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 94u32 ) ; pub const SM_IMMENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 82u32 ) ; pub const SM_MAXIMUMTOUCHES : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 95u32 ) ; pub const SM_MEDIACENTER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 87u32 ) ; pub const SM_MENUDROPALIGNMENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 40u32 ) ; pub const SM_MIDEASTENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 74u32 ) ; pub const SM_MOUSEPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 19u32 ) ; pub const SM_MOUSEHORIZONTALWHEELPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 91u32 ) ; pub const SM_MOUSEWHEELPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 75u32 ) ; pub const SM_NETWORK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 63u32 ) ; pub const SM_PENWINDOWS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 41u32 ) ; pub const SM_REMOTECONTROL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8193u32 ) ; pub const SM_REMOTESESSION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 4096u32 ) ; pub const SM_SAMEDISPLAYFORMAT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 81u32 ) ; pub const SM_SECURE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 44u32 ) ; pub const SM_SERVERR2 : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 89u32 ) ; pub const SM_SHOWSOUNDS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 70u32 ) ; pub const SM_SHUTTINGDOWN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8192u32 ) ; pub const SM_SLOWMACHINE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 73u32 ) ; pub const SM_STARTER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 88u32 ) ; pub const SM_SWAPBUTTON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 23u32 ) ; pub const SM_SYSTEMDOCKED_ : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8196u32 ) ; pub const SM_TABLETPC : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 86u32 ) ; pub const SM_XVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 76u32 ) ; pub const SM_YVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 77u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_METRICS_INDEX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_METRICS_INDEX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_METRICS_INDEX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_METRICS_INDEX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_METRICS_INDEX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_METRICS_INDEX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_PARAMETERS_INFO_ACTION ( pub u32 ) ; pub const SPI_GETBEEP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 1u32 ) ; pub const SPI_SETBEEP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 2u32 ) ; pub const SPI_GETMOUSE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 3u32 ) ; pub const SPI_SETMOUSE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4u32 ) ; pub const SPI_GETBORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 5u32 ) ; pub const SPI_SETBORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 6u32 ) ; pub const SPI_GETKEYBOARDSPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 10u32 ) ; pub const SPI_SETKEYBOARDSPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 11u32 ) ; pub const SPI_LANGDRIVER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 12u32 ) ; pub const SPI_ICONHORIZONTALSPACING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 13u32 ) ; pub const SPI_GETSCREENSAVETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 14u32 ) ; pub const SPI_SETSCREENSAVETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 15u32 ) ; pub const SPI_GETSCREENSAVEACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 16u32 ) ; pub const SPI_SETSCREENSAVEACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 17u32 ) ; pub const SPI_GETGRIDGRANULARITY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 18u32 ) ; pub const SPI_SETGRIDGRANULARITY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 19u32 ) ; pub const SPI_SETDESKWALLPAPER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 20u32 ) ; pub const SPI_SETDESKPATTERN : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 21u32 ) ; pub const SPI_GETKEYBOARDDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 22u32 ) ; pub const SPI_SETKEYBOARDDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 23u32 ) ; pub const SPI_ICONVERTICALSPACING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 24u32 ) ; pub const SPI_GETICONTITLEWRAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 25u32 ) ; pub const SPI_SETICONTITLEWRAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 26u32 ) ; pub const SPI_GETMENUDROPALIGNMENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 27u32 ) ; pub const SPI_SETMENUDROPALIGNMENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 28u32 ) ; pub const SPI_SETDOUBLECLKWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 29u32 ) ; pub const SPI_SETDOUBLECLKHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 30u32 ) ; pub const SPI_GETICONTITLELOGFONT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 31u32 ) ; pub const SPI_SETDOUBLECLICKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 32u32 ) ; pub const SPI_SETMOUSEBUTTONSWAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 33u32 ) ; pub const SPI_SETICONTITLELOGFONT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 34u32 ) ; pub const SPI_GETFASTTASKSWITCH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 35u32 ) ; pub const SPI_SETFASTTASKSWITCH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 36u32 ) ; pub const SPI_SETDRAGFULLWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 37u32 ) ; pub const SPI_GETDRAGFULLWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 38u32 ) ; pub const SPI_GETNONCLIENTMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 41u32 ) ; pub const SPI_SETNONCLIENTMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 42u32 ) ; pub const SPI_GETMINIMIZEDMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 43u32 ) ; pub const SPI_SETMINIMIZEDMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 44u32 ) ; pub const SPI_GETICONMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 45u32 ) ; pub const SPI_SETICONMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 46u32 ) ; pub const SPI_SETWORKAREA : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 47u32 ) ; pub const SPI_GETWORKAREA : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 48u32 ) ; pub const SPI_SETPENWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 49u32 ) ; pub const SPI_GETHIGHCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 66u32 ) ; pub const SPI_SETHIGHCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 67u32 ) ; pub const SPI_GETKEYBOARDPREF : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 68u32 ) ; pub const SPI_SETKEYBOARDPREF : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 69u32 ) ; pub const SPI_GETSCREENREADER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 70u32 ) ; pub const SPI_SETSCREENREADER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 71u32 ) ; pub const SPI_GETANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 72u32 ) ; pub const SPI_SETANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 73u32 ) ; pub const SPI_GETFONTSMOOTHING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 74u32 ) ; pub const SPI_SETFONTSMOOTHING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 75u32 ) ; pub const SPI_SETDRAGWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 76u32 ) ; pub const SPI_SETDRAGHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 77u32 ) ; pub const SPI_SETHANDHELD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 78u32 ) ; pub const SPI_GETLOWPOWERTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 79u32 ) ; pub const SPI_GETPOWEROFFTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 80u32 ) ; pub const SPI_SETLOWPOWERTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 81u32 ) ; pub const SPI_SETPOWEROFFTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 82u32 ) ; pub const SPI_GETLOWPOWERACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 83u32 ) ; pub const SPI_GETPOWEROFFACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 84u32 ) ; pub const SPI_SETLOWPOWERACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 85u32 ) ; pub const SPI_SETPOWEROFFACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 86u32 ) ; pub const SPI_SETCURSORS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 87u32 ) ; pub const SPI_SETICONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 88u32 ) ; pub const SPI_GETDEFAULTINPUTLANG : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 89u32 ) ; pub const SPI_SETDEFAULTINPUTLANG : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 90u32 ) ; pub const SPI_SETLANGTOGGLE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 91u32 ) ; pub const SPI_GETWINDOWSEXTENSION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 92u32 ) ; pub const SPI_SETMOUSETRAILS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 93u32 ) ; pub const SPI_GETMOUSETRAILS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 94u32 ) ; pub const SPI_SETSCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 97u32 ) ; pub const SPI_SCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 97u32 ) ; pub const SPI_GETFILTERKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 50u32 ) ; pub const SPI_SETFILTERKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 51u32 ) ; pub const SPI_GETTOGGLEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 52u32 ) ; pub const SPI_SETTOGGLEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 53u32 ) ; pub const SPI_GETMOUSEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 54u32 ) ; pub const SPI_SETMOUSEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 55u32 ) ; pub const SPI_GETSHOWSOUNDS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 56u32 ) ; pub const SPI_SETSHOWSOUNDS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 57u32 ) ; pub const SPI_GETSTICKYKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 58u32 ) ; pub const SPI_SETSTICKYKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 59u32 ) ; pub const SPI_GETACCESSTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 60u32 ) ; pub const SPI_SETACCESSTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 61u32 ) ; pub const SPI_GETSERIALKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 62u32 ) ; pub const SPI_SETSERIALKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 63u32 ) ; pub const SPI_GETSOUNDSENTRY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 64u32 ) ; pub const SPI_SETSOUNDSENTRY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 65u32 ) ; pub const SPI_GETSNAPTODEFBUTTON : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 95u32 ) ; pub const SPI_SETSNAPTODEFBUTTON : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 96u32 ) ; pub const SPI_GETMOUSEHOVERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 98u32 ) ; pub const SPI_SETMOUSEHOVERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 99u32 ) ; pub const SPI_GETMOUSEHOVERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 100u32 ) ; pub const SPI_SETMOUSEHOVERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 101u32 ) ; pub const SPI_GETMOUSEHOVERTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 102u32 ) ; pub const SPI_SETMOUSEHOVERTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 103u32 ) ; pub const SPI_GETWHEELSCROLLLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 104u32 ) ; pub const SPI_SETWHEELSCROLLLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 105u32 ) ; pub const SPI_GETMENUSHOWDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 106u32 ) ; pub const SPI_SETMENUSHOWDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 107u32 ) ; pub const SPI_GETWHEELSCROLLCHARS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 108u32 ) ; pub const SPI_SETWHEELSCROLLCHARS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 109u32 ) ; pub const SPI_GETSHOWIMEUI : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 110u32 ) ; pub const SPI_SETSHOWIMEUI : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 111u32 ) ; pub const SPI_GETMOUSESPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 112u32 ) ; pub const SPI_SETMOUSESPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 113u32 ) ; pub const SPI_GETSCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 114u32 ) ; pub const SPI_GETDESKWALLPAPER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 115u32 ) ; pub const SPI_GETAUDIODESCRIPTION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 116u32 ) ; pub const SPI_SETAUDIODESCRIPTION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 117u32 ) ; pub const SPI_GETSCREENSAVESECURE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 118u32 ) ; pub const SPI_SETSCREENSAVESECURE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 119u32 ) ; pub const SPI_GETHUNGAPPTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 120u32 ) ; pub const SPI_SETHUNGAPPTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 121u32 ) ; pub const SPI_GETWAITTOKILLTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 122u32 ) ; pub const SPI_SETWAITTOKILLTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 123u32 ) ; pub const SPI_GETWAITTOKILLSERVICETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 124u32 ) ; pub const SPI_SETWAITTOKILLSERVICETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 125u32 ) ; pub const SPI_GETMOUSEDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 126u32 ) ; pub const SPI_SETMOUSEDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 127u32 ) ; pub const SPI_GETPENDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 128u32 ) ; pub const SPI_SETPENDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 129u32 ) ; pub const SPI_GETWINARRANGING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 130u32 ) ; pub const SPI_SETWINARRANGING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 131u32 ) ; pub const SPI_GETMOUSEDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 132u32 ) ; pub const SPI_SETMOUSEDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 133u32 ) ; pub const SPI_GETPENDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 134u32 ) ; pub const SPI_SETPENDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 135u32 ) ; pub const SPI_GETMOUSESIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 136u32 ) ; pub const SPI_SETMOUSESIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 137u32 ) ; pub const SPI_GETPENSIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 138u32 ) ; pub const SPI_SETPENSIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 139u32 ) ; pub const SPI_GETDRAGFROMMAXIMIZE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 140u32 ) ; pub const SPI_SETDRAGFROMMAXIMIZE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 141u32 ) ; pub const SPI_GETSNAPSIZING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 142u32 ) ; pub const SPI_SETSNAPSIZING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 143u32 ) ; pub const SPI_GETDOCKMOVING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 144u32 ) ; pub const SPI_SETDOCKMOVING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 145u32 ) ; pub const SPI_GETTOUCHPREDICTIONPARAMETERS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 156u32 ) ; pub const SPI_SETTOUCHPREDICTIONPARAMETERS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 157u32 ) ; pub const SPI_GETLOGICALDPIOVERRIDE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 158u32 ) ; pub const SPI_SETLOGICALDPIOVERRIDE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 159u32 ) ; pub const SPI_GETMENURECT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 162u32 ) ; pub const SPI_SETMENURECT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 163u32 ) ; pub const SPI_GETACTIVEWINDOWTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4096u32 ) ; pub const SPI_SETACTIVEWINDOWTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4097u32 ) ; pub const SPI_GETMENUANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4098u32 ) ; pub const SPI_SETMENUANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4099u32 ) ; pub const SPI_GETCOMBOBOXANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4100u32 ) ; pub const SPI_SETCOMBOBOXANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4101u32 ) ; pub const SPI_GETLISTBOXSMOOTHSCROLLING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4102u32 ) ; pub const SPI_SETLISTBOXSMOOTHSCROLLING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4103u32 ) ; pub const SPI_GETGRADIENTCAPTIONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4104u32 ) ; pub const SPI_SETGRADIENTCAPTIONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4105u32 ) ; pub const SPI_GETKEYBOARDCUES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4106u32 ) ; pub const SPI_SETKEYBOARDCUES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4107u32 ) ; pub const SPI_GETMENUUNDERLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4106u32 ) ; pub const SPI_SETMENUUNDERLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4107u32 ) ; pub const SPI_GETACTIVEWNDTRKZORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4108u32 ) ; pub const SPI_SETACTIVEWNDTRKZORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4109u32 ) ; pub const SPI_GETHOTTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4110u32 ) ; pub const SPI_SETHOTTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4111u32 ) ; pub const SPI_GETMENUFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4114u32 ) ; pub const SPI_SETMENUFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4115u32 ) ; pub const SPI_GETSELECTIONFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4116u32 ) ; pub const SPI_SETSELECTIONFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4117u32 ) ; pub const SPI_GETTOOLTIPANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4118u32 ) ; pub const SPI_SETTOOLTIPANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4119u32 ) ; pub const SPI_GETTOOLTIPFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4120u32 ) ; pub const SPI_SETTOOLTIPFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4121u32 ) ; pub const SPI_GETCURSORSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4122u32 ) ; pub const SPI_SETCURSORSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4123u32 ) ; pub const SPI_GETMOUSESONAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4124u32 ) ; pub const SPI_SETMOUSESONAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4125u32 ) ; pub const SPI_GETMOUSECLICKLOCK : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4126u32 ) ; pub const SPI_SETMOUSECLICKLOCK : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4127u32 ) ; pub const SPI_GETMOUSEVANISH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4128u32 ) ; pub const SPI_SETMOUSEVANISH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4129u32 ) ; pub const SPI_GETFLATMENU : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4130u32 ) ; pub const SPI_SETFLATMENU : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4131u32 ) ; pub const SPI_GETDROPSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4132u32 ) ; pub const SPI_SETDROPSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4133u32 ) ; pub const SPI_GETBLOCKSENDINPUTRESETS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4134u32 ) ; pub const SPI_SETBLOCKSENDINPUTRESETS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4135u32 ) ; pub const SPI_GETUIEFFECTS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4158u32 ) ; pub const SPI_SETUIEFFECTS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4159u32 ) ; pub const SPI_GETDISABLEOVERLAPPEDCONTENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4160u32 ) ; pub const SPI_SETDISABLEOVERLAPPEDCONTENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4161u32 ) ; pub const SPI_GETCLIENTAREAANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4162u32 ) ; pub const SPI_SETCLIENTAREAANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4163u32 ) ; pub const SPI_GETCLEARTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4168u32 ) ; pub const SPI_SETCLEARTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4169u32 ) ; pub const SPI_GETSPEECHRECOGNITION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4170u32 ) ; pub const SPI_SETSPEECHRECOGNITION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4171u32 ) ; pub const SPI_GETCARETBROWSING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4172u32 ) ; pub const SPI_SETCARETBROWSING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4173u32 ) ; pub const SPI_GETTHREADLOCALINPUTSETTINGS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4174u32 ) ; pub const SPI_SETTHREADLOCALINPUTSETTINGS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4175u32 ) ; pub const SPI_GETSYSTEMLANGUAGEBAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4176u32 ) ; pub const SPI_SETSYSTEMLANGUAGEBAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4177u32 ) ; pub const SPI_GETFOREGROUNDLOCKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8192u32 ) ; pub const SPI_SETFOREGROUNDLOCKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8193u32 ) ; pub const SPI_GETACTIVEWNDTRKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8194u32 ) ; pub const SPI_SETACTIVEWNDTRKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8195u32 ) ; pub const SPI_GETFOREGROUNDFLASHCOUNT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8196u32 ) ; pub const SPI_SETFOREGROUNDFLASHCOUNT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8197u32 ) ; pub const SPI_GETCARETWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8198u32 ) ; pub const SPI_SETCARETWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8199u32 ) ; pub const SPI_GETMOUSECLICKLOCKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8200u32 ) ; pub const SPI_SETMOUSECLICKLOCKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8201u32 ) ; pub const SPI_GETFONTSMOOTHINGTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8202u32 ) ; pub const SPI_SETFONTSMOOTHINGTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8203u32 ) ; pub const SPI_GETFONTSMOOTHINGCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8204u32 ) ; pub const SPI_SETFONTSMOOTHINGCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8205u32 ) ; pub const SPI_GETFOCUSBORDERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8206u32 ) ; pub const SPI_SETFOCUSBORDERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8207u32 ) ; pub const SPI_GETFOCUSBORDERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8208u32 ) ; pub const SPI_SETFOCUSBORDERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8209u32 ) ; pub const SPI_GETFONTSMOOTHINGORIENTATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8210u32 ) ; pub const SPI_SETFONTSMOOTHINGORIENTATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8211u32 ) ; pub const SPI_GETMINIMUMHITRADIUS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8212u32 ) ; pub const SPI_SETMINIMUMHITRADIUS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8213u32 ) ; pub const SPI_GETMESSAGEDURATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8214u32 ) ; pub const SPI_SETMESSAGEDURATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8215u32 ) ; pub const SPI_GETCONTACTVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8216u32 ) ; pub const SPI_SETCONTACTVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8217u32 ) ; pub const SPI_GETGESTUREVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8218u32 ) ; pub const SPI_SETGESTUREVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8219u32 ) ; pub const SPI_GETMOUSEWHEELROUTING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8220u32 ) ; pub const SPI_SETMOUSEWHEELROUTING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8221u32 ) ; pub const SPI_GETPENVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8222u32 ) ; pub const SPI_SETPENVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8223u32 ) ; pub const SPI_GETPENARBITRATIONTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8224u32 ) ; pub const SPI_SETPENARBITRATIONTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8225u32 ) ; pub const SPI_GETCARETTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8226u32 ) ; pub const SPI_SETCARETTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8227u32 ) ; pub const SPI_GETHANDEDNESS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8228u32 ) ; pub const SPI_SETHANDEDNESS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8229u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_PARAMETERS_INFO_ACTION { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_PARAMETERS_INFO_ACTION { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_PARAMETERS_INFO_ACTION { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_PARAMETERS_INFO_ACTION { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_PARAMETERS_INFO_ACTION { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_PARAMETERS_INFO_ACTION { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( pub u32 ) ; pub const SPIF_UPDATEINIFILE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 1u32 ) ; pub const SPIF_SENDCHANGE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 2u32 ) ; pub const SPIF_SENDWININICHANGE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYS_COLOR_INDEX ( pub u32 ) ; pub const COLOR_3DDKSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 21u32 ) ; pub const COLOR_3DFACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 15u32 ) ; pub const COLOR_3DHIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_3DHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_3DLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 22u32 ) ; pub const COLOR_3DSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 16u32 ) ; pub const COLOR_ACTIVEBORDER : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 10u32 ) ; pub const COLOR_ACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 2u32 ) ; pub const COLOR_APPWORKSPACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 12u32 ) ; pub const COLOR_BACKGROUND : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 1u32 ) ; pub const COLOR_BTNFACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 15u32 ) ; pub const _COLOR_BTNHIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const _COLOR_BTNHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_BTNSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 16u32 ) ; pub const COLOR_BTNTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 18u32 ) ; pub const COLOR_CAPTIONTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 9u32 ) ; pub const COLOR_DESKTOP : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 1u32 ) ; pub const COLOR_GRADIENTACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 27u32 ) ; pub const COLOR_GRADIENTINACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 28u32 ) ; pub const COLOR_GRAYTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 17u32 ) ; pub const COLOR_HIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 13u32 ) ; pub const COLOR_HIGHLIGHTTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 14u32 ) ; pub const COLOR_HOTLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 26u32 ) ; pub const COLOR_INACTIVEBORDER : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 11u32 ) ; pub const COLOR_INACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 3u32 ) ; pub const COLOR_INACTIVECAPTIONTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 19u32 ) ; pub const COLOR_INFOBK : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 24u32 ) ; pub const COLOR_INFOTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 23u32 ) ; pub const COLOR_MENU : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 4u32 ) ; pub const COLOR_MENUHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 29u32 ) ; pub const COLOR_MENUBAR : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 30u32 ) ; pub const COLOR_MENUTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 7u32 ) ; pub const COLOR_SCROLLBAR : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 0u32 ) ; pub const COLOR_WINDOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 5u32 ) ; pub const COLOR_WINDOWFRAME : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 6u32 ) ; pub const COLOR_WINDOWTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 8u32 ) ; impl :: std :: convert :: From < u32 > for SYS_COLOR_INDEX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYS_COLOR_INDEX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYS_COLOR_INDEX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYS_COLOR_INDEX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYS_COLOR_INDEX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYS_COLOR_INDEX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub unsafe fn SendDlgItemMessageA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendDlgItemMessageA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendDlgItemMessageA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendDlgItemMessageW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendDlgItemMessageW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendDlgItemMessageW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , :: std :: mem :: transmute ( wparam ) , :: std :: mem :: transmute ( lparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageCallbackA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , lpresultcallback : :: std :: option :: Option < SENDASYNCPROC > , dwdata : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageCallbackA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , lpresultcallback : :: windows :: RawPtr , dwdata : usize ) -> super::super::Foundation:: BOOL ; } SendMessageCallbackA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpresultcallback ) , :: std :: mem :: transmute ( dwdata ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageCallbackW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , lpresultcallback : :: std :: option :: Option < SENDASYNCPROC > , dwdata : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageCallbackW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , lpresultcallback : :: windows :: RawPtr , dwdata : usize ) -> super::super::Foundation:: BOOL ; } SendMessageCallbackW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpresultcallback ) , :: std :: mem :: transmute ( dwdata ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageTimeoutA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageTimeoutA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize ) -> super::super::Foundation:: LRESULT ; } SendMessageTimeoutA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fuflags ) , :: std :: mem :: transmute ( utimeout ) , :: std :: mem :: transmute ( lpdwresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageTimeoutW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageTimeoutW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize ) -> super::super::Foundation:: LRESULT ; } SendMessageTimeoutW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fuflags ) , :: std :: mem :: transmute ( utimeout ) , :: std :: mem :: transmute ( lpdwresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , :: std :: mem :: transmute ( wparam ) , :: std :: mem :: transmute ( lparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendNotifyMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendNotifyMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } SendNotifyMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendNotifyMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendNotifyMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } SendNotifyMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCaretBlinkTime < > ( umseconds : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCaretBlinkTime ( umseconds : u32 ) -> super::super::Foundation:: BOOL ; } SetCaretBlinkTime ( :: std :: mem :: transmute ( umseconds ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCaretPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCaretPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetCaretPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 ) -> u32 ; } SetClassLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize ) -> usize ; } SetClassLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize ) -> usize ; } SetClassLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 ) -> u32 ; } SetClassLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , wnewword : u16 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 , wnewword : u16 ) -> u16 ; } SetClassWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( wnewword ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCoalescableTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nidevent : usize , uelapse : u32 , lptimerfunc : :: std :: option :: Option < TIMERPROC > , utolerancedelay : u32 , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCoalescableTimer ( hwnd : super::super::Foundation:: HWND , nidevent : usize , uelapse : u32 , lptimerfunc : :: windows :: RawPtr , utolerancedelay : u32 ) -> usize ; } SetCoalescableTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nidevent ) , :: std :: mem :: transmute ( uelapse ) , :: std :: mem :: transmute ( lptimerfunc ) , :: std :: mem :: transmute ( utolerancedelay ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCursor < 'a , > ( hcursor : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCursor ( hcursor : HCURSOR ) -> HCURSOR ; } SetCursor ( hcursor . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCursorPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCursorPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetCursorPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDebugErrorLevel < > ( dwlevel : u32 , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDebugErrorLevel ( dwlevel : u32 ) ; } SetDebugErrorLevel ( :: std :: mem :: transmute ( dwlevel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemInt < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , uvalue : u32 , bsigned : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemInt ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , uvalue : u32 , bsigned : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } SetDlgItemInt ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( uvalue ) , bsigned . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemTextA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemTextA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } SetDlgItemTextA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemTextW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemTextW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } SetDlgItemTextW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetForegroundWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetForegroundWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } SetForegroundWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetLayeredWindowAttributes < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , crkey : u32 , balpha : u8 , dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetLayeredWindowAttributes ( hwnd : super::super::Foundation:: HWND , crkey : u32 , balpha : u8 , dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS ) -> super::super::Foundation:: BOOL ; } SetLayeredWindowAttributes ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( crkey ) , :: std :: mem :: transmute ( balpha ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenu ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } SetMenu ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuDefaultItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uitem : u32 , fbypos : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuDefaultItem ( hmenu : HMENU , uitem : u32 , fbypos : u32 ) -> super::super::Foundation:: BOOL ; } SetMenuDefaultItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uitem ) , :: std :: mem :: transmute ( fbypos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuInfo < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , HMENU > , param1 : * mut MENUINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuInfo ( param0 : HMENU , param1 : * mut MENUINFO ) -> super::super::Foundation:: BOOL ; } SetMenuInfo ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( param1 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemBitmaps < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , hbitmapunchecked : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , hbitmapchecked : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemBitmaps ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , hbitmapunchecked : super::super::Graphics::Gdi:: HBITMAP , hbitmapchecked : super::super::Graphics::Gdi:: HBITMAP ) -> super::super::Foundation:: BOOL ; } SetMenuItemBitmaps ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , hbitmapunchecked . into_param ( ) . abi ( ) , hbitmapchecked . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemInfoA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbypositon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemInfoA ( hmenu : HMENU , item : u32 , fbypositon : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } SetMenuItemInfoA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbypositon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemInfoW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbypositon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemInfoW ( hmenu : HMENU , item : u32 , fbypositon : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } SetMenuItemInfoW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbypositon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMessageExtraInfo < 'a , > ( lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LPARAM { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMessageExtraInfo ( lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LPARAM ; } SetMessageExtraInfo ( lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMessageQueue < > ( cmessagesmax : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMessageQueue ( cmessagesmax : i32 ) -> super::super::Foundation:: BOOL ; } SetMessageQueue ( :: std :: mem :: transmute ( cmessagesmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetParent < 'a , > ( hwndchild : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndnewparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetParent ( hwndchild : super::super::Foundation:: HWND , hwndnewparent : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } SetParent ( hwndchild . into_param ( ) . abi ( ) , hwndnewparent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPhysicalCursorPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPhysicalCursorPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetPhysicalCursorPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetProcessDPIAware < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetProcessDPIAware ( ) -> super::super::Foundation:: BOOL ; } SetProcessDPIAware ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetProcessDefaultLayout < > ( dwdefaultlayout : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetProcessDefaultLayout ( dwdefaultlayout : u32 ) -> super::super::Foundation:: BOOL ; } SetProcessDefaultLayout ( :: std :: mem :: transmute ( dwdefaultlayout ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hdata : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR , hdata : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } SetPropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) , hdata . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hdata : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR , hdata : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } SetPropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) , hdata . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetSysColors < > ( celements : i32 , lpaelements : * const i32 , lpargbvalues : * const u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetSysColors ( celements : i32 , lpaelements : * const i32 , lpargbvalues : * const u32 ) -> super::super::Foundation:: BOOL ; } SetSysColors ( :: std :: mem :: transmute ( celements ) , :: std :: mem :: transmute ( lpaelements ) , :: std :: mem :: transmute ( lpargbvalues ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetSystemCursor < 'a , > ( hcur : impl :: windows :: IntoParam < 'a , HCURSOR > , id : SYSTEM_CURSOR_ID , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetSystemCursor ( hcur : HCURSOR , id : SYSTEM_CURSOR_ID ) -> super::super::Foundation:: BOOL ; } SetSystemCursor ( hcur . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( id ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nidevent : usize , uelapse : u32 , lptimerfunc : :: std :: option :: Option < TIMERPROC > , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetTimer ( hwnd : super::super::Foundation:: HWND , nidevent : usize , uelapse : u32 , lptimerfunc : :: windows :: RawPtr ) -> usize ; } SetTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nidevent ) , :: std :: mem :: transmute ( uelapse ) , :: std :: mem :: transmute ( lptimerfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowDisplayAffinity < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , dwaffinity : WINDOW_DISPLAY_AFFINITY , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowDisplayAffinity ( hwnd : super::super::Foundation:: HWND , dwaffinity : WINDOW_DISPLAY_AFFINITY ) -> super::super::Foundation:: BOOL ; } SetWindowDisplayAffinity ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwaffinity ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 ) -> i32 ; } SetWindowLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize ) -> isize ; } SetWindowLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize ) -> isize ; } SetWindowLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 ) -> i32 ; } SetWindowLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowPlacement < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpwndpl : * const WINDOWPLACEMENT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowPlacement ( hwnd : super::super::Foundation:: HWND , lpwndpl : * const WINDOWPLACEMENT ) -> super::super::Foundation:: BOOL ; } SetWindowPlacement ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndpl ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowPos < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinsertafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowPos ( hwnd : super::super::Foundation:: HWND , hwndinsertafter : super::super::Foundation:: HWND , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS ) -> super::super::Foundation:: BOOL ; } SetWindowPos ( hwnd . into_param ( ) . abi ( ) , hwndinsertafter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowTextA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowTextA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } SetWindowTextA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowTextW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowTextW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } SetWindowTextW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , wnewword : u16 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 , wnewword : u16 ) -> u16 ; } SetWindowWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( wnewword ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookA < > ( nfiltertype : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookA ( nfiltertype : i32 , pfnfilterproc : :: windows :: RawPtr ) -> HHOOK ; } SetWindowsHookA ( :: std :: mem :: transmute ( nfiltertype ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookExA < 'a , > ( idhook : WINDOWS_HOOK_ID , lpfn : :: std :: option :: Option < HOOKPROC > , hmod : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , dwthreadid : u32 , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookExA ( idhook : WINDOWS_HOOK_ID , lpfn : :: windows :: RawPtr , hmod : super::super::Foundation:: HINSTANCE , dwthreadid : u32 ) -> HHOOK ; } SetWindowsHookExA ( :: std :: mem :: transmute ( idhook ) , :: std :: mem :: transmute ( lpfn ) , hmod . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwthreadid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookExW < 'a , > ( idhook : WINDOWS_HOOK_ID , lpfn : :: std :: option :: Option < HOOKPROC > , hmod : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , dwthreadid : u32 , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookExW ( idhook : WINDOWS_HOOK_ID , lpfn : :: windows :: RawPtr , hmod : super::super::Foundation:: HINSTANCE , dwthreadid : u32 ) -> HHOOK ; } SetWindowsHookExW ( :: std :: mem :: transmute ( idhook ) , :: std :: mem :: transmute ( lpfn ) , hmod . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwthreadid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookW < > ( nfiltertype : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookW ( nfiltertype : i32 , pfnfilterproc : :: windows :: RawPtr ) -> HHOOK ; } SetWindowsHookW ( :: std :: mem :: transmute ( nfiltertype ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowCaret ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } ShowCaret ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowCursor < 'a , > ( bshow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowCursor ( bshow : super::super::Foundation:: BOOL ) -> i32 ; } ShowCursor ( bshow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowOwnedPopups < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , fshow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowOwnedPopups ( hwnd : super::super::Foundation:: HWND , fshow : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } ShowOwnedPopups ( hwnd . into_param ( ) . abi ( ) , fshow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ncmdshow : SHOW_WINDOW_CMD , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowWindow ( hwnd : super::super::Foundation:: HWND , ncmdshow : SHOW_WINDOW_CMD ) -> super::super::Foundation:: BOOL ; } ShowWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncmdshow ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowWindowAsync < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ncmdshow : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowWindowAsync ( hwnd : super::super::Foundation:: HWND , ncmdshow : i32 ) -> super::super::Foundation:: BOOL ; } ShowWindowAsync ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncmdshow ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SoundSentry < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SoundSentry ( ) -> super::super::Foundation:: BOOL ; } SoundSentry ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SwitchToThisWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , funknown : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SwitchToThisWindow ( hwnd : super::super::Foundation:: HWND , funknown : super::super::Foundation:: BOOL ) ; } SwitchToThisWindow ( hwnd . into_param ( ) . abi ( ) , funknown . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SystemParametersInfoA < > ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SystemParametersInfoA ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ) -> super::super::Foundation:: BOOL ; } SystemParametersInfoA ( :: std :: mem :: transmute ( uiaction ) , :: std :: mem :: transmute ( uiparam ) , :: std :: mem :: transmute ( pvparam ) , :: std :: mem :: transmute ( fwinini ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SystemParametersInfoW < > ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SystemParametersInfoW ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ) -> super::super::Foundation:: BOOL ; } SystemParametersInfoW ( :: std :: mem :: transmute ( uiaction ) , :: std :: mem :: transmute ( uiparam ) , :: std :: mem :: transmute ( pvparam ) , :: std :: mem :: transmute ( fwinini ) ) } # [ 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 TILE_WINDOWS_HOW ( pub u32 ) ; pub const MDITILE_HORIZONTAL : TILE_WINDOWS_HOW = TILE_WINDOWS_HOW ( 1u32 ) ; pub const MDITILE_VERTICAL : TILE_WINDOWS_HOW = TILE_WINDOWS_HOW ( 0u32 ) ; impl :: std :: convert :: From < u32 > for TILE_WINDOWS_HOW { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for TILE_WINDOWS_HOW { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for TILE_WINDOWS_HOW { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for TILE_WINDOWS_HOW { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for TILE_WINDOWS_HOW { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for TILE_WINDOWS_HOW { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub type TIMERPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : usize , param3 : u32 ) ; pub const TIMERV_COALESCING_MAX : u32 = 2147483637u32 ; pub const TIMERV_COALESCING_MIN : u32 = 1u32 ; pub const TIMERV_DEFAULT_COALESCING : u32 = 0u32 ; pub const TIMERV_NO_COALESCING : u32 = 4294967295u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TITLEBARINFO { pub cbSize : u32 , pub rcTitleBar : super::super::Foundation:: RECT , pub rgstate : [ u32 ;6 ] } impl TITLEBARINFO { } impl :: std :: default :: Default for TITLEBARINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcTitleBar : :: std :: default :: Default :: default ( ) , rgstate : [ 0 ;6 ] } } } impl :: std :: fmt :: Debug for TITLEBARINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TITLEBARINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcTitleBar" , & self . rcTitleBar ) . field ( "rgstate" , & self . rgstate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TITLEBARINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcTitleBar == other . rcTitleBar && self . rgstate == other . rgstate } } impl :: std :: cmp :: Eq for TITLEBARINFO { } unsafe impl :: windows :: Abi for TITLEBARINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TITLEBARINFOEX { pub cbSize : u32 , pub rcTitleBar : super::super::Foundation:: RECT , pub rgstate : [ u32 ;6 ] , pub rgrect : [ super::super::Foundation:: RECT ;6 ] } impl TITLEBARINFOEX { } impl :: std :: default :: Default for TITLEBARINFOEX { fn default ( ) -> Self { Self { cbSize : 0 , rcTitleBar : :: std :: default :: Default :: default ( ) , rgstate : [ 0 ;6 ] , rgrect : [ :: std :: default :: Default :: default ( ) ;6 ] } } } impl :: std :: fmt :: Debug for TITLEBARINFOEX { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TITLEBARINFOEX" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcTitleBar" , & self . rcTitleBar ) . field ( "rgstate" , & self . rgstate ) . field ( "rgrect" , & self . rgrect ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TITLEBARINFOEX { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcTitleBar == other . rcTitleBar && self . rgstate == other . rgstate && self . rgrect == other . rgrect } } impl :: std :: cmp :: Eq for TITLEBARINFOEX { } unsafe impl :: windows :: Abi for TITLEBARINFOEX { type Abi = Self ; type DefaultType = Self ; } pub const TKF_AVAILABLE : u32 = 2u32 ; pub const TKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const TKF_HOTKEYACTIVE : u32 = 4u32 ; pub const TKF_HOTKEYSOUND : u32 = 16u32 ; pub const TKF_INDICATOR : u32 = 32u32 ; pub const TKF_TOGGLEKEYSON : u32 = 1u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_LATENCY : u32 = 8u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_DELTA : f32 = 0.001f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_EXPO_SMOOTH_ALPHA : f32 = 0.99f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_LEARNING_RATE : f32 = 0.001f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MAX : f32 = 0.999f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MIN : f32 = 0.9f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_SAMPLETIME : u32 = 8u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_USE_HW_TIMESTAMP : u32 = 1u32 ; pub const TOUCH_FLAG_NONE : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_CLIENT : u32 = 1u32 ; pub const TOUCH_HIT_TESTING_DEFAULT : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_NONE : u32 = 2u32 ; pub const TOUCH_HIT_TESTING_PROXIMITY_CLOSEST : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_PROXIMITY_FARTHEST : u32 = 4095u32 ; pub const TOUCH_MASK_CONTACTAREA : u32 = 1u32 ; pub const TOUCH_MASK_NONE : u32 = 0u32 ; pub const TOUCH_MASK_ORIENTATION : u32 = 2u32 ; pub const TOUCH_MASK_PRESSURE : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TPMPARAMS { pub cbSize : u32 , pub rcExclude : super::super::Foundation:: RECT } impl TPMPARAMS { } impl :: std :: default :: Default for TPMPARAMS { fn default ( ) -> Self { Self { cbSize : 0 , rcExclude : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for TPMPARAMS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TPMPARAMS" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcExclude" , & self . rcExclude ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TPMPARAMS { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcExclude == other . rcExclude } } impl :: std :: cmp :: Eq for TPMPARAMS { } unsafe impl :: windows :: Abi for TPMPARAMS { 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 TRACK_POPUP_MENU_FLAGS ( pub u32 ) ; pub const TPM_LEFTBUTTON : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_RIGHTBUTTON : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 2u32 ) ; pub const TPM_LEFTALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_CENTERALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 4u32 ) ; pub const TPM_RIGHTALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 8u32 ) ; pub const TPM_TOPALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_VCENTERALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 16u32 ) ; pub const TPM_BOTTOMALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 32u32 ) ; pub const TPM_HORIZONTAL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_VERTICAL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 64u32 ) ; pub const TPM_NONOTIFY : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 128u32 ) ; pub const TPM_RETURNCMD : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 256u32 ) ; pub const TPM_RECURSE : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 1u32 ) ; pub const TPM_HORPOSANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 1024u32 ) ; pub const TPM_HORNEGANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 2048u32 ) ; pub const TPM_VERPOSANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 4096u32 ) ; pub const TPM_VERNEGANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 8192u32 ) ; pub const TPM_NOANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 16384u32 ) ; pub const TPM_LAYOUTRTL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 32768u32 ) ; pub const TPM_WORKAREA : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 65536u32 ) ; impl :: std :: convert :: From < u32 > for TRACK_POPUP_MENU_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for TRACK_POPUP_MENU_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for TRACK_POPUP_MENU_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for TRACK_POPUP_MENU_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for TRACK_POPUP_MENU_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for TRACK_POPUP_MENU_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const TT_OPENTYPE_FONTTYPE : u32 = 131072u32 ; pub const TYPE1_FONTTYPE : u32 = 262144u32 ; pub unsafe fn TileWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , whow : TILE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TileWindows ( hwndparent : super::super::Foundation:: HWND , whow : TILE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND ) -> u16 ; } TileWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( whow ) , :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( ckids ) , :: std :: mem :: transmute ( lpkids ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TouchPredictionParameters { pub cbSize : u32 , pub dwLatency : u32 , pub dwSampleTime : u32 , pub bUseHWTimeStamp : u32 } impl TouchPredictionParameters { } impl :: std :: default :: Default for TouchPredictionParameters { fn default ( ) -> Self { Self { cbSize : 0 , dwLatency : 0 , dwSampleTime : 0 , bUseHWTimeStamp : 0 } } } impl :: std :: fmt :: Debug for TouchPredictionParameters { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TouchPredictionParameters" ) . field ( "cbSize" , & self . cbSize ) . field ( "dwLatency" , & self . dwLatency ) . field ( "dwSampleTime" , & self . dwSampleTime ) . field ( "bUseHWTimeStamp" , & self . bUseHWTimeStamp ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TouchPredictionParameters { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . dwLatency == other . dwLatency && self . dwSampleTime == other . dwSampleTime && self . bUseHWTimeStamp == other . bUseHWTimeStamp } } impl :: std :: cmp :: Eq for TouchPredictionParameters { } unsafe impl :: windows :: Abi for TouchPredictionParameters { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn TrackPopupMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : TRACK_POPUP_MENU_FLAGS , x : i32 , y : i32 , nreserved : i32 , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , prcrect : * const super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TrackPopupMenu ( hmenu : HMENU , uflags : TRACK_POPUP_MENU_FLAGS , x : i32 , y : i32 , nreserved : i32 , hwnd : super::super::Foundation:: HWND , prcrect : * const super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } TrackPopupMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nreserved ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( prcrect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TrackPopupMenuEx < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : u32 , x : i32 , y : i32 , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptpm : * mut TPMPARAMS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TrackPopupMenuEx ( hmenu : HMENU , uflags : u32 , x : i32 , y : i32 , hwnd : super::super::Foundation:: HWND , lptpm : * mut TPMPARAMS ) -> super::super::Foundation:: BOOL ; } TrackPopupMenuEx ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptpm ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateAcceleratorA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hacctable : impl :: windows :: IntoParam < 'a , HACCEL > , lpmsg : * mut MSG , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateAcceleratorA ( hwnd : super::super::Foundation:: HWND , hacctable : HACCEL , lpmsg : * mut MSG ) -> i32 ; } TranslateAcceleratorA ( hwnd . into_param ( ) . abi ( ) , hacctable . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateAcceleratorW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hacctable : impl :: windows :: IntoParam < 'a , HACCEL > , lpmsg : * mut MSG , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateAcceleratorW ( hwnd : super::super::Foundation:: HWND , hacctable : HACCEL , lpmsg : * mut MSG ) -> i32 ; } TranslateAcceleratorW ( hwnd . into_param ( ) . abi ( ) , hacctable . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateMDISysAccel < 'a , > ( hwndclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateMDISysAccel ( hwndclient : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } TranslateMDISysAccel ( hwndclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateMessage < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateMessage ( lpmsg : * const MSG ) -> super::super::Foundation:: BOOL ; } TranslateMessage ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const UISF_ACTIVE : u32 = 4u32 ; pub const UISF_HIDEACCEL : u32 = 2u32 ; pub const UISF_HIDEFOCUS : u32 = 1u32 ; pub const UIS_CLEAR : u32 = 2u32 ; pub const UIS_INITIALIZE : u32 = 3u32 ; pub const UIS_SET : u32 = 1u32 ; pub const UNICODE_NOCHAR : u32 = 65535u32 ; pub const UOI_TIMERPROC_EXCEPTION_SUPPRESSION : u32 = 7u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct UPDATELAYEREDWINDOWINFO { pub cbSize : u32 , pub hdcDst : super::super::Graphics::Gdi:: HDC , pub pptDst : * mut super::super::Foundation:: POINT , pub psize : * mut super::super::Foundation:: SIZE , pub hdcSrc : super::super::Graphics::Gdi:: HDC , pub pptSrc : * mut super::super::Foundation:: POINT , pub crKey : u32 , pub pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , pub dwFlags : UPDATE_LAYERED_WINDOW_FLAGS , pub prcDirty : * mut super::super::Foundation:: RECT } impl UPDATELAYEREDWINDOWINFO { } impl :: std :: default :: Default for UPDATELAYEREDWINDOWINFO { fn default ( ) -> Self { Self { cbSize : 0 , hdcDst : :: std :: default :: Default :: default ( ) , pptDst : :: std :: ptr :: null_mut ( ) , psize : :: std :: ptr :: null_mut ( ) , hdcSrc : :: std :: default :: Default :: default ( ) , pptSrc : :: std :: ptr :: null_mut ( ) , crKey : 0 , pblend : :: std :: ptr :: null_mut ( ) , dwFlags : :: std :: default :: Default :: default ( ) , prcDirty : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for UPDATELAYEREDWINDOWINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "UPDATELAYEREDWINDOWINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "hdcDst" , & self . hdcDst ) . field ( "pptDst" , & self . pptDst ) . field ( "psize" , & self . psize ) . field ( "hdcSrc" , & self . hdcSrc ) . field ( "pptSrc" , & self . pptSrc ) . field ( "crKey" , & self . crKey ) . field ( "pblend" , & self . pblend ) . field ( "dwFlags" , & self . dwFlags ) . field ( "prcDirty" , & self . prcDirty ) . finish ( ) } } impl :: std :: cmp :: PartialEq for UPDATELAYEREDWINDOWINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hdcDst == other . hdcDst && self . pptDst == other . pptDst && self . psize == other . psize && self . hdcSrc == other . hdcSrc && self . pptSrc == other . pptSrc && self . crKey == other . crKey && self . pblend == other . pblend && self . dwFlags == other . dwFlags && self . prcDirty == other . prcDirty } } impl :: std :: cmp :: Eq for UPDATELAYEREDWINDOWINFO { } unsafe impl :: windows :: Abi for UPDATELAYEREDWINDOWINFO { 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 UPDATE_LAYERED_WINDOW_FLAGS ( pub u32 ) ; pub const ULW_ALPHA : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 2u32 ) ; pub const ULW_COLORKEY : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 1u32 ) ; pub const ULW_OPAQUE : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 4u32 ) ; pub const ULW_EX_NORESIZE : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for UPDATE_LAYERED_WINDOW_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for UPDATE_LAYERED_WINDOW_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for UPDATE_LAYERED_WINDOW_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for UPDATE_LAYERED_WINDOW_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for UPDATE_LAYERED_WINDOW_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for UPDATE_LAYERED_WINDOW_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const USER_DEFAULT_SCREEN_DPI : u32 = 96u32 ; pub const USER_TIMER_MAXIMUM : u32 = 2147483647u32 ; pub const USER_TIMER_MINIMUM : u32 = 10u32 ; pub unsafe fn UnhookWindowsHook < > ( ncode : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnhookWindowsHook ( ncode : i32 , pfnfilterproc : :: windows :: RawPtr ) -> super::super::Foundation:: BOOL ; } UnhookWindowsHook ( :: std :: mem :: transmute ( ncode ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnhookWindowsHookEx < 'a , > ( hhk : impl :: windows :: IntoParam < 'a , HHOOK > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnhookWindowsHookEx ( hhk : HHOOK ) -> super::super::Foundation:: BOOL ; } UnhookWindowsHookEx ( hhk . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnregisterClassA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnregisterClassA ( lpclassname : super::super::Foundation:: PSTR , hinstance : super::super::Foundation:: HINSTANCE ) -> super::super::Foundation:: BOOL ; } UnregisterClassA ( lpclassname . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnregisterClassW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnregisterClassW ( lpclassname : super::super::Foundation:: PWSTR , hinstance : super::super::Foundation:: HINSTANCE ) -> super::super::Foundation:: BOOL ; } UnregisterClassW ( lpclassname . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UpdateLayeredWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hdcdst : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , pptdst : * mut super::super::Foundation:: POINT , psize : * mut super::super::Foundation:: SIZE , hdcsrc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , pptsrc : * mut super::super::Foundation:: POINT , crkey : u32 , pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , dwflags : UPDATE_LAYERED_WINDOW_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UpdateLayeredWindow ( hwnd : super::super::Foundation:: HWND , hdcdst : super::super::Graphics::Gdi:: HDC , pptdst : * mut super::super::Foundation:: POINT , psize : * mut super::super::Foundation:: SIZE , hdcsrc : super::super::Graphics::Gdi:: HDC , pptsrc : * mut super::super::Foundation:: POINT , crkey : u32 , pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , dwflags : UPDATE_LAYERED_WINDOW_FLAGS ) -> super::super::Foundation:: BOOL ; } UpdateLayeredWindow ( hwnd . into_param ( ) . abi ( ) , hdcdst . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pptdst ) , :: std :: mem :: transmute ( psize ) , hdcsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pptsrc ) , :: std :: mem :: transmute ( crkey ) , :: std :: mem :: transmute ( pblend ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UpdateLayeredWindowIndirect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pulwinfo : * const UPDATELAYEREDWINDOWINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UpdateLayeredWindowIndirect ( hwnd : super::super::Foundation:: HWND , pulwinfo : * const UPDATELAYEREDWINDOWINFO ) -> super::super::Foundation:: BOOL ; } UpdateLayeredWindowIndirect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pulwinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const VK_ACCEPT : u32 = 30u32 ; pub const VK_ADD : u32 = 107u32 ; pub const VK_APPS : u32 = 93u32 ; pub const VK_ATTN : u32 = 246u32 ; pub const VK_BACK : u32 = 8u32 ; pub const VK_BROWSER_BACK : u32 = 166u32 ; pub const VK_BROWSER_FAVORITES : u32 = 171u32 ; pub const VK_BROWSER_FORWARD : u32 = 167u32 ; pub const VK_BROWSER_HOME : u32 = 172u32 ; pub const VK_BROWSER_REFRESH : u32 = 168u32 ; pub const VK_BROWSER_SEARCH : u32 = 170u32 ; pub const VK_BROWSER_STOP : u32 = 169u32 ; pub const VK_CANCEL : u32 = 3u32 ; pub const VK_CAPITAL : u32 = 20u32 ; pub const VK_CLEAR : u32 = 12u32 ; pub const VK_CONTROL : u32 = 17u32 ; pub const VK_CONVERT : u32 = 28u32 ; pub const VK_CRSEL : u32 = 247u32 ; pub const VK_DECIMAL : u32 = 110u32 ; pub const VK_DELETE : u32 = 46u32 ; pub const VK_DIVIDE : u32 = 111u32 ; pub const VK_DOWN : u32 = 40u32 ; pub const VK_END : u32 = 35u32 ; pub const VK_EREOF : u32 = 249u32 ; pub const VK_ESCAPE : u32 = 27u32 ; pub const VK_EXECUTE : u32 = 43u32 ; pub const VK_EXSEL : u32 = 248u32 ; pub const VK_F1 : u32 = 112u32 ; pub const VK_F10 : u32 = 121u32 ; pub const VK_F11 : u32 = 122u32 ; pub const VK_F12 : u32 = 123u32 ; pub const VK_F13 : u32 = 124u32 ; pub const VK_F14 : u32 = 125u32 ; pub const VK_F15 : u32 = 126u32 ; pub const VK_F16 : u32 = 127u32 ; pub const VK_F17 : u32 = 128u32 ; pub const VK_F18 : u32 = 129u32 ; pub const VK_F19 : u32 = 130u32 ; pub const VK_F2 : u32 = 113u32 ; pub const VK_F20 : u32 = 131u32 ; pub const VK_F21 : u32 = 132u32 ; pub const VK_F22 : u32 = 133u32 ; pub const VK_F23 : u32 = 134u32 ; pub const VK_F24 : u32 = 135u32 ; pub const VK_F3 : u32 = 114u32 ; pub const VK_F4 : u32 = 115u32 ; pub const VK_F5 : u32 = 116u32 ; pub const VK_F6 : u32 = 117u32 ; pub const VK_F7 : u32 = 118u32 ; pub const VK_F8 : u32 = 119u32 ; pub const VK_F9 : u32 = 120u32 ; pub const VK_FINAL : u32 = 24u32 ; pub const VK_GAMEPAD_A : u32 = 195u32 ; pub const VK_GAMEPAD_B : u32 = 196u32 ; pub const VK_GAMEPAD_DPAD_DOWN : u32 = 204u32 ; pub const VK_GAMEPAD_DPAD_LEFT : u32 = 205u32 ; pub const VK_GAMEPAD_DPAD_RIGHT : u32 = 206u32 ; pub const VK_GAMEPAD_DPAD_UP : u32 = 203u32 ; pub const VK_GAMEPAD_LEFT_SHOULDER : u32 = 200u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_BUTTON : u32 = 209u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_DOWN : u32 = 212u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_LEFT : u32 = 214u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_RIGHT : u32 = 213u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_UP : u32 = 211u32 ; pub const VK_GAMEPAD_LEFT_TRIGGER : u32 = 201u32 ; pub const VK_GAMEPAD_MENU : u32 = 207u32 ; pub const VK_GAMEPAD_RIGHT_SHOULDER : u32 = 199u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_BUTTON : u32 = 210u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_DOWN : u32 = 216u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_LEFT : u32 = 218u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_RIGHT : u32 = 217u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_UP : u32 = 215u32 ; pub const VK_GAMEPAD_RIGHT_TRIGGER : u32 = 202u32 ; pub const VK_GAMEPAD_VIEW : u32 = 208u32 ; pub const VK_GAMEPAD_X : u32 = 197u32 ; pub const VK_GAMEPAD_Y : u32 = 198u32 ; pub const VK_HANGEUL : u32 = 21u32 ; pub const VK_HANGUL : u32 = 21u32 ; pub const VK_HANJA : u32 = 25u32 ; pub const VK_HELP : u32 = 47u32 ; pub const VK_HOME : u32 = 36u32 ; pub const VK_ICO_00 : u32 = 228u32 ; pub const VK_ICO_CLEAR : u32 = 230u32 ; pub const VK_ICO_HELP : u32 = 227u32 ; pub const VK_INSERT : u32 = 45u32 ; pub const VK_JUNJA : u32 = 23u32 ; pub const VK_KANA : u32 = 21u32 ; pub const VK_KANJI : u32 = 25u32 ; pub const VK_LAUNCH_APP1 : u32 = 182u32 ; pub const VK_LAUNCH_APP2 : u32 = 183u32 ; pub const VK_LAUNCH_MAIL : u32 = 180u32 ; pub const VK_LAUNCH_MEDIA_SELECT : u32 = 181u32 ; pub const VK_LBUTTON : u32 = 1u32 ; pub const VK_LCONTROL : u32 = 162u32 ; pub const VK_LEFT : u32 = 37u32 ; pub const VK_LMENU : u32 = 164u32 ; pub const VK_LSHIFT : u32 = 160u32 ; pub const VK_LWIN : u32 = 91u32 ; pub const VK_MBUTTON : u32 = 4u32 ; pub const VK_MEDIA_NEXT_TRACK : u32 = 176u32 ; pub const VK_MEDIA_PLAY_PAUSE : u32 = 179u32 ; pub const VK_MEDIA_PREV_TRACK : u32 = 177u32 ; pub const VK_MEDIA_STOP : u32 = 178u32 ; pub const VK_MENU : u32 = 18u32 ; pub const VK_MODECHANGE : u32 = 31u32 ; pub const VK_MULTIPLY : u32 = 106u32 ; pub const VK_NAVIGATION_ACCEPT : u32 = 142u32 ; pub const VK_NAVIGATION_CANCEL : u32 = 143u32 ; pub const VK_NAVIGATION_DOWN : u32 = 139u32 ; pub const VK_NAVIGATION_LEFT : u32 = 140u32 ; pub const VK_NAVIGATION_MENU : u32 = 137u32 ; pub const VK_NAVIGATION_RIGHT : u32 = 141u32 ; pub const VK_NAVIGATION_UP : u32 = 138u32 ; pub const VK_NAVIGATION_VIEW : u32 = 136u32 ; pub const VK_NEXT : u32 = 34u32 ; pub const VK_NONAME : u32 = 252u32 ; pub const VK_NONCONVERT : u32 = 29u32 ; pub const VK_NUMLOCK : u32 = 144u32 ; pub const VK_NUMPAD0 : u32 = 96u32 ; pub const VK_NUMPAD1 : u32 = 97u32 ; pub const VK_NUMPAD2 : u32 = 98u32 ; pub const VK_NUMPAD3 : u32 = 99u32 ; pub const VK_NUMPAD4 : u32 = 100u32 ; pub const VK_NUMPAD5 : u32 = 101u32 ; pub const VK_NUMPAD6 : u32 = 102u32 ; pub const VK_NUMPAD7 : u32 = 103u32 ; pub const VK_NUMPAD8 : u32 = 104u32 ; pub const VK_NUMPAD9 : u32 = 105u32 ; pub const VK_OEM_1 : u32 = 186u32 ; pub const VK_OEM_102 : u32 = 226u32 ; pub const VK_OEM_2 : u32 = 191u32 ; pub const VK_OEM_3 : u32 = 192u32 ; pub const VK_OEM_4 : u32 = 219u32 ; pub const VK_OEM_5 : u32 = 220u32 ; pub const VK_OEM_6 : u32 = 221u32 ; pub const VK_OEM_7 : u32 = 222u32 ; pub const VK_OEM_8 : u32 = 223u32 ; pub const VK_OEM_ATTN : u32 = 240u32 ; pub const VK_OEM_AUTO : u32 = 243u32 ; pub const VK_OEM_AX : u32 = 225u32 ; pub const VK_OEM_BACKTAB : u32 = 245u32 ; pub const VK_OEM_CLEAR : u32 = 254u32 ; pub const VK_OEM_COMMA : u32 = 188u32 ; pub const VK_OEM_COPY : u32 = 242u32 ; pub const VK_OEM_CUSEL : u32 = 239u32 ; pub const VK_OEM_ENLW : u32 = 244u32 ; pub const VK_OEM_FINISH : u32 = 241u32 ; pub const VK_OEM_FJ_JISHO : u32 = 146u32 ; pub const VK_OEM_FJ_LOYA : u32 = 149u32 ; pub const VK_OEM_FJ_MASSHOU : u32 = 147u32 ; pub const VK_OEM_FJ_ROYA : u32 = 150u32 ; pub const VK_OEM_FJ_TOUROKU : u32 = 148u32 ; pub const VK_OEM_JUMP : u32 = 234u32 ; pub const VK_OEM_MINUS : u32 = 189u32 ; pub const VK_OEM_NEC_EQUAL : u32 = 146u32 ; pub const VK_OEM_PA1 : u32 = 235u32 ; pub const VK_OEM_PA2 : u32 = 236u32 ; pub const VK_OEM_PA3 : u32 = 237u32 ; pub const VK_OEM_PERIOD : u32 = 190u32 ; pub const VK_OEM_PLUS : u32 = 187u32 ; pub const VK_OEM_RESET : u32 = 233u32 ; pub const VK_OEM_WSCTRL : u32 = 238u32 ; pub const VK_PA1 : u32 = 253u32 ; pub const VK_PACKET : u32 = 231u32 ; pub const VK_PAUSE : u32 = 19u32 ; pub const VK_PLAY : u32 = 250u32 ; pub const VK_PRINT : u32 = 42u32 ; pub const VK_PRIOR : u32 = 33u32 ; pub const VK_PROCESSKEY : u32 = 229u32 ; pub const VK_RBUTTON : u32 = 2u32 ; pub const VK_RCONTROL : u32 = 163u32 ; pub const VK_RETURN : u32 = 13u32 ; pub const VK_RIGHT : u32 = 39u32 ; pub const VK_RMENU : u32 = 165u32 ; pub const VK_RSHIFT : u32 = 161u32 ; pub const VK_RWIN : u32 = 92u32 ; pub const VK_SCROLL : u32 = 145u32 ; pub const VK_SELECT : u32 = 41u32 ; pub const VK_SEPARATOR : u32 = 108u32 ; pub const VK_SHIFT : u32 = 16u32 ; pub const VK_SLEEP : u32 = 95u32 ; pub const VK_SNAPSHOT : u32 = 44u32 ; pub const VK_SPACE : u32 = 32u32 ; pub const VK_SUBTRACT : u32 = 109u32 ; pub const VK_TAB : u32 = 9u32 ; pub const VK_UP : u32 = 38u32 ; pub const VK_VOLUME_DOWN : u32 = 174u32 ; pub const VK_VOLUME_MUTE : u32 = 173u32 ; pub const VK_VOLUME_UP : u32 = 175u32 ; pub const VK_XBUTTON1 : u32 = 5u32 ; pub const VK_XBUTTON2 : u32 = 6u32 ; pub const VK_ZOOM : u32 = 251u32 ; pub const WA_ACTIVE : u32 = 1u32 ; pub const WA_CLICKACTIVE : u32 = 2u32 ; pub const WA_INACTIVE : u32 = 0u32 ; pub const WHEEL_DELTA : u32 = 120u32 ; pub const WH_HARDWARE : u32 = 8u32 ; pub const WH_MAX : u32 = 14u32 ; pub const WH_MIN : i32 = -1i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWINFO { pub cbSize : u32 , pub rcWindow : super::super::Foundation:: RECT , pub rcClient : super::super::Foundation:: RECT , pub dwStyle : u32 , pub dwExStyle : u32 , pub dwWindowStatus : u32 , pub cxWindowBorders : u32 , pub cyWindowBorders : u32 , pub atomWindowType : u16 , pub wCreatorVersion : u16 } impl WINDOWINFO { } impl :: std :: default :: Default for WINDOWINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcWindow : :: std :: default :: Default :: default ( ) , rcClient : :: std :: default :: Default :: default ( ) , dwStyle : 0 , dwExStyle : 0 , dwWindowStatus : 0 , cxWindowBorders : 0 , cyWindowBorders : 0 , atomWindowType : 0 , wCreatorVersion : 0 } } } impl :: std :: fmt :: Debug for WINDOWINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcWindow" , & self . rcWindow ) . field ( "rcClient" , & self . rcClient ) . field ( "dwStyle" , & self . dwStyle ) . field ( "dwExStyle" , & self . dwExStyle ) . field ( "dwWindowStatus" , & self . dwWindowStatus ) . field ( "cxWindowBorders" , & self . cxWindowBorders ) . field ( "cyWindowBorders" , & self . cyWindowBorders ) . field ( "atomWindowType" , & self . atomWindowType ) . field ( "wCreatorVersion" , & self . wCreatorVersion ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcWindow == other . rcWindow && self . rcClient == other . rcClient && self . dwStyle == other . dwStyle && self . dwExStyle == other . dwExStyle && self . dwWindowStatus == other . dwWindowStatus && self . cxWindowBorders == other . cxWindowBorders && self . cyWindowBorders == other . cyWindowBorders && self . atomWindowType == other . atomWindowType && self . wCreatorVersion == other . wCreatorVersion } } impl :: std :: cmp :: Eq for WINDOWINFO { } unsafe impl :: windows :: Abi for WINDOWINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWPLACEMENT { pub length : u32 , pub flags : WINDOWPLACEMENT_FLAGS , pub showCmd : SHOW_WINDOW_CMD , pub ptMinPosition : super::super::Foundation:: POINT , pub ptMaxPosition : super::super::Foundation:: POINT , pub rcNormalPosition : super::super::Foundation:: RECT } impl WINDOWPLACEMENT { } impl :: std :: default :: Default for WINDOWPLACEMENT { fn default ( ) -> Self { Self { length : 0 , flags : :: std :: default :: Default :: default ( ) , showCmd : :: std :: default :: Default :: default ( ) , ptMinPosition : :: std :: default :: Default :: default ( ) , ptMaxPosition : :: std :: default :: Default :: default ( ) , rcNormalPosition : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WINDOWPLACEMENT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWPLACEMENT" ) . field ( "length" , & self . length ) . field ( "flags" , & self . flags ) . field ( "showCmd" , & self . showCmd ) . field ( "ptMinPosition" , & self . ptMinPosition ) . field ( "ptMaxPosition" , & self . ptMaxPosition ) . field ( "rcNormalPosition" , & self . rcNormalPosition ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWPLACEMENT { fn eq ( & self , other : & Self ) -> bool { self . length == other . length && self . flags == other . flags && self . showCmd == other . showCmd && self . ptMinPosition == other . ptMinPosition && self . ptMaxPosition == other . ptMaxPosition && self . rcNormalPosition == other . rcNormalPosition } } impl :: std :: cmp :: Eq for WINDOWPLACEMENT { } unsafe impl :: windows :: Abi for WINDOWPLACEMENT { 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 WINDOWPLACEMENT_FLAGS ( pub u32 ) ; pub const WPF_ASYNCWINDOWPLACEMENT : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 4u32 ) ; pub const WPF_RESTORETOMAXIMIZED : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 2u32 ) ; pub const WPF_SETMINPOSITION : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for WINDOWPLACEMENT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOWPLACEMENT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOWPLACEMENT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOWPLACEMENT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOWPLACEMENT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOWPLACEMENT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWPOS { pub hwnd : super::super::Foundation:: HWND , pub hwndInsertAfter : super::super::Foundation:: HWND , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub flags : SET_WINDOW_POS_FLAGS } impl WINDOWPOS { } impl :: std :: default :: Default for WINDOWPOS { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , flags : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WINDOWPOS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWPOS" ) . field ( "hwnd" , & self . hwnd ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "flags" , & self . flags ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWPOS { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . hwndInsertAfter == other . hwndInsertAfter && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . flags == other . flags } } impl :: std :: cmp :: Eq for WINDOWPOS { } unsafe impl :: windows :: Abi for WINDOWPOS { 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 WINDOWS_HOOK_ID ( pub i32 ) ; pub const WH_CALLWNDPROC : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 4i32 ) ; pub const WH_CALLWNDPROCRET : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 12i32 ) ; pub const WH_CBT : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 5i32 ) ; pub const WH_DEBUG : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 9i32 ) ; pub const WH_FOREGROUNDIDLE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 11i32 ) ; pub const WH_GETMESSAGE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 3i32 ) ; pub const WH_JOURNALPLAYBACK : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 1i32 ) ; pub const WH_JOURNALRECORD : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 0i32 ) ; pub const WH_KEYBOARD : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 2i32 ) ; pub const WH_KEYBOARD_LL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 13i32 ) ; pub const WH_MOUSE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 7i32 ) ; pub const WH_MOUSE_LL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 14i32 ) ; pub const WH_MSGFILTER : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( -1i32 ) ; pub const WH_SHELL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 10i32 ) ; pub const WH_SYSMSGFILTER : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 6i32 ) ; impl :: std :: convert :: From < i32 > for WINDOWS_HOOK_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOWS_HOOK_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 WINDOW_DISPLAY_AFFINITY ( pub u32 ) ; pub const WDA_NONE : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 0u32 ) ; pub const WDA_MONITOR : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 1u32 ) ; pub const WDA_EXCLUDEFROMCAPTURE : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 17u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_DISPLAY_AFFINITY { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_DISPLAY_AFFINITY { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_DISPLAY_AFFINITY { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_DISPLAY_AFFINITY { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_DISPLAY_AFFINITY { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_DISPLAY_AFFINITY { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_EX_STYLE ( pub u32 ) ; pub const WS_EX_DLGMODALFRAME : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1u32 ) ; pub const WS_EX_NOPARENTNOTIFY : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4u32 ) ; pub const WS_EX_TOPMOST : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 8u32 ) ; pub const WS_EX_ACCEPTFILES : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 16u32 ) ; pub const WS_EX_TRANSPARENT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 32u32 ) ; pub const WS_EX_MDICHILD : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 64u32 ) ; pub const WS_EX_TOOLWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 128u32 ) ; pub const WS_EX_WINDOWEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 256u32 ) ; pub const WS_EX_CLIENTEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 512u32 ) ; pub const WS_EX_CONTEXTHELP : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1024u32 ) ; pub const WS_EX_RIGHT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4096u32 ) ; pub const WS_EX_LEFT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_RTLREADING : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 8192u32 ) ; pub const WS_EX_LTRREADING : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_LEFTSCROLLBAR : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 16384u32 ) ; pub const WS_EX_RIGHTSCROLLBAR : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_CONTROLPARENT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 65536u32 ) ; pub const WS_EX_STATICEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 131072u32 ) ; pub const WS_EX_APPWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 262144u32 ) ; pub const WS_EX_OVERLAPPEDWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 768u32 ) ; pub const WS_EX_PALETTEWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 392u32 ) ; pub const WS_EX_LAYERED : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 524288u32 ) ; pub const WS_EX_NOINHERITLAYOUT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1048576u32 ) ; pub const WS_EX_NOREDIRECTIONBITMAP : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 2097152u32 ) ; pub const WS_EX_LAYOUTRTL : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4194304u32 ) ; pub const WS_EX_COMPOSITED : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 33554432u32 ) ; pub const WS_EX_NOACTIVATE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 134217728u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_EX_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_EX_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_EX_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_EX_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_EX_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_EX_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_LONG_PTR_INDEX ( pub i32 ) ; pub const GWL_EXSTYLE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -20i32 ) ; pub const GWLP_HINSTANCE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -6i32 ) ; pub const GWLP_HWNDPARENT : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -8i32 ) ; pub const GWLP_ID : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -12i32 ) ; pub const GWL_STYLE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -16i32 ) ; pub const GWLP_USERDATA : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -21i32 ) ; pub const GWLP_WNDPROC : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -4i32 ) ; pub const GWL_HINSTANCE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -6i32 ) ; pub const GWL_ID : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -12i32 ) ; pub const GWL_USERDATA : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -21i32 ) ; pub const GWL_WNDPROC : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -4i32 ) ; pub const GWL_HWNDPARENT : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -8i32 ) ; impl :: std :: convert :: From < i32 > for WINDOW_LONG_PTR_INDEX { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_LONG_PTR_INDEX { 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 WINDOW_MESSAGE_FILTER_ACTION ( pub u32 ) ; pub const MSGFLT_ALLOW : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 1u32 ) ; pub const MSGFLT_DISALLOW : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 2u32 ) ; pub const MSGFLT_RESET : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 0u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_MESSAGE_FILTER_ACTION { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_MESSAGE_FILTER_ACTION { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_MESSAGE_FILTER_ACTION { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_MESSAGE_FILTER_ACTION { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_MESSAGE_FILTER_ACTION { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_MESSAGE_FILTER_ACTION { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_STYLE ( pub u32 ) ; pub const WS_OVERLAPPED : WINDOW_STYLE = WINDOW_STYLE ( 0u32 ) ; pub const WS_POPUP : WINDOW_STYLE = WINDOW_STYLE ( 2147483648u32 ) ; pub const WS_CHILD : WINDOW_STYLE = WINDOW_STYLE ( 1073741824u32 ) ; pub const WS_MINIMIZE : WINDOW_STYLE = WINDOW_STYLE ( 536870912u32 ) ; pub const WS_VISIBLE : WINDOW_STYLE = WINDOW_STYLE ( 268435456u32 ) ; pub const WS_DISABLED : WINDOW_STYLE = WINDOW_STYLE ( 134217728u32 ) ; pub const WS_CLIPSIBLINGS : WINDOW_STYLE = WINDOW_STYLE ( 67108864u32 ) ; pub const WS_CLIPCHILDREN : WINDOW_STYLE = WINDOW_STYLE ( 33554432u32 ) ; pub const WS_MAXIMIZE : WINDOW_STYLE = WINDOW_STYLE ( 16777216u32 ) ; pub const WS_CAPTION : WINDOW_STYLE = WINDOW_STYLE ( 12582912u32 ) ; pub const WS_BORDER : WINDOW_STYLE = WINDOW_STYLE ( 8388608u32 ) ; pub const WS_DLGFRAME : WINDOW_STYLE = WINDOW_STYLE ( 4194304u32 ) ; pub const WS_VSCROLL : WINDOW_STYLE = WINDOW_STYLE ( 2097152u32 ) ; pub const WS_HSCROLL : WINDOW_STYLE = WINDOW_STYLE ( 1048576u32 ) ; pub const WS_SYSMENU : WINDOW_STYLE = WINDOW_STYLE ( 524288u32 ) ; pub const WS_THICKFRAME : WINDOW_STYLE = WINDOW_STYLE ( 262144u32 ) ; pub const WS_GROUP : WINDOW_STYLE = WINDOW_STYLE ( 131072u32 ) ; pub const WS_TABSTOP : WINDOW_STYLE = WINDOW_STYLE ( 65536u32 ) ; pub const WS_MINIMIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 131072u32 ) ; pub const WS_MAXIMIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 65536u32 ) ; pub const WS_TILED : WINDOW_STYLE = WINDOW_STYLE ( 0u32 ) ; pub const WS_ICONIC : WINDOW_STYLE = WINDOW_STYLE ( 536870912u32 ) ; pub const WS_SIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 262144u32 ) ; pub const WS_TILEDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 13565952u32 ) ; pub const WS_OVERLAPPEDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 13565952u32 ) ; pub const WS_POPUPWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 2156396544u32 ) ; pub const WS_CHILDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 1073741824u32 ) ; pub const WS_ACTIVECAPTION : WINDOW_STYLE = WINDOW_STYLE ( 1u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const WINEVENT_INCONTEXT : u32 = 4u32 ; pub const WINEVENT_OUTOFCONTEXT : u32 = 0u32 ; pub const WINEVENT_SKIPOWNPROCESS : u32 = 2u32 ; pub const WINEVENT_SKIPOWNTHREAD : u32 = 1u32 ; pub type WINSTAENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type WINSTAENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub const WINSTA_ACCESSCLIPBOARD : i32 = 4i32 ; pub const WINSTA_ACCESSGLOBALATOMS : i32 = 32i32 ; pub const WINSTA_CREATEDESKTOP : i32 = 8i32 ; pub const WINSTA_ENUMDESKTOPS : i32 = 1i32 ; pub const WINSTA_ENUMERATE : i32 = 256i32 ; pub const WINSTA_EXITWINDOWS : i32 = 64i32 ; pub const WINSTA_READATTRIBUTES : i32 = 2i32 ; pub const WINSTA_READSCREEN : i32 = 512i32 ; pub const WINSTA_WRITEATTRIBUTES : i32 = 16i32 ; pub const WMSZ_BOTTOM : u32 = 6u32 ; pub const WMSZ_BOTTOMLEFT : u32 = 7u32 ; pub const WMSZ_BOTTOMRIGHT : u32 = 8u32 ; pub const WMSZ_LEFT : u32 = 1u32 ; pub const WMSZ_RIGHT : u32 = 2u32 ; pub const WMSZ_TOP : u32 = 3u32 ; pub const WMSZ_TOPLEFT : u32 = 4u32 ; pub const WMSZ_TOPRIGHT : u32 = 5u32 ; pub const WM_ACTIVATE : u32 = 6u32 ; pub const WM_ACTIVATEAPP : u32 = 28u32 ; pub const WM_AFXFIRST : u32 = 864u32 ; pub const WM_AFXLAST : u32 = 895u32 ; pub const WM_APP : u32 = 32768u32 ; pub const WM_APPCOMMAND : u32 = 793u32 ; pub const WM_ASKCBFORMATNAME : u32 = 780u32 ; pub const WM_CANCELJOURNAL : u32 = 75u32 ; pub const WM_CANCELMODE : u32 = 31u32 ; pub const WM_CAPTURECHANGED : u32 = 533u32 ; pub const WM_CHANGECBCHAIN : u32 = 781u32 ; pub const WM_CHANGEUISTATE : u32 = 295u32 ; pub const WM_CHAR : u32 = 258u32 ; pub const WM_CHARTOITEM : u32 = 47u32 ; pub const WM_CHILDACTIVATE : u32 = 34u32 ; pub const WM_CHOOSEFONT_GETLOGFONT : u32 = 1025u32 ; pub const WM_CHOOSEFONT_SETFLAGS : u32 = 1126u32 ; pub const WM_CHOOSEFONT_SETLOGFONT : u32 = 1125u32 ; pub const WM_CLEAR : u32 = 771u32 ; pub const WM_CLIPBOARDUPDATE : u32 = 797u32 ; pub const WM_CLOSE : u32 = 16u32 ; pub const WM_COMMAND : u32 = 273u32 ; pub const WM_COMMNOTIFY : u32 = 68u32 ; pub const WM_COMPACTING : u32 = 65u32 ; pub const WM_COMPAREITEM : u32 = 57u32 ; pub const WM_COPY : u32 = 769u32 ; pub const WM_COPYDATA : u32 = 74u32 ; pub const WM_CREATE : u32 = 1u32 ; pub const WM_CTLCOLORBTN : u32 = 309u32 ; pub const WM_CTLCOLORDLG : u32 = 310u32 ; pub const WM_CTLCOLOREDIT : u32 = 307u32 ; pub const WM_CTLCOLORLISTBOX : u32 = 308u32 ; pub const WM_CTLCOLORMSGBOX : u32 = 306u32 ; pub const WM_CTLCOLORSCROLLBAR : u32 = 311u32 ; pub const WM_CTLCOLORSTATIC : u32 = 312u32 ; pub const WM_CUT : u32 = 768u32 ; pub const WM_DEADCHAR : u32 = 259u32 ; pub const WM_DELETEITEM : u32 = 45u32 ; pub const WM_DESTROY : u32 = 2u32 ; pub const WM_DESTROYCLIPBOARD : u32 = 775u32 ; pub const WM_DEVICECHANGE : u32 = 537u32 ; pub const WM_DEVMODECHANGE : u32 = 27u32 ; pub const WM_DISPLAYCHANGE : u32 = 126u32 ; pub const WM_DPICHANGED : u32 = 736u32 ; pub const WM_DPICHANGED_AFTERPARENT : u32 = 739u32 ; pub const WM_DPICHANGED_BEFOREPARENT : u32 = 738u32 ; pub const WM_DRAWCLIPBOARD : u32 = 776u32 ; pub const WM_DRAWITEM : u32 = 43u32 ; pub const WM_DROPFILES : u32 = 563u32 ; pub const WM_DWMCOLORIZATIONCOLORCHANGED : u32 = 800u32 ; pub const WM_DWMCOMPOSITIONCHANGED : u32 = 798u32 ; pub const WM_DWMNCRENDERINGCHANGED : u32 = 799u32 ; pub const WM_DWMSENDICONICLIVEPREVIEWBITMAP : u32 = 806u32 ; pub const WM_DWMSENDICONICTHUMBNAIL : u32 = 803u32 ; pub const WM_DWMWINDOWMAXIMIZEDCHANGE : u32 = 801u32 ; pub const WM_ENABLE : u32 = 10u32 ; pub const WM_ENDSESSION : u32 = 22u32 ; pub const WM_ENTERIDLE : u32 = 289u32 ; pub const WM_ENTERMENULOOP : u32 = 529u32 ; pub const WM_ENTERSIZEMOVE : u32 = 561u32 ; pub const WM_ERASEBKGND : u32 = 20u32 ; pub const WM_EXITMENULOOP : u32 = 530u32 ; pub const WM_EXITSIZEMOVE : u32 = 562u32 ; pub const WM_FONTCHANGE : u32 = 29u32 ; pub const WM_GESTURE : u32 = 281u32 ; pub const WM_GESTURENOTIFY : u32 = 282u32 ; pub const WM_GETDLGCODE : u32 = 135u32 ; pub const WM_GETDPISCALEDSIZE : u32 = 740u32 ; pub const WM_GETFONT : u32 = 49u32 ; pub const WM_GETHOTKEY : u32 = 51u32 ; pub const WM_GETICON : u32 = 127u32 ; pub const WM_GETMINMAXINFO : u32 = 36u32 ; pub const WM_GETOBJECT : u32 = 61u32 ; pub const WM_GETTEXT : u32 = 13u32 ; pub const WM_GETTEXTLENGTH : u32 = 14u32 ; pub const WM_GETTITLEBARINFOEX : u32 = 831u32 ; pub const WM_HANDHELDFIRST : u32 = 856u32 ; pub const WM_HANDHELDLAST : u32 = 863u32 ; pub const WM_HELP : u32 = 83u32 ; pub const WM_HOTKEY : u32 = 786u32 ; pub const WM_HSCROLL : u32 = 276u32 ; pub const WM_HSCROLLCLIPBOARD : u32 = 782u32 ; pub const WM_ICONERASEBKGND : u32 = 39u32 ; pub const WM_IME_CHAR : u32 = 646u32 ; pub const WM_IME_COMPOSITION : u32 = 271u32 ; pub const WM_IME_COMPOSITIONFULL : u32 = 644u32 ; pub const WM_IME_CONTROL : u32 = 643u32 ; pub const WM_IME_ENDCOMPOSITION : u32 = 270u32 ; pub const WM_IME_KEYDOWN : u32 = 656u32 ; pub const WM_IME_KEYLAST : u32 = 271u32 ; pub const WM_IME_KEYUP : u32 = 657u32 ; pub const WM_IME_NOTIFY : u32 = 642u32 ; pub const WM_IME_REQUEST : u32 = 648u32 ; pub const WM_IME_SELECT : u32 = 645u32 ; pub const WM_IME_SETCONTEXT : u32 = 641u32 ; pub const WM_IME_STARTCOMPOSITION : u32 = 269u32 ; pub const WM_INITDIALOG : u32 = 272u32 ; pub const WM_INITMENU : u32 = 278u32 ; pub const WM_INITMENUPOPUP : u32 = 279u32 ; pub const WM_INPUT : u32 = 255u32 ; pub const WM_INPUTLANGCHANGE : u32 = 81u32 ; pub const WM_INPUTLANGCHANGEREQUEST : u32 = 80u32 ; pub const WM_INPUT_DEVICE_CHANGE : u32 = 254u32 ; pub const WM_KEYDOWN : u32 = 256u32 ; pub const WM_KEYFIRST : u32 = 256u32 ; pub const WM_KEYLAST : u32 = 265u32 ; pub const WM_KEYUP : u32 = 257u32 ; pub const WM_KILLFOCUS : u32 = 8u32 ; pub const WM_LBUTTONDBLCLK : u32 = 515u32 ; pub const WM_LBUTTONDOWN : u32 = 513u32 ; pub const WM_LBUTTONUP : u32 = 514u32 ; pub const WM_MBUTTONDBLCLK : u32 = 521u32 ; pub const WM_MBUTTONDOWN : u32 = 519u32 ; pub const WM_MBUTTONUP : u32 = 520u32 ; pub const WM_MDIACTIVATE : u32 = 546u32 ; pub const WM_MDICASCADE : u32 = 551u32 ; pub const WM_MDICREATE : u32 = 544u32 ; pub const WM_MDIDESTROY : u32 = 545u32 ; pub const WM_MDIGETACTIVE : u32 = 553u32 ; pub const WM_MDIICONARRANGE : u32 = 552u32 ; pub const WM_MDIMAXIMIZE : u32 = 549u32 ; pub const WM_MDINEXT : u32 = 548u32 ; pub const WM_MDIREFRESHMENU : u32 = 564u32 ; pub const WM_MDIRESTORE : u32 = 547u32 ; pub const WM_MDISETMENU : u32 = 560u32 ; pub const WM_MDITILE : u32 = 550u32 ; pub const WM_MEASUREITEM : u32 = 44u32 ; pub const WM_MENUCHAR : u32 = 288u32 ; pub const WM_MENUCOMMAND : u32 = 294u32 ; pub const WM_MENUDRAG : u32 = 291u32 ; pub const WM_MENUGETOBJECT : u32 = 292u32 ; pub const WM_MENURBUTTONUP : u32 = 290u32 ; pub const WM_MENUSELECT : u32 = 287u32 ; pub const WM_MOUSEACTIVATE : u32 = 33u32 ; pub const WM_MOUSEFIRST : u32 = 512u32 ; pub const WM_MOUSEHWHEEL : u32 = 526u32 ; pub const WM_MOUSELAST : u32 = 526u32 ; pub const WM_MOUSEMOVE : u32 = 512u32 ; pub const WM_MOUSEWHEEL : u32 = 522u32 ; pub const WM_MOVE : u32 = 3u32 ; pub const WM_MOVING : u32 = 534u32 ; pub const WM_NCACTIVATE : u32 = 134u32 ; pub const WM_NCCALCSIZE : u32 = 131u32 ; pub const WM_NCCREATE : u32 = 129u32 ; pub const WM_NCDESTROY : u32 = 130u32 ; pub const WM_NCHITTEST : u32 = 132u32 ; pub const WM_NCLBUTTONDBLCLK : u32 = 163u32 ; pub const WM_NCLBUTTONDOWN : u32 = 161u32 ; pub const WM_NCLBUTTONUP : u32 = 162u32 ; pub const WM_NCMBUTTONDBLCLK : u32 = 169u32 ; pub const WM_NCMBUTTONDOWN : u32 = 167u32 ; pub const WM_NCMBUTTONUP : u32 = 168u32 ; pub const WM_NCMOUSEHOVER : u32 = 672u32 ; pub const WM_NCMOUSELEAVE : u32 = 674u32 ; pub const WM_NCMOUSEMOVE : u32 = 160u32 ; pub const WM_NCPAINT : u32 = 133u32 ; pub const WM_NCPOINTERDOWN : u32 = 578u32 ; pub const WM_NCPOINTERUP : u32 = 579u32 ; pub const WM_NCPOINTERUPDATE : u32 = 577u32 ; pub const WM_NCRBUTTONDBLCLK : u32 = 166u32 ; pub const WM_NCRBUTTONDOWN : u32 = 164u32 ; pub const WM_NCRBUTTONUP : u32 = 165u32 ; pub const WM_NCXBUTTONDBLCLK : u32 = 173u32 ; pub const WM_NCXBUTTONDOWN : u32 = 171u32 ; pub const WM_NCXBUTTONUP : u32 = 172u32 ; pub const WM_NEXTDLGCTL : u32 = 40u32 ; pub const WM_NEXTMENU : u32 = 531u32 ; pub const WM_NOTIFYFORMAT : u32 = 85u32 ; pub const WM_NULL : u32 = 0u32 ; pub const WM_PAINT : u32 = 15u32 ; pub const WM_PAINTCLIPBOARD : u32 = 777u32 ; pub const WM_PAINTICON : u32 = 38u32 ; pub const WM_PALETTECHANGED : u32 = 785u32 ; pub const WM_PALETTEISCHANGING : u32 = 784u32 ; pub const WM_PARENTNOTIFY : u32 = 528u32 ; pub const WM_PASTE : u32 = 770u32 ; pub const WM_PENWINFIRST : u32 = 896u32 ; pub const WM_PENWINLAST : u32 = 911u32 ; pub const WM_POINTERACTIVATE : u32 = 587u32 ; pub const WM_POINTERCAPTURECHANGED : u32 = 588u32 ; pub const WM_POINTERDEVICECHANGE : u32 = 568u32 ; pub const WM_POINTERDEVICEINRANGE : u32 = 569u32 ; pub const WM_POINTERDEVICEOUTOFRANGE : u32 = 570u32 ; pub const WM_POINTERDOWN : u32 = 582u32 ; pub const WM_POINTERENTER : u32 = 585u32 ; pub const WM_POINTERHWHEEL : u32 = 591u32 ; pub const WM_POINTERLEAVE : u32 = 586u32 ; pub const WM_POINTERROUTEDAWAY : u32 = 594u32 ; pub const WM_POINTERROUTEDRELEASED : u32 = 595u32 ; pub const WM_POINTERROUTEDTO : u32 = 593u32 ; pub const WM_POINTERUP : u32 = 583u32 ; pub const WM_POINTERUPDATE : u32 = 581u32 ; pub const WM_POINTERWHEEL : u32 = 590u32 ; pub const WM_POWER : u32 = 72u32 ; pub const WM_POWERBROADCAST : u32 = 536u32 ; pub const WM_PRINT : u32 = 791u32 ; pub const WM_PSD_ENVSTAMPRECT : u32 = 1029u32 ; pub const WM_PSD_FULLPAGERECT : u32 = 1025u32 ; pub const WM_PSD_GREEKTEXTRECT : u32 = 1028u32 ; pub const WM_PSD_MARGINRECT : u32 = 1027u32 ; pub const WM_PSD_MINMARGINRECT : u32 = 1026u32 ; pub const WM_PSD_YAFULLPAGERECT : u32 = 1030u32 ; pub const WM_QUERYDRAGICON : u32 = 55u32 ; pub const WM_QUERYENDSESSION : u32 = 17u32 ; pub const WM_QUERYNEWPALETTE : u32 = 783u32 ; pub const WM_QUERYOPEN : u32 = 19u32 ; pub const WM_QUERYUISTATE : u32 = 297u32 ; pub const WM_QUEUESYNC : u32 = 35u32 ; pub const WM_QUIT : u32 = 18u32 ; pub const WM_RBUTTONDBLCLK : u32 = 518u32 ; pub const WM_RBUTTONDOWN : u32 = 516u32 ; pub const WM_RBUTTONUP : u32 = 517u32 ; pub const WM_RENDERALLFORMATS : u32 = 774u32 ; pub const WM_RENDERFORMAT : u32 = 773u32 ; pub const WM_SETCURSOR : u32 = 32u32 ; pub const WM_SETFOCUS : u32 = 7u32 ; pub const WM_SETFONT : u32 = 48u32 ; pub const WM_SETHOTKEY : u32 = 50u32 ; pub const WM_SETICON : u32 = 128u32 ; pub const WM_SETREDRAW : u32 = 11u32 ; pub const WM_SETTEXT : u32 = 12u32 ; pub const WM_SHOWWINDOW : u32 = 24u32 ; pub const WM_SIZE : u32 = 5u32 ; pub const WM_SIZECLIPBOARD : u32 = 779u32 ; pub const WM_SIZING : u32 = 532u32 ; pub const WM_SPOOLERSTATUS : u32 = 42u32 ; pub const WM_STYLECHANGED : u32 = 125u32 ; pub const WM_STYLECHANGING : u32 = 124u32 ; pub const WM_SYNCPAINT : u32 = 136u32 ; pub const WM_SYSCHAR : u32 = 262u32 ; pub const WM_SYSCOLORCHANGE : u32 = 21u32 ; pub const WM_SYSCOMMAND : u32 = 274u32 ; pub const WM_SYSDEADCHAR : u32 = 263u32 ; pub const WM_SYSKEYDOWN : u32 = 260u32 ; pub const WM_SYSKEYUP : u32 = 261u32 ; pub const WM_TABLET_FIRST : u32 = 704u32 ; pub const WM_TABLET_LAST : u32 = 735u32 ; pub const WM_TCARD : u32 = 82u32 ; pub const WM_THEMECHANGED : u32 = 794u32 ; pub const WM_TIMECHANGE : u32 = 30u32 ; pub const WM_TIMER : u32 = 275u32 ; pub const WM_TOUCH : u32 = 576u32 ; pub const WM_TOUCHHITTESTING : u32 = 589u32 ; pub const WM_UNDO : u32 = 772u32 ; pub const WM_UNINITMENUPOPUP : u32 = 293u32 ; pub const WM_UPDATEUISTATE : u32 = 296u32 ; pub const WM_USER : u32 = 1024u32 ; pub const WM_USERCHANGED : u32 = 84u32 ; pub const WM_VKEYTOITEM : u32 = 46u32 ; pub const WM_VSCROLL : u32 = 277u32 ; pub const WM_VSCROLLCLIPBOARD : u32 = 778u32 ; pub const WM_WINDOWPOSCHANGED : u32 = 71u32 ; pub const WM_WINDOWPOSCHANGING : u32 = 70u32 ; pub const WM_WININICHANGE : u32 = 26u32 ; pub const WM_WTSSESSION_CHANGE : u32 = 689u32 ; pub const WM_XBUTTONDBLCLK : u32 = 525u32 ; pub const WM_XBUTTONDOWN : u32 = 523u32 ; pub const WM_XBUTTONUP : u32 = 524u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSA { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR } impl WNDCLASSA { } impl :: std :: default :: Default for WNDCLASSA { fn default ( ) -> Self { Self { style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSA" ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSA { fn eq ( & self , other : & Self ) -> bool { self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName } } impl :: std :: cmp :: Eq for WNDCLASSA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSA_abi { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for WNDCLASSA { type Abi = WNDCLASSA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSEXA { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR , pub hIconSm : HICON } impl WNDCLASSEXA { } impl :: std :: default :: Default for WNDCLASSEXA { fn default ( ) -> Self { Self { cbSize : 0 , style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) , hIconSm : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSEXA" ) . field ( "cbSize" , & self . cbSize ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . field ( "hIconSm" , & self . hIconSm ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSEXA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName && self . hIconSm == other . hIconSm } } impl :: std :: cmp :: Eq for WNDCLASSEXA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSEXA_abi { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR , pub hIconSm : HICON } unsafe impl :: windows :: Abi for WNDCLASSEXA { type Abi = WNDCLASSEXA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSEXW { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR , pub hIconSm : HICON } impl WNDCLASSEXW { } impl :: std :: default :: Default for WNDCLASSEXW { fn default ( ) -> Self { Self { cbSize : 0 , style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) , hIconSm : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSEXW" ) . field ( "cbSize" , & self . cbSize ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . field ( "hIconSm" , & self . hIconSm ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSEXW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName && self . hIconSm == other . hIconSm } } impl :: std :: cmp :: Eq for WNDCLASSEXW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSEXW_abi { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR , pub hIconSm : HICON } unsafe impl :: windows :: Abi for WNDCLASSEXW { type Abi = WNDCLASSEXW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSW { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR } impl WNDCLASSW { } impl :: std :: default :: Default for WNDCLASSW { fn default ( ) -> Self { Self { style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSW" ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSW { fn eq ( & self , other : & Self ) -> bool { self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName } } impl :: std :: cmp :: Eq for WNDCLASSW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSW_abi { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for WNDCLASSW { type Abi = WNDCLASSW_abi ; 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 WNDCLASS_STYLES ( pub u32 ) ; pub const CS_VREDRAW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 1u32 ) ; pub const CS_HREDRAW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 2u32 ) ; pub const CS_DBLCLKS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 8u32 ) ; pub const CS_OWNDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 32u32 ) ; pub const CS_CLASSDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 64u32 ) ; pub const CS_PARENTDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 128u32 ) ; pub const CS_NOCLOSE : WNDCLASS_STYLES = WNDCLASS_STYLES ( 512u32 ) ; pub const CS_SAVEBITS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 2048u32 ) ; pub const CS_BYTEALIGNCLIENT : WNDCLASS_STYLES = WNDCLASS_STYLES ( 4096u32 ) ; pub const CS_BYTEALIGNWINDOW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 8192u32 ) ; pub const CS_GLOBALCLASS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 16384u32 ) ; pub const CS_IME : WNDCLASS_STYLES = WNDCLASS_STYLES ( 65536u32 ) ; pub const CS_DROPSHADOW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 131072u32 ) ; impl :: std :: convert :: From < u32 > for WNDCLASS_STYLES { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WNDCLASS_STYLES { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WNDCLASS_STYLES { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WNDCLASS_STYLES { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WNDCLASS_STYLES { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WNDCLASS_STYLES { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub type WNDENUMPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type WNDPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; pub const WSF_VISIBLE : i32 = 1i32 ; pub const WTS_CONSOLE_CONNECT : u32 = 1u32 ; pub const WTS_CONSOLE_DISCONNECT : u32 = 2u32 ; pub const WTS_REMOTE_CONNECT : u32 = 3u32 ; pub const WTS_REMOTE_DISCONNECT : u32 = 4u32 ; pub const WTS_SESSION_CREATE : u32 = 10u32 ; pub const WTS_SESSION_LOCK : u32 = 7u32 ; pub const WTS_SESSION_LOGOFF : u32 = 6u32 ; pub const WTS_SESSION_LOGON : u32 = 5u32 ; pub const WTS_SESSION_REMOTE_CONTROL : u32 = 9u32 ; pub const WTS_SESSION_TERMINATE : u32 = 11u32 ; pub const WTS_SESSION_UNLOCK : u32 = 8u32 ; pub const WVR_ALIGNBOTTOM : u32 = 64u32 ; pub const WVR_ALIGNLEFT : u32 = 32u32 ; pub const WVR_ALIGNRIGHT : u32 = 128u32 ; pub const WVR_ALIGNTOP : u32 = 16u32 ; pub const WVR_HREDRAW : u32 = 256u32 ; pub const WVR_VALIDRECTS : u32 = 1024u32 ; pub const WVR_VREDRAW : u32 = 512u32 ; pub unsafe fn WaitMessage < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WaitMessage ( ) -> super::super::Foundation:: BOOL ; } WaitMessage ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn WindowFromPhysicalPoint < 'a , > ( point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WindowFromPhysicalPoint ( point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } WindowFromPhysicalPoint ( point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn WindowFromPoint < 'a , > ( point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WindowFromPoint ( point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } WindowFromPoint ( point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const __WARNING_BANNED_API_USAGE : u32 = 28719u32 ; pub const __WARNING_CYCLOMATIC_COMPLEXITY : u32 = 28734u32 ; pub const __WARNING_DEREF_NULL_PTR : u32 = 6011u32 ; pub const __WARNING_HIGH_PRIORITY_OVERFLOW_POSTCONDITION : u32 = 26045u32 ; pub const __WARNING_INCORRECT_ANNOTATION : u32 = 26007u32 ; pub const __WARNING_INVALID_PARAM_VALUE_1 : u32 = 6387u32 ; pub const __WARNING_INVALID_PARAM_VALUE_3 : u32 = 28183u32 ; pub const __WARNING_MISSING_ZERO_TERMINATION2 : u32 = 6054u32 ; pub const __WARNING_POSTCONDITION_NULLTERMINATION_VIOLATION : u32 = 26036u32 ; pub const __WARNING_POST_EXPECTED : u32 = 28210u32 ; pub const __WARNING_POTENTIAL_BUFFER_OVERFLOW_HIGH_PRIORITY : u32 = 26015u32 ; pub const __WARNING_POTENTIAL_RANGE_POSTCONDITION_VIOLATION : u32 = 26071u32 ; pub const __WARNING_PRECONDITION_NULLTERMINATION_VIOLATION : u32 = 26035u32 ; pub const __WARNING_RANGE_POSTCONDITION_VIOLATION : u32 = 26061u32 ; pub const __WARNING_RETURNING_BAD_RESULT : u32 = 28196u32 ; pub const __WARNING_RETURN_UNINIT_VAR : u32 = 6101u32 ; pub const __WARNING_USING_UNINIT_VAR : u32 = 6001u32 ; pub unsafe fn wsprintfA < 'a , > ( param0 : super::super::Foundation:: PSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wsprintfA ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: PSTR ) -> i32 ; } wsprintfA ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wsprintfW < 'a , > ( param0 : super::super::Foundation:: PWSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wsprintfW ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: PWSTR ) -> i32 ; } wsprintfW ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wvsprintfA < 'a , > ( param0 : super::super::Foundation:: PSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , arglist : * mut i8 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wvsprintfA ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: PSTR , arglist : * mut i8 ) -> i32 ; } wvsprintfA ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( arglist ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wvsprintfW < 'a , > ( param0 : super::super::Foundation:: PWSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , arglist : * mut i8 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wvsprintfW ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: PWSTR , arglist : * mut i8 ) -> i32 ; } wvsprintfW ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( arglist ) ) } # [ 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/WindowsD2DErrorSample-113ee0a6732de562/out/windows.rs:1:14392 [INFO] [stdout] | [INFO] [stdout] 1 | ... { if ! value . 0 . 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 Foundation { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Numerics { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct Matrix3x2 { pub M11 : f32 , pub M12 : f32 , pub M21 : f32 , pub M22 : f32 , pub M31 : f32 , pub M32 : f32 } impl Matrix3x2 { } impl :: std :: default :: Default for Matrix3x2 { fn default ( ) -> Self { Self { M11 : 0.0 , M12 : 0.0 , M21 : 0.0 , M22 : 0.0 , M31 : 0.0 , M32 : 0.0 } } } impl :: std :: fmt :: Debug for Matrix3x2 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "Matrix3x2" ) . field ( "M11" , & self . M11 ) . field ( "M12" , & self . M12 ) . field ( "M21" , & self . M21 ) . field ( "M22" , & self . M22 ) . field ( "M31" , & self . M31 ) . field ( "M32" , & self . M32 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for Matrix3x2 { fn eq ( & self , other : & Self ) -> bool { self . M11 == other . M11 && self . M12 == other . M12 && self . M21 == other . M21 && self . M22 == other . M22 && self . M31 == other . M31 && self . M32 == other . M32 } } impl :: std :: cmp :: Eq for Matrix3x2 { } unsafe impl :: windows :: Abi for Matrix3x2 { type Abi = Self ; type DefaultType = Self ; } unsafe impl :: windows :: RuntimeType for Matrix3x2 { const SIGNATURE : :: windows :: ConstBuffer = :: windows :: ConstBuffer :: from_slice ( b"struct(Windows.Foundation.Numerics.Matrix3x2;f4;f4;f4;f4;f4;f4)" ) ; } impl Matrix3x2 { pub fn identity ( ) -> Self { Self { M11 : 1.0 , M12 : 0.0 , M21 : 0.0 , M22 : 1.0 , M31 : 0.0 , M32 : 0.0 , } } pub fn translation ( x : f32 , y : f32 ) -> Self { Self { M11 : 1.0 , M12 : 0.0 , M21 : 0.0 , M22 : 1.0 , M31 : x , M32 : y , } } pub fn rotation ( angle : f32 , x : f32 , y : f32 ) -> Self { let mut matrix = Self :: default ( ) ; unsafe { super :: super :: Win32 :: Graphics :: Direct2D :: D2D1MakeRotateMatrix ( angle , super :: super :: Win32 :: Graphics :: Direct2D :: D2D_POINT_2F { x , y } , & mut matrix ) ; } matrix } fn impl_add ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 + rhs . M11 , M12 : self . M12 + rhs . M12 , M21 : self . M21 + rhs . M21 , M22 : self . M22 + rhs . M22 , M31 : self . M31 + rhs . M31 , M32 : self . M32 + rhs . M32 , } } fn impl_sub ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 - rhs . M11 , M12 : self . M12 - rhs . M12 , M21 : self . M21 - rhs . M21 , M22 : self . M22 - rhs . M22 , M31 : self . M31 - rhs . M31 , M32 : self . M32 - rhs . M32 , } } fn impl_mul ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 * rhs . M11 + self . M12 * rhs . M21 , M12 : self . M11 * rhs . M12 + self . M12 * rhs . M22 , M21 : self . M21 * rhs . M11 + self . M22 * rhs . M21 , M22 : self . M21 * rhs . M12 + self . M22 * rhs . M22 , M31 : self . M31 * rhs . M11 + self . M32 * rhs . M21 + rhs . M31 , M32 : self . M31 * rhs . M12 + self . M32 * rhs . M22 + rhs . M32 , } } fn impl_mul_f32 ( & self , rhs : f32 ) -> Self { Self { M11 : self . M11 * rhs , M12 : self . M12 * rhs , M21 : self . M21 * rhs , M22 : self . M22 * rhs , M31 : self . M31 * rhs , M32 : self . M32 * rhs , } } } impl :: std :: ops :: Add < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_add ( & rhs ) } } impl :: std :: ops :: Add < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_add ( rhs ) } } impl :: std :: ops :: Add < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_add ( & rhs ) } } impl :: std :: ops :: Add < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_add ( rhs ) } } impl :: std :: ops :: Sub < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( & rhs ) } } impl :: std :: ops :: Sub < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( rhs ) } } impl :: std :: ops :: Sub < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( & rhs ) } } impl :: std :: ops :: Sub < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( rhs ) } } impl :: std :: ops :: Mul < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( & rhs ) } } impl :: std :: ops :: Mul < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( rhs ) } } impl :: std :: ops :: Mul < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( & rhs ) } } impl :: std :: ops :: Mul < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( rhs ) } } impl :: std :: ops :: Mul < f32 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : f32 ) -> Matrix3x2 { self . impl_mul_f32 ( rhs ) } } impl :: std :: ops :: Mul < f32 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : f32 ) -> Matrix3x2 { self . impl_mul_f32 ( rhs ) } } } } # [ 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 :: HRESULT :: from_thread ( ) . into ( ) ) } } # [ 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 ( transparent ) ] pub struct HANDLE ( pub isize ) ; impl HANDLE { } impl :: std :: default :: Default for HANDLE { fn default ( ) -> Self { Self ( 0 ) } } impl HANDLE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HANDLE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HANDLE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HANDLE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HANDLE { } unsafe impl :: windows :: Abi for HANDLE { type Abi = Self ; type DefaultType = Self ; } impl HANDLE { pub const INVALID : Self = Self ( - 1 ) ; pub fn is_invalid ( & self ) -> bool { self . 0 == - 1 } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HINSTANCE ( pub isize ) ; impl HINSTANCE { } impl :: std :: default :: Default for HINSTANCE { fn default ( ) -> Self { Self ( 0 ) } } impl HINSTANCE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HINSTANCE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HINSTANCE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HINSTANCE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HINSTANCE { } unsafe impl :: windows :: Abi for HINSTANCE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HWND ( pub isize ) ; impl HWND { } impl :: std :: default :: Default for HWND { fn default ( ) -> Self { Self ( 0 ) } } impl HWND { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HWND { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HWND" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HWND { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HWND { } unsafe impl :: windows :: Abi for HWND { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct LPARAM ( pub isize ) ; impl LPARAM { } impl :: std :: default :: Default for LPARAM { fn default ( ) -> Self { Self ( 0 ) } } impl LPARAM { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for LPARAM { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LPARAM" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LPARAM { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for LPARAM { } unsafe impl :: windows :: Abi for LPARAM { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct LRESULT ( pub i32 ) ; impl LRESULT { } impl :: std :: default :: Default for LRESULT { fn default ( ) -> Self { Self ( 0 ) } } impl LRESULT { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for LRESULT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LRESULT" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LRESULT { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for LRESULT { } unsafe impl :: windows :: Abi for LRESULT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct POINT { pub x : i32 , pub y : i32 } impl POINT { } impl :: std :: default :: Default for POINT { fn default ( ) -> Self { Self { x : 0 , y : 0 } } } impl :: std :: fmt :: Debug for POINT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "POINT" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for POINT { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for POINT { } unsafe impl :: windows :: Abi for POINT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct POINTL { pub x : i32 , pub y : i32 } impl POINTL { } impl :: std :: default :: Default for POINTL { fn default ( ) -> Self { Self { x : 0 , y : 0 } } } impl :: std :: fmt :: Debug for POINTL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "POINTL" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for POINTL { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for POINTL { } unsafe impl :: windows :: Abi for POINTL { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct PSTR ( pub * mut u8 ) ; impl PSTR { pub const NULL : Self = Self ( :: std :: ptr :: null_mut ( ) ) ; pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: cmp :: PartialEq for PSTR { fn eq ( & self , other : & Self ) -> bool { self . 0 == other . 0 } } unsafe impl :: windows :: Abi for PSTR { type Abi = Self ; type DefaultType = Self ; fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . 0 . is_null ( ) { unsafe { let _ = :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for & 'a 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 _ ) ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct PWSTR ( pub * mut u16 ) ; impl PWSTR { pub const NULL : Self = Self ( :: std :: ptr :: null_mut ( ) ) ; pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PWSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: cmp :: PartialEq for PWSTR { fn eq ( & self , other : & Self ) -> bool { self . 0 == other . 0 } } unsafe impl :: windows :: Abi for PWSTR { type Abi = Self ; type DefaultType = Self ; fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . 0 . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & 'a 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 _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct RECT { pub left : i32 , pub top : i32 , pub right : i32 , pub bottom : i32 } impl RECT { } impl :: std :: default :: Default for RECT { fn default ( ) -> Self { Self { left : 0 , top : 0 , right : 0 , bottom : 0 } } } impl :: std :: fmt :: Debug for RECT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "RECT" ) . field ( "left" , & self . left ) . field ( "top" , & self . top ) . field ( "right" , & self . right ) . field ( "bottom" , & self . bottom ) . finish ( ) } } impl :: std :: cmp :: PartialEq for RECT { fn eq ( & self , other : & Self ) -> bool { self . left == other . left && self . top == other . top && self . right == other . right && self . bottom == other . bottom } } impl :: std :: cmp :: Eq for RECT { } unsafe impl :: windows :: Abi for RECT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SIZE { pub cx : i32 , pub cy : i32 } impl SIZE { } impl :: std :: default :: Default for SIZE { fn default ( ) -> Self { Self { cx : 0 , cy : 0 } } } impl :: std :: fmt :: Debug for SIZE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SIZE" ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SIZE { fn eq ( & self , other : & Self ) -> bool { self . cx == other . cx && self . cy == other . cy } } impl :: std :: cmp :: Eq for SIZE { } unsafe impl :: windows :: Abi for SIZE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct WPARAM ( pub usize ) ; impl WPARAM { } impl :: std :: default :: Default for WPARAM { fn default ( ) -> Self { Self ( 0 ) } } impl WPARAM { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for WPARAM { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WPARAM" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WPARAM { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for WPARAM { } unsafe impl :: windows :: Abi for WPARAM { 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 Graphics { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Direct2D { pub unsafe fn D2D1CreateFactory < > ( factorytype : D2D1_FACTORY_TYPE , riid : * const :: windows :: Guid , pfactoryoptions : * const D2D1_FACTORY_OPTIONS , ppifactory : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="d2d1" ) ] extern "system" { fn D2D1CreateFactory ( factorytype : D2D1_FACTORY_TYPE , riid : * const :: windows :: Guid , pfactoryoptions : * const D2D1_FACTORY_OPTIONS , ppifactory : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } D2D1CreateFactory ( :: std :: mem :: transmute ( factorytype ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( pfactoryoptions ) , :: std :: mem :: transmute ( ppifactory ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn D2D1MakeRotateMatrix < 'a , > ( angle : f32 , center : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , matrix : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { # [ cfg ( windows ) ] { # [ link ( name ="d2d1" ) ] extern "system" { fn D2D1MakeRotateMatrix ( angle : f32 , center : D2D_POINT_2F , matrix : * mut super::super::super::Foundation::Numerics:: Matrix3x2 ) ; } D2D1MakeRotateMatrix ( :: std :: mem :: transmute ( angle ) , center . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( matrix ) ) } # [ 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 D2D1_ALPHA_MODE ( pub u32 ) ; pub const D2D1_ALPHA_MODE_UNKNOWN : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 0u32 ) ; pub const D2D1_ALPHA_MODE_PREMULTIPLIED : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 1u32 ) ; pub const D2D1_ALPHA_MODE_STRAIGHT : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 2u32 ) ; pub const D2D1_ALPHA_MODE_IGNORE : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 3u32 ) ; pub const D2D1_ALPHA_MODE_FORCE_DWORD : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_ALPHA_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_ALPHA_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_ALPHA_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_ALPHA_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_ALPHA_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_ALPHA_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_ANTIALIAS_MODE ( pub u32 ) ; pub const D2D1_ANTIALIAS_MODE_PER_PRIMITIVE : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 0u32 ) ; pub const D2D1_ANTIALIAS_MODE_ALIASED : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 1u32 ) ; pub const D2D1_ANTIALIAS_MODE_FORCE_DWORD : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_ANTIALIAS_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_ANTIALIAS_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_ANTIALIAS_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_ANTIALIAS_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_ANTIALIAS_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_ANTIALIAS_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BITMAP_BRUSH_PROPERTIES { pub extendModeX : D2D1_EXTEND_MODE , pub extendModeY : D2D1_EXTEND_MODE , pub interpolationMode : D2D1_BITMAP_INTERPOLATION_MODE } impl D2D1_BITMAP_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_BITMAP_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { extendModeX : :: std :: default :: Default :: default ( ) , extendModeY : :: std :: default :: Default :: default ( ) , interpolationMode : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_BITMAP_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BITMAP_BRUSH_PROPERTIES" ) . field ( "extendModeX" , & self . extendModeX ) . field ( "extendModeY" , & self . extendModeY ) . field ( "interpolationMode" , & self . interpolationMode ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BITMAP_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . extendModeX == other . extendModeX && self . extendModeY == other . extendModeY && self . interpolationMode == other . interpolationMode } } impl :: std :: cmp :: Eq for D2D1_BITMAP_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BITMAP_BRUSH_PROPERTIES { 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 D2D1_BITMAP_INTERPOLATION_MODE ( pub u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 0u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_LINEAR : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 1u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_FORCE_DWORD : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_BITMAP_INTERPOLATION_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_BITMAP_INTERPOLATION_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_BITMAP_INTERPOLATION_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_BITMAP_INTERPOLATION_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_BITMAP_INTERPOLATION_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_BITMAP_INTERPOLATION_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BITMAP_PROPERTIES { pub pixelFormat : D2D1_PIXEL_FORMAT , pub dpiX : f32 , pub dpiY : f32 } impl D2D1_BITMAP_PROPERTIES { } impl :: std :: default :: Default for D2D1_BITMAP_PROPERTIES { fn default ( ) -> Self { Self { pixelFormat : :: std :: default :: Default :: default ( ) , dpiX : 0.0 , dpiY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_BITMAP_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BITMAP_PROPERTIES" ) . field ( "pixelFormat" , & self . pixelFormat ) . field ( "dpiX" , & self . dpiX ) . field ( "dpiY" , & self . dpiY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BITMAP_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . pixelFormat == other . pixelFormat && self . dpiX == other . dpiX && self . dpiY == other . dpiY } } impl :: std :: cmp :: Eq for D2D1_BITMAP_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BITMAP_PROPERTIES { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BRUSH_PROPERTIES { pub opacity : f32 , pub transform : super::super::super::Foundation::Numerics:: Matrix3x2 } impl D2D1_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { opacity : 0.0 , transform : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BRUSH_PROPERTIES" ) . field ( "opacity" , & self . opacity ) . field ( "transform" , & self . transform ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . opacity == other . opacity && self . transform == other . transform } } impl :: std :: cmp :: Eq for D2D1_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BRUSH_PROPERTIES { 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 D2D1_CAP_STYLE ( pub u32 ) ; pub const D2D1_CAP_STYLE_FLAT : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 0u32 ) ; pub const D2D1_CAP_STYLE_SQUARE : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 1u32 ) ; pub const D2D1_CAP_STYLE_ROUND : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 2u32 ) ; pub const D2D1_CAP_STYLE_TRIANGLE : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 3u32 ) ; pub const D2D1_CAP_STYLE_FORCE_DWORD : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_CAP_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_CAP_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_CAP_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_CAP_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_CAP_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_CAP_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_COLOR_F { pub r : f32 , pub g : f32 , pub b : f32 , pub a : f32 } impl D2D1_COLOR_F { } impl :: std :: default :: Default for D2D1_COLOR_F { fn default ( ) -> Self { Self { r : 0.0 , g : 0.0 , b : 0.0 , a : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_COLOR_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_COLOR_F" ) . field ( "r" , & self . r ) . field ( "g" , & self . g ) . field ( "b" , & self . b ) . field ( "a" , & self . a ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_COLOR_F { fn eq ( & self , other : & Self ) -> bool { self . r == other . r && self . g == other . g && self . b == other . b && self . a == other . a } } impl :: std :: cmp :: Eq for D2D1_COLOR_F { } unsafe impl :: windows :: Abi for D2D1_COLOR_F { 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 D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( pub u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 0u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 1u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_FORCE_DWORD : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_DASH_STYLE ( pub u32 ) ; pub const D2D1_DASH_STYLE_SOLID : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 0u32 ) ; pub const D2D1_DASH_STYLE_DASH : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 1u32 ) ; pub const D2D1_DASH_STYLE_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 2u32 ) ; pub const D2D1_DASH_STYLE_DASH_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 3u32 ) ; pub const D2D1_DASH_STYLE_DASH_DOT_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 4u32 ) ; pub const D2D1_DASH_STYLE_CUSTOM : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 5u32 ) ; pub const D2D1_DASH_STYLE_FORCE_DWORD : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DASH_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DASH_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DASH_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DASH_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DASH_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DASH_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_DEBUG_LEVEL ( pub u32 ) ; pub const D2D1_DEBUG_LEVEL_NONE : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 0u32 ) ; pub const D2D1_DEBUG_LEVEL_ERROR : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 1u32 ) ; pub const D2D1_DEBUG_LEVEL_WARNING : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 2u32 ) ; pub const D2D1_DEBUG_LEVEL_INFORMATION : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 3u32 ) ; pub const D2D1_DEBUG_LEVEL_FORCE_DWORD : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DEBUG_LEVEL { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DEBUG_LEVEL { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DEBUG_LEVEL { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DEBUG_LEVEL { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DEBUG_LEVEL { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DEBUG_LEVEL { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_DRAWING_STATE_DESCRIPTION { pub antialiasMode : D2D1_ANTIALIAS_MODE , pub textAntialiasMode : D2D1_TEXT_ANTIALIAS_MODE , pub tag1 : u64 , pub tag2 : u64 , pub transform : super::super::super::Foundation::Numerics:: Matrix3x2 } impl D2D1_DRAWING_STATE_DESCRIPTION { } impl :: std :: default :: Default for D2D1_DRAWING_STATE_DESCRIPTION { fn default ( ) -> Self { Self { antialiasMode : :: std :: default :: Default :: default ( ) , textAntialiasMode : :: std :: default :: Default :: default ( ) , tag1 : 0 , tag2 : 0 , transform : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_DRAWING_STATE_DESCRIPTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_DRAWING_STATE_DESCRIPTION" ) . field ( "antialiasMode" , & self . antialiasMode ) . field ( "textAntialiasMode" , & self . textAntialiasMode ) . field ( "tag1" , & self . tag1 ) . field ( "tag2" , & self . tag2 ) . field ( "transform" , & self . transform ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_DRAWING_STATE_DESCRIPTION { fn eq ( & self , other : & Self ) -> bool { self . antialiasMode == other . antialiasMode && self . textAntialiasMode == other . textAntialiasMode && self . tag1 == other . tag1 && self . tag2 == other . tag2 && self . transform == other . transform } } impl :: std :: cmp :: Eq for D2D1_DRAWING_STATE_DESCRIPTION { } unsafe impl :: windows :: Abi for D2D1_DRAWING_STATE_DESCRIPTION { 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 D2D1_DRAW_TEXT_OPTIONS ( pub u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_NO_SNAP : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 1u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_CLIP : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 2u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 4u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_DISABLE_COLOR_BITMAP_SNAPPING : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 8u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_NONE : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 0u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_FORCE_DWORD : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DRAW_TEXT_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DRAW_TEXT_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DRAW_TEXT_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DRAW_TEXT_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DRAW_TEXT_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DRAW_TEXT_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_ELLIPSE { pub point : D2D_POINT_2F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_ELLIPSE { } impl :: std :: default :: Default for D2D1_ELLIPSE { fn default ( ) -> Self { Self { point : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_ELLIPSE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_ELLIPSE" ) . field ( "point" , & self . point ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_ELLIPSE { fn eq ( & self , other : & Self ) -> bool { self . point == other . point && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_ELLIPSE { } unsafe impl :: windows :: Abi for D2D1_ELLIPSE { 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 D2D1_EXTEND_MODE ( pub u32 ) ; pub const D2D1_EXTEND_MODE_CLAMP : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 0u32 ) ; pub const D2D1_EXTEND_MODE_WRAP : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 1u32 ) ; pub const D2D1_EXTEND_MODE_MIRROR : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 2u32 ) ; pub const D2D1_EXTEND_MODE_FORCE_DWORD : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_EXTEND_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_EXTEND_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_EXTEND_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_EXTEND_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_EXTEND_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_EXTEND_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_FACTORY_OPTIONS { pub debugLevel : D2D1_DEBUG_LEVEL } impl D2D1_FACTORY_OPTIONS { } impl :: std :: default :: Default for D2D1_FACTORY_OPTIONS { fn default ( ) -> Self { Self { debugLevel : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_FACTORY_OPTIONS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_FACTORY_OPTIONS" ) . field ( "debugLevel" , & self . debugLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_FACTORY_OPTIONS { fn eq ( & self , other : & Self ) -> bool { self . debugLevel == other . debugLevel } } impl :: std :: cmp :: Eq for D2D1_FACTORY_OPTIONS { } unsafe impl :: windows :: Abi for D2D1_FACTORY_OPTIONS { 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 D2D1_FACTORY_TYPE ( pub u32 ) ; pub const D2D1_FACTORY_TYPE_SINGLE_THREADED : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 0u32 ) ; pub const D2D1_FACTORY_TYPE_MULTI_THREADED : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 1u32 ) ; pub const D2D1_FACTORY_TYPE_FORCE_DWORD : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FACTORY_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FACTORY_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FACTORY_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FACTORY_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FACTORY_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FACTORY_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_FEATURE_LEVEL ( pub u32 ) ; pub const D2D1_FEATURE_LEVEL_DEFAULT : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 0u32 ) ; pub const D2D1_FEATURE_LEVEL_9 : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 37120u32 ) ; pub const D2D1_FEATURE_LEVEL_10 : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 40960u32 ) ; pub const D2D1_FEATURE_LEVEL_FORCE_DWORD : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FEATURE_LEVEL { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FEATURE_LEVEL { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FEATURE_LEVEL { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FEATURE_LEVEL { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FEATURE_LEVEL { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FEATURE_LEVEL { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_FILL_MODE ( pub u32 ) ; pub const D2D1_FILL_MODE_ALTERNATE : D2D1_FILL_MODE = D2D1_FILL_MODE ( 0u32 ) ; pub const D2D1_FILL_MODE_WINDING : D2D1_FILL_MODE = D2D1_FILL_MODE ( 1u32 ) ; pub const D2D1_FILL_MODE_FORCE_DWORD : D2D1_FILL_MODE = D2D1_FILL_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FILL_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FILL_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FILL_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FILL_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FILL_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FILL_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_GAMMA ( pub u32 ) ; pub const D2D1_GAMMA_2_2 : D2D1_GAMMA = D2D1_GAMMA ( 0u32 ) ; pub const D2D1_GAMMA_1_0 : D2D1_GAMMA = D2D1_GAMMA ( 1u32 ) ; pub const D2D1_GAMMA_FORCE_DWORD : D2D1_GAMMA = D2D1_GAMMA ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_GAMMA { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_GAMMA { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_GAMMA { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_GAMMA { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_GAMMA { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_GAMMA { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_GRADIENT_STOP { pub position : f32 , pub color : D2D1_COLOR_F } impl D2D1_GRADIENT_STOP { } impl :: std :: default :: Default for D2D1_GRADIENT_STOP { fn default ( ) -> Self { Self { position : 0.0 , color : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_GRADIENT_STOP { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_GRADIENT_STOP" ) . field ( "position" , & self . position ) . field ( "color" , & self . color ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_GRADIENT_STOP { fn eq ( & self , other : & Self ) -> bool { self . position == other . position && self . color == other . color } } impl :: std :: cmp :: Eq for D2D1_GRADIENT_STOP { } unsafe impl :: windows :: Abi for D2D1_GRADIENT_STOP { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_HWND_RENDER_TARGET_PROPERTIES { pub hwnd : super::super::Foundation:: HWND , pub pixelSize : D2D_SIZE_U , pub presentOptions : D2D1_PRESENT_OPTIONS } impl D2D1_HWND_RENDER_TARGET_PROPERTIES { } impl :: std :: default :: Default for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , pixelSize : :: std :: default :: Default :: default ( ) , presentOptions : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_HWND_RENDER_TARGET_PROPERTIES" ) . field ( "hwnd" , & self . hwnd ) . field ( "pixelSize" , & self . pixelSize ) . field ( "presentOptions" , & self . presentOptions ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . pixelSize == other . pixelSize && self . presentOptions == other . presentOptions } } impl :: std :: cmp :: Eq for D2D1_HWND_RENDER_TARGET_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_HWND_RENDER_TARGET_PROPERTIES { 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 D2D1_LAYER_OPTIONS ( pub u32 ) ; pub const D2D1_LAYER_OPTIONS_NONE : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 0u32 ) ; pub const D2D1_LAYER_OPTIONS_INITIALIZE_FOR_CLEARTYPE : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 1u32 ) ; pub const D2D1_LAYER_OPTIONS_FORCE_DWORD : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_LAYER_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_LAYER_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_LAYER_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_LAYER_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_LAYER_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_LAYER_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct D2D1_LAYER_PARAMETERS { pub contentBounds : D2D_RECT_F , pub geometricMask : :: std :: option :: Option < ID2D1Geometry > , pub maskAntialiasMode : D2D1_ANTIALIAS_MODE , pub maskTransform : super::super::super::Foundation::Numerics:: Matrix3x2 , pub opacity : f32 , pub opacityBrush : :: std :: option :: Option < ID2D1Brush > , pub layerOptions : D2D1_LAYER_OPTIONS } impl D2D1_LAYER_PARAMETERS { } impl :: std :: default :: Default for D2D1_LAYER_PARAMETERS { fn default ( ) -> Self { Self { contentBounds : :: std :: default :: Default :: default ( ) , geometricMask : :: std :: default :: Default :: default ( ) , maskAntialiasMode : :: std :: default :: Default :: default ( ) , maskTransform : :: std :: default :: Default :: default ( ) , opacity : 0.0 , opacityBrush : :: std :: default :: Default :: default ( ) , layerOptions : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_LAYER_PARAMETERS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_LAYER_PARAMETERS" ) . field ( "contentBounds" , & self . contentBounds ) . field ( "geometricMask" , & self . geometricMask ) . field ( "maskAntialiasMode" , & self . maskAntialiasMode ) . field ( "maskTransform" , & self . maskTransform ) . field ( "opacity" , & self . opacity ) . field ( "opacityBrush" , & self . opacityBrush ) . field ( "layerOptions" , & self . layerOptions ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_LAYER_PARAMETERS { fn eq ( & self , other : & Self ) -> bool { self . contentBounds == other . contentBounds && self . geometricMask == other . geometricMask && self . maskAntialiasMode == other . maskAntialiasMode && self . maskTransform == other . maskTransform && self . opacity == other . opacity && self . opacityBrush == other . opacityBrush && self . layerOptions == other . layerOptions } } impl :: std :: cmp :: Eq for D2D1_LAYER_PARAMETERS { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct D2D1_LAYER_PARAMETERS_abi { pub contentBounds : D2D_RECT_F , pub geometricMask : :: windows :: RawPtr , pub maskAntialiasMode : D2D1_ANTIALIAS_MODE , pub maskTransform : super::super::super::Foundation::Numerics:: Matrix3x2 , pub opacity : f32 , pub opacityBrush : :: windows :: RawPtr , pub layerOptions : D2D1_LAYER_OPTIONS } unsafe impl :: windows :: Abi for D2D1_LAYER_PARAMETERS { type Abi = D2D1_LAYER_PARAMETERS_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { pub startPoint : D2D_POINT_2F , pub endPoint : D2D_POINT_2F } impl D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { startPoint : :: std :: default :: Default :: default ( ) , endPoint : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES" ) . field ( "startPoint" , & self . startPoint ) . field ( "endPoint" , & self . endPoint ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . startPoint == other . startPoint && self . endPoint == other . endPoint } } impl :: std :: cmp :: Eq for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { 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 D2D1_LINE_JOIN ( pub u32 ) ; pub const D2D1_LINE_JOIN_MITER : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 0u32 ) ; pub const D2D1_LINE_JOIN_BEVEL : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 1u32 ) ; pub const D2D1_LINE_JOIN_ROUND : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 2u32 ) ; pub const D2D1_LINE_JOIN_MITER_OR_BEVEL : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 3u32 ) ; pub const D2D1_LINE_JOIN_FORCE_DWORD : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_LINE_JOIN { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_LINE_JOIN { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_LINE_JOIN { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_LINE_JOIN { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_LINE_JOIN { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_LINE_JOIN { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_OPACITY_MASK_CONTENT ( pub u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_GRAPHICS : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 0u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 1u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 2u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_FORCE_DWORD : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_OPACITY_MASK_CONTENT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_OPACITY_MASK_CONTENT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_OPACITY_MASK_CONTENT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_OPACITY_MASK_CONTENT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_OPACITY_MASK_CONTENT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_OPACITY_MASK_CONTENT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_PIXEL_FORMAT { pub format : super::Dxgi:: DXGI_FORMAT , pub alphaMode : D2D1_ALPHA_MODE } impl D2D1_PIXEL_FORMAT { } impl :: std :: default :: Default for D2D1_PIXEL_FORMAT { fn default ( ) -> Self { Self { format : :: std :: default :: Default :: default ( ) , alphaMode : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_PIXEL_FORMAT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_PIXEL_FORMAT" ) . field ( "format" , & self . format ) . field ( "alphaMode" , & self . alphaMode ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_PIXEL_FORMAT { fn eq ( & self , other : & Self ) -> bool { self . format == other . format && self . alphaMode == other . alphaMode } } impl :: std :: cmp :: Eq for D2D1_PIXEL_FORMAT { } unsafe impl :: windows :: Abi for D2D1_PIXEL_FORMAT { 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 D2D1_PRESENT_OPTIONS ( pub u32 ) ; pub const D2D1_PRESENT_OPTIONS_NONE : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 0u32 ) ; pub const D2D1_PRESENT_OPTIONS_RETAIN_CONTENTS : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 1u32 ) ; pub const D2D1_PRESENT_OPTIONS_IMMEDIATELY : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 2u32 ) ; pub const D2D1_PRESENT_OPTIONS_FORCE_DWORD : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_PRESENT_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_PRESENT_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_PRESENT_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_PRESENT_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_PRESENT_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_PRESENT_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { pub center : D2D_POINT_2F , pub gradientOriginOffset : D2D_POINT_2F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { center : :: std :: default :: Default :: default ( ) , gradientOriginOffset : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES" ) . field ( "center" , & self . center ) . field ( "gradientOriginOffset" , & self . gradientOriginOffset ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . center == other . center && self . gradientOriginOffset == other . gradientOriginOffset && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_RENDER_TARGET_PROPERTIES { pub r#type : D2D1_RENDER_TARGET_TYPE , pub pixelFormat : D2D1_PIXEL_FORMAT , pub dpiX : f32 , pub dpiY : f32 , pub usage : D2D1_RENDER_TARGET_USAGE , pub minLevel : D2D1_FEATURE_LEVEL } impl D2D1_RENDER_TARGET_PROPERTIES { } impl :: std :: default :: Default for D2D1_RENDER_TARGET_PROPERTIES { fn default ( ) -> Self { Self { r#type : :: std :: default :: Default :: default ( ) , pixelFormat : :: std :: default :: Default :: default ( ) , dpiX : 0.0 , dpiY : 0.0 , usage : :: std :: default :: Default :: default ( ) , minLevel : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_RENDER_TARGET_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_RENDER_TARGET_PROPERTIES" ) . field ( "r#type" , & self . r#type ) . field ( "pixelFormat" , & self . pixelFormat ) . field ( "dpiX" , & self . dpiX ) . field ( "dpiY" , & self . dpiY ) . field ( "usage" , & self . usage ) . field ( "minLevel" , & self . minLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_RENDER_TARGET_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . r#type == other . r#type && self . pixelFormat == other . pixelFormat && self . dpiX == other . dpiX && self . dpiY == other . dpiY && self . usage == other . usage && self . minLevel == other . minLevel } } impl :: std :: cmp :: Eq for D2D1_RENDER_TARGET_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_PROPERTIES { 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 D2D1_RENDER_TARGET_TYPE ( pub u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_DEFAULT : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 0u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_SOFTWARE : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 1u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_HARDWARE : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 2u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_FORCE_DWORD : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_RENDER_TARGET_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_RENDER_TARGET_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_RENDER_TARGET_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_RENDER_TARGET_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_RENDER_TARGET_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_RENDER_TARGET_USAGE ( pub u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_NONE : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 0u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_FORCE_BITMAP_REMOTING : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 1u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 2u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_FORCE_DWORD : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_RENDER_TARGET_USAGE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_USAGE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_RENDER_TARGET_USAGE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_RENDER_TARGET_USAGE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_RENDER_TARGET_USAGE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_RENDER_TARGET_USAGE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_ROUNDED_RECT { pub rect : D2D_RECT_F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_ROUNDED_RECT { } impl :: std :: default :: Default for D2D1_ROUNDED_RECT { fn default ( ) -> Self { Self { rect : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_ROUNDED_RECT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_ROUNDED_RECT" ) . field ( "rect" , & self . rect ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_ROUNDED_RECT { fn eq ( & self , other : & Self ) -> bool { self . rect == other . rect && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_ROUNDED_RECT { } unsafe impl :: windows :: Abi for D2D1_ROUNDED_RECT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_STROKE_STYLE_PROPERTIES { pub startCap : D2D1_CAP_STYLE , pub endCap : D2D1_CAP_STYLE , pub dashCap : D2D1_CAP_STYLE , pub lineJoin : D2D1_LINE_JOIN , pub miterLimit : f32 , pub dashStyle : D2D1_DASH_STYLE , pub dashOffset : f32 } impl D2D1_STROKE_STYLE_PROPERTIES { } impl :: std :: default :: Default for D2D1_STROKE_STYLE_PROPERTIES { fn default ( ) -> Self { Self { startCap : :: std :: default :: Default :: default ( ) , endCap : :: std :: default :: Default :: default ( ) , dashCap : :: std :: default :: Default :: default ( ) , lineJoin : :: std :: default :: Default :: default ( ) , miterLimit : 0.0 , dashStyle : :: std :: default :: Default :: default ( ) , dashOffset : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_STROKE_STYLE_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_STROKE_STYLE_PROPERTIES" ) . field ( "startCap" , & self . startCap ) . field ( "endCap" , & self . endCap ) . field ( "dashCap" , & self . dashCap ) . field ( "lineJoin" , & self . lineJoin ) . field ( "miterLimit" , & self . miterLimit ) . field ( "dashStyle" , & self . dashStyle ) . field ( "dashOffset" , & self . dashOffset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_STROKE_STYLE_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . startCap == other . startCap && self . endCap == other . endCap && self . dashCap == other . dashCap && self . lineJoin == other . lineJoin && self . miterLimit == other . miterLimit && self . dashStyle == other . dashStyle && self . dashOffset == other . dashOffset } } impl :: std :: cmp :: Eq for D2D1_STROKE_STYLE_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_STROKE_STYLE_PROPERTIES { 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 D2D1_TEXT_ANTIALIAS_MODE ( pub u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_DEFAULT : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 0u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 1u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 2u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_ALIASED : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 3u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_FORCE_DWORD : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_TEXT_ANTIALIAS_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_TEXT_ANTIALIAS_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_TEXT_ANTIALIAS_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_TEXT_ANTIALIAS_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_TEXT_ANTIALIAS_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_TEXT_ANTIALIAS_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_WINDOW_STATE ( pub u32 ) ; pub const D2D1_WINDOW_STATE_NONE : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 0u32 ) ; pub const D2D1_WINDOW_STATE_OCCLUDED : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 1u32 ) ; pub const D2D1_WINDOW_STATE_FORCE_DWORD : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_WINDOW_STATE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_WINDOW_STATE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_WINDOW_STATE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_WINDOW_STATE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_WINDOW_STATE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_WINDOW_STATE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_POINT_2F { pub x : f32 , pub y : f32 } impl D2D_POINT_2F { } impl :: std :: default :: Default for D2D_POINT_2F { fn default ( ) -> Self { Self { x : 0.0 , y : 0.0 } } } impl :: std :: fmt :: Debug for D2D_POINT_2F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_POINT_2F" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_POINT_2F { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for D2D_POINT_2F { } unsafe impl :: windows :: Abi for D2D_POINT_2F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_RECT_F { pub left : f32 , pub top : f32 , pub right : f32 , pub bottom : f32 } impl D2D_RECT_F { } impl :: std :: default :: Default for D2D_RECT_F { fn default ( ) -> Self { Self { left : 0.0 , top : 0.0 , right : 0.0 , bottom : 0.0 } } } impl :: std :: fmt :: Debug for D2D_RECT_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_RECT_F" ) . field ( "left" , & self . left ) . field ( "top" , & self . top ) . field ( "right" , & self . right ) . field ( "bottom" , & self . bottom ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_RECT_F { fn eq ( & self , other : & Self ) -> bool { self . left == other . left && self . top == other . top && self . right == other . right && self . bottom == other . bottom } } impl :: std :: cmp :: Eq for D2D_RECT_F { } unsafe impl :: windows :: Abi for D2D_RECT_F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_SIZE_F { pub width : f32 , pub height : f32 } impl D2D_SIZE_F { } impl :: std :: default :: Default for D2D_SIZE_F { fn default ( ) -> Self { Self { width : 0.0 , height : 0.0 } } } impl :: std :: fmt :: Debug for D2D_SIZE_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_SIZE_F" ) . field ( "width" , & self . width ) . field ( "height" , & self . height ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_SIZE_F { fn eq ( & self , other : & Self ) -> bool { self . width == other . width && self . height == other . height } } impl :: std :: cmp :: Eq for D2D_SIZE_F { } unsafe impl :: windows :: Abi for D2D_SIZE_F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_SIZE_U { pub width : u32 , pub height : u32 } impl D2D_SIZE_U { } impl :: std :: default :: Default for D2D_SIZE_U { fn default ( ) -> Self { Self { width : 0 , height : 0 } } } impl :: std :: fmt :: Debug for D2D_SIZE_U { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_SIZE_U" ) . field ( "width" , & self . width ) . field ( "height" , & self . height ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_SIZE_U { fn eq ( & self , other : & Self ) -> bool { self . width == other . width && self . height == other . height } } impl :: std :: cmp :: Eq for D2D_SIZE_U { } unsafe impl :: windows :: Abi for D2D_SIZE_U { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Bitmap ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Bitmap { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2720620631 ,59970 ,16537 , [ 152 ,59 ,83 ,159 ,182 ,80 ,84 ,38 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1BitmapBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1BitmapBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420522 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1BitmapRenderTarget ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1BitmapRenderTarget { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420501 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Brush ( :: windows :: IUnknown ) ; impl ID2D1Brush { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn SetOpacity < > ( & self , opacity : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( opacity ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetOpacity < > ( & self , ) -> f32 { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } } unsafe impl :: windows :: Interface for ID2D1Brush { type Vtable = ID2D1Brush_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420520 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1Brush > for :: windows :: IUnknown { fn from ( value : ID2D1Brush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Brush > for :: windows :: IUnknown { fn from ( value : & ID2D1Brush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1Brush > for ID2D1Resource { fn from ( value : ID2D1Brush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Brush > for ID2D1Resource { fn from ( value : & ID2D1Brush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Brush_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacity : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> f32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1DCRenderTarget ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1DCRenderTarget { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 475118692 ,56929 ,18173 , [ 152 ,153 ,99 ,165 ,216 ,240 ,57 ,80 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1DrawingStateBlock ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1DrawingStateBlock { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 676359737 ,60406 ,18081 , [ 187 ,71 ,253 ,133 ,86 ,90 ,185 ,87 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1EllipseGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1EllipseGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420516 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Factory ( :: windows :: IUnknown ) ; impl ID2D1Factory { pub unsafe fn ReloadSystemMetrics < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDesktopDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn CreateRectangleGeometry < > ( & self , rectangle : * const D2D_RECT_F , ) -> :: windows :: Result < ID2D1RectangleGeometry > { let mut result__ : < ID2D1RectangleGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rectangle ) , & mut result__ ) . from_abi :: < ID2D1RectangleGeometry > ( result__ ) } pub unsafe fn CreateRoundedRectangleGeometry < > ( & self , roundedrectangle : * const D2D1_ROUNDED_RECT , ) -> :: windows :: Result < ID2D1RoundedRectangleGeometry > { let mut result__ : < ID2D1RoundedRectangleGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrectangle ) , & mut result__ ) . from_abi :: < ID2D1RoundedRectangleGeometry > ( result__ ) } pub unsafe fn CreateEllipseGeometry < > ( & self , ellipse : * const D2D1_ELLIPSE , ) -> :: windows :: Result < ID2D1EllipseGeometry > { let mut result__ : < ID2D1EllipseGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , & mut result__ ) . from_abi :: < ID2D1EllipseGeometry > ( result__ ) } pub unsafe fn CreateGeometryGroup < > ( & self , fillmode : D2D1_FILL_MODE , geometries : * mut :: std :: option :: Option < ID2D1Geometry > , geometriescount : u32 , ) -> :: windows :: Result < ID2D1GeometryGroup > { let mut result__ : < ID2D1GeometryGroup as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( fillmode ) , :: std :: mem :: transmute ( geometries ) , :: std :: mem :: transmute ( geometriescount ) , & mut result__ ) . from_abi :: < ID2D1GeometryGroup > ( result__ ) } pub unsafe fn CreateTransformedGeometry < 'a , > ( & self , sourcegeometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) -> :: windows :: Result < ID2D1TransformedGeometry > { let mut result__ : < ID2D1TransformedGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , sourcegeometry . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( transform ) , & mut result__ ) . from_abi :: < ID2D1TransformedGeometry > ( result__ ) } pub unsafe fn CreatePathGeometry < > ( & self , ) -> :: windows :: Result < ID2D1PathGeometry > { let mut result__ : < ID2D1PathGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1PathGeometry > ( result__ ) } pub unsafe fn CreateStrokeStyle < > ( & self , strokestyleproperties : * const D2D1_STROKE_STYLE_PROPERTIES , dashes : * const f32 , dashescount : u32 , ) -> :: windows :: Result < ID2D1StrokeStyle > { let mut result__ : < ID2D1StrokeStyle as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( strokestyleproperties ) , :: std :: mem :: transmute ( dashes ) , :: std :: mem :: transmute ( dashescount ) , & mut result__ ) . from_abi :: < ID2D1StrokeStyle > ( result__ ) } pub unsafe fn CreateDrawingStateBlock < 'a , > ( & self , drawingstatedescription : * const D2D1_DRAWING_STATE_DESCRIPTION , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) -> :: windows :: Result < ID2D1DrawingStateBlock > { let mut result__ : < ID2D1DrawingStateBlock as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( drawingstatedescription ) , textrenderingparams . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1DrawingStateBlock > ( result__ ) } pub unsafe fn CreateWicBitmapRenderTarget < 'a , > ( & self , target : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmap > , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1RenderTarget > { let mut result__ : < ID2D1RenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , target . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1RenderTarget > ( result__ ) } pub unsafe fn CreateHwndRenderTarget < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , hwndrendertargetproperties : * const D2D1_HWND_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1HwndRenderTarget > { let mut result__ : < ID2D1HwndRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , :: std :: mem :: transmute ( hwndrendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1HwndRenderTarget > ( result__ ) } pub unsafe fn CreateDxgiSurfaceRenderTarget < 'a , > ( & self , dxgisurface : impl :: windows :: IntoParam < 'a , super::Dxgi:: IDXGISurface > , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1RenderTarget > { let mut result__ : < ID2D1RenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , dxgisurface . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1RenderTarget > ( result__ ) } pub unsafe fn CreateDCRenderTarget < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1DCRenderTarget > { let mut result__ : < ID2D1DCRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1DCRenderTarget > ( result__ ) } } unsafe impl :: windows :: Interface for ID2D1Factory { type Vtable = ID2D1Factory_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 102048327 ,28496 ,18010 , [ 146 ,69 ,17 ,139 ,253 ,59 ,96 ,7 ] , ) ; } impl :: std :: convert :: From < ID2D1Factory > for :: windows :: IUnknown { fn from ( value : ID2D1Factory ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Factory > for :: windows :: IUnknown { fn from ( value : & ID2D1Factory ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Factory { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Factory { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Factory_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rectangle : * const D2D_RECT_F , rectanglegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrectangle : * const D2D1_ROUNDED_RECT , roundedrectanglegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , ellipsegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , fillmode : D2D1_FILL_MODE , geometries : * mut :: windows :: RawPtr , geometriescount : u32 , geometrygroup : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sourcegeometry : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , transformedgeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pathgeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , strokestyleproperties : * const D2D1_STROKE_STYLE_PROPERTIES , dashes : * const f32 , dashescount : u32 , strokestyle : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstatedescription : * const D2D1_DRAWING_STATE_DESCRIPTION , textrenderingparams : :: windows :: RawPtr , drawingstateblock : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , rendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , hwndrendertargetproperties : * const D2D1_HWND_RENDER_TARGET_PROPERTIES , hwndrendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dxgisurface : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , rendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , dcrendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Geometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Geometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420513 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1GeometryGroup ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1GeometryGroup { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420518 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1GradientStopCollection ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1GradientStopCollection { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420519 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1HwndRenderTarget ( :: windows :: IUnknown ) ; impl ID2D1HwndRenderTarget { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn CreateBitmap < 'a , > ( & self , size : impl :: windows :: IntoParam < 'a , D2D_SIZE_U > , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , size . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( srcdata ) , :: std :: mem :: transmute ( pitch ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateBitmapFromWicBitmap < 'a , > ( & self , wicbitmapsource : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmapSource > , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , wicbitmapsource . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateSharedBitmap < > ( & self , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: std :: option :: Option < ID2D1Bitmap > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( data ) , :: std :: mem :: transmute ( bitmapproperties ) , :: std :: mem :: transmute ( bitmap ) , ) . ok ( ) } pub unsafe fn CreateBitmapBrush < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1BitmapBrush > { let mut result__ : < ID2D1BitmapBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1BitmapBrush > ( result__ ) } pub unsafe fn CreateSolidColorBrush < > ( & self , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1SolidColorBrush > { let mut result__ : < ID2D1SolidColorBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1SolidColorBrush > ( result__ ) } pub unsafe fn CreateGradientStopCollection < > ( & self , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , ) -> :: windows :: Result < ID2D1GradientStopCollection > { let mut result__ : < ID2D1GradientStopCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( gradientstops ) , :: std :: mem :: transmute ( gradientstopscount ) , :: std :: mem :: transmute ( colorinterpolationgamma ) , :: std :: mem :: transmute ( extendmode ) , & mut result__ ) . from_abi :: < ID2D1GradientStopCollection > ( result__ ) } pub unsafe fn CreateLinearGradientBrush < 'a , > ( & self , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1LinearGradientBrush > { let mut result__ : < ID2D1LinearGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( lineargradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1LinearGradientBrush > ( result__ ) } pub unsafe fn CreateRadialGradientBrush < 'a , > ( & self , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1RadialGradientBrush > { let mut result__ : < ID2D1RadialGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( radialgradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1RadialGradientBrush > ( result__ ) } pub unsafe fn CreateCompatibleRenderTarget < > ( & self , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , ) -> :: windows :: Result < ID2D1BitmapRenderTarget > { let mut result__ : < ID2D1BitmapRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( desiredsize ) , :: std :: mem :: transmute ( desiredpixelsize ) , :: std :: mem :: transmute ( desiredformat ) , :: std :: mem :: transmute ( options ) , & mut result__ ) . from_abi :: < ID2D1BitmapRenderTarget > ( result__ ) } pub unsafe fn CreateLayer < > ( & self , size : * const D2D_SIZE_F , ) -> :: windows :: Result < ID2D1Layer > { let mut result__ : < ID2D1Layer as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( size ) , & mut result__ ) . from_abi :: < ID2D1Layer > ( result__ ) } pub unsafe fn CreateMesh < > ( & self , ) -> :: windows :: Result < ID2D1Mesh > { let mut result__ : < ID2D1Mesh as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1Mesh > ( result__ ) } pub unsafe fn DrawLine < 'a , > ( & self , point0 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , point1 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , point0 . into_param ( ) . abi ( ) , point1 . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , opacitybrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , opacitybrush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillMesh < 'a , > ( & self , mesh : impl :: windows :: IntoParam < 'a , ID2D1Mesh > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , mesh . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillOpacityMask < 'a , > ( & self , opacitymask : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , opacitymask . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( content ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawBitmap < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( opacity ) , :: std :: mem :: transmute ( interpolationmode ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawText < 'a , > ( & self , string : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , stringlength : u32 , textformat : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextFormat > , layoutrect : * const D2D_RECT_F , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , string . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( stringlength ) , textformat . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( layoutrect ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn DrawTextLayout < 'a , > ( & self , origin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , textlayout : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextLayout > , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , ) { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , origin . into_param ( ) . abi ( ) , textlayout . into_param ( ) . abi ( ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , ) } pub unsafe fn DrawGlyphRun < 'a , > ( & self , baselineorigin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN , foregroundbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , baselineorigin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( glyphrun ) , foregroundbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetAntialiasMode < > ( & self , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn GetAntialiasMode < > ( & self , ) -> D2D1_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextAntialiasMode < > ( & self , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textantialiasmode ) , ) } pub unsafe fn GetTextAntialiasMode < > ( & self , ) -> D2D1_TEXT_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextRenderingParams < 'a , > ( & self , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , textrenderingparams . into_param ( ) . abi ( ) , ) } pub unsafe fn GetTextRenderingParams < > ( & self , textrenderingparams : * mut :: std :: option :: Option < super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textrenderingparams ) , ) } pub unsafe fn SetTags < > ( & self , tag1 : u64 , tag2 : u64 , ) { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn GetTags < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn PushLayer < 'a , > ( & self , layerparameters : * const D2D1_LAYER_PARAMETERS , layer : impl :: windows :: IntoParam < 'a , ID2D1Layer > , ) { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( layerparameters ) , layer . into_param ( ) . abi ( ) , ) } pub unsafe fn PopLayer < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Flush < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn SaveDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn RestoreDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn PushAxisAlignedClip < > ( & self , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cliprect ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn PopAxisAlignedClip < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Clear < > ( & self , clearcolor : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( clearcolor ) , ) } pub unsafe fn BeginDraw < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn EndDraw < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn GetPixelFormat < > ( & self , ) -> D2D1_PIXEL_FORMAT { let mut result__ : D2D1_PIXEL_FORMAT = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn SetDpi < > ( & self , dpix : f32 , dpiy : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetSize < > ( & self , ) -> D2D_SIZE_F { let mut result__ : D2D_SIZE_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetPixelSize < > ( & self , ) -> D2D_SIZE_U { let mut result__ : D2D_SIZE_U = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetMaximumBitmapSize < > ( & self , ) -> u32 { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn IsSupported < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , ) } pub unsafe fn CheckWindowState < > ( & self , ) -> D2D1_WINDOW_STATE { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Resize < > ( & self , pixelsize : * const D2D_SIZE_U , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pixelsize ) , ) . ok ( ) } pub unsafe fn GetHwnd < > ( & self , ) -> super::super::Foundation:: HWND { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , ) } } unsafe impl :: windows :: Interface for ID2D1HwndRenderTarget { type Vtable = ID2D1HwndRenderTarget_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420504 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for :: windows :: IUnknown { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for :: windows :: IUnknown { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for ID2D1RenderTarget { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for ID2D1RenderTarget { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1RenderTarget > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1RenderTarget > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1RenderTarget > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1RenderTarget > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1RenderTarget > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1RenderTarget > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for ID2D1Resource { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for ID2D1Resource { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1HwndRenderTarget_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : D2D_SIZE_U , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , wicbitmapsource : :: windows :: RawPtr , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , bitmapbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , solidcolorbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , gradientstopcollection : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , lineargradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , radialgradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , bitmaprendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : * const D2D_SIZE_F , layer : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , point0 : D2D_POINT_2F , point1 : D2D_POINT_2F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , opacitybrush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : :: windows :: RawPtr , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacitymask : :: windows :: RawPtr , brush : :: windows :: RawPtr , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , string : super::super::Foundation:: PWSTR , stringlength : u32 , textformat : :: windows :: RawPtr , layoutrect : * const D2D_RECT_F , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , origin : D2D_POINT_2F , textlayout : :: windows :: RawPtr , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , baselineorigin : D2D_POINT_2F , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN_abi , foregroundbrush : :: windows :: RawPtr , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_TEXT_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : u64 , tag2 : u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , layerparameters : * const D2D1_LAYER_PARAMETERS_abi , layer : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , clearcolor : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_PIXEL_FORMAT ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : f32 , dpiy : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_F ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_U ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_WINDOW_STATE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixelsize : * const D2D_SIZE_U , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> super::super::Foundation:: HWND , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Layer ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Layer { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420507 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1LinearGradientBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1LinearGradientBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420523 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Mesh ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Mesh { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420546 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1PathGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1PathGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420517 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RadialGradientBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RadialGradientBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420524 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RectangleGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RectangleGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420514 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1RenderTarget ( :: windows :: IUnknown ) ; impl ID2D1RenderTarget { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn CreateBitmap < 'a , > ( & self , size : impl :: windows :: IntoParam < 'a , D2D_SIZE_U > , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , size . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( srcdata ) , :: std :: mem :: transmute ( pitch ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateBitmapFromWicBitmap < 'a , > ( & self , wicbitmapsource : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmapSource > , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , wicbitmapsource . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateSharedBitmap < > ( & self , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: std :: option :: Option < ID2D1Bitmap > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( data ) , :: std :: mem :: transmute ( bitmapproperties ) , :: std :: mem :: transmute ( bitmap ) , ) . ok ( ) } pub unsafe fn CreateBitmapBrush < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1BitmapBrush > { let mut result__ : < ID2D1BitmapBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1BitmapBrush > ( result__ ) } pub unsafe fn CreateSolidColorBrush < > ( & self , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1SolidColorBrush > { let mut result__ : < ID2D1SolidColorBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1SolidColorBrush > ( result__ ) } pub unsafe fn CreateGradientStopCollection < > ( & self , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , ) -> :: windows :: Result < ID2D1GradientStopCollection > { let mut result__ : < ID2D1GradientStopCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( gradientstops ) , :: std :: mem :: transmute ( gradientstopscount ) , :: std :: mem :: transmute ( colorinterpolationgamma ) , :: std :: mem :: transmute ( extendmode ) , & mut result__ ) . from_abi :: < ID2D1GradientStopCollection > ( result__ ) } pub unsafe fn CreateLinearGradientBrush < 'a , > ( & self , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1LinearGradientBrush > { let mut result__ : < ID2D1LinearGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( lineargradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1LinearGradientBrush > ( result__ ) } pub unsafe fn CreateRadialGradientBrush < 'a , > ( & self , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1RadialGradientBrush > { let mut result__ : < ID2D1RadialGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( radialgradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1RadialGradientBrush > ( result__ ) } pub unsafe fn CreateCompatibleRenderTarget < > ( & self , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , ) -> :: windows :: Result < ID2D1BitmapRenderTarget > { let mut result__ : < ID2D1BitmapRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( desiredsize ) , :: std :: mem :: transmute ( desiredpixelsize ) , :: std :: mem :: transmute ( desiredformat ) , :: std :: mem :: transmute ( options ) , & mut result__ ) . from_abi :: < ID2D1BitmapRenderTarget > ( result__ ) } pub unsafe fn CreateLayer < > ( & self , size : * const D2D_SIZE_F , ) -> :: windows :: Result < ID2D1Layer > { let mut result__ : < ID2D1Layer as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( size ) , & mut result__ ) . from_abi :: < ID2D1Layer > ( result__ ) } pub unsafe fn CreateMesh < > ( & self , ) -> :: windows :: Result < ID2D1Mesh > { let mut result__ : < ID2D1Mesh as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1Mesh > ( result__ ) } pub unsafe fn DrawLine < 'a , > ( & self , point0 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , point1 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , point0 . into_param ( ) . abi ( ) , point1 . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , opacitybrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , opacitybrush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillMesh < 'a , > ( & self , mesh : impl :: windows :: IntoParam < 'a , ID2D1Mesh > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , mesh . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillOpacityMask < 'a , > ( & self , opacitymask : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , opacitymask . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( content ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawBitmap < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( opacity ) , :: std :: mem :: transmute ( interpolationmode ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawText < 'a , > ( & self , string : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , stringlength : u32 , textformat : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextFormat > , layoutrect : * const D2D_RECT_F , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , string . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( stringlength ) , textformat . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( layoutrect ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn DrawTextLayout < 'a , > ( & self , origin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , textlayout : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextLayout > , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , ) { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , origin . into_param ( ) . abi ( ) , textlayout . into_param ( ) . abi ( ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , ) } pub unsafe fn DrawGlyphRun < 'a , > ( & self , baselineorigin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN , foregroundbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , baselineorigin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( glyphrun ) , foregroundbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetAntialiasMode < > ( & self , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn GetAntialiasMode < > ( & self , ) -> D2D1_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextAntialiasMode < > ( & self , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textantialiasmode ) , ) } pub unsafe fn GetTextAntialiasMode < > ( & self , ) -> D2D1_TEXT_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextRenderingParams < 'a , > ( & self , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , textrenderingparams . into_param ( ) . abi ( ) , ) } pub unsafe fn GetTextRenderingParams < > ( & self , textrenderingparams : * mut :: std :: option :: Option < super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textrenderingparams ) , ) } pub unsafe fn SetTags < > ( & self , tag1 : u64 , tag2 : u64 , ) { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn GetTags < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn PushLayer < 'a , > ( & self , layerparameters : * const D2D1_LAYER_PARAMETERS , layer : impl :: windows :: IntoParam < 'a , ID2D1Layer > , ) { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( layerparameters ) , layer . into_param ( ) . abi ( ) , ) } pub unsafe fn PopLayer < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Flush < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn SaveDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn RestoreDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn PushAxisAlignedClip < > ( & self , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cliprect ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn PopAxisAlignedClip < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Clear < > ( & self , clearcolor : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( clearcolor ) , ) } pub unsafe fn BeginDraw < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn EndDraw < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn GetPixelFormat < > ( & self , ) -> D2D1_PIXEL_FORMAT { let mut result__ : D2D1_PIXEL_FORMAT = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn SetDpi < > ( & self , dpix : f32 , dpiy : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetSize < > ( & self , ) -> D2D_SIZE_F { let mut result__ : D2D_SIZE_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetPixelSize < > ( & self , ) -> D2D_SIZE_U { let mut result__ : D2D_SIZE_U = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetMaximumBitmapSize < > ( & self , ) -> u32 { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn IsSupported < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , ) } } unsafe impl :: windows :: Interface for ID2D1RenderTarget { type Vtable = ID2D1RenderTarget_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420500 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1RenderTarget > for :: windows :: IUnknown { fn from ( value : ID2D1RenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1RenderTarget > for :: windows :: IUnknown { fn from ( value : & ID2D1RenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1RenderTarget > for ID2D1Resource { fn from ( value : ID2D1RenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1RenderTarget > for ID2D1Resource { fn from ( value : & ID2D1RenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1RenderTarget_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : D2D_SIZE_U , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , wicbitmapsource : :: windows :: RawPtr , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , bitmapbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , solidcolorbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , gradientstopcollection : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , lineargradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , radialgradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , bitmaprendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : * const D2D_SIZE_F , layer : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , point0 : D2D_POINT_2F , point1 : D2D_POINT_2F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , opacitybrush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : :: windows :: RawPtr , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacitymask : :: windows :: RawPtr , brush : :: windows :: RawPtr , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , string : super::super::Foundation:: PWSTR , stringlength : u32 , textformat : :: windows :: RawPtr , layoutrect : * const D2D_RECT_F , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , origin : D2D_POINT_2F , textlayout : :: windows :: RawPtr , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , baselineorigin : D2D_POINT_2F , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN_abi , foregroundbrush : :: windows :: RawPtr , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_TEXT_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : u64 , tag2 : u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , layerparameters : * const D2D1_LAYER_PARAMETERS_abi , layer : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , clearcolor : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_PIXEL_FORMAT ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : f32 , dpiy : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_F ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_U ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Resource ( :: windows :: IUnknown ) ; impl ID2D1Resource { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } } unsafe impl :: windows :: Interface for ID2D1Resource { type Vtable = ID2D1Resource_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420497 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1Resource > for :: windows :: IUnknown { fn from ( value : ID2D1Resource ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Resource > for :: windows :: IUnknown { fn from ( value : & ID2D1Resource ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Resource { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Resource { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Resource_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RoundedRectangleGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RoundedRectangleGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420515 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1SolidColorBrush ( :: windows :: IUnknown ) ; impl ID2D1SolidColorBrush { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn SetOpacity < > ( & self , opacity : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( opacity ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetOpacity < > ( & self , ) -> f32 { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetColor < > ( & self , color : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , ) } pub unsafe fn GetColor < > ( & self , ) -> D2D1_COLOR_F { let mut result__ : D2D1_COLOR_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } } unsafe impl :: windows :: Interface for ID2D1SolidColorBrush { type Vtable = ID2D1SolidColorBrush_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420521 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1SolidColorBrush > for :: windows :: IUnknown { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for :: windows :: IUnknown { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1SolidColorBrush > for ID2D1Brush { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for ID2D1Brush { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Brush > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Brush > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Brush > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Brush > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Brush > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Brush > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1SolidColorBrush > for ID2D1Resource { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for ID2D1Resource { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1SolidColorBrush_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacity : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> f32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_COLOR_F ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1StrokeStyle ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1StrokeStyle { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420509 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1TransformedGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1TransformedGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420539 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod DirectWrite { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DWRITE_GLYPH_OFFSET { pub advanceOffset : f32 , pub ascenderOffset : f32 } impl DWRITE_GLYPH_OFFSET { } impl :: std :: default :: Default for DWRITE_GLYPH_OFFSET { fn default ( ) -> Self { Self { advanceOffset : 0.0 , ascenderOffset : 0.0 } } } impl :: std :: fmt :: Debug for DWRITE_GLYPH_OFFSET { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DWRITE_GLYPH_OFFSET" ) . field ( "advanceOffset" , & self . advanceOffset ) . field ( "ascenderOffset" , & self . ascenderOffset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DWRITE_GLYPH_OFFSET { fn eq ( & self , other : & Self ) -> bool { self . advanceOffset == other . advanceOffset && self . ascenderOffset == other . ascenderOffset } } impl :: std :: cmp :: Eq for DWRITE_GLYPH_OFFSET { } unsafe impl :: windows :: Abi for DWRITE_GLYPH_OFFSET { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct DWRITE_GLYPH_RUN { pub fontFace : :: std :: option :: Option < IDWriteFontFace > , pub fontEmSize : f32 , pub glyphCount : u32 , pub glyphIndices : * mut u16 , pub glyphAdvances : * mut f32 , pub glyphOffsets : * mut DWRITE_GLYPH_OFFSET , pub isSideways : super::super::Foundation:: BOOL , pub bidiLevel : u32 } impl DWRITE_GLYPH_RUN { } impl :: std :: default :: Default for DWRITE_GLYPH_RUN { fn default ( ) -> Self { Self { fontFace : :: std :: default :: Default :: default ( ) , fontEmSize : 0.0 , glyphCount : 0 , glyphIndices : :: std :: ptr :: null_mut ( ) , glyphAdvances : :: std :: ptr :: null_mut ( ) , glyphOffsets : :: std :: ptr :: null_mut ( ) , isSideways : :: std :: default :: Default :: default ( ) , bidiLevel : 0 } } } impl :: std :: fmt :: Debug for DWRITE_GLYPH_RUN { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DWRITE_GLYPH_RUN" ) . field ( "fontFace" , & self . fontFace ) . field ( "fontEmSize" , & self . fontEmSize ) . field ( "glyphCount" , & self . glyphCount ) . field ( "glyphIndices" , & self . glyphIndices ) . field ( "glyphAdvances" , & self . glyphAdvances ) . field ( "glyphOffsets" , & self . glyphOffsets ) . field ( "isSideways" , & self . isSideways ) . field ( "bidiLevel" , & self . bidiLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DWRITE_GLYPH_RUN { fn eq ( & self , other : & Self ) -> bool { self . fontFace == other . fontFace && self . fontEmSize == other . fontEmSize && self . glyphCount == other . glyphCount && self . glyphIndices == other . glyphIndices && self . glyphAdvances == other . glyphAdvances && self . glyphOffsets == other . glyphOffsets && self . isSideways == other . isSideways && self . bidiLevel == other . bidiLevel } } impl :: std :: cmp :: Eq for DWRITE_GLYPH_RUN { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct DWRITE_GLYPH_RUN_abi { pub fontFace : :: windows :: RawPtr , pub fontEmSize : f32 , pub glyphCount : u32 , pub glyphIndices : * mut u16 , pub glyphAdvances : * mut f32 , pub glyphOffsets : * mut DWRITE_GLYPH_OFFSET , pub isSideways : super::super::Foundation:: BOOL , pub bidiLevel : u32 } unsafe impl :: windows :: Abi for DWRITE_GLYPH_RUN { type Abi = DWRITE_GLYPH_RUN_abi ; 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 DWRITE_MEASURING_MODE ( pub i32 ) ; pub const DWRITE_MEASURING_MODE_NATURAL : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 0i32 ) ; pub const DWRITE_MEASURING_MODE_GDI_CLASSIC : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 1i32 ) ; pub const DWRITE_MEASURING_MODE_GDI_NATURAL : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 2i32 ) ; impl :: std :: convert :: From < i32 > for DWRITE_MEASURING_MODE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DWRITE_MEASURING_MODE { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteFontFace ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteFontFace { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1598652493 ,28708 ,19779 , [ 191 ,169 ,210 ,89 ,132 ,245 ,56 ,73 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteRenderingParams ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteRenderingParams { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 789423418 ,10973 ,18381 , [ 130 ,238 ,217 ,236 ,52 ,104 ,142 ,117 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteTextFormat ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteTextFormat { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2626709528 ,12759 ,20435 , [ 161 ,81 ,124 ,94 ,34 ,93 ,181 ,90 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteTextLayout ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteTextLayout { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1400074295 ,27924 ,16651 , [ 155 ,254 ,11 ,24 ,43 ,183 ,9 ,97 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Dxgi { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct DXGI_FORMAT ( pub u32 ) ; impl :: std :: convert :: From < u32 > for DXGI_FORMAT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DXGI_FORMAT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for DXGI_FORMAT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for DXGI_FORMAT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for DXGI_FORMAT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for DXGI_FORMAT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDXGISurface ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDXGISurface { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3405559148 ,27331 ,18569 , [ 191 ,71 ,158 ,35 ,187 ,210 ,96 ,236 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Gdi { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BLENDFUNCTION { pub BlendOp : u8 , pub BlendFlags : u8 , pub SourceConstantAlpha : u8 , pub AlphaFormat : u8 } impl BLENDFUNCTION { } impl :: std :: default :: Default for BLENDFUNCTION { fn default ( ) -> Self { Self { BlendOp : 0 , BlendFlags : 0 , SourceConstantAlpha : 0 , AlphaFormat : 0 } } } impl :: std :: fmt :: Debug for BLENDFUNCTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BLENDFUNCTION" ) . field ( "BlendOp" , & self . BlendOp ) . field ( "BlendFlags" , & self . BlendFlags ) . field ( "SourceConstantAlpha" , & self . SourceConstantAlpha ) . field ( "AlphaFormat" , & self . AlphaFormat ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BLENDFUNCTION { fn eq ( & self , other : & Self ) -> bool { self . BlendOp == other . BlendOp && self . BlendFlags == other . BlendFlags && self . SourceConstantAlpha == other . SourceConstantAlpha && self . AlphaFormat == other . AlphaFormat } } impl :: std :: cmp :: Eq for BLENDFUNCTION { } unsafe impl :: windows :: Abi for BLENDFUNCTION { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HBITMAP ( pub isize ) ; impl HBITMAP { } impl :: std :: default :: Default for HBITMAP { fn default ( ) -> Self { Self ( 0 ) } } impl HBITMAP { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HBITMAP { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HBITMAP" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HBITMAP { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HBITMAP { } unsafe impl :: windows :: Abi for HBITMAP { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HGDIOBJ > for HBITMAP { fn into_param ( self ) -> :: windows :: Param < 'a , HGDIOBJ > { :: windows :: Param :: Owned ( HGDIOBJ ( self . 0 ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HBRUSH ( pub isize ) ; impl HBRUSH { } impl :: std :: default :: Default for HBRUSH { fn default ( ) -> Self { Self ( 0 ) } } impl HBRUSH { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HBRUSH { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HBRUSH" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HBRUSH { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HBRUSH { } unsafe impl :: windows :: Abi for HBRUSH { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HGDIOBJ > for HBRUSH { fn into_param ( self ) -> :: windows :: Param < 'a , HGDIOBJ > { :: windows :: Param :: Owned ( HGDIOBJ ( self . 0 ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HDC ( pub isize ) ; impl HDC { } impl :: std :: default :: Default for HDC { fn default ( ) -> Self { Self ( 0 ) } } impl HDC { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HDC { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HDC" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HDC { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HDC { } unsafe impl :: windows :: Abi for HDC { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HGDIOBJ ( pub isize ) ; impl HGDIOBJ { } impl :: std :: default :: Default for HGDIOBJ { fn default ( ) -> Self { Self ( 0 ) } } impl HGDIOBJ { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HGDIOBJ { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HGDIOBJ" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HGDIOBJ { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HGDIOBJ { } unsafe impl :: windows :: Abi for HGDIOBJ { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LOGFONTA { pub lfHeight : i32 , pub lfWidth : i32 , pub lfEscapement : i32 , pub lfOrientation : i32 , pub lfWeight : i32 , pub lfItalic : u8 , pub lfUnderline : u8 , pub lfStrikeOut : u8 , pub lfCharSet : u8 , pub lfOutPrecision : u8 , pub lfClipPrecision : u8 , pub lfQuality : u8 , pub lfPitchAndFamily : u8 , pub lfFaceName : [ super::super::System::SystemServices:: CHAR ;32 ] } impl LOGFONTA { } impl :: std :: default :: Default for LOGFONTA { fn default ( ) -> Self { Self { lfHeight : 0 , lfWidth : 0 , lfEscapement : 0 , lfOrientation : 0 , lfWeight : 0 , lfItalic : 0 , lfUnderline : 0 , lfStrikeOut : 0 , lfCharSet : 0 , lfOutPrecision : 0 , lfClipPrecision : 0 , lfQuality : 0 , lfPitchAndFamily : 0 , lfFaceName : [ :: std :: default :: Default :: default ( ) ;32 ] } } } impl :: std :: fmt :: Debug for LOGFONTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LOGFONTA" ) . field ( "lfHeight" , & self . lfHeight ) . field ( "lfWidth" , & self . lfWidth ) . field ( "lfEscapement" , & self . lfEscapement ) . field ( "lfOrientation" , & self . lfOrientation ) . field ( "lfWeight" , & self . lfWeight ) . field ( "lfItalic" , & self . lfItalic ) . field ( "lfUnderline" , & self . lfUnderline ) . field ( "lfStrikeOut" , & self . lfStrikeOut ) . field ( "lfCharSet" , & self . lfCharSet ) . field ( "lfOutPrecision" , & self . lfOutPrecision ) . field ( "lfClipPrecision" , & self . lfClipPrecision ) . field ( "lfQuality" , & self . lfQuality ) . field ( "lfPitchAndFamily" , & self . lfPitchAndFamily ) . field ( "lfFaceName" , & self . lfFaceName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LOGFONTA { fn eq ( & self , other : & Self ) -> bool { self . lfHeight == other . lfHeight && self . lfWidth == other . lfWidth && self . lfEscapement == other . lfEscapement && self . lfOrientation == other . lfOrientation && self . lfWeight == other . lfWeight && self . lfItalic == other . lfItalic && self . lfUnderline == other . lfUnderline && self . lfStrikeOut == other . lfStrikeOut && self . lfCharSet == other . lfCharSet && self . lfOutPrecision == other . lfOutPrecision && self . lfClipPrecision == other . lfClipPrecision && self . lfQuality == other . lfQuality && self . lfPitchAndFamily == other . lfPitchAndFamily && self . lfFaceName == other . lfFaceName } } impl :: std :: cmp :: Eq for LOGFONTA { } unsafe impl :: windows :: Abi for LOGFONTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LOGFONTW { pub lfHeight : i32 , pub lfWidth : i32 , pub lfEscapement : i32 , pub lfOrientation : i32 , pub lfWeight : i32 , pub lfItalic : u8 , pub lfUnderline : u8 , pub lfStrikeOut : u8 , pub lfCharSet : u8 , pub lfOutPrecision : u8 , pub lfClipPrecision : u8 , pub lfQuality : u8 , pub lfPitchAndFamily : u8 , pub lfFaceName : [ u16 ;32 ] } impl LOGFONTW { } impl :: std :: default :: Default for LOGFONTW { fn default ( ) -> Self { Self { lfHeight : 0 , lfWidth : 0 , lfEscapement : 0 , lfOrientation : 0 , lfWeight : 0 , lfItalic : 0 , lfUnderline : 0 , lfStrikeOut : 0 , lfCharSet : 0 , lfOutPrecision : 0 , lfClipPrecision : 0 , lfQuality : 0 , lfPitchAndFamily : 0 , lfFaceName : [ 0 ;32 ] } } } impl :: std :: fmt :: Debug for LOGFONTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LOGFONTW" ) . field ( "lfHeight" , & self . lfHeight ) . field ( "lfWidth" , & self . lfWidth ) . field ( "lfEscapement" , & self . lfEscapement ) . field ( "lfOrientation" , & self . lfOrientation ) . field ( "lfWeight" , & self . lfWeight ) . field ( "lfItalic" , & self . lfItalic ) . field ( "lfUnderline" , & self . lfUnderline ) . field ( "lfStrikeOut" , & self . lfStrikeOut ) . field ( "lfCharSet" , & self . lfCharSet ) . field ( "lfOutPrecision" , & self . lfOutPrecision ) . field ( "lfClipPrecision" , & self . lfClipPrecision ) . field ( "lfQuality" , & self . lfQuality ) . field ( "lfPitchAndFamily" , & self . lfPitchAndFamily ) . field ( "lfFaceName" , & self . lfFaceName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LOGFONTW { fn eq ( & self , other : & Self ) -> bool { self . lfHeight == other . lfHeight && self . lfWidth == other . lfWidth && self . lfEscapement == other . lfEscapement && self . lfOrientation == other . lfOrientation && self . lfWeight == other . lfWeight && self . lfItalic == other . lfItalic && self . lfUnderline == other . lfUnderline && self . lfStrikeOut == other . lfStrikeOut && self . lfCharSet == other . lfCharSet && self . lfOutPrecision == other . lfOutPrecision && self . lfClipPrecision == other . lfClipPrecision && self . lfQuality == other . lfQuality && self . lfPitchAndFamily == other . lfPitchAndFamily && self . lfFaceName == other . lfFaceName } } impl :: std :: cmp :: Eq for LOGFONTW { } unsafe impl :: windows :: Abi for LOGFONTW { 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 Imaging { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IWICBitmap ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IWICBitmap { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 289 ,43250 ,18551 , [ 186 ,10 ,253 ,43 ,102 ,69 ,251 ,148 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IWICBitmapSource ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IWICBitmapSource { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 288 ,43250 ,18551 , [ 186 ,10 ,253 ,43 ,102 ,69 ,251 ,148 ] , ) ; } } } # [ 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 LibraryLoader { pub unsafe fn GetModuleHandleW < 'a , > ( lpmodulename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HINSTANCE { # [ cfg ( windows ) ] { # [ link ( name ="KERNEL32" ) ] extern "system" { fn GetModuleHandleW ( lpmodulename : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HINSTANCE ; } GetModuleHandleW ( lpmodulename . into_param ( ) . abi ( ) ) } # [ 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 StationsAndDesktops { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HDESK ( pub isize ) ; impl HDESK { } impl :: std :: default :: Default for HDESK { fn default ( ) -> Self { Self ( 0 ) } } impl HDESK { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HDESK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HDESK" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HDESK { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HDESK { } unsafe impl :: windows :: Abi for HDESK { 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 SystemServices { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct CHAR ( pub u8 ) ; impl CHAR { } impl :: std :: default :: Default for CHAR { fn default ( ) -> Self { Self ( 0 ) } } impl CHAR { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for CHAR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHAR" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHAR { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for CHAR { } unsafe impl :: windows :: Abi for CHAR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct DPI_AWARENESS_CONTEXT ( pub isize ) ; impl DPI_AWARENESS_CONTEXT { } impl :: std :: default :: Default for DPI_AWARENESS_CONTEXT { fn default ( ) -> Self { Self ( 0 ) } } impl DPI_AWARENESS_CONTEXT { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for DPI_AWARENESS_CONTEXT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DPI_AWARENESS_CONTEXT" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DPI_AWARENESS_CONTEXT { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for DPI_AWARENESS_CONTEXT { } unsafe impl :: windows :: Abi for DPI_AWARENESS_CONTEXT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LUID { pub LowPart : u32 , pub HighPart : i32 } impl LUID { } impl :: std :: default :: Default for LUID { fn default ( ) -> Self { Self { LowPart : 0 , HighPart : 0 } } } impl :: std :: fmt :: Debug for LUID { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LUID" ) . field ( "LowPart" , & self . LowPart ) . field ( "HighPart" , & self . HighPart ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LUID { fn eq ( & self , other : & Self ) -> bool { self . LowPart == other . LowPart && self . HighPart == other . HighPart } } impl :: std :: cmp :: Eq for LUID { } unsafe impl :: windows :: Abi for LUID { 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 UI { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Controls { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HPROPSHEETPAGE ( pub isize ) ; impl HPROPSHEETPAGE { } impl :: std :: default :: Default for HPROPSHEETPAGE { fn default ( ) -> Self { Self ( 0 ) } } impl HPROPSHEETPAGE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HPROPSHEETPAGE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HPROPSHEETPAGE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HPROPSHEETPAGE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HPROPSHEETPAGE { } unsafe impl :: windows :: Abi for HPROPSHEETPAGE { 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 IMAGE_FLAGS ( pub u32 ) ; pub const LR_CREATEDIBSECTION : IMAGE_FLAGS = IMAGE_FLAGS ( 8192u32 ) ; pub const LR_DEFAULTCOLOR : IMAGE_FLAGS = IMAGE_FLAGS ( 0u32 ) ; pub const LR_DEFAULTSIZE : IMAGE_FLAGS = IMAGE_FLAGS ( 64u32 ) ; pub const LR_LOADFROMFILE : IMAGE_FLAGS = IMAGE_FLAGS ( 16u32 ) ; pub const LR_LOADMAP3DCOLORS : IMAGE_FLAGS = IMAGE_FLAGS ( 4096u32 ) ; pub const LR_LOADTRANSPARENT : IMAGE_FLAGS = IMAGE_FLAGS ( 32u32 ) ; pub const LR_MONOCHROME : IMAGE_FLAGS = IMAGE_FLAGS ( 1u32 ) ; pub const LR_SHARED : IMAGE_FLAGS = IMAGE_FLAGS ( 32768u32 ) ; pub const LR_VGACOLOR : IMAGE_FLAGS = IMAGE_FLAGS ( 128u32 ) ; pub const LR_COPYDELETEORG : IMAGE_FLAGS = IMAGE_FLAGS ( 8u32 ) ; pub const LR_COPYFROMRESOURCE : IMAGE_FLAGS = IMAGE_FLAGS ( 16384u32 ) ; pub const LR_COPYRETURNORG : IMAGE_FLAGS = IMAGE_FLAGS ( 4u32 ) ; impl :: std :: convert :: From < u32 > for IMAGE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for IMAGE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for IMAGE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for IMAGE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for IMAGE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for IMAGE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NMHDR { pub hwndFrom : super::super::Foundation:: HWND , pub idFrom : usize , pub code : u32 } impl NMHDR { } impl :: std :: default :: Default for NMHDR { fn default ( ) -> Self { Self { hwndFrom : :: std :: default :: Default :: default ( ) , idFrom : 0 , code : 0 } } } impl :: std :: fmt :: Debug for NMHDR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NMHDR" ) . field ( "hwndFrom" , & self . hwndFrom ) . field ( "idFrom" , & self . idFrom ) . field ( "code" , & self . code ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NMHDR { fn eq ( & self , other : & Self ) -> bool { self . hwndFrom == other . hwndFrom && self . idFrom == other . idFrom && self . code == other . code } } impl :: std :: cmp :: Eq for NMHDR { } unsafe impl :: windows :: Abi for NMHDR { 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 SCROLLBAR_OBJID ( pub i32 ) ; pub const OBJID_CLIENT : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -4i32 ) ; pub const OBJID_HSCROLL : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -6i32 ) ; pub const OBJID_VSCROLL : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -5i32 ) ; pub const OBJID_MENU : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -3i32 ) ; pub const OBJID_SYSMENU : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -1i32 ) ; impl :: std :: convert :: From < i32 > for SCROLLBAR_OBJID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SCROLLBAR_OBJID { 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 DisplayDevices { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA { pub dmDeviceName : [ u8 ;32 ] , pub dmSpecVersion : u16 , pub dmDriverVersion : u16 , pub dmSize : u16 , pub dmDriverExtra : u16 , pub dmFields : u32 , pub Anonymous1 : DEVMODEA_0 , pub dmColor : i16 , pub dmDuplex : i16 , pub dmYResolution : i16 , pub dmTTOption : i16 , pub dmCollate : i16 , pub dmFormName : [ u8 ;32 ] , pub dmLogPixels : u16 , pub dmBitsPerPel : u32 , pub dmPelsWidth : u32 , pub dmPelsHeight : u32 , pub Anonymous2 : DEVMODEA_1 , pub dmDisplayFrequency : u32 , pub dmICMMethod : u32 , pub dmICMIntent : u32 , pub dmMediaType : u32 , pub dmDitherType : u32 , pub dmReserved1 : u32 , pub dmReserved2 : u32 , pub dmPanningWidth : u32 , pub dmPanningHeight : u32 } impl DEVMODEA { } impl :: std :: cmp :: PartialEq for DEVMODEA { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA { } unsafe impl :: windows :: Abi for DEVMODEA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DEVMODEA_0 { pub Anonymous1 : DEVMODEA_0_0 , pub Anonymous2 : DEVMODEA_0_1 } impl DEVMODEA_0 { } impl :: std :: cmp :: PartialEq for DEVMODEA_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA_0 { } unsafe impl :: windows :: Abi for DEVMODEA_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA_0_0 { pub dmOrientation : i16 , pub dmPaperSize : i16 , pub dmPaperLength : i16 , pub dmPaperWidth : i16 , pub dmScale : i16 , pub dmCopies : i16 , pub dmDefaultSource : i16 , pub dmPrintQuality : i16 } impl DEVMODEA_0_0 { } impl :: std :: default :: Default for DEVMODEA_0_0 { fn default ( ) -> Self { Self { dmOrientation : 0 , dmPaperSize : 0 , dmPaperLength : 0 , dmPaperWidth : 0 , dmScale : 0 , dmCopies : 0 , dmDefaultSource : 0 , dmPrintQuality : 0 } } } impl :: std :: fmt :: Debug for DEVMODEA_0_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous1_e__Struct" ) . field ( "dmOrientation" , & self . dmOrientation ) . field ( "dmPaperSize" , & self . dmPaperSize ) . field ( "dmPaperLength" , & self . dmPaperLength ) . field ( "dmPaperWidth" , & self . dmPaperWidth ) . field ( "dmScale" , & self . dmScale ) . field ( "dmCopies" , & self . dmCopies ) . field ( "dmDefaultSource" , & self . dmDefaultSource ) . field ( "dmPrintQuality" , & self . dmPrintQuality ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVMODEA_0_0 { fn eq ( & self , other : & Self ) -> bool { self . dmOrientation == other . dmOrientation && self . dmPaperSize == other . dmPaperSize && self . dmPaperLength == other . dmPaperLength && self . dmPaperWidth == other . dmPaperWidth && self . dmScale == other . dmScale && self . dmCopies == other . dmCopies && self . dmDefaultSource == other . dmDefaultSource && self . dmPrintQuality == other . dmPrintQuality } } impl :: std :: cmp :: Eq for DEVMODEA_0_0 { } unsafe impl :: windows :: Abi for DEVMODEA_0_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA_0_1 { pub dmPosition : super::super::Foundation:: POINTL , pub dmDisplayOrientation : u32 , pub dmDisplayFixedOutput : u32 } impl DEVMODEA_0_1 { } impl :: std :: default :: Default for DEVMODEA_0_1 { fn default ( ) -> Self { Self { dmPosition : :: std :: default :: Default :: default ( ) , dmDisplayOrientation : 0 , dmDisplayFixedOutput : 0 } } } impl :: std :: fmt :: Debug for DEVMODEA_0_1 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous2_e__Struct" ) . field ( "dmPosition" , & self . dmPosition ) . field ( "dmDisplayOrientation" , & self . dmDisplayOrientation ) . field ( "dmDisplayFixedOutput" , & self . dmDisplayFixedOutput ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVMODEA_0_1 { fn eq ( & self , other : & Self ) -> bool { self . dmPosition == other . dmPosition && self . dmDisplayOrientation == other . dmDisplayOrientation && self . dmDisplayFixedOutput == other . dmDisplayFixedOutput } } impl :: std :: cmp :: Eq for DEVMODEA_0_1 { } unsafe impl :: windows :: Abi for DEVMODEA_0_1 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DEVMODEA_1 { pub dmDisplayFlags : u32 , pub dmNup : u32 } impl DEVMODEA_1 { } impl :: std :: cmp :: PartialEq for DEVMODEA_1 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA_1 { } unsafe impl :: windows :: Abi for DEVMODEA_1 { 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 Shell { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct HELPINFO { pub cbSize : u32 , pub iContextType : i32 , pub iCtrlId : i32 , pub hItemHandle : super::super::Foundation:: HANDLE , pub dwContextId : usize , pub MousePos : super::super::Foundation:: POINT } impl HELPINFO { } impl :: std :: default :: Default for HELPINFO { fn default ( ) -> Self { Self { cbSize : 0 , iContextType : 0 , iCtrlId : 0 , hItemHandle : :: std :: default :: Default :: default ( ) , dwContextId : 0 , MousePos : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for HELPINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HELPINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "iContextType" , & self . iContextType ) . field ( "iCtrlId" , & self . iCtrlId ) . field ( "hItemHandle" , & self . hItemHandle ) . field ( "dwContextId" , & self . dwContextId ) . field ( "MousePos" , & self . MousePos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HELPINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iContextType == other . iContextType && self . iCtrlId == other . iCtrlId && self . hItemHandle == other . hItemHandle && self . dwContextId == other . dwContextId && self . MousePos == other . MousePos } } impl :: std :: cmp :: Eq for HELPINFO { } unsafe impl :: windows :: Abi for HELPINFO { 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 WindowsAndMessaging { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ACCEL { pub fVirt : u8 , pub key : u16 , pub cmd : u16 } impl ACCEL { } impl :: std :: default :: Default for ACCEL { fn default ( ) -> Self { Self { fVirt : 0 , key : 0 , cmd : 0 } } } impl :: std :: fmt :: Debug for ACCEL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ACCEL" ) . field ( "fVirt" , & self . fVirt ) . field ( "key" , & self . key ) . field ( "cmd" , & self . cmd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ACCEL { fn eq ( & self , other : & Self ) -> bool { self . fVirt == other . fVirt && self . key == other . key && self . cmd == other . cmd } } impl :: std :: cmp :: Eq for ACCEL { } unsafe impl :: windows :: Abi for ACCEL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ALTTABINFO { pub cbSize : u32 , pub cItems : i32 , pub cColumns : i32 , pub cRows : i32 , pub iColFocus : i32 , pub iRowFocus : i32 , pub cxItem : i32 , pub cyItem : i32 , pub ptStart : super::super::Foundation:: POINT } impl ALTTABINFO { } impl :: std :: default :: Default for ALTTABINFO { fn default ( ) -> Self { Self { cbSize : 0 , cItems : 0 , cColumns : 0 , cRows : 0 , iColFocus : 0 , iRowFocus : 0 , cxItem : 0 , cyItem : 0 , ptStart : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ALTTABINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ALTTABINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "cItems" , & self . cItems ) . field ( "cColumns" , & self . cColumns ) . field ( "cRows" , & self . cRows ) . field ( "iColFocus" , & self . iColFocus ) . field ( "iRowFocus" , & self . iRowFocus ) . field ( "cxItem" , & self . cxItem ) . field ( "cyItem" , & self . cyItem ) . field ( "ptStart" , & self . ptStart ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ALTTABINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . cItems == other . cItems && self . cColumns == other . cColumns && self . cRows == other . cRows && self . iColFocus == other . iColFocus && self . iRowFocus == other . iRowFocus && self . cxItem == other . cxItem && self . cyItem == other . cyItem && self . ptStart == other . ptStart } } impl :: std :: cmp :: Eq for ALTTABINFO { } unsafe impl :: windows :: Abi for ALTTABINFO { 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 ANIMATE_WINDOW_FLAGS ( pub u32 ) ; pub const AW_ACTIVATE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 131072u32 ) ; pub const AW_BLEND : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 524288u32 ) ; pub const AW_CENTER : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 16u32 ) ; pub const AW_HIDE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 65536u32 ) ; pub const AW_HOR_POSITIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 1u32 ) ; pub const AW_HOR_NEGATIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 2u32 ) ; pub const AW_SLIDE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 262144u32 ) ; pub const AW_VER_POSITIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 4u32 ) ; pub const AW_VER_NEGATIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for ANIMATE_WINDOW_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for ANIMATE_WINDOW_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for ANIMATE_WINDOW_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for ANIMATE_WINDOW_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for ANIMATE_WINDOW_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for ANIMATE_WINDOW_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ANIMATIONINFO { pub cbSize : u32 , pub iMinAnimate : i32 } impl ANIMATIONINFO { } impl :: std :: default :: Default for ANIMATIONINFO { fn default ( ) -> Self { Self { cbSize : 0 , iMinAnimate : 0 } } } impl :: std :: fmt :: Debug for ANIMATIONINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ANIMATIONINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "iMinAnimate" , & self . iMinAnimate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ANIMATIONINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iMinAnimate == other . iMinAnimate } } impl :: std :: cmp :: Eq for ANIMATIONINFO { } unsafe impl :: windows :: Abi for ANIMATIONINFO { type Abi = Self ; type DefaultType = Self ; } pub const ARW_DOWN : i32 = 4i32 ; pub const ARW_HIDE : i32 = 8i32 ; pub const ARW_LEFT : i32 = 0i32 ; pub const ARW_RIGHT : i32 = 0i32 ; pub const ARW_STARTMASK : i32 = 3i32 ; pub const ARW_STARTRIGHT : i32 = 1i32 ; pub const ARW_STARTTOP : i32 = 2i32 ; pub const ARW_UP : i32 = 4i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct AUDIODESCRIPTION { pub cbSize : u32 , pub Enabled : super::super::Foundation:: BOOL , pub Locale : u32 } impl AUDIODESCRIPTION { } impl :: std :: default :: Default for AUDIODESCRIPTION { fn default ( ) -> Self { Self { cbSize : 0 , Enabled : :: std :: default :: Default :: default ( ) , Locale : 0 } } } impl :: std :: fmt :: Debug for AUDIODESCRIPTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "AUDIODESCRIPTION" ) . field ( "cbSize" , & self . cbSize ) . field ( "Enabled" , & self . Enabled ) . field ( "Locale" , & self . Locale ) . finish ( ) } } impl :: std :: cmp :: PartialEq for AUDIODESCRIPTION { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . Enabled == other . Enabled && self . Locale == other . Locale } } impl :: std :: cmp :: Eq for AUDIODESCRIPTION { } unsafe impl :: windows :: Abi for AUDIODESCRIPTION { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn AdjustWindowRect < 'a , > ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AdjustWindowRect ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } AdjustWindowRect ( :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( dwstyle ) , bmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AdjustWindowRectEx < 'a , > ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwexstyle : WINDOW_EX_STYLE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AdjustWindowRectEx ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : super::super::Foundation:: BOOL , dwexstyle : WINDOW_EX_STYLE ) -> super::super::Foundation:: BOOL ; } AdjustWindowRectEx ( :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( dwstyle ) , bmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwexstyle ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AllowSetForegroundWindow < > ( dwprocessid : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AllowSetForegroundWindow ( dwprocessid : u32 ) -> super::super::Foundation:: BOOL ; } AllowSetForegroundWindow ( :: std :: mem :: transmute ( dwprocessid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AnimateWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , dwtime : u32 , dwflags : ANIMATE_WINDOW_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AnimateWindow ( hwnd : super::super::Foundation:: HWND , dwtime : u32 , dwflags : ANIMATE_WINDOW_FLAGS ) -> super::super::Foundation:: BOOL ; } AnimateWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwtime ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AnyPopup < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AnyPopup ( ) -> super::super::Foundation:: BOOL ; } AnyPopup ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AppendMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AppendMenuA ( hmenu : HMENU , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } AppendMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AppendMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AppendMenuW ( hmenu : HMENU , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } AppendMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ArrangeIconicWindows < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ArrangeIconicWindows ( hwnd : super::super::Foundation:: HWND ) -> u32 ; } ArrangeIconicWindows ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const BM_CLICK : u32 = 245u32 ; pub const BM_GETCHECK : u32 = 240u32 ; pub const BM_GETIMAGE : u32 = 246u32 ; pub const BM_GETSTATE : u32 = 242u32 ; pub const BM_SETCHECK : u32 = 241u32 ; pub const BM_SETDONTCLICK : u32 = 248u32 ; pub const BM_SETIMAGE : u32 = 247u32 ; pub const BM_SETSTATE : u32 = 243u32 ; pub const BM_SETSTYLE : u32 = 244u32 ; pub const BN_CLICKED : u32 = 0u32 ; pub const BN_DISABLE : u32 = 4u32 ; pub const BN_DOUBLECLICKED : u32 = 5u32 ; pub const BN_HILITE : u32 = 2u32 ; pub const BN_KILLFOCUS : u32 = 7u32 ; pub const BN_PAINT : u32 = 1u32 ; pub const BN_SETFOCUS : u32 = 6u32 ; pub const BN_UNHILITE : u32 = 3u32 ; pub const BROADCAST_QUERY_DENY : u32 = 1112363332u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct BROADCAST_SYSTEM_MESSAGE_FLAGS ( pub u32 ) ; pub const BSF_ALLOWSFW : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 128u32 ) ; pub const BSF_FLUSHDISK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 4u32 ) ; pub const BSF_FORCEIFHUNG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 32u32 ) ; pub const BSF_IGNORECURRENTTASK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 2u32 ) ; pub const BSF_NOHANG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 8u32 ) ; pub const BSF_NOTIMEOUTIFNOTHUNG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 64u32 ) ; pub const BSF_POSTMESSAGE : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 16u32 ) ; pub const BSF_QUERY : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 1u32 ) ; pub const BSF_SENDNOTIFYMESSAGE : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 256u32 ) ; pub const BSF_LUID : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 1024u32 ) ; pub const BSF_RETURNHDESK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 512u32 ) ; impl :: std :: convert :: From < u32 > for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct BROADCAST_SYSTEM_MESSAGE_INFO ( pub u32 ) ; pub const BSM_ALLCOMPONENTS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 0u32 ) ; pub const BSM_ALLDESKTOPS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 16u32 ) ; pub const BSM_APPLICATIONS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 8u32 ) ; impl :: std :: convert :: From < u32 > for BROADCAST_SYSTEM_MESSAGE_INFO { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for BROADCAST_SYSTEM_MESSAGE_INFO { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for BROADCAST_SYSTEM_MESSAGE_INFO { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for BROADCAST_SYSTEM_MESSAGE_INFO { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for BROADCAST_SYSTEM_MESSAGE_INFO { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for BROADCAST_SYSTEM_MESSAGE_INFO { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BSMINFO { pub cbSize : u32 , pub hdesk : super::super::System::StationsAndDesktops:: HDESK , pub hwnd : super::super::Foundation:: HWND , pub luid : super::super::System::SystemServices:: LUID } impl BSMINFO { } impl :: std :: default :: Default for BSMINFO { fn default ( ) -> Self { Self { cbSize : 0 , hdesk : :: std :: default :: Default :: default ( ) , hwnd : :: std :: default :: Default :: default ( ) , luid : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for BSMINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BSMINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "hdesk" , & self . hdesk ) . field ( "hwnd" , & self . hwnd ) . field ( "luid" , & self . luid ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BSMINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hdesk == other . hdesk && self . hwnd == other . hwnd && self . luid == other . luid } } impl :: std :: cmp :: Eq for BSMINFO { } unsafe impl :: windows :: Abi for BSMINFO { type Abi = Self ; type DefaultType = Self ; } pub const BSM_INSTALLABLEDRIVERS : u32 = 4u32 ; pub const BSM_NETDRIVER : u32 = 2u32 ; pub const BSM_VXDS : u32 = 1u32 ; pub const BST_FOCUS : u32 = 8u32 ; pub const BST_PUSHED : u32 = 4u32 ; pub const BS_3STATE : i32 = 5i32 ; pub const BS_AUTO3STATE : i32 = 6i32 ; pub const BS_AUTOCHECKBOX : i32 = 3i32 ; pub const BS_AUTORADIOBUTTON : i32 = 9i32 ; pub const BS_BITMAP : i32 = 128i32 ; pub const BS_BOTTOM : i32 = 2048i32 ; pub const BS_CENTER : i32 = 768i32 ; pub const BS_CHECKBOX : i32 = 2i32 ; pub const BS_DEFPUSHBUTTON : i32 = 1i32 ; pub const BS_FLAT : i32 = 32768i32 ; pub const BS_GROUPBOX : i32 = 7i32 ; pub const BS_ICON : i32 = 64i32 ; pub const BS_LEFT : i32 = 256i32 ; pub const BS_LEFTTEXT : i32 = 32i32 ; pub const BS_MULTILINE : i32 = 8192i32 ; pub const BS_NOTIFY : i32 = 16384i32 ; pub const BS_OWNERDRAW : i32 = 11i32 ; pub const BS_PUSHBOX : i32 = 10i32 ; pub const BS_PUSHBUTTON : i32 = 0i32 ; pub const BS_PUSHLIKE : i32 = 4096i32 ; pub const BS_RADIOBUTTON : i32 = 4i32 ; pub const BS_RIGHT : i32 = 512i32 ; pub const BS_TEXT : i32 = 0i32 ; pub const BS_TOP : i32 = 1024i32 ; pub const BS_TYPEMASK : i32 = 15i32 ; pub const BS_USERBUTTON : i32 = 8i32 ; pub const BS_VCENTER : i32 = 3072i32 ; pub unsafe fn BeginDeferWindowPos < > ( nnumwindows : i32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BeginDeferWindowPos ( nnumwindows : i32 ) -> isize ; } BeginDeferWindowPos ( :: std :: mem :: transmute ( nnumwindows ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BringWindowToTop < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BringWindowToTop ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } BringWindowToTop ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageA < 'a , > ( flags : u32 , lpinfo : * mut u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageA ( flags : u32 , lpinfo : * mut u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } BroadcastSystemMessageA ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageExA < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , pbsminfo : * mut BSMINFO , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageExA ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , pbsminfo : * mut BSMINFO ) -> i32 ; } BroadcastSystemMessageExA ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pbsminfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageExW < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , pbsminfo : * mut BSMINFO , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageExW ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , pbsminfo : * mut BSMINFO ) -> i32 ; } BroadcastSystemMessageExW ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pbsminfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageW < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageW ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } BroadcastSystemMessageW ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const CALERT_SYSTEM : u32 = 6u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CASCADE_WINDOWS_HOW ( pub u32 ) ; pub const MDITILE_SKIPDISABLED : CASCADE_WINDOWS_HOW = CASCADE_WINDOWS_HOW ( 2u32 ) ; pub const MDITILE_ZORDER : CASCADE_WINDOWS_HOW = CASCADE_WINDOWS_HOW ( 4u32 ) ; impl :: std :: convert :: From < u32 > for CASCADE_WINDOWS_HOW { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CASCADE_WINDOWS_HOW { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CASCADE_WINDOWS_HOW { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CASCADE_WINDOWS_HOW { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CASCADE_WINDOWS_HOW { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CASCADE_WINDOWS_HOW { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CBN_CLOSEUP : u32 = 8u32 ; pub const CBN_DBLCLK : u32 = 2u32 ; pub const CBN_DROPDOWN : u32 = 7u32 ; pub const CBN_EDITCHANGE : u32 = 5u32 ; pub const CBN_EDITUPDATE : u32 = 6u32 ; pub const CBN_ERRSPACE : i32 = -1i32 ; pub const CBN_KILLFOCUS : u32 = 4u32 ; pub const CBN_SELCHANGE : u32 = 1u32 ; pub const CBN_SELENDCANCEL : u32 = 10u32 ; pub const CBN_SELENDOK : u32 = 9u32 ; pub const CBN_SETFOCUS : u32 = 3u32 ; pub const CBS_AUTOHSCROLL : i32 = 64i32 ; pub const CBS_DISABLENOSCROLL : i32 = 2048i32 ; pub const CBS_DROPDOWN : i32 = 2i32 ; pub const CBS_DROPDOWNLIST : i32 = 3i32 ; pub const CBS_HASSTRINGS : i32 = 512i32 ; pub const CBS_LOWERCASE : i32 = 16384i32 ; pub const CBS_NOINTEGRALHEIGHT : i32 = 1024i32 ; pub const CBS_OEMCONVERT : i32 = 128i32 ; pub const CBS_OWNERDRAWFIXED : i32 = 16i32 ; pub const CBS_OWNERDRAWVARIABLE : i32 = 32i32 ; pub const CBS_SIMPLE : i32 = 1i32 ; pub const CBS_SORT : i32 = 256i32 ; pub const CBS_UPPERCASE : i32 = 8192i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBTACTIVATESTRUCT { pub fMouse : super::super::Foundation:: BOOL , pub hWndActive : super::super::Foundation:: HWND } impl CBTACTIVATESTRUCT { } impl :: std :: default :: Default for CBTACTIVATESTRUCT { fn default ( ) -> Self { Self { fMouse : :: std :: default :: Default :: default ( ) , hWndActive : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBTACTIVATESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBTACTIVATESTRUCT" ) . field ( "fMouse" , & self . fMouse ) . field ( "hWndActive" , & self . hWndActive ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBTACTIVATESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . fMouse == other . fMouse && self . hWndActive == other . hWndActive } } impl :: std :: cmp :: Eq for CBTACTIVATESTRUCT { } unsafe impl :: windows :: Abi for CBTACTIVATESTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBT_CREATEWNDA { pub lpcs : * mut CREATESTRUCTA , pub hwndInsertAfter : super::super::Foundation:: HWND } impl CBT_CREATEWNDA { } impl :: std :: default :: Default for CBT_CREATEWNDA { fn default ( ) -> Self { Self { lpcs : :: std :: ptr :: null_mut ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBT_CREATEWNDA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBT_CREATEWNDA" ) . field ( "lpcs" , & self . lpcs ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBT_CREATEWNDA { fn eq ( & self , other : & Self ) -> bool { self . lpcs == other . lpcs && self . hwndInsertAfter == other . hwndInsertAfter } } impl :: std :: cmp :: Eq for CBT_CREATEWNDA { } unsafe impl :: windows :: Abi for CBT_CREATEWNDA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBT_CREATEWNDW { pub lpcs : * mut CREATESTRUCTW , pub hwndInsertAfter : super::super::Foundation:: HWND } impl CBT_CREATEWNDW { } impl :: std :: default :: Default for CBT_CREATEWNDW { fn default ( ) -> Self { Self { lpcs : :: std :: ptr :: null_mut ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBT_CREATEWNDW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBT_CREATEWNDW" ) . field ( "lpcs" , & self . lpcs ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBT_CREATEWNDW { fn eq ( & self , other : & Self ) -> bool { self . lpcs == other . lpcs && self . hwndInsertAfter == other . hwndInsertAfter } } impl :: std :: cmp :: Eq for CBT_CREATEWNDW { } unsafe impl :: windows :: Abi for CBT_CREATEWNDW { type Abi = Self ; type DefaultType = Self ; } pub const CB_ADDSTRING : u32 = 323u32 ; pub const CB_DELETESTRING : u32 = 324u32 ; pub const CB_DIR : u32 = 325u32 ; pub const CB_ERR : i32 = -1i32 ; pub const CB_ERRSPACE : i32 = -2i32 ; pub const CB_FINDSTRING : u32 = 332u32 ; pub const CB_FINDSTRINGEXACT : u32 = 344u32 ; pub const CB_GETCOMBOBOXINFO : u32 = 356u32 ; pub const CB_GETCOUNT : u32 = 326u32 ; pub const CB_GETCURSEL : u32 = 327u32 ; pub const CB_GETDROPPEDCONTROLRECT : u32 = 338u32 ; pub const CB_GETDROPPEDSTATE : u32 = 343u32 ; pub const CB_GETDROPPEDWIDTH : u32 = 351u32 ; pub const CB_GETEDITSEL : u32 = 320u32 ; pub const CB_GETEXTENDEDUI : u32 = 342u32 ; pub const CB_GETHORIZONTALEXTENT : u32 = 349u32 ; pub const CB_GETITEMDATA : u32 = 336u32 ; pub const CB_GETITEMHEIGHT : u32 = 340u32 ; pub const CB_GETLBTEXT : u32 = 328u32 ; pub const CB_GETLBTEXTLEN : u32 = 329u32 ; pub const CB_GETLOCALE : u32 = 346u32 ; pub const CB_GETTOPINDEX : u32 = 347u32 ; pub const CB_INITSTORAGE : u32 = 353u32 ; pub const CB_INSERTSTRING : u32 = 330u32 ; pub const CB_LIMITTEXT : u32 = 321u32 ; pub const CB_MSGMAX : u32 = 357u32 ; pub const CB_MULTIPLEADDSTRING : u32 = 355u32 ; pub const CB_OKAY : u32 = 0u32 ; pub const CB_RESETCONTENT : u32 = 331u32 ; pub const CB_SELECTSTRING : u32 = 333u32 ; pub const CB_SETCURSEL : u32 = 334u32 ; pub const CB_SETDROPPEDWIDTH : u32 = 352u32 ; pub const CB_SETEDITSEL : u32 = 322u32 ; pub const CB_SETEXTENDEDUI : u32 = 341u32 ; pub const CB_SETHORIZONTALEXTENT : u32 = 350u32 ; pub const CB_SETITEMDATA : u32 = 337u32 ; pub const CB_SETITEMHEIGHT : u32 = 339u32 ; pub const CB_SETLOCALE : u32 = 345u32 ; pub const CB_SETTOPINDEX : u32 = 348u32 ; pub const CB_SHOWDROPDOWN : u32 = 335u32 ; pub const CCHILDREN_SCROLLBAR : u32 = 5u32 ; pub const CCHILDREN_TITLEBAR : u32 = 5u32 ; pub const CDM_FIRST : u32 = 1124u32 ; pub const CDM_GETFILEPATH : u32 = 1125u32 ; pub const CDM_GETFOLDERIDLIST : u32 = 1127u32 ; pub const CDM_GETFOLDERPATH : u32 = 1126u32 ; pub const CDM_GETSPEC : u32 = 1124u32 ; pub const CDM_HIDECONTROL : u32 = 1129u32 ; pub const CDM_LAST : u32 = 1224u32 ; pub const CDM_SETCONTROLTEXT : u32 = 1128u32 ; pub const CDM_SETDEFEXT : u32 = 1130u32 ; pub const CD_LBSELADD : u32 = 2u32 ; pub const CD_LBSELCHANGE : u32 = 0u32 ; pub const CD_LBSELNOITEMS : i32 = -1i32 ; pub const CD_LBSELSUB : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CHANGEFILTERSTRUCT { pub cbSize : u32 , pub ExtStatus : MSGFLTINFO_STATUS } impl CHANGEFILTERSTRUCT { } impl :: std :: default :: Default for CHANGEFILTERSTRUCT { fn default ( ) -> Self { Self { cbSize : 0 , ExtStatus : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHANGEFILTERSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHANGEFILTERSTRUCT" ) . field ( "cbSize" , & self . cbSize ) . field ( "ExtStatus" , & self . ExtStatus ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHANGEFILTERSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . ExtStatus == other . ExtStatus } } impl :: std :: cmp :: Eq for CHANGEFILTERSTRUCT { } unsafe impl :: windows :: Abi for CHANGEFILTERSTRUCT { 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 CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( pub u32 ) ; pub const MSGFLT_ADD : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( 1u32 ) ; pub const MSGFLT_REMOVE : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CHILDID_SELF : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSECOLORA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCCHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl CHOOSECOLORA { } impl :: std :: default :: Default for CHOOSECOLORA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , rgbResult : 0 , lpCustColors : :: std :: ptr :: null_mut ( ) , Flags : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHOOSECOLORA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSECOLORA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "rgbResult" , & self . rgbResult ) . field ( "lpCustColors" , & self . lpCustColors ) . field ( "Flags" , & self . Flags ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSECOLORA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . rgbResult == other . rgbResult && self . lpCustColors == other . lpCustColors && self . Flags == other . Flags && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for CHOOSECOLORA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSECOLORA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for CHOOSECOLORA { type Abi = CHOOSECOLORA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSECOLORW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCCHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl CHOOSECOLORW { } impl :: std :: default :: Default for CHOOSECOLORW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , rgbResult : 0 , lpCustColors : :: std :: ptr :: null_mut ( ) , Flags : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHOOSECOLORW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSECOLORW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "rgbResult" , & self . rgbResult ) . field ( "lpCustColors" , & self . lpCustColors ) . field ( "Flags" , & self . Flags ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSECOLORW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . rgbResult == other . rgbResult && self . lpCustColors == other . lpCustColors && self . Flags == other . Flags && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for CHOOSECOLORW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSECOLORW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for CHOOSECOLORW { type Abi = CHOOSECOLORW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSEFONTA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTA , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCFHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } impl CHOOSEFONTA { } impl :: std :: default :: Default for CHOOSEFONTA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDC : :: std :: default :: Default :: default ( ) , lpLogFont : :: std :: ptr :: null_mut ( ) , iPointSize : 0 , Flags : :: std :: default :: Default :: default ( ) , rgbColors : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszStyle : :: std :: default :: Default :: default ( ) , nFontType : :: std :: default :: Default :: default ( ) , ___MISSING_ALIGNMENT__ : 0 , nSizeMin : 0 , nSizeMax : 0 } } } impl :: std :: fmt :: Debug for CHOOSEFONTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSEFONTA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDC" , & self . hDC ) . field ( "lpLogFont" , & self . lpLogFont ) . field ( "iPointSize" , & self . iPointSize ) . field ( "Flags" , & self . Flags ) . field ( "rgbColors" , & self . rgbColors ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszStyle" , & self . lpszStyle ) . field ( "nFontType" , & self . nFontType ) . field ( "___MISSING_ALIGNMENT__" , & self . ___MISSING_ALIGNMENT__ ) . field ( "nSizeMin" , & self . nSizeMin ) . field ( "nSizeMax" , & self . nSizeMax ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSEFONTA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDC == other . hDC && self . lpLogFont == other . lpLogFont && self . iPointSize == other . iPointSize && self . Flags == other . Flags && self . rgbColors == other . rgbColors && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . hInstance == other . hInstance && self . lpszStyle == other . lpszStyle && self . nFontType == other . nFontType && self . ___MISSING_ALIGNMENT__ == other . ___MISSING_ALIGNMENT__ && self . nSizeMin == other . nSizeMin && self . nSizeMax == other . nSizeMax } } impl :: std :: cmp :: Eq for CHOOSEFONTA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSEFONTA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTA , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } unsafe impl :: windows :: Abi for CHOOSEFONTA { type Abi = CHOOSEFONTA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSEFONTW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTW , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCFHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PWSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } impl CHOOSEFONTW { } impl :: std :: default :: Default for CHOOSEFONTW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDC : :: std :: default :: Default :: default ( ) , lpLogFont : :: std :: ptr :: null_mut ( ) , iPointSize : 0 , Flags : :: std :: default :: Default :: default ( ) , rgbColors : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszStyle : :: std :: default :: Default :: default ( ) , nFontType : :: std :: default :: Default :: default ( ) , ___MISSING_ALIGNMENT__ : 0 , nSizeMin : 0 , nSizeMax : 0 } } } impl :: std :: fmt :: Debug for CHOOSEFONTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSEFONTW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDC" , & self . hDC ) . field ( "lpLogFont" , & self . lpLogFont ) . field ( "iPointSize" , & self . iPointSize ) . field ( "Flags" , & self . Flags ) . field ( "rgbColors" , & self . rgbColors ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszStyle" , & self . lpszStyle ) . field ( "nFontType" , & self . nFontType ) . field ( "___MISSING_ALIGNMENT__" , & self . ___MISSING_ALIGNMENT__ ) . field ( "nSizeMin" , & self . nSizeMin ) . field ( "nSizeMax" , & self . nSizeMax ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSEFONTW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDC == other . hDC && self . lpLogFont == other . lpLogFont && self . iPointSize == other . iPointSize && self . Flags == other . Flags && self . rgbColors == other . rgbColors && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . hInstance == other . hInstance && self . lpszStyle == other . lpszStyle && self . nFontType == other . nFontType && self . ___MISSING_ALIGNMENT__ == other . ___MISSING_ALIGNMENT__ && self . nSizeMin == other . nSizeMin && self . nSizeMax == other . nSizeMax } } impl :: std :: cmp :: Eq for CHOOSEFONTW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSEFONTW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTW , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PWSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } unsafe impl :: windows :: Abi for CHOOSEFONTW { type Abi = CHOOSEFONTW_abi ; 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 CHOOSEFONT_FLAGS ( pub u32 ) ; pub const CF_APPLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 512u32 ) ; pub const CF_ANSIONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1024u32 ) ; pub const CF_BOTH : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 3u32 ) ; pub const CF_EFFECTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 256u32 ) ; pub const CF_ENABLEHOOK : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8u32 ) ; pub const CF_ENABLETEMPLATE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16u32 ) ; pub const CF_ENABLETEMPLATEHANDLE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 32u32 ) ; pub const CF_FIXEDPITCHONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16384u32 ) ; pub const CF_FORCEFONTEXIST : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 65536u32 ) ; pub const CF_INACTIVEFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 33554432u32 ) ; pub const CF_INITTOLOGFONTSTRUCT : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 64u32 ) ; pub const CF_LIMITSIZE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8192u32 ) ; pub const CF_NOOEMFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2048u32 ) ; pub const CF_NOFACESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 524288u32 ) ; pub const CF_NOSCRIPTSEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8388608u32 ) ; pub const CF_NOSIMULATIONS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4096u32 ) ; pub const CF_NOSIZESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2097152u32 ) ; pub const CF_NOSTYLESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1048576u32 ) ; pub const CF_NOVECTORFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2048u32 ) ; pub const CF_NOVERTFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16777216u32 ) ; pub const CF_PRINTERFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2u32 ) ; pub const CF_SCALABLEONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 131072u32 ) ; pub const CF_SCREENFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1u32 ) ; pub const CF_SCRIPTSONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1024u32 ) ; pub const CF_SELECTSCRIPT : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4194304u32 ) ; pub const CF_SHOWHELP : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4u32 ) ; pub const CF_TTONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 262144u32 ) ; pub const CF_USESTYLE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 128u32 ) ; pub const CF_WYSIWYG : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 32768u32 ) ; impl :: std :: convert :: From < u32 > for CHOOSEFONT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHOOSEFONT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHOOSEFONT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHOOSEFONT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHOOSEFONT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHOOSEFONT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CHOOSEFONT_FONT_TYPE ( pub u32 ) ; pub const BOLD_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 256u32 ) ; pub const ITALIC_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 512u32 ) ; pub const PRINTER_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 16384u32 ) ; pub const REGULAR_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 1024u32 ) ; pub const SCREEN_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 8192u32 ) ; pub const SIMULATED_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 32768u32 ) ; impl :: std :: convert :: From < u32 > for CHOOSEFONT_FONT_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHOOSEFONT_FONT_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHOOSEFONT_FONT_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHOOSEFONT_FONT_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHOOSEFONT_FONT_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHOOSEFONT_FONT_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CLIENTCREATESTRUCT { pub hWindowMenu : super::super::Foundation:: HANDLE , pub idFirstChild : u32 } impl CLIENTCREATESTRUCT { } impl :: std :: default :: Default for CLIENTCREATESTRUCT { fn default ( ) -> Self { Self { hWindowMenu : :: std :: default :: Default :: default ( ) , idFirstChild : 0 } } } impl :: std :: fmt :: Debug for CLIENTCREATESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CLIENTCREATESTRUCT" ) . field ( "hWindowMenu" , & self . hWindowMenu ) . field ( "idFirstChild" , & self . idFirstChild ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CLIENTCREATESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hWindowMenu == other . hWindowMenu && self . idFirstChild == other . idFirstChild } } impl :: std :: cmp :: Eq for CLIENTCREATESTRUCT { } unsafe impl :: windows :: Abi for CLIENTCREATESTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const COLOR_BTNHIGHLIGHT : u32 = 20u32 ; pub const CONSOLE_APPLICATION_16BIT : u32 = 0u32 ; pub const CONSOLE_CARET_SELECTION : u32 = 1u32 ; pub const CONSOLE_CARET_VISIBLE : u32 = 2u32 ; pub const CONTACTVISUALIZATION_OFF : u32 = 0u32 ; pub const CONTACTVISUALIZATION_ON : u32 = 1u32 ; pub const CONTACTVISUALIZATION_PRESENTATIONMODE : u32 = 2u32 ; pub const CREATEPROCESS_MANIFEST_RESOURCE_ID : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CREATESTRUCTA { pub lpCreateParams : * mut :: std :: ffi :: c_void , pub hInstance : super::super::Foundation:: HINSTANCE , pub hMenu : HMENU , pub hwndParent : super::super::Foundation:: HWND , pub cy : i32 , pub cx : i32 , pub y : i32 , pub x : i32 , pub style : i32 , pub lpszName : super::super::Foundation:: PSTR , pub lpszClass : super::super::Foundation:: PSTR , pub dwExStyle : u32 } impl CREATESTRUCTA { } impl :: std :: default :: Default for CREATESTRUCTA { fn default ( ) -> Self { Self { lpCreateParams : :: std :: ptr :: null_mut ( ) , hInstance : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndParent : :: std :: default :: Default :: default ( ) , cy : 0 , cx : 0 , y : 0 , x : 0 , style : 0 , lpszName : :: std :: default :: Default :: default ( ) , lpszClass : :: std :: default :: Default :: default ( ) , dwExStyle : 0 } } } impl :: std :: fmt :: Debug for CREATESTRUCTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CREATESTRUCTA" ) . field ( "lpCreateParams" , & self . lpCreateParams ) . field ( "hInstance" , & self . hInstance ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndParent" , & self . hwndParent ) . field ( "cy" , & self . cy ) . field ( "cx" , & self . cx ) . field ( "y" , & self . y ) . field ( "x" , & self . x ) . field ( "style" , & self . style ) . field ( "lpszName" , & self . lpszName ) . field ( "lpszClass" , & self . lpszClass ) . field ( "dwExStyle" , & self . dwExStyle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CREATESTRUCTA { fn eq ( & self , other : & Self ) -> bool { self . lpCreateParams == other . lpCreateParams && self . hInstance == other . hInstance && self . hMenu == other . hMenu && self . hwndParent == other . hwndParent && self . cy == other . cy && self . cx == other . cx && self . y == other . y && self . x == other . x && self . style == other . style && self . lpszName == other . lpszName && self . lpszClass == other . lpszClass && self . dwExStyle == other . dwExStyle } } impl :: std :: cmp :: Eq for CREATESTRUCTA { } unsafe impl :: windows :: Abi for CREATESTRUCTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CREATESTRUCTW { pub lpCreateParams : * mut :: std :: ffi :: c_void , pub hInstance : super::super::Foundation:: HINSTANCE , pub hMenu : HMENU , pub hwndParent : super::super::Foundation:: HWND , pub cy : i32 , pub cx : i32 , pub y : i32 , pub x : i32 , pub style : i32 , pub lpszName : super::super::Foundation:: PWSTR , pub lpszClass : super::super::Foundation:: PWSTR , pub dwExStyle : u32 } impl CREATESTRUCTW { } impl :: std :: default :: Default for CREATESTRUCTW { fn default ( ) -> Self { Self { lpCreateParams : :: std :: ptr :: null_mut ( ) , hInstance : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndParent : :: std :: default :: Default :: default ( ) , cy : 0 , cx : 0 , y : 0 , x : 0 , style : 0 , lpszName : :: std :: default :: Default :: default ( ) , lpszClass : :: std :: default :: Default :: default ( ) , dwExStyle : 0 } } } impl :: std :: fmt :: Debug for CREATESTRUCTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CREATESTRUCTW" ) . field ( "lpCreateParams" , & self . lpCreateParams ) . field ( "hInstance" , & self . hInstance ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndParent" , & self . hwndParent ) . field ( "cy" , & self . cy ) . field ( "cx" , & self . cx ) . field ( "y" , & self . y ) . field ( "x" , & self . x ) . field ( "style" , & self . style ) . field ( "lpszName" , & self . lpszName ) . field ( "lpszClass" , & self . lpszClass ) . field ( "dwExStyle" , & self . dwExStyle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CREATESTRUCTW { fn eq ( & self , other : & Self ) -> bool { self . lpCreateParams == other . lpCreateParams && self . hInstance == other . hInstance && self . hMenu == other . hMenu && self . hwndParent == other . hwndParent && self . cy == other . cy && self . cx == other . cx && self . y == other . y && self . x == other . x && self . style == other . style && self . lpszName == other . lpszName && self . lpszClass == other . lpszClass && self . dwExStyle == other . dwExStyle } } impl :: std :: cmp :: Eq for CREATESTRUCTW { } unsafe impl :: windows :: Abi for CREATESTRUCTW { type Abi = Self ; type DefaultType = Self ; } pub const CSOUND_SYSTEM : u32 = 16u32 ; pub const CTLCOLOR_BTN : u32 = 3u32 ; pub const CTLCOLOR_DLG : u32 = 4u32 ; pub const CTLCOLOR_EDIT : u32 = 1u32 ; pub const CTLCOLOR_LISTBOX : u32 = 2u32 ; pub const CTLCOLOR_MAX : u32 = 7u32 ; pub const CTLCOLOR_MSGBOX : u32 = 0u32 ; pub const CTLCOLOR_SCROLLBAR : u32 = 5u32 ; pub const CTLCOLOR_STATIC : u32 = 6u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CURSORINFO { pub cbSize : u32 , pub flags : CURSORINFO_FLAGS , pub hCursor : HCURSOR , pub ptScreenPos : super::super::Foundation:: POINT } impl CURSORINFO { } impl :: std :: default :: Default for CURSORINFO { fn default ( ) -> Self { Self { cbSize : 0 , flags : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , ptScreenPos : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CURSORINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CURSORINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "flags" , & self . flags ) . field ( "hCursor" , & self . hCursor ) . field ( "ptScreenPos" , & self . ptScreenPos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CURSORINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . flags == other . flags && self . hCursor == other . hCursor && self . ptScreenPos == other . ptScreenPos } } impl :: std :: cmp :: Eq for CURSORINFO { } unsafe impl :: windows :: Abi for CURSORINFO { 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 CURSORINFO_FLAGS ( pub u32 ) ; pub const CURSOR_SHOWING : CURSORINFO_FLAGS = CURSORINFO_FLAGS ( 1u32 ) ; pub const CURSOR_SUPPRESSED : CURSORINFO_FLAGS = CURSORINFO_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for CURSORINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CURSORINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CURSORINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CURSORINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CURSORINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CURSORINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CURSORSHAPE { pub xHotSpot : i32 , pub yHotSpot : i32 , pub cx : i32 , pub cy : i32 , pub cbWidth : i32 , pub Planes : u8 , pub BitsPixel : u8 } impl CURSORSHAPE { } impl :: std :: default :: Default for CURSORSHAPE { fn default ( ) -> Self { Self { xHotSpot : 0 , yHotSpot : 0 , cx : 0 , cy : 0 , cbWidth : 0 , Planes : 0 , BitsPixel : 0 } } } impl :: std :: fmt :: Debug for CURSORSHAPE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CURSORSHAPE" ) . field ( "xHotSpot" , & self . xHotSpot ) . field ( "yHotSpot" , & self . yHotSpot ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "cbWidth" , & self . cbWidth ) . field ( "Planes" , & self . Planes ) . field ( "BitsPixel" , & self . BitsPixel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CURSORSHAPE { fn eq ( & self , other : & Self ) -> bool { self . xHotSpot == other . xHotSpot && self . yHotSpot == other . yHotSpot && self . cx == other . cx && self . cy == other . cy && self . cbWidth == other . cbWidth && self . Planes == other . Planes && self . BitsPixel == other . BitsPixel } } impl :: std :: cmp :: Eq for CURSORSHAPE { } unsafe impl :: windows :: Abi for CURSORSHAPE { type Abi = Self ; type DefaultType = Self ; } pub const CWF_CREATE_ONLY : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CWPRETSTRUCT { pub lResult : super::super::Foundation:: LRESULT , pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub message : u32 , pub hwnd : super::super::Foundation:: HWND } impl CWPRETSTRUCT { } impl :: std :: default :: Default for CWPRETSTRUCT { fn default ( ) -> Self { Self { lResult : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , message : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CWPRETSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CWPRETSTRUCT" ) . field ( "lResult" , & self . lResult ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "message" , & self . message ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CWPRETSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . lResult == other . lResult && self . lParam == other . lParam && self . wParam == other . wParam && self . message == other . message && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for CWPRETSTRUCT { } unsafe impl :: windows :: Abi for CWPRETSTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CWPSTRUCT { pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub message : u32 , pub hwnd : super::super::Foundation:: HWND } impl CWPSTRUCT { } impl :: std :: default :: Default for CWPSTRUCT { fn default ( ) -> Self { Self { lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , message : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CWPSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CWPSTRUCT" ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "message" , & self . message ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CWPSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . lParam == other . lParam && self . wParam == other . wParam && self . message == other . message && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for CWPSTRUCT { } unsafe impl :: windows :: Abi for CWPSTRUCT { 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 CWP_FLAGS ( pub u32 ) ; pub const CWP_ALL : CWP_FLAGS = CWP_FLAGS ( 0u32 ) ; pub const CWP_SKIPINVISIBLE : CWP_FLAGS = CWP_FLAGS ( 1u32 ) ; pub const CWP_SKIPDISABLED : CWP_FLAGS = CWP_FLAGS ( 2u32 ) ; pub const CWP_SKIPTRANSPARENT : CWP_FLAGS = CWP_FLAGS ( 4u32 ) ; impl :: std :: convert :: From < u32 > for CWP_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CWP_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CWP_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CWP_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CWP_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CWP_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CW_USEDEFAULT : i32 = -2147483648i32 ; pub unsafe fn CalculatePopupWindowPosition < > ( anchorpoint : * const super::super::Foundation:: POINT , windowsize : * const super::super::Foundation:: SIZE , flags : u32 , excluderect : * mut super::super::Foundation:: RECT , popupwindowposition : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CalculatePopupWindowPosition ( anchorpoint : * const super::super::Foundation:: POINT , windowsize : * const super::super::Foundation:: SIZE , flags : u32 , excluderect : * mut super::super::Foundation:: RECT , popupwindowposition : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } CalculatePopupWindowPosition ( :: std :: mem :: transmute ( anchorpoint ) , :: std :: mem :: transmute ( windowsize ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( excluderect ) , :: std :: mem :: transmute ( popupwindowposition ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallMsgFilterA < > ( lpmsg : * mut MSG , ncode : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallMsgFilterA ( lpmsg : * mut MSG , ncode : i32 ) -> super::super::Foundation:: BOOL ; } CallMsgFilterA ( :: std :: mem :: transmute ( lpmsg ) , :: std :: mem :: transmute ( ncode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallMsgFilterW < > ( lpmsg : * mut MSG , ncode : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallMsgFilterW ( lpmsg : * mut MSG , ncode : i32 ) -> super::super::Foundation:: BOOL ; } CallMsgFilterW ( :: std :: mem :: transmute ( lpmsg ) , :: std :: mem :: transmute ( ncode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallNextHookEx < 'a , > ( hhk : impl :: windows :: IntoParam < 'a , HHOOK > , ncode : i32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallNextHookEx ( hhk : HHOOK , ncode : i32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallNextHookEx ( hhk . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncode ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallWindowProcA < 'a , > ( lpprevwndfunc : :: std :: option :: Option < WNDPROC > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallWindowProcA ( lpprevwndfunc : :: windows :: RawPtr , hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallWindowProcA ( :: std :: mem :: transmute ( lpprevwndfunc ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallWindowProcW < 'a , > ( lpprevwndfunc : :: std :: option :: Option < WNDPROC > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallWindowProcW ( lpprevwndfunc : :: windows :: RawPtr , hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallWindowProcW ( :: std :: mem :: transmute ( lpprevwndfunc ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CancelShutdown < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CancelShutdown ( ) -> super::super::Foundation:: BOOL ; } CancelShutdown ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CascadeWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , whow : CASCADE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CascadeWindows ( hwndparent : super::super::Foundation:: HWND , whow : CASCADE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND ) -> u16 ; } CascadeWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( whow ) , :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( ckids ) , :: std :: mem :: transmute ( lpkids ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , cmd : u32 , lpsznewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cmdinsert : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeMenuA ( hmenu : HMENU , cmd : u32 , lpsznewitem : super::super::Foundation:: PSTR , cmdinsert : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } ChangeMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmd ) , lpsznewitem . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmdinsert ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , cmd : u32 , lpsznewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cmdinsert : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeMenuW ( hmenu : HMENU , cmd : u32 , lpsznewitem : super::super::Foundation:: PWSTR , cmdinsert : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } ChangeMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmd ) , lpsznewitem . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmdinsert ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeWindowMessageFilter < > ( message : u32 , dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeWindowMessageFilter ( message : u32 , dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ) -> super::super::Foundation:: BOOL ; } ChangeWindowMessageFilter ( :: std :: mem :: transmute ( message ) , :: std :: mem :: transmute ( dwflag ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeWindowMessageFilterEx < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , message : u32 , action : WINDOW_MESSAGE_FILTER_ACTION , pchangefilterstruct : * mut CHANGEFILTERSTRUCT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeWindowMessageFilterEx ( hwnd : super::super::Foundation:: HWND , message : u32 , action : WINDOW_MESSAGE_FILTER_ACTION , pchangefilterstruct : * mut CHANGEFILTERSTRUCT ) -> super::super::Foundation:: BOOL ; } ChangeWindowMessageFilterEx ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( message ) , :: std :: mem :: transmute ( action ) , :: std :: mem :: transmute ( pchangefilterstruct ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharLowerA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerBuffA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerBuffA ( lpsz : super::super::Foundation:: PSTR , cchlength : u32 ) -> u32 ; } CharLowerBuffA ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerBuffW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerBuffW ( lpsz : super::super::Foundation:: PWSTR , cchlength : u32 ) -> u32 ; } CharLowerBuffW ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharLowerW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharNextA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextExA < 'a , > ( codepage : u16 , lpcurrentchar : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwflags : u32 , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextExA ( codepage : u16 , lpcurrentchar : super::super::Foundation:: PSTR , dwflags : u32 ) -> super::super::Foundation:: PSTR ; } CharNextExA ( :: std :: mem :: transmute ( codepage ) , lpcurrentchar . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharNextW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevA < 'a , > ( lpszstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszcurrent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevA ( lpszstart : super::super::Foundation:: PSTR , lpszcurrent : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharPrevA ( lpszstart . into_param ( ) . abi ( ) , lpszcurrent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevExA < 'a , > ( codepage : u16 , lpstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcurrentchar : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwflags : u32 , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevExA ( codepage : u16 , lpstart : super::super::Foundation:: PSTR , lpcurrentchar : super::super::Foundation:: PSTR , dwflags : u32 ) -> super::super::Foundation:: PSTR ; } CharPrevExA ( :: std :: mem :: transmute ( codepage ) , lpstart . into_param ( ) . abi ( ) , lpcurrentchar . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevW < 'a , > ( lpszstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszcurrent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevW ( lpszstart : super::super::Foundation:: PWSTR , lpszcurrent : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharPrevW ( lpszstart . into_param ( ) . abi ( ) , lpszcurrent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemA < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemA ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } CharToOemA ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemBuffA < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemBuffA ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } CharToOemBuffA ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemBuffW < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemBuffW ( lpszsrc : super::super::Foundation:: PWSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } CharToOemBuffW ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemW < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemW ( psrc : super::super::Foundation:: PWSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } CharToOemW ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharUpperA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperBuffA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperBuffA ( lpsz : super::super::Foundation:: PSTR , cchlength : u32 ) -> u32 ; } CharUpperBuffA ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperBuffW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperBuffW ( lpsz : super::super::Foundation:: PWSTR , cchlength : u32 ) -> u32 ; } CharUpperBuffW ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharUpperW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CheckMenuItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidcheckitem : u32 , ucheck : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CheckMenuItem ( hmenu : HMENU , uidcheckitem : u32 , ucheck : u32 ) -> u32 ; } CheckMenuItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidcheckitem ) , :: std :: mem :: transmute ( ucheck ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CheckMenuRadioItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , first : u32 , last : u32 , check : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CheckMenuRadioItem ( hmenu : HMENU , first : u32 , last : u32 , check : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } CheckMenuRadioItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( first ) , :: std :: mem :: transmute ( last ) , :: std :: mem :: transmute ( check ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChildWindowFromPoint < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChildWindowFromPoint ( hwndparent : super::super::Foundation:: HWND , point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } ChildWindowFromPoint ( hwndparent . into_param ( ) . abi ( ) , point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChildWindowFromPointEx < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pt : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , flags : CWP_FLAGS , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChildWindowFromPointEx ( hwnd : super::super::Foundation:: HWND , pt : super::super::Foundation:: POINT , flags : CWP_FLAGS ) -> super::super::Foundation:: HWND ; } ChildWindowFromPointEx ( hwnd . into_param ( ) . abi ( ) , pt . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseColorA < > ( param0 : * mut CHOOSECOLORA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseColorA ( param0 : * mut CHOOSECOLORA_abi ) -> super::super::Foundation:: BOOL ; } ChooseColorA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseColorW < > ( param0 : * mut CHOOSECOLORW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseColorW ( param0 : * mut CHOOSECOLORW_abi ) -> super::super::Foundation:: BOOL ; } ChooseColorW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseFontA < > ( param0 : * mut CHOOSEFONTA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseFontA ( param0 : * mut CHOOSEFONTA_abi ) -> super::super::Foundation:: BOOL ; } ChooseFontA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseFontW < > ( param0 : * mut CHOOSEFONTW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseFontW ( param0 : * mut CHOOSEFONTW_abi ) -> super::super::Foundation:: BOOL ; } ChooseFontW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ClipCursor < > ( lprect : * const super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ClipCursor ( lprect : * const super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } ClipCursor ( :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CloseWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CloseWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } CloseWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CommDlgExtendedError < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn CommDlgExtendedError ( ) -> u32 ; } CommDlgExtendedError ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyAcceleratorTableA < 'a , > ( haccelsrc : impl :: windows :: IntoParam < 'a , HACCEL > , lpacceldst : * mut ACCEL , caccelentries : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyAcceleratorTableA ( haccelsrc : HACCEL , lpacceldst : * mut ACCEL , caccelentries : i32 ) -> i32 ; } CopyAcceleratorTableA ( haccelsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpacceldst ) , :: std :: mem :: transmute ( caccelentries ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyAcceleratorTableW < 'a , > ( haccelsrc : impl :: windows :: IntoParam < 'a , HACCEL > , lpacceldst : * mut ACCEL , caccelentries : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyAcceleratorTableW ( haccelsrc : HACCEL , lpacceldst : * mut ACCEL , caccelentries : i32 ) -> i32 ; } CopyAcceleratorTableW ( haccelsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpacceldst ) , :: std :: mem :: transmute ( caccelentries ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyIcon < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyIcon ( hicon : HICON ) -> HICON ; } CopyIcon ( hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyImage < 'a , > ( h : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyImage ( h : super::super::Foundation:: HANDLE , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } CopyImage ( h . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateAcceleratorTableA < > ( paccel : * mut ACCEL , caccel : i32 , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateAcceleratorTableA ( paccel : * mut ACCEL , caccel : i32 ) -> HACCEL ; } CreateAcceleratorTableA ( :: std :: mem :: transmute ( paccel ) , :: std :: mem :: transmute ( caccel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateAcceleratorTableW < > ( paccel : * mut ACCEL , caccel : i32 , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateAcceleratorTableW ( paccel : * mut ACCEL , caccel : i32 ) -> HACCEL ; } CreateAcceleratorTableW ( :: std :: mem :: transmute ( paccel ) , :: std :: mem :: transmute ( caccel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hbitmap : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , nwidth : i32 , nheight : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateCaret ( hwnd : super::super::Foundation:: HWND , hbitmap : super::super::Graphics::Gdi:: HBITMAP , nwidth : i32 , nheight : i32 ) -> super::super::Foundation:: BOOL ; } CreateCaret ( hwnd . into_param ( ) . abi ( ) , hbitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCursor < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , xhotspot : i32 , yhotspot : i32 , nwidth : i32 , nheight : i32 , pvandplane : * const :: std :: ffi :: c_void , pvxorplane : * const :: std :: ffi :: c_void , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateCursor ( hinst : super::super::Foundation:: HINSTANCE , xhotspot : i32 , yhotspot : i32 , nwidth : i32 , nheight : i32 , pvandplane : * const :: std :: ffi :: c_void , pvxorplane : * const :: std :: ffi :: c_void ) -> HCURSOR ; } CreateCursor ( hinst . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( xhotspot ) , :: std :: mem :: transmute ( yhotspot ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , :: std :: mem :: transmute ( pvandplane ) , :: std :: mem :: transmute ( pvxorplane ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogIndirectParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogIndirectParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogIndirectParamA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogIndirectParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogIndirectParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogIndirectParamW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogParamA ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PWSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogParamW ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIcon < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , nwidth : i32 , nheight : i32 , cplanes : u8 , cbitspixel : u8 , lpbandbits : * const u8 , lpbxorbits : * const u8 , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIcon ( hinstance : super::super::Foundation:: HINSTANCE , nwidth : i32 , nheight : i32 , cplanes : u8 , cbitspixel : u8 , lpbandbits : * const u8 , lpbxorbits : * const u8 ) -> HICON ; } CreateIcon ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , :: std :: mem :: transmute ( cplanes ) , :: std :: mem :: transmute ( cbitspixel ) , :: std :: mem :: transmute ( lpbandbits ) , :: std :: mem :: transmute ( lpbxorbits ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconFromResource < 'a , > ( presbits : * mut u8 , dwressize : u32 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwver : u32 , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconFromResource ( presbits : * mut u8 , dwressize : u32 , ficon : super::super::Foundation:: BOOL , dwver : u32 ) -> HICON ; } CreateIconFromResource ( :: std :: mem :: transmute ( presbits ) , :: std :: mem :: transmute ( dwressize ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwver ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconFromResourceEx < 'a , > ( presbits : * mut u8 , dwressize : u32 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwver : u32 , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconFromResourceEx ( presbits : * mut u8 , dwressize : u32 , ficon : super::super::Foundation:: BOOL , dwver : u32 , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> HICON ; } CreateIconFromResourceEx ( :: std :: mem :: transmute ( presbits ) , :: std :: mem :: transmute ( dwressize ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwver ) , :: std :: mem :: transmute ( cxdesired ) , :: std :: mem :: transmute ( cydesired ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconIndirect < > ( piconinfo : * mut ICONINFO , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconIndirect ( piconinfo : * mut ICONINFO ) -> HICON ; } CreateIconIndirect ( :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMDIWindowA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMDIWindowA ( lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hinstance : super::super::Foundation:: HINSTANCE , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateMDIWindowA ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMDIWindowW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMDIWindowW ( lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hinstance : super::super::Foundation:: HINSTANCE , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateMDIWindowW ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMenu < > ( ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMenu ( ) -> HMENU ; } CreateMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreatePopupMenu < > ( ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreatePopupMenu ( ) -> HMENU ; } CreatePopupMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateResourceIndexer < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , extensiondllpath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ppresourceindexer : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn CreateResourceIndexer ( projectroot : super::super::Foundation:: PWSTR , extensiondllpath : super::super::Foundation:: PWSTR , ppresourceindexer : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } CreateResourceIndexer ( projectroot . into_param ( ) . abi ( ) , extensiondllpath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ppresourceindexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateWindowExA < 'a , > ( dwexstyle : WINDOW_EX_STYLE , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpparam : * mut :: std :: ffi :: c_void , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateWindowExA ( dwexstyle : WINDOW_EX_STYLE , lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hmenu : HMENU , hinstance : super::super::Foundation:: HINSTANCE , lpparam : * mut :: std :: ffi :: c_void ) -> super::super::Foundation:: HWND ; } CreateWindowExA ( :: std :: mem :: transmute ( dwexstyle ) , lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateWindowExW < 'a , > ( dwexstyle : WINDOW_EX_STYLE , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpparam : * mut :: std :: ffi :: c_void , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateWindowExW ( dwexstyle : WINDOW_EX_STYLE , lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hmenu : HMENU , hinstance : super::super::Foundation:: HINSTANCE , lpparam : * mut :: std :: ffi :: c_void ) -> super::super::Foundation:: HWND ; } CreateWindowExW ( :: std :: mem :: transmute ( dwexstyle ) , lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const DCX_EXCLUDEUPDATE : i32 = 256i32 ; pub const DC_HASDEFID : u32 = 21323u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEBUGHOOKINFO { pub idThread : u32 , pub idThreadInstaller : u32 , pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub code : i32 } impl DEBUGHOOKINFO { } impl :: std :: default :: Default for DEBUGHOOKINFO { fn default ( ) -> Self { Self { idThread : 0 , idThreadInstaller : 0 , lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , code : 0 } } } impl :: std :: fmt :: Debug for DEBUGHOOKINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DEBUGHOOKINFO" ) . field ( "idThread" , & self . idThread ) . field ( "idThreadInstaller" , & self . idThreadInstaller ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "code" , & self . code ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEBUGHOOKINFO { fn eq ( & self , other : & Self ) -> bool { self . idThread == other . idThread && self . idThreadInstaller == other . idThreadInstaller && self . lParam == other . lParam && self . wParam == other . wParam && self . code == other . code } } impl :: std :: cmp :: Eq for DEBUGHOOKINFO { } unsafe impl :: windows :: Abi for DEBUGHOOKINFO { type Abi = Self ; type DefaultType = Self ; } pub type DESKTOPENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type DESKTOPENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub const DESKTOP_CREATEMENU : i32 = 4i32 ; pub const DESKTOP_CREATEWINDOW : i32 = 2i32 ; pub const DESKTOP_ENUMERATE : i32 = 64i32 ; pub const DESKTOP_HOOKCONTROL : i32 = 8i32 ; pub const DESKTOP_JOURNALPLAYBACK : i32 = 32i32 ; pub const DESKTOP_JOURNALRECORD : i32 = 16i32 ; pub const DESKTOP_READOBJECTS : i32 = 1i32 ; pub const DESKTOP_SWITCHDESKTOP : i32 = 256i32 ; pub const DESKTOP_WRITEOBJECTS : i32 = 128i32 ; pub const DEVICE_NOTIFY_ALL_INTERFACE_CLASSES : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVNAMES { pub wDriverOffset : u16 , pub wDeviceOffset : u16 , pub wOutputOffset : u16 , pub wDefault : u16 } impl DEVNAMES { } impl :: std :: default :: Default for DEVNAMES { fn default ( ) -> Self { Self { wDriverOffset : 0 , wDeviceOffset : 0 , wOutputOffset : 0 , wDefault : 0 } } } impl :: std :: fmt :: Debug for DEVNAMES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DEVNAMES" ) . field ( "wDriverOffset" , & self . wDriverOffset ) . field ( "wDeviceOffset" , & self . wDeviceOffset ) . field ( "wOutputOffset" , & self . wOutputOffset ) . field ( "wDefault" , & self . wDefault ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVNAMES { fn eq ( & self , other : & Self ) -> bool { self . wDriverOffset == other . wDriverOffset && self . wDeviceOffset == other . wDeviceOffset && self . wOutputOffset == other . wOutputOffset && self . wDefault == other . wDefault } } impl :: std :: cmp :: Eq for DEVNAMES { } unsafe impl :: windows :: Abi for DEVNAMES { type Abi = Self ; type DefaultType = Self ; } pub const DF_ALLOWOTHERACCOUNTHOOK : i32 = 1i32 ; pub const DIFFERENCE : u32 = 11u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct DI_FLAGS ( pub u32 ) ; pub const DI_MASK : DI_FLAGS = DI_FLAGS ( 1u32 ) ; pub const DI_IMAGE : DI_FLAGS = DI_FLAGS ( 2u32 ) ; pub const DI_NORMAL : DI_FLAGS = DI_FLAGS ( 3u32 ) ; pub const DI_COMPAT : DI_FLAGS = DI_FLAGS ( 4u32 ) ; pub const DI_DEFAULTSIZE : DI_FLAGS = DI_FLAGS ( 8u32 ) ; pub const DI_NOMIRROR : DI_FLAGS = DI_FLAGS ( 16u32 ) ; impl :: std :: convert :: From < u32 > for DI_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DI_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for DI_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for DI_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for DI_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for DI_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const DLGC_BUTTON : u32 = 8192u32 ; pub const DLGC_DEFPUSHBUTTON : u32 = 16u32 ; pub const DLGC_HASSETSEL : u32 = 8u32 ; pub const DLGC_RADIOBUTTON : u32 = 64u32 ; pub const DLGC_STATIC : u32 = 256u32 ; pub const DLGC_UNDEFPUSHBUTTON : u32 = 32u32 ; pub const DLGC_WANTALLKEYS : u32 = 4u32 ; pub const DLGC_WANTARROWS : u32 = 1u32 ; pub const DLGC_WANTCHARS : u32 = 128u32 ; pub const DLGC_WANTMESSAGE : u32 = 4u32 ; pub const DLGC_WANTTAB : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C , packed ( 2 ) ) ] pub struct DLGITEMTEMPLATE { pub style : u32 , pub dwExtendedStyle : u32 , pub x : i16 , pub y : i16 , pub cx : i16 , pub cy : i16 , pub id : u16 } impl DLGITEMTEMPLATE { } impl :: std :: cmp :: PartialEq for DLGITEMTEMPLATE { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DLGITEMTEMPLATE { } unsafe impl :: windows :: Abi for DLGITEMTEMPLATE { type Abi = Self ; type DefaultType = Self ; } pub type DLGPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> isize ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C , packed ( 2 ) ) ] pub struct DLGTEMPLATE { pub style : u32 , pub dwExtendedStyle : u32 , pub cdit : u16 , pub x : i16 , pub y : i16 , pub cx : i16 , pub cy : i16 } impl DLGTEMPLATE { } impl :: std :: cmp :: PartialEq for DLGTEMPLATE { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DLGTEMPLATE { } unsafe impl :: windows :: Abi for DLGTEMPLATE { type Abi = Self ; type DefaultType = Self ; } pub const DLGWINDOWEXTRA : u32 = 30u32 ; pub const DM_GETDEFID : u32 = 1024u32 ; pub const DM_POINTERHITTEST : u32 = 592u32 ; pub const DM_REPOSITION : u32 = 1026u32 ; pub const DM_SETDEFID : u32 = 1025u32 ; pub const DN_DEFAULTPRN : u32 = 1u32 ; pub const DOF_DIRECTORY : u32 = 32771u32 ; pub const DOF_DOCUMENT : u32 = 32770u32 ; pub const DOF_EXECUTABLE : u32 = 32769u32 ; pub const DOF_MULTIPLE : u32 = 32772u32 ; pub const DOF_PROGMAN : u32 = 1u32 ; pub const DOF_SHELLDATA : u32 = 2u32 ; pub const DO_DROPFILE : i32 = 1162627398i32 ; pub const DO_PRINTFILE : i32 = 1414419024i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DROPSTRUCT { pub hwndSource : super::super::Foundation:: HWND , pub hwndSink : super::super::Foundation:: HWND , pub wFmt : u32 , pub dwData : usize , pub ptDrop : super::super::Foundation:: POINT , pub dwControlData : u32 } impl DROPSTRUCT { } impl :: std :: default :: Default for DROPSTRUCT { fn default ( ) -> Self { Self { hwndSource : :: std :: default :: Default :: default ( ) , hwndSink : :: std :: default :: Default :: default ( ) , wFmt : 0 , dwData : 0 , ptDrop : :: std :: default :: Default :: default ( ) , dwControlData : 0 } } } impl :: std :: fmt :: Debug for DROPSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DROPSTRUCT" ) . field ( "hwndSource" , & self . hwndSource ) . field ( "hwndSink" , & self . hwndSink ) . field ( "wFmt" , & self . wFmt ) . field ( "dwData" , & self . dwData ) . field ( "ptDrop" , & self . ptDrop ) . field ( "dwControlData" , & self . dwControlData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DROPSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hwndSource == other . hwndSource && self . hwndSink == other . hwndSink && self . wFmt == other . wFmt && self . dwData == other . dwData && self . ptDrop == other . ptDrop && self . dwControlData == other . dwControlData } } impl :: std :: cmp :: Eq for DROPSTRUCT { } unsafe impl :: windows :: Abi for DROPSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const DS_3DLOOK : i32 = 4i32 ; pub const DS_ABSALIGN : i32 = 1i32 ; pub const DS_CENTER : i32 = 2048i32 ; pub const DS_CENTERMOUSE : i32 = 4096i32 ; pub const DS_CONTEXTHELP : i32 = 8192i32 ; pub const DS_CONTROL : i32 = 1024i32 ; pub const DS_FIXEDSYS : i32 = 8i32 ; pub const DS_LOCALEDIT : i32 = 32i32 ; pub const DS_MODALFRAME : i32 = 128i32 ; pub const DS_NOFAILCREATE : i32 = 16i32 ; pub const DS_NOIDLEMSG : i32 = 256i32 ; pub const DS_SETFONT : i32 = 64i32 ; pub const DS_SETFOREGROUND : i32 = 512i32 ; pub const DS_SYSMODAL : i32 = 2i32 ; pub const DS_USEPIXELS : i32 = 32768i32 ; pub const DWLP_MSGRESULT : u32 = 0u32 ; pub const DWL_DLGPROC : u32 = 4u32 ; pub const DWL_MSGRESULT : u32 = 0u32 ; pub const DWL_USER : u32 = 8u32 ; pub unsafe fn DefDlgProcA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefDlgProcA ( hdlg : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefDlgProcA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefDlgProcW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefDlgProcW ( hdlg : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefDlgProcW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefFrameProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndmdiclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefFrameProcA ( hwnd : super::super::Foundation:: HWND , hwndmdiclient : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefFrameProcA ( hwnd . into_param ( ) . abi ( ) , hwndmdiclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefFrameProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndmdiclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefFrameProcW ( hwnd : super::super::Foundation:: HWND , hwndmdiclient : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefFrameProcW ( hwnd . into_param ( ) . abi ( ) , hwndmdiclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefMDIChildProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefMDIChildProcA ( hwnd : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefMDIChildProcA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefMDIChildProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefMDIChildProcW ( hwnd : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefMDIChildProcW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefWindowProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefWindowProcA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefWindowProcA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefWindowProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefWindowProcW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefWindowProcW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeferWindowPos < 'a , > ( hwinposinfo : isize , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinsertafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeferWindowPos ( hwinposinfo : isize , hwnd : super::super::Foundation:: HWND , hwndinsertafter : super::super::Foundation:: HWND , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS ) -> isize ; } DeferWindowPos ( :: std :: mem :: transmute ( hwinposinfo ) , hwnd . into_param ( ) . abi ( ) , hwndinsertafter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeleteMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeleteMenu ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } DeleteMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeregisterShellHookWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeregisterShellHookWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DeregisterShellHookWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyAcceleratorTable < 'a , > ( haccel : impl :: windows :: IntoParam < 'a , HACCEL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyAcceleratorTable ( haccel : HACCEL ) -> super::super::Foundation:: BOOL ; } DestroyAcceleratorTable ( haccel . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyCaret < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyCaret ( ) -> super::super::Foundation:: BOOL ; } DestroyCaret ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyCursor < 'a , > ( hcursor : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyCursor ( hcursor : HCURSOR ) -> super::super::Foundation:: BOOL ; } DestroyCursor ( hcursor . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyIcon < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyIcon ( hicon : HICON ) -> super::super::Foundation:: BOOL ; } DestroyIcon ( hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyIndexedResults < 'a , > ( resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiercount : u32 , qualifiers : * mut IndexedResourceQualifier , ) { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn DestroyIndexedResults ( resourceuri : super::super::Foundation:: PWSTR , qualifiercount : u32 , qualifiers : * mut IndexedResourceQualifier ) ; } DestroyIndexedResults ( resourceuri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( qualifiercount ) , :: std :: mem :: transmute ( qualifiers ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyMenu ( hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } DestroyMenu ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyResourceIndexer < > ( resourceindexer : * mut :: std :: ffi :: c_void , ) { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn DestroyResourceIndexer ( resourceindexer : * mut :: std :: ffi :: c_void ) ; } DestroyResourceIndexer ( :: std :: mem :: transmute ( resourceindexer ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DestroyWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxIndirectParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxIndirectParamA ( hinstance : super::super::Foundation:: HINSTANCE , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxIndirectParamA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( hdialogtemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxIndirectParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxIndirectParamW ( hinstance : super::super::Foundation:: HINSTANCE , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxIndirectParamW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( hdialogtemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxParamA ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PWSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxParamW ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DisableProcessWindowsGhosting < > ( ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DisableProcessWindowsGhosting ( ) ; } DisableProcessWindowsGhosting ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DispatchMessageA < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DispatchMessageA ( lpmsg : * const MSG ) -> super::super::Foundation:: LRESULT ; } DispatchMessageA ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DispatchMessageW < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DispatchMessageW ( lpmsg : * const MSG ) -> super::super::Foundation:: LRESULT ; } DispatchMessageW ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DragObject < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndfrom : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , fmt : u32 , data : usize , hcur : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DragObject ( hwndparent : super::super::Foundation:: HWND , hwndfrom : super::super::Foundation:: HWND , fmt : u32 , data : usize , hcur : HCURSOR ) -> u32 ; } DragObject ( hwndparent . into_param ( ) . abi ( ) , hwndfrom . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fmt ) , :: std :: mem :: transmute ( data ) , hcur . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawIcon < 'a , > ( hdc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , x : i32 , y : i32 , hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawIcon ( hdc : super::super::Graphics::Gdi:: HDC , x : i32 , y : i32 , hicon : HICON ) -> super::super::Foundation:: BOOL ; } DrawIcon ( hdc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawIconEx < 'a , > ( hdc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , xleft : i32 , ytop : i32 , hicon : impl :: windows :: IntoParam < 'a , HICON > , cxwidth : i32 , cywidth : i32 , istepifanicur : u32 , hbrflickerfreedraw : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBRUSH > , diflags : DI_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawIconEx ( hdc : super::super::Graphics::Gdi:: HDC , xleft : i32 , ytop : i32 , hicon : HICON , cxwidth : i32 , cywidth : i32 , istepifanicur : u32 , hbrflickerfreedraw : super::super::Graphics::Gdi:: HBRUSH , diflags : DI_FLAGS ) -> super::super::Foundation:: BOOL ; } DrawIconEx ( hdc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( xleft ) , :: std :: mem :: transmute ( ytop ) , hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cxwidth ) , :: std :: mem :: transmute ( cywidth ) , :: std :: mem :: transmute ( istepifanicur ) , hbrflickerfreedraw . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( diflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawMenuBar < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawMenuBar ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DrawMenuBar ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const EC_LEFTMARGIN : u32 = 1u32 ; pub const EC_RIGHTMARGIN : u32 = 2u32 ; pub const EC_USEFONTINFO : u32 = 65535u32 ; pub const EDD_GET_DEVICE_INTERFACE_NAME : 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 EDIT_CONTROL_FEATURE ( pub i32 ) ; pub const EDIT_CONTROL_FEATURE_ENTERPRISE_DATA_PROTECTION_PASTE_SUPPORT : EDIT_CONTROL_FEATURE = EDIT_CONTROL_FEATURE ( 0i32 ) ; pub const EDIT_CONTROL_FEATURE_PASTE_NOTIFICATIONS : EDIT_CONTROL_FEATURE = EDIT_CONTROL_FEATURE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EDIT_CONTROL_FEATURE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EDIT_CONTROL_FEATURE { type Abi = Self ; type DefaultType = Self ; } pub const EDS_RAWMODE : u32 = 2u32 ; pub const EDS_ROTATEDMODE : u32 = 4u32 ; pub const EIMES_CANCELCOMPSTRINFOCUS : u32 = 2u32 ; pub const EIMES_COMPLETECOMPSTRKILLFOCUS : u32 = 4u32 ; pub const EIMES_GETCOMPSTRATONCE : u32 = 1u32 ; pub const EMSIS_COMPOSITIONSTRING : u32 = 1u32 ; pub const ENDSESSION_CLOSEAPP : u32 = 1u32 ; pub const ENDSESSION_CRITICAL : u32 = 1073741824u32 ; pub const ENDSESSION_LOGOFF : u32 = 2147483648u32 ; pub const EN_AFTER_PASTE : u32 = 2049u32 ; pub const EN_ALIGN_LTR_EC : u32 = 1792u32 ; pub const EN_ALIGN_RTL_EC : u32 = 1793u32 ; pub const EN_BEFORE_PASTE : u32 = 2048u32 ; pub const EN_CHANGE : u32 = 768u32 ; pub const EN_ERRSPACE : u32 = 1280u32 ; pub const EN_HSCROLL : u32 = 1537u32 ; pub const EN_KILLFOCUS : u32 = 512u32 ; pub const EN_MAXTEXT : u32 = 1281u32 ; pub const EN_SETFOCUS : u32 = 256u32 ; pub const EN_UPDATE : u32 = 1024u32 ; pub const EN_VSCROLL : u32 = 1538u32 ; pub const ES_AUTOHSCROLL : i32 = 128i32 ; pub const ES_AUTOVSCROLL : i32 = 64i32 ; pub const ES_CENTER : i32 = 1i32 ; pub const ES_LEFT : i32 = 0i32 ; pub const ES_LOWERCASE : i32 = 16i32 ; pub const ES_MULTILINE : i32 = 4i32 ; pub const ES_NOHIDESEL : i32 = 256i32 ; pub const ES_NUMBER : i32 = 8192i32 ; pub const ES_OEMCONVERT : i32 = 1024i32 ; pub const ES_PASSWORD : i32 = 32i32 ; pub const ES_READONLY : i32 = 2048i32 ; pub const ES_RIGHT : i32 = 2i32 ; pub const ES_UPPERCASE : i32 = 8i32 ; pub const ES_WANTRETURN : i32 = 4096i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EVENTMSG { pub message : u32 , pub paramL : u32 , pub paramH : u32 , pub time : u32 , pub hwnd : super::super::Foundation:: HWND } impl EVENTMSG { } impl :: std :: default :: Default for EVENTMSG { fn default ( ) -> Self { Self { message : 0 , paramL : 0 , paramH : 0 , time : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for EVENTMSG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "EVENTMSG" ) . field ( "message" , & self . message ) . field ( "paramL" , & self . paramL ) . field ( "paramH" , & self . paramH ) . field ( "time" , & self . time ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for EVENTMSG { fn eq ( & self , other : & Self ) -> bool { self . message == other . message && self . paramL == other . paramL && self . paramH == other . paramH && self . time == other . time && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for EVENTMSG { } unsafe impl :: windows :: Abi for EVENTMSG { type Abi = Self ; type DefaultType = Self ; } pub const EVENT_AIA_END : u32 = 45055u32 ; pub const EVENT_AIA_START : u32 = 40960u32 ; pub const EVENT_CONSOLE_CARET : u32 = 16385u32 ; pub const EVENT_CONSOLE_END : u32 = 16639u32 ; pub const EVENT_CONSOLE_END_APPLICATION : u32 = 16391u32 ; pub const EVENT_CONSOLE_LAYOUT : u32 = 16389u32 ; pub const EVENT_CONSOLE_START_APPLICATION : u32 = 16390u32 ; pub const EVENT_CONSOLE_UPDATE_REGION : u32 = 16386u32 ; pub const EVENT_CONSOLE_UPDATE_SCROLL : u32 = 16388u32 ; pub const EVENT_CONSOLE_UPDATE_SIMPLE : u32 = 16387u32 ; pub const EVENT_MAX : u32 = 2147483647u32 ; pub const EVENT_MIN : u32 = 1u32 ; pub const EVENT_OBJECT_ACCELERATORCHANGE : u32 = 32786u32 ; pub const EVENT_OBJECT_CLOAKED : u32 = 32791u32 ; pub const EVENT_OBJECT_CONTENTSCROLLED : u32 = 32789u32 ; pub const EVENT_OBJECT_CREATE : u32 = 32768u32 ; pub const EVENT_OBJECT_DEFACTIONCHANGE : u32 = 32785u32 ; pub const EVENT_OBJECT_DESCRIPTIONCHANGE : u32 = 32781u32 ; pub const EVENT_OBJECT_DESTROY : u32 = 32769u32 ; pub const EVENT_OBJECT_DRAGCANCEL : u32 = 32802u32 ; pub const EVENT_OBJECT_DRAGCOMPLETE : u32 = 32803u32 ; pub const EVENT_OBJECT_DRAGDROPPED : u32 = 32806u32 ; pub const EVENT_OBJECT_DRAGENTER : u32 = 32804u32 ; pub const EVENT_OBJECT_DRAGLEAVE : u32 = 32805u32 ; pub const EVENT_OBJECT_DRAGSTART : u32 = 32801u32 ; pub const EVENT_OBJECT_END : u32 = 33023u32 ; pub const EVENT_OBJECT_FOCUS : u32 = 32773u32 ; pub const EVENT_OBJECT_HELPCHANGE : u32 = 32784u32 ; pub const EVENT_OBJECT_HIDE : u32 = 32771u32 ; pub const EVENT_OBJECT_HOSTEDOBJECTSINVALIDATED : u32 = 32800u32 ; pub const EVENT_OBJECT_IME_CHANGE : u32 = 32809u32 ; pub const EVENT_OBJECT_IME_HIDE : u32 = 32808u32 ; pub const EVENT_OBJECT_IME_SHOW : u32 = 32807u32 ; pub const EVENT_OBJECT_INVOKED : u32 = 32787u32 ; pub const EVENT_OBJECT_LIVEREGIONCHANGED : u32 = 32793u32 ; pub const EVENT_OBJECT_LOCATIONCHANGE : u32 = 32779u32 ; pub const EVENT_OBJECT_NAMECHANGE : u32 = 32780u32 ; pub const EVENT_OBJECT_PARENTCHANGE : u32 = 32783u32 ; pub const EVENT_OBJECT_REORDER : u32 = 32772u32 ; pub const EVENT_OBJECT_SELECTION : u32 = 32774u32 ; pub const EVENT_OBJECT_SELECTIONADD : u32 = 32775u32 ; pub const EVENT_OBJECT_SELECTIONREMOVE : u32 = 32776u32 ; pub const EVENT_OBJECT_SELECTIONWITHIN : u32 = 32777u32 ; pub const EVENT_OBJECT_SHOW : u32 = 32770u32 ; pub const EVENT_OBJECT_STATECHANGE : u32 = 32778u32 ; pub const EVENT_OBJECT_TEXTEDIT_CONVERSIONTARGETCHANGED : u32 = 32816u32 ; pub const EVENT_OBJECT_TEXTSELECTIONCHANGED : u32 = 32788u32 ; pub const EVENT_OBJECT_UNCLOAKED : u32 = 32792u32 ; pub const EVENT_OBJECT_VALUECHANGE : u32 = 32782u32 ; pub const EVENT_OEM_DEFINED_END : u32 = 511u32 ; pub const EVENT_OEM_DEFINED_START : u32 = 257u32 ; pub const EVENT_SYSTEM_ALERT : u32 = 2u32 ; pub const EVENT_SYSTEM_ARRANGMENTPREVIEW : u32 = 32790u32 ; pub const EVENT_SYSTEM_CAPTUREEND : u32 = 9u32 ; pub const EVENT_SYSTEM_CAPTURESTART : u32 = 8u32 ; pub const EVENT_SYSTEM_CONTEXTHELPEND : u32 = 13u32 ; pub const EVENT_SYSTEM_CONTEXTHELPSTART : u32 = 12u32 ; pub const EVENT_SYSTEM_DESKTOPSWITCH : u32 = 32u32 ; pub const EVENT_SYSTEM_DIALOGEND : u32 = 17u32 ; pub const EVENT_SYSTEM_DIALOGSTART : u32 = 16u32 ; pub const EVENT_SYSTEM_DRAGDROPEND : u32 = 15u32 ; pub const EVENT_SYSTEM_DRAGDROPSTART : u32 = 14u32 ; pub const EVENT_SYSTEM_END : u32 = 255u32 ; pub const EVENT_SYSTEM_FOREGROUND : u32 = 3u32 ; pub const EVENT_SYSTEM_IME_KEY_NOTIFICATION : u32 = 41u32 ; pub const EVENT_SYSTEM_MENUEND : u32 = 5u32 ; pub const EVENT_SYSTEM_MENUPOPUPEND : u32 = 7u32 ; pub const EVENT_SYSTEM_MENUPOPUPSTART : u32 = 6u32 ; pub const EVENT_SYSTEM_MENUSTART : u32 = 4u32 ; pub const EVENT_SYSTEM_MINIMIZEEND : u32 = 23u32 ; pub const EVENT_SYSTEM_MINIMIZESTART : u32 = 22u32 ; pub const EVENT_SYSTEM_MOVESIZEEND : u32 = 11u32 ; pub const EVENT_SYSTEM_MOVESIZESTART : u32 = 10u32 ; pub const EVENT_SYSTEM_SCROLLINGEND : u32 = 19u32 ; pub const EVENT_SYSTEM_SCROLLINGSTART : u32 = 18u32 ; pub const EVENT_SYSTEM_SOUND : u32 = 1u32 ; pub const EVENT_SYSTEM_SWITCHEND : u32 = 21u32 ; pub const EVENT_SYSTEM_SWITCHER_APPDROPPED : u32 = 38u32 ; pub const EVENT_SYSTEM_SWITCHER_APPGRABBED : u32 = 36u32 ; pub const EVENT_SYSTEM_SWITCHER_APPOVERTARGET : u32 = 37u32 ; pub const EVENT_SYSTEM_SWITCHER_CANCELLED : u32 = 39u32 ; pub const EVENT_SYSTEM_SWITCHSTART : u32 = 20u32 ; pub const EVENT_UIA_EVENTID_END : u32 = 20223u32 ; pub const EVENT_UIA_EVENTID_START : u32 = 19968u32 ; pub const EVENT_UIA_PROPID_END : u32 = 30207u32 ; pub const EVENT_UIA_PROPID_START : u32 = 29952u32 ; pub const EWX_ARSO : u32 = 67108864u32 ; pub const EWX_BOOTOPTIONS : u32 = 16777216u32 ; pub const EWX_FORCE : u32 = 4u32 ; pub const EWX_FORCEIFHUNG : u32 = 16u32 ; pub const EWX_QUICKRESOLVE : u32 = 32u32 ; pub unsafe fn EnableMenuItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidenableitem : u32 , uenable : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnableMenuItem ( hmenu : HMENU , uidenableitem : u32 , uenable : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } EnableMenuItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidenableitem ) , :: std :: mem :: transmute ( uenable ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndDeferWindowPos < > ( hwinposinfo : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndDeferWindowPos ( hwinposinfo : isize ) -> super::super::Foundation:: BOOL ; } EndDeferWindowPos ( :: std :: mem :: transmute ( hwinposinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndDialog < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nresult : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndDialog ( hdlg : super::super::Foundation:: HWND , nresult : isize ) -> super::super::Foundation:: BOOL ; } EndDialog ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndMenu < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndMenu ( ) -> super::super::Foundation:: BOOL ; } EndMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumChildWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumChildWindows ( hwndparent : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumChildWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCA > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsA ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr ) -> i32 ; } EnumPropsA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsExA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCEXA > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsExA ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } EnumPropsExA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsExW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCEXW > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsExW ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } EnumPropsExW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCW > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsW ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr ) -> i32 ; } EnumPropsW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumThreadWindows < 'a , > ( dwthreadid : u32 , lpfn : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumThreadWindows ( dwthreadid : u32 , lpfn : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumThreadWindows ( :: std :: mem :: transmute ( dwthreadid ) , :: std :: mem :: transmute ( lpfn ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumWindows < 'a , > ( lpenumfunc : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumWindows ( lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumWindows ( :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const FALT : u32 = 16u32 ; pub const FAPPCOMMAND_KEY : u32 = 0u32 ; pub const FAPPCOMMAND_MASK : u32 = 61440u32 ; pub const FAPPCOMMAND_MOUSE : u32 = 32768u32 ; pub const FAPPCOMMAND_OEM : u32 = 4096u32 ; pub const FCONTROL : u32 = 8u32 ; pub const FE_FONTSMOOTHINGCLEARTYPE : u32 = 2u32 ; pub const FE_FONTSMOOTHINGORIENTATIONBGR : u32 = 0u32 ; pub const FE_FONTSMOOTHINGORIENTATIONRGB : u32 = 1u32 ; pub const FE_FONTSMOOTHINGSTANDARD : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct FINDREPLACEA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PSTR , pub lpstrReplaceWith : super::super::Foundation:: PSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPFRHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl FINDREPLACEA { } impl :: std :: default :: Default for FINDREPLACEA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , lpstrFindWhat : :: std :: default :: Default :: default ( ) , lpstrReplaceWith : :: std :: default :: Default :: default ( ) , wFindWhatLen : 0 , wReplaceWithLen : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for FINDREPLACEA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FINDREPLACEA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "Flags" , & self . Flags ) . field ( "lpstrFindWhat" , & self . lpstrFindWhat ) . field ( "lpstrReplaceWith" , & self . lpstrReplaceWith ) . field ( "wFindWhatLen" , & self . wFindWhatLen ) . field ( "wReplaceWithLen" , & self . wReplaceWithLen ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FINDREPLACEA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . Flags == other . Flags && self . lpstrFindWhat == other . lpstrFindWhat && self . lpstrReplaceWith == other . lpstrReplaceWith && self . wFindWhatLen == other . wFindWhatLen && self . wReplaceWithLen == other . wReplaceWithLen && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for FINDREPLACEA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct FINDREPLACEA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PSTR , pub lpstrReplaceWith : super::super::Foundation:: PSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for FINDREPLACEA { type Abi = FINDREPLACEA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct FINDREPLACEW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PWSTR , pub lpstrReplaceWith : super::super::Foundation:: PWSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPFRHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl FINDREPLACEW { } impl :: std :: default :: Default for FINDREPLACEW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , lpstrFindWhat : :: std :: default :: Default :: default ( ) , lpstrReplaceWith : :: std :: default :: Default :: default ( ) , wFindWhatLen : 0 , wReplaceWithLen : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for FINDREPLACEW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FINDREPLACEW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "Flags" , & self . Flags ) . field ( "lpstrFindWhat" , & self . lpstrFindWhat ) . field ( "lpstrReplaceWith" , & self . lpstrReplaceWith ) . field ( "wFindWhatLen" , & self . wFindWhatLen ) . field ( "wReplaceWithLen" , & self . wReplaceWithLen ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FINDREPLACEW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . Flags == other . Flags && self . lpstrFindWhat == other . lpstrFindWhat && self . lpstrReplaceWith == other . lpstrReplaceWith && self . wFindWhatLen == other . wFindWhatLen && self . wReplaceWithLen == other . wReplaceWithLen && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for FINDREPLACEW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct FINDREPLACEW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PWSTR , pub lpstrReplaceWith : super::super::Foundation:: PWSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for FINDREPLACEW { type Abi = FINDREPLACEW_abi ; 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 FINDREPLACE_FLAGS ( pub u32 ) ; pub const FR_DIALOGTERM : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 64u32 ) ; pub const FR_DOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 1u32 ) ; pub const FR_ENABLEHOOK : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 256u32 ) ; pub const FR_ENABLETEMPLATE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 512u32 ) ; pub const FR_ENABLETEMPLATEHANDLE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 8192u32 ) ; pub const FR_FINDNEXT : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 8u32 ) ; pub const FR_HIDEUPDOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 16384u32 ) ; pub const FR_HIDEMATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 32768u32 ) ; pub const FR_HIDEWHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 65536u32 ) ; pub const FR_MATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 4u32 ) ; pub const FR_NOMATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 2048u32 ) ; pub const FR_NOUPDOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 1024u32 ) ; pub const FR_NOWHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 4096u32 ) ; pub const FR_REPLACE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 16u32 ) ; pub const FR_REPLACEALL : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 32u32 ) ; pub const FR_SHOWHELP : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 128u32 ) ; pub const FR_WHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for FINDREPLACE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for FINDREPLACE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for FINDREPLACE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for FINDREPLACE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for FINDREPLACE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for FINDREPLACE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const FKF_AVAILABLE : u32 = 2u32 ; pub const FKF_CLICKON : u32 = 64u32 ; pub const FKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const FKF_FILTERKEYSON : u32 = 1u32 ; pub const FKF_HOTKEYACTIVE : u32 = 4u32 ; pub const FKF_HOTKEYSOUND : u32 = 16u32 ; pub const FKF_INDICATOR : u32 = 32u32 ; pub const FNOINVERT : u32 = 2u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct FOREGROUND_WINDOW_LOCK_CODE ( pub u32 ) ; pub const LSFW_LOCK : FOREGROUND_WINDOW_LOCK_CODE = FOREGROUND_WINDOW_LOCK_CODE ( 1u32 ) ; pub const LSFW_UNLOCK : FOREGROUND_WINDOW_LOCK_CODE = FOREGROUND_WINDOW_LOCK_CODE ( 2u32 ) ; impl :: std :: convert :: From < u32 > for FOREGROUND_WINDOW_LOCK_CODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for FOREGROUND_WINDOW_LOCK_CODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for FOREGROUND_WINDOW_LOCK_CODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for FOREGROUND_WINDOW_LOCK_CODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for FOREGROUND_WINDOW_LOCK_CODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for FOREGROUND_WINDOW_LOCK_CODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const FRM_FIRST : u32 = 1124u32 ; pub const FRM_LAST : u32 = 1224u32 ; pub const FRM_SETOPERATIONRESULT : u32 = 1124u32 ; pub const FRM_SETOPERATIONRESULTTEXT : u32 = 1125u32 ; pub const FR_NOWRAPAROUND : u32 = 524288u32 ; pub const FR_RAW : u32 = 131072u32 ; pub const FR_SHOWWRAPAROUND : u32 = 262144u32 ; pub const FR_WRAPAROUND : u32 = 1048576u32 ; pub const FSHIFT : u32 = 4u32 ; pub const FVIRTKEY : u32 = 1u32 ; pub unsafe fn FindTextA < > ( param0 : * mut FINDREPLACEA , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn FindTextA ( param0 : * mut FINDREPLACEA_abi ) -> super::super::Foundation:: HWND ; } FindTextA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindTextW < > ( param0 : * mut FINDREPLACEW , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn FindTextW ( param0 : * mut FINDREPLACEW_abi ) -> super::super::Foundation:: HWND ; } FindTextW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowA ( lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HWND ; } FindWindowA ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowExA < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndchildafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszwindow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowExA ( hwndparent : super::super::Foundation:: HWND , hwndchildafter : super::super::Foundation:: HWND , lpszclass : super::super::Foundation:: PSTR , lpszwindow : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HWND ; } FindWindowExA ( hwndparent . into_param ( ) . abi ( ) , hwndchildafter . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , lpszwindow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowExW < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndchildafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszwindow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowExW ( hwndparent : super::super::Foundation:: HWND , hwndchildafter : super::super::Foundation:: HWND , lpszclass : super::super::Foundation:: PWSTR , lpszwindow : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HWND ; } FindWindowExW ( hwndparent . into_param ( ) . abi ( ) , hwndchildafter . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , lpszwindow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowW ( lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HWND ; } FindWindowW ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const GCF_INCLUDE_ANCESTORS : 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 GDI_IMAGE_TYPE ( pub u32 ) ; pub const IMAGE_BITMAP : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 0u32 ) ; pub const IMAGE_CURSOR : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 2u32 ) ; pub const IMAGE_ICON : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 1u32 ) ; impl :: std :: convert :: From < u32 > for GDI_IMAGE_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GDI_IMAGE_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GDI_IMAGE_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GDI_IMAGE_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GDI_IMAGE_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GDI_IMAGE_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GESTURECONFIGMAXCOUNT : u32 = 256u32 ; pub const GESTUREVISUALIZATION_DOUBLETAP : u32 = 2u32 ; pub const GESTUREVISUALIZATION_OFF : u32 = 0u32 ; pub const GESTUREVISUALIZATION_ON : u32 = 31u32 ; pub const GESTUREVISUALIZATION_PRESSANDHOLD : u32 = 8u32 ; pub const GESTUREVISUALIZATION_PRESSANDTAP : u32 = 4u32 ; pub const GESTUREVISUALIZATION_RIGHTTAP : u32 = 16u32 ; pub const GESTUREVISUALIZATION_TAP : 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 GET_ANCESTOR_FLAGS ( pub u32 ) ; pub const GA_PARENT : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 1u32 ) ; pub const GA_ROOT : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 2u32 ) ; pub const GA_ROOTOWNER : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 3u32 ) ; impl :: std :: convert :: From < u32 > for GET_ANCESTOR_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_ANCESTOR_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_ANCESTOR_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_ANCESTOR_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_ANCESTOR_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_ANCESTOR_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct GET_CLASS_LONG_INDEX ( pub i32 ) ; pub const GCW_ATOM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -32i32 ) ; pub const GCL_CBCLSEXTRA : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -20i32 ) ; pub const GCL_CBWNDEXTRA : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -18i32 ) ; pub const GCL_HBRBACKGROUND : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -10i32 ) ; pub const GCL_HCURSOR : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -12i32 ) ; pub const GCL_HICON : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -14i32 ) ; pub const GCL_HICONSM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -34i32 ) ; pub const GCL_HMODULE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -16i32 ) ; pub const GCL_MENUNAME : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -8i32 ) ; pub const GCL_STYLE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -26i32 ) ; pub const GCL_WNDPROC : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -24i32 ) ; pub const GCLP_HBRBACKGROUND : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -10i32 ) ; pub const GCLP_HCURSOR : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -12i32 ) ; pub const GCLP_HICON : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -14i32 ) ; pub const GCLP_HICONSM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -34i32 ) ; pub const GCLP_HMODULE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -16i32 ) ; pub const GCLP_MENUNAME : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -8i32 ) ; pub const GCLP_WNDPROC : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -24i32 ) ; impl :: std :: convert :: From < i32 > for GET_CLASS_LONG_INDEX { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_CLASS_LONG_INDEX { 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 GET_MENU_DEFAULT_ITEM_FLAGS ( pub u32 ) ; pub const GMDI_GOINTOPOPUPS : GET_MENU_DEFAULT_ITEM_FLAGS = GET_MENU_DEFAULT_ITEM_FLAGS ( 2u32 ) ; pub const GMDI_USEDISABLED : GET_MENU_DEFAULT_ITEM_FLAGS = GET_MENU_DEFAULT_ITEM_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for GET_MENU_DEFAULT_ITEM_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_MENU_DEFAULT_ITEM_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_MENU_DEFAULT_ITEM_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_MENU_DEFAULT_ITEM_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_MENU_DEFAULT_ITEM_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_MENU_DEFAULT_ITEM_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct GET_WINDOW_CMD ( pub u32 ) ; pub const GW_CHILD : GET_WINDOW_CMD = GET_WINDOW_CMD ( 5u32 ) ; pub const GW_ENABLEDPOPUP : GET_WINDOW_CMD = GET_WINDOW_CMD ( 6u32 ) ; pub const GW_HWNDFIRST : GET_WINDOW_CMD = GET_WINDOW_CMD ( 0u32 ) ; pub const GW_HWNDLAST : GET_WINDOW_CMD = GET_WINDOW_CMD ( 1u32 ) ; pub const GW_HWNDNEXT : GET_WINDOW_CMD = GET_WINDOW_CMD ( 2u32 ) ; pub const GW_HWNDPREV : GET_WINDOW_CMD = GET_WINDOW_CMD ( 3u32 ) ; pub const GW_OWNER : GET_WINDOW_CMD = GET_WINDOW_CMD ( 4u32 ) ; impl :: std :: convert :: From < u32 > for GET_WINDOW_CMD { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_WINDOW_CMD { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_WINDOW_CMD { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_WINDOW_CMD { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_WINDOW_CMD { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_WINDOW_CMD { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GF_BEGIN : u32 = 1u32 ; pub const GF_END : u32 = 4u32 ; pub const GF_INERTIA : u32 = 2u32 ; pub const GIDC_ARRIVAL : u32 = 1u32 ; pub const GIDC_REMOVAL : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct GUITHREADINFO { pub cbSize : u32 , pub flags : GUITHREADINFO_FLAGS , pub hwndActive : super::super::Foundation:: HWND , pub hwndFocus : super::super::Foundation:: HWND , pub hwndCapture : super::super::Foundation:: HWND , pub hwndMenuOwner : super::super::Foundation:: HWND , pub hwndMoveSize : super::super::Foundation:: HWND , pub hwndCaret : super::super::Foundation:: HWND , pub rcCaret : super::super::Foundation:: RECT } impl GUITHREADINFO { } impl :: std :: default :: Default for GUITHREADINFO { fn default ( ) -> Self { Self { cbSize : 0 , flags : :: std :: default :: Default :: default ( ) , hwndActive : :: std :: default :: Default :: default ( ) , hwndFocus : :: std :: default :: Default :: default ( ) , hwndCapture : :: std :: default :: Default :: default ( ) , hwndMenuOwner : :: std :: default :: Default :: default ( ) , hwndMoveSize : :: std :: default :: Default :: default ( ) , hwndCaret : :: std :: default :: Default :: default ( ) , rcCaret : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for GUITHREADINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "GUITHREADINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "flags" , & self . flags ) . field ( "hwndActive" , & self . hwndActive ) . field ( "hwndFocus" , & self . hwndFocus ) . field ( "hwndCapture" , & self . hwndCapture ) . field ( "hwndMenuOwner" , & self . hwndMenuOwner ) . field ( "hwndMoveSize" , & self . hwndMoveSize ) . field ( "hwndCaret" , & self . hwndCaret ) . field ( "rcCaret" , & self . rcCaret ) . finish ( ) } } impl :: std :: cmp :: PartialEq for GUITHREADINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . flags == other . flags && self . hwndActive == other . hwndActive && self . hwndFocus == other . hwndFocus && self . hwndCapture == other . hwndCapture && self . hwndMenuOwner == other . hwndMenuOwner && self . hwndMoveSize == other . hwndMoveSize && self . hwndCaret == other . hwndCaret && self . rcCaret == other . rcCaret } } impl :: std :: cmp :: Eq for GUITHREADINFO { } unsafe impl :: windows :: Abi for GUITHREADINFO { 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 GUITHREADINFO_FLAGS ( pub u32 ) ; pub const GUI_CARETBLINKING : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 1u32 ) ; pub const GUI_INMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 4u32 ) ; pub const GUI_INMOVESIZE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 2u32 ) ; pub const GUI_POPUPMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 16u32 ) ; pub const GUI_SYSTEMMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for GUITHREADINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GUITHREADINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GUITHREADINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GUITHREADINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GUITHREADINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GUITHREADINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GUI_16BITTASK : u32 = 0u32 ; pub const GWFS_INCLUDE_ANCESTORS : u32 = 1u32 ; pub const GW_MAX : u32 = 5u32 ; pub unsafe fn GetAltTabInfoA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PSTR , cchitemtext : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAltTabInfoA ( hwnd : super::super::Foundation:: HWND , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PSTR , cchitemtext : u32 ) -> super::super::Foundation:: BOOL ; } GetAltTabInfoA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( iitem ) , :: std :: mem :: transmute ( pati ) , :: std :: mem :: transmute ( pszitemtext ) , :: std :: mem :: transmute ( cchitemtext ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetAltTabInfoW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PWSTR , cchitemtext : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAltTabInfoW ( hwnd : super::super::Foundation:: HWND , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PWSTR , cchitemtext : u32 ) -> super::super::Foundation:: BOOL ; } GetAltTabInfoW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( iitem ) , :: std :: mem :: transmute ( pati ) , :: std :: mem :: transmute ( pszitemtext ) , :: std :: mem :: transmute ( cchitemtext ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetAncestor < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , gaflags : GET_ANCESTOR_FLAGS , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAncestor ( hwnd : super::super::Foundation:: HWND , gaflags : GET_ANCESTOR_FLAGS ) -> super::super::Foundation:: HWND ; } GetAncestor ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( gaflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCaretBlinkTime < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCaretBlinkTime ( ) -> u32 ; } GetCaretBlinkTime ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCaretPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCaretPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetCaretPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwndclass : * mut WNDCLASSA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoA ( hinstance : super::super::Foundation:: HINSTANCE , lpclassname : super::super::Foundation:: PSTR , lpwndclass : * mut WNDCLASSA_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoA ( hinstance . into_param ( ) . abi ( ) , lpclassname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoExA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwcx : * mut WNDCLASSEXA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoExA ( hinstance : super::super::Foundation:: HINSTANCE , lpszclass : super::super::Foundation:: PSTR , lpwcx : * mut WNDCLASSEXA_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoExA ( hinstance . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwcx ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoExW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwcx : * mut WNDCLASSEXW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoExW ( hinstance : super::super::Foundation:: HINSTANCE , lpszclass : super::super::Foundation:: PWSTR , lpwcx : * mut WNDCLASSEXW_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoExW ( hinstance . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwcx ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwndclass : * mut WNDCLASSW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoW ( hinstance : super::super::Foundation:: HINSTANCE , lpclassname : super::super::Foundation:: PWSTR , lpwndclass : * mut WNDCLASSW_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoW ( hinstance . into_param ( ) . abi ( ) , lpclassname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> u32 ; } GetClassLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> usize ; } GetClassLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> usize ; } GetClassLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> u32 ; } GetClassLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassNameA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpclassname : super::super::Foundation:: PSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassNameA ( hwnd : super::super::Foundation:: HWND , lpclassname : super::super::Foundation:: PSTR , nmaxcount : i32 ) -> i32 ; } GetClassNameA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpclassname ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassNameW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpclassname : super::super::Foundation:: PWSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassNameW ( hwnd : super::super::Foundation:: HWND , lpclassname : super::super::Foundation:: PWSTR , nmaxcount : i32 ) -> i32 ; } GetClassNameW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpclassname ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 ) -> u16 ; } GetClassWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClientRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClientRect ( hwnd : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetClientRect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClipCursor < > ( lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClipCursor ( lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetClipCursor ( :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursor < > ( ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursor ( ) -> HCURSOR ; } GetCursor ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursorInfo < > ( pci : * mut CURSORINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursorInfo ( pci : * mut CURSORINFO ) -> super::super::Foundation:: BOOL ; } GetCursorInfo ( :: std :: mem :: transmute ( pci ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursorPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursorPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetCursorPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDesktopWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDesktopWindow ( ) -> super::super::Foundation:: HWND ; } GetDesktopWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDialogBaseUnits < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDialogBaseUnits ( ) -> i32 ; } GetDialogBaseUnits ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgCtrlID < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgCtrlID ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetDlgCtrlID ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItem ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 ) -> super::super::Foundation:: HWND ; } GetDlgItem ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemInt < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lptranslated : * mut super::super::Foundation:: BOOL , bsigned : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemInt ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lptranslated : * mut super::super::Foundation:: BOOL , bsigned : super::super::Foundation:: BOOL ) -> u32 ; } GetDlgItemInt ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lptranslated ) , bsigned . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemTextA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemTextA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 ) -> u32 ; } GetDlgItemTextA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemTextW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemTextW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 ) -> u32 ; } GetDlgItemTextW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDpiAwarenessContextForProcess < 'a , > ( hprocess : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::System::SystemServices:: DPI_AWARENESS_CONTEXT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDpiAwarenessContextForProcess ( hprocess : super::super::Foundation:: HANDLE ) -> super::super::System::SystemServices:: DPI_AWARENESS_CONTEXT ; } GetDpiAwarenessContextForProcess ( hprocess . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetFileTitleA < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , buf : super::super::Foundation:: PSTR , cchsize : u16 , ) -> i16 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetFileTitleA ( param0 : super::super::Foundation:: PSTR , buf : super::super::Foundation:: PSTR , cchsize : u16 ) -> i16 ; } GetFileTitleA ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( buf ) , :: std :: mem :: transmute ( cchsize ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetFileTitleW < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , buf : super::super::Foundation:: PWSTR , cchsize : u16 , ) -> i16 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetFileTitleW ( param0 : super::super::Foundation:: PWSTR , buf : super::super::Foundation:: PWSTR , cchsize : u16 ) -> i16 ; } GetFileTitleW ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( buf ) , :: std :: mem :: transmute ( cchsize ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetForegroundWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetForegroundWindow ( ) -> super::super::Foundation:: HWND ; } GetForegroundWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetGUIThreadInfo < > ( idthread : u32 , pgui : * mut GUITHREADINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetGUIThreadInfo ( idthread : u32 , pgui : * mut GUITHREADINFO ) -> super::super::Foundation:: BOOL ; } GetGUIThreadInfo ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( pgui ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfo < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfo ( hicon : HICON , piconinfo : * mut ICONINFO ) -> super::super::Foundation:: BOOL ; } GetIconInfo ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfoExA < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFOEXA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfoExA ( hicon : HICON , piconinfo : * mut ICONINFOEXA ) -> super::super::Foundation:: BOOL ; } GetIconInfoExA ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfoExW < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFOEXW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfoExW ( hicon : HICON , piconinfo : * mut ICONINFOEXW ) -> super::super::Foundation:: BOOL ; } GetIconInfoExW ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetInputState < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetInputState ( ) -> super::super::Foundation:: BOOL ; } GetInputState ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetLastActivePopup < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetLastActivePopup ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetLastActivePopup ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetLayeredWindowAttributes < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pcrkey : * mut u32 , pbalpha : * mut u8 , pdwflags : * mut LAYERED_WINDOW_ATTRIBUTES_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetLayeredWindowAttributes ( hwnd : super::super::Foundation:: HWND , pcrkey : * mut u32 , pbalpha : * mut u8 , pdwflags : * mut LAYERED_WINDOW_ATTRIBUTES_FLAGS ) -> super::super::Foundation:: BOOL ; } GetLayeredWindowAttributes ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pcrkey ) , :: std :: mem :: transmute ( pbalpha ) , :: std :: mem :: transmute ( pdwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenu ( hwnd : super::super::Foundation:: HWND ) -> HMENU ; } GetMenu ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuBarInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , idobject : super::Controls:: SCROLLBAR_OBJID , iditem : i32 , pmbi : * mut MENUBARINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuBarInfo ( hwnd : super::super::Foundation:: HWND , idobject : super::Controls:: SCROLLBAR_OBJID , iditem : i32 , pmbi : * mut MENUBARINFO ) -> super::super::Foundation:: BOOL ; } GetMenuBarInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( idobject ) , :: std :: mem :: transmute ( iditem ) , :: std :: mem :: transmute ( pmbi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuCheckMarkDimensions < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuCheckMarkDimensions ( ) -> i32 ; } GetMenuCheckMarkDimensions ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuDefaultItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , fbypos : u32 , gmdiflags : GET_MENU_DEFAULT_ITEM_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuDefaultItem ( hmenu : HMENU , fbypos : u32 , gmdiflags : GET_MENU_DEFAULT_ITEM_FLAGS ) -> u32 ; } GetMenuDefaultItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fbypos ) , :: std :: mem :: transmute ( gmdiflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuInfo < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , HMENU > , param1 : * mut MENUINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuInfo ( param0 : HMENU , param1 : * mut MENUINFO ) -> super::super::Foundation:: BOOL ; } GetMenuInfo ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( param1 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemCount < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemCount ( hmenu : HMENU ) -> i32 ; } GetMenuItemCount ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemID < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , npos : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemID ( hmenu : HMENU , npos : i32 ) -> u32 ; } GetMenuItemID ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( npos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemInfoA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemInfoA ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } GetMenuItemInfoA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemInfoW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemInfoW ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } GetMenuItemInfoW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uitem : u32 , lprcitem : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemRect ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , uitem : u32 , lprcitem : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetMenuItemRect ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uitem ) , :: std :: mem :: transmute ( lprcitem ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuState < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uid : u32 , uflags : MENU_ITEM_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuState ( hmenu : HMENU , uid : u32 , uflags : MENU_ITEM_FLAGS ) -> u32 ; } GetMenuState ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuStringA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uiditem : u32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuStringA ( hmenu : HMENU , uiditem : u32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS ) -> i32 ; } GetMenuStringA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uiditem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuStringW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uiditem : u32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuStringW ( hmenu : HMENU , uiditem : u32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS ) -> i32 ; } GetMenuStringW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uiditem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageA < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageA ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 ) -> super::super::Foundation:: BOOL ; } GetMessageA ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageExtraInfo < > ( ) -> super::super::Foundation:: LPARAM { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageExtraInfo ( ) -> super::super::Foundation:: LPARAM ; } GetMessageExtraInfo ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessagePos < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessagePos ( ) -> u32 ; } GetMessagePos ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageTime < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageTime ( ) -> i32 ; } GetMessageTime ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageW < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageW ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 ) -> super::super::Foundation:: BOOL ; } GetMessageW ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetNextDlgGroupItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hctl : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , bprevious : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetNextDlgGroupItem ( hdlg : super::super::Foundation:: HWND , hctl : super::super::Foundation:: HWND , bprevious : super::super::Foundation:: BOOL ) -> super::super::Foundation:: HWND ; } GetNextDlgGroupItem ( hdlg . into_param ( ) . abi ( ) , hctl . into_param ( ) . abi ( ) , bprevious . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetNextDlgTabItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hctl : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , bprevious : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetNextDlgTabItem ( hdlg : super::super::Foundation:: HWND , hctl : super::super::Foundation:: HWND , bprevious : super::super::Foundation:: BOOL ) -> super::super::Foundation:: HWND ; } GetNextDlgTabItem ( hdlg . into_param ( ) . abi ( ) , hctl . into_param ( ) . abi ( ) , bprevious . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetOpenFileNameA < > ( param0 : * mut OPENFILENAMEA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetOpenFileNameA ( param0 : * mut OPENFILENAMEA_abi ) -> super::super::Foundation:: BOOL ; } GetOpenFileNameA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetOpenFileNameW < > ( param0 : * mut OPENFILENAMEW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetOpenFileNameW ( param0 : * mut OPENFILENAMEW_abi ) -> super::super::Foundation:: BOOL ; } GetOpenFileNameW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetParent < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetParent ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetParent ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPhysicalCursorPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPhysicalCursorPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetPhysicalCursorPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetProcessDefaultLayout < > ( pdwdefaultlayout : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetProcessDefaultLayout ( pdwdefaultlayout : * mut u32 ) -> super::super::Foundation:: BOOL ; } GetProcessDefaultLayout ( :: std :: mem :: transmute ( pdwdefaultlayout ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HANDLE ; } GetPropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } GetPropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetQueueStatus < > ( flags : QUEUE_STATUS_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetQueueStatus ( flags : QUEUE_STATUS_FLAGS ) -> u32 ; } GetQueueStatus ( :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSaveFileNameA < > ( param0 : * mut OPENFILENAMEA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetSaveFileNameA ( param0 : * mut OPENFILENAMEA_abi ) -> super::super::Foundation:: BOOL ; } GetSaveFileNameA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSaveFileNameW < > ( param0 : * mut OPENFILENAMEW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetSaveFileNameW ( param0 : * mut OPENFILENAMEW_abi ) -> super::super::Foundation:: BOOL ; } GetSaveFileNameW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetShellWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetShellWindow ( ) -> super::super::Foundation:: HWND ; } GetShellWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSubMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , npos : i32 , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSubMenu ( hmenu : HMENU , npos : i32 ) -> HMENU ; } GetSubMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( npos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSysColor < > ( nindex : SYS_COLOR_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSysColor ( nindex : SYS_COLOR_INDEX ) -> u32 ; } GetSysColor ( :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSystemMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , brevert : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSystemMenu ( hwnd : super::super::Foundation:: HWND , brevert : super::super::Foundation:: BOOL ) -> HMENU ; } GetSystemMenu ( hwnd . into_param ( ) . abi ( ) , brevert . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSystemMetrics < > ( nindex : SYSTEM_METRICS_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSystemMetrics ( nindex : SYSTEM_METRICS_INDEX ) -> i32 ; } GetSystemMetrics ( :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetTitleBarInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pti : * mut TITLEBARINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetTitleBarInfo ( hwnd : super::super::Foundation:: HWND , pti : * mut TITLEBARINFO ) -> super::super::Foundation:: BOOL ; } GetTitleBarInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pti ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetTopWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetTopWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetTopWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ucmd : GET_WINDOW_CMD , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindow ( hwnd : super::super::Foundation:: HWND , ucmd : GET_WINDOW_CMD ) -> super::super::Foundation:: HWND ; } GetWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ucmd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowDisplayAffinity < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pdwaffinity : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowDisplayAffinity ( hwnd : super::super::Foundation:: HWND , pdwaffinity : * mut u32 ) -> super::super::Foundation:: BOOL ; } GetWindowDisplayAffinity ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdwaffinity ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pwi : * mut WINDOWINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowInfo ( hwnd : super::super::Foundation:: HWND , pwi : * mut WINDOWINFO ) -> super::super::Foundation:: BOOL ; } GetWindowInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pwi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> i32 ; } GetWindowLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> isize ; } GetWindowLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> isize ; } GetWindowLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> i32 ; } GetWindowLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowModuleFileNameA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pszfilename : super::super::Foundation:: PSTR , cchfilenamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowModuleFileNameA ( hwnd : super::super::Foundation:: HWND , pszfilename : super::super::Foundation:: PSTR , cchfilenamemax : u32 ) -> u32 ; } GetWindowModuleFileNameA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pszfilename ) , :: std :: mem :: transmute ( cchfilenamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowModuleFileNameW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pszfilename : super::super::Foundation:: PWSTR , cchfilenamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowModuleFileNameW ( hwnd : super::super::Foundation:: HWND , pszfilename : super::super::Foundation:: PWSTR , cchfilenamemax : u32 ) -> u32 ; } GetWindowModuleFileNameW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pszfilename ) , :: std :: mem :: transmute ( cchfilenamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowPlacement < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpwndpl : * mut WINDOWPLACEMENT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowPlacement ( hwnd : super::super::Foundation:: HWND , lpwndpl : * mut WINDOWPLACEMENT ) -> super::super::Foundation:: BOOL ; } GetWindowPlacement ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndpl ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowRect ( hwnd : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetWindowRect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : super::super::Foundation:: PSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR , nmaxcount : i32 ) -> i32 ; } GetWindowTextA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextLengthA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextLengthA ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetWindowTextLengthA ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextLengthW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextLengthW ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetWindowTextLengthW ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : super::super::Foundation:: PWSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR , nmaxcount : i32 ) -> i32 ; } GetWindowTextW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowThreadProcessId < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdwprocessid : * mut u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowThreadProcessId ( hwnd : super::super::Foundation:: HWND , lpdwprocessid : * mut u32 ) -> u32 ; } GetWindowThreadProcessId ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdwprocessid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 ) -> u16 ; } GetWindowWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HACCEL ( pub isize ) ; impl HACCEL { } impl :: std :: default :: Default for HACCEL { fn default ( ) -> Self { Self ( 0 ) } } impl HACCEL { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HACCEL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HACCEL" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HACCEL { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HACCEL { } unsafe impl :: windows :: Abi for HACCEL { 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 HANDEDNESS ( pub i32 ) ; pub const HANDEDNESS_LEFT : HANDEDNESS = HANDEDNESS ( 0i32 ) ; pub const HANDEDNESS_RIGHT : HANDEDNESS = HANDEDNESS ( 1i32 ) ; impl :: std :: convert :: From < i32 > for HANDEDNESS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for HANDEDNESS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct HARDWAREHOOKSTRUCT { pub hwnd : super::super::Foundation:: HWND , pub message : u32 , pub wParam : super::super::Foundation:: WPARAM , pub lParam : super::super::Foundation:: LPARAM } impl HARDWAREHOOKSTRUCT { } impl :: std :: default :: Default for HARDWAREHOOKSTRUCT { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , message : 0 , wParam : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for HARDWAREHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HARDWAREHOOKSTRUCT" ) . field ( "hwnd" , & self . hwnd ) . field ( "message" , & self . message ) . field ( "wParam" , & self . wParam ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HARDWAREHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . message == other . message && self . wParam == other . wParam && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for HARDWAREHOOKSTRUCT { } unsafe impl :: windows :: Abi for HARDWAREHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const HBMMENU_CALLBACK : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( -1i32 as _ ) ; pub const HBMMENU_MBAR_CLOSE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 5i32 as _ ) ; pub const HBMMENU_MBAR_CLOSE_D : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 6i32 as _ ) ; pub const HBMMENU_MBAR_MINIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 3i32 as _ ) ; pub const HBMMENU_MBAR_MINIMIZE_D : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 7i32 as _ ) ; pub const HBMMENU_MBAR_RESTORE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 2i32 as _ ) ; pub const HBMMENU_POPUP_CLOSE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 8i32 as _ ) ; pub const HBMMENU_POPUP_MAXIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 10i32 as _ ) ; pub const HBMMENU_POPUP_MINIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 11i32 as _ ) ; pub const HBMMENU_POPUP_RESTORE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 9i32 as _ ) ; pub const HBMMENU_SYSTEM : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 1i32 as _ ) ; pub const HCBT_ACTIVATE : u32 = 5u32 ; pub const HCBT_CLICKSKIPPED : u32 = 6u32 ; pub const HCBT_CREATEWND : u32 = 3u32 ; pub const HCBT_DESTROYWND : u32 = 4u32 ; pub const HCBT_KEYSKIPPED : u32 = 7u32 ; pub const HCBT_MINMAX : u32 = 1u32 ; pub const HCBT_MOVESIZE : u32 = 0u32 ; pub const HCBT_QS : u32 = 2u32 ; pub const HCBT_SETFOCUS : u32 = 9u32 ; pub const HCBT_SYSCOMMAND : u32 = 8u32 ; pub const HCF_DEFAULTDESKTOP : u32 = 512u32 ; pub const HCF_LOGONDESKTOP : u32 = 256u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HCURSOR ( pub isize ) ; impl HCURSOR { } impl :: std :: default :: Default for HCURSOR { fn default ( ) -> Self { Self ( 0 ) } } impl HCURSOR { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HCURSOR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HCURSOR" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HCURSOR { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HCURSOR { } unsafe impl :: windows :: Abi for HCURSOR { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HICON > for HCURSOR { fn into_param ( self ) -> :: windows :: Param < 'a , HICON > { :: windows :: Param :: Owned ( HICON ( self . 0 ) ) } } pub const HC_ACTION : u32 = 0u32 ; pub const HC_GETNEXT : u32 = 1u32 ; pub const HC_NOREMOVE : u32 = 3u32 ; pub const HC_SKIP : u32 = 2u32 ; pub const HC_SYSMODALOFF : u32 = 5u32 ; pub const HC_SYSMODALON : u32 = 4u32 ; pub const HELPINFO_MENUITEM : u32 = 2u32 ; pub const HELPINFO_WINDOW : u32 = 1u32 ; pub const HELP_COMMAND : i32 = 258i32 ; pub const HELP_CONTENTS : i32 = 3i32 ; pub const HELP_CONTEXT : i32 = 1i32 ; pub const HELP_CONTEXTMENU : u32 = 10u32 ; pub const HELP_CONTEXTPOPUP : i32 = 8i32 ; pub const HELP_FINDER : u32 = 11u32 ; pub const HELP_FORCEFILE : i32 = 9i32 ; pub const HELP_HELPONHELP : i32 = 4i32 ; pub const HELP_INDEX : i32 = 3i32 ; pub const HELP_KEY : i32 = 257i32 ; pub const HELP_MULTIKEY : i32 = 513i32 ; pub const HELP_PARTIALKEY : i32 = 261i32 ; pub const HELP_QUIT : i32 = 2i32 ; pub const HELP_SETCONTENTS : i32 = 5i32 ; pub const HELP_SETINDEX : i32 = 5i32 ; pub const HELP_SETPOPUP_POS : u32 = 13u32 ; pub const HELP_SETWINPOS : i32 = 515i32 ; pub const HELP_TCARD : u32 = 32768u32 ; pub const HELP_TCARD_DATA : u32 = 16u32 ; pub const HELP_TCARD_OTHER_CALLER : u32 = 17u32 ; pub const HELP_WM_HELP : u32 = 12u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HHOOK ( pub isize ) ; impl HHOOK { } impl :: std :: default :: Default for HHOOK { fn default ( ) -> Self { Self ( 0 ) } } impl HHOOK { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HHOOK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HHOOK" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HHOOK { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HHOOK { } unsafe impl :: windows :: Abi for HHOOK { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HICON ( pub isize ) ; impl HICON { } impl :: std :: default :: Default for HICON { fn default ( ) -> Self { Self ( 0 ) } } impl HICON { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HICON { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HICON" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HICON { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HICON { } unsafe impl :: windows :: Abi for HICON { type Abi = Self ; type DefaultType = Self ; } pub const HIDE_WINDOW : u32 = 0u32 ; pub const HKL_NEXT : u32 = 1u32 ; pub const HKL_PREV : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HMENU ( pub isize ) ; impl HMENU { } impl :: std :: default :: Default for HMENU { fn default ( ) -> Self { Self ( 0 ) } } impl HMENU { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HMENU { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HMENU" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HMENU { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HMENU { } unsafe impl :: windows :: Abi for HMENU { type Abi = Self ; type DefaultType = Self ; } pub type HOOKPROC = unsafe extern "system" fn ( code : i32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; pub const HSHELL_ACCESSIBILITYSTATE : u32 = 11u32 ; pub const HSHELL_ACTIVATESHELLWINDOW : u32 = 3u32 ; pub const HSHELL_APPCOMMAND : u32 = 12u32 ; pub const HSHELL_ENDTASK : u32 = 10u32 ; pub const HSHELL_GETMINRECT : u32 = 5u32 ; pub const HSHELL_HIGHBIT : u32 = 32768u32 ; pub const HSHELL_LANGUAGE : u32 = 8u32 ; pub const HSHELL_MONITORCHANGED : u32 = 16u32 ; pub const HSHELL_REDRAW : u32 = 6u32 ; pub const HSHELL_SYSMENU : u32 = 9u32 ; pub const HSHELL_TASKMAN : u32 = 7u32 ; pub const HSHELL_WINDOWACTIVATED : u32 = 4u32 ; pub const HSHELL_WINDOWCREATED : u32 = 1u32 ; pub const HSHELL_WINDOWDESTROYED : u32 = 2u32 ; pub const HSHELL_WINDOWREPLACED : u32 = 13u32 ; pub const HSHELL_WINDOWREPLACING : u32 = 14u32 ; pub const HTBORDER : u32 = 18u32 ; pub const HTBOTTOM : u32 = 15u32 ; pub const HTBOTTOMLEFT : u32 = 16u32 ; pub const HTBOTTOMRIGHT : u32 = 17u32 ; pub const HTCAPTION : u32 = 2u32 ; pub const HTCLIENT : u32 = 1u32 ; pub const HTCLOSE : u32 = 20u32 ; pub const HTERROR : i32 = -2i32 ; pub const HTGROWBOX : u32 = 4u32 ; pub const HTHELP : u32 = 21u32 ; pub const HTHSCROLL : u32 = 6u32 ; pub const HTLEFT : u32 = 10u32 ; pub const HTMAXBUTTON : u32 = 9u32 ; pub const HTMENU : u32 = 5u32 ; pub const HTMINBUTTON : u32 = 8u32 ; pub const HTNOWHERE : u32 = 0u32 ; pub const HTOBJECT : u32 = 19u32 ; pub const HTRIGHT : u32 = 11u32 ; pub const HTSYSMENU : u32 = 3u32 ; pub const HTTOP : u32 = 12u32 ; pub const HTTOPLEFT : u32 = 13u32 ; pub const HTTOPRIGHT : u32 = 14u32 ; pub const HTTRANSPARENT : i32 = -1i32 ; pub const HTVSCROLL : u32 = 7u32 ; pub const HWND_BOTTOM : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 1i32 as _ ) ; pub const HWND_DESKTOP : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 0i32 as _ ) ; pub const HWND_MESSAGE : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -3i32 as _ ) ; pub const HWND_NOTOPMOST : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -2i32 as _ ) ; pub const HWND_TOP : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 0i32 as _ ) ; pub const HWND_TOPMOST : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -1i32 as _ ) ; pub unsafe fn HideCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn HideCaret ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } HideCaret ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn HiliteMenuItem < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidhiliteitem : u32 , uhilite : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn HiliteMenuItem ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , uidhiliteitem : u32 , uhilite : u32 ) -> super::super::Foundation:: BOOL ; } HiliteMenuItem ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidhiliteitem ) , :: std :: mem :: transmute ( uhilite ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFO { pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP } impl ICONINFO { } impl :: std :: default :: Default for ICONINFO { fn default ( ) -> Self { Self { fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFO" ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFO { fn eq ( & self , other : & Self ) -> bool { self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor } } impl :: std :: cmp :: Eq for ICONINFO { } unsafe impl :: windows :: Abi for ICONINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFOEXA { pub cbSize : u32 , pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP , pub wResID : u16 , pub szModName : [ super::super::System::SystemServices:: CHAR ;260 ] , pub szResName : [ super::super::System::SystemServices:: CHAR ;260 ] } impl ICONINFOEXA { } impl :: std :: default :: Default for ICONINFOEXA { fn default ( ) -> Self { Self { cbSize : 0 , fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) , wResID : 0 , szModName : [ :: std :: default :: Default :: default ( ) ;260 ] , szResName : [ :: std :: default :: Default :: default ( ) ;260 ] } } } impl :: std :: fmt :: Debug for ICONINFOEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFOEXA" ) . field ( "cbSize" , & self . cbSize ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . field ( "wResID" , & self . wResID ) . field ( "szModName" , & self . szModName ) . field ( "szResName" , & self . szResName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFOEXA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor && self . wResID == other . wResID && self . szModName == other . szModName && self . szResName == other . szResName } } impl :: std :: cmp :: Eq for ICONINFOEXA { } unsafe impl :: windows :: Abi for ICONINFOEXA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFOEXW { pub cbSize : u32 , pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP , pub wResID : u16 , pub szModName : [ u16 ;260 ] , pub szResName : [ u16 ;260 ] } impl ICONINFOEXW { } impl :: std :: default :: Default for ICONINFOEXW { fn default ( ) -> Self { Self { cbSize : 0 , fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) , wResID : 0 , szModName : [ 0 ;260 ] , szResName : [ 0 ;260 ] } } } impl :: std :: fmt :: Debug for ICONINFOEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFOEXW" ) . field ( "cbSize" , & self . cbSize ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . field ( "wResID" , & self . wResID ) . field ( "szModName" , & self . szModName ) . field ( "szResName" , & self . szResName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFOEXW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor && self . wResID == other . wResID && self . szModName == other . szModName && self . szResName == other . szResName } } impl :: std :: cmp :: Eq for ICONINFOEXW { } unsafe impl :: windows :: Abi for ICONINFOEXW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONMETRICSA { pub cbSize : u32 , pub iHorzSpacing : i32 , pub iVertSpacing : i32 , pub iTitleWrap : i32 , pub lfFont : super::super::Graphics::Gdi:: LOGFONTA } impl ICONMETRICSA { } impl :: std :: default :: Default for ICONMETRICSA { fn default ( ) -> Self { Self { cbSize : 0 , iHorzSpacing : 0 , iVertSpacing : 0 , iTitleWrap : 0 , lfFont : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONMETRICSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONMETRICSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "iHorzSpacing" , & self . iHorzSpacing ) . field ( "iVertSpacing" , & self . iVertSpacing ) . field ( "iTitleWrap" , & self . iTitleWrap ) . field ( "lfFont" , & self . lfFont ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONMETRICSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iHorzSpacing == other . iHorzSpacing && self . iVertSpacing == other . iVertSpacing && self . iTitleWrap == other . iTitleWrap && self . lfFont == other . lfFont } } impl :: std :: cmp :: Eq for ICONMETRICSA { } unsafe impl :: windows :: Abi for ICONMETRICSA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONMETRICSW { pub cbSize : u32 , pub iHorzSpacing : i32 , pub iVertSpacing : i32 , pub iTitleWrap : i32 , pub lfFont : super::super::Graphics::Gdi:: LOGFONTW } impl ICONMETRICSW { } impl :: std :: default :: Default for ICONMETRICSW { fn default ( ) -> Self { Self { cbSize : 0 , iHorzSpacing : 0 , iVertSpacing : 0 , iTitleWrap : 0 , lfFont : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONMETRICSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONMETRICSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "iHorzSpacing" , & self . iHorzSpacing ) . field ( "iVertSpacing" , & self . iVertSpacing ) . field ( "iTitleWrap" , & self . iTitleWrap ) . field ( "lfFont" , & self . lfFont ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONMETRICSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iHorzSpacing == other . iHorzSpacing && self . iVertSpacing == other . iVertSpacing && self . iTitleWrap == other . iTitleWrap && self . lfFont == other . lfFont } } impl :: std :: cmp :: Eq for ICONMETRICSW { } unsafe impl :: windows :: Abi for ICONMETRICSW { type Abi = Self ; type DefaultType = Self ; } pub const ICON_BIG : u32 = 1u32 ; pub const ICON_SMALL : u32 = 0u32 ; pub const ICON_SMALL2 : u32 = 2u32 ; pub const IDANI_CAPTION : u32 = 3u32 ; pub const IDANI_OPEN : u32 = 1u32 ; pub const IDC_APPSTARTING : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32650i32 as _ ) ; pub const IDC_ARROW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32512i32 as _ ) ; pub const IDC_CROSS : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32515i32 as _ ) ; pub const IDC_HAND : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32649i32 as _ ) ; pub const IDC_HELP : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32651i32 as _ ) ; pub const IDC_IBEAM : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32513i32 as _ ) ; pub const IDC_ICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32641i32 as _ ) ; pub const IDC_NO : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32648i32 as _ ) ; pub const IDC_PERSON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32672i32 as _ ) ; pub const IDC_PIN : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32671i32 as _ ) ; pub const IDC_SIZE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32640i32 as _ ) ; pub const IDC_SIZEALL : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32646i32 as _ ) ; pub const IDC_SIZENESW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32643i32 as _ ) ; pub const IDC_SIZENS : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32645i32 as _ ) ; pub const IDC_SIZENWSE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32642i32 as _ ) ; pub const IDC_SIZEWE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32644i32 as _ ) ; pub const IDC_UPARROW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32516i32 as _ ) ; pub const IDC_WAIT : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32514i32 as _ ) ; pub const IDHOT_SNAPDESKTOP : i32 = -2i32 ; pub const IDHOT_SNAPWINDOW : i32 = -1i32 ; pub const IDH_CANCEL : u32 = 28444u32 ; pub const IDH_GENERIC_HELP_BUTTON : u32 = 28442u32 ; pub const IDH_HELP : u32 = 28445u32 ; pub const IDH_MISSING_CONTEXT : u32 = 28441u32 ; pub const IDH_NO_HELP : u32 = 28440u32 ; pub const IDH_OK : u32 = 28443u32 ; pub const IDI_APPLICATION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32512u32 as _ ) ; pub const IDI_ASTERISK : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32516u32 as _ ) ; pub const IDI_EXCLAMATION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32515u32 as _ ) ; pub const IDI_HAND : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32513u32 as _ ) ; pub const IDI_QUESTION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32514u32 as _ ) ; pub const IDI_SHIELD : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32518u32 as _ ) ; pub const IDI_WINLOGO : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32517u32 as _ ) ; pub const IMAGE_ENHMETAFILE : u32 = 3u32 ; pub const INDEXID_CONTAINER : u32 = 0u32 ; pub const INDEXID_OBJECT : u32 = 0u32 ; pub const INPUTLANGCHANGE_BACKWARD : u32 = 4u32 ; pub const INPUTLANGCHANGE_FORWARD : u32 = 2u32 ; pub const INPUTLANGCHANGE_SYSCHARSET : u32 = 1u32 ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IPrintDialogCallback ( :: windows :: IUnknown ) ; impl IPrintDialogCallback { pub unsafe fn InitDone < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn SelectionChange < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn HandleMessage < 'a , > ( & self , hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , presult : * mut super::super::Foundation:: LRESULT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( presult ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IPrintDialogCallback { type Vtable = IPrintDialogCallback_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1481810627 ,25904 ,4561 , [ 182 ,163 ,0 ,0 ,248 ,117 ,123 ,249 ] , ) ; } impl :: std :: convert :: From < IPrintDialogCallback > for :: windows :: IUnknown { fn from ( value : IPrintDialogCallback ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IPrintDialogCallback > for :: windows :: IUnknown { fn from ( value : & IPrintDialogCallback ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IPrintDialogCallback { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a IPrintDialogCallback { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IPrintDialogCallback_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hdlg : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , presult : * mut super::super::Foundation:: LRESULT , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IPrintDialogServices ( :: windows :: IUnknown ) ; impl IPrintDialogServices { pub unsafe fn GetCurrentDevMode < > ( & self , pdevmode : * mut super::DisplayDevices:: DEVMODEA , pcbsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pdevmode ) , :: std :: mem :: transmute ( pcbsize ) , ) . ok ( ) } pub unsafe fn GetCurrentPrinterName < > ( & self , pprintername : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pprintername ) , :: std :: mem :: transmute ( pcchsize ) , ) . ok ( ) } pub unsafe fn GetCurrentPortName < > ( & self , pportname : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pportname ) , :: std :: mem :: transmute ( pcchsize ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IPrintDialogServices { type Vtable = IPrintDialogServices_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1352314586 ,22073 ,4561 , [ 182 ,161 ,0 ,0 ,248 ,117 ,123 ,249 ] , ) ; } impl :: std :: convert :: From < IPrintDialogServices > for :: windows :: IUnknown { fn from ( value : IPrintDialogServices ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IPrintDialogServices > for :: windows :: IUnknown { fn from ( value : & IPrintDialogServices ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IPrintDialogServices { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a IPrintDialogServices { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IPrintDialogServices_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pdevmode : * mut super::DisplayDevices:: DEVMODEA , pcbsize : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pprintername : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pportname : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: HRESULT , ) ; pub const ISMEX_CALLBACK : u32 = 4u32 ; pub const ISMEX_NOSEND : u32 = 0u32 ; pub const ISMEX_NOTIFY : u32 = 2u32 ; pub const ISMEX_REPLIED : u32 = 8u32 ; pub const ISMEX_SEND : u32 = 1u32 ; pub const ISOLATIONAWARE_MANIFEST_RESOURCE_ID : u32 = 2u32 ; pub const ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID : u32 = 3u32 ; pub const ISOLATIONPOLICY_BROWSER_MANIFEST_RESOURCE_ID : u32 = 5u32 ; pub const ISOLATIONPOLICY_MANIFEST_RESOURCE_ID : u32 = 4u32 ; pub unsafe fn InSendMessage < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InSendMessage ( ) -> super::super::Foundation:: BOOL ; } InSendMessage ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InSendMessageEx < > ( lpreserved : * mut :: std :: ffi :: c_void , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InSendMessageEx ( lpreserved : * mut :: std :: ffi :: c_void ) -> u32 ; } InSendMessageEx ( :: std :: mem :: transmute ( lpreserved ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IndexFilePath < 'a , > ( resourceindexer : * mut :: std :: ffi :: c_void , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ppresourceuri : * mut super::super::Foundation:: PWSTR , pqualifiercount : * mut u32 , ppqualifiers : * mut * mut IndexedResourceQualifier , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn IndexFilePath ( resourceindexer : * mut :: std :: ffi :: c_void , filepath : super::super::Foundation:: PWSTR , ppresourceuri : * mut super::super::Foundation:: PWSTR , pqualifiercount : * mut u32 , ppqualifiers : * mut * mut IndexedResourceQualifier ) -> :: windows :: HRESULT ; } IndexFilePath ( :: std :: mem :: transmute ( resourceindexer ) , filepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ppresourceuri ) , :: std :: mem :: transmute ( pqualifiercount ) , :: std :: mem :: transmute ( ppqualifiers ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct IndexedResourceQualifier { pub name : super::super::Foundation:: PWSTR , pub value : super::super::Foundation:: PWSTR } impl IndexedResourceQualifier { } impl :: std :: default :: Default for IndexedResourceQualifier { fn default ( ) -> Self { Self { name : :: std :: default :: Default :: default ( ) , value : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for IndexedResourceQualifier { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "IndexedResourceQualifier" ) . field ( "name" , & self . name ) . field ( "value" , & self . value ) . finish ( ) } } impl :: std :: cmp :: PartialEq for IndexedResourceQualifier { fn eq ( & self , other : & Self ) -> bool { self . name == other . name && self . value == other . value } } impl :: std :: cmp :: Eq for IndexedResourceQualifier { } unsafe impl :: windows :: Abi for IndexedResourceQualifier { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn InheritWindowMonitor < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinherit : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InheritWindowMonitor ( hwnd : super::super::Foundation:: HWND , hwndinherit : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } InheritWindowMonitor ( hwnd . into_param ( ) . abi ( ) , hwndinherit . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuA ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } InsertMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuItemA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmi : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuItemA ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmi : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } InsertMenuItemA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuItemW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmi : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuItemW ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmi : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } InsertMenuItemW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuW ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } InsertMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InternalGetWindowText < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pstring : super::super::Foundation:: PWSTR , cchmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InternalGetWindowText ( hwnd : super::super::Foundation:: HWND , pstring : super::super::Foundation:: PWSTR , cchmaxcount : i32 ) -> i32 ; } InternalGetWindowText ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pstring ) , :: std :: mem :: transmute ( cchmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharAlphaA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaNumericA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaNumericA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharAlphaNumericA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaNumericW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaNumericW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharAlphaNumericW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharAlphaW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharLowerA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharLowerA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharLowerA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharUpperA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharUpperA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharUpperA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharUpperW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharUpperW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharUpperW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsChild < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsChild ( hwndparent : super::super::Foundation:: HWND , hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsChild ( hwndparent . into_param ( ) . abi ( ) , hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsDialogMessageA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsDialogMessageA ( hdlg : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } IsDialogMessageA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsDialogMessageW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsDialogMessageW ( hdlg : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } IsDialogMessageW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsGUIThread < 'a , > ( bconvert : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsGUIThread ( bconvert : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } IsGUIThread ( bconvert . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsHungAppWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsHungAppWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsHungAppWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsIconic < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsIconic ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsIconic ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsMenu ( hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } IsMenu ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsProcessDPIAware < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsProcessDPIAware ( ) -> super::super::Foundation:: BOOL ; } IsProcessDPIAware ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindowUnicode < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindowUnicode ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindowUnicode ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindowVisible < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindowVisible ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindowVisible ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWow64Message < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWow64Message ( ) -> super::super::Foundation:: BOOL ; } IsWow64Message ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsZoomed < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsZoomed ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsZoomed ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct KBDLLHOOKSTRUCT { pub vkCode : u32 , pub scanCode : u32 , pub flags : u32 , pub time : u32 , pub dwExtraInfo : usize } impl KBDLLHOOKSTRUCT { } impl :: std :: default :: Default for KBDLLHOOKSTRUCT { fn default ( ) -> Self { Self { vkCode : 0 , scanCode : 0 , flags : 0 , time : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for KBDLLHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "KBDLLHOOKSTRUCT" ) . field ( "vkCode" , & self . vkCode ) . field ( "scanCode" , & self . scanCode ) . field ( "flags" , & self . flags ) . field ( "time" , & self . time ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for KBDLLHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . vkCode == other . vkCode && self . scanCode == other . scanCode && self . flags == other . flags && self . time == other . time && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for KBDLLHOOKSTRUCT { } unsafe impl :: windows :: Abi for KBDLLHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const KF_ALTDOWN : u32 = 8192u32 ; pub const KF_DLGMODE : u32 = 2048u32 ; pub const KF_EXTENDED : u32 = 256u32 ; pub const KF_MENUMODE : u32 = 4096u32 ; pub const KF_REPEAT : u32 = 16384u32 ; pub const KF_UP : u32 = 32768u32 ; pub const KL_NAMELENGTH : u32 = 9u32 ; pub unsafe fn KillTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , uidevent : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn KillTimer ( hwnd : super::super::Foundation:: HWND , uidevent : usize ) -> super::super::Foundation:: BOOL ; } KillTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidevent ) ) } # [ 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 LAYERED_WINDOW_ATTRIBUTES_FLAGS ( pub u32 ) ; pub const LWA_ALPHA : LAYERED_WINDOW_ATTRIBUTES_FLAGS = LAYERED_WINDOW_ATTRIBUTES_FLAGS ( 2u32 ) ; pub const LWA_COLORKEY : LAYERED_WINDOW_ATTRIBUTES_FLAGS = LAYERED_WINDOW_ATTRIBUTES_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const LBN_DBLCLK : u32 = 2u32 ; pub const LBN_ERRSPACE : i32 = -2i32 ; pub const LBN_KILLFOCUS : u32 = 5u32 ; pub const LBN_SELCANCEL : u32 = 3u32 ; pub const LBN_SELCHANGE : u32 = 1u32 ; pub const LBN_SETFOCUS : u32 = 4u32 ; pub const LBS_COMBOBOX : i32 = 32768i32 ; pub const LBS_DISABLENOSCROLL : i32 = 4096i32 ; pub const LBS_EXTENDEDSEL : i32 = 2048i32 ; pub const LBS_HASSTRINGS : i32 = 64i32 ; pub const LBS_MULTICOLUMN : i32 = 512i32 ; pub const LBS_MULTIPLESEL : i32 = 8i32 ; pub const LBS_NODATA : i32 = 8192i32 ; pub const LBS_NOINTEGRALHEIGHT : i32 = 256i32 ; pub const LBS_NOREDRAW : i32 = 4i32 ; pub const LBS_NOSEL : i32 = 16384i32 ; pub const LBS_NOTIFY : i32 = 1i32 ; pub const LBS_OWNERDRAWFIXED : i32 = 16i32 ; pub const LBS_OWNERDRAWVARIABLE : i32 = 32i32 ; pub const LBS_SORT : i32 = 2i32 ; pub const LBS_STANDARD : i32 = 10485763i32 ; pub const LBS_USETABSTOPS : i32 = 128i32 ; pub const LBS_WANTKEYBOARDINPUT : i32 = 1024i32 ; pub const LB_ADDFILE : u32 = 406u32 ; pub const LB_ADDSTRING : u32 = 384u32 ; pub const LB_CTLCODE : i32 = 0i32 ; pub const LB_DELETESTRING : u32 = 386u32 ; pub const LB_DIR : u32 = 397u32 ; pub const LB_ERR : i32 = -1i32 ; pub const LB_ERRSPACE : i32 = -2i32 ; pub const LB_FINDSTRING : u32 = 399u32 ; pub const LB_FINDSTRINGEXACT : u32 = 418u32 ; pub const LB_GETANCHORINDEX : u32 = 413u32 ; pub const LB_GETCARETINDEX : u32 = 415u32 ; pub const LB_GETCOUNT : u32 = 395u32 ; pub const LB_GETCURSEL : u32 = 392u32 ; pub const LB_GETHORIZONTALEXTENT : u32 = 403u32 ; pub const LB_GETITEMDATA : u32 = 409u32 ; pub const LB_GETITEMHEIGHT : u32 = 417u32 ; pub const LB_GETITEMRECT : u32 = 408u32 ; pub const LB_GETLISTBOXINFO : u32 = 434u32 ; pub const LB_GETLOCALE : u32 = 422u32 ; pub const LB_GETSEL : u32 = 391u32 ; pub const LB_GETSELCOUNT : u32 = 400u32 ; pub const LB_GETSELITEMS : u32 = 401u32 ; pub const LB_GETTEXT : u32 = 393u32 ; pub const LB_GETTEXTLEN : u32 = 394u32 ; pub const LB_GETTOPINDEX : u32 = 398u32 ; pub const LB_INITSTORAGE : u32 = 424u32 ; pub const LB_INSERTSTRING : u32 = 385u32 ; pub const LB_ITEMFROMPOINT : u32 = 425u32 ; pub const LB_MSGMAX : u32 = 435u32 ; pub const LB_MULTIPLEADDSTRING : u32 = 433u32 ; pub const LB_OKAY : u32 = 0u32 ; pub const LB_RESETCONTENT : u32 = 388u32 ; pub const LB_SELECTSTRING : u32 = 396u32 ; pub const LB_SELITEMRANGE : u32 = 411u32 ; pub const LB_SELITEMRANGEEX : u32 = 387u32 ; pub const LB_SETANCHORINDEX : u32 = 412u32 ; pub const LB_SETCARETINDEX : u32 = 414u32 ; pub const LB_SETCOLUMNWIDTH : u32 = 405u32 ; pub const LB_SETCOUNT : u32 = 423u32 ; pub const LB_SETCURSEL : u32 = 390u32 ; pub const LB_SETHORIZONTALEXTENT : u32 = 404u32 ; pub const LB_SETITEMDATA : u32 = 410u32 ; pub const LB_SETITEMHEIGHT : u32 = 416u32 ; pub const LB_SETLOCALE : u32 = 421u32 ; pub const LB_SETSEL : u32 = 389u32 ; pub const LB_SETTABSTOPS : u32 = 402u32 ; pub const LB_SETTOPINDEX : u32 = 407u32 ; pub const LLKHF_INJECTED : u32 = 16u32 ; pub const LLKHF_LOWER_IL_INJECTED : u32 = 2u32 ; pub const LLMHF_INJECTED : u32 = 1u32 ; pub const LLMHF_LOWER_IL_INJECTED : u32 = 2u32 ; pub type LPCCHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPCFHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPFRHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPOFNHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPAGEPAINTHOOK = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPAGESETUPHOOK = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPRINTHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPSETUPHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub const LR_COLOR : u32 = 2u32 ; pub unsafe fn LoadAcceleratorsA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptablename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadAcceleratorsA ( hinstance : super::super::Foundation:: HINSTANCE , lptablename : super::super::Foundation:: PSTR ) -> HACCEL ; } LoadAcceleratorsA ( hinstance . into_param ( ) . abi ( ) , lptablename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadAcceleratorsW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptablename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadAcceleratorsW ( hinstance : super::super::Foundation:: HINSTANCE , lptablename : super::super::Foundation:: PWSTR ) -> HACCEL ; } LoadAcceleratorsW ( hinstance . into_param ( ) . abi ( ) , lptablename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpcursorname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorA ( hinstance : super::super::Foundation:: HINSTANCE , lpcursorname : super::super::Foundation:: PSTR ) -> HCURSOR ; } LoadCursorA ( hinstance . into_param ( ) . abi ( ) , lpcursorname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorFromFileA < 'a , > ( lpfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorFromFileA ( lpfilename : super::super::Foundation:: PSTR ) -> HCURSOR ; } LoadCursorFromFileA ( lpfilename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorFromFileW < 'a , > ( lpfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorFromFileW ( lpfilename : super::super::Foundation:: PWSTR ) -> HCURSOR ; } LoadCursorFromFileW ( lpfilename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpcursorname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorW ( hinstance : super::super::Foundation:: HINSTANCE , lpcursorname : super::super::Foundation:: PWSTR ) -> HCURSOR ; } LoadCursorW ( hinstance . into_param ( ) . abi ( ) , lpcursorname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadIconA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpiconname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadIconA ( hinstance : super::super::Foundation:: HINSTANCE , lpiconname : super::super::Foundation:: PSTR ) -> HICON ; } LoadIconA ( hinstance . into_param ( ) . abi ( ) , lpiconname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadIconW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpiconname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadIconW ( hinstance : super::super::Foundation:: HINSTANCE , lpiconname : super::super::Foundation:: PWSTR ) -> HICON ; } LoadIconW ( hinstance . into_param ( ) . abi ( ) , lpiconname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadImageA < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , name : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadImageA ( hinst : super::super::Foundation:: HINSTANCE , name : super::super::Foundation:: PSTR , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } LoadImageA ( hinst . into_param ( ) . abi ( ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( fuload ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadImageW < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , name : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadImageW ( hinst : super::super::Foundation:: HINSTANCE , name : super::super::Foundation:: PWSTR , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } LoadImageW ( hinst . into_param ( ) . abi ( ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( fuload ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpmenuname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuA ( hinstance : super::super::Foundation:: HINSTANCE , lpmenuname : super::super::Foundation:: PSTR ) -> HMENU ; } LoadMenuA ( hinstance . into_param ( ) . abi ( ) , lpmenuname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuIndirectA < > ( lpmenutemplate : * const :: std :: ffi :: c_void , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuIndirectA ( lpmenutemplate : * const :: std :: ffi :: c_void ) -> HMENU ; } LoadMenuIndirectA ( :: std :: mem :: transmute ( lpmenutemplate ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuIndirectW < > ( lpmenutemplate : * const :: std :: ffi :: c_void , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuIndirectW ( lpmenutemplate : * const :: std :: ffi :: c_void ) -> HMENU ; } LoadMenuIndirectW ( :: std :: mem :: transmute ( lpmenutemplate ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpmenuname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuW ( hinstance : super::super::Foundation:: HINSTANCE , lpmenuname : super::super::Foundation:: PWSTR ) -> HMENU ; } LoadMenuW ( hinstance . into_param ( ) . abi ( ) , lpmenuname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadStringA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , uid : u32 , lpbuffer : super::super::Foundation:: PSTR , cchbuffermax : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadStringA ( hinstance : super::super::Foundation:: HINSTANCE , uid : u32 , lpbuffer : super::super::Foundation:: PSTR , cchbuffermax : i32 ) -> i32 ; } LoadStringA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( cchbuffermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadStringW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , uid : u32 , lpbuffer : super::super::Foundation:: PWSTR , cchbuffermax : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadStringW ( hinstance : super::super::Foundation:: HINSTANCE , uid : u32 , lpbuffer : super::super::Foundation:: PWSTR , cchbuffermax : i32 ) -> i32 ; } LoadStringW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( cchbuffermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LockSetForegroundWindow < > ( ulockcode : FOREGROUND_WINDOW_LOCK_CODE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LockSetForegroundWindow ( ulockcode : FOREGROUND_WINDOW_LOCK_CODE ) -> super::super::Foundation:: BOOL ; } LockSetForegroundWindow ( :: std :: mem :: transmute ( ulockcode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LogicalToPhysicalPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LogicalToPhysicalPoint ( hwnd : super::super::Foundation:: HWND , lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } LogicalToPhysicalPoint ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LookupIconIdFromDirectory < 'a , > ( presbits : * mut u8 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LookupIconIdFromDirectory ( presbits : * mut u8 , ficon : super::super::Foundation:: BOOL ) -> i32 ; } LookupIconIdFromDirectory ( :: std :: mem :: transmute ( presbits ) , ficon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LookupIconIdFromDirectoryEx < 'a , > ( presbits : * mut u8 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LookupIconIdFromDirectoryEx ( presbits : * mut u8 , ficon : super::super::Foundation:: BOOL , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> i32 ; } LookupIconIdFromDirectoryEx ( :: std :: mem :: transmute ( presbits ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cxdesired ) , :: std :: mem :: transmute ( cydesired ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const MAPVK_VK_TO_CHAR : u32 = 2u32 ; pub const MAPVK_VK_TO_VSC : u32 = 0u32 ; pub const MAPVK_VK_TO_VSC_EX : u32 = 4u32 ; pub const MAPVK_VSC_TO_VK : u32 = 1u32 ; pub const MAPVK_VSC_TO_VK_EX : u32 = 3u32 ; pub const MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID : u32 = 16u32 ; pub const MAX_LOGICALDPIOVERRIDE : u32 = 2u32 ; pub const MAX_STR_BLOCKREASON : u32 = 256u32 ; pub const MAX_TOUCH_COUNT : u32 = 256u32 ; pub const MAX_TOUCH_PREDICTION_FILTER_TAPS : u32 = 3u32 ; pub const MA_ACTIVATE : u32 = 1u32 ; pub const MA_ACTIVATEANDEAT : u32 = 2u32 ; pub const MA_NOACTIVATE : u32 = 3u32 ; pub const MA_NOACTIVATEANDEAT : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDICREATESTRUCTA { pub szClass : super::super::Foundation:: PSTR , pub szTitle : super::super::Foundation:: PSTR , pub hOwner : super::super::Foundation:: HANDLE , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub style : WINDOW_STYLE , pub lParam : super::super::Foundation:: LPARAM } impl MDICREATESTRUCTA { } impl :: std :: default :: Default for MDICREATESTRUCTA { fn default ( ) -> Self { Self { szClass : :: std :: default :: Default :: default ( ) , szTitle : :: std :: default :: Default :: default ( ) , hOwner : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , style : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDICREATESTRUCTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDICREATESTRUCTA" ) . field ( "szClass" , & self . szClass ) . field ( "szTitle" , & self . szTitle ) . field ( "hOwner" , & self . hOwner ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "style" , & self . style ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDICREATESTRUCTA { fn eq ( & self , other : & Self ) -> bool { self . szClass == other . szClass && self . szTitle == other . szTitle && self . hOwner == other . hOwner && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . style == other . style && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for MDICREATESTRUCTA { } unsafe impl :: windows :: Abi for MDICREATESTRUCTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDICREATESTRUCTW { pub szClass : super::super::Foundation:: PWSTR , pub szTitle : super::super::Foundation:: PWSTR , pub hOwner : super::super::Foundation:: HANDLE , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub style : WINDOW_STYLE , pub lParam : super::super::Foundation:: LPARAM } impl MDICREATESTRUCTW { } impl :: std :: default :: Default for MDICREATESTRUCTW { fn default ( ) -> Self { Self { szClass : :: std :: default :: Default :: default ( ) , szTitle : :: std :: default :: Default :: default ( ) , hOwner : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , style : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDICREATESTRUCTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDICREATESTRUCTW" ) . field ( "szClass" , & self . szClass ) . field ( "szTitle" , & self . szTitle ) . field ( "hOwner" , & self . hOwner ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "style" , & self . style ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDICREATESTRUCTW { fn eq ( & self , other : & Self ) -> bool { self . szClass == other . szClass && self . szTitle == other . szTitle && self . hOwner == other . hOwner && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . style == other . style && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for MDICREATESTRUCTW { } unsafe impl :: windows :: Abi for MDICREATESTRUCTW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDINEXTMENU { pub hmenuIn : HMENU , pub hmenuNext : HMENU , pub hwndNext : super::super::Foundation:: HWND } impl MDINEXTMENU { } impl :: std :: default :: Default for MDINEXTMENU { fn default ( ) -> Self { Self { hmenuIn : :: std :: default :: Default :: default ( ) , hmenuNext : :: std :: default :: Default :: default ( ) , hwndNext : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDINEXTMENU { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDINEXTMENU" ) . field ( "hmenuIn" , & self . hmenuIn ) . field ( "hmenuNext" , & self . hmenuNext ) . field ( "hwndNext" , & self . hwndNext ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDINEXTMENU { fn eq ( & self , other : & Self ) -> bool { self . hmenuIn == other . hmenuIn && self . hmenuNext == other . hmenuNext && self . hwndNext == other . hwndNext } } impl :: std :: cmp :: Eq for MDINEXTMENU { } unsafe impl :: windows :: Abi for MDINEXTMENU { type Abi = Self ; type DefaultType = Self ; } pub const MDIS_ALLCHILDSTYLES : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUBARINFO { pub cbSize : u32 , pub rcBar : super::super::Foundation:: RECT , pub hMenu : HMENU , pub hwndMenu : super::super::Foundation:: HWND , pub _bitfield : i32 } impl MENUBARINFO { } impl :: std :: default :: Default for MENUBARINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcBar : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndMenu : :: std :: default :: Default :: default ( ) , _bitfield : 0 } } } impl :: std :: fmt :: Debug for MENUBARINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUBARINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcBar" , & self . rcBar ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndMenu" , & self . hwndMenu ) . field ( "_bitfield" , & self . _bitfield ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUBARINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcBar == other . rcBar && self . hMenu == other . hMenu && self . hwndMenu == other . hwndMenu && self . _bitfield == other . _bitfield } } impl :: std :: cmp :: Eq for MENUBARINFO { } unsafe impl :: windows :: Abi for MENUBARINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUGETOBJECTINFO { pub dwFlags : MENUGETOBJECTINFO_FLAGS , pub uPos : u32 , pub hmenu : HMENU , pub riid : * mut :: std :: ffi :: c_void , pub pvObj : * mut :: std :: ffi :: c_void } impl MENUGETOBJECTINFO { } impl :: std :: default :: Default for MENUGETOBJECTINFO { fn default ( ) -> Self { Self { dwFlags : :: std :: default :: Default :: default ( ) , uPos : 0 , hmenu : :: std :: default :: Default :: default ( ) , riid : :: std :: ptr :: null_mut ( ) , pvObj : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for MENUGETOBJECTINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUGETOBJECTINFO" ) . field ( "dwFlags" , & self . dwFlags ) . field ( "uPos" , & self . uPos ) . field ( "hmenu" , & self . hmenu ) . field ( "riid" , & self . riid ) . field ( "pvObj" , & self . pvObj ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUGETOBJECTINFO { fn eq ( & self , other : & Self ) -> bool { self . dwFlags == other . dwFlags && self . uPos == other . uPos && self . hmenu == other . hmenu && self . riid == other . riid && self . pvObj == other . pvObj } } impl :: std :: cmp :: Eq for MENUGETOBJECTINFO { } unsafe impl :: windows :: Abi for MENUGETOBJECTINFO { 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 MENUGETOBJECTINFO_FLAGS ( pub u32 ) ; pub const MNGOF_BOTTOMGAP : MENUGETOBJECTINFO_FLAGS = MENUGETOBJECTINFO_FLAGS ( 2u32 ) ; pub const MNGOF_TOPGAP : MENUGETOBJECTINFO_FLAGS = MENUGETOBJECTINFO_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for MENUGETOBJECTINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUGETOBJECTINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUGETOBJECTINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUGETOBJECTINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUGETOBJECTINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUGETOBJECTINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUINFO { pub cbSize : u32 , pub fMask : MENUINFO_MASK , pub dwStyle : MENUINFO_STYLE , pub cyMax : u32 , pub hbrBack : super::super::Graphics::Gdi:: HBRUSH , pub dwContextHelpID : u32 , pub dwMenuData : usize } impl MENUINFO { } impl :: std :: default :: Default for MENUINFO { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , cyMax : 0 , hbrBack : :: std :: default :: Default :: default ( ) , dwContextHelpID : 0 , dwMenuData : 0 } } } impl :: std :: fmt :: Debug for MENUINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "dwStyle" , & self . dwStyle ) . field ( "cyMax" , & self . cyMax ) . field ( "hbrBack" , & self . hbrBack ) . field ( "dwContextHelpID" , & self . dwContextHelpID ) . field ( "dwMenuData" , & self . dwMenuData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . dwStyle == other . dwStyle && self . cyMax == other . cyMax && self . hbrBack == other . hbrBack && self . dwContextHelpID == other . dwContextHelpID && self . dwMenuData == other . dwMenuData } } impl :: std :: cmp :: Eq for MENUINFO { } unsafe impl :: windows :: Abi for MENUINFO { 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 MENUINFO_MASK ( pub u32 ) ; pub const MIM_APPLYTOSUBMENUS : MENUINFO_MASK = MENUINFO_MASK ( 2147483648u32 ) ; pub const MIM_BACKGROUND : MENUINFO_MASK = MENUINFO_MASK ( 2u32 ) ; pub const MIM_HELPID : MENUINFO_MASK = MENUINFO_MASK ( 4u32 ) ; pub const MIM_MAXHEIGHT : MENUINFO_MASK = MENUINFO_MASK ( 1u32 ) ; pub const MIM_MENUDATA : MENUINFO_MASK = MENUINFO_MASK ( 8u32 ) ; pub const MIM_STYLE : MENUINFO_MASK = MENUINFO_MASK ( 16u32 ) ; impl :: std :: convert :: From < u32 > for MENUINFO_MASK { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUINFO_MASK { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUINFO_MASK { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUINFO_MASK { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUINFO_MASK { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUINFO_MASK { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENUINFO_STYLE ( pub u32 ) ; pub const MNS_AUTODISMISS : MENUINFO_STYLE = MENUINFO_STYLE ( 268435456u32 ) ; pub const MNS_CHECKORBMP : MENUINFO_STYLE = MENUINFO_STYLE ( 67108864u32 ) ; pub const MNS_DRAGDROP : MENUINFO_STYLE = MENUINFO_STYLE ( 536870912u32 ) ; pub const MNS_MODELESS : MENUINFO_STYLE = MENUINFO_STYLE ( 1073741824u32 ) ; pub const MNS_NOCHECK : MENUINFO_STYLE = MENUINFO_STYLE ( 2147483648u32 ) ; pub const MNS_NOTIFYBYPOS : MENUINFO_STYLE = MENUINFO_STYLE ( 134217728u32 ) ; impl :: std :: convert :: From < u32 > for MENUINFO_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUINFO_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUINFO_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUINFO_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUINFO_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUINFO_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMINFOA { pub cbSize : u32 , pub fMask : MENU_ITEM_MASK , pub fType : MENU_ITEM_TYPE , pub fState : MENU_ITEM_STATE , pub wID : u32 , pub hSubMenu : HMENU , pub hbmpChecked : super::super::Graphics::Gdi:: HBITMAP , pub hbmpUnchecked : super::super::Graphics::Gdi:: HBITMAP , pub dwItemData : usize , pub dwTypeData : super::super::Foundation:: PSTR , pub cch : u32 , pub hbmpItem : super::super::Graphics::Gdi:: HBITMAP } impl MENUITEMINFOA { } impl :: std :: default :: Default for MENUITEMINFOA { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , fType : :: std :: default :: Default :: default ( ) , fState : :: std :: default :: Default :: default ( ) , wID : 0 , hSubMenu : :: std :: default :: Default :: default ( ) , hbmpChecked : :: std :: default :: Default :: default ( ) , hbmpUnchecked : :: std :: default :: Default :: default ( ) , dwItemData : 0 , dwTypeData : :: std :: default :: Default :: default ( ) , cch : 0 , hbmpItem : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MENUITEMINFOA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMINFOA" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "fType" , & self . fType ) . field ( "fState" , & self . fState ) . field ( "wID" , & self . wID ) . field ( "hSubMenu" , & self . hSubMenu ) . field ( "hbmpChecked" , & self . hbmpChecked ) . field ( "hbmpUnchecked" , & self . hbmpUnchecked ) . field ( "dwItemData" , & self . dwItemData ) . field ( "dwTypeData" , & self . dwTypeData ) . field ( "cch" , & self . cch ) . field ( "hbmpItem" , & self . hbmpItem ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMINFOA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . fType == other . fType && self . fState == other . fState && self . wID == other . wID && self . hSubMenu == other . hSubMenu && self . hbmpChecked == other . hbmpChecked && self . hbmpUnchecked == other . hbmpUnchecked && self . dwItemData == other . dwItemData && self . dwTypeData == other . dwTypeData && self . cch == other . cch && self . hbmpItem == other . hbmpItem } } impl :: std :: cmp :: Eq for MENUITEMINFOA { } unsafe impl :: windows :: Abi for MENUITEMINFOA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMINFOW { pub cbSize : u32 , pub fMask : MENU_ITEM_MASK , pub fType : MENU_ITEM_TYPE , pub fState : MENU_ITEM_STATE , pub wID : u32 , pub hSubMenu : HMENU , pub hbmpChecked : super::super::Graphics::Gdi:: HBITMAP , pub hbmpUnchecked : super::super::Graphics::Gdi:: HBITMAP , pub dwItemData : usize , pub dwTypeData : super::super::Foundation:: PWSTR , pub cch : u32 , pub hbmpItem : super::super::Graphics::Gdi:: HBITMAP } impl MENUITEMINFOW { } impl :: std :: default :: Default for MENUITEMINFOW { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , fType : :: std :: default :: Default :: default ( ) , fState : :: std :: default :: Default :: default ( ) , wID : 0 , hSubMenu : :: std :: default :: Default :: default ( ) , hbmpChecked : :: std :: default :: Default :: default ( ) , hbmpUnchecked : :: std :: default :: Default :: default ( ) , dwItemData : 0 , dwTypeData : :: std :: default :: Default :: default ( ) , cch : 0 , hbmpItem : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MENUITEMINFOW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMINFOW" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "fType" , & self . fType ) . field ( "fState" , & self . fState ) . field ( "wID" , & self . wID ) . field ( "hSubMenu" , & self . hSubMenu ) . field ( "hbmpChecked" , & self . hbmpChecked ) . field ( "hbmpUnchecked" , & self . hbmpUnchecked ) . field ( "dwItemData" , & self . dwItemData ) . field ( "dwTypeData" , & self . dwTypeData ) . field ( "cch" , & self . cch ) . field ( "hbmpItem" , & self . hbmpItem ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMINFOW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . fType == other . fType && self . fState == other . fState && self . wID == other . wID && self . hSubMenu == other . hSubMenu && self . hbmpChecked == other . hbmpChecked && self . hbmpUnchecked == other . hbmpUnchecked && self . dwItemData == other . dwItemData && self . dwTypeData == other . dwTypeData && self . cch == other . cch && self . hbmpItem == other . hbmpItem } } impl :: std :: cmp :: Eq for MENUITEMINFOW { } unsafe impl :: windows :: Abi for MENUITEMINFOW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMTEMPLATE { pub mtOption : u16 , pub mtID : u16 , pub mtString : [ u16 ;1 ] } impl MENUITEMTEMPLATE { } impl :: std :: default :: Default for MENUITEMTEMPLATE { fn default ( ) -> Self { Self { mtOption : 0 , mtID : 0 , mtString : [ 0 ;1 ] } } } impl :: std :: fmt :: Debug for MENUITEMTEMPLATE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMTEMPLATE" ) . field ( "mtOption" , & self . mtOption ) . field ( "mtID" , & self . mtID ) . field ( "mtString" , & self . mtString ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMTEMPLATE { fn eq ( & self , other : & Self ) -> bool { self . mtOption == other . mtOption && self . mtID == other . mtID && self . mtString == other . mtString } } impl :: std :: cmp :: Eq for MENUITEMTEMPLATE { } unsafe impl :: windows :: Abi for MENUITEMTEMPLATE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMTEMPLATEHEADER { pub versionNumber : u16 , pub offset : u16 } impl MENUITEMTEMPLATEHEADER { } impl :: std :: default :: Default for MENUITEMTEMPLATEHEADER { fn default ( ) -> Self { Self { versionNumber : 0 , offset : 0 } } } impl :: std :: fmt :: Debug for MENUITEMTEMPLATEHEADER { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMTEMPLATEHEADER" ) . field ( "versionNumber" , & self . versionNumber ) . field ( "offset" , & self . offset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMTEMPLATEHEADER { fn eq ( & self , other : & Self ) -> bool { self . versionNumber == other . versionNumber && self . offset == other . offset } } impl :: std :: cmp :: Eq for MENUITEMTEMPLATEHEADER { } unsafe impl :: windows :: Abi for MENUITEMTEMPLATEHEADER { 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 MENU_ITEM_FLAGS ( pub u32 ) ; pub const MF_BYCOMMAND : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_BYPOSITION : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 1024u32 ) ; pub const MF_BITMAP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4u32 ) ; pub const MF_CHECKED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 8u32 ) ; pub const MF_DISABLED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 2u32 ) ; pub const MF_ENABLED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_GRAYED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 1u32 ) ; pub const MF_MENUBARBREAK : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 32u32 ) ; pub const MF_MENUBREAK : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 64u32 ) ; pub const MF_OWNERDRAW : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 256u32 ) ; pub const MF_POPUP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16u32 ) ; pub const MF_SEPARATOR : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 2048u32 ) ; pub const MF_STRING : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_UNCHECKED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_INSERT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_CHANGE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; pub const MF_APPEND : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 256u32 ) ; pub const MF_DELETE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 512u32 ) ; pub const MF_REMOVE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4096u32 ) ; pub const MF_USECHECKBITMAPS : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 512u32 ) ; pub const MF_UNHILITE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_HILITE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; pub const MF_DEFAULT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4096u32 ) ; pub const MF_SYSMENU : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 8192u32 ) ; pub const MF_HELP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16384u32 ) ; pub const MF_RIGHTJUSTIFY : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16384u32 ) ; pub const MF_MOUSESELECT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 32768u32 ) ; pub const MF_END : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_MASK ( pub u32 ) ; pub const MIIM_BITMAP : MENU_ITEM_MASK = MENU_ITEM_MASK ( 128u32 ) ; pub const MIIM_CHECKMARKS : MENU_ITEM_MASK = MENU_ITEM_MASK ( 8u32 ) ; pub const MIIM_DATA : MENU_ITEM_MASK = MENU_ITEM_MASK ( 32u32 ) ; pub const MIIM_FTYPE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 256u32 ) ; pub const MIIM_ID : MENU_ITEM_MASK = MENU_ITEM_MASK ( 2u32 ) ; pub const MIIM_STATE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 1u32 ) ; pub const MIIM_STRING : MENU_ITEM_MASK = MENU_ITEM_MASK ( 64u32 ) ; pub const MIIM_SUBMENU : MENU_ITEM_MASK = MENU_ITEM_MASK ( 4u32 ) ; pub const MIIM_TYPE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 16u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_MASK { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_MASK { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_MASK { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_MASK { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_MASK { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_MASK { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_STATE ( pub u32 ) ; pub const MFS_GRAYED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 3u32 ) ; pub const MFS_DISABLED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 3u32 ) ; pub const MFS_CHECKED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 8u32 ) ; pub const MFS_HILITE : MENU_ITEM_STATE = MENU_ITEM_STATE ( 128u32 ) ; pub const MFS_ENABLED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_UNCHECKED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_UNHILITE : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_DEFAULT : MENU_ITEM_STATE = MENU_ITEM_STATE ( 4096u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_STATE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_STATE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_STATE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_STATE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_STATE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_STATE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_TYPE ( pub u32 ) ; pub const MFT_BITMAP : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 4u32 ) ; pub const MFT_MENUBARBREAK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 32u32 ) ; pub const MFT_MENUBREAK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 64u32 ) ; pub const MFT_OWNERDRAW : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 256u32 ) ; pub const MFT_RADIOCHECK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 512u32 ) ; pub const MFT_RIGHTJUSTIFY : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 16384u32 ) ; pub const MFT_RIGHTORDER : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 8192u32 ) ; pub const MFT_SEPARATOR : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 2048u32 ) ; pub const MFT_STRING : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 0u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ 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 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_BLOCK { pub LowId : u32 , pub HighId : u32 , pub OffsetToEntries : u32 } impl MESSAGE_RESOURCE_BLOCK { } impl :: std :: default :: Default for MESSAGE_RESOURCE_BLOCK { fn default ( ) -> Self { Self { LowId : 0 , HighId : 0 , OffsetToEntries : 0 } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_BLOCK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_BLOCK" ) . field ( "LowId" , & self . LowId ) . field ( "HighId" , & self . HighId ) . field ( "OffsetToEntries" , & self . OffsetToEntries ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_BLOCK { fn eq ( & self , other : & Self ) -> bool { self . LowId == other . LowId && self . HighId == other . HighId && self . OffsetToEntries == other . OffsetToEntries } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_BLOCK { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_BLOCK { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_DATA { pub NumberOfBlocks : u32 , pub Blocks : [ MESSAGE_RESOURCE_BLOCK ;1 ] } impl MESSAGE_RESOURCE_DATA { } impl :: std :: default :: Default for MESSAGE_RESOURCE_DATA { fn default ( ) -> Self { Self { NumberOfBlocks : 0 , Blocks : [ :: std :: default :: Default :: default ( ) ;1 ] } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_DATA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_DATA" ) . field ( "NumberOfBlocks" , & self . NumberOfBlocks ) . field ( "Blocks" , & self . Blocks ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_DATA { fn eq ( & self , other : & Self ) -> bool { self . NumberOfBlocks == other . NumberOfBlocks && self . Blocks == other . Blocks } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_DATA { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_DATA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_ENTRY { pub Length : u16 , pub Flags : u16 , pub Text : [ u8 ;1 ] } impl MESSAGE_RESOURCE_ENTRY { } impl :: std :: default :: Default for MESSAGE_RESOURCE_ENTRY { fn default ( ) -> Self { Self { Length : 0 , Flags : 0 , Text : [ 0 ;1 ] } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_ENTRY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_ENTRY" ) . field ( "Length" , & self . Length ) . field ( "Flags" , & self . Flags ) . field ( "Text" , & self . Text ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_ENTRY { fn eq ( & self , other : & Self ) -> bool { self . Length == other . Length && self . Flags == other . Flags && self . Text == other . Text } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_ENTRY { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_ENTRY { type Abi = Self ; type DefaultType = Self ; } pub const METRICS_USEDEFAULT : i32 = -1i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MINIMIZEDMETRICS { pub cbSize : u32 , pub iWidth : i32 , pub iHorzGap : i32 , pub iVertGap : i32 , pub iArrange : MINIMIZEDMETRICS_ARRANGE } impl MINIMIZEDMETRICS { } impl :: std :: default :: Default for MINIMIZEDMETRICS { fn default ( ) -> Self { Self { cbSize : 0 , iWidth : 0 , iHorzGap : 0 , iVertGap : 0 , iArrange : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MINIMIZEDMETRICS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MINIMIZEDMETRICS" ) . field ( "cbSize" , & self . cbSize ) . field ( "iWidth" , & self . iWidth ) . field ( "iHorzGap" , & self . iHorzGap ) . field ( "iVertGap" , & self . iVertGap ) . field ( "iArrange" , & self . iArrange ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MINIMIZEDMETRICS { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iWidth == other . iWidth && self . iHorzGap == other . iHorzGap && self . iVertGap == other . iVertGap && self . iArrange == other . iArrange } } impl :: std :: cmp :: Eq for MINIMIZEDMETRICS { } unsafe impl :: windows :: Abi for MINIMIZEDMETRICS { 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 MINIMIZEDMETRICS_ARRANGE ( pub i32 ) ; pub const ARW_BOTTOMLEFT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 0i32 ) ; pub const ARW_BOTTOMRIGHT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 1i32 ) ; pub const ARW_TOPLEFT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 2i32 ) ; pub const ARW_TOPRIGHT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 3i32 ) ; impl :: std :: convert :: From < i32 > for MINIMIZEDMETRICS_ARRANGE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MINIMIZEDMETRICS_ARRANGE { type Abi = Self ; type DefaultType = Self ; } pub const MINIMUM_RESERVED_MANIFEST_RESOURCE_ID : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MINMAXINFO { pub ptReserved : super::super::Foundation:: POINT , pub ptMaxSize : super::super::Foundation:: POINT , pub ptMaxPosition : super::super::Foundation:: POINT , pub ptMinTrackSize : super::super::Foundation:: POINT , pub ptMaxTrackSize : super::super::Foundation:: POINT } impl MINMAXINFO { } impl :: std :: default :: Default for MINMAXINFO { fn default ( ) -> Self { Self { ptReserved : :: std :: default :: Default :: default ( ) , ptMaxSize : :: std :: default :: Default :: default ( ) , ptMaxPosition : :: std :: default :: Default :: default ( ) , ptMinTrackSize : :: std :: default :: Default :: default ( ) , ptMaxTrackSize : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MINMAXINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MINMAXINFO" ) . field ( "ptReserved" , & self . ptReserved ) . field ( "ptMaxSize" , & self . ptMaxSize ) . field ( "ptMaxPosition" , & self . ptMaxPosition ) . field ( "ptMinTrackSize" , & self . ptMinTrackSize ) . field ( "ptMaxTrackSize" , & self . ptMaxTrackSize ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MINMAXINFO { fn eq ( & self , other : & Self ) -> bool { self . ptReserved == other . ptReserved && self . ptMaxSize == other . ptMaxSize && self . ptMaxPosition == other . ptMaxPosition && self . ptMinTrackSize == other . ptMinTrackSize && self . ptMaxTrackSize == other . ptMaxTrackSize } } impl :: std :: cmp :: Eq for MINMAXINFO { } unsafe impl :: windows :: Abi for MINMAXINFO { type Abi = Self ; type DefaultType = Self ; } pub const MIN_LOGICALDPIOVERRIDE : i32 = -2i32 ; pub const MKF_AVAILABLE : u32 = 2u32 ; pub const MKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const MKF_HOTKEYACTIVE : u32 = 4u32 ; pub const MKF_HOTKEYSOUND : u32 = 16u32 ; pub const MKF_INDICATOR : u32 = 32u32 ; pub const MKF_LEFTBUTTONDOWN : u32 = 16777216u32 ; pub const MKF_LEFTBUTTONSEL : u32 = 268435456u32 ; pub const MKF_MODIFIERS : u32 = 64u32 ; pub const MKF_MOUSEKEYSON : u32 = 1u32 ; pub const MKF_MOUSEMODE : u32 = 2147483648u32 ; pub const MKF_REPLACENUMBERS : u32 = 128u32 ; pub const MKF_RIGHTBUTTONDOWN : u32 = 33554432u32 ; pub const MKF_RIGHTBUTTONSEL : u32 = 536870912u32 ; pub const MK_CONTROL : u32 = 8u32 ; pub const MK_LBUTTON : u32 = 1u32 ; pub const MK_MBUTTON : u32 = 16u32 ; pub const MK_RBUTTON : u32 = 2u32 ; pub const MK_SHIFT : u32 = 4u32 ; pub const MK_XBUTTON1 : u32 = 32u32 ; pub const MK_XBUTTON2 : u32 = 64u32 ; pub const MNC_CLOSE : u32 = 1u32 ; pub const MNC_EXECUTE : u32 = 2u32 ; pub const MNC_IGNORE : u32 = 0u32 ; pub const MNC_SELECT : u32 = 3u32 ; pub const MND_CONTINUE : u32 = 0u32 ; pub const MND_ENDMENU : u32 = 1u32 ; pub const MNGO_NOERROR : u32 = 1u32 ; pub const MNGO_NOINTERFACE : u32 = 0u32 ; pub const MN_GETHMENU : u32 = 481u32 ; pub const MONITORINFOF_PRIMARY : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MOUSEHOOKSTRUCT { pub pt : super::super::Foundation:: POINT , pub hwnd : super::super::Foundation:: HWND , pub wHitTestCode : u32 , pub dwExtraInfo : usize } impl MOUSEHOOKSTRUCT { } impl :: std :: default :: Default for MOUSEHOOKSTRUCT { fn default ( ) -> Self { Self { pt : :: std :: default :: Default :: default ( ) , hwnd : :: std :: default :: Default :: default ( ) , wHitTestCode : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for MOUSEHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MOUSEHOOKSTRUCT" ) . field ( "pt" , & self . pt ) . field ( "hwnd" , & self . hwnd ) . field ( "wHitTestCode" , & self . wHitTestCode ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MOUSEHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . pt == other . pt && self . hwnd == other . hwnd && self . wHitTestCode == other . wHitTestCode && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for MOUSEHOOKSTRUCT { } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MOUSEHOOKSTRUCTEX { pub __AnonymousBase_winuser_L1173_C46 : MOUSEHOOKSTRUCT , pub mouseData : MOUSEHOOKSTRUCTEX_MOUSE_DATA } impl MOUSEHOOKSTRUCTEX { } impl :: std :: default :: Default for MOUSEHOOKSTRUCTEX { fn default ( ) -> Self { Self { __AnonymousBase_winuser_L1173_C46 : :: std :: default :: Default :: default ( ) , mouseData : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MOUSEHOOKSTRUCTEX { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MOUSEHOOKSTRUCTEX" ) . field ( "__AnonymousBase_winuser_L1173_C46" , & self . __AnonymousBase_winuser_L1173_C46 ) . field ( "mouseData" , & self . mouseData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MOUSEHOOKSTRUCTEX { fn eq ( & self , other : & Self ) -> bool { self . __AnonymousBase_winuser_L1173_C46 == other . __AnonymousBase_winuser_L1173_C46 && self . mouseData == other . mouseData } } impl :: std :: cmp :: Eq for MOUSEHOOKSTRUCTEX { } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCTEX { 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 MOUSEHOOKSTRUCTEX_MOUSE_DATA ( pub u32 ) ; pub const XBUTTON1 : MOUSEHOOKSTRUCTEX_MOUSE_DATA = MOUSEHOOKSTRUCTEX_MOUSE_DATA ( 1u32 ) ; pub const XBUTTON2 : MOUSEHOOKSTRUCTEX_MOUSE_DATA = MOUSEHOOKSTRUCTEX_MOUSE_DATA ( 2u32 ) ; impl :: std :: convert :: From < u32 > for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const MOUSEWHEEL_ROUTING_FOCUS : u32 = 0u32 ; pub const MOUSEWHEEL_ROUTING_HYBRID : u32 = 1u32 ; pub const MOUSEWHEEL_ROUTING_MOUSE_POS : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MSG { pub hwnd : super::super::Foundation:: HWND , pub message : u32 , pub wParam : super::super::Foundation:: WPARAM , pub lParam : super::super::Foundation:: LPARAM , pub time : u32 , pub pt : super::super::Foundation:: POINT } impl MSG { } impl :: std :: default :: Default for MSG { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , message : 0 , wParam : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) , time : 0 , pt : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MSG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSG" ) . field ( "hwnd" , & self . hwnd ) . field ( "message" , & self . message ) . field ( "wParam" , & self . wParam ) . field ( "lParam" , & self . lParam ) . field ( "time" , & self . time ) . field ( "pt" , & self . pt ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSG { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . message == other . message && self . wParam == other . wParam && self . lParam == other . lParam && self . time == other . time && self . pt == other . pt } } impl :: std :: cmp :: Eq for MSG { } unsafe impl :: windows :: Abi for MSG { type Abi = Self ; type DefaultType = Self ; } pub type MSGBOXCALLBACK = unsafe extern "system" fn ( lphelpinfo : * mut super::Shell:: HELPINFO ) ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct MSGBOXPARAMSA { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PSTR , pub lpszCaption : super::super::Foundation:: PSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: std :: option :: Option < MSGBOXCALLBACK > , pub dwLanguageId : u32 } impl MSGBOXPARAMSA { } impl :: std :: default :: Default for MSGBOXPARAMSA { fn default ( ) -> Self { Self { cbSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszText : :: std :: default :: Default :: default ( ) , lpszCaption : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , lpszIcon : :: std :: default :: Default :: default ( ) , dwContextHelpId : 0 , lpfnMsgBoxCallback : :: std :: default :: Default :: default ( ) , dwLanguageId : 0 } } } impl :: std :: fmt :: Debug for MSGBOXPARAMSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSGBOXPARAMSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszText" , & self . lpszText ) . field ( "lpszCaption" , & self . lpszCaption ) . field ( "dwStyle" , & self . dwStyle ) . field ( "lpszIcon" , & self . lpszIcon ) . field ( "dwContextHelpId" , & self . dwContextHelpId ) . field ( "dwLanguageId" , & self . dwLanguageId ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSGBOXPARAMSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpszText == other . lpszText && self . lpszCaption == other . lpszCaption && self . dwStyle == other . dwStyle && self . lpszIcon == other . lpszIcon && self . dwContextHelpId == other . dwContextHelpId && self . lpfnMsgBoxCallback . map ( | f | f as usize ) == other . lpfnMsgBoxCallback . map ( | f | f as usize ) && self . dwLanguageId == other . dwLanguageId } } impl :: std :: cmp :: Eq for MSGBOXPARAMSA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct MSGBOXPARAMSA_abi { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PSTR , pub lpszCaption : super::super::Foundation:: PSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: windows :: RawPtr , pub dwLanguageId : u32 } unsafe impl :: windows :: Abi for MSGBOXPARAMSA { type Abi = MSGBOXPARAMSA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct MSGBOXPARAMSW { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PWSTR , pub lpszCaption : super::super::Foundation:: PWSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PWSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: std :: option :: Option < MSGBOXCALLBACK > , pub dwLanguageId : u32 } impl MSGBOXPARAMSW { } impl :: std :: default :: Default for MSGBOXPARAMSW { fn default ( ) -> Self { Self { cbSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszText : :: std :: default :: Default :: default ( ) , lpszCaption : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , lpszIcon : :: std :: default :: Default :: default ( ) , dwContextHelpId : 0 , lpfnMsgBoxCallback : :: std :: default :: Default :: default ( ) , dwLanguageId : 0 } } } impl :: std :: fmt :: Debug for MSGBOXPARAMSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSGBOXPARAMSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszText" , & self . lpszText ) . field ( "lpszCaption" , & self . lpszCaption ) . field ( "dwStyle" , & self . dwStyle ) . field ( "lpszIcon" , & self . lpszIcon ) . field ( "dwContextHelpId" , & self . dwContextHelpId ) . field ( "dwLanguageId" , & self . dwLanguageId ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSGBOXPARAMSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpszText == other . lpszText && self . lpszCaption == other . lpszCaption && self . dwStyle == other . dwStyle && self . lpszIcon == other . lpszIcon && self . dwContextHelpId == other . dwContextHelpId && self . lpfnMsgBoxCallback . map ( | f | f as usize ) == other . lpfnMsgBoxCallback . map ( | f | f as usize ) && self . dwLanguageId == other . dwLanguageId } } impl :: std :: cmp :: Eq for MSGBOXPARAMSW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct MSGBOXPARAMSW_abi { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PWSTR , pub lpszCaption : super::super::Foundation:: PWSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PWSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: windows :: RawPtr , pub dwLanguageId : u32 } unsafe impl :: windows :: Abi for MSGBOXPARAMSW { type Abi = MSGBOXPARAMSW_abi ; 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 MSGFLTINFO_STATUS ( pub u32 ) ; pub const MSGFLTINFO_NONE : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 0u32 ) ; pub const MSGFLTINFO_ALLOWED_HIGHER : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 3u32 ) ; pub const MSGFLTINFO_ALREADYALLOWED_FORWND : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 1u32 ) ; pub const MSGFLTINFO_ALREADYDISALLOWED_FORWND : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for MSGFLTINFO_STATUS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MSGFLTINFO_STATUS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MSGFLTINFO_STATUS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MSGFLTINFO_STATUS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MSGFLTINFO_STATUS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MSGFLTINFO_STATUS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const MSGF_DIALOGBOX : u32 = 0u32 ; pub const MSGF_MAX : u32 = 8u32 ; pub const MSGF_MENU : u32 = 2u32 ; pub const MSGF_MESSAGEBOX : u32 = 1u32 ; pub const MSGF_NEXTWINDOW : u32 = 6u32 ; pub const MSGF_SCROLLBAR : u32 = 5u32 ; pub const MSGF_USER : u32 = 4096u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MSLLHOOKSTRUCT { pub pt : super::super::Foundation:: POINT , pub mouseData : MOUSEHOOKSTRUCTEX_MOUSE_DATA , pub flags : u32 , pub time : u32 , pub dwExtraInfo : usize } impl MSLLHOOKSTRUCT { } impl :: std :: default :: Default for MSLLHOOKSTRUCT { fn default ( ) -> Self { Self { pt : :: std :: default :: Default :: default ( ) , mouseData : :: std :: default :: Default :: default ( ) , flags : 0 , time : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for MSLLHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSLLHOOKSTRUCT" ) . field ( "pt" , & self . pt ) . field ( "mouseData" , & self . mouseData ) . field ( "flags" , & self . flags ) . field ( "time" , & self . time ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSLLHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . pt == other . pt && self . mouseData == other . mouseData && self . flags == other . flags && self . time == other . time && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for MSLLHOOKSTRUCT { } unsafe impl :: windows :: Abi for MSLLHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MapDialogRect < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MapDialogRect ( hdlg : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } MapDialogRect ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MenuItemFromPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ptscreen : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MenuItemFromPoint ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , ptscreen : super::super::Foundation:: POINT ) -> i32 ; } MenuItemFromPoint ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , ptscreen . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , 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 ; } MessageBoxA ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxExA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , utype : MESSAGEBOX_STYLE , wlanguageid : u16 , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxExA ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PSTR , lpcaption : super::super::Foundation:: PSTR , utype : MESSAGEBOX_STYLE , wlanguageid : u16 ) -> MESSAGEBOX_RESULT ; } MessageBoxExA ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) , :: std :: mem :: transmute ( wlanguageid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxExW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , utype : MESSAGEBOX_STYLE , wlanguageid : u16 , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxExW ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PWSTR , lpcaption : super::super::Foundation:: PWSTR , utype : MESSAGEBOX_STYLE , wlanguageid : u16 ) -> MESSAGEBOX_RESULT ; } MessageBoxExW ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) , :: std :: mem :: transmute ( wlanguageid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxIndirectA < > ( lpmbp : * const MSGBOXPARAMSA , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxIndirectA ( lpmbp : * const MSGBOXPARAMSA_abi ) -> MESSAGEBOX_RESULT ; } MessageBoxIndirectA ( :: std :: mem :: transmute ( lpmbp ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxIndirectW < > ( lpmbp : * const MSGBOXPARAMSW , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxIndirectW ( lpmbp : * const MSGBOXPARAMSW_abi ) -> MESSAGEBOX_RESULT ; } MessageBoxIndirectW ( :: std :: mem :: transmute ( lpmbp ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , utype : MESSAGEBOX_STYLE , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxW ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PWSTR , lpcaption : super::super::Foundation:: PWSTR , utype : MESSAGEBOX_STYLE ) -> MESSAGEBOX_RESULT ; } MessageBoxW ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ModifyMenuA < 'a , > ( hmnu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ModifyMenuA ( hmnu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } ModifyMenuA ( hmnu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ModifyMenuW < 'a , > ( hmnu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ModifyMenuW ( hmnu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } ModifyMenuW ( hmnu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MoveWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , brepaint : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MoveWindow ( hwnd : super::super::Foundation:: HWND , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , brepaint : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } MoveWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , brepaint . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateConfig < 'a , > ( platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , outputxmlfile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateConfig ( platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , outputxmlfile : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmCreateConfig ( :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , outputxmlfile . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateConfigInMemory < 'a , > ( platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateConfigInMemory ( platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmCreateConfigInMemory ( :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceFile < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputdirectory : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceFile ( indexer : MrmResourceIndexerHandle , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputdirectory : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmCreateResourceFile ( indexer . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( packagingmode ) , :: std :: mem :: transmute ( packagingoptions ) , outputdirectory . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceFileInMemory < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputpridata : * mut * mut u8 , outputprisize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceFileInMemory ( indexer : MrmResourceIndexerHandle , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputpridata : * mut * mut u8 , outputprisize : * mut u32 ) -> :: windows :: HRESULT ; } MrmCreateResourceFileInMemory ( indexer . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( packagingmode ) , :: std :: mem :: transmute ( packagingoptions ) , :: std :: mem :: transmute ( outputpridata ) , :: std :: mem :: transmute ( outputprisize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexer < 'a , > ( packagefamilyname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexer ( packagefamilyname : super::super::Foundation:: PWSTR , projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexer ( packagefamilyname . into_param ( ) . abi ( ) , projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousPriData < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , pridata : * mut u8 , prisize : u32 , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousPriData ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , pridata : * mut u8 , prisize : u32 , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousPriData ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pridata ) , :: std :: mem :: transmute ( prisize ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousPriFile < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , prifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousPriFile ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , prifile : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousPriFile ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , prifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaData < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaxmldata : * mut u8 , schemaxmlsize : u32 , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousSchemaData ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , schemaxmldata : * mut u8 , schemaxmlsize : u32 , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousSchemaData ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( schemaxmldata ) , :: std :: mem :: transmute ( schemaxmlsize ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaFile < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemafile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousSchemaFile ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , schemafile : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousSchemaFile ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , schemafile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDestroyIndexerAndMessages < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDestroyIndexerAndMessages ( indexer : MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmDestroyIndexerAndMessages ( indexer . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriDataInMemory < > ( inputpridata : * mut u8 , inputprisize : u32 , schemapridata : * mut u8 , schemaprisize : u32 , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriDataInMemory ( inputpridata : * mut u8 , inputprisize : u32 , schemapridata : * mut u8 , schemaprisize : u32 , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmDumpPriDataInMemory ( :: std :: mem :: transmute ( inputpridata ) , :: std :: mem :: transmute ( inputprisize ) , :: std :: mem :: transmute ( schemapridata ) , :: std :: mem :: transmute ( schemaprisize ) , :: std :: mem :: transmute ( dumptype ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriFile < 'a , > ( indexfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaprifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dumptype : MrmDumpType , outputxmlfile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriFile ( indexfilename : super::super::Foundation:: PWSTR , schemaprifile : super::super::Foundation:: PWSTR , dumptype : MrmDumpType , outputxmlfile : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmDumpPriFile ( indexfilename . into_param ( ) . abi ( ) , schemaprifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dumptype ) , outputxmlfile . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriFileInMemory < 'a , > ( indexfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaprifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriFileInMemory ( indexfilename : super::super::Foundation:: PWSTR , schemaprifile : super::super::Foundation:: PWSTR , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmDumpPriFileInMemory ( indexfilename . into_param ( ) . abi ( ) , schemaprifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dumptype ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ 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 MrmDumpType ( pub i32 ) ; pub const MrmDumpType_Basic : MrmDumpType = MrmDumpType ( 0i32 ) ; pub const MrmDumpType_Detailed : MrmDumpType = MrmDumpType ( 1i32 ) ; pub const MrmDumpType_Schema : MrmDumpType = MrmDumpType ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmDumpType { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmDumpType { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MrmFreeMemory < > ( data : * mut u8 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmFreeMemory ( data : * mut u8 ) -> :: windows :: HRESULT ; } MrmFreeMemory ( :: std :: mem :: transmute ( data ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexEmbeddedData < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , embeddeddata : * const u8 , embeddeddatasize : u32 , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexEmbeddedData ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , embeddeddata : * const u8 , embeddeddatasize : u32 , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexEmbeddedData ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( embeddeddata ) , :: std :: mem :: transmute ( embeddeddatasize ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexFile < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexFile ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , filepath : super::super::Foundation:: PWSTR , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexFile ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , filepath . into_param ( ) . abi ( ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexFileAutoQualifiers < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexFileAutoQualifiers ( indexer : MrmResourceIndexerHandle , filepath : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexFileAutoQualifiers ( indexer . into_param ( ) . abi ( ) , filepath . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexResourceContainerAutoQualifiers < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , containerpath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexResourceContainerAutoQualifiers ( indexer : MrmResourceIndexerHandle , containerpath : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexResourceContainerAutoQualifiers ( indexer . into_param ( ) . abi ( ) , containerpath . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexString < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , resourcestring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexString ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , resourcestring : super::super::Foundation:: PWSTR , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexString ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , resourcestring . into_param ( ) . abi ( ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ 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 MrmPackagingMode ( pub i32 ) ; pub const MrmPackagingModeStandaloneFile : MrmPackagingMode = MrmPackagingMode ( 0i32 ) ; pub const MrmPackagingModeAutoSplit : MrmPackagingMode = MrmPackagingMode ( 1i32 ) ; pub const MrmPackagingModeResourcePack : MrmPackagingMode = MrmPackagingMode ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmPackagingMode { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPackagingMode { 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 MrmPackagingOptions ( pub i32 ) ; pub const MrmPackagingOptionsNone : MrmPackagingOptions = MrmPackagingOptions ( 0i32 ) ; pub const MrmPackagingOptionsOmitSchemaFromResourcePacks : MrmPackagingOptions = MrmPackagingOptions ( 1i32 ) ; pub const MrmPackagingOptionsSplitLanguageVariants : MrmPackagingOptions = MrmPackagingOptions ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmPackagingOptions { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPackagingOptions { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MrmPeekResourceIndexerMessages < 'a , > ( handle : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , messages : * mut * mut MrmResourceIndexerMessage , nummsgs : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmPeekResourceIndexerMessages ( handle : MrmResourceIndexerHandle , messages : * mut * mut MrmResourceIndexerMessage , nummsgs : * mut u32 ) -> :: windows :: HRESULT ; } MrmPeekResourceIndexerMessages ( handle . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( messages ) , :: std :: mem :: transmute ( nummsgs ) ) . ok ( ) } # [ 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 MrmPlatformVersion ( pub i32 ) ; pub const MrmPlatformVersion_Default : MrmPlatformVersion = MrmPlatformVersion ( 0i32 ) ; pub const MrmPlatformVersion_Windows10_0_0_0 : MrmPlatformVersion = MrmPlatformVersion ( 17432576i32 ) ; pub const MrmPlatformVersion_Windows10_0_0_5 : MrmPlatformVersion = MrmPlatformVersion ( 17432581i32 ) ; impl :: std :: convert :: From < i32 > for MrmPlatformVersion { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPlatformVersion { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MrmResourceIndexerHandle { pub handle : * mut :: std :: ffi :: c_void } impl MrmResourceIndexerHandle { } impl :: std :: default :: Default for MrmResourceIndexerHandle { fn default ( ) -> Self { Self { handle : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for MrmResourceIndexerHandle { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MrmResourceIndexerHandle" ) . field ( "handle" , & self . handle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MrmResourceIndexerHandle { fn eq ( & self , other : & Self ) -> bool { self . handle == other . handle } } impl :: std :: cmp :: Eq for MrmResourceIndexerHandle { } unsafe impl :: windows :: Abi for MrmResourceIndexerHandle { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MrmResourceIndexerMessage { pub severity : MrmResourceIndexerMessageSeverity , pub id : u32 , pub text : super::super::Foundation:: PWSTR } impl MrmResourceIndexerMessage { } impl :: std :: default :: Default for MrmResourceIndexerMessage { fn default ( ) -> Self { Self { severity : :: std :: default :: Default :: default ( ) , id : 0 , text : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MrmResourceIndexerMessage { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MrmResourceIndexerMessage" ) . field ( "severity" , & self . severity ) . field ( "id" , & self . id ) . field ( "text" , & self . text ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MrmResourceIndexerMessage { fn eq ( & self , other : & Self ) -> bool { self . severity == other . severity && self . id == other . id && self . text == other . text } } impl :: std :: cmp :: Eq for MrmResourceIndexerMessage { } unsafe impl :: windows :: Abi for MrmResourceIndexerMessage { 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 MrmResourceIndexerMessageSeverity ( pub i32 ) ; pub const MrmResourceIndexerMessageSeverityVerbose : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 0i32 ) ; pub const MrmResourceIndexerMessageSeverityInfo : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 1i32 ) ; pub const MrmResourceIndexerMessageSeverityWarning : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 2i32 ) ; pub const MrmResourceIndexerMessageSeverityError : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 3i32 ) ; impl :: std :: convert :: From < i32 > for MrmResourceIndexerMessageSeverity { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmResourceIndexerMessageSeverity { type Abi = Self ; type DefaultType = Self ; } pub type NAMEENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type NAMEENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NCCALCSIZE_PARAMS { pub rgrc : [ super::super::Foundation:: RECT ;3 ] , pub lppos : * mut WINDOWPOS } impl NCCALCSIZE_PARAMS { } impl :: std :: default :: Default for NCCALCSIZE_PARAMS { fn default ( ) -> Self { Self { rgrc : [ :: std :: default :: Default :: default ( ) ;3 ] , lppos : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for NCCALCSIZE_PARAMS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NCCALCSIZE_PARAMS" ) . field ( "rgrc" , & self . rgrc ) . field ( "lppos" , & self . lppos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NCCALCSIZE_PARAMS { fn eq ( & self , other : & Self ) -> bool { self . rgrc == other . rgrc && self . lppos == other . lppos } } impl :: std :: cmp :: Eq for NCCALCSIZE_PARAMS { } unsafe impl :: windows :: Abi for NCCALCSIZE_PARAMS { type Abi = Self ; type DefaultType = Self ; } pub const NFR_ANSI : u32 = 1u32 ; pub const NFR_UNICODE : u32 = 2u32 ; pub const NF_QUERY : u32 = 3u32 ; pub const NF_REQUERY : u32 = 4u32 ; pub const NID_EXTERNAL_PEN : u32 = 8u32 ; pub const NID_EXTERNAL_TOUCH : u32 = 2u32 ; pub const NID_INTEGRATED_PEN : u32 = 4u32 ; pub const NID_INTEGRATED_TOUCH : u32 = 1u32 ; pub const NID_MULTI_INPUT : u32 = 64u32 ; pub const NID_READY : u32 = 128u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NONCLIENTMETRICSA { pub cbSize : u32 , pub iBorderWidth : i32 , pub iScrollWidth : i32 , pub iScrollHeight : i32 , pub iCaptionWidth : i32 , pub iCaptionHeight : i32 , pub lfCaptionFont : super::super::Graphics::Gdi:: LOGFONTA , pub iSmCaptionWidth : i32 , pub iSmCaptionHeight : i32 , pub lfSmCaptionFont : super::super::Graphics::Gdi:: LOGFONTA , pub iMenuWidth : i32 , pub iMenuHeight : i32 , pub lfMenuFont : super::super::Graphics::Gdi:: LOGFONTA , pub lfStatusFont : super::super::Graphics::Gdi:: LOGFONTA , pub lfMessageFont : super::super::Graphics::Gdi:: LOGFONTA , pub iPaddedBorderWidth : i32 } impl NONCLIENTMETRICSA { } impl :: std :: default :: Default for NONCLIENTMETRICSA { fn default ( ) -> Self { Self { cbSize : 0 , iBorderWidth : 0 , iScrollWidth : 0 , iScrollHeight : 0 , iCaptionWidth : 0 , iCaptionHeight : 0 , lfCaptionFont : :: std :: default :: Default :: default ( ) , iSmCaptionWidth : 0 , iSmCaptionHeight : 0 , lfSmCaptionFont : :: std :: default :: Default :: default ( ) , iMenuWidth : 0 , iMenuHeight : 0 , lfMenuFont : :: std :: default :: Default :: default ( ) , lfStatusFont : :: std :: default :: Default :: default ( ) , lfMessageFont : :: std :: default :: Default :: default ( ) , iPaddedBorderWidth : 0 } } } impl :: std :: fmt :: Debug for NONCLIENTMETRICSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NONCLIENTMETRICSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "iBorderWidth" , & self . iBorderWidth ) . field ( "iScrollWidth" , & self . iScrollWidth ) . field ( "iScrollHeight" , & self . iScrollHeight ) . field ( "iCaptionWidth" , & self . iCaptionWidth ) . field ( "iCaptionHeight" , & self . iCaptionHeight ) . field ( "lfCaptionFont" , & self . lfCaptionFont ) . field ( "iSmCaptionWidth" , & self . iSmCaptionWidth ) . field ( "iSmCaptionHeight" , & self . iSmCaptionHeight ) . field ( "lfSmCaptionFont" , & self . lfSmCaptionFont ) . field ( "iMenuWidth" , & self . iMenuWidth ) . field ( "iMenuHeight" , & self . iMenuHeight ) . field ( "lfMenuFont" , & self . lfMenuFont ) . field ( "lfStatusFont" , & self . lfStatusFont ) . field ( "lfMessageFont" , & self . lfMessageFont ) . field ( "iPaddedBorderWidth" , & self . iPaddedBorderWidth ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NONCLIENTMETRICSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iBorderWidth == other . iBorderWidth && self . iScrollWidth == other . iScrollWidth && self . iScrollHeight == other . iScrollHeight && self . iCaptionWidth == other . iCaptionWidth && self . iCaptionHeight == other . iCaptionHeight && self . lfCaptionFont == other . lfCaptionFont && self . iSmCaptionWidth == other . iSmCaptionWidth && self . iSmCaptionHeight == other . iSmCaptionHeight && self . lfSmCaptionFont == other . lfSmCaptionFont && self . iMenuWidth == other . iMenuWidth && self . iMenuHeight == other . iMenuHeight && self . lfMenuFont == other . lfMenuFont && self . lfStatusFont == other . lfStatusFont && self . lfMessageFont == other . lfMessageFont && self . iPaddedBorderWidth == other . iPaddedBorderWidth } } impl :: std :: cmp :: Eq for NONCLIENTMETRICSA { } unsafe impl :: windows :: Abi for NONCLIENTMETRICSA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NONCLIENTMETRICSW { pub cbSize : u32 , pub iBorderWidth : i32 , pub iScrollWidth : i32 , pub iScrollHeight : i32 , pub iCaptionWidth : i32 , pub iCaptionHeight : i32 , pub lfCaptionFont : super::super::Graphics::Gdi:: LOGFONTW , pub iSmCaptionWidth : i32 , pub iSmCaptionHeight : i32 , pub lfSmCaptionFont : super::super::Graphics::Gdi:: LOGFONTW , pub iMenuWidth : i32 , pub iMenuHeight : i32 , pub lfMenuFont : super::super::Graphics::Gdi:: LOGFONTW , pub lfStatusFont : super::super::Graphics::Gdi:: LOGFONTW , pub lfMessageFont : super::super::Graphics::Gdi:: LOGFONTW , pub iPaddedBorderWidth : i32 } impl NONCLIENTMETRICSW { } impl :: std :: default :: Default for NONCLIENTMETRICSW { fn default ( ) -> Self { Self { cbSize : 0 , iBorderWidth : 0 , iScrollWidth : 0 , iScrollHeight : 0 , iCaptionWidth : 0 , iCaptionHeight : 0 , lfCaptionFont : :: std :: default :: Default :: default ( ) , iSmCaptionWidth : 0 , iSmCaptionHeight : 0 , lfSmCaptionFont : :: std :: default :: Default :: default ( ) , iMenuWidth : 0 , iMenuHeight : 0 , lfMenuFont : :: std :: default :: Default :: default ( ) , lfStatusFont : :: std :: default :: Default :: default ( ) , lfMessageFont : :: std :: default :: Default :: default ( ) , iPaddedBorderWidth : 0 } } } impl :: std :: fmt :: Debug for NONCLIENTMETRICSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NONCLIENTMETRICSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "iBorderWidth" , & self . iBorderWidth ) . field ( "iScrollWidth" , & self . iScrollWidth ) . field ( "iScrollHeight" , & self . iScrollHeight ) . field ( "iCaptionWidth" , & self . iCaptionWidth ) . field ( "iCaptionHeight" , & self . iCaptionHeight ) . field ( "lfCaptionFont" , & self . lfCaptionFont ) . field ( "iSmCaptionWidth" , & self . iSmCaptionWidth ) . field ( "iSmCaptionHeight" , & self . iSmCaptionHeight ) . field ( "lfSmCaptionFont" , & self . lfSmCaptionFont ) . field ( "iMenuWidth" , & self . iMenuWidth ) . field ( "iMenuHeight" , & self . iMenuHeight ) . field ( "lfMenuFont" , & self . lfMenuFont ) . field ( "lfStatusFont" , & self . lfStatusFont ) . field ( "lfMessageFont" , & self . lfMessageFont ) . field ( "iPaddedBorderWidth" , & self . iPaddedBorderWidth ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NONCLIENTMETRICSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iBorderWidth == other . iBorderWidth && self . iScrollWidth == other . iScrollWidth && self . iScrollHeight == other . iScrollHeight && self . iCaptionWidth == other . iCaptionWidth && self . iCaptionHeight == other . iCaptionHeight && self . lfCaptionFont == other . lfCaptionFont && self . iSmCaptionWidth == other . iSmCaptionWidth && self . iSmCaptionHeight == other . iSmCaptionHeight && self . lfSmCaptionFont == other . lfSmCaptionFont && self . iMenuWidth == other . iMenuWidth && self . iMenuHeight == other . iMenuHeight && self . lfMenuFont == other . lfMenuFont && self . lfStatusFont == other . lfStatusFont && self . lfMessageFont == other . lfMessageFont && self . iPaddedBorderWidth == other . iPaddedBorderWidth } } impl :: std :: cmp :: Eq for NONCLIENTMETRICSW { } unsafe impl :: windows :: Abi for NONCLIENTMETRICSW { type Abi = Self ; type DefaultType = Self ; } pub const OBM_BTNCORNERS : u32 = 32758u32 ; pub const OBM_BTSIZE : u32 = 32761u32 ; pub const OBM_CHECK : u32 = 32760u32 ; pub const OBM_CHECKBOXES : u32 = 32759u32 ; pub const OBM_CLOSE : u32 = 32754u32 ; pub const OBM_COMBO : u32 = 32738u32 ; pub const OBM_DNARROW : u32 = 32752u32 ; pub const OBM_DNARROWD : u32 = 32742u32 ; pub const OBM_DNARROWI : u32 = 32736u32 ; pub const OBM_LFARROW : u32 = 32750u32 ; pub const OBM_LFARROWD : u32 = 32740u32 ; pub const OBM_LFARROWI : u32 = 32734u32 ; pub const OBM_MNARROW : u32 = 32739u32 ; pub const OBM_OLD_CLOSE : u32 = 32767u32 ; pub const OBM_OLD_DNARROW : u32 = 32764u32 ; pub const OBM_OLD_LFARROW : u32 = 32762u32 ; pub const OBM_OLD_REDUCE : u32 = 32757u32 ; pub const OBM_OLD_RESTORE : u32 = 32755u32 ; pub const OBM_OLD_RGARROW : u32 = 32763u32 ; pub const OBM_OLD_UPARROW : u32 = 32765u32 ; pub const OBM_OLD_ZOOM : u32 = 32756u32 ; pub const OBM_REDUCE : u32 = 32749u32 ; pub const OBM_REDUCED : u32 = 32746u32 ; pub const OBM_RESTORE : u32 = 32747u32 ; pub const OBM_RESTORED : u32 = 32744u32 ; pub const OBM_RGARROW : u32 = 32751u32 ; pub const OBM_RGARROWD : u32 = 32741u32 ; pub const OBM_RGARROWI : u32 = 32735u32 ; pub const OBM_SIZE : u32 = 32766u32 ; pub const OBM_UPARROW : u32 = 32753u32 ; pub const OBM_UPARROWD : u32 = 32743u32 ; pub const OBM_UPARROWI : u32 = 32737u32 ; pub const OBM_ZOOM : u32 = 32748u32 ; pub const OBM_ZOOMD : u32 = 32745u32 ; pub const OCR_ICOCUR : u32 = 32647u32 ; pub const OCR_ICON : u32 = 32641u32 ; pub const OCR_SIZE : u32 = 32640u32 ; pub const ODA_DRAWENTIRE : u32 = 1u32 ; pub const ODA_FOCUS : u32 = 4u32 ; pub const ODA_SELECT : u32 = 2u32 ; pub const ODS_CHECKED : u32 = 8u32 ; pub const ODS_COMBOBOXEDIT : u32 = 4096u32 ; pub const ODS_DEFAULT : u32 = 32u32 ; pub const ODS_DISABLED : u32 = 4u32 ; pub const ODS_FOCUS : u32 = 16u32 ; pub const ODS_GRAYED : u32 = 2u32 ; pub const ODS_HOTLIGHT : u32 = 64u32 ; pub const ODS_INACTIVE : u32 = 128u32 ; pub const ODS_NOACCEL : u32 = 256u32 ; pub const ODS_NOFOCUSRECT : u32 = 512u32 ; pub const ODS_SELECTED : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYA { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEA , pub pszFile : super::super::Foundation:: PSTR } impl OFNOTIFYA { } impl :: std :: default :: Default for OFNOTIFYA { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , pszFile : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYA" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "pszFile" , & self . pszFile ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYA { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . pszFile == other . pszFile } } impl :: std :: cmp :: Eq for OFNOTIFYA { } unsafe impl :: windows :: Abi for OFNOTIFYA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYEXA { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEA , pub psf : * mut :: std :: ffi :: c_void , pub pidl : * mut :: std :: ffi :: c_void } impl OFNOTIFYEXA { } impl :: std :: default :: Default for OFNOTIFYEXA { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , psf : :: std :: ptr :: null_mut ( ) , pidl : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYEXA" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "psf" , & self . psf ) . field ( "pidl" , & self . pidl ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYEXA { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . psf == other . psf && self . pidl == other . pidl } } impl :: std :: cmp :: Eq for OFNOTIFYEXA { } unsafe impl :: windows :: Abi for OFNOTIFYEXA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYEXW { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEW , pub psf : * mut :: std :: ffi :: c_void , pub pidl : * mut :: std :: ffi :: c_void } impl OFNOTIFYEXW { } impl :: std :: default :: Default for OFNOTIFYEXW { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , psf : :: std :: ptr :: null_mut ( ) , pidl : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYEXW" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "psf" , & self . psf ) . field ( "pidl" , & self . pidl ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYEXW { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . psf == other . psf && self . pidl == other . pidl } } impl :: std :: cmp :: Eq for OFNOTIFYEXW { } unsafe impl :: windows :: Abi for OFNOTIFYEXW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYW { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEW , pub pszFile : super::super::Foundation:: PWSTR } impl OFNOTIFYW { } impl :: std :: default :: Default for OFNOTIFYW { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , pszFile : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYW" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "pszFile" , & self . pszFile ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYW { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . pszFile == other . pszFile } } impl :: std :: cmp :: Eq for OFNOTIFYW { } unsafe impl :: windows :: Abi for OFNOTIFYW { type Abi = Self ; type DefaultType = Self ; } pub const OFN_SHAREFALLTHROUGH : u32 = 2u32 ; pub const OFN_SHARENOWARN : u32 = 1u32 ; pub const OFN_SHAREWARN : u32 = 0u32 ; pub const OIC_BANG : u32 = 32515u32 ; pub const OIC_HAND : u32 = 32513u32 ; pub const OIC_NOTE : u32 = 32516u32 ; pub const OIC_QUES : u32 = 32514u32 ; pub const OIC_SAMPLE : u32 = 32512u32 ; pub const OIC_SHIELD : u32 = 32518u32 ; pub const OIC_WINLOGO : u32 = 32517u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAMEA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } impl OPENFILENAMEA { } impl :: std :: default :: Default for OPENFILENAMEA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , pvReserved : :: std :: ptr :: null_mut ( ) , dwReserved : 0 , FlagsEx : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAMEA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAMEA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "pvReserved" , & self . pvReserved ) . field ( "dwReserved" , & self . dwReserved ) . field ( "FlagsEx" , & self . FlagsEx ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAMEA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . pvReserved == other . pvReserved && self . dwReserved == other . dwReserved && self . FlagsEx == other . FlagsEx } } impl :: std :: cmp :: Eq for OPENFILENAMEA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAMEA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } unsafe impl :: windows :: Abi for OPENFILENAMEA { type Abi = OPENFILENAMEA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAMEW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } impl OPENFILENAMEW { } impl :: std :: default :: Default for OPENFILENAMEW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , pvReserved : :: std :: ptr :: null_mut ( ) , dwReserved : 0 , FlagsEx : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAMEW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAMEW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "pvReserved" , & self . pvReserved ) . field ( "dwReserved" , & self . dwReserved ) . field ( "FlagsEx" , & self . FlagsEx ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAMEW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . pvReserved == other . pvReserved && self . dwReserved == other . dwReserved && self . FlagsEx == other . FlagsEx } } impl :: std :: cmp :: Eq for OPENFILENAMEW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAMEW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } unsafe impl :: windows :: Abi for OPENFILENAMEW { type Abi = OPENFILENAMEW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAME_NT4A { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl OPENFILENAME_NT4A { } impl :: std :: default :: Default for OPENFILENAME_NT4A { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : 0 , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAME_NT4A { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAME_NT4A" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAME_NT4A { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for OPENFILENAME_NT4A { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAME_NT4A_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for OPENFILENAME_NT4A { type Abi = OPENFILENAME_NT4A_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAME_NT4W { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl OPENFILENAME_NT4W { } impl :: std :: default :: Default for OPENFILENAME_NT4W { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : 0 , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAME_NT4W { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAME_NT4W" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAME_NT4W { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for OPENFILENAME_NT4W { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAME_NT4W_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for OPENFILENAME_NT4W { type Abi = OPENFILENAME_NT4W_abi ; 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 OPEN_FILENAME_FLAGS ( pub u32 ) ; pub const OFN_READONLY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1u32 ) ; pub const OFN_OVERWRITEPROMPT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2u32 ) ; pub const OFN_HIDEREADONLY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4u32 ) ; pub const OFN_NOCHANGEDIR : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8u32 ) ; pub const OFN_SHOWHELP : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 16u32 ) ; pub const OFN_ENABLEHOOK : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 32u32 ) ; pub const OFN_ENABLETEMPLATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 64u32 ) ; pub const OFN_ENABLETEMPLATEHANDLE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 128u32 ) ; pub const OFN_NOVALIDATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 256u32 ) ; pub const OFN_ALLOWMULTISELECT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 512u32 ) ; pub const OFN_EXTENSIONDIFFERENT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1024u32 ) ; pub const OFN_PATHMUSTEXIST : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2048u32 ) ; pub const OFN_FILEMUSTEXIST : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4096u32 ) ; pub const OFN_CREATEPROMPT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8192u32 ) ; pub const OFN_SHAREAWARE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 16384u32 ) ; pub const OFN_NOREADONLYRETURN : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 32768u32 ) ; pub const OFN_NOTESTFILECREATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 65536u32 ) ; pub const OFN_NONETWORKBUTTON : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 131072u32 ) ; pub const OFN_NOLONGNAMES : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 262144u32 ) ; pub const OFN_EXPLORER : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 524288u32 ) ; pub const OFN_NODEREFERENCELINKS : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1048576u32 ) ; pub const OFN_LONGNAMES : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2097152u32 ) ; pub const OFN_ENABLEINCLUDENOTIFY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4194304u32 ) ; pub const OFN_ENABLESIZING : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8388608u32 ) ; pub const OFN_DONTADDTORECENT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 33554432u32 ) ; pub const OFN_FORCESHOWHIDDEN : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 268435456u32 ) ; impl :: std :: convert :: From < u32 > for OPEN_FILENAME_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for OPEN_FILENAME_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for OPEN_FILENAME_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for OPEN_FILENAME_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for OPEN_FILENAME_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for OPEN_FILENAME_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct OPEN_FILENAME_FLAGS_EX ( pub u32 ) ; pub const OFN_EX_NONE : OPEN_FILENAME_FLAGS_EX = OPEN_FILENAME_FLAGS_EX ( 0u32 ) ; pub const OFN_EX_NOPLACESBAR : OPEN_FILENAME_FLAGS_EX = OPEN_FILENAME_FLAGS_EX ( 1u32 ) ; impl :: std :: convert :: From < u32 > for OPEN_FILENAME_FLAGS_EX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for OPEN_FILENAME_FLAGS_EX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for OPEN_FILENAME_FLAGS_EX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for OPEN_FILENAME_FLAGS_EX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for OPEN_FILENAME_FLAGS_EX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for OPEN_FILENAME_FLAGS_EX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const ORD_LANGDRIVER : u32 = 1u32 ; pub unsafe fn OemToCharA < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharA ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } OemToCharA ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharBuffA < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharBuffA ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } OemToCharBuffA ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharBuffW < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PWSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharBuffW ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PWSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } OemToCharBuffW ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharW < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PWSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharW ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } OemToCharW ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenIcon < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OpenIcon ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } OpenIcon ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PAGESETUPDLGA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: std :: option :: Option < LPPAGESETUPHOOK > , pub lpfnPagePaintHook : :: std :: option :: Option < LPPAGEPAINTHOOK > , pub lpPageSetupTemplateName : super::super::Foundation:: PSTR , pub hPageSetupTemplate : isize } impl PAGESETUPDLGA { } impl :: std :: default :: Default for PAGESETUPDLGA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , Flags : :: std :: default :: Default :: default ( ) , ptPaperSize : :: std :: default :: Default :: default ( ) , rtMinMargin : :: std :: default :: Default :: default ( ) , rtMargin : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPageSetupHook : :: std :: default :: Default :: default ( ) , lpfnPagePaintHook : :: std :: default :: Default :: default ( ) , lpPageSetupTemplateName : :: std :: default :: Default :: default ( ) , hPageSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PAGESETUPDLGA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PAGESETUPDLGA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "Flags" , & self . Flags ) . field ( "ptPaperSize" , & self . ptPaperSize ) . field ( "rtMinMargin" , & self . rtMinMargin ) . field ( "rtMargin" , & self . rtMargin ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPageSetupTemplateName" , & self . lpPageSetupTemplateName ) . field ( "hPageSetupTemplate" , & self . hPageSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PAGESETUPDLGA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . Flags == other . Flags && self . ptPaperSize == other . ptPaperSize && self . rtMinMargin == other . rtMinMargin && self . rtMargin == other . rtMargin && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPageSetupHook . map ( | f | f as usize ) == other . lpfnPageSetupHook . map ( | f | f as usize ) && self . lpfnPagePaintHook . map ( | f | f as usize ) == other . lpfnPagePaintHook . map ( | f | f as usize ) && self . lpPageSetupTemplateName == other . lpPageSetupTemplateName && self . hPageSetupTemplate == other . hPageSetupTemplate } } impl :: std :: cmp :: Eq for PAGESETUPDLGA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PAGESETUPDLGA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: windows :: RawPtr , pub lpfnPagePaintHook : :: windows :: RawPtr , pub lpPageSetupTemplateName : super::super::Foundation:: PSTR , pub hPageSetupTemplate : isize } unsafe impl :: windows :: Abi for PAGESETUPDLGA { type Abi = PAGESETUPDLGA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PAGESETUPDLGW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: std :: option :: Option < LPPAGESETUPHOOK > , pub lpfnPagePaintHook : :: std :: option :: Option < LPPAGEPAINTHOOK > , pub lpPageSetupTemplateName : super::super::Foundation:: PWSTR , pub hPageSetupTemplate : isize } impl PAGESETUPDLGW { } impl :: std :: default :: Default for PAGESETUPDLGW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , Flags : :: std :: default :: Default :: default ( ) , ptPaperSize : :: std :: default :: Default :: default ( ) , rtMinMargin : :: std :: default :: Default :: default ( ) , rtMargin : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPageSetupHook : :: std :: default :: Default :: default ( ) , lpfnPagePaintHook : :: std :: default :: Default :: default ( ) , lpPageSetupTemplateName : :: std :: default :: Default :: default ( ) , hPageSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PAGESETUPDLGW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PAGESETUPDLGW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "Flags" , & self . Flags ) . field ( "ptPaperSize" , & self . ptPaperSize ) . field ( "rtMinMargin" , & self . rtMinMargin ) . field ( "rtMargin" , & self . rtMargin ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPageSetupTemplateName" , & self . lpPageSetupTemplateName ) . field ( "hPageSetupTemplate" , & self . hPageSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PAGESETUPDLGW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . Flags == other . Flags && self . ptPaperSize == other . ptPaperSize && self . rtMinMargin == other . rtMinMargin && self . rtMargin == other . rtMargin && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPageSetupHook . map ( | f | f as usize ) == other . lpfnPageSetupHook . map ( | f | f as usize ) && self . lpfnPagePaintHook . map ( | f | f as usize ) == other . lpfnPagePaintHook . map ( | f | f as usize ) && self . lpPageSetupTemplateName == other . lpPageSetupTemplateName && self . hPageSetupTemplate == other . hPageSetupTemplate } } impl :: std :: cmp :: Eq for PAGESETUPDLGW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PAGESETUPDLGW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: windows :: RawPtr , pub lpfnPagePaintHook : :: windows :: RawPtr , pub lpPageSetupTemplateName : super::super::Foundation:: PWSTR , pub hPageSetupTemplate : isize } unsafe impl :: windows :: Abi for PAGESETUPDLGW { type Abi = PAGESETUPDLGW_abi ; 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 PAGESETUPDLG_FLAGS ( pub u32 ) ; pub const PSD_DEFAULTMINMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 0u32 ) ; pub const PSD_DISABLEMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 16u32 ) ; pub const PSD_DISABLEORIENTATION : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 256u32 ) ; pub const PSD_DISABLEPAGEPAINTING : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 524288u32 ) ; pub const PSD_DISABLEPAPER : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 512u32 ) ; pub const PSD_DISABLEPRINTER : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 32u32 ) ; pub const PSD_ENABLEPAGEPAINTHOOK : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 262144u32 ) ; pub const PSD_ENABLEPAGESETUPHOOK : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 8192u32 ) ; pub const PSD_ENABLEPAGESETUPTEMPLATE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 32768u32 ) ; pub const PSD_ENABLEPAGESETUPTEMPLATEHANDLE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 131072u32 ) ; pub const PSD_INHUNDREDTHSOFMILLIMETERS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 8u32 ) ; pub const PSD_INTHOUSANDTHSOFINCHES : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 4u32 ) ; pub const PSD_INWININIINTLMEASURE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 0u32 ) ; pub const PSD_MARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2u32 ) ; pub const PSD_MINMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 1u32 ) ; pub const PSD_NONETWORKBUTTON : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2097152u32 ) ; pub const PSD_NOWARNING : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 128u32 ) ; pub const PSD_RETURNDEFAULT : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 1024u32 ) ; pub const PSD_SHOWHELP : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2048u32 ) ; impl :: std :: convert :: From < u32 > for PAGESETUPDLG_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PAGESETUPDLG_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PAGESETUPDLG_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PAGESETUPDLG_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PAGESETUPDLG_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PAGESETUPDLG_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const PBTF_APMRESUMEFROMFAILURE : u32 = 1u32 ; pub const PBT_APMBATTERYLOW : u32 = 9u32 ; pub const PBT_APMOEMEVENT : u32 = 11u32 ; pub const PBT_APMPOWERSTATUSCHANGE : u32 = 10u32 ; pub const PBT_APMQUERYSTANDBY : u32 = 1u32 ; pub const PBT_APMQUERYSTANDBYFAILED : u32 = 3u32 ; pub const PBT_APMQUERYSUSPEND : u32 = 0u32 ; pub const PBT_APMQUERYSUSPENDFAILED : u32 = 2u32 ; pub const PBT_APMRESUMEAUTOMATIC : u32 = 18u32 ; pub const PBT_APMRESUMECRITICAL : u32 = 6u32 ; pub const PBT_APMRESUMESTANDBY : u32 = 8u32 ; pub const PBT_APMRESUMESUSPEND : u32 = 7u32 ; pub const PBT_APMSTANDBY : u32 = 5u32 ; pub const PBT_APMSUSPEND : u32 = 4u32 ; pub const PBT_POWERSETTINGCHANGE : u32 = 32787u32 ; pub const PDC_ARRIVAL : u32 = 1u32 ; pub const PDC_MAPPING_CHANGE : u32 = 256u32 ; pub const PDC_MODE_ASPECTRATIOPRESERVED : u32 = 2048u32 ; pub const PDC_MODE_CENTERED : u32 = 128u32 ; pub const PDC_MODE_DEFAULT : u32 = 64u32 ; pub const PDC_ORIENTATION_0 : u32 = 4u32 ; pub const PDC_ORIENTATION_180 : u32 = 16u32 ; pub const PDC_ORIENTATION_270 : u32 = 32u32 ; pub const PDC_ORIENTATION_90 : u32 = 8u32 ; pub const PDC_ORIGIN : u32 = 1024u32 ; pub const PDC_REMOVAL : u32 = 2u32 ; pub const PDC_RESOLUTION : u32 = 512u32 ; pub const PD_RESULT_APPLY : u32 = 2u32 ; pub const PD_RESULT_CANCEL : u32 = 0u32 ; pub const PD_RESULT_PRINT : 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 PEEK_MESSAGE_REMOVE_TYPE ( pub u32 ) ; pub const PM_NOREMOVE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 0u32 ) ; pub const PM_REMOVE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 1u32 ) ; pub const PM_NOYIELD : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 2u32 ) ; pub const PM_QS_INPUT : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 67567616u32 ) ; pub const PM_QS_POSTMESSAGE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 9961472u32 ) ; pub const PM_QS_PAINT : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 2097152u32 ) ; pub const PM_QS_SENDMESSAGE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 4194304u32 ) ; impl :: std :: convert :: From < u32 > for PEEK_MESSAGE_REMOVE_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PEEK_MESSAGE_REMOVE_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PEEK_MESSAGE_REMOVE_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PEEK_MESSAGE_REMOVE_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PEEK_MESSAGE_REMOVE_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PEEK_MESSAGE_REMOVE_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const PENARBITRATIONTYPE_FIS : u32 = 2u32 ; pub const PENARBITRATIONTYPE_MAX : u32 = 4u32 ; pub const PENARBITRATIONTYPE_NONE : u32 = 0u32 ; pub const PENARBITRATIONTYPE_SPT : u32 = 3u32 ; pub const PENARBITRATIONTYPE_WIN8 : u32 = 1u32 ; pub const PENVISUALIZATION_CURSOR : u32 = 32u32 ; pub const PENVISUALIZATION_DOUBLETAP : u32 = 2u32 ; pub const PENVISUALIZATION_OFF : u32 = 0u32 ; pub const PENVISUALIZATION_ON : u32 = 35u32 ; pub const PENVISUALIZATION_TAP : u32 = 1u32 ; pub const PEN_FLAG_BARREL : u32 = 1u32 ; pub const PEN_FLAG_ERASER : u32 = 4u32 ; pub const PEN_FLAG_INVERTED : u32 = 2u32 ; pub const PEN_FLAG_NONE : u32 = 0u32 ; pub const PEN_MASK_NONE : u32 = 0u32 ; pub const PEN_MASK_PRESSURE : u32 = 1u32 ; pub const PEN_MASK_ROTATION : u32 = 2u32 ; pub const PEN_MASK_TILT_X : u32 = 4u32 ; pub const PEN_MASK_TILT_Y : u32 = 8u32 ; pub const PMB_ACTIVE : u32 = 1u32 ; pub const POINTER_DEVICE_PRODUCT_STRING_MAX : u32 = 520u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct POINTER_INPUT_TYPE ( pub i32 ) ; pub const PT_POINTER : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 1i32 ) ; pub const PT_TOUCH : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 2i32 ) ; pub const PT_PEN : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 3i32 ) ; pub const PT_MOUSE : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 4i32 ) ; pub const PT_TOUCHPAD : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 5i32 ) ; impl :: std :: convert :: From < i32 > for POINTER_INPUT_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for POINTER_INPUT_TYPE { type Abi = Self ; type DefaultType = Self ; } pub const POINTER_MESSAGE_FLAG_CANCELED : u32 = 32768u32 ; pub const POINTER_MESSAGE_FLAG_CONFIDENCE : u32 = 16384u32 ; pub const POINTER_MESSAGE_FLAG_FIFTHBUTTON : u32 = 256u32 ; pub const POINTER_MESSAGE_FLAG_FIRSTBUTTON : u32 = 16u32 ; pub const POINTER_MESSAGE_FLAG_FOURTHBUTTON : u32 = 128u32 ; pub const POINTER_MESSAGE_FLAG_INCONTACT : u32 = 4u32 ; pub const POINTER_MESSAGE_FLAG_INRANGE : u32 = 2u32 ; pub const POINTER_MESSAGE_FLAG_NEW : u32 = 1u32 ; pub const POINTER_MESSAGE_FLAG_PRIMARY : u32 = 8192u32 ; pub const POINTER_MESSAGE_FLAG_SECONDBUTTON : u32 = 32u32 ; pub const POINTER_MESSAGE_FLAG_THIRDBUTTON : u32 = 64u32 ; pub const POINTER_MOD_CTRL : u32 = 8u32 ; pub const POINTER_MOD_SHIFT : u32 = 4u32 ; pub type PREGISTERCLASSNAMEW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR ) -> u8 ; pub const PRF_CHECKVISIBLE : i32 = 1i32 ; pub const PRF_CHILDREN : i32 = 16i32 ; pub const PRF_CLIENT : i32 = 4i32 ; pub const PRF_ERASEBKGND : i32 = 8i32 ; pub const PRF_NONCLIENT : i32 = 2i32 ; pub const PRF_OWNED : i32 = 32i32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: std :: option :: Option < LPPRINTHOOKPROC > , pub lpfnSetupHook : :: std :: option :: Option < LPSETUPHOOKPROC > , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpSetupTemplateName : super::super::Foundation:: PSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } impl PRINTDLGA { } impl :: std :: default :: Default for PRINTDLGA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFromPage : 0 , nToPage : 0 , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPrintHook : :: std :: default :: Default :: default ( ) , lpfnSetupHook : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpSetupTemplateName : :: std :: default :: Default :: default ( ) , hPrintTemplate : 0 , hSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpSetupTemplateName" , & self . lpSetupTemplateName ) . field ( "hPrintTemplate" , & self . hPrintTemplate ) . field ( "hSetupTemplate" , & self . hSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . nFromPage == other . nFromPage && self . nToPage == other . nToPage && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPrintHook . map ( | f | f as usize ) == other . lpfnPrintHook . map ( | f | f as usize ) && self . lpfnSetupHook . map ( | f | f as usize ) == other . lpfnSetupHook . map ( | f | f as usize ) && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpSetupTemplateName == other . lpSetupTemplateName && self . hPrintTemplate == other . hPrintTemplate && self . hSetupTemplate == other . hSetupTemplate } } impl :: std :: cmp :: Eq for PRINTDLGA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: windows :: RawPtr , pub lpfnSetupHook : :: windows :: RawPtr , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpSetupTemplateName : super::super::Foundation:: PSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } unsafe impl :: windows :: Abi for PRINTDLGA { type Abi = PRINTDLGA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGEXA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpCallback : :: std :: option :: Option < :: windows :: IUnknown > , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } impl PRINTDLGEXA { } impl :: std :: default :: Default for PRINTDLGEXA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , Flags2 : 0 , ExclusionFlags : 0 , nPageRanges : 0 , nMaxPageRanges : 0 , lpPageRanges : :: std :: ptr :: null_mut ( ) , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpCallback : :: std :: default :: Default :: default ( ) , nPropertyPages : 0 , lphPropertyPages : :: std :: ptr :: null_mut ( ) , nStartPage : 0 , dwResultAction : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGEXA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "Flags2" , & self . Flags2 ) . field ( "ExclusionFlags" , & self . ExclusionFlags ) . field ( "nPageRanges" , & self . nPageRanges ) . field ( "nMaxPageRanges" , & self . nMaxPageRanges ) . field ( "lpPageRanges" , & self . lpPageRanges ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpCallback" , & self . lpCallback ) . field ( "nPropertyPages" , & self . nPropertyPages ) . field ( "lphPropertyPages" , & self . lphPropertyPages ) . field ( "nStartPage" , & self . nStartPage ) . field ( "dwResultAction" , & self . dwResultAction ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGEXA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . Flags2 == other . Flags2 && self . ExclusionFlags == other . ExclusionFlags && self . nPageRanges == other . nPageRanges && self . nMaxPageRanges == other . nMaxPageRanges && self . lpPageRanges == other . lpPageRanges && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpCallback == other . lpCallback && self . nPropertyPages == other . nPropertyPages && self . lphPropertyPages == other . lphPropertyPages && self . nStartPage == other . nStartPage && self . dwResultAction == other . dwResultAction } } impl :: std :: cmp :: Eq for PRINTDLGEXA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGEXA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpCallback : :: windows :: RawPtr , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } unsafe impl :: windows :: Abi for PRINTDLGEXA { type Abi = PRINTDLGEXA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGEXW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpCallback : :: std :: option :: Option < :: windows :: IUnknown > , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } impl PRINTDLGEXW { } impl :: std :: default :: Default for PRINTDLGEXW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , Flags2 : 0 , ExclusionFlags : 0 , nPageRanges : 0 , nMaxPageRanges : 0 , lpPageRanges : :: std :: ptr :: null_mut ( ) , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpCallback : :: std :: default :: Default :: default ( ) , nPropertyPages : 0 , lphPropertyPages : :: std :: ptr :: null_mut ( ) , nStartPage : 0 , dwResultAction : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGEXW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "Flags2" , & self . Flags2 ) . field ( "ExclusionFlags" , & self . ExclusionFlags ) . field ( "nPageRanges" , & self . nPageRanges ) . field ( "nMaxPageRanges" , & self . nMaxPageRanges ) . field ( "lpPageRanges" , & self . lpPageRanges ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpCallback" , & self . lpCallback ) . field ( "nPropertyPages" , & self . nPropertyPages ) . field ( "lphPropertyPages" , & self . lphPropertyPages ) . field ( "nStartPage" , & self . nStartPage ) . field ( "dwResultAction" , & self . dwResultAction ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGEXW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . Flags2 == other . Flags2 && self . ExclusionFlags == other . ExclusionFlags && self . nPageRanges == other . nPageRanges && self . nMaxPageRanges == other . nMaxPageRanges && self . lpPageRanges == other . lpPageRanges && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpCallback == other . lpCallback && self . nPropertyPages == other . nPropertyPages && self . lphPropertyPages == other . lphPropertyPages && self . nStartPage == other . nStartPage && self . dwResultAction == other . dwResultAction } } impl :: std :: cmp :: Eq for PRINTDLGEXW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGEXW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpCallback : :: windows :: RawPtr , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } unsafe impl :: windows :: Abi for PRINTDLGEXW { type Abi = PRINTDLGEXW_abi ; 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 PRINTDLGEX_FLAGS ( pub u32 ) ; pub const PD_ALLPAGES : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 0u32 ) ; pub const PD_COLLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16u32 ) ; pub const PD_CURRENTPAGE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4194304u32 ) ; pub const PD_DISABLEPRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 524288u32 ) ; pub const PD_ENABLEPRINTTEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16384u32 ) ; pub const PD_ENABLEPRINTTEMPLATEHANDLE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 65536u32 ) ; pub const PD_EXCLUSIONFLAGS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16777216u32 ) ; pub const PD_HIDEPRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1048576u32 ) ; pub const PD_NOCURRENTPAGE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8388608u32 ) ; pub const PD_NOPAGENUMS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8u32 ) ; pub const PD_NOSELECTION : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4u32 ) ; pub const PD_NOWARNING : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 128u32 ) ; pub const PD_PAGENUMS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2u32 ) ; pub const PD_PRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 32u32 ) ; pub const PD_RETURNDC : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 256u32 ) ; pub const PD_RETURNDEFAULT : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1024u32 ) ; pub const PD_RETURNIC : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 512u32 ) ; pub const PD_SELECTION : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1u32 ) ; pub const PD_USEDEVMODECOPIES : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 262144u32 ) ; pub const PD_USEDEVMODECOPIESANDCOLLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 262144u32 ) ; pub const PD_USELARGETEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 268435456u32 ) ; pub const PD_ENABLEPRINTHOOK : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4096u32 ) ; pub const PD_ENABLESETUPHOOK : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8192u32 ) ; pub const PD_ENABLESETUPTEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 32768u32 ) ; pub const PD_ENABLESETUPTEMPLATEHANDLE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 131072u32 ) ; pub const PD_NONETWORKBUTTON : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2097152u32 ) ; pub const PD_PRINTSETUP : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 64u32 ) ; pub const PD_SHOWHELP : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2048u32 ) ; impl :: std :: convert :: From < u32 > for PRINTDLGEX_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PRINTDLGEX_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PRINTDLGEX_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PRINTDLGEX_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PRINTDLGEX_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PRINTDLGEX_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: std :: option :: Option < LPPRINTHOOKPROC > , pub lpfnSetupHook : :: std :: option :: Option < LPSETUPHOOKPROC > , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpSetupTemplateName : super::super::Foundation:: PWSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } impl PRINTDLGW { } impl :: std :: default :: Default for PRINTDLGW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFromPage : 0 , nToPage : 0 , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPrintHook : :: std :: default :: Default :: default ( ) , lpfnSetupHook : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpSetupTemplateName : :: std :: default :: Default :: default ( ) , hPrintTemplate : 0 , hSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpSetupTemplateName" , & self . lpSetupTemplateName ) . field ( "hPrintTemplate" , & self . hPrintTemplate ) . field ( "hSetupTemplate" , & self . hSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . nFromPage == other . nFromPage && self . nToPage == other . nToPage && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPrintHook . map ( | f | f as usize ) == other . lpfnPrintHook . map ( | f | f as usize ) && self . lpfnSetupHook . map ( | f | f as usize ) == other . lpfnSetupHook . map ( | f | f as usize ) && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpSetupTemplateName == other . lpSetupTemplateName && self . hPrintTemplate == other . hPrintTemplate && self . hSetupTemplate == other . hSetupTemplate } } impl :: std :: cmp :: Eq for PRINTDLGW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: windows :: RawPtr , pub lpfnSetupHook : :: windows :: RawPtr , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpSetupTemplateName : super::super::Foundation:: PWSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } unsafe impl :: windows :: Abi for PRINTDLGW { type Abi = PRINTDLGW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct PRINTPAGERANGE { pub nFromPage : u32 , pub nToPage : u32 } impl PRINTPAGERANGE { } impl :: std :: default :: Default for PRINTPAGERANGE { fn default ( ) -> Self { Self { nFromPage : 0 , nToPage : 0 } } } impl :: std :: fmt :: Debug for PRINTPAGERANGE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTPAGERANGE" ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTPAGERANGE { fn eq ( & self , other : & Self ) -> bool { self . nFromPage == other . nFromPage && self . nToPage == other . nToPage } } impl :: std :: cmp :: Eq for PRINTPAGERANGE { } unsafe impl :: windows :: Abi for PRINTPAGERANGE { type Abi = Self ; type DefaultType = Self ; } pub type PROPENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PSTR , param2 : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCEXA = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PSTR , param2 : super::super::Foundation:: HANDLE , param3 : usize ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCEXW = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PWSTR , param2 : super::super::Foundation:: HANDLE , param3 : usize ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PWSTR , param2 : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; pub const PS_OPENTYPE_FONTTYPE : u32 = 65536u32 ; pub const PWR_CRITICALRESUME : u32 = 3u32 ; pub const PWR_FAIL : i32 = -1i32 ; pub const PWR_OK : u32 = 1u32 ; pub const PWR_SUSPENDREQUEST : u32 = 1u32 ; pub const PWR_SUSPENDRESUME : u32 = 2u32 ; pub const PW_RENDERFULLCONTENT : u32 = 2u32 ; pub unsafe fn PageSetupDlgA < > ( param0 : * mut PAGESETUPDLGA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PageSetupDlgA ( param0 : * mut PAGESETUPDLGA_abi ) -> super::super::Foundation:: BOOL ; } PageSetupDlgA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PageSetupDlgW < > ( param0 : * mut PAGESETUPDLGW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PageSetupDlgW ( param0 : * mut PAGESETUPDLGW_abi ) -> super::super::Foundation:: BOOL ; } PageSetupDlgW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PeekMessageA < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PeekMessageA ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE ) -> super::super::Foundation:: BOOL ; } PeekMessageA ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) , :: std :: mem :: transmute ( wremovemsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PeekMessageW < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PeekMessageW ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE ) -> super::super::Foundation:: BOOL ; } PeekMessageW ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) , :: std :: mem :: transmute ( wremovemsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PhysicalToLogicalPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PhysicalToLogicalPoint ( hwnd : super::super::Foundation:: HWND , lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } PhysicalToLogicalPoint ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostQuitMessage < > ( nexitcode : i32 , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostQuitMessage ( nexitcode : i32 ) ; } PostQuitMessage ( :: std :: mem :: transmute ( nexitcode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostThreadMessageA < 'a , > ( idthread : u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostThreadMessageA ( idthread : u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostThreadMessageA ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostThreadMessageW < 'a , > ( idthread : u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostThreadMessageW ( idthread : u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostThreadMessageW ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgA < > ( ppd : * mut PRINTDLGA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgA ( ppd : * mut PRINTDLGA_abi ) -> super::super::Foundation:: BOOL ; } PrintDlgA ( :: std :: mem :: transmute ( ppd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgExA < > ( ppd : * mut PRINTDLGEXA , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgExA ( ppd : * mut PRINTDLGEXA_abi ) -> :: windows :: HRESULT ; } PrintDlgExA ( :: std :: mem :: transmute ( ppd ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgExW < > ( ppd : * mut PRINTDLGEXW , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgExW ( ppd : * mut PRINTDLGEXW_abi ) -> :: windows :: HRESULT ; } PrintDlgExW ( :: std :: mem :: transmute ( ppd ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgW < > ( ppd : * mut PRINTDLGW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgW ( ppd : * mut PRINTDLGW_abi ) -> super::super::Foundation:: BOOL ; } PrintDlgW ( :: std :: mem :: transmute ( ppd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrivateExtractIconsA < 'a , > ( szfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PrivateExtractIconsA ( szfilename : super::super::Foundation:: PSTR , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 ) -> u32 ; } PrivateExtractIconsA ( szfilename . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niconindex ) , :: std :: mem :: transmute ( cxicon ) , :: std :: mem :: transmute ( cyicon ) , :: std :: mem :: transmute ( phicon ) , :: std :: mem :: transmute ( piconid ) , :: std :: mem :: transmute ( nicons ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrivateExtractIconsW < 'a , > ( szfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PrivateExtractIconsW ( szfilename : super::super::Foundation:: PWSTR , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 ) -> u32 ; } PrivateExtractIconsW ( szfilename . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niconindex ) , :: std :: mem :: transmute ( cxicon ) , :: std :: mem :: transmute ( cyicon ) , :: std :: mem :: transmute ( phicon ) , :: std :: mem :: transmute ( piconid ) , :: std :: mem :: transmute ( nicons ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const QS_POINTER : u32 = 4096u32 ; pub const QS_TOUCH : u32 = 2048u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct QUEUE_STATUS_FLAGS ( pub u32 ) ; pub const QS_ALLEVENTS : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1215u32 ) ; pub const QS_ALLINPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1279u32 ) ; pub const QS_ALLPOSTMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 256u32 ) ; pub const QS_HOTKEY : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 128u32 ) ; pub const QS_INPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1031u32 ) ; pub const QS_KEY : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1u32 ) ; pub const QS_MOUSE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 6u32 ) ; pub const QS_MOUSEBUTTON : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 4u32 ) ; pub const QS_MOUSEMOVE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 2u32 ) ; pub const QS_PAINT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 32u32 ) ; pub const QS_POSTMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 8u32 ) ; pub const QS_RAWINPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1024u32 ) ; pub const QS_SENDMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 64u32 ) ; pub const QS_TIMER : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 16u32 ) ; impl :: std :: convert :: From < u32 > for QUEUE_STATUS_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for QUEUE_STATUS_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for QUEUE_STATUS_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for QUEUE_STATUS_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for QUEUE_STATUS_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for QUEUE_STATUS_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const RES_CURSOR : u32 = 2u32 ; pub const RES_ICON : u32 = 1u32 ; pub const RIDEV_EXMODEMASK : u32 = 240u32 ; pub const RIM_INPUT : u32 = 0u32 ; pub const RIM_INPUTSINK : u32 = 1u32 ; pub const RIM_TYPEMAX : u32 = 2u32 ; pub const RI_KEY_BREAK : u32 = 1u32 ; pub const RI_KEY_E0 : u32 = 2u32 ; pub const RI_KEY_E1 : u32 = 4u32 ; pub const RI_KEY_MAKE : u32 = 0u32 ; pub const RI_KEY_TERMSRV_SET_LED : u32 = 8u32 ; pub const RI_KEY_TERMSRV_SHADOW : u32 = 16u32 ; pub const RI_MOUSE_BUTTON_4_DOWN : u32 = 64u32 ; pub const RI_MOUSE_BUTTON_4_UP : u32 = 128u32 ; pub const RI_MOUSE_BUTTON_5_DOWN : u32 = 256u32 ; pub const RI_MOUSE_BUTTON_5_UP : u32 = 512u32 ; pub const RI_MOUSE_HWHEEL : u32 = 2048u32 ; pub const RI_MOUSE_LEFT_BUTTON_DOWN : u32 = 1u32 ; pub const RI_MOUSE_LEFT_BUTTON_UP : u32 = 2u32 ; pub const RI_MOUSE_MIDDLE_BUTTON_DOWN : u32 = 16u32 ; pub const RI_MOUSE_MIDDLE_BUTTON_UP : u32 = 32u32 ; pub const RI_MOUSE_RIGHT_BUTTON_DOWN : u32 = 4u32 ; pub const RI_MOUSE_RIGHT_BUTTON_UP : u32 = 8u32 ; pub const RI_MOUSE_WHEEL : u32 = 1024u32 ; pub const RT_ACCELERATOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 9i32 as _ ) ; pub const RT_ANICURSOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 21i32 as _ ) ; pub const RT_ANIICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 22i32 as _ ) ; pub const RT_BITMAP : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 2i32 as _ ) ; pub const RT_CURSOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 1i32 as _ ) ; pub const RT_DIALOG : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 5i32 as _ ) ; pub const RT_DLGINCLUDE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 17i32 as _ ) ; pub const RT_FONT : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 8i32 as _ ) ; pub const RT_FONTDIR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 7i32 as _ ) ; pub const RT_HTML : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 23i32 as _ ) ; pub const RT_ICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 3i32 as _ ) ; pub const RT_MANIFEST : u32 = 24u32 ; pub const RT_MENU : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 4i32 as _ ) ; pub const RT_MESSAGETABLE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 11i32 as _ ) ; pub const RT_PLUGPLAY : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 19i32 as _ ) ; pub const RT_VERSION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 16i32 as _ ) ; pub const RT_VXD : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 20i32 as _ ) ; pub unsafe fn RealChildWindowFromPoint < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptparentclientcoords : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealChildWindowFromPoint ( hwndparent : super::super::Foundation:: HWND , ptparentclientcoords : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } RealChildWindowFromPoint ( hwndparent . into_param ( ) . abi ( ) , ptparentclientcoords . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RealGetWindowClassA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptszclassname : super::super::Foundation:: PSTR , cchclassnamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealGetWindowClassA ( hwnd : super::super::Foundation:: HWND , ptszclassname : super::super::Foundation:: PSTR , cchclassnamemax : u32 ) -> u32 ; } RealGetWindowClassA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ptszclassname ) , :: std :: mem :: transmute ( cchclassnamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RealGetWindowClassW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptszclassname : super::super::Foundation:: PWSTR , cchclassnamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealGetWindowClassW ( hwnd : super::super::Foundation:: HWND , ptszclassname : super::super::Foundation:: PWSTR , cchclassnamemax : u32 ) -> u32 ; } RealGetWindowClassW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ptszclassname ) , :: std :: mem :: transmute ( cchclassnamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassA < > ( lpwndclass : * const WNDCLASSA , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassA ( lpwndclass : * const WNDCLASSA_abi ) -> u16 ; } RegisterClassA ( :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassExA < > ( param0 : * const WNDCLASSEXA , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassExA ( param0 : * const WNDCLASSEXA_abi ) -> u16 ; } RegisterClassExA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassExW < > ( param0 : * const WNDCLASSEXW , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassExW ( param0 : * const WNDCLASSEXW_abi ) -> u16 ; } RegisterClassExW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassW < > ( lpwndclass : * const WNDCLASSW , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassW ( lpwndclass : * const WNDCLASSW_abi ) -> u16 ; } RegisterClassW ( :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterShellHookWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterShellHookWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } RegisterShellHookWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterWindowMessageA < 'a , > ( lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterWindowMessageA ( lpstring : super::super::Foundation:: PSTR ) -> u32 ; } RegisterWindowMessageA ( lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterWindowMessageW < 'a , > ( lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterWindowMessageW ( lpstring : super::super::Foundation:: PWSTR ) -> u32 ; } RegisterWindowMessageW ( lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemoveMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemoveMenu ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } RemoveMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemovePropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemovePropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HANDLE ; } RemovePropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemovePropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemovePropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } RemovePropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplaceTextA < > ( param0 : * mut FINDREPLACEA , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ReplaceTextA ( param0 : * mut FINDREPLACEA_abi ) -> super::super::Foundation:: HWND ; } ReplaceTextA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplaceTextW < > ( param0 : * mut FINDREPLACEW , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ReplaceTextW ( param0 : * mut FINDREPLACEW_abi ) -> super::super::Foundation:: HWND ; } ReplaceTextW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplyMessage < 'a , > ( lresult : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LRESULT > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ReplyMessage ( lresult : super::super::Foundation:: LRESULT ) -> super::super::Foundation:: BOOL ; } ReplyMessage ( lresult . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const SBM_ENABLE_ARROWS : u32 = 228u32 ; pub const SBM_GETPOS : u32 = 225u32 ; pub const SBM_GETRANGE : u32 = 227u32 ; pub const SBM_GETSCROLLBARINFO : u32 = 235u32 ; pub const SBM_GETSCROLLINFO : u32 = 234u32 ; pub const SBM_SETPOS : u32 = 224u32 ; pub const SBM_SETRANGE : u32 = 226u32 ; pub const SBM_SETRANGEREDRAW : u32 = 230u32 ; pub const SBM_SETSCROLLINFO : u32 = 233u32 ; pub const SBS_BOTTOMALIGN : i32 = 4i32 ; pub const SBS_HORZ : i32 = 0i32 ; pub const SBS_LEFTALIGN : i32 = 2i32 ; pub const SBS_RIGHTALIGN : i32 = 4i32 ; pub const SBS_SIZEBOX : i32 = 8i32 ; pub const SBS_SIZEBOXBOTTOMRIGHTALIGN : i32 = 4i32 ; pub const SBS_SIZEBOXTOPLEFTALIGN : i32 = 2i32 ; pub const SBS_SIZEGRIP : i32 = 16i32 ; pub const SBS_TOPALIGN : i32 = 2i32 ; pub const SBS_VERT : i32 = 1i32 ; pub const SB_BOTTOM : u32 = 7u32 ; pub const SB_ENDSCROLL : u32 = 8u32 ; pub const SB_LEFT : u32 = 6u32 ; pub const SB_LINEDOWN : u32 = 1u32 ; pub const SB_LINELEFT : u32 = 0u32 ; pub const SB_LINERIGHT : u32 = 1u32 ; pub const SB_LINEUP : u32 = 0u32 ; pub const SB_PAGEDOWN : u32 = 3u32 ; pub const SB_PAGELEFT : u32 = 2u32 ; pub const SB_PAGERIGHT : u32 = 3u32 ; pub const SB_PAGEUP : u32 = 2u32 ; pub const SB_RIGHT : u32 = 7u32 ; pub const SB_THUMBPOSITION : u32 = 4u32 ; pub const SB_THUMBTRACK : u32 = 5u32 ; pub const SB_TOP : u32 = 6u32 ; pub const SCF_ISSECURE : u32 = 1u32 ; pub const SC_ARRANGE : u32 = 61712u32 ; pub const SC_CLOSE : u32 = 61536u32 ; pub const SC_CONTEXTHELP : u32 = 61824u32 ; pub const SC_DEFAULT : u32 = 61792u32 ; pub const SC_HOTKEY : u32 = 61776u32 ; pub const SC_HSCROLL : u32 = 61568u32 ; pub const SC_KEYMENU : u32 = 61696u32 ; pub const SC_MAXIMIZE : u32 = 61488u32 ; pub const SC_MINIMIZE : u32 = 61472u32 ; pub const SC_MONITORPOWER : u32 = 61808u32 ; pub const SC_MOUSEMENU : u32 = 61584u32 ; pub const SC_MOVE : u32 = 61456u32 ; pub const SC_NEXTWINDOW : u32 = 61504u32 ; pub const SC_PREVWINDOW : u32 = 61520u32 ; pub const SC_RESTORE : u32 = 61728u32 ; pub const SC_SCREENSAVE : u32 = 61760u32 ; pub const SC_SEPARATOR : u32 = 61455u32 ; pub const SC_SIZE : u32 = 61440u32 ; pub const SC_TASKLIST : u32 = 61744u32 ; pub const SC_VSCROLL : u32 = 61552u32 ; pub type SENDASYNCPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : usize , param3 : super::super::Foundation:: LRESULT ) ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SEND_MESSAGE_TIMEOUT_FLAGS ( pub u32 ) ; pub const SMTO_ABORTIFHUNG : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 2u32 ) ; pub const SMTO_BLOCK : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 1u32 ) ; pub const SMTO_NORMAL : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 0u32 ) ; pub const SMTO_NOTIMEOUTIFNOTHUNG : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 8u32 ) ; pub const SMTO_ERRORONEXIT : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 32u32 ) ; impl :: std :: convert :: From < u32 > for SEND_MESSAGE_TIMEOUT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SEND_MESSAGE_TIMEOUT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SEND_MESSAGE_TIMEOUT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SEND_MESSAGE_TIMEOUT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SEND_MESSAGE_TIMEOUT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SEND_MESSAGE_TIMEOUT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SET_WINDOW_POS_FLAGS ( pub u32 ) ; pub const SWP_ASYNCWINDOWPOS : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 16384u32 ) ; pub const SWP_DEFERERASE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 8192u32 ) ; pub const SWP_DRAWFRAME : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 32u32 ) ; pub const SWP_FRAMECHANGED : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 32u32 ) ; pub const SWP_HIDEWINDOW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 128u32 ) ; pub const SWP_NOACTIVATE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 16u32 ) ; pub const SWP_NOCOPYBITS : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 256u32 ) ; pub const SWP_NOMOVE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 2u32 ) ; pub const SWP_NOOWNERZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; pub const SWP_NOREDRAW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 8u32 ) ; pub const SWP_NOREPOSITION : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; pub const SWP_NOSENDCHANGING : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 1024u32 ) ; pub const SWP_NOSIZE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 1u32 ) ; pub const SWP_NOZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 4u32 ) ; pub const SWP_SHOWWINDOW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 64u32 ) ; pub const SWP__NOOWNERZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; impl :: std :: convert :: From < u32 > for SET_WINDOW_POS_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SET_WINDOW_POS_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SET_WINDOW_POS_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SET_WINDOW_POS_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SET_WINDOW_POS_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SET_WINDOW_POS_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SHELLHOOKINFO { pub hwnd : super::super::Foundation:: HWND , pub rc : super::super::Foundation:: RECT } impl SHELLHOOKINFO { } impl :: std :: default :: Default for SHELLHOOKINFO { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , rc : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for SHELLHOOKINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SHELLHOOKINFO" ) . field ( "hwnd" , & self . hwnd ) . field ( "rc" , & self . rc ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SHELLHOOKINFO { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . rc == other . rc } } impl :: std :: cmp :: Eq for SHELLHOOKINFO { } unsafe impl :: windows :: Abi for SHELLHOOKINFO { type Abi = Self ; type DefaultType = Self ; } pub const SHOW_FULLSCREEN : u32 = 3u32 ; pub const SHOW_ICONWINDOW : u32 = 2u32 ; pub const SHOW_OPENNOACTIVATE : u32 = 4u32 ; pub const SHOW_OPENWINDOW : 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 SHOW_WINDOW_CMD ( pub u32 ) ; pub const SW_FORCEMINIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 11u32 ) ; pub const SW_HIDE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 0u32 ) ; pub const SW_MAXIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_MINIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 6u32 ) ; pub const SW_RESTORE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 9u32 ) ; pub const SW_SHOW : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 5u32 ) ; pub const SW_SHOWDEFAULT : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 10u32 ) ; pub const SW_SHOWMAXIMIZED : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_SHOWMINIMIZED : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_SHOWMINNOACTIVE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 7u32 ) ; pub const SW_SHOWNA : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 8u32 ) ; pub const SW_SHOWNOACTIVATE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SHOWNORMAL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_NORMAL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_MAX : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 11u32 ) ; pub const SW_PARENTCLOSING : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_OTHERZOOM : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_PARENTOPENING : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_OTHERUNZOOM : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SCROLLCHILDREN : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_INVALIDATE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_ERASE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SMOOTHSCROLL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 16u32 ) ; impl :: std :: convert :: From < u32 > for SHOW_WINDOW_CMD { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SHOW_WINDOW_CMD { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SHOW_WINDOW_CMD { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SHOW_WINDOW_CMD { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SHOW_WINDOW_CMD { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SHOW_WINDOW_CMD { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const SIZE_MAXHIDE : u32 = 4u32 ; pub const SIZE_MAXIMIZED : u32 = 2u32 ; pub const SIZE_MAXSHOW : u32 = 3u32 ; pub const SIZE_MINIMIZED : u32 = 1u32 ; pub const SIZE_RESTORED : u32 = 0u32 ; pub const SM_CARETBLINKINGENABLED : u32 = 8194u32 ; pub const SM_CMETRICS : u32 = 76u32 ; pub const SM_RESERVED1 : u32 = 24u32 ; pub const SM_RESERVED2 : u32 = 25u32 ; pub const SM_RESERVED3 : u32 = 26u32 ; pub const SM_RESERVED4 : u32 = 27u32 ; pub const SM_SYSTEMDOCKED : u32 = 8196u32 ; pub const SOUND_SYSTEM_APPEND : u32 = 14u32 ; pub const SOUND_SYSTEM_APPSTART : u32 = 12u32 ; pub const SOUND_SYSTEM_BEEP : u32 = 3u32 ; pub const SOUND_SYSTEM_ERROR : u32 = 4u32 ; pub const SOUND_SYSTEM_FAULT : u32 = 13u32 ; pub const SOUND_SYSTEM_INFORMATION : u32 = 7u32 ; pub const SOUND_SYSTEM_MAXIMIZE : u32 = 8u32 ; pub const SOUND_SYSTEM_MENUCOMMAND : u32 = 15u32 ; pub const SOUND_SYSTEM_MENUPOPUP : u32 = 16u32 ; pub const SOUND_SYSTEM_MINIMIZE : u32 = 9u32 ; pub const SOUND_SYSTEM_QUESTION : u32 = 5u32 ; pub const SOUND_SYSTEM_RESTOREDOWN : u32 = 11u32 ; pub const SOUND_SYSTEM_RESTOREUP : u32 = 10u32 ; pub const SOUND_SYSTEM_SHUTDOWN : u32 = 2u32 ; pub const SOUND_SYSTEM_STARTUP : u32 = 1u32 ; pub const SOUND_SYSTEM_WARNING : u32 = 6u32 ; pub const SS_BITMAP : i32 = 14i32 ; pub const SS_BLACKFRAME : i32 = 7i32 ; pub const SS_BLACKRECT : i32 = 4i32 ; pub const SS_CENTER : i32 = 1i32 ; pub const SS_CENTERIMAGE : i32 = 512i32 ; pub const SS_EDITCONTROL : i32 = 8192i32 ; pub const SS_ELLIPSISMASK : i32 = 49152i32 ; pub const SS_ENDELLIPSIS : i32 = 16384i32 ; pub const SS_ENHMETAFILE : i32 = 15i32 ; pub const SS_ETCHEDFRAME : i32 = 18i32 ; pub const SS_ETCHEDHORZ : i32 = 16i32 ; pub const SS_ETCHEDVERT : i32 = 17i32 ; pub const SS_GRAYFRAME : i32 = 8i32 ; pub const SS_GRAYRECT : i32 = 5i32 ; pub const SS_ICON : i32 = 3i32 ; pub const SS_LEFT : i32 = 0i32 ; pub const SS_LEFTNOWORDWRAP : i32 = 12i32 ; pub const SS_NOPREFIX : i32 = 128i32 ; pub const SS_NOTIFY : i32 = 256i32 ; pub const SS_OWNERDRAW : i32 = 13i32 ; pub const SS_PATHELLIPSIS : i32 = 32768i32 ; pub const SS_REALSIZECONTROL : i32 = 64i32 ; pub const SS_REALSIZEIMAGE : i32 = 2048i32 ; pub const SS_RIGHT : i32 = 2i32 ; pub const SS_RIGHTJUST : i32 = 1024i32 ; pub const SS_SIMPLE : i32 = 11i32 ; pub const SS_SUNKEN : i32 = 4096i32 ; pub const SS_TYPEMASK : i32 = 31i32 ; pub const SS_USERITEM : i32 = 10i32 ; pub const SS_WHITEFRAME : i32 = 9i32 ; pub const SS_WHITERECT : i32 = 6i32 ; pub const SS_WORDELLIPSIS : i32 = 49152i32 ; pub const START_PAGE_GENERAL : u32 = 4294967295u32 ; pub const STATE_SYSTEM_ALERT_HIGH : u32 = 268435456u32 ; pub const STATE_SYSTEM_ALERT_LOW : u32 = 67108864u32 ; pub const STATE_SYSTEM_ALERT_MEDIUM : u32 = 134217728u32 ; pub const STATE_SYSTEM_ANIMATED : u32 = 16384u32 ; pub const STATE_SYSTEM_BUSY : u32 = 2048u32 ; pub const STATE_SYSTEM_CHECKED : u32 = 16u32 ; pub const STATE_SYSTEM_COLLAPSED : u32 = 1024u32 ; pub const STATE_SYSTEM_DEFAULT : u32 = 256u32 ; pub const STATE_SYSTEM_EXPANDED : u32 = 512u32 ; pub const STATE_SYSTEM_EXTSELECTABLE : u32 = 33554432u32 ; pub const STATE_SYSTEM_FLOATING : u32 = 4096u32 ; pub const STATE_SYSTEM_FOCUSED : u32 = 4u32 ; pub const STATE_SYSTEM_HOTTRACKED : u32 = 128u32 ; pub const STATE_SYSTEM_LINKED : u32 = 4194304u32 ; pub const STATE_SYSTEM_MARQUEED : u32 = 8192u32 ; pub const STATE_SYSTEM_MIXED : u32 = 32u32 ; pub const STATE_SYSTEM_MOVEABLE : u32 = 262144u32 ; pub const STATE_SYSTEM_MULTISELECTABLE : u32 = 16777216u32 ; pub const STATE_SYSTEM_PROTECTED : u32 = 536870912u32 ; pub const STATE_SYSTEM_READONLY : u32 = 64u32 ; pub const STATE_SYSTEM_SELECTABLE : u32 = 2097152u32 ; pub const STATE_SYSTEM_SELECTED : u32 = 2u32 ; pub const STATE_SYSTEM_SELFVOICING : u32 = 524288u32 ; pub const STATE_SYSTEM_SIZEABLE : u32 = 131072u32 ; pub const STATE_SYSTEM_TRAVERSED : u32 = 8388608u32 ; pub const STATE_SYSTEM_VALID : u32 = 1073741823u32 ; pub const STM_GETICON : u32 = 369u32 ; pub const STM_GETIMAGE : u32 = 371u32 ; pub const STM_MSGMAX : u32 = 372u32 ; pub const STM_SETICON : u32 = 368u32 ; pub const STM_SETIMAGE : u32 = 370u32 ; pub const STN_CLICKED : u32 = 0u32 ; pub const STN_DBLCLK : u32 = 1u32 ; pub const STN_DISABLE : u32 = 3u32 ; pub const STN_ENABLE : u32 = 2u32 ; pub const STRSAFE_E_END_OF_FILE : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024858i32 as _ ) ; pub const STRSAFE_E_INSUFFICIENT_BUFFER : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024774i32 as _ ) ; pub const STRSAFE_E_INVALID_PARAMETER : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024809i32 as _ ) ; pub const STRSAFE_FILL_BEHIND_NULL : u32 = 512u32 ; pub const STRSAFE_FILL_ON_FAILURE : u32 = 1024u32 ; pub const STRSAFE_IGNORE_NULLS : u32 = 256u32 ; pub const STRSAFE_MAX_CCH : u32 = 2147483647u32 ; pub const STRSAFE_NO_TRUNCATION : u32 = 4096u32 ; pub const STRSAFE_NULL_ON_FAILURE : u32 = 2048u32 ; pub const STRSAFE_USE_SECURE_CRT : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct STYLESTRUCT { pub styleOld : u32 , pub styleNew : u32 } impl STYLESTRUCT { } impl :: std :: default :: Default for STYLESTRUCT { fn default ( ) -> Self { Self { styleOld : 0 , styleNew : 0 } } } impl :: std :: fmt :: Debug for STYLESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "STYLESTRUCT" ) . field ( "styleOld" , & self . styleOld ) . field ( "styleNew" , & self . styleNew ) . finish ( ) } } impl :: std :: cmp :: PartialEq for STYLESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . styleOld == other . styleOld && self . styleNew == other . styleNew } } impl :: std :: cmp :: Eq for STYLESTRUCT { } unsafe impl :: windows :: Abi for STYLESTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const SYMBOL_FONTTYPE : u32 = 524288u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_CURSOR_ID ( pub u32 ) ; pub const OCR_APPSTARTING : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32650u32 ) ; pub const OCR_NORMAL : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32512u32 ) ; pub const OCR_CROSS : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32515u32 ) ; pub const OCR_HAND : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32649u32 ) ; pub const OCR_HELP : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32651u32 ) ; pub const OCR_IBEAM : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32513u32 ) ; pub const OCR_NO : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32648u32 ) ; pub const OCR_SIZEALL : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32646u32 ) ; pub const OCR_SIZENESW : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32643u32 ) ; pub const OCR_SIZENS : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32645u32 ) ; pub const OCR_SIZENWSE : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32642u32 ) ; pub const OCR_SIZEWE : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32644u32 ) ; pub const OCR_UP : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32516u32 ) ; pub const OCR_WAIT : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32514u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_CURSOR_ID { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_CURSOR_ID { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_CURSOR_ID { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_CURSOR_ID { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_CURSOR_ID { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_CURSOR_ID { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_METRICS_INDEX ( pub u32 ) ; pub const SM_ARRANGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 56u32 ) ; pub const SM_CLEANBOOT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 67u32 ) ; pub const SM_CMONITORS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 80u32 ) ; pub const SM_CMOUSEBUTTONS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 43u32 ) ; pub const SM_CONVERTIBLESLATEMODE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8195u32 ) ; pub const SM_CXBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 5u32 ) ; pub const SM_CXCURSOR : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 13u32 ) ; pub const SM_CXDLGFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 7u32 ) ; pub const SM_CXDOUBLECLK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 36u32 ) ; pub const SM_CXDRAG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 68u32 ) ; pub const SM_CXEDGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 45u32 ) ; pub const SM_CXFIXEDFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 7u32 ) ; pub const SM_CXFOCUSBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 83u32 ) ; pub const SM_CXFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 32u32 ) ; pub const SM_CXFULLSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 16u32 ) ; pub const SM_CXHSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 21u32 ) ; pub const SM_CXHTHUMB : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 10u32 ) ; pub const SM_CXICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 11u32 ) ; pub const SM_CXICONSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 38u32 ) ; pub const SM_CXMAXIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 61u32 ) ; pub const SM_CXMAXTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 59u32 ) ; pub const SM_CXMENUCHECK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 71u32 ) ; pub const SM_CXMENUSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 54u32 ) ; pub const SM_CXMIN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 28u32 ) ; pub const SM_CXMINIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 57u32 ) ; pub const SM_CXMINSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 47u32 ) ; pub const SM_CXMINTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 34u32 ) ; pub const SM_CXPADDEDBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 92u32 ) ; pub const SM_CXSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 0u32 ) ; pub const SM_CXSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 30u32 ) ; pub const SM_CXSIZEFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 32u32 ) ; pub const SM_CXSMICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 49u32 ) ; pub const SM_CXSMSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 52u32 ) ; pub const SM_CXVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 78u32 ) ; pub const SM_CXVSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 2u32 ) ; pub const SM_CYBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 6u32 ) ; pub const SM_CYCAPTION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 4u32 ) ; pub const SM_CYCURSOR : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 14u32 ) ; pub const SM_CYDLGFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8u32 ) ; pub const SM_CYDOUBLECLK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 37u32 ) ; pub const SM_CYDRAG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 69u32 ) ; pub const SM_CYEDGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 46u32 ) ; pub const SM_CYFIXEDFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8u32 ) ; pub const SM_CYFOCUSBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 84u32 ) ; pub const SM_CYFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 33u32 ) ; pub const SM_CYFULLSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 17u32 ) ; pub const SM_CYHSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 3u32 ) ; pub const SM_CYICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 12u32 ) ; pub const SM_CYICONSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 39u32 ) ; pub const SM_CYKANJIWINDOW : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 18u32 ) ; pub const SM_CYMAXIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 62u32 ) ; pub const SM_CYMAXTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 60u32 ) ; pub const SM_CYMENU : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 15u32 ) ; pub const SM_CYMENUCHECK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 72u32 ) ; pub const SM_CYMENUSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 55u32 ) ; pub const SM_CYMIN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 29u32 ) ; pub const SM_CYMINIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 58u32 ) ; pub const SM_CYMINSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 48u32 ) ; pub const SM_CYMINTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 35u32 ) ; pub const SM_CYSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 1u32 ) ; pub const SM_CYSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 31u32 ) ; pub const SM_CYSIZEFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 33u32 ) ; pub const SM_CYSMCAPTION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 51u32 ) ; pub const SM_CYSMICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 50u32 ) ; pub const SM_CYSMSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 53u32 ) ; pub const SM_CYVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 79u32 ) ; pub const SM_CYVSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 20u32 ) ; pub const SM_CYVTHUMB : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 9u32 ) ; pub const SM_DBCSENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 42u32 ) ; pub const SM_DEBUG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 22u32 ) ; pub const SM_DIGITIZER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 94u32 ) ; pub const SM_IMMENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 82u32 ) ; pub const SM_MAXIMUMTOUCHES : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 95u32 ) ; pub const SM_MEDIACENTER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 87u32 ) ; pub const SM_MENUDROPALIGNMENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 40u32 ) ; pub const SM_MIDEASTENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 74u32 ) ; pub const SM_MOUSEPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 19u32 ) ; pub const SM_MOUSEHORIZONTALWHEELPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 91u32 ) ; pub const SM_MOUSEWHEELPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 75u32 ) ; pub const SM_NETWORK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 63u32 ) ; pub const SM_PENWINDOWS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 41u32 ) ; pub const SM_REMOTECONTROL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8193u32 ) ; pub const SM_REMOTESESSION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 4096u32 ) ; pub const SM_SAMEDISPLAYFORMAT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 81u32 ) ; pub const SM_SECURE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 44u32 ) ; pub const SM_SERVERR2 : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 89u32 ) ; pub const SM_SHOWSOUNDS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 70u32 ) ; pub const SM_SHUTTINGDOWN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8192u32 ) ; pub const SM_SLOWMACHINE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 73u32 ) ; pub const SM_STARTER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 88u32 ) ; pub const SM_SWAPBUTTON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 23u32 ) ; pub const SM_SYSTEMDOCKED_ : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8196u32 ) ; pub const SM_TABLETPC : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 86u32 ) ; pub const SM_XVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 76u32 ) ; pub const SM_YVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 77u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_METRICS_INDEX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_METRICS_INDEX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_METRICS_INDEX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_METRICS_INDEX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_METRICS_INDEX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_METRICS_INDEX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_PARAMETERS_INFO_ACTION ( pub u32 ) ; pub const SPI_GETBEEP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 1u32 ) ; pub const SPI_SETBEEP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 2u32 ) ; pub const SPI_GETMOUSE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 3u32 ) ; pub const SPI_SETMOUSE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4u32 ) ; pub const SPI_GETBORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 5u32 ) ; pub const SPI_SETBORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 6u32 ) ; pub const SPI_GETKEYBOARDSPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 10u32 ) ; pub const SPI_SETKEYBOARDSPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 11u32 ) ; pub const SPI_LANGDRIVER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 12u32 ) ; pub const SPI_ICONHORIZONTALSPACING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 13u32 ) ; pub const SPI_GETSCREENSAVETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 14u32 ) ; pub const SPI_SETSCREENSAVETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 15u32 ) ; pub const SPI_GETSCREENSAVEACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 16u32 ) ; pub const SPI_SETSCREENSAVEACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 17u32 ) ; pub const SPI_GETGRIDGRANULARITY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 18u32 ) ; pub const SPI_SETGRIDGRANULARITY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 19u32 ) ; pub const SPI_SETDESKWALLPAPER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 20u32 ) ; pub const SPI_SETDESKPATTERN : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 21u32 ) ; pub const SPI_GETKEYBOARDDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 22u32 ) ; pub const SPI_SETKEYBOARDDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 23u32 ) ; pub const SPI_ICONVERTICALSPACING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 24u32 ) ; pub const SPI_GETICONTITLEWRAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 25u32 ) ; pub const SPI_SETICONTITLEWRAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 26u32 ) ; pub const SPI_GETMENUDROPALIGNMENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 27u32 ) ; pub const SPI_SETMENUDROPALIGNMENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 28u32 ) ; pub const SPI_SETDOUBLECLKWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 29u32 ) ; pub const SPI_SETDOUBLECLKHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 30u32 ) ; pub const SPI_GETICONTITLELOGFONT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 31u32 ) ; pub const SPI_SETDOUBLECLICKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 32u32 ) ; pub const SPI_SETMOUSEBUTTONSWAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 33u32 ) ; pub const SPI_SETICONTITLELOGFONT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 34u32 ) ; pub const SPI_GETFASTTASKSWITCH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 35u32 ) ; pub const SPI_SETFASTTASKSWITCH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 36u32 ) ; pub const SPI_SETDRAGFULLWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 37u32 ) ; pub const SPI_GETDRAGFULLWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 38u32 ) ; pub const SPI_GETNONCLIENTMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 41u32 ) ; pub const SPI_SETNONCLIENTMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 42u32 ) ; pub const SPI_GETMINIMIZEDMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 43u32 ) ; pub const SPI_SETMINIMIZEDMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 44u32 ) ; pub const SPI_GETICONMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 45u32 ) ; pub const SPI_SETICONMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 46u32 ) ; pub const SPI_SETWORKAREA : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 47u32 ) ; pub const SPI_GETWORKAREA : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 48u32 ) ; pub const SPI_SETPENWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 49u32 ) ; pub const SPI_GETHIGHCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 66u32 ) ; pub const SPI_SETHIGHCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 67u32 ) ; pub const SPI_GETKEYBOARDPREF : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 68u32 ) ; pub const SPI_SETKEYBOARDPREF : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 69u32 ) ; pub const SPI_GETSCREENREADER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 70u32 ) ; pub const SPI_SETSCREENREADER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 71u32 ) ; pub const SPI_GETANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 72u32 ) ; pub const SPI_SETANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 73u32 ) ; pub const SPI_GETFONTSMOOTHING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 74u32 ) ; pub const SPI_SETFONTSMOOTHING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 75u32 ) ; pub const SPI_SETDRAGWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 76u32 ) ; pub const SPI_SETDRAGHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 77u32 ) ; pub const SPI_SETHANDHELD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 78u32 ) ; pub const SPI_GETLOWPOWERTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 79u32 ) ; pub const SPI_GETPOWEROFFTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 80u32 ) ; pub const SPI_SETLOWPOWERTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 81u32 ) ; pub const SPI_SETPOWEROFFTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 82u32 ) ; pub const SPI_GETLOWPOWERACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 83u32 ) ; pub const SPI_GETPOWEROFFACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 84u32 ) ; pub const SPI_SETLOWPOWERACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 85u32 ) ; pub const SPI_SETPOWEROFFACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 86u32 ) ; pub const SPI_SETCURSORS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 87u32 ) ; pub const SPI_SETICONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 88u32 ) ; pub const SPI_GETDEFAULTINPUTLANG : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 89u32 ) ; pub const SPI_SETDEFAULTINPUTLANG : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 90u32 ) ; pub const SPI_SETLANGTOGGLE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 91u32 ) ; pub const SPI_GETWINDOWSEXTENSION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 92u32 ) ; pub const SPI_SETMOUSETRAILS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 93u32 ) ; pub const SPI_GETMOUSETRAILS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 94u32 ) ; pub const SPI_SETSCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 97u32 ) ; pub const SPI_SCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 97u32 ) ; pub const SPI_GETFILTERKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 50u32 ) ; pub const SPI_SETFILTERKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 51u32 ) ; pub const SPI_GETTOGGLEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 52u32 ) ; pub const SPI_SETTOGGLEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 53u32 ) ; pub const SPI_GETMOUSEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 54u32 ) ; pub const SPI_SETMOUSEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 55u32 ) ; pub const SPI_GETSHOWSOUNDS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 56u32 ) ; pub const SPI_SETSHOWSOUNDS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 57u32 ) ; pub const SPI_GETSTICKYKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 58u32 ) ; pub const SPI_SETSTICKYKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 59u32 ) ; pub const SPI_GETACCESSTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 60u32 ) ; pub const SPI_SETACCESSTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 61u32 ) ; pub const SPI_GETSERIALKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 62u32 ) ; pub const SPI_SETSERIALKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 63u32 ) ; pub const SPI_GETSOUNDSENTRY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 64u32 ) ; pub const SPI_SETSOUNDSENTRY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 65u32 ) ; pub const SPI_GETSNAPTODEFBUTTON : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 95u32 ) ; pub const SPI_SETSNAPTODEFBUTTON : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 96u32 ) ; pub const SPI_GETMOUSEHOVERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 98u32 ) ; pub const SPI_SETMOUSEHOVERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 99u32 ) ; pub const SPI_GETMOUSEHOVERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 100u32 ) ; pub const SPI_SETMOUSEHOVERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 101u32 ) ; pub const SPI_GETMOUSEHOVERTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 102u32 ) ; pub const SPI_SETMOUSEHOVERTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 103u32 ) ; pub const SPI_GETWHEELSCROLLLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 104u32 ) ; pub const SPI_SETWHEELSCROLLLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 105u32 ) ; pub const SPI_GETMENUSHOWDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 106u32 ) ; pub const SPI_SETMENUSHOWDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 107u32 ) ; pub const SPI_GETWHEELSCROLLCHARS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 108u32 ) ; pub const SPI_SETWHEELSCROLLCHARS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 109u32 ) ; pub const SPI_GETSHOWIMEUI : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 110u32 ) ; pub const SPI_SETSHOWIMEUI : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 111u32 ) ; pub const SPI_GETMOUSESPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 112u32 ) ; pub const SPI_SETMOUSESPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 113u32 ) ; pub const SPI_GETSCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 114u32 ) ; pub const SPI_GETDESKWALLPAPER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 115u32 ) ; pub const SPI_GETAUDIODESCRIPTION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 116u32 ) ; pub const SPI_SETAUDIODESCRIPTION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 117u32 ) ; pub const SPI_GETSCREENSAVESECURE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 118u32 ) ; pub const SPI_SETSCREENSAVESECURE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 119u32 ) ; pub const SPI_GETHUNGAPPTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 120u32 ) ; pub const SPI_SETHUNGAPPTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 121u32 ) ; pub const SPI_GETWAITTOKILLTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 122u32 ) ; pub const SPI_SETWAITTOKILLTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 123u32 ) ; pub const SPI_GETWAITTOKILLSERVICETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 124u32 ) ; pub const SPI_SETWAITTOKILLSERVICETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 125u32 ) ; pub const SPI_GETMOUSEDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 126u32 ) ; pub const SPI_SETMOUSEDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 127u32 ) ; pub const SPI_GETPENDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 128u32 ) ; pub const SPI_SETPENDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 129u32 ) ; pub const SPI_GETWINARRANGING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 130u32 ) ; pub const SPI_SETWINARRANGING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 131u32 ) ; pub const SPI_GETMOUSEDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 132u32 ) ; pub const SPI_SETMOUSEDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 133u32 ) ; pub const SPI_GETPENDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 134u32 ) ; pub const SPI_SETPENDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 135u32 ) ; pub const SPI_GETMOUSESIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 136u32 ) ; pub const SPI_SETMOUSESIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 137u32 ) ; pub const SPI_GETPENSIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 138u32 ) ; pub const SPI_SETPENSIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 139u32 ) ; pub const SPI_GETDRAGFROMMAXIMIZE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 140u32 ) ; pub const SPI_SETDRAGFROMMAXIMIZE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 141u32 ) ; pub const SPI_GETSNAPSIZING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 142u32 ) ; pub const SPI_SETSNAPSIZING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 143u32 ) ; pub const SPI_GETDOCKMOVING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 144u32 ) ; pub const SPI_SETDOCKMOVING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 145u32 ) ; pub const SPI_GETTOUCHPREDICTIONPARAMETERS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 156u32 ) ; pub const SPI_SETTOUCHPREDICTIONPARAMETERS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 157u32 ) ; pub const SPI_GETLOGICALDPIOVERRIDE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 158u32 ) ; pub const SPI_SETLOGICALDPIOVERRIDE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 159u32 ) ; pub const SPI_GETMENURECT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 162u32 ) ; pub const SPI_SETMENURECT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 163u32 ) ; pub const SPI_GETACTIVEWINDOWTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4096u32 ) ; pub const SPI_SETACTIVEWINDOWTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4097u32 ) ; pub const SPI_GETMENUANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4098u32 ) ; pub const SPI_SETMENUANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4099u32 ) ; pub const SPI_GETCOMBOBOXANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4100u32 ) ; pub const SPI_SETCOMBOBOXANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4101u32 ) ; pub const SPI_GETLISTBOXSMOOTHSCROLLING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4102u32 ) ; pub const SPI_SETLISTBOXSMOOTHSCROLLING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4103u32 ) ; pub const SPI_GETGRADIENTCAPTIONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4104u32 ) ; pub const SPI_SETGRADIENTCAPTIONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4105u32 ) ; pub const SPI_GETKEYBOARDCUES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4106u32 ) ; pub const SPI_SETKEYBOARDCUES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4107u32 ) ; pub const SPI_GETMENUUNDERLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4106u32 ) ; pub const SPI_SETMENUUNDERLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4107u32 ) ; pub const SPI_GETACTIVEWNDTRKZORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4108u32 ) ; pub const SPI_SETACTIVEWNDTRKZORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4109u32 ) ; pub const SPI_GETHOTTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4110u32 ) ; pub const SPI_SETHOTTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4111u32 ) ; pub const SPI_GETMENUFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4114u32 ) ; pub const SPI_SETMENUFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4115u32 ) ; pub const SPI_GETSELECTIONFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4116u32 ) ; pub const SPI_SETSELECTIONFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4117u32 ) ; pub const SPI_GETTOOLTIPANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4118u32 ) ; pub const SPI_SETTOOLTIPANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4119u32 ) ; pub const SPI_GETTOOLTIPFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4120u32 ) ; pub const SPI_SETTOOLTIPFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4121u32 ) ; pub const SPI_GETCURSORSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4122u32 ) ; pub const SPI_SETCURSORSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4123u32 ) ; pub const SPI_GETMOUSESONAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4124u32 ) ; pub const SPI_SETMOUSESONAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4125u32 ) ; pub const SPI_GETMOUSECLICKLOCK : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4126u32 ) ; pub const SPI_SETMOUSECLICKLOCK : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4127u32 ) ; pub const SPI_GETMOUSEVANISH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4128u32 ) ; pub const SPI_SETMOUSEVANISH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4129u32 ) ; pub const SPI_GETFLATMENU : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4130u32 ) ; pub const SPI_SETFLATMENU : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4131u32 ) ; pub const SPI_GETDROPSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4132u32 ) ; pub const SPI_SETDROPSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4133u32 ) ; pub const SPI_GETBLOCKSENDINPUTRESETS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4134u32 ) ; pub const SPI_SETBLOCKSENDINPUTRESETS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4135u32 ) ; pub const SPI_GETUIEFFECTS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4158u32 ) ; pub const SPI_SETUIEFFECTS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4159u32 ) ; pub const SPI_GETDISABLEOVERLAPPEDCONTENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4160u32 ) ; pub const SPI_SETDISABLEOVERLAPPEDCONTENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4161u32 ) ; pub const SPI_GETCLIENTAREAANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4162u32 ) ; pub const SPI_SETCLIENTAREAANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4163u32 ) ; pub const SPI_GETCLEARTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4168u32 ) ; pub const SPI_SETCLEARTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4169u32 ) ; pub const SPI_GETSPEECHRECOGNITION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4170u32 ) ; pub const SPI_SETSPEECHRECOGNITION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4171u32 ) ; pub const SPI_GETCARETBROWSING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4172u32 ) ; pub const SPI_SETCARETBROWSING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4173u32 ) ; pub const SPI_GETTHREADLOCALINPUTSETTINGS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4174u32 ) ; pub const SPI_SETTHREADLOCALINPUTSETTINGS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4175u32 ) ; pub const SPI_GETSYSTEMLANGUAGEBAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4176u32 ) ; pub const SPI_SETSYSTEMLANGUAGEBAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4177u32 ) ; pub const SPI_GETFOREGROUNDLOCKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8192u32 ) ; pub const SPI_SETFOREGROUNDLOCKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8193u32 ) ; pub const SPI_GETACTIVEWNDTRKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8194u32 ) ; pub const SPI_SETACTIVEWNDTRKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8195u32 ) ; pub const SPI_GETFOREGROUNDFLASHCOUNT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8196u32 ) ; pub const SPI_SETFOREGROUNDFLASHCOUNT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8197u32 ) ; pub const SPI_GETCARETWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8198u32 ) ; pub const SPI_SETCARETWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8199u32 ) ; pub const SPI_GETMOUSECLICKLOCKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8200u32 ) ; pub const SPI_SETMOUSECLICKLOCKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8201u32 ) ; pub const SPI_GETFONTSMOOTHINGTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8202u32 ) ; pub const SPI_SETFONTSMOOTHINGTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8203u32 ) ; pub const SPI_GETFONTSMOOTHINGCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8204u32 ) ; pub const SPI_SETFONTSMOOTHINGCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8205u32 ) ; pub const SPI_GETFOCUSBORDERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8206u32 ) ; pub const SPI_SETFOCUSBORDERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8207u32 ) ; pub const SPI_GETFOCUSBORDERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8208u32 ) ; pub const SPI_SETFOCUSBORDERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8209u32 ) ; pub const SPI_GETFONTSMOOTHINGORIENTATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8210u32 ) ; pub const SPI_SETFONTSMOOTHINGORIENTATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8211u32 ) ; pub const SPI_GETMINIMUMHITRADIUS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8212u32 ) ; pub const SPI_SETMINIMUMHITRADIUS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8213u32 ) ; pub const SPI_GETMESSAGEDURATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8214u32 ) ; pub const SPI_SETMESSAGEDURATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8215u32 ) ; pub const SPI_GETCONTACTVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8216u32 ) ; pub const SPI_SETCONTACTVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8217u32 ) ; pub const SPI_GETGESTUREVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8218u32 ) ; pub const SPI_SETGESTUREVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8219u32 ) ; pub const SPI_GETMOUSEWHEELROUTING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8220u32 ) ; pub const SPI_SETMOUSEWHEELROUTING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8221u32 ) ; pub const SPI_GETPENVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8222u32 ) ; pub const SPI_SETPENVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8223u32 ) ; pub const SPI_GETPENARBITRATIONTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8224u32 ) ; pub const SPI_SETPENARBITRATIONTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8225u32 ) ; pub const SPI_GETCARETTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8226u32 ) ; pub const SPI_SETCARETTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8227u32 ) ; pub const SPI_GETHANDEDNESS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8228u32 ) ; pub const SPI_SETHANDEDNESS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8229u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_PARAMETERS_INFO_ACTION { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_PARAMETERS_INFO_ACTION { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_PARAMETERS_INFO_ACTION { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_PARAMETERS_INFO_ACTION { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_PARAMETERS_INFO_ACTION { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_PARAMETERS_INFO_ACTION { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( pub u32 ) ; pub const SPIF_UPDATEINIFILE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 1u32 ) ; pub const SPIF_SENDCHANGE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 2u32 ) ; pub const SPIF_SENDWININICHANGE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYS_COLOR_INDEX ( pub u32 ) ; pub const COLOR_3DDKSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 21u32 ) ; pub const COLOR_3DFACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 15u32 ) ; pub const COLOR_3DHIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_3DHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_3DLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 22u32 ) ; pub const COLOR_3DSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 16u32 ) ; pub const COLOR_ACTIVEBORDER : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 10u32 ) ; pub const COLOR_ACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 2u32 ) ; pub const COLOR_APPWORKSPACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 12u32 ) ; pub const COLOR_BACKGROUND : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 1u32 ) ; pub const COLOR_BTNFACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 15u32 ) ; pub const _COLOR_BTNHIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const _COLOR_BTNHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_BTNSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 16u32 ) ; pub const COLOR_BTNTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 18u32 ) ; pub const COLOR_CAPTIONTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 9u32 ) ; pub const COLOR_DESKTOP : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 1u32 ) ; pub const COLOR_GRADIENTACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 27u32 ) ; pub const COLOR_GRADIENTINACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 28u32 ) ; pub const COLOR_GRAYTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 17u32 ) ; pub const COLOR_HIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 13u32 ) ; pub const COLOR_HIGHLIGHTTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 14u32 ) ; pub const COLOR_HOTLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 26u32 ) ; pub const COLOR_INACTIVEBORDER : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 11u32 ) ; pub const COLOR_INACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 3u32 ) ; pub const COLOR_INACTIVECAPTIONTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 19u32 ) ; pub const COLOR_INFOBK : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 24u32 ) ; pub const COLOR_INFOTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 23u32 ) ; pub const COLOR_MENU : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 4u32 ) ; pub const COLOR_MENUHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 29u32 ) ; pub const COLOR_MENUBAR : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 30u32 ) ; pub const COLOR_MENUTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 7u32 ) ; pub const COLOR_SCROLLBAR : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 0u32 ) ; pub const COLOR_WINDOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 5u32 ) ; pub const COLOR_WINDOWFRAME : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 6u32 ) ; pub const COLOR_WINDOWTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 8u32 ) ; impl :: std :: convert :: From < u32 > for SYS_COLOR_INDEX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYS_COLOR_INDEX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYS_COLOR_INDEX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYS_COLOR_INDEX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYS_COLOR_INDEX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYS_COLOR_INDEX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub unsafe fn SendDlgItemMessageA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendDlgItemMessageA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendDlgItemMessageA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendDlgItemMessageW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendDlgItemMessageW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendDlgItemMessageW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , :: std :: mem :: transmute ( wparam ) , :: std :: mem :: transmute ( lparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageCallbackA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , lpresultcallback : :: std :: option :: Option < SENDASYNCPROC > , dwdata : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageCallbackA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , lpresultcallback : :: windows :: RawPtr , dwdata : usize ) -> super::super::Foundation:: BOOL ; } SendMessageCallbackA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpresultcallback ) , :: std :: mem :: transmute ( dwdata ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageCallbackW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , lpresultcallback : :: std :: option :: Option < SENDASYNCPROC > , dwdata : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageCallbackW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , lpresultcallback : :: windows :: RawPtr , dwdata : usize ) -> super::super::Foundation:: BOOL ; } SendMessageCallbackW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpresultcallback ) , :: std :: mem :: transmute ( dwdata ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageTimeoutA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageTimeoutA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize ) -> super::super::Foundation:: LRESULT ; } SendMessageTimeoutA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fuflags ) , :: std :: mem :: transmute ( utimeout ) , :: std :: mem :: transmute ( lpdwresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageTimeoutW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageTimeoutW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize ) -> super::super::Foundation:: LRESULT ; } SendMessageTimeoutW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fuflags ) , :: std :: mem :: transmute ( utimeout ) , :: std :: mem :: transmute ( lpdwresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , :: std :: mem :: transmute ( wparam ) , :: std :: mem :: transmute ( lparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendNotifyMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendNotifyMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } SendNotifyMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendNotifyMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendNotifyMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } SendNotifyMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCaretBlinkTime < > ( umseconds : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCaretBlinkTime ( umseconds : u32 ) -> super::super::Foundation:: BOOL ; } SetCaretBlinkTime ( :: std :: mem :: transmute ( umseconds ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCaretPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCaretPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetCaretPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 ) -> u32 ; } SetClassLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize ) -> usize ; } SetClassLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize ) -> usize ; } SetClassLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 ) -> u32 ; } SetClassLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , wnewword : u16 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 , wnewword : u16 ) -> u16 ; } SetClassWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( wnewword ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCoalescableTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nidevent : usize , uelapse : u32 , lptimerfunc : :: std :: option :: Option < TIMERPROC > , utolerancedelay : u32 , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCoalescableTimer ( hwnd : super::super::Foundation:: HWND , nidevent : usize , uelapse : u32 , lptimerfunc : :: windows :: RawPtr , utolerancedelay : u32 ) -> usize ; } SetCoalescableTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nidevent ) , :: std :: mem :: transmute ( uelapse ) , :: std :: mem :: transmute ( lptimerfunc ) , :: std :: mem :: transmute ( utolerancedelay ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCursor < 'a , > ( hcursor : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCursor ( hcursor : HCURSOR ) -> HCURSOR ; } SetCursor ( hcursor . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCursorPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCursorPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetCursorPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDebugErrorLevel < > ( dwlevel : u32 , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDebugErrorLevel ( dwlevel : u32 ) ; } SetDebugErrorLevel ( :: std :: mem :: transmute ( dwlevel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemInt < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , uvalue : u32 , bsigned : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemInt ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , uvalue : u32 , bsigned : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } SetDlgItemInt ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( uvalue ) , bsigned . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemTextA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemTextA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } SetDlgItemTextA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemTextW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemTextW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } SetDlgItemTextW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetForegroundWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetForegroundWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } SetForegroundWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetLayeredWindowAttributes < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , crkey : u32 , balpha : u8 , dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetLayeredWindowAttributes ( hwnd : super::super::Foundation:: HWND , crkey : u32 , balpha : u8 , dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS ) -> super::super::Foundation:: BOOL ; } SetLayeredWindowAttributes ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( crkey ) , :: std :: mem :: transmute ( balpha ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenu ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } SetMenu ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuDefaultItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uitem : u32 , fbypos : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuDefaultItem ( hmenu : HMENU , uitem : u32 , fbypos : u32 ) -> super::super::Foundation:: BOOL ; } SetMenuDefaultItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uitem ) , :: std :: mem :: transmute ( fbypos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuInfo < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , HMENU > , param1 : * mut MENUINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuInfo ( param0 : HMENU , param1 : * mut MENUINFO ) -> super::super::Foundation:: BOOL ; } SetMenuInfo ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( param1 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemBitmaps < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , hbitmapunchecked : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , hbitmapchecked : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemBitmaps ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , hbitmapunchecked : super::super::Graphics::Gdi:: HBITMAP , hbitmapchecked : super::super::Graphics::Gdi:: HBITMAP ) -> super::super::Foundation:: BOOL ; } SetMenuItemBitmaps ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , hbitmapunchecked . into_param ( ) . abi ( ) , hbitmapchecked . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemInfoA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbypositon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemInfoA ( hmenu : HMENU , item : u32 , fbypositon : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } SetMenuItemInfoA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbypositon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemInfoW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbypositon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemInfoW ( hmenu : HMENU , item : u32 , fbypositon : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } SetMenuItemInfoW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbypositon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMessageExtraInfo < 'a , > ( lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LPARAM { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMessageExtraInfo ( lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LPARAM ; } SetMessageExtraInfo ( lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMessageQueue < > ( cmessagesmax : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMessageQueue ( cmessagesmax : i32 ) -> super::super::Foundation:: BOOL ; } SetMessageQueue ( :: std :: mem :: transmute ( cmessagesmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetParent < 'a , > ( hwndchild : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndnewparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetParent ( hwndchild : super::super::Foundation:: HWND , hwndnewparent : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } SetParent ( hwndchild . into_param ( ) . abi ( ) , hwndnewparent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPhysicalCursorPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPhysicalCursorPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetPhysicalCursorPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetProcessDPIAware < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetProcessDPIAware ( ) -> super::super::Foundation:: BOOL ; } SetProcessDPIAware ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetProcessDefaultLayout < > ( dwdefaultlayout : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetProcessDefaultLayout ( dwdefaultlayout : u32 ) -> super::super::Foundation:: BOOL ; } SetProcessDefaultLayout ( :: std :: mem :: transmute ( dwdefaultlayout ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hdata : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR , hdata : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } SetPropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) , hdata . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hdata : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR , hdata : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } SetPropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) , hdata . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetSysColors < > ( celements : i32 , lpaelements : * const i32 , lpargbvalues : * const u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetSysColors ( celements : i32 , lpaelements : * const i32 , lpargbvalues : * const u32 ) -> super::super::Foundation:: BOOL ; } SetSysColors ( :: std :: mem :: transmute ( celements ) , :: std :: mem :: transmute ( lpaelements ) , :: std :: mem :: transmute ( lpargbvalues ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetSystemCursor < 'a , > ( hcur : impl :: windows :: IntoParam < 'a , HCURSOR > , id : SYSTEM_CURSOR_ID , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetSystemCursor ( hcur : HCURSOR , id : SYSTEM_CURSOR_ID ) -> super::super::Foundation:: BOOL ; } SetSystemCursor ( hcur . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( id ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nidevent : usize , uelapse : u32 , lptimerfunc : :: std :: option :: Option < TIMERPROC > , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetTimer ( hwnd : super::super::Foundation:: HWND , nidevent : usize , uelapse : u32 , lptimerfunc : :: windows :: RawPtr ) -> usize ; } SetTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nidevent ) , :: std :: mem :: transmute ( uelapse ) , :: std :: mem :: transmute ( lptimerfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowDisplayAffinity < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , dwaffinity : WINDOW_DISPLAY_AFFINITY , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowDisplayAffinity ( hwnd : super::super::Foundation:: HWND , dwaffinity : WINDOW_DISPLAY_AFFINITY ) -> super::super::Foundation:: BOOL ; } SetWindowDisplayAffinity ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwaffinity ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 ) -> i32 ; } SetWindowLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize ) -> isize ; } SetWindowLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize ) -> isize ; } SetWindowLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 ) -> i32 ; } SetWindowLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowPlacement < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpwndpl : * const WINDOWPLACEMENT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowPlacement ( hwnd : super::super::Foundation:: HWND , lpwndpl : * const WINDOWPLACEMENT ) -> super::super::Foundation:: BOOL ; } SetWindowPlacement ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndpl ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowPos < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinsertafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowPos ( hwnd : super::super::Foundation:: HWND , hwndinsertafter : super::super::Foundation:: HWND , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS ) -> super::super::Foundation:: BOOL ; } SetWindowPos ( hwnd . into_param ( ) . abi ( ) , hwndinsertafter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowTextA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowTextA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } SetWindowTextA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowTextW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowTextW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } SetWindowTextW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , wnewword : u16 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 , wnewword : u16 ) -> u16 ; } SetWindowWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( wnewword ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookA < > ( nfiltertype : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookA ( nfiltertype : i32 , pfnfilterproc : :: windows :: RawPtr ) -> HHOOK ; } SetWindowsHookA ( :: std :: mem :: transmute ( nfiltertype ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookExA < 'a , > ( idhook : WINDOWS_HOOK_ID , lpfn : :: std :: option :: Option < HOOKPROC > , hmod : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , dwthreadid : u32 , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookExA ( idhook : WINDOWS_HOOK_ID , lpfn : :: windows :: RawPtr , hmod : super::super::Foundation:: HINSTANCE , dwthreadid : u32 ) -> HHOOK ; } SetWindowsHookExA ( :: std :: mem :: transmute ( idhook ) , :: std :: mem :: transmute ( lpfn ) , hmod . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwthreadid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookExW < 'a , > ( idhook : WINDOWS_HOOK_ID , lpfn : :: std :: option :: Option < HOOKPROC > , hmod : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , dwthreadid : u32 , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookExW ( idhook : WINDOWS_HOOK_ID , lpfn : :: windows :: RawPtr , hmod : super::super::Foundation:: HINSTANCE , dwthreadid : u32 ) -> HHOOK ; } SetWindowsHookExW ( :: std :: mem :: transmute ( idhook ) , :: std :: mem :: transmute ( lpfn ) , hmod . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwthreadid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookW < > ( nfiltertype : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookW ( nfiltertype : i32 , pfnfilterproc : :: windows :: RawPtr ) -> HHOOK ; } SetWindowsHookW ( :: std :: mem :: transmute ( nfiltertype ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowCaret ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } ShowCaret ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowCursor < 'a , > ( bshow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowCursor ( bshow : super::super::Foundation:: BOOL ) -> i32 ; } ShowCursor ( bshow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowOwnedPopups < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , fshow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowOwnedPopups ( hwnd : super::super::Foundation:: HWND , fshow : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } ShowOwnedPopups ( hwnd . into_param ( ) . abi ( ) , fshow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ncmdshow : SHOW_WINDOW_CMD , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowWindow ( hwnd : super::super::Foundation:: HWND , ncmdshow : SHOW_WINDOW_CMD ) -> super::super::Foundation:: BOOL ; } ShowWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncmdshow ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowWindowAsync < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ncmdshow : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowWindowAsync ( hwnd : super::super::Foundation:: HWND , ncmdshow : i32 ) -> super::super::Foundation:: BOOL ; } ShowWindowAsync ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncmdshow ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SoundSentry < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SoundSentry ( ) -> super::super::Foundation:: BOOL ; } SoundSentry ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SwitchToThisWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , funknown : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SwitchToThisWindow ( hwnd : super::super::Foundation:: HWND , funknown : super::super::Foundation:: BOOL ) ; } SwitchToThisWindow ( hwnd . into_param ( ) . abi ( ) , funknown . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SystemParametersInfoA < > ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SystemParametersInfoA ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ) -> super::super::Foundation:: BOOL ; } SystemParametersInfoA ( :: std :: mem :: transmute ( uiaction ) , :: std :: mem :: transmute ( uiparam ) , :: std :: mem :: transmute ( pvparam ) , :: std :: mem :: transmute ( fwinini ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SystemParametersInfoW < > ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SystemParametersInfoW ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ) -> super::super::Foundation:: BOOL ; } SystemParametersInfoW ( :: std :: mem :: transmute ( uiaction ) , :: std :: mem :: transmute ( uiparam ) , :: std :: mem :: transmute ( pvparam ) , :: std :: mem :: transmute ( fwinini ) ) } # [ 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 TILE_WINDOWS_HOW ( pub u32 ) ; pub const MDITILE_HORIZONTAL : TILE_WINDOWS_HOW = TILE_WINDOWS_HOW ( 1u32 ) ; pub const MDITILE_VERTICAL : TILE_WINDOWS_HOW = TILE_WINDOWS_HOW ( 0u32 ) ; impl :: std :: convert :: From < u32 > for TILE_WINDOWS_HOW { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for TILE_WINDOWS_HOW { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for TILE_WINDOWS_HOW { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for TILE_WINDOWS_HOW { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for TILE_WINDOWS_HOW { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for TILE_WINDOWS_HOW { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub type TIMERPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : usize , param3 : u32 ) ; pub const TIMERV_COALESCING_MAX : u32 = 2147483637u32 ; pub const TIMERV_COALESCING_MIN : u32 = 1u32 ; pub const TIMERV_DEFAULT_COALESCING : u32 = 0u32 ; pub const TIMERV_NO_COALESCING : u32 = 4294967295u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TITLEBARINFO { pub cbSize : u32 , pub rcTitleBar : super::super::Foundation:: RECT , pub rgstate : [ u32 ;6 ] } impl TITLEBARINFO { } impl :: std :: default :: Default for TITLEBARINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcTitleBar : :: std :: default :: Default :: default ( ) , rgstate : [ 0 ;6 ] } } } impl :: std :: fmt :: Debug for TITLEBARINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TITLEBARINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcTitleBar" , & self . rcTitleBar ) . field ( "rgstate" , & self . rgstate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TITLEBARINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcTitleBar == other . rcTitleBar && self . rgstate == other . rgstate } } impl :: std :: cmp :: Eq for TITLEBARINFO { } unsafe impl :: windows :: Abi for TITLEBARINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TITLEBARINFOEX { pub cbSize : u32 , pub rcTitleBar : super::super::Foundation:: RECT , pub rgstate : [ u32 ;6 ] , pub rgrect : [ super::super::Foundation:: RECT ;6 ] } impl TITLEBARINFOEX { } impl :: std :: default :: Default for TITLEBARINFOEX { fn default ( ) -> Self { Self { cbSize : 0 , rcTitleBar : :: std :: default :: Default :: default ( ) , rgstate : [ 0 ;6 ] , rgrect : [ :: std :: default :: Default :: default ( ) ;6 ] } } } impl :: std :: fmt :: Debug for TITLEBARINFOEX { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TITLEBARINFOEX" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcTitleBar" , & self . rcTitleBar ) . field ( "rgstate" , & self . rgstate ) . field ( "rgrect" , & self . rgrect ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TITLEBARINFOEX { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcTitleBar == other . rcTitleBar && self . rgstate == other . rgstate && self . rgrect == other . rgrect } } impl :: std :: cmp :: Eq for TITLEBARINFOEX { } unsafe impl :: windows :: Abi for TITLEBARINFOEX { type Abi = Self ; type DefaultType = Self ; } pub const TKF_AVAILABLE : u32 = 2u32 ; pub const TKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const TKF_HOTKEYACTIVE : u32 = 4u32 ; pub const TKF_HOTKEYSOUND : u32 = 16u32 ; pub const TKF_INDICATOR : u32 = 32u32 ; pub const TKF_TOGGLEKEYSON : u32 = 1u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_LATENCY : u32 = 8u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_DELTA : f32 = 0.001f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_EXPO_SMOOTH_ALPHA : f32 = 0.99f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_LEARNING_RATE : f32 = 0.001f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MAX : f32 = 0.999f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MIN : f32 = 0.9f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_SAMPLETIME : u32 = 8u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_USE_HW_TIMESTAMP : u32 = 1u32 ; pub const TOUCH_FLAG_NONE : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_CLIENT : u32 = 1u32 ; pub const TOUCH_HIT_TESTING_DEFAULT : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_NONE : u32 = 2u32 ; pub const TOUCH_HIT_TESTING_PROXIMITY_CLOSEST : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_PROXIMITY_FARTHEST : u32 = 4095u32 ; pub const TOUCH_MASK_CONTACTAREA : u32 = 1u32 ; pub const TOUCH_MASK_NONE : u32 = 0u32 ; pub const TOUCH_MASK_ORIENTATION : u32 = 2u32 ; pub const TOUCH_MASK_PRESSURE : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TPMPARAMS { pub cbSize : u32 , pub rcExclude : super::super::Foundation:: RECT } impl TPMPARAMS { } impl :: std :: default :: Default for TPMPARAMS { fn default ( ) -> Self { Self { cbSize : 0 , rcExclude : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for TPMPARAMS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TPMPARAMS" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcExclude" , & self . rcExclude ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TPMPARAMS { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcExclude == other . rcExclude } } impl :: std :: cmp :: Eq for TPMPARAMS { } unsafe impl :: windows :: Abi for TPMPARAMS { 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 TRACK_POPUP_MENU_FLAGS ( pub u32 ) ; pub const TPM_LEFTBUTTON : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_RIGHTBUTTON : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 2u32 ) ; pub const TPM_LEFTALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_CENTERALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 4u32 ) ; pub const TPM_RIGHTALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 8u32 ) ; pub const TPM_TOPALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_VCENTERALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 16u32 ) ; pub const TPM_BOTTOMALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 32u32 ) ; pub const TPM_HORIZONTAL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_VERTICAL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 64u32 ) ; pub const TPM_NONOTIFY : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 128u32 ) ; pub const TPM_RETURNCMD : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 256u32 ) ; pub const TPM_RECURSE : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 1u32 ) ; pub const TPM_HORPOSANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 1024u32 ) ; pub const TPM_HORNEGANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 2048u32 ) ; pub const TPM_VERPOSANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 4096u32 ) ; pub const TPM_VERNEGANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 8192u32 ) ; pub const TPM_NOANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 16384u32 ) ; pub const TPM_LAYOUTRTL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 32768u32 ) ; pub const TPM_WORKAREA : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 65536u32 ) ; impl :: std :: convert :: From < u32 > for TRACK_POPUP_MENU_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for TRACK_POPUP_MENU_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for TRACK_POPUP_MENU_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for TRACK_POPUP_MENU_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for TRACK_POPUP_MENU_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for TRACK_POPUP_MENU_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const TT_OPENTYPE_FONTTYPE : u32 = 131072u32 ; pub const TYPE1_FONTTYPE : u32 = 262144u32 ; pub unsafe fn TileWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , whow : TILE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TileWindows ( hwndparent : super::super::Foundation:: HWND , whow : TILE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND ) -> u16 ; } TileWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( whow ) , :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( ckids ) , :: std :: mem :: transmute ( lpkids ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TouchPredictionParameters { pub cbSize : u32 , pub dwLatency : u32 , pub dwSampleTime : u32 , pub bUseHWTimeStamp : u32 } impl TouchPredictionParameters { } impl :: std :: default :: Default for TouchPredictionParameters { fn default ( ) -> Self { Self { cbSize : 0 , dwLatency : 0 , dwSampleTime : 0 , bUseHWTimeStamp : 0 } } } impl :: std :: fmt :: Debug for TouchPredictionParameters { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TouchPredictionParameters" ) . field ( "cbSize" , & self . cbSize ) . field ( "dwLatency" , & self . dwLatency ) . field ( "dwSampleTime" , & self . dwSampleTime ) . field ( "bUseHWTimeStamp" , & self . bUseHWTimeStamp ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TouchPredictionParameters { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . dwLatency == other . dwLatency && self . dwSampleTime == other . dwSampleTime && self . bUseHWTimeStamp == other . bUseHWTimeStamp } } impl :: std :: cmp :: Eq for TouchPredictionParameters { } unsafe impl :: windows :: Abi for TouchPredictionParameters { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn TrackPopupMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : TRACK_POPUP_MENU_FLAGS , x : i32 , y : i32 , nreserved : i32 , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , prcrect : * const super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TrackPopupMenu ( hmenu : HMENU , uflags : TRACK_POPUP_MENU_FLAGS , x : i32 , y : i32 , nreserved : i32 , hwnd : super::super::Foundation:: HWND , prcrect : * const super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } TrackPopupMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nreserved ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( prcrect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TrackPopupMenuEx < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : u32 , x : i32 , y : i32 , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptpm : * mut TPMPARAMS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TrackPopupMenuEx ( hmenu : HMENU , uflags : u32 , x : i32 , y : i32 , hwnd : super::super::Foundation:: HWND , lptpm : * mut TPMPARAMS ) -> super::super::Foundation:: BOOL ; } TrackPopupMenuEx ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptpm ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateAcceleratorA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hacctable : impl :: windows :: IntoParam < 'a , HACCEL > , lpmsg : * mut MSG , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateAcceleratorA ( hwnd : super::super::Foundation:: HWND , hacctable : HACCEL , lpmsg : * mut MSG ) -> i32 ; } TranslateAcceleratorA ( hwnd . into_param ( ) . abi ( ) , hacctable . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateAcceleratorW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hacctable : impl :: windows :: IntoParam < 'a , HACCEL > , lpmsg : * mut MSG , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateAcceleratorW ( hwnd : super::super::Foundation:: HWND , hacctable : HACCEL , lpmsg : * mut MSG ) -> i32 ; } TranslateAcceleratorW ( hwnd . into_param ( ) . abi ( ) , hacctable . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateMDISysAccel < 'a , > ( hwndclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateMDISysAccel ( hwndclient : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } TranslateMDISysAccel ( hwndclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateMessage < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateMessage ( lpmsg : * const MSG ) -> super::super::Foundation:: BOOL ; } TranslateMessage ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const UISF_ACTIVE : u32 = 4u32 ; pub const UISF_HIDEACCEL : u32 = 2u32 ; pub const UISF_HIDEFOCUS : u32 = 1u32 ; pub const UIS_CLEAR : u32 = 2u32 ; pub const UIS_INITIALIZE : u32 = 3u32 ; pub const UIS_SET : u32 = 1u32 ; pub const UNICODE_NOCHAR : u32 = 65535u32 ; pub const UOI_TIMERPROC_EXCEPTION_SUPPRESSION : u32 = 7u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct UPDATELAYEREDWINDOWINFO { pub cbSize : u32 , pub hdcDst : super::super::Graphics::Gdi:: HDC , pub pptDst : * mut super::super::Foundation:: POINT , pub psize : * mut super::super::Foundation:: SIZE , pub hdcSrc : super::super::Graphics::Gdi:: HDC , pub pptSrc : * mut super::super::Foundation:: POINT , pub crKey : u32 , pub pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , pub dwFlags : UPDATE_LAYERED_WINDOW_FLAGS , pub prcDirty : * mut super::super::Foundation:: RECT } impl UPDATELAYEREDWINDOWINFO { } impl :: std :: default :: Default for UPDATELAYEREDWINDOWINFO { fn default ( ) -> Self { Self { cbSize : 0 , hdcDst : :: std :: default :: Default :: default ( ) , pptDst : :: std :: ptr :: null_mut ( ) , psize : :: std :: ptr :: null_mut ( ) , hdcSrc : :: std :: default :: Default :: default ( ) , pptSrc : :: std :: ptr :: null_mut ( ) , crKey : 0 , pblend : :: std :: ptr :: null_mut ( ) , dwFlags : :: std :: default :: Default :: default ( ) , prcDirty : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for UPDATELAYEREDWINDOWINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "UPDATELAYEREDWINDOWINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "hdcDst" , & self . hdcDst ) . field ( "pptDst" , & self . pptDst ) . field ( "psize" , & self . psize ) . field ( "hdcSrc" , & self . hdcSrc ) . field ( "pptSrc" , & self . pptSrc ) . field ( "crKey" , & self . crKey ) . field ( "pblend" , & self . pblend ) . field ( "dwFlags" , & self . dwFlags ) . field ( "prcDirty" , & self . prcDirty ) . finish ( ) } } impl :: std :: cmp :: PartialEq for UPDATELAYEREDWINDOWINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hdcDst == other . hdcDst && self . pptDst == other . pptDst && self . psize == other . psize && self . hdcSrc == other . hdcSrc && self . pptSrc == other . pptSrc && self . crKey == other . crKey && self . pblend == other . pblend && self . dwFlags == other . dwFlags && self . prcDirty == other . prcDirty } } impl :: std :: cmp :: Eq for UPDATELAYEREDWINDOWINFO { } unsafe impl :: windows :: Abi for UPDATELAYEREDWINDOWINFO { 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 UPDATE_LAYERED_WINDOW_FLAGS ( pub u32 ) ; pub const ULW_ALPHA : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 2u32 ) ; pub const ULW_COLORKEY : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 1u32 ) ; pub const ULW_OPAQUE : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 4u32 ) ; pub const ULW_EX_NORESIZE : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for UPDATE_LAYERED_WINDOW_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for UPDATE_LAYERED_WINDOW_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for UPDATE_LAYERED_WINDOW_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for UPDATE_LAYERED_WINDOW_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for UPDATE_LAYERED_WINDOW_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for UPDATE_LAYERED_WINDOW_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const USER_DEFAULT_SCREEN_DPI : u32 = 96u32 ; pub const USER_TIMER_MAXIMUM : u32 = 2147483647u32 ; pub const USER_TIMER_MINIMUM : u32 = 10u32 ; pub unsafe fn UnhookWindowsHook < > ( ncode : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnhookWindowsHook ( ncode : i32 , pfnfilterproc : :: windows :: RawPtr ) -> super::super::Foundation:: BOOL ; } UnhookWindowsHook ( :: std :: mem :: transmute ( ncode ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnhookWindowsHookEx < 'a , > ( hhk : impl :: windows :: IntoParam < 'a , HHOOK > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnhookWindowsHookEx ( hhk : HHOOK ) -> super::super::Foundation:: BOOL ; } UnhookWindowsHookEx ( hhk . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnregisterClassA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnregisterClassA ( lpclassname : super::super::Foundation:: PSTR , hinstance : super::super::Foundation:: HINSTANCE ) -> super::super::Foundation:: BOOL ; } UnregisterClassA ( lpclassname . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnregisterClassW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnregisterClassW ( lpclassname : super::super::Foundation:: PWSTR , hinstance : super::super::Foundation:: HINSTANCE ) -> super::super::Foundation:: BOOL ; } UnregisterClassW ( lpclassname . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UpdateLayeredWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hdcdst : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , pptdst : * mut super::super::Foundation:: POINT , psize : * mut super::super::Foundation:: SIZE , hdcsrc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , pptsrc : * mut super::super::Foundation:: POINT , crkey : u32 , pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , dwflags : UPDATE_LAYERED_WINDOW_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UpdateLayeredWindow ( hwnd : super::super::Foundation:: HWND , hdcdst : super::super::Graphics::Gdi:: HDC , pptdst : * mut super::super::Foundation:: POINT , psize : * mut super::super::Foundation:: SIZE , hdcsrc : super::super::Graphics::Gdi:: HDC , pptsrc : * mut super::super::Foundation:: POINT , crkey : u32 , pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , dwflags : UPDATE_LAYERED_WINDOW_FLAGS ) -> super::super::Foundation:: BOOL ; } UpdateLayeredWindow ( hwnd . into_param ( ) . abi ( ) , hdcdst . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pptdst ) , :: std :: mem :: transmute ( psize ) , hdcsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pptsrc ) , :: std :: mem :: transmute ( crkey ) , :: std :: mem :: transmute ( pblend ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UpdateLayeredWindowIndirect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pulwinfo : * const UPDATELAYEREDWINDOWINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UpdateLayeredWindowIndirect ( hwnd : super::super::Foundation:: HWND , pulwinfo : * const UPDATELAYEREDWINDOWINFO ) -> super::super::Foundation:: BOOL ; } UpdateLayeredWindowIndirect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pulwinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const VK_ACCEPT : u32 = 30u32 ; pub const VK_ADD : u32 = 107u32 ; pub const VK_APPS : u32 = 93u32 ; pub const VK_ATTN : u32 = 246u32 ; pub const VK_BACK : u32 = 8u32 ; pub const VK_BROWSER_BACK : u32 = 166u32 ; pub const VK_BROWSER_FAVORITES : u32 = 171u32 ; pub const VK_BROWSER_FORWARD : u32 = 167u32 ; pub const VK_BROWSER_HOME : u32 = 172u32 ; pub const VK_BROWSER_REFRESH : u32 = 168u32 ; pub const VK_BROWSER_SEARCH : u32 = 170u32 ; pub const VK_BROWSER_STOP : u32 = 169u32 ; pub const VK_CANCEL : u32 = 3u32 ; pub const VK_CAPITAL : u32 = 20u32 ; pub const VK_CLEAR : u32 = 12u32 ; pub const VK_CONTROL : u32 = 17u32 ; pub const VK_CONVERT : u32 = 28u32 ; pub const VK_CRSEL : u32 = 247u32 ; pub const VK_DECIMAL : u32 = 110u32 ; pub const VK_DELETE : u32 = 46u32 ; pub const VK_DIVIDE : u32 = 111u32 ; pub const VK_DOWN : u32 = 40u32 ; pub const VK_END : u32 = 35u32 ; pub const VK_EREOF : u32 = 249u32 ; pub const VK_ESCAPE : u32 = 27u32 ; pub const VK_EXECUTE : u32 = 43u32 ; pub const VK_EXSEL : u32 = 248u32 ; pub const VK_F1 : u32 = 112u32 ; pub const VK_F10 : u32 = 121u32 ; pub const VK_F11 : u32 = 122u32 ; pub const VK_F12 : u32 = 123u32 ; pub const VK_F13 : u32 = 124u32 ; pub const VK_F14 : u32 = 125u32 ; pub const VK_F15 : u32 = 126u32 ; pub const VK_F16 : u32 = 127u32 ; pub const VK_F17 : u32 = 128u32 ; pub const VK_F18 : u32 = 129u32 ; pub const VK_F19 : u32 = 130u32 ; pub const VK_F2 : u32 = 113u32 ; pub const VK_F20 : u32 = 131u32 ; pub const VK_F21 : u32 = 132u32 ; pub const VK_F22 : u32 = 133u32 ; pub const VK_F23 : u32 = 134u32 ; pub const VK_F24 : u32 = 135u32 ; pub const VK_F3 : u32 = 114u32 ; pub const VK_F4 : u32 = 115u32 ; pub const VK_F5 : u32 = 116u32 ; pub const VK_F6 : u32 = 117u32 ; pub const VK_F7 : u32 = 118u32 ; pub const VK_F8 : u32 = 119u32 ; pub const VK_F9 : u32 = 120u32 ; pub const VK_FINAL : u32 = 24u32 ; pub const VK_GAMEPAD_A : u32 = 195u32 ; pub const VK_GAMEPAD_B : u32 = 196u32 ; pub const VK_GAMEPAD_DPAD_DOWN : u32 = 204u32 ; pub const VK_GAMEPAD_DPAD_LEFT : u32 = 205u32 ; pub const VK_GAMEPAD_DPAD_RIGHT : u32 = 206u32 ; pub const VK_GAMEPAD_DPAD_UP : u32 = 203u32 ; pub const VK_GAMEPAD_LEFT_SHOULDER : u32 = 200u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_BUTTON : u32 = 209u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_DOWN : u32 = 212u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_LEFT : u32 = 214u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_RIGHT : u32 = 213u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_UP : u32 = 211u32 ; pub const VK_GAMEPAD_LEFT_TRIGGER : u32 = 201u32 ; pub const VK_GAMEPAD_MENU : u32 = 207u32 ; pub const VK_GAMEPAD_RIGHT_SHOULDER : u32 = 199u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_BUTTON : u32 = 210u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_DOWN : u32 = 216u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_LEFT : u32 = 218u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_RIGHT : u32 = 217u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_UP : u32 = 215u32 ; pub const VK_GAMEPAD_RIGHT_TRIGGER : u32 = 202u32 ; pub const VK_GAMEPAD_VIEW : u32 = 208u32 ; pub const VK_GAMEPAD_X : u32 = 197u32 ; pub const VK_GAMEPAD_Y : u32 = 198u32 ; pub const VK_HANGEUL : u32 = 21u32 ; pub const VK_HANGUL : u32 = 21u32 ; pub const VK_HANJA : u32 = 25u32 ; pub const VK_HELP : u32 = 47u32 ; pub const VK_HOME : u32 = 36u32 ; pub const VK_ICO_00 : u32 = 228u32 ; pub const VK_ICO_CLEAR : u32 = 230u32 ; pub const VK_ICO_HELP : u32 = 227u32 ; pub const VK_INSERT : u32 = 45u32 ; pub const VK_JUNJA : u32 = 23u32 ; pub const VK_KANA : u32 = 21u32 ; pub const VK_KANJI : u32 = 25u32 ; pub const VK_LAUNCH_APP1 : u32 = 182u32 ; pub const VK_LAUNCH_APP2 : u32 = 183u32 ; pub const VK_LAUNCH_MAIL : u32 = 180u32 ; pub const VK_LAUNCH_MEDIA_SELECT : u32 = 181u32 ; pub const VK_LBUTTON : u32 = 1u32 ; pub const VK_LCONTROL : u32 = 162u32 ; pub const VK_LEFT : u32 = 37u32 ; pub const VK_LMENU : u32 = 164u32 ; pub const VK_LSHIFT : u32 = 160u32 ; pub const VK_LWIN : u32 = 91u32 ; pub const VK_MBUTTON : u32 = 4u32 ; pub const VK_MEDIA_NEXT_TRACK : u32 = 176u32 ; pub const VK_MEDIA_PLAY_PAUSE : u32 = 179u32 ; pub const VK_MEDIA_PREV_TRACK : u32 = 177u32 ; pub const VK_MEDIA_STOP : u32 = 178u32 ; pub const VK_MENU : u32 = 18u32 ; pub const VK_MODECHANGE : u32 = 31u32 ; pub const VK_MULTIPLY : u32 = 106u32 ; pub const VK_NAVIGATION_ACCEPT : u32 = 142u32 ; pub const VK_NAVIGATION_CANCEL : u32 = 143u32 ; pub const VK_NAVIGATION_DOWN : u32 = 139u32 ; pub const VK_NAVIGATION_LEFT : u32 = 140u32 ; pub const VK_NAVIGATION_MENU : u32 = 137u32 ; pub const VK_NAVIGATION_RIGHT : u32 = 141u32 ; pub const VK_NAVIGATION_UP : u32 = 138u32 ; pub const VK_NAVIGATION_VIEW : u32 = 136u32 ; pub const VK_NEXT : u32 = 34u32 ; pub const VK_NONAME : u32 = 252u32 ; pub const VK_NONCONVERT : u32 = 29u32 ; pub const VK_NUMLOCK : u32 = 144u32 ; pub const VK_NUMPAD0 : u32 = 96u32 ; pub const VK_NUMPAD1 : u32 = 97u32 ; pub const VK_NUMPAD2 : u32 = 98u32 ; pub const VK_NUMPAD3 : u32 = 99u32 ; pub const VK_NUMPAD4 : u32 = 100u32 ; pub const VK_NUMPAD5 : u32 = 101u32 ; pub const VK_NUMPAD6 : u32 = 102u32 ; pub const VK_NUMPAD7 : u32 = 103u32 ; pub const VK_NUMPAD8 : u32 = 104u32 ; pub const VK_NUMPAD9 : u32 = 105u32 ; pub const VK_OEM_1 : u32 = 186u32 ; pub const VK_OEM_102 : u32 = 226u32 ; pub const VK_OEM_2 : u32 = 191u32 ; pub const VK_OEM_3 : u32 = 192u32 ; pub const VK_OEM_4 : u32 = 219u32 ; pub const VK_OEM_5 : u32 = 220u32 ; pub const VK_OEM_6 : u32 = 221u32 ; pub const VK_OEM_7 : u32 = 222u32 ; pub const VK_OEM_8 : u32 = 223u32 ; pub const VK_OEM_ATTN : u32 = 240u32 ; pub const VK_OEM_AUTO : u32 = 243u32 ; pub const VK_OEM_AX : u32 = 225u32 ; pub const VK_OEM_BACKTAB : u32 = 245u32 ; pub const VK_OEM_CLEAR : u32 = 254u32 ; pub const VK_OEM_COMMA : u32 = 188u32 ; pub const VK_OEM_COPY : u32 = 242u32 ; pub const VK_OEM_CUSEL : u32 = 239u32 ; pub const VK_OEM_ENLW : u32 = 244u32 ; pub const VK_OEM_FINISH : u32 = 241u32 ; pub const VK_OEM_FJ_JISHO : u32 = 146u32 ; pub const VK_OEM_FJ_LOYA : u32 = 149u32 ; pub const VK_OEM_FJ_MASSHOU : u32 = 147u32 ; pub const VK_OEM_FJ_ROYA : u32 = 150u32 ; pub const VK_OEM_FJ_TOUROKU : u32 = 148u32 ; pub const VK_OEM_JUMP : u32 = 234u32 ; pub const VK_OEM_MINUS : u32 = 189u32 ; pub const VK_OEM_NEC_EQUAL : u32 = 146u32 ; pub const VK_OEM_PA1 : u32 = 235u32 ; pub const VK_OEM_PA2 : u32 = 236u32 ; pub const VK_OEM_PA3 : u32 = 237u32 ; pub const VK_OEM_PERIOD : u32 = 190u32 ; pub const VK_OEM_PLUS : u32 = 187u32 ; pub const VK_OEM_RESET : u32 = 233u32 ; pub const VK_OEM_WSCTRL : u32 = 238u32 ; pub const VK_PA1 : u32 = 253u32 ; pub const VK_PACKET : u32 = 231u32 ; pub const VK_PAUSE : u32 = 19u32 ; pub const VK_PLAY : u32 = 250u32 ; pub const VK_PRINT : u32 = 42u32 ; pub const VK_PRIOR : u32 = 33u32 ; pub const VK_PROCESSKEY : u32 = 229u32 ; pub const VK_RBUTTON : u32 = 2u32 ; pub const VK_RCONTROL : u32 = 163u32 ; pub const VK_RETURN : u32 = 13u32 ; pub const VK_RIGHT : u32 = 39u32 ; pub const VK_RMENU : u32 = 165u32 ; pub const VK_RSHIFT : u32 = 161u32 ; pub const VK_RWIN : u32 = 92u32 ; pub const VK_SCROLL : u32 = 145u32 ; pub const VK_SELECT : u32 = 41u32 ; pub const VK_SEPARATOR : u32 = 108u32 ; pub const VK_SHIFT : u32 = 16u32 ; pub const VK_SLEEP : u32 = 95u32 ; pub const VK_SNAPSHOT : u32 = 44u32 ; pub const VK_SPACE : u32 = 32u32 ; pub const VK_SUBTRACT : u32 = 109u32 ; pub const VK_TAB : u32 = 9u32 ; pub const VK_UP : u32 = 38u32 ; pub const VK_VOLUME_DOWN : u32 = 174u32 ; pub const VK_VOLUME_MUTE : u32 = 173u32 ; pub const VK_VOLUME_UP : u32 = 175u32 ; pub const VK_XBUTTON1 : u32 = 5u32 ; pub const VK_XBUTTON2 : u32 = 6u32 ; pub const VK_ZOOM : u32 = 251u32 ; pub const WA_ACTIVE : u32 = 1u32 ; pub const WA_CLICKACTIVE : u32 = 2u32 ; pub const WA_INACTIVE : u32 = 0u32 ; pub const WHEEL_DELTA : u32 = 120u32 ; pub const WH_HARDWARE : u32 = 8u32 ; pub const WH_MAX : u32 = 14u32 ; pub const WH_MIN : i32 = -1i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWINFO { pub cbSize : u32 , pub rcWindow : super::super::Foundation:: RECT , pub rcClient : super::super::Foundation:: RECT , pub dwStyle : u32 , pub dwExStyle : u32 , pub dwWindowStatus : u32 , pub cxWindowBorders : u32 , pub cyWindowBorders : u32 , pub atomWindowType : u16 , pub wCreatorVersion : u16 } impl WINDOWINFO { } impl :: std :: default :: Default for WINDOWINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcWindow : :: std :: default :: Default :: default ( ) , rcClient : :: std :: default :: Default :: default ( ) , dwStyle : 0 , dwExStyle : 0 , dwWindowStatus : 0 , cxWindowBorders : 0 , cyWindowBorders : 0 , atomWindowType : 0 , wCreatorVersion : 0 } } } impl :: std :: fmt :: Debug for WINDOWINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcWindow" , & self . rcWindow ) . field ( "rcClient" , & self . rcClient ) . field ( "dwStyle" , & self . dwStyle ) . field ( "dwExStyle" , & self . dwExStyle ) . field ( "dwWindowStatus" , & self . dwWindowStatus ) . field ( "cxWindowBorders" , & self . cxWindowBorders ) . field ( "cyWindowBorders" , & self . cyWindowBorders ) . field ( "atomWindowType" , & self . atomWindowType ) . field ( "wCreatorVersion" , & self . wCreatorVersion ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcWindow == other . rcWindow && self . rcClient == other . rcClient && self . dwStyle == other . dwStyle && self . dwExStyle == other . dwExStyle && self . dwWindowStatus == other . dwWindowStatus && self . cxWindowBorders == other . cxWindowBorders && self . cyWindowBorders == other . cyWindowBorders && self . atomWindowType == other . atomWindowType && self . wCreatorVersion == other . wCreatorVersion } } impl :: std :: cmp :: Eq for WINDOWINFO { } unsafe impl :: windows :: Abi for WINDOWINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWPLACEMENT { pub length : u32 , pub flags : WINDOWPLACEMENT_FLAGS , pub showCmd : SHOW_WINDOW_CMD , pub ptMinPosition : super::super::Foundation:: POINT , pub ptMaxPosition : super::super::Foundation:: POINT , pub rcNormalPosition : super::super::Foundation:: RECT } impl WINDOWPLACEMENT { } impl :: std :: default :: Default for WINDOWPLACEMENT { fn default ( ) -> Self { Self { length : 0 , flags : :: std :: default :: Default :: default ( ) , showCmd : :: std :: default :: Default :: default ( ) , ptMinPosition : :: std :: default :: Default :: default ( ) , ptMaxPosition : :: std :: default :: Default :: default ( ) , rcNormalPosition : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WINDOWPLACEMENT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWPLACEMENT" ) . field ( "length" , & self . length ) . field ( "flags" , & self . flags ) . field ( "showCmd" , & self . showCmd ) . field ( "ptMinPosition" , & self . ptMinPosition ) . field ( "ptMaxPosition" , & self . ptMaxPosition ) . field ( "rcNormalPosition" , & self . rcNormalPosition ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWPLACEMENT { fn eq ( & self , other : & Self ) -> bool { self . length == other . length && self . flags == other . flags && self . showCmd == other . showCmd && self . ptMinPosition == other . ptMinPosition && self . ptMaxPosition == other . ptMaxPosition && self . rcNormalPosition == other . rcNormalPosition } } impl :: std :: cmp :: Eq for WINDOWPLACEMENT { } unsafe impl :: windows :: Abi for WINDOWPLACEMENT { 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 WINDOWPLACEMENT_FLAGS ( pub u32 ) ; pub const WPF_ASYNCWINDOWPLACEMENT : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 4u32 ) ; pub const WPF_RESTORETOMAXIMIZED : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 2u32 ) ; pub const WPF_SETMINPOSITION : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for WINDOWPLACEMENT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOWPLACEMENT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOWPLACEMENT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOWPLACEMENT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOWPLACEMENT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOWPLACEMENT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWPOS { pub hwnd : super::super::Foundation:: HWND , pub hwndInsertAfter : super::super::Foundation:: HWND , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub flags : SET_WINDOW_POS_FLAGS } impl WINDOWPOS { } impl :: std :: default :: Default for WINDOWPOS { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , flags : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WINDOWPOS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWPOS" ) . field ( "hwnd" , & self . hwnd ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "flags" , & self . flags ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWPOS { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . hwndInsertAfter == other . hwndInsertAfter && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . flags == other . flags } } impl :: std :: cmp :: Eq for WINDOWPOS { } unsafe impl :: windows :: Abi for WINDOWPOS { 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 WINDOWS_HOOK_ID ( pub i32 ) ; pub const WH_CALLWNDPROC : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 4i32 ) ; pub const WH_CALLWNDPROCRET : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 12i32 ) ; pub const WH_CBT : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 5i32 ) ; pub const WH_DEBUG : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 9i32 ) ; pub const WH_FOREGROUNDIDLE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 11i32 ) ; pub const WH_GETMESSAGE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 3i32 ) ; pub const WH_JOURNALPLAYBACK : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 1i32 ) ; pub const WH_JOURNALRECORD : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 0i32 ) ; pub const WH_KEYBOARD : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 2i32 ) ; pub const WH_KEYBOARD_LL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 13i32 ) ; pub const WH_MOUSE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 7i32 ) ; pub const WH_MOUSE_LL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 14i32 ) ; pub const WH_MSGFILTER : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( -1i32 ) ; pub const WH_SHELL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 10i32 ) ; pub const WH_SYSMSGFILTER : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 6i32 ) ; impl :: std :: convert :: From < i32 > for WINDOWS_HOOK_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOWS_HOOK_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 WINDOW_DISPLAY_AFFINITY ( pub u32 ) ; pub const WDA_NONE : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 0u32 ) ; pub const WDA_MONITOR : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 1u32 ) ; pub const WDA_EXCLUDEFROMCAPTURE : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 17u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_DISPLAY_AFFINITY { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_DISPLAY_AFFINITY { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_DISPLAY_AFFINITY { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_DISPLAY_AFFINITY { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_DISPLAY_AFFINITY { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_DISPLAY_AFFINITY { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_EX_STYLE ( pub u32 ) ; pub const WS_EX_DLGMODALFRAME : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1u32 ) ; pub const WS_EX_NOPARENTNOTIFY : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4u32 ) ; pub const WS_EX_TOPMOST : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 8u32 ) ; pub const WS_EX_ACCEPTFILES : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 16u32 ) ; pub const WS_EX_TRANSPARENT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 32u32 ) ; pub const WS_EX_MDICHILD : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 64u32 ) ; pub const WS_EX_TOOLWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 128u32 ) ; pub const WS_EX_WINDOWEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 256u32 ) ; pub const WS_EX_CLIENTEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 512u32 ) ; pub const WS_EX_CONTEXTHELP : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1024u32 ) ; pub const WS_EX_RIGHT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4096u32 ) ; pub const WS_EX_LEFT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_RTLREADING : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 8192u32 ) ; pub const WS_EX_LTRREADING : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_LEFTSCROLLBAR : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 16384u32 ) ; pub const WS_EX_RIGHTSCROLLBAR : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_CONTROLPARENT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 65536u32 ) ; pub const WS_EX_STATICEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 131072u32 ) ; pub const WS_EX_APPWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 262144u32 ) ; pub const WS_EX_OVERLAPPEDWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 768u32 ) ; pub const WS_EX_PALETTEWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 392u32 ) ; pub const WS_EX_LAYERED : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 524288u32 ) ; pub const WS_EX_NOINHERITLAYOUT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1048576u32 ) ; pub const WS_EX_NOREDIRECTIONBITMAP : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 2097152u32 ) ; pub const WS_EX_LAYOUTRTL : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4194304u32 ) ; pub const WS_EX_COMPOSITED : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 33554432u32 ) ; pub const WS_EX_NOACTIVATE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 134217728u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_EX_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_EX_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_EX_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_EX_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_EX_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_EX_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_LONG_PTR_INDEX ( pub i32 ) ; pub const GWL_EXSTYLE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -20i32 ) ; pub const GWLP_HINSTANCE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -6i32 ) ; pub const GWLP_HWNDPARENT : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -8i32 ) ; pub const GWLP_ID : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -12i32 ) ; pub const GWL_STYLE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -16i32 ) ; pub const GWLP_USERDATA : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -21i32 ) ; pub const GWLP_WNDPROC : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -4i32 ) ; pub const GWL_HINSTANCE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -6i32 ) ; pub const GWL_ID : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -12i32 ) ; pub const GWL_USERDATA : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -21i32 ) ; pub const GWL_WNDPROC : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -4i32 ) ; pub const GWL_HWNDPARENT : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -8i32 ) ; impl :: std :: convert :: From < i32 > for WINDOW_LONG_PTR_INDEX { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_LONG_PTR_INDEX { 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 WINDOW_MESSAGE_FILTER_ACTION ( pub u32 ) ; pub const MSGFLT_ALLOW : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 1u32 ) ; pub const MSGFLT_DISALLOW : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 2u32 ) ; pub const MSGFLT_RESET : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 0u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_MESSAGE_FILTER_ACTION { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_MESSAGE_FILTER_ACTION { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_MESSAGE_FILTER_ACTION { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_MESSAGE_FILTER_ACTION { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_MESSAGE_FILTER_ACTION { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_MESSAGE_FILTER_ACTION { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_STYLE ( pub u32 ) ; pub const WS_OVERLAPPED : WINDOW_STYLE = WINDOW_STYLE ( 0u32 ) ; pub const WS_POPUP : WINDOW_STYLE = WINDOW_STYLE ( 2147483648u32 ) ; pub const WS_CHILD : WINDOW_STYLE = WINDOW_STYLE ( 1073741824u32 ) ; pub const WS_MINIMIZE : WINDOW_STYLE = WINDOW_STYLE ( 536870912u32 ) ; pub const WS_VISIBLE : WINDOW_STYLE = WINDOW_STYLE ( 268435456u32 ) ; pub const WS_DISABLED : WINDOW_STYLE = WINDOW_STYLE ( 134217728u32 ) ; pub const WS_CLIPSIBLINGS : WINDOW_STYLE = WINDOW_STYLE ( 67108864u32 ) ; pub const WS_CLIPCHILDREN : WINDOW_STYLE = WINDOW_STYLE ( 33554432u32 ) ; pub const WS_MAXIMIZE : WINDOW_STYLE = WINDOW_STYLE ( 16777216u32 ) ; pub const WS_CAPTION : WINDOW_STYLE = WINDOW_STYLE ( 12582912u32 ) ; pub const WS_BORDER : WINDOW_STYLE = WINDOW_STYLE ( 8388608u32 ) ; pub const WS_DLGFRAME : WINDOW_STYLE = WINDOW_STYLE ( 4194304u32 ) ; pub const WS_VSCROLL : WINDOW_STYLE = WINDOW_STYLE ( 2097152u32 ) ; pub const WS_HSCROLL : WINDOW_STYLE = WINDOW_STYLE ( 1048576u32 ) ; pub const WS_SYSMENU : WINDOW_STYLE = WINDOW_STYLE ( 524288u32 ) ; pub const WS_THICKFRAME : WINDOW_STYLE = WINDOW_STYLE ( 262144u32 ) ; pub const WS_GROUP : WINDOW_STYLE = WINDOW_STYLE ( 131072u32 ) ; pub const WS_TABSTOP : WINDOW_STYLE = WINDOW_STYLE ( 65536u32 ) ; pub const WS_MINIMIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 131072u32 ) ; pub const WS_MAXIMIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 65536u32 ) ; pub const WS_TILED : WINDOW_STYLE = WINDOW_STYLE ( 0u32 ) ; pub const WS_ICONIC : WINDOW_STYLE = WINDOW_STYLE ( 536870912u32 ) ; pub const WS_SIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 262144u32 ) ; pub const WS_TILEDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 13565952u32 ) ; pub const WS_OVERLAPPEDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 13565952u32 ) ; pub const WS_POPUPWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 2156396544u32 ) ; pub const WS_CHILDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 1073741824u32 ) ; pub const WS_ACTIVECAPTION : WINDOW_STYLE = WINDOW_STYLE ( 1u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const WINEVENT_INCONTEXT : u32 = 4u32 ; pub const WINEVENT_OUTOFCONTEXT : u32 = 0u32 ; pub const WINEVENT_SKIPOWNPROCESS : u32 = 2u32 ; pub const WINEVENT_SKIPOWNTHREAD : u32 = 1u32 ; pub type WINSTAENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type WINSTAENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub const WINSTA_ACCESSCLIPBOARD : i32 = 4i32 ; pub const WINSTA_ACCESSGLOBALATOMS : i32 = 32i32 ; pub const WINSTA_CREATEDESKTOP : i32 = 8i32 ; pub const WINSTA_ENUMDESKTOPS : i32 = 1i32 ; pub const WINSTA_ENUMERATE : i32 = 256i32 ; pub const WINSTA_EXITWINDOWS : i32 = 64i32 ; pub const WINSTA_READATTRIBUTES : i32 = 2i32 ; pub const WINSTA_READSCREEN : i32 = 512i32 ; pub const WINSTA_WRITEATTRIBUTES : i32 = 16i32 ; pub const WMSZ_BOTTOM : u32 = 6u32 ; pub const WMSZ_BOTTOMLEFT : u32 = 7u32 ; pub const WMSZ_BOTTOMRIGHT : u32 = 8u32 ; pub const WMSZ_LEFT : u32 = 1u32 ; pub const WMSZ_RIGHT : u32 = 2u32 ; pub const WMSZ_TOP : u32 = 3u32 ; pub const WMSZ_TOPLEFT : u32 = 4u32 ; pub const WMSZ_TOPRIGHT : u32 = 5u32 ; pub const WM_ACTIVATE : u32 = 6u32 ; pub const WM_ACTIVATEAPP : u32 = 28u32 ; pub const WM_AFXFIRST : u32 = 864u32 ; pub const WM_AFXLAST : u32 = 895u32 ; pub const WM_APP : u32 = 32768u32 ; pub const WM_APPCOMMAND : u32 = 793u32 ; pub const WM_ASKCBFORMATNAME : u32 = 780u32 ; pub const WM_CANCELJOURNAL : u32 = 75u32 ; pub const WM_CANCELMODE : u32 = 31u32 ; pub const WM_CAPTURECHANGED : u32 = 533u32 ; pub const WM_CHANGECBCHAIN : u32 = 781u32 ; pub const WM_CHANGEUISTATE : u32 = 295u32 ; pub const WM_CHAR : u32 = 258u32 ; pub const WM_CHARTOITEM : u32 = 47u32 ; pub const WM_CHILDACTIVATE : u32 = 34u32 ; pub const WM_CHOOSEFONT_GETLOGFONT : u32 = 1025u32 ; pub const WM_CHOOSEFONT_SETFLAGS : u32 = 1126u32 ; pub const WM_CHOOSEFONT_SETLOGFONT : u32 = 1125u32 ; pub const WM_CLEAR : u32 = 771u32 ; pub const WM_CLIPBOARDUPDATE : u32 = 797u32 ; pub const WM_CLOSE : u32 = 16u32 ; pub const WM_COMMAND : u32 = 273u32 ; pub const WM_COMMNOTIFY : u32 = 68u32 ; pub const WM_COMPACTING : u32 = 65u32 ; pub const WM_COMPAREITEM : u32 = 57u32 ; pub const WM_COPY : u32 = 769u32 ; pub const WM_COPYDATA : u32 = 74u32 ; pub const WM_CREATE : u32 = 1u32 ; pub const WM_CTLCOLORBTN : u32 = 309u32 ; pub const WM_CTLCOLORDLG : u32 = 310u32 ; pub const WM_CTLCOLOREDIT : u32 = 307u32 ; pub const WM_CTLCOLORLISTBOX : u32 = 308u32 ; pub const WM_CTLCOLORMSGBOX : u32 = 306u32 ; pub const WM_CTLCOLORSCROLLBAR : u32 = 311u32 ; pub const WM_CTLCOLORSTATIC : u32 = 312u32 ; pub const WM_CUT : u32 = 768u32 ; pub const WM_DEADCHAR : u32 = 259u32 ; pub const WM_DELETEITEM : u32 = 45u32 ; pub const WM_DESTROY : u32 = 2u32 ; pub const WM_DESTROYCLIPBOARD : u32 = 775u32 ; pub const WM_DEVICECHANGE : u32 = 537u32 ; pub const WM_DEVMODECHANGE : u32 = 27u32 ; pub const WM_DISPLAYCHANGE : u32 = 126u32 ; pub const WM_DPICHANGED : u32 = 736u32 ; pub const WM_DPICHANGED_AFTERPARENT : u32 = 739u32 ; pub const WM_DPICHANGED_BEFOREPARENT : u32 = 738u32 ; pub const WM_DRAWCLIPBOARD : u32 = 776u32 ; pub const WM_DRAWITEM : u32 = 43u32 ; pub const WM_DROPFILES : u32 = 563u32 ; pub const WM_DWMCOLORIZATIONCOLORCHANGED : u32 = 800u32 ; pub const WM_DWMCOMPOSITIONCHANGED : u32 = 798u32 ; pub const WM_DWMNCRENDERINGCHANGED : u32 = 799u32 ; pub const WM_DWMSENDICONICLIVEPREVIEWBITMAP : u32 = 806u32 ; pub const WM_DWMSENDICONICTHUMBNAIL : u32 = 803u32 ; pub const WM_DWMWINDOWMAXIMIZEDCHANGE : u32 = 801u32 ; pub const WM_ENABLE : u32 = 10u32 ; pub const WM_ENDSESSION : u32 = 22u32 ; pub const WM_ENTERIDLE : u32 = 289u32 ; pub const WM_ENTERMENULOOP : u32 = 529u32 ; pub const WM_ENTERSIZEMOVE : u32 = 561u32 ; pub const WM_ERASEBKGND : u32 = 20u32 ; pub const WM_EXITMENULOOP : u32 = 530u32 ; pub const WM_EXITSIZEMOVE : u32 = 562u32 ; pub const WM_FONTCHANGE : u32 = 29u32 ; pub const WM_GESTURE : u32 = 281u32 ; pub const WM_GESTURENOTIFY : u32 = 282u32 ; pub const WM_GETDLGCODE : u32 = 135u32 ; pub const WM_GETDPISCALEDSIZE : u32 = 740u32 ; pub const WM_GETFONT : u32 = 49u32 ; pub const WM_GETHOTKEY : u32 = 51u32 ; pub const WM_GETICON : u32 = 127u32 ; pub const WM_GETMINMAXINFO : u32 = 36u32 ; pub const WM_GETOBJECT : u32 = 61u32 ; pub const WM_GETTEXT : u32 = 13u32 ; pub const WM_GETTEXTLENGTH : u32 = 14u32 ; pub const WM_GETTITLEBARINFOEX : u32 = 831u32 ; pub const WM_HANDHELDFIRST : u32 = 856u32 ; pub const WM_HANDHELDLAST : u32 = 863u32 ; pub const WM_HELP : u32 = 83u32 ; pub const WM_HOTKEY : u32 = 786u32 ; pub const WM_HSCROLL : u32 = 276u32 ; pub const WM_HSCROLLCLIPBOARD : u32 = 782u32 ; pub const WM_ICONERASEBKGND : u32 = 39u32 ; pub const WM_IME_CHAR : u32 = 646u32 ; pub const WM_IME_COMPOSITION : u32 = 271u32 ; pub const WM_IME_COMPOSITIONFULL : u32 = 644u32 ; pub const WM_IME_CONTROL : u32 = 643u32 ; pub const WM_IME_ENDCOMPOSITION : u32 = 270u32 ; pub const WM_IME_KEYDOWN : u32 = 656u32 ; pub const WM_IME_KEYLAST : u32 = 271u32 ; pub const WM_IME_KEYUP : u32 = 657u32 ; pub const WM_IME_NOTIFY : u32 = 642u32 ; pub const WM_IME_REQUEST : u32 = 648u32 ; pub const WM_IME_SELECT : u32 = 645u32 ; pub const WM_IME_SETCONTEXT : u32 = 641u32 ; pub const WM_IME_STARTCOMPOSITION : u32 = 269u32 ; pub const WM_INITDIALOG : u32 = 272u32 ; pub const WM_INITMENU : u32 = 278u32 ; pub const WM_INITMENUPOPUP : u32 = 279u32 ; pub const WM_INPUT : u32 = 255u32 ; pub const WM_INPUTLANGCHANGE : u32 = 81u32 ; pub const WM_INPUTLANGCHANGEREQUEST : u32 = 80u32 ; pub const WM_INPUT_DEVICE_CHANGE : u32 = 254u32 ; pub const WM_KEYDOWN : u32 = 256u32 ; pub const WM_KEYFIRST : u32 = 256u32 ; pub const WM_KEYLAST : u32 = 265u32 ; pub const WM_KEYUP : u32 = 257u32 ; pub const WM_KILLFOCUS : u32 = 8u32 ; pub const WM_LBUTTONDBLCLK : u32 = 515u32 ; pub const WM_LBUTTONDOWN : u32 = 513u32 ; pub const WM_LBUTTONUP : u32 = 514u32 ; pub const WM_MBUTTONDBLCLK : u32 = 521u32 ; pub const WM_MBUTTONDOWN : u32 = 519u32 ; pub const WM_MBUTTONUP : u32 = 520u32 ; pub const WM_MDIACTIVATE : u32 = 546u32 ; pub const WM_MDICASCADE : u32 = 551u32 ; pub const WM_MDICREATE : u32 = 544u32 ; pub const WM_MDIDESTROY : u32 = 545u32 ; pub const WM_MDIGETACTIVE : u32 = 553u32 ; pub const WM_MDIICONARRANGE : u32 = 552u32 ; pub const WM_MDIMAXIMIZE : u32 = 549u32 ; pub const WM_MDINEXT : u32 = 548u32 ; pub const WM_MDIREFRESHMENU : u32 = 564u32 ; pub const WM_MDIRESTORE : u32 = 547u32 ; pub const WM_MDISETMENU : u32 = 560u32 ; pub const WM_MDITILE : u32 = 550u32 ; pub const WM_MEASUREITEM : u32 = 44u32 ; pub const WM_MENUCHAR : u32 = 288u32 ; pub const WM_MENUCOMMAND : u32 = 294u32 ; pub const WM_MENUDRAG : u32 = 291u32 ; pub const WM_MENUGETOBJECT : u32 = 292u32 ; pub const WM_MENURBUTTONUP : u32 = 290u32 ; pub const WM_MENUSELECT : u32 = 287u32 ; pub const WM_MOUSEACTIVATE : u32 = 33u32 ; pub const WM_MOUSEFIRST : u32 = 512u32 ; pub const WM_MOUSEHWHEEL : u32 = 526u32 ; pub const WM_MOUSELAST : u32 = 526u32 ; pub const WM_MOUSEMOVE : u32 = 512u32 ; pub const WM_MOUSEWHEEL : u32 = 522u32 ; pub const WM_MOVE : u32 = 3u32 ; pub const WM_MOVING : u32 = 534u32 ; pub const WM_NCACTIVATE : u32 = 134u32 ; pub const WM_NCCALCSIZE : u32 = 131u32 ; pub const WM_NCCREATE : u32 = 129u32 ; pub const WM_NCDESTROY : u32 = 130u32 ; pub const WM_NCHITTEST : u32 = 132u32 ; pub const WM_NCLBUTTONDBLCLK : u32 = 163u32 ; pub const WM_NCLBUTTONDOWN : u32 = 161u32 ; pub const WM_NCLBUTTONUP : u32 = 162u32 ; pub const WM_NCMBUTTONDBLCLK : u32 = 169u32 ; pub const WM_NCMBUTTONDOWN : u32 = 167u32 ; pub const WM_NCMBUTTONUP : u32 = 168u32 ; pub const WM_NCMOUSEHOVER : u32 = 672u32 ; pub const WM_NCMOUSELEAVE : u32 = 674u32 ; pub const WM_NCMOUSEMOVE : u32 = 160u32 ; pub const WM_NCPAINT : u32 = 133u32 ; pub const WM_NCPOINTERDOWN : u32 = 578u32 ; pub const WM_NCPOINTERUP : u32 = 579u32 ; pub const WM_NCPOINTERUPDATE : u32 = 577u32 ; pub const WM_NCRBUTTONDBLCLK : u32 = 166u32 ; pub const WM_NCRBUTTONDOWN : u32 = 164u32 ; pub const WM_NCRBUTTONUP : u32 = 165u32 ; pub const WM_NCXBUTTONDBLCLK : u32 = 173u32 ; pub const WM_NCXBUTTONDOWN : u32 = 171u32 ; pub const WM_NCXBUTTONUP : u32 = 172u32 ; pub const WM_NEXTDLGCTL : u32 = 40u32 ; pub const WM_NEXTMENU : u32 = 531u32 ; pub const WM_NOTIFYFORMAT : u32 = 85u32 ; pub const WM_NULL : u32 = 0u32 ; pub const WM_PAINT : u32 = 15u32 ; pub const WM_PAINTCLIPBOARD : u32 = 777u32 ; pub const WM_PAINTICON : u32 = 38u32 ; pub const WM_PALETTECHANGED : u32 = 785u32 ; pub const WM_PALETTEISCHANGING : u32 = 784u32 ; pub const WM_PARENTNOTIFY : u32 = 528u32 ; pub const WM_PASTE : u32 = 770u32 ; pub const WM_PENWINFIRST : u32 = 896u32 ; pub const WM_PENWINLAST : u32 = 911u32 ; pub const WM_POINTERACTIVATE : u32 = 587u32 ; pub const WM_POINTERCAPTURECHANGED : u32 = 588u32 ; pub const WM_POINTERDEVICECHANGE : u32 = 568u32 ; pub const WM_POINTERDEVICEINRANGE : u32 = 569u32 ; pub const WM_POINTERDEVICEOUTOFRANGE : u32 = 570u32 ; pub const WM_POINTERDOWN : u32 = 582u32 ; pub const WM_POINTERENTER : u32 = 585u32 ; pub const WM_POINTERHWHEEL : u32 = 591u32 ; pub const WM_POINTERLEAVE : u32 = 586u32 ; pub const WM_POINTERROUTEDAWAY : u32 = 594u32 ; pub const WM_POINTERROUTEDRELEASED : u32 = 595u32 ; pub const WM_POINTERROUTEDTO : u32 = 593u32 ; pub const WM_POINTERUP : u32 = 583u32 ; pub const WM_POINTERUPDATE : u32 = 581u32 ; pub const WM_POINTERWHEEL : u32 = 590u32 ; pub const WM_POWER : u32 = 72u32 ; pub const WM_POWERBROADCAST : u32 = 536u32 ; pub const WM_PRINT : u32 = 791u32 ; pub const WM_PSD_ENVSTAMPRECT : u32 = 1029u32 ; pub const WM_PSD_FULLPAGERECT : u32 = 1025u32 ; pub const WM_PSD_GREEKTEXTRECT : u32 = 1028u32 ; pub const WM_PSD_MARGINRECT : u32 = 1027u32 ; pub const WM_PSD_MINMARGINRECT : u32 = 1026u32 ; pub const WM_PSD_YAFULLPAGERECT : u32 = 1030u32 ; pub const WM_QUERYDRAGICON : u32 = 55u32 ; pub const WM_QUERYENDSESSION : u32 = 17u32 ; pub const WM_QUERYNEWPALETTE : u32 = 783u32 ; pub const WM_QUERYOPEN : u32 = 19u32 ; pub const WM_QUERYUISTATE : u32 = 297u32 ; pub const WM_QUEUESYNC : u32 = 35u32 ; pub const WM_QUIT : u32 = 18u32 ; pub const WM_RBUTTONDBLCLK : u32 = 518u32 ; pub const WM_RBUTTONDOWN : u32 = 516u32 ; pub const WM_RBUTTONUP : u32 = 517u32 ; pub const WM_RENDERALLFORMATS : u32 = 774u32 ; pub const WM_RENDERFORMAT : u32 = 773u32 ; pub const WM_SETCURSOR : u32 = 32u32 ; pub const WM_SETFOCUS : u32 = 7u32 ; pub const WM_SETFONT : u32 = 48u32 ; pub const WM_SETHOTKEY : u32 = 50u32 ; pub const WM_SETICON : u32 = 128u32 ; pub const WM_SETREDRAW : u32 = 11u32 ; pub const WM_SETTEXT : u32 = 12u32 ; pub const WM_SHOWWINDOW : u32 = 24u32 ; pub const WM_SIZE : u32 = 5u32 ; pub const WM_SIZECLIPBOARD : u32 = 779u32 ; pub const WM_SIZING : u32 = 532u32 ; pub const WM_SPOOLERSTATUS : u32 = 42u32 ; pub const WM_STYLECHANGED : u32 = 125u32 ; pub const WM_STYLECHANGING : u32 = 124u32 ; pub const WM_SYNCPAINT : u32 = 136u32 ; pub const WM_SYSCHAR : u32 = 262u32 ; pub const WM_SYSCOLORCHANGE : u32 = 21u32 ; pub const WM_SYSCOMMAND : u32 = 274u32 ; pub const WM_SYSDEADCHAR : u32 = 263u32 ; pub const WM_SYSKEYDOWN : u32 = 260u32 ; pub const WM_SYSKEYUP : u32 = 261u32 ; pub const WM_TABLET_FIRST : u32 = 704u32 ; pub const WM_TABLET_LAST : u32 = 735u32 ; pub const WM_TCARD : u32 = 82u32 ; pub const WM_THEMECHANGED : u32 = 794u32 ; pub const WM_TIMECHANGE : u32 = 30u32 ; pub const WM_TIMER : u32 = 275u32 ; pub const WM_TOUCH : u32 = 576u32 ; pub const WM_TOUCHHITTESTING : u32 = 589u32 ; pub const WM_UNDO : u32 = 772u32 ; pub const WM_UNINITMENUPOPUP : u32 = 293u32 ; pub const WM_UPDATEUISTATE : u32 = 296u32 ; pub const WM_USER : u32 = 1024u32 ; pub const WM_USERCHANGED : u32 = 84u32 ; pub const WM_VKEYTOITEM : u32 = 46u32 ; pub const WM_VSCROLL : u32 = 277u32 ; pub const WM_VSCROLLCLIPBOARD : u32 = 778u32 ; pub const WM_WINDOWPOSCHANGED : u32 = 71u32 ; pub const WM_WINDOWPOSCHANGING : u32 = 70u32 ; pub const WM_WININICHANGE : u32 = 26u32 ; pub const WM_WTSSESSION_CHANGE : u32 = 689u32 ; pub const WM_XBUTTONDBLCLK : u32 = 525u32 ; pub const WM_XBUTTONDOWN : u32 = 523u32 ; pub const WM_XBUTTONUP : u32 = 524u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSA { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR } impl WNDCLASSA { } impl :: std :: default :: Default for WNDCLASSA { fn default ( ) -> Self { Self { style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSA" ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSA { fn eq ( & self , other : & Self ) -> bool { self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName } } impl :: std :: cmp :: Eq for WNDCLASSA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSA_abi { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for WNDCLASSA { type Abi = WNDCLASSA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSEXA { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR , pub hIconSm : HICON } impl WNDCLASSEXA { } impl :: std :: default :: Default for WNDCLASSEXA { fn default ( ) -> Self { Self { cbSize : 0 , style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) , hIconSm : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSEXA" ) . field ( "cbSize" , & self . cbSize ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . field ( "hIconSm" , & self . hIconSm ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSEXA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName && self . hIconSm == other . hIconSm } } impl :: std :: cmp :: Eq for WNDCLASSEXA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSEXA_abi { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR , pub hIconSm : HICON } unsafe impl :: windows :: Abi for WNDCLASSEXA { type Abi = WNDCLASSEXA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSEXW { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR , pub hIconSm : HICON } impl WNDCLASSEXW { } impl :: std :: default :: Default for WNDCLASSEXW { fn default ( ) -> Self { Self { cbSize : 0 , style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) , hIconSm : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSEXW" ) . field ( "cbSize" , & self . cbSize ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . field ( "hIconSm" , & self . hIconSm ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSEXW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName && self . hIconSm == other . hIconSm } } impl :: std :: cmp :: Eq for WNDCLASSEXW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSEXW_abi { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR , pub hIconSm : HICON } unsafe impl :: windows :: Abi for WNDCLASSEXW { type Abi = WNDCLASSEXW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSW { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR } impl WNDCLASSW { } impl :: std :: default :: Default for WNDCLASSW { fn default ( ) -> Self { Self { style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSW" ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSW { fn eq ( & self , other : & Self ) -> bool { self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName } } impl :: std :: cmp :: Eq for WNDCLASSW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSW_abi { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for WNDCLASSW { type Abi = WNDCLASSW_abi ; 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 WNDCLASS_STYLES ( pub u32 ) ; pub const CS_VREDRAW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 1u32 ) ; pub const CS_HREDRAW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 2u32 ) ; pub const CS_DBLCLKS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 8u32 ) ; pub const CS_OWNDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 32u32 ) ; pub const CS_CLASSDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 64u32 ) ; pub const CS_PARENTDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 128u32 ) ; pub const CS_NOCLOSE : WNDCLASS_STYLES = WNDCLASS_STYLES ( 512u32 ) ; pub const CS_SAVEBITS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 2048u32 ) ; pub const CS_BYTEALIGNCLIENT : WNDCLASS_STYLES = WNDCLASS_STYLES ( 4096u32 ) ; pub const CS_BYTEALIGNWINDOW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 8192u32 ) ; pub const CS_GLOBALCLASS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 16384u32 ) ; pub const CS_IME : WNDCLASS_STYLES = WNDCLASS_STYLES ( 65536u32 ) ; pub const CS_DROPSHADOW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 131072u32 ) ; impl :: std :: convert :: From < u32 > for WNDCLASS_STYLES { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WNDCLASS_STYLES { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WNDCLASS_STYLES { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WNDCLASS_STYLES { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WNDCLASS_STYLES { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WNDCLASS_STYLES { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub type WNDENUMPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type WNDPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; pub const WSF_VISIBLE : i32 = 1i32 ; pub const WTS_CONSOLE_CONNECT : u32 = 1u32 ; pub const WTS_CONSOLE_DISCONNECT : u32 = 2u32 ; pub const WTS_REMOTE_CONNECT : u32 = 3u32 ; pub const WTS_REMOTE_DISCONNECT : u32 = 4u32 ; pub const WTS_SESSION_CREATE : u32 = 10u32 ; pub const WTS_SESSION_LOCK : u32 = 7u32 ; pub const WTS_SESSION_LOGOFF : u32 = 6u32 ; pub const WTS_SESSION_LOGON : u32 = 5u32 ; pub const WTS_SESSION_REMOTE_CONTROL : u32 = 9u32 ; pub const WTS_SESSION_TERMINATE : u32 = 11u32 ; pub const WTS_SESSION_UNLOCK : u32 = 8u32 ; pub const WVR_ALIGNBOTTOM : u32 = 64u32 ; pub const WVR_ALIGNLEFT : u32 = 32u32 ; pub const WVR_ALIGNRIGHT : u32 = 128u32 ; pub const WVR_ALIGNTOP : u32 = 16u32 ; pub const WVR_HREDRAW : u32 = 256u32 ; pub const WVR_VALIDRECTS : u32 = 1024u32 ; pub const WVR_VREDRAW : u32 = 512u32 ; pub unsafe fn WaitMessage < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WaitMessage ( ) -> super::super::Foundation:: BOOL ; } WaitMessage ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn WindowFromPhysicalPoint < 'a , > ( point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WindowFromPhysicalPoint ( point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } WindowFromPhysicalPoint ( point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn WindowFromPoint < 'a , > ( point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WindowFromPoint ( point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } WindowFromPoint ( point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const __WARNING_BANNED_API_USAGE : u32 = 28719u32 ; pub const __WARNING_CYCLOMATIC_COMPLEXITY : u32 = 28734u32 ; pub const __WARNING_DEREF_NULL_PTR : u32 = 6011u32 ; pub const __WARNING_HIGH_PRIORITY_OVERFLOW_POSTCONDITION : u32 = 26045u32 ; pub const __WARNING_INCORRECT_ANNOTATION : u32 = 26007u32 ; pub const __WARNING_INVALID_PARAM_VALUE_1 : u32 = 6387u32 ; pub const __WARNING_INVALID_PARAM_VALUE_3 : u32 = 28183u32 ; pub const __WARNING_MISSING_ZERO_TERMINATION2 : u32 = 6054u32 ; pub const __WARNING_POSTCONDITION_NULLTERMINATION_VIOLATION : u32 = 26036u32 ; pub const __WARNING_POST_EXPECTED : u32 = 28210u32 ; pub const __WARNING_POTENTIAL_BUFFER_OVERFLOW_HIGH_PRIORITY : u32 = 26015u32 ; pub const __WARNING_POTENTIAL_RANGE_POSTCONDITION_VIOLATION : u32 = 26071u32 ; pub const __WARNING_PRECONDITION_NULLTERMINATION_VIOLATION : u32 = 26035u32 ; pub const __WARNING_RANGE_POSTCONDITION_VIOLATION : u32 = 26061u32 ; pub const __WARNING_RETURNING_BAD_RESULT : u32 = 28196u32 ; pub const __WARNING_RETURN_UNINIT_VAR : u32 = 6101u32 ; pub const __WARNING_USING_UNINIT_VAR : u32 = 6001u32 ; pub unsafe fn wsprintfA < 'a , > ( param0 : super::super::Foundation:: PSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wsprintfA ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: PSTR ) -> i32 ; } wsprintfA ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wsprintfW < 'a , > ( param0 : super::super::Foundation:: PWSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wsprintfW ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: PWSTR ) -> i32 ; } wsprintfW ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wvsprintfA < 'a , > ( param0 : super::super::Foundation:: PSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , arglist : * mut i8 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wvsprintfA ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: PSTR , arglist : * mut i8 ) -> i32 ; } wvsprintfA ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( arglist ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wvsprintfW < 'a , > ( param0 : super::super::Foundation:: PWSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , arglist : * mut i8 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wvsprintfW ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: PWSTR , arglist : * mut i8 ) -> i32 ; } wvsprintfW ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( arglist ) ) } # [ 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/WindowsD2DErrorSample-113ee0a6732de562/out/windows.rs:1:15964 [INFO] [stdout] | [INFO] [stdout] 1 | ... { if ! value . 0 . 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 Foundation { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Numerics { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct Matrix3x2 { pub M11 : f32 , pub M12 : f32 , pub M21 : f32 , pub M22 : f32 , pub M31 : f32 , pub M32 : f32 } impl Matrix3x2 { } impl :: std :: default :: Default for Matrix3x2 { fn default ( ) -> Self { Self { M11 : 0.0 , M12 : 0.0 , M21 : 0.0 , M22 : 0.0 , M31 : 0.0 , M32 : 0.0 } } } impl :: std :: fmt :: Debug for Matrix3x2 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "Matrix3x2" ) . field ( "M11" , & self . M11 ) . field ( "M12" , & self . M12 ) . field ( "M21" , & self . M21 ) . field ( "M22" , & self . M22 ) . field ( "M31" , & self . M31 ) . field ( "M32" , & self . M32 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for Matrix3x2 { fn eq ( & self , other : & Self ) -> bool { self . M11 == other . M11 && self . M12 == other . M12 && self . M21 == other . M21 && self . M22 == other . M22 && self . M31 == other . M31 && self . M32 == other . M32 } } impl :: std :: cmp :: Eq for Matrix3x2 { } unsafe impl :: windows :: Abi for Matrix3x2 { type Abi = Self ; type DefaultType = Self ; } unsafe impl :: windows :: RuntimeType for Matrix3x2 { const SIGNATURE : :: windows :: ConstBuffer = :: windows :: ConstBuffer :: from_slice ( b"struct(Windows.Foundation.Numerics.Matrix3x2;f4;f4;f4;f4;f4;f4)" ) ; } impl Matrix3x2 { pub fn identity ( ) -> Self { Self { M11 : 1.0 , M12 : 0.0 , M21 : 0.0 , M22 : 1.0 , M31 : 0.0 , M32 : 0.0 , } } pub fn translation ( x : f32 , y : f32 ) -> Self { Self { M11 : 1.0 , M12 : 0.0 , M21 : 0.0 , M22 : 1.0 , M31 : x , M32 : y , } } pub fn rotation ( angle : f32 , x : f32 , y : f32 ) -> Self { let mut matrix = Self :: default ( ) ; unsafe { super :: super :: Win32 :: Graphics :: Direct2D :: D2D1MakeRotateMatrix ( angle , super :: super :: Win32 :: Graphics :: Direct2D :: D2D_POINT_2F { x , y } , & mut matrix ) ; } matrix } fn impl_add ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 + rhs . M11 , M12 : self . M12 + rhs . M12 , M21 : self . M21 + rhs . M21 , M22 : self . M22 + rhs . M22 , M31 : self . M31 + rhs . M31 , M32 : self . M32 + rhs . M32 , } } fn impl_sub ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 - rhs . M11 , M12 : self . M12 - rhs . M12 , M21 : self . M21 - rhs . M21 , M22 : self . M22 - rhs . M22 , M31 : self . M31 - rhs . M31 , M32 : self . M32 - rhs . M32 , } } fn impl_mul ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 * rhs . M11 + self . M12 * rhs . M21 , M12 : self . M11 * rhs . M12 + self . M12 * rhs . M22 , M21 : self . M21 * rhs . M11 + self . M22 * rhs . M21 , M22 : self . M21 * rhs . M12 + self . M22 * rhs . M22 , M31 : self . M31 * rhs . M11 + self . M32 * rhs . M21 + rhs . M31 , M32 : self . M31 * rhs . M12 + self . M32 * rhs . M22 + rhs . M32 , } } fn impl_mul_f32 ( & self , rhs : f32 ) -> Self { Self { M11 : self . M11 * rhs , M12 : self . M12 * rhs , M21 : self . M21 * rhs , M22 : self . M22 * rhs , M31 : self . M31 * rhs , M32 : self . M32 * rhs , } } } impl :: std :: ops :: Add < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_add ( & rhs ) } } impl :: std :: ops :: Add < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_add ( rhs ) } } impl :: std :: ops :: Add < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_add ( & rhs ) } } impl :: std :: ops :: Add < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_add ( rhs ) } } impl :: std :: ops :: Sub < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( & rhs ) } } impl :: std :: ops :: Sub < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( rhs ) } } impl :: std :: ops :: Sub < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( & rhs ) } } impl :: std :: ops :: Sub < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( rhs ) } } impl :: std :: ops :: Mul < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( & rhs ) } } impl :: std :: ops :: Mul < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( rhs ) } } impl :: std :: ops :: Mul < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( & rhs ) } } impl :: std :: ops :: Mul < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( rhs ) } } impl :: std :: ops :: Mul < f32 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : f32 ) -> Matrix3x2 { self . impl_mul_f32 ( rhs ) } } impl :: std :: ops :: Mul < f32 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : f32 ) -> Matrix3x2 { self . impl_mul_f32 ( rhs ) } } } } # [ 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 :: HRESULT :: from_thread ( ) . into ( ) ) } } # [ 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 ( transparent ) ] pub struct HANDLE ( pub isize ) ; impl HANDLE { } impl :: std :: default :: Default for HANDLE { fn default ( ) -> Self { Self ( 0 ) } } impl HANDLE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HANDLE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HANDLE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HANDLE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HANDLE { } unsafe impl :: windows :: Abi for HANDLE { type Abi = Self ; type DefaultType = Self ; } impl HANDLE { pub const INVALID : Self = Self ( - 1 ) ; pub fn is_invalid ( & self ) -> bool { self . 0 == - 1 } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HINSTANCE ( pub isize ) ; impl HINSTANCE { } impl :: std :: default :: Default for HINSTANCE { fn default ( ) -> Self { Self ( 0 ) } } impl HINSTANCE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HINSTANCE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HINSTANCE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HINSTANCE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HINSTANCE { } unsafe impl :: windows :: Abi for HINSTANCE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HWND ( pub isize ) ; impl HWND { } impl :: std :: default :: Default for HWND { fn default ( ) -> Self { Self ( 0 ) } } impl HWND { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HWND { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HWND" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HWND { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HWND { } unsafe impl :: windows :: Abi for HWND { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct LPARAM ( pub isize ) ; impl LPARAM { } impl :: std :: default :: Default for LPARAM { fn default ( ) -> Self { Self ( 0 ) } } impl LPARAM { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for LPARAM { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LPARAM" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LPARAM { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for LPARAM { } unsafe impl :: windows :: Abi for LPARAM { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct LRESULT ( pub i32 ) ; impl LRESULT { } impl :: std :: default :: Default for LRESULT { fn default ( ) -> Self { Self ( 0 ) } } impl LRESULT { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for LRESULT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LRESULT" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LRESULT { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for LRESULT { } unsafe impl :: windows :: Abi for LRESULT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct POINT { pub x : i32 , pub y : i32 } impl POINT { } impl :: std :: default :: Default for POINT { fn default ( ) -> Self { Self { x : 0 , y : 0 } } } impl :: std :: fmt :: Debug for POINT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "POINT" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for POINT { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for POINT { } unsafe impl :: windows :: Abi for POINT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct POINTL { pub x : i32 , pub y : i32 } impl POINTL { } impl :: std :: default :: Default for POINTL { fn default ( ) -> Self { Self { x : 0 , y : 0 } } } impl :: std :: fmt :: Debug for POINTL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "POINTL" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for POINTL { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for POINTL { } unsafe impl :: windows :: Abi for POINTL { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct PSTR ( pub * mut u8 ) ; impl PSTR { pub const NULL : Self = Self ( :: std :: ptr :: null_mut ( ) ) ; pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: cmp :: PartialEq for PSTR { fn eq ( & self , other : & Self ) -> bool { self . 0 == other . 0 } } unsafe impl :: windows :: Abi for PSTR { type Abi = Self ; type DefaultType = Self ; fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . 0 . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for & 'a 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 _ ) ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct PWSTR ( pub * mut u16 ) ; impl PWSTR { pub const NULL : Self = Self ( :: std :: ptr :: null_mut ( ) ) ; pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PWSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: cmp :: PartialEq for PWSTR { fn eq ( & self , other : & Self ) -> bool { self . 0 == other . 0 } } unsafe impl :: windows :: Abi for PWSTR { type Abi = Self ; type DefaultType = Self ; fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . 0 . is_null ( ) { unsafe { let _ = :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & 'a 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 _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct RECT { pub left : i32 , pub top : i32 , pub right : i32 , pub bottom : i32 } impl RECT { } impl :: std :: default :: Default for RECT { fn default ( ) -> Self { Self { left : 0 , top : 0 , right : 0 , bottom : 0 } } } impl :: std :: fmt :: Debug for RECT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "RECT" ) . field ( "left" , & self . left ) . field ( "top" , & self . top ) . field ( "right" , & self . right ) . field ( "bottom" , & self . bottom ) . finish ( ) } } impl :: std :: cmp :: PartialEq for RECT { fn eq ( & self , other : & Self ) -> bool { self . left == other . left && self . top == other . top && self . right == other . right && self . bottom == other . bottom } } impl :: std :: cmp :: Eq for RECT { } unsafe impl :: windows :: Abi for RECT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SIZE { pub cx : i32 , pub cy : i32 } impl SIZE { } impl :: std :: default :: Default for SIZE { fn default ( ) -> Self { Self { cx : 0 , cy : 0 } } } impl :: std :: fmt :: Debug for SIZE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SIZE" ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SIZE { fn eq ( & self , other : & Self ) -> bool { self . cx == other . cx && self . cy == other . cy } } impl :: std :: cmp :: Eq for SIZE { } unsafe impl :: windows :: Abi for SIZE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct WPARAM ( pub usize ) ; impl WPARAM { } impl :: std :: default :: Default for WPARAM { fn default ( ) -> Self { Self ( 0 ) } } impl WPARAM { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for WPARAM { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WPARAM" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WPARAM { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for WPARAM { } unsafe impl :: windows :: Abi for WPARAM { 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 Graphics { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Direct2D { pub unsafe fn D2D1CreateFactory < > ( factorytype : D2D1_FACTORY_TYPE , riid : * const :: windows :: Guid , pfactoryoptions : * const D2D1_FACTORY_OPTIONS , ppifactory : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="d2d1" ) ] extern "system" { fn D2D1CreateFactory ( factorytype : D2D1_FACTORY_TYPE , riid : * const :: windows :: Guid , pfactoryoptions : * const D2D1_FACTORY_OPTIONS , ppifactory : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } D2D1CreateFactory ( :: std :: mem :: transmute ( factorytype ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( pfactoryoptions ) , :: std :: mem :: transmute ( ppifactory ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn D2D1MakeRotateMatrix < 'a , > ( angle : f32 , center : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , matrix : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { # [ cfg ( windows ) ] { # [ link ( name ="d2d1" ) ] extern "system" { fn D2D1MakeRotateMatrix ( angle : f32 , center : D2D_POINT_2F , matrix : * mut super::super::super::Foundation::Numerics:: Matrix3x2 ) ; } D2D1MakeRotateMatrix ( :: std :: mem :: transmute ( angle ) , center . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( matrix ) ) } # [ 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 D2D1_ALPHA_MODE ( pub u32 ) ; pub const D2D1_ALPHA_MODE_UNKNOWN : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 0u32 ) ; pub const D2D1_ALPHA_MODE_PREMULTIPLIED : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 1u32 ) ; pub const D2D1_ALPHA_MODE_STRAIGHT : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 2u32 ) ; pub const D2D1_ALPHA_MODE_IGNORE : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 3u32 ) ; pub const D2D1_ALPHA_MODE_FORCE_DWORD : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_ALPHA_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_ALPHA_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_ALPHA_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_ALPHA_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_ALPHA_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_ALPHA_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_ANTIALIAS_MODE ( pub u32 ) ; pub const D2D1_ANTIALIAS_MODE_PER_PRIMITIVE : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 0u32 ) ; pub const D2D1_ANTIALIAS_MODE_ALIASED : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 1u32 ) ; pub const D2D1_ANTIALIAS_MODE_FORCE_DWORD : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_ANTIALIAS_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_ANTIALIAS_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_ANTIALIAS_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_ANTIALIAS_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_ANTIALIAS_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_ANTIALIAS_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BITMAP_BRUSH_PROPERTIES { pub extendModeX : D2D1_EXTEND_MODE , pub extendModeY : D2D1_EXTEND_MODE , pub interpolationMode : D2D1_BITMAP_INTERPOLATION_MODE } impl D2D1_BITMAP_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_BITMAP_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { extendModeX : :: std :: default :: Default :: default ( ) , extendModeY : :: std :: default :: Default :: default ( ) , interpolationMode : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_BITMAP_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BITMAP_BRUSH_PROPERTIES" ) . field ( "extendModeX" , & self . extendModeX ) . field ( "extendModeY" , & self . extendModeY ) . field ( "interpolationMode" , & self . interpolationMode ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BITMAP_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . extendModeX == other . extendModeX && self . extendModeY == other . extendModeY && self . interpolationMode == other . interpolationMode } } impl :: std :: cmp :: Eq for D2D1_BITMAP_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BITMAP_BRUSH_PROPERTIES { 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 D2D1_BITMAP_INTERPOLATION_MODE ( pub u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 0u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_LINEAR : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 1u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_FORCE_DWORD : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_BITMAP_INTERPOLATION_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_BITMAP_INTERPOLATION_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_BITMAP_INTERPOLATION_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_BITMAP_INTERPOLATION_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_BITMAP_INTERPOLATION_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_BITMAP_INTERPOLATION_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BITMAP_PROPERTIES { pub pixelFormat : D2D1_PIXEL_FORMAT , pub dpiX : f32 , pub dpiY : f32 } impl D2D1_BITMAP_PROPERTIES { } impl :: std :: default :: Default for D2D1_BITMAP_PROPERTIES { fn default ( ) -> Self { Self { pixelFormat : :: std :: default :: Default :: default ( ) , dpiX : 0.0 , dpiY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_BITMAP_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BITMAP_PROPERTIES" ) . field ( "pixelFormat" , & self . pixelFormat ) . field ( "dpiX" , & self . dpiX ) . field ( "dpiY" , & self . dpiY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BITMAP_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . pixelFormat == other . pixelFormat && self . dpiX == other . dpiX && self . dpiY == other . dpiY } } impl :: std :: cmp :: Eq for D2D1_BITMAP_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BITMAP_PROPERTIES { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BRUSH_PROPERTIES { pub opacity : f32 , pub transform : super::super::super::Foundation::Numerics:: Matrix3x2 } impl D2D1_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { opacity : 0.0 , transform : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BRUSH_PROPERTIES" ) . field ( "opacity" , & self . opacity ) . field ( "transform" , & self . transform ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . opacity == other . opacity && self . transform == other . transform } } impl :: std :: cmp :: Eq for D2D1_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BRUSH_PROPERTIES { 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 D2D1_CAP_STYLE ( pub u32 ) ; pub const D2D1_CAP_STYLE_FLAT : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 0u32 ) ; pub const D2D1_CAP_STYLE_SQUARE : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 1u32 ) ; pub const D2D1_CAP_STYLE_ROUND : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 2u32 ) ; pub const D2D1_CAP_STYLE_TRIANGLE : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 3u32 ) ; pub const D2D1_CAP_STYLE_FORCE_DWORD : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_CAP_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_CAP_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_CAP_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_CAP_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_CAP_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_CAP_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_COLOR_F { pub r : f32 , pub g : f32 , pub b : f32 , pub a : f32 } impl D2D1_COLOR_F { } impl :: std :: default :: Default for D2D1_COLOR_F { fn default ( ) -> Self { Self { r : 0.0 , g : 0.0 , b : 0.0 , a : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_COLOR_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_COLOR_F" ) . field ( "r" , & self . r ) . field ( "g" , & self . g ) . field ( "b" , & self . b ) . field ( "a" , & self . a ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_COLOR_F { fn eq ( & self , other : & Self ) -> bool { self . r == other . r && self . g == other . g && self . b == other . b && self . a == other . a } } impl :: std :: cmp :: Eq for D2D1_COLOR_F { } unsafe impl :: windows :: Abi for D2D1_COLOR_F { 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 D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( pub u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 0u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 1u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_FORCE_DWORD : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_DASH_STYLE ( pub u32 ) ; pub const D2D1_DASH_STYLE_SOLID : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 0u32 ) ; pub const D2D1_DASH_STYLE_DASH : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 1u32 ) ; pub const D2D1_DASH_STYLE_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 2u32 ) ; pub const D2D1_DASH_STYLE_DASH_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 3u32 ) ; pub const D2D1_DASH_STYLE_DASH_DOT_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 4u32 ) ; pub const D2D1_DASH_STYLE_CUSTOM : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 5u32 ) ; pub const D2D1_DASH_STYLE_FORCE_DWORD : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DASH_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DASH_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DASH_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DASH_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DASH_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DASH_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_DEBUG_LEVEL ( pub u32 ) ; pub const D2D1_DEBUG_LEVEL_NONE : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 0u32 ) ; pub const D2D1_DEBUG_LEVEL_ERROR : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 1u32 ) ; pub const D2D1_DEBUG_LEVEL_WARNING : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 2u32 ) ; pub const D2D1_DEBUG_LEVEL_INFORMATION : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 3u32 ) ; pub const D2D1_DEBUG_LEVEL_FORCE_DWORD : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DEBUG_LEVEL { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DEBUG_LEVEL { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DEBUG_LEVEL { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DEBUG_LEVEL { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DEBUG_LEVEL { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DEBUG_LEVEL { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_DRAWING_STATE_DESCRIPTION { pub antialiasMode : D2D1_ANTIALIAS_MODE , pub textAntialiasMode : D2D1_TEXT_ANTIALIAS_MODE , pub tag1 : u64 , pub tag2 : u64 , pub transform : super::super::super::Foundation::Numerics:: Matrix3x2 } impl D2D1_DRAWING_STATE_DESCRIPTION { } impl :: std :: default :: Default for D2D1_DRAWING_STATE_DESCRIPTION { fn default ( ) -> Self { Self { antialiasMode : :: std :: default :: Default :: default ( ) , textAntialiasMode : :: std :: default :: Default :: default ( ) , tag1 : 0 , tag2 : 0 , transform : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_DRAWING_STATE_DESCRIPTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_DRAWING_STATE_DESCRIPTION" ) . field ( "antialiasMode" , & self . antialiasMode ) . field ( "textAntialiasMode" , & self . textAntialiasMode ) . field ( "tag1" , & self . tag1 ) . field ( "tag2" , & self . tag2 ) . field ( "transform" , & self . transform ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_DRAWING_STATE_DESCRIPTION { fn eq ( & self , other : & Self ) -> bool { self . antialiasMode == other . antialiasMode && self . textAntialiasMode == other . textAntialiasMode && self . tag1 == other . tag1 && self . tag2 == other . tag2 && self . transform == other . transform } } impl :: std :: cmp :: Eq for D2D1_DRAWING_STATE_DESCRIPTION { } unsafe impl :: windows :: Abi for D2D1_DRAWING_STATE_DESCRIPTION { 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 D2D1_DRAW_TEXT_OPTIONS ( pub u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_NO_SNAP : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 1u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_CLIP : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 2u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 4u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_DISABLE_COLOR_BITMAP_SNAPPING : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 8u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_NONE : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 0u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_FORCE_DWORD : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DRAW_TEXT_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DRAW_TEXT_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DRAW_TEXT_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DRAW_TEXT_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DRAW_TEXT_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DRAW_TEXT_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_ELLIPSE { pub point : D2D_POINT_2F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_ELLIPSE { } impl :: std :: default :: Default for D2D1_ELLIPSE { fn default ( ) -> Self { Self { point : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_ELLIPSE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_ELLIPSE" ) . field ( "point" , & self . point ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_ELLIPSE { fn eq ( & self , other : & Self ) -> bool { self . point == other . point && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_ELLIPSE { } unsafe impl :: windows :: Abi for D2D1_ELLIPSE { 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 D2D1_EXTEND_MODE ( pub u32 ) ; pub const D2D1_EXTEND_MODE_CLAMP : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 0u32 ) ; pub const D2D1_EXTEND_MODE_WRAP : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 1u32 ) ; pub const D2D1_EXTEND_MODE_MIRROR : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 2u32 ) ; pub const D2D1_EXTEND_MODE_FORCE_DWORD : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_EXTEND_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_EXTEND_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_EXTEND_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_EXTEND_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_EXTEND_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_EXTEND_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_FACTORY_OPTIONS { pub debugLevel : D2D1_DEBUG_LEVEL } impl D2D1_FACTORY_OPTIONS { } impl :: std :: default :: Default for D2D1_FACTORY_OPTIONS { fn default ( ) -> Self { Self { debugLevel : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_FACTORY_OPTIONS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_FACTORY_OPTIONS" ) . field ( "debugLevel" , & self . debugLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_FACTORY_OPTIONS { fn eq ( & self , other : & Self ) -> bool { self . debugLevel == other . debugLevel } } impl :: std :: cmp :: Eq for D2D1_FACTORY_OPTIONS { } unsafe impl :: windows :: Abi for D2D1_FACTORY_OPTIONS { 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 D2D1_FACTORY_TYPE ( pub u32 ) ; pub const D2D1_FACTORY_TYPE_SINGLE_THREADED : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 0u32 ) ; pub const D2D1_FACTORY_TYPE_MULTI_THREADED : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 1u32 ) ; pub const D2D1_FACTORY_TYPE_FORCE_DWORD : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FACTORY_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FACTORY_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FACTORY_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FACTORY_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FACTORY_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FACTORY_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_FEATURE_LEVEL ( pub u32 ) ; pub const D2D1_FEATURE_LEVEL_DEFAULT : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 0u32 ) ; pub const D2D1_FEATURE_LEVEL_9 : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 37120u32 ) ; pub const D2D1_FEATURE_LEVEL_10 : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 40960u32 ) ; pub const D2D1_FEATURE_LEVEL_FORCE_DWORD : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FEATURE_LEVEL { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FEATURE_LEVEL { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FEATURE_LEVEL { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FEATURE_LEVEL { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FEATURE_LEVEL { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FEATURE_LEVEL { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_FILL_MODE ( pub u32 ) ; pub const D2D1_FILL_MODE_ALTERNATE : D2D1_FILL_MODE = D2D1_FILL_MODE ( 0u32 ) ; pub const D2D1_FILL_MODE_WINDING : D2D1_FILL_MODE = D2D1_FILL_MODE ( 1u32 ) ; pub const D2D1_FILL_MODE_FORCE_DWORD : D2D1_FILL_MODE = D2D1_FILL_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FILL_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FILL_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FILL_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FILL_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FILL_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FILL_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_GAMMA ( pub u32 ) ; pub const D2D1_GAMMA_2_2 : D2D1_GAMMA = D2D1_GAMMA ( 0u32 ) ; pub const D2D1_GAMMA_1_0 : D2D1_GAMMA = D2D1_GAMMA ( 1u32 ) ; pub const D2D1_GAMMA_FORCE_DWORD : D2D1_GAMMA = D2D1_GAMMA ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_GAMMA { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_GAMMA { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_GAMMA { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_GAMMA { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_GAMMA { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_GAMMA { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_GRADIENT_STOP { pub position : f32 , pub color : D2D1_COLOR_F } impl D2D1_GRADIENT_STOP { } impl :: std :: default :: Default for D2D1_GRADIENT_STOP { fn default ( ) -> Self { Self { position : 0.0 , color : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_GRADIENT_STOP { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_GRADIENT_STOP" ) . field ( "position" , & self . position ) . field ( "color" , & self . color ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_GRADIENT_STOP { fn eq ( & self , other : & Self ) -> bool { self . position == other . position && self . color == other . color } } impl :: std :: cmp :: Eq for D2D1_GRADIENT_STOP { } unsafe impl :: windows :: Abi for D2D1_GRADIENT_STOP { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_HWND_RENDER_TARGET_PROPERTIES { pub hwnd : super::super::Foundation:: HWND , pub pixelSize : D2D_SIZE_U , pub presentOptions : D2D1_PRESENT_OPTIONS } impl D2D1_HWND_RENDER_TARGET_PROPERTIES { } impl :: std :: default :: Default for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , pixelSize : :: std :: default :: Default :: default ( ) , presentOptions : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_HWND_RENDER_TARGET_PROPERTIES" ) . field ( "hwnd" , & self . hwnd ) . field ( "pixelSize" , & self . pixelSize ) . field ( "presentOptions" , & self . presentOptions ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . pixelSize == other . pixelSize && self . presentOptions == other . presentOptions } } impl :: std :: cmp :: Eq for D2D1_HWND_RENDER_TARGET_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_HWND_RENDER_TARGET_PROPERTIES { 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 D2D1_LAYER_OPTIONS ( pub u32 ) ; pub const D2D1_LAYER_OPTIONS_NONE : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 0u32 ) ; pub const D2D1_LAYER_OPTIONS_INITIALIZE_FOR_CLEARTYPE : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 1u32 ) ; pub const D2D1_LAYER_OPTIONS_FORCE_DWORD : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_LAYER_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_LAYER_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_LAYER_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_LAYER_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_LAYER_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_LAYER_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct D2D1_LAYER_PARAMETERS { pub contentBounds : D2D_RECT_F , pub geometricMask : :: std :: option :: Option < ID2D1Geometry > , pub maskAntialiasMode : D2D1_ANTIALIAS_MODE , pub maskTransform : super::super::super::Foundation::Numerics:: Matrix3x2 , pub opacity : f32 , pub opacityBrush : :: std :: option :: Option < ID2D1Brush > , pub layerOptions : D2D1_LAYER_OPTIONS } impl D2D1_LAYER_PARAMETERS { } impl :: std :: default :: Default for D2D1_LAYER_PARAMETERS { fn default ( ) -> Self { Self { contentBounds : :: std :: default :: Default :: default ( ) , geometricMask : :: std :: default :: Default :: default ( ) , maskAntialiasMode : :: std :: default :: Default :: default ( ) , maskTransform : :: std :: default :: Default :: default ( ) , opacity : 0.0 , opacityBrush : :: std :: default :: Default :: default ( ) , layerOptions : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_LAYER_PARAMETERS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_LAYER_PARAMETERS" ) . field ( "contentBounds" , & self . contentBounds ) . field ( "geometricMask" , & self . geometricMask ) . field ( "maskAntialiasMode" , & self . maskAntialiasMode ) . field ( "maskTransform" , & self . maskTransform ) . field ( "opacity" , & self . opacity ) . field ( "opacityBrush" , & self . opacityBrush ) . field ( "layerOptions" , & self . layerOptions ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_LAYER_PARAMETERS { fn eq ( & self , other : & Self ) -> bool { self . contentBounds == other . contentBounds && self . geometricMask == other . geometricMask && self . maskAntialiasMode == other . maskAntialiasMode && self . maskTransform == other . maskTransform && self . opacity == other . opacity && self . opacityBrush == other . opacityBrush && self . layerOptions == other . layerOptions } } impl :: std :: cmp :: Eq for D2D1_LAYER_PARAMETERS { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct D2D1_LAYER_PARAMETERS_abi { pub contentBounds : D2D_RECT_F , pub geometricMask : :: windows :: RawPtr , pub maskAntialiasMode : D2D1_ANTIALIAS_MODE , pub maskTransform : super::super::super::Foundation::Numerics:: Matrix3x2 , pub opacity : f32 , pub opacityBrush : :: windows :: RawPtr , pub layerOptions : D2D1_LAYER_OPTIONS } unsafe impl :: windows :: Abi for D2D1_LAYER_PARAMETERS { type Abi = D2D1_LAYER_PARAMETERS_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { pub startPoint : D2D_POINT_2F , pub endPoint : D2D_POINT_2F } impl D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { startPoint : :: std :: default :: Default :: default ( ) , endPoint : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES" ) . field ( "startPoint" , & self . startPoint ) . field ( "endPoint" , & self . endPoint ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . startPoint == other . startPoint && self . endPoint == other . endPoint } } impl :: std :: cmp :: Eq for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { 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 D2D1_LINE_JOIN ( pub u32 ) ; pub const D2D1_LINE_JOIN_MITER : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 0u32 ) ; pub const D2D1_LINE_JOIN_BEVEL : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 1u32 ) ; pub const D2D1_LINE_JOIN_ROUND : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 2u32 ) ; pub const D2D1_LINE_JOIN_MITER_OR_BEVEL : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 3u32 ) ; pub const D2D1_LINE_JOIN_FORCE_DWORD : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_LINE_JOIN { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_LINE_JOIN { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_LINE_JOIN { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_LINE_JOIN { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_LINE_JOIN { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_LINE_JOIN { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_OPACITY_MASK_CONTENT ( pub u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_GRAPHICS : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 0u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 1u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 2u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_FORCE_DWORD : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_OPACITY_MASK_CONTENT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_OPACITY_MASK_CONTENT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_OPACITY_MASK_CONTENT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_OPACITY_MASK_CONTENT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_OPACITY_MASK_CONTENT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_OPACITY_MASK_CONTENT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_PIXEL_FORMAT { pub format : super::Dxgi:: DXGI_FORMAT , pub alphaMode : D2D1_ALPHA_MODE } impl D2D1_PIXEL_FORMAT { } impl :: std :: default :: Default for D2D1_PIXEL_FORMAT { fn default ( ) -> Self { Self { format : :: std :: default :: Default :: default ( ) , alphaMode : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_PIXEL_FORMAT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_PIXEL_FORMAT" ) . field ( "format" , & self . format ) . field ( "alphaMode" , & self . alphaMode ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_PIXEL_FORMAT { fn eq ( & self , other : & Self ) -> bool { self . format == other . format && self . alphaMode == other . alphaMode } } impl :: std :: cmp :: Eq for D2D1_PIXEL_FORMAT { } unsafe impl :: windows :: Abi for D2D1_PIXEL_FORMAT { 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 D2D1_PRESENT_OPTIONS ( pub u32 ) ; pub const D2D1_PRESENT_OPTIONS_NONE : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 0u32 ) ; pub const D2D1_PRESENT_OPTIONS_RETAIN_CONTENTS : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 1u32 ) ; pub const D2D1_PRESENT_OPTIONS_IMMEDIATELY : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 2u32 ) ; pub const D2D1_PRESENT_OPTIONS_FORCE_DWORD : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_PRESENT_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_PRESENT_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_PRESENT_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_PRESENT_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_PRESENT_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_PRESENT_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { pub center : D2D_POINT_2F , pub gradientOriginOffset : D2D_POINT_2F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { center : :: std :: default :: Default :: default ( ) , gradientOriginOffset : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES" ) . field ( "center" , & self . center ) . field ( "gradientOriginOffset" , & self . gradientOriginOffset ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . center == other . center && self . gradientOriginOffset == other . gradientOriginOffset && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_RENDER_TARGET_PROPERTIES { pub r#type : D2D1_RENDER_TARGET_TYPE , pub pixelFormat : D2D1_PIXEL_FORMAT , pub dpiX : f32 , pub dpiY : f32 , pub usage : D2D1_RENDER_TARGET_USAGE , pub minLevel : D2D1_FEATURE_LEVEL } impl D2D1_RENDER_TARGET_PROPERTIES { } impl :: std :: default :: Default for D2D1_RENDER_TARGET_PROPERTIES { fn default ( ) -> Self { Self { r#type : :: std :: default :: Default :: default ( ) , pixelFormat : :: std :: default :: Default :: default ( ) , dpiX : 0.0 , dpiY : 0.0 , usage : :: std :: default :: Default :: default ( ) , minLevel : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_RENDER_TARGET_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_RENDER_TARGET_PROPERTIES" ) . field ( "r#type" , & self . r#type ) . field ( "pixelFormat" , & self . pixelFormat ) . field ( "dpiX" , & self . dpiX ) . field ( "dpiY" , & self . dpiY ) . field ( "usage" , & self . usage ) . field ( "minLevel" , & self . minLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_RENDER_TARGET_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . r#type == other . r#type && self . pixelFormat == other . pixelFormat && self . dpiX == other . dpiX && self . dpiY == other . dpiY && self . usage == other . usage && self . minLevel == other . minLevel } } impl :: std :: cmp :: Eq for D2D1_RENDER_TARGET_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_PROPERTIES { 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 D2D1_RENDER_TARGET_TYPE ( pub u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_DEFAULT : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 0u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_SOFTWARE : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 1u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_HARDWARE : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 2u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_FORCE_DWORD : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_RENDER_TARGET_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_RENDER_TARGET_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_RENDER_TARGET_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_RENDER_TARGET_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_RENDER_TARGET_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_RENDER_TARGET_USAGE ( pub u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_NONE : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 0u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_FORCE_BITMAP_REMOTING : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 1u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 2u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_FORCE_DWORD : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_RENDER_TARGET_USAGE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_USAGE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_RENDER_TARGET_USAGE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_RENDER_TARGET_USAGE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_RENDER_TARGET_USAGE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_RENDER_TARGET_USAGE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_ROUNDED_RECT { pub rect : D2D_RECT_F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_ROUNDED_RECT { } impl :: std :: default :: Default for D2D1_ROUNDED_RECT { fn default ( ) -> Self { Self { rect : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_ROUNDED_RECT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_ROUNDED_RECT" ) . field ( "rect" , & self . rect ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_ROUNDED_RECT { fn eq ( & self , other : & Self ) -> bool { self . rect == other . rect && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_ROUNDED_RECT { } unsafe impl :: windows :: Abi for D2D1_ROUNDED_RECT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_STROKE_STYLE_PROPERTIES { pub startCap : D2D1_CAP_STYLE , pub endCap : D2D1_CAP_STYLE , pub dashCap : D2D1_CAP_STYLE , pub lineJoin : D2D1_LINE_JOIN , pub miterLimit : f32 , pub dashStyle : D2D1_DASH_STYLE , pub dashOffset : f32 } impl D2D1_STROKE_STYLE_PROPERTIES { } impl :: std :: default :: Default for D2D1_STROKE_STYLE_PROPERTIES { fn default ( ) -> Self { Self { startCap : :: std :: default :: Default :: default ( ) , endCap : :: std :: default :: Default :: default ( ) , dashCap : :: std :: default :: Default :: default ( ) , lineJoin : :: std :: default :: Default :: default ( ) , miterLimit : 0.0 , dashStyle : :: std :: default :: Default :: default ( ) , dashOffset : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_STROKE_STYLE_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_STROKE_STYLE_PROPERTIES" ) . field ( "startCap" , & self . startCap ) . field ( "endCap" , & self . endCap ) . field ( "dashCap" , & self . dashCap ) . field ( "lineJoin" , & self . lineJoin ) . field ( "miterLimit" , & self . miterLimit ) . field ( "dashStyle" , & self . dashStyle ) . field ( "dashOffset" , & self . dashOffset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_STROKE_STYLE_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . startCap == other . startCap && self . endCap == other . endCap && self . dashCap == other . dashCap && self . lineJoin == other . lineJoin && self . miterLimit == other . miterLimit && self . dashStyle == other . dashStyle && self . dashOffset == other . dashOffset } } impl :: std :: cmp :: Eq for D2D1_STROKE_STYLE_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_STROKE_STYLE_PROPERTIES { 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 D2D1_TEXT_ANTIALIAS_MODE ( pub u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_DEFAULT : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 0u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 1u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 2u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_ALIASED : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 3u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_FORCE_DWORD : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_TEXT_ANTIALIAS_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_TEXT_ANTIALIAS_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_TEXT_ANTIALIAS_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_TEXT_ANTIALIAS_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_TEXT_ANTIALIAS_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_TEXT_ANTIALIAS_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_WINDOW_STATE ( pub u32 ) ; pub const D2D1_WINDOW_STATE_NONE : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 0u32 ) ; pub const D2D1_WINDOW_STATE_OCCLUDED : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 1u32 ) ; pub const D2D1_WINDOW_STATE_FORCE_DWORD : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_WINDOW_STATE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_WINDOW_STATE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_WINDOW_STATE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_WINDOW_STATE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_WINDOW_STATE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_WINDOW_STATE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_POINT_2F { pub x : f32 , pub y : f32 } impl D2D_POINT_2F { } impl :: std :: default :: Default for D2D_POINT_2F { fn default ( ) -> Self { Self { x : 0.0 , y : 0.0 } } } impl :: std :: fmt :: Debug for D2D_POINT_2F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_POINT_2F" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_POINT_2F { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for D2D_POINT_2F { } unsafe impl :: windows :: Abi for D2D_POINT_2F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_RECT_F { pub left : f32 , pub top : f32 , pub right : f32 , pub bottom : f32 } impl D2D_RECT_F { } impl :: std :: default :: Default for D2D_RECT_F { fn default ( ) -> Self { Self { left : 0.0 , top : 0.0 , right : 0.0 , bottom : 0.0 } } } impl :: std :: fmt :: Debug for D2D_RECT_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_RECT_F" ) . field ( "left" , & self . left ) . field ( "top" , & self . top ) . field ( "right" , & self . right ) . field ( "bottom" , & self . bottom ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_RECT_F { fn eq ( & self , other : & Self ) -> bool { self . left == other . left && self . top == other . top && self . right == other . right && self . bottom == other . bottom } } impl :: std :: cmp :: Eq for D2D_RECT_F { } unsafe impl :: windows :: Abi for D2D_RECT_F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_SIZE_F { pub width : f32 , pub height : f32 } impl D2D_SIZE_F { } impl :: std :: default :: Default for D2D_SIZE_F { fn default ( ) -> Self { Self { width : 0.0 , height : 0.0 } } } impl :: std :: fmt :: Debug for D2D_SIZE_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_SIZE_F" ) . field ( "width" , & self . width ) . field ( "height" , & self . height ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_SIZE_F { fn eq ( & self , other : & Self ) -> bool { self . width == other . width && self . height == other . height } } impl :: std :: cmp :: Eq for D2D_SIZE_F { } unsafe impl :: windows :: Abi for D2D_SIZE_F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_SIZE_U { pub width : u32 , pub height : u32 } impl D2D_SIZE_U { } impl :: std :: default :: Default for D2D_SIZE_U { fn default ( ) -> Self { Self { width : 0 , height : 0 } } } impl :: std :: fmt :: Debug for D2D_SIZE_U { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_SIZE_U" ) . field ( "width" , & self . width ) . field ( "height" , & self . height ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_SIZE_U { fn eq ( & self , other : & Self ) -> bool { self . width == other . width && self . height == other . height } } impl :: std :: cmp :: Eq for D2D_SIZE_U { } unsafe impl :: windows :: Abi for D2D_SIZE_U { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Bitmap ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Bitmap { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2720620631 ,59970 ,16537 , [ 152 ,59 ,83 ,159 ,182 ,80 ,84 ,38 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1BitmapBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1BitmapBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420522 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1BitmapRenderTarget ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1BitmapRenderTarget { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420501 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Brush ( :: windows :: IUnknown ) ; impl ID2D1Brush { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn SetOpacity < > ( & self , opacity : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( opacity ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetOpacity < > ( & self , ) -> f32 { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } } unsafe impl :: windows :: Interface for ID2D1Brush { type Vtable = ID2D1Brush_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420520 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1Brush > for :: windows :: IUnknown { fn from ( value : ID2D1Brush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Brush > for :: windows :: IUnknown { fn from ( value : & ID2D1Brush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1Brush > for ID2D1Resource { fn from ( value : ID2D1Brush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Brush > for ID2D1Resource { fn from ( value : & ID2D1Brush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Brush_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacity : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> f32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1DCRenderTarget ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1DCRenderTarget { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 475118692 ,56929 ,18173 , [ 152 ,153 ,99 ,165 ,216 ,240 ,57 ,80 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1DrawingStateBlock ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1DrawingStateBlock { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 676359737 ,60406 ,18081 , [ 187 ,71 ,253 ,133 ,86 ,90 ,185 ,87 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1EllipseGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1EllipseGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420516 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Factory ( :: windows :: IUnknown ) ; impl ID2D1Factory { pub unsafe fn ReloadSystemMetrics < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDesktopDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn CreateRectangleGeometry < > ( & self , rectangle : * const D2D_RECT_F , ) -> :: windows :: Result < ID2D1RectangleGeometry > { let mut result__ : < ID2D1RectangleGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rectangle ) , & mut result__ ) . from_abi :: < ID2D1RectangleGeometry > ( result__ ) } pub unsafe fn CreateRoundedRectangleGeometry < > ( & self , roundedrectangle : * const D2D1_ROUNDED_RECT , ) -> :: windows :: Result < ID2D1RoundedRectangleGeometry > { let mut result__ : < ID2D1RoundedRectangleGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrectangle ) , & mut result__ ) . from_abi :: < ID2D1RoundedRectangleGeometry > ( result__ ) } pub unsafe fn CreateEllipseGeometry < > ( & self , ellipse : * const D2D1_ELLIPSE , ) -> :: windows :: Result < ID2D1EllipseGeometry > { let mut result__ : < ID2D1EllipseGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , & mut result__ ) . from_abi :: < ID2D1EllipseGeometry > ( result__ ) } pub unsafe fn CreateGeometryGroup < > ( & self , fillmode : D2D1_FILL_MODE , geometries : * mut :: std :: option :: Option < ID2D1Geometry > , geometriescount : u32 , ) -> :: windows :: Result < ID2D1GeometryGroup > { let mut result__ : < ID2D1GeometryGroup as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( fillmode ) , :: std :: mem :: transmute ( geometries ) , :: std :: mem :: transmute ( geometriescount ) , & mut result__ ) . from_abi :: < ID2D1GeometryGroup > ( result__ ) } pub unsafe fn CreateTransformedGeometry < 'a , > ( & self , sourcegeometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) -> :: windows :: Result < ID2D1TransformedGeometry > { let mut result__ : < ID2D1TransformedGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , sourcegeometry . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( transform ) , & mut result__ ) . from_abi :: < ID2D1TransformedGeometry > ( result__ ) } pub unsafe fn CreatePathGeometry < > ( & self , ) -> :: windows :: Result < ID2D1PathGeometry > { let mut result__ : < ID2D1PathGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1PathGeometry > ( result__ ) } pub unsafe fn CreateStrokeStyle < > ( & self , strokestyleproperties : * const D2D1_STROKE_STYLE_PROPERTIES , dashes : * const f32 , dashescount : u32 , ) -> :: windows :: Result < ID2D1StrokeStyle > { let mut result__ : < ID2D1StrokeStyle as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( strokestyleproperties ) , :: std :: mem :: transmute ( dashes ) , :: std :: mem :: transmute ( dashescount ) , & mut result__ ) . from_abi :: < ID2D1StrokeStyle > ( result__ ) } pub unsafe fn CreateDrawingStateBlock < 'a , > ( & self , drawingstatedescription : * const D2D1_DRAWING_STATE_DESCRIPTION , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) -> :: windows :: Result < ID2D1DrawingStateBlock > { let mut result__ : < ID2D1DrawingStateBlock as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( drawingstatedescription ) , textrenderingparams . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1DrawingStateBlock > ( result__ ) } pub unsafe fn CreateWicBitmapRenderTarget < 'a , > ( & self , target : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmap > , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1RenderTarget > { let mut result__ : < ID2D1RenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , target . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1RenderTarget > ( result__ ) } pub unsafe fn CreateHwndRenderTarget < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , hwndrendertargetproperties : * const D2D1_HWND_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1HwndRenderTarget > { let mut result__ : < ID2D1HwndRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , :: std :: mem :: transmute ( hwndrendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1HwndRenderTarget > ( result__ ) } pub unsafe fn CreateDxgiSurfaceRenderTarget < 'a , > ( & self , dxgisurface : impl :: windows :: IntoParam < 'a , super::Dxgi:: IDXGISurface > , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1RenderTarget > { let mut result__ : < ID2D1RenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , dxgisurface . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1RenderTarget > ( result__ ) } pub unsafe fn CreateDCRenderTarget < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1DCRenderTarget > { let mut result__ : < ID2D1DCRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1DCRenderTarget > ( result__ ) } } unsafe impl :: windows :: Interface for ID2D1Factory { type Vtable = ID2D1Factory_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 102048327 ,28496 ,18010 , [ 146 ,69 ,17 ,139 ,253 ,59 ,96 ,7 ] , ) ; } impl :: std :: convert :: From < ID2D1Factory > for :: windows :: IUnknown { fn from ( value : ID2D1Factory ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Factory > for :: windows :: IUnknown { fn from ( value : & ID2D1Factory ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Factory { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Factory { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Factory_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rectangle : * const D2D_RECT_F , rectanglegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrectangle : * const D2D1_ROUNDED_RECT , roundedrectanglegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , ellipsegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , fillmode : D2D1_FILL_MODE , geometries : * mut :: windows :: RawPtr , geometriescount : u32 , geometrygroup : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sourcegeometry : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , transformedgeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pathgeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , strokestyleproperties : * const D2D1_STROKE_STYLE_PROPERTIES , dashes : * const f32 , dashescount : u32 , strokestyle : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstatedescription : * const D2D1_DRAWING_STATE_DESCRIPTION , textrenderingparams : :: windows :: RawPtr , drawingstateblock : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , rendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , hwndrendertargetproperties : * const D2D1_HWND_RENDER_TARGET_PROPERTIES , hwndrendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dxgisurface : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , rendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , dcrendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Geometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Geometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420513 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1GeometryGroup ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1GeometryGroup { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420518 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1GradientStopCollection ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1GradientStopCollection { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420519 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1HwndRenderTarget ( :: windows :: IUnknown ) ; impl ID2D1HwndRenderTarget { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn CreateBitmap < 'a , > ( & self , size : impl :: windows :: IntoParam < 'a , D2D_SIZE_U > , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , size . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( srcdata ) , :: std :: mem :: transmute ( pitch ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateBitmapFromWicBitmap < 'a , > ( & self , wicbitmapsource : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmapSource > , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , wicbitmapsource . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateSharedBitmap < > ( & self , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: std :: option :: Option < ID2D1Bitmap > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( data ) , :: std :: mem :: transmute ( bitmapproperties ) , :: std :: mem :: transmute ( bitmap ) , ) . ok ( ) } pub unsafe fn CreateBitmapBrush < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1BitmapBrush > { let mut result__ : < ID2D1BitmapBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1BitmapBrush > ( result__ ) } pub unsafe fn CreateSolidColorBrush < > ( & self , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1SolidColorBrush > { let mut result__ : < ID2D1SolidColorBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1SolidColorBrush > ( result__ ) } pub unsafe fn CreateGradientStopCollection < > ( & self , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , ) -> :: windows :: Result < ID2D1GradientStopCollection > { let mut result__ : < ID2D1GradientStopCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( gradientstops ) , :: std :: mem :: transmute ( gradientstopscount ) , :: std :: mem :: transmute ( colorinterpolationgamma ) , :: std :: mem :: transmute ( extendmode ) , & mut result__ ) . from_abi :: < ID2D1GradientStopCollection > ( result__ ) } pub unsafe fn CreateLinearGradientBrush < 'a , > ( & self , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1LinearGradientBrush > { let mut result__ : < ID2D1LinearGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( lineargradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1LinearGradientBrush > ( result__ ) } pub unsafe fn CreateRadialGradientBrush < 'a , > ( & self , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1RadialGradientBrush > { let mut result__ : < ID2D1RadialGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( radialgradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1RadialGradientBrush > ( result__ ) } pub unsafe fn CreateCompatibleRenderTarget < > ( & self , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , ) -> :: windows :: Result < ID2D1BitmapRenderTarget > { let mut result__ : < ID2D1BitmapRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( desiredsize ) , :: std :: mem :: transmute ( desiredpixelsize ) , :: std :: mem :: transmute ( desiredformat ) , :: std :: mem :: transmute ( options ) , & mut result__ ) . from_abi :: < ID2D1BitmapRenderTarget > ( result__ ) } pub unsafe fn CreateLayer < > ( & self , size : * const D2D_SIZE_F , ) -> :: windows :: Result < ID2D1Layer > { let mut result__ : < ID2D1Layer as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( size ) , & mut result__ ) . from_abi :: < ID2D1Layer > ( result__ ) } pub unsafe fn CreateMesh < > ( & self , ) -> :: windows :: Result < ID2D1Mesh > { let mut result__ : < ID2D1Mesh as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1Mesh > ( result__ ) } pub unsafe fn DrawLine < 'a , > ( & self , point0 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , point1 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , point0 . into_param ( ) . abi ( ) , point1 . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , opacitybrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , opacitybrush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillMesh < 'a , > ( & self , mesh : impl :: windows :: IntoParam < 'a , ID2D1Mesh > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , mesh . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillOpacityMask < 'a , > ( & self , opacitymask : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , opacitymask . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( content ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawBitmap < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( opacity ) , :: std :: mem :: transmute ( interpolationmode ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawText < 'a , > ( & self , string : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , stringlength : u32 , textformat : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextFormat > , layoutrect : * const D2D_RECT_F , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , string . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( stringlength ) , textformat . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( layoutrect ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn DrawTextLayout < 'a , > ( & self , origin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , textlayout : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextLayout > , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , ) { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , origin . into_param ( ) . abi ( ) , textlayout . into_param ( ) . abi ( ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , ) } pub unsafe fn DrawGlyphRun < 'a , > ( & self , baselineorigin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN , foregroundbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , baselineorigin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( glyphrun ) , foregroundbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetAntialiasMode < > ( & self , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn GetAntialiasMode < > ( & self , ) -> D2D1_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextAntialiasMode < > ( & self , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textantialiasmode ) , ) } pub unsafe fn GetTextAntialiasMode < > ( & self , ) -> D2D1_TEXT_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextRenderingParams < 'a , > ( & self , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , textrenderingparams . into_param ( ) . abi ( ) , ) } pub unsafe fn GetTextRenderingParams < > ( & self , textrenderingparams : * mut :: std :: option :: Option < super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textrenderingparams ) , ) } pub unsafe fn SetTags < > ( & self , tag1 : u64 , tag2 : u64 , ) { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn GetTags < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn PushLayer < 'a , > ( & self , layerparameters : * const D2D1_LAYER_PARAMETERS , layer : impl :: windows :: IntoParam < 'a , ID2D1Layer > , ) { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( layerparameters ) , layer . into_param ( ) . abi ( ) , ) } pub unsafe fn PopLayer < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Flush < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn SaveDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn RestoreDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn PushAxisAlignedClip < > ( & self , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cliprect ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn PopAxisAlignedClip < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Clear < > ( & self , clearcolor : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( clearcolor ) , ) } pub unsafe fn BeginDraw < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn EndDraw < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn GetPixelFormat < > ( & self , ) -> D2D1_PIXEL_FORMAT { let mut result__ : D2D1_PIXEL_FORMAT = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn SetDpi < > ( & self , dpix : f32 , dpiy : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetSize < > ( & self , ) -> D2D_SIZE_F { let mut result__ : D2D_SIZE_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetPixelSize < > ( & self , ) -> D2D_SIZE_U { let mut result__ : D2D_SIZE_U = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetMaximumBitmapSize < > ( & self , ) -> u32 { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn IsSupported < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , ) } pub unsafe fn CheckWindowState < > ( & self , ) -> D2D1_WINDOW_STATE { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Resize < > ( & self , pixelsize : * const D2D_SIZE_U , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pixelsize ) , ) . ok ( ) } pub unsafe fn GetHwnd < > ( & self , ) -> super::super::Foundation:: HWND { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , ) } } unsafe impl :: windows :: Interface for ID2D1HwndRenderTarget { type Vtable = ID2D1HwndRenderTarget_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420504 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for :: windows :: IUnknown { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for :: windows :: IUnknown { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for ID2D1RenderTarget { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for ID2D1RenderTarget { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1RenderTarget > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1RenderTarget > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1RenderTarget > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1RenderTarget > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1RenderTarget > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1RenderTarget > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for ID2D1Resource { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for ID2D1Resource { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1HwndRenderTarget_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : D2D_SIZE_U , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , wicbitmapsource : :: windows :: RawPtr , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , bitmapbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , solidcolorbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , gradientstopcollection : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , lineargradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , radialgradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , bitmaprendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : * const D2D_SIZE_F , layer : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , point0 : D2D_POINT_2F , point1 : D2D_POINT_2F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , opacitybrush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : :: windows :: RawPtr , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacitymask : :: windows :: RawPtr , brush : :: windows :: RawPtr , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , string : super::super::Foundation:: PWSTR , stringlength : u32 , textformat : :: windows :: RawPtr , layoutrect : * const D2D_RECT_F , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , origin : D2D_POINT_2F , textlayout : :: windows :: RawPtr , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , baselineorigin : D2D_POINT_2F , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN_abi , foregroundbrush : :: windows :: RawPtr , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_TEXT_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : u64 , tag2 : u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , layerparameters : * const D2D1_LAYER_PARAMETERS_abi , layer : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , clearcolor : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_PIXEL_FORMAT ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : f32 , dpiy : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_F ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_U ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_WINDOW_STATE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixelsize : * const D2D_SIZE_U , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> super::super::Foundation:: HWND , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Layer ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Layer { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420507 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1LinearGradientBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1LinearGradientBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420523 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Mesh ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Mesh { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420546 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1PathGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1PathGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420517 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RadialGradientBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RadialGradientBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420524 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RectangleGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RectangleGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420514 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1RenderTarget ( :: windows :: IUnknown ) ; impl ID2D1RenderTarget { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn CreateBitmap < 'a , > ( & self , size : impl :: windows :: IntoParam < 'a , D2D_SIZE_U > , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , size . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( srcdata ) , :: std :: mem :: transmute ( pitch ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateBitmapFromWicBitmap < 'a , > ( & self , wicbitmapsource : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmapSource > , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , wicbitmapsource . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateSharedBitmap < > ( & self , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: std :: option :: Option < ID2D1Bitmap > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( data ) , :: std :: mem :: transmute ( bitmapproperties ) , :: std :: mem :: transmute ( bitmap ) , ) . ok ( ) } pub unsafe fn CreateBitmapBrush < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1BitmapBrush > { let mut result__ : < ID2D1BitmapBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1BitmapBrush > ( result__ ) } pub unsafe fn CreateSolidColorBrush < > ( & self , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1SolidColorBrush > { let mut result__ : < ID2D1SolidColorBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1SolidColorBrush > ( result__ ) } pub unsafe fn CreateGradientStopCollection < > ( & self , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , ) -> :: windows :: Result < ID2D1GradientStopCollection > { let mut result__ : < ID2D1GradientStopCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( gradientstops ) , :: std :: mem :: transmute ( gradientstopscount ) , :: std :: mem :: transmute ( colorinterpolationgamma ) , :: std :: mem :: transmute ( extendmode ) , & mut result__ ) . from_abi :: < ID2D1GradientStopCollection > ( result__ ) } pub unsafe fn CreateLinearGradientBrush < 'a , > ( & self , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1LinearGradientBrush > { let mut result__ : < ID2D1LinearGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( lineargradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1LinearGradientBrush > ( result__ ) } pub unsafe fn CreateRadialGradientBrush < 'a , > ( & self , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1RadialGradientBrush > { let mut result__ : < ID2D1RadialGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( radialgradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1RadialGradientBrush > ( result__ ) } pub unsafe fn CreateCompatibleRenderTarget < > ( & self , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , ) -> :: windows :: Result < ID2D1BitmapRenderTarget > { let mut result__ : < ID2D1BitmapRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( desiredsize ) , :: std :: mem :: transmute ( desiredpixelsize ) , :: std :: mem :: transmute ( desiredformat ) , :: std :: mem :: transmute ( options ) , & mut result__ ) . from_abi :: < ID2D1BitmapRenderTarget > ( result__ ) } pub unsafe fn CreateLayer < > ( & self , size : * const D2D_SIZE_F , ) -> :: windows :: Result < ID2D1Layer > { let mut result__ : < ID2D1Layer as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( size ) , & mut result__ ) . from_abi :: < ID2D1Layer > ( result__ ) } pub unsafe fn CreateMesh < > ( & self , ) -> :: windows :: Result < ID2D1Mesh > { let mut result__ : < ID2D1Mesh as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1Mesh > ( result__ ) } pub unsafe fn DrawLine < 'a , > ( & self , point0 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , point1 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , point0 . into_param ( ) . abi ( ) , point1 . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , opacitybrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , opacitybrush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillMesh < 'a , > ( & self , mesh : impl :: windows :: IntoParam < 'a , ID2D1Mesh > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , mesh . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillOpacityMask < 'a , > ( & self , opacitymask : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , opacitymask . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( content ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawBitmap < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( opacity ) , :: std :: mem :: transmute ( interpolationmode ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawText < 'a , > ( & self , string : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , stringlength : u32 , textformat : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextFormat > , layoutrect : * const D2D_RECT_F , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , string . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( stringlength ) , textformat . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( layoutrect ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn DrawTextLayout < 'a , > ( & self , origin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , textlayout : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextLayout > , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , ) { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , origin . into_param ( ) . abi ( ) , textlayout . into_param ( ) . abi ( ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , ) } pub unsafe fn DrawGlyphRun < 'a , > ( & self , baselineorigin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN , foregroundbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , baselineorigin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( glyphrun ) , foregroundbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetAntialiasMode < > ( & self , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn GetAntialiasMode < > ( & self , ) -> D2D1_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextAntialiasMode < > ( & self , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textantialiasmode ) , ) } pub unsafe fn GetTextAntialiasMode < > ( & self , ) -> D2D1_TEXT_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextRenderingParams < 'a , > ( & self , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , textrenderingparams . into_param ( ) . abi ( ) , ) } pub unsafe fn GetTextRenderingParams < > ( & self , textrenderingparams : * mut :: std :: option :: Option < super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textrenderingparams ) , ) } pub unsafe fn SetTags < > ( & self , tag1 : u64 , tag2 : u64 , ) { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn GetTags < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn PushLayer < 'a , > ( & self , layerparameters : * const D2D1_LAYER_PARAMETERS , layer : impl :: windows :: IntoParam < 'a , ID2D1Layer > , ) { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( layerparameters ) , layer . into_param ( ) . abi ( ) , ) } pub unsafe fn PopLayer < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Flush < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn SaveDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn RestoreDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn PushAxisAlignedClip < > ( & self , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cliprect ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn PopAxisAlignedClip < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Clear < > ( & self , clearcolor : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( clearcolor ) , ) } pub unsafe fn BeginDraw < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn EndDraw < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn GetPixelFormat < > ( & self , ) -> D2D1_PIXEL_FORMAT { let mut result__ : D2D1_PIXEL_FORMAT = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn SetDpi < > ( & self , dpix : f32 , dpiy : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetSize < > ( & self , ) -> D2D_SIZE_F { let mut result__ : D2D_SIZE_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetPixelSize < > ( & self , ) -> D2D_SIZE_U { let mut result__ : D2D_SIZE_U = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetMaximumBitmapSize < > ( & self , ) -> u32 { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn IsSupported < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , ) } } unsafe impl :: windows :: Interface for ID2D1RenderTarget { type Vtable = ID2D1RenderTarget_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420500 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1RenderTarget > for :: windows :: IUnknown { fn from ( value : ID2D1RenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1RenderTarget > for :: windows :: IUnknown { fn from ( value : & ID2D1RenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1RenderTarget > for ID2D1Resource { fn from ( value : ID2D1RenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1RenderTarget > for ID2D1Resource { fn from ( value : & ID2D1RenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1RenderTarget_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : D2D_SIZE_U , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , wicbitmapsource : :: windows :: RawPtr , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , bitmapbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , solidcolorbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , gradientstopcollection : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , lineargradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , radialgradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , bitmaprendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : * const D2D_SIZE_F , layer : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , point0 : D2D_POINT_2F , point1 : D2D_POINT_2F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , opacitybrush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : :: windows :: RawPtr , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacitymask : :: windows :: RawPtr , brush : :: windows :: RawPtr , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , string : super::super::Foundation:: PWSTR , stringlength : u32 , textformat : :: windows :: RawPtr , layoutrect : * const D2D_RECT_F , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , origin : D2D_POINT_2F , textlayout : :: windows :: RawPtr , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , baselineorigin : D2D_POINT_2F , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN_abi , foregroundbrush : :: windows :: RawPtr , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_TEXT_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : u64 , tag2 : u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , layerparameters : * const D2D1_LAYER_PARAMETERS_abi , layer : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , clearcolor : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_PIXEL_FORMAT ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : f32 , dpiy : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_F ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_U ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Resource ( :: windows :: IUnknown ) ; impl ID2D1Resource { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } } unsafe impl :: windows :: Interface for ID2D1Resource { type Vtable = ID2D1Resource_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420497 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1Resource > for :: windows :: IUnknown { fn from ( value : ID2D1Resource ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Resource > for :: windows :: IUnknown { fn from ( value : & ID2D1Resource ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Resource { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Resource { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Resource_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RoundedRectangleGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RoundedRectangleGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420515 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1SolidColorBrush ( :: windows :: IUnknown ) ; impl ID2D1SolidColorBrush { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn SetOpacity < > ( & self , opacity : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( opacity ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetOpacity < > ( & self , ) -> f32 { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetColor < > ( & self , color : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , ) } pub unsafe fn GetColor < > ( & self , ) -> D2D1_COLOR_F { let mut result__ : D2D1_COLOR_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } } unsafe impl :: windows :: Interface for ID2D1SolidColorBrush { type Vtable = ID2D1SolidColorBrush_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420521 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1SolidColorBrush > for :: windows :: IUnknown { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for :: windows :: IUnknown { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1SolidColorBrush > for ID2D1Brush { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for ID2D1Brush { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Brush > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Brush > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Brush > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Brush > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Brush > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Brush > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1SolidColorBrush > for ID2D1Resource { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for ID2D1Resource { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1SolidColorBrush_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacity : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> f32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_COLOR_F ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1StrokeStyle ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1StrokeStyle { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420509 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1TransformedGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1TransformedGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420539 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod DirectWrite { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DWRITE_GLYPH_OFFSET { pub advanceOffset : f32 , pub ascenderOffset : f32 } impl DWRITE_GLYPH_OFFSET { } impl :: std :: default :: Default for DWRITE_GLYPH_OFFSET { fn default ( ) -> Self { Self { advanceOffset : 0.0 , ascenderOffset : 0.0 } } } impl :: std :: fmt :: Debug for DWRITE_GLYPH_OFFSET { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DWRITE_GLYPH_OFFSET" ) . field ( "advanceOffset" , & self . advanceOffset ) . field ( "ascenderOffset" , & self . ascenderOffset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DWRITE_GLYPH_OFFSET { fn eq ( & self , other : & Self ) -> bool { self . advanceOffset == other . advanceOffset && self . ascenderOffset == other . ascenderOffset } } impl :: std :: cmp :: Eq for DWRITE_GLYPH_OFFSET { } unsafe impl :: windows :: Abi for DWRITE_GLYPH_OFFSET { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct DWRITE_GLYPH_RUN { pub fontFace : :: std :: option :: Option < IDWriteFontFace > , pub fontEmSize : f32 , pub glyphCount : u32 , pub glyphIndices : * mut u16 , pub glyphAdvances : * mut f32 , pub glyphOffsets : * mut DWRITE_GLYPH_OFFSET , pub isSideways : super::super::Foundation:: BOOL , pub bidiLevel : u32 } impl DWRITE_GLYPH_RUN { } impl :: std :: default :: Default for DWRITE_GLYPH_RUN { fn default ( ) -> Self { Self { fontFace : :: std :: default :: Default :: default ( ) , fontEmSize : 0.0 , glyphCount : 0 , glyphIndices : :: std :: ptr :: null_mut ( ) , glyphAdvances : :: std :: ptr :: null_mut ( ) , glyphOffsets : :: std :: ptr :: null_mut ( ) , isSideways : :: std :: default :: Default :: default ( ) , bidiLevel : 0 } } } impl :: std :: fmt :: Debug for DWRITE_GLYPH_RUN { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DWRITE_GLYPH_RUN" ) . field ( "fontFace" , & self . fontFace ) . field ( "fontEmSize" , & self . fontEmSize ) . field ( "glyphCount" , & self . glyphCount ) . field ( "glyphIndices" , & self . glyphIndices ) . field ( "glyphAdvances" , & self . glyphAdvances ) . field ( "glyphOffsets" , & self . glyphOffsets ) . field ( "isSideways" , & self . isSideways ) . field ( "bidiLevel" , & self . bidiLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DWRITE_GLYPH_RUN { fn eq ( & self , other : & Self ) -> bool { self . fontFace == other . fontFace && self . fontEmSize == other . fontEmSize && self . glyphCount == other . glyphCount && self . glyphIndices == other . glyphIndices && self . glyphAdvances == other . glyphAdvances && self . glyphOffsets == other . glyphOffsets && self . isSideways == other . isSideways && self . bidiLevel == other . bidiLevel } } impl :: std :: cmp :: Eq for DWRITE_GLYPH_RUN { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct DWRITE_GLYPH_RUN_abi { pub fontFace : :: windows :: RawPtr , pub fontEmSize : f32 , pub glyphCount : u32 , pub glyphIndices : * mut u16 , pub glyphAdvances : * mut f32 , pub glyphOffsets : * mut DWRITE_GLYPH_OFFSET , pub isSideways : super::super::Foundation:: BOOL , pub bidiLevel : u32 } unsafe impl :: windows :: Abi for DWRITE_GLYPH_RUN { type Abi = DWRITE_GLYPH_RUN_abi ; 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 DWRITE_MEASURING_MODE ( pub i32 ) ; pub const DWRITE_MEASURING_MODE_NATURAL : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 0i32 ) ; pub const DWRITE_MEASURING_MODE_GDI_CLASSIC : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 1i32 ) ; pub const DWRITE_MEASURING_MODE_GDI_NATURAL : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 2i32 ) ; impl :: std :: convert :: From < i32 > for DWRITE_MEASURING_MODE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DWRITE_MEASURING_MODE { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteFontFace ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteFontFace { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1598652493 ,28708 ,19779 , [ 191 ,169 ,210 ,89 ,132 ,245 ,56 ,73 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteRenderingParams ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteRenderingParams { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 789423418 ,10973 ,18381 , [ 130 ,238 ,217 ,236 ,52 ,104 ,142 ,117 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteTextFormat ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteTextFormat { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2626709528 ,12759 ,20435 , [ 161 ,81 ,124 ,94 ,34 ,93 ,181 ,90 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteTextLayout ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteTextLayout { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1400074295 ,27924 ,16651 , [ 155 ,254 ,11 ,24 ,43 ,183 ,9 ,97 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Dxgi { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct DXGI_FORMAT ( pub u32 ) ; impl :: std :: convert :: From < u32 > for DXGI_FORMAT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DXGI_FORMAT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for DXGI_FORMAT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for DXGI_FORMAT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for DXGI_FORMAT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for DXGI_FORMAT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDXGISurface ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDXGISurface { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3405559148 ,27331 ,18569 , [ 191 ,71 ,158 ,35 ,187 ,210 ,96 ,236 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Gdi { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BLENDFUNCTION { pub BlendOp : u8 , pub BlendFlags : u8 , pub SourceConstantAlpha : u8 , pub AlphaFormat : u8 } impl BLENDFUNCTION { } impl :: std :: default :: Default for BLENDFUNCTION { fn default ( ) -> Self { Self { BlendOp : 0 , BlendFlags : 0 , SourceConstantAlpha : 0 , AlphaFormat : 0 } } } impl :: std :: fmt :: Debug for BLENDFUNCTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BLENDFUNCTION" ) . field ( "BlendOp" , & self . BlendOp ) . field ( "BlendFlags" , & self . BlendFlags ) . field ( "SourceConstantAlpha" , & self . SourceConstantAlpha ) . field ( "AlphaFormat" , & self . AlphaFormat ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BLENDFUNCTION { fn eq ( & self , other : & Self ) -> bool { self . BlendOp == other . BlendOp && self . BlendFlags == other . BlendFlags && self . SourceConstantAlpha == other . SourceConstantAlpha && self . AlphaFormat == other . AlphaFormat } } impl :: std :: cmp :: Eq for BLENDFUNCTION { } unsafe impl :: windows :: Abi for BLENDFUNCTION { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HBITMAP ( pub isize ) ; impl HBITMAP { } impl :: std :: default :: Default for HBITMAP { fn default ( ) -> Self { Self ( 0 ) } } impl HBITMAP { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HBITMAP { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HBITMAP" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HBITMAP { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HBITMAP { } unsafe impl :: windows :: Abi for HBITMAP { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HGDIOBJ > for HBITMAP { fn into_param ( self ) -> :: windows :: Param < 'a , HGDIOBJ > { :: windows :: Param :: Owned ( HGDIOBJ ( self . 0 ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HBRUSH ( pub isize ) ; impl HBRUSH { } impl :: std :: default :: Default for HBRUSH { fn default ( ) -> Self { Self ( 0 ) } } impl HBRUSH { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HBRUSH { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HBRUSH" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HBRUSH { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HBRUSH { } unsafe impl :: windows :: Abi for HBRUSH { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HGDIOBJ > for HBRUSH { fn into_param ( self ) -> :: windows :: Param < 'a , HGDIOBJ > { :: windows :: Param :: Owned ( HGDIOBJ ( self . 0 ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HDC ( pub isize ) ; impl HDC { } impl :: std :: default :: Default for HDC { fn default ( ) -> Self { Self ( 0 ) } } impl HDC { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HDC { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HDC" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HDC { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HDC { } unsafe impl :: windows :: Abi for HDC { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HGDIOBJ ( pub isize ) ; impl HGDIOBJ { } impl :: std :: default :: Default for HGDIOBJ { fn default ( ) -> Self { Self ( 0 ) } } impl HGDIOBJ { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HGDIOBJ { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HGDIOBJ" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HGDIOBJ { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HGDIOBJ { } unsafe impl :: windows :: Abi for HGDIOBJ { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LOGFONTA { pub lfHeight : i32 , pub lfWidth : i32 , pub lfEscapement : i32 , pub lfOrientation : i32 , pub lfWeight : i32 , pub lfItalic : u8 , pub lfUnderline : u8 , pub lfStrikeOut : u8 , pub lfCharSet : u8 , pub lfOutPrecision : u8 , pub lfClipPrecision : u8 , pub lfQuality : u8 , pub lfPitchAndFamily : u8 , pub lfFaceName : [ super::super::System::SystemServices:: CHAR ;32 ] } impl LOGFONTA { } impl :: std :: default :: Default for LOGFONTA { fn default ( ) -> Self { Self { lfHeight : 0 , lfWidth : 0 , lfEscapement : 0 , lfOrientation : 0 , lfWeight : 0 , lfItalic : 0 , lfUnderline : 0 , lfStrikeOut : 0 , lfCharSet : 0 , lfOutPrecision : 0 , lfClipPrecision : 0 , lfQuality : 0 , lfPitchAndFamily : 0 , lfFaceName : [ :: std :: default :: Default :: default ( ) ;32 ] } } } impl :: std :: fmt :: Debug for LOGFONTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LOGFONTA" ) . field ( "lfHeight" , & self . lfHeight ) . field ( "lfWidth" , & self . lfWidth ) . field ( "lfEscapement" , & self . lfEscapement ) . field ( "lfOrientation" , & self . lfOrientation ) . field ( "lfWeight" , & self . lfWeight ) . field ( "lfItalic" , & self . lfItalic ) . field ( "lfUnderline" , & self . lfUnderline ) . field ( "lfStrikeOut" , & self . lfStrikeOut ) . field ( "lfCharSet" , & self . lfCharSet ) . field ( "lfOutPrecision" , & self . lfOutPrecision ) . field ( "lfClipPrecision" , & self . lfClipPrecision ) . field ( "lfQuality" , & self . lfQuality ) . field ( "lfPitchAndFamily" , & self . lfPitchAndFamily ) . field ( "lfFaceName" , & self . lfFaceName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LOGFONTA { fn eq ( & self , other : & Self ) -> bool { self . lfHeight == other . lfHeight && self . lfWidth == other . lfWidth && self . lfEscapement == other . lfEscapement && self . lfOrientation == other . lfOrientation && self . lfWeight == other . lfWeight && self . lfItalic == other . lfItalic && self . lfUnderline == other . lfUnderline && self . lfStrikeOut == other . lfStrikeOut && self . lfCharSet == other . lfCharSet && self . lfOutPrecision == other . lfOutPrecision && self . lfClipPrecision == other . lfClipPrecision && self . lfQuality == other . lfQuality && self . lfPitchAndFamily == other . lfPitchAndFamily && self . lfFaceName == other . lfFaceName } } impl :: std :: cmp :: Eq for LOGFONTA { } unsafe impl :: windows :: Abi for LOGFONTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LOGFONTW { pub lfHeight : i32 , pub lfWidth : i32 , pub lfEscapement : i32 , pub lfOrientation : i32 , pub lfWeight : i32 , pub lfItalic : u8 , pub lfUnderline : u8 , pub lfStrikeOut : u8 , pub lfCharSet : u8 , pub lfOutPrecision : u8 , pub lfClipPrecision : u8 , pub lfQuality : u8 , pub lfPitchAndFamily : u8 , pub lfFaceName : [ u16 ;32 ] } impl LOGFONTW { } impl :: std :: default :: Default for LOGFONTW { fn default ( ) -> Self { Self { lfHeight : 0 , lfWidth : 0 , lfEscapement : 0 , lfOrientation : 0 , lfWeight : 0 , lfItalic : 0 , lfUnderline : 0 , lfStrikeOut : 0 , lfCharSet : 0 , lfOutPrecision : 0 , lfClipPrecision : 0 , lfQuality : 0 , lfPitchAndFamily : 0 , lfFaceName : [ 0 ;32 ] } } } impl :: std :: fmt :: Debug for LOGFONTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LOGFONTW" ) . field ( "lfHeight" , & self . lfHeight ) . field ( "lfWidth" , & self . lfWidth ) . field ( "lfEscapement" , & self . lfEscapement ) . field ( "lfOrientation" , & self . lfOrientation ) . field ( "lfWeight" , & self . lfWeight ) . field ( "lfItalic" , & self . lfItalic ) . field ( "lfUnderline" , & self . lfUnderline ) . field ( "lfStrikeOut" , & self . lfStrikeOut ) . field ( "lfCharSet" , & self . lfCharSet ) . field ( "lfOutPrecision" , & self . lfOutPrecision ) . field ( "lfClipPrecision" , & self . lfClipPrecision ) . field ( "lfQuality" , & self . lfQuality ) . field ( "lfPitchAndFamily" , & self . lfPitchAndFamily ) . field ( "lfFaceName" , & self . lfFaceName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LOGFONTW { fn eq ( & self , other : & Self ) -> bool { self . lfHeight == other . lfHeight && self . lfWidth == other . lfWidth && self . lfEscapement == other . lfEscapement && self . lfOrientation == other . lfOrientation && self . lfWeight == other . lfWeight && self . lfItalic == other . lfItalic && self . lfUnderline == other . lfUnderline && self . lfStrikeOut == other . lfStrikeOut && self . lfCharSet == other . lfCharSet && self . lfOutPrecision == other . lfOutPrecision && self . lfClipPrecision == other . lfClipPrecision && self . lfQuality == other . lfQuality && self . lfPitchAndFamily == other . lfPitchAndFamily && self . lfFaceName == other . lfFaceName } } impl :: std :: cmp :: Eq for LOGFONTW { } unsafe impl :: windows :: Abi for LOGFONTW { 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 Imaging { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IWICBitmap ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IWICBitmap { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 289 ,43250 ,18551 , [ 186 ,10 ,253 ,43 ,102 ,69 ,251 ,148 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IWICBitmapSource ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IWICBitmapSource { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 288 ,43250 ,18551 , [ 186 ,10 ,253 ,43 ,102 ,69 ,251 ,148 ] , ) ; } } } # [ 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 LibraryLoader { pub unsafe fn GetModuleHandleW < 'a , > ( lpmodulename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HINSTANCE { # [ cfg ( windows ) ] { # [ link ( name ="KERNEL32" ) ] extern "system" { fn GetModuleHandleW ( lpmodulename : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HINSTANCE ; } GetModuleHandleW ( lpmodulename . into_param ( ) . abi ( ) ) } # [ 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 StationsAndDesktops { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HDESK ( pub isize ) ; impl HDESK { } impl :: std :: default :: Default for HDESK { fn default ( ) -> Self { Self ( 0 ) } } impl HDESK { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HDESK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HDESK" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HDESK { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HDESK { } unsafe impl :: windows :: Abi for HDESK { 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 SystemServices { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct CHAR ( pub u8 ) ; impl CHAR { } impl :: std :: default :: Default for CHAR { fn default ( ) -> Self { Self ( 0 ) } } impl CHAR { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for CHAR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHAR" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHAR { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for CHAR { } unsafe impl :: windows :: Abi for CHAR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct DPI_AWARENESS_CONTEXT ( pub isize ) ; impl DPI_AWARENESS_CONTEXT { } impl :: std :: default :: Default for DPI_AWARENESS_CONTEXT { fn default ( ) -> Self { Self ( 0 ) } } impl DPI_AWARENESS_CONTEXT { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for DPI_AWARENESS_CONTEXT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DPI_AWARENESS_CONTEXT" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DPI_AWARENESS_CONTEXT { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for DPI_AWARENESS_CONTEXT { } unsafe impl :: windows :: Abi for DPI_AWARENESS_CONTEXT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LUID { pub LowPart : u32 , pub HighPart : i32 } impl LUID { } impl :: std :: default :: Default for LUID { fn default ( ) -> Self { Self { LowPart : 0 , HighPart : 0 } } } impl :: std :: fmt :: Debug for LUID { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LUID" ) . field ( "LowPart" , & self . LowPart ) . field ( "HighPart" , & self . HighPart ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LUID { fn eq ( & self , other : & Self ) -> bool { self . LowPart == other . LowPart && self . HighPart == other . HighPart } } impl :: std :: cmp :: Eq for LUID { } unsafe impl :: windows :: Abi for LUID { 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 UI { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Controls { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HPROPSHEETPAGE ( pub isize ) ; impl HPROPSHEETPAGE { } impl :: std :: default :: Default for HPROPSHEETPAGE { fn default ( ) -> Self { Self ( 0 ) } } impl HPROPSHEETPAGE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HPROPSHEETPAGE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HPROPSHEETPAGE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HPROPSHEETPAGE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HPROPSHEETPAGE { } unsafe impl :: windows :: Abi for HPROPSHEETPAGE { 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 IMAGE_FLAGS ( pub u32 ) ; pub const LR_CREATEDIBSECTION : IMAGE_FLAGS = IMAGE_FLAGS ( 8192u32 ) ; pub const LR_DEFAULTCOLOR : IMAGE_FLAGS = IMAGE_FLAGS ( 0u32 ) ; pub const LR_DEFAULTSIZE : IMAGE_FLAGS = IMAGE_FLAGS ( 64u32 ) ; pub const LR_LOADFROMFILE : IMAGE_FLAGS = IMAGE_FLAGS ( 16u32 ) ; pub const LR_LOADMAP3DCOLORS : IMAGE_FLAGS = IMAGE_FLAGS ( 4096u32 ) ; pub const LR_LOADTRANSPARENT : IMAGE_FLAGS = IMAGE_FLAGS ( 32u32 ) ; pub const LR_MONOCHROME : IMAGE_FLAGS = IMAGE_FLAGS ( 1u32 ) ; pub const LR_SHARED : IMAGE_FLAGS = IMAGE_FLAGS ( 32768u32 ) ; pub const LR_VGACOLOR : IMAGE_FLAGS = IMAGE_FLAGS ( 128u32 ) ; pub const LR_COPYDELETEORG : IMAGE_FLAGS = IMAGE_FLAGS ( 8u32 ) ; pub const LR_COPYFROMRESOURCE : IMAGE_FLAGS = IMAGE_FLAGS ( 16384u32 ) ; pub const LR_COPYRETURNORG : IMAGE_FLAGS = IMAGE_FLAGS ( 4u32 ) ; impl :: std :: convert :: From < u32 > for IMAGE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for IMAGE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for IMAGE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for IMAGE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for IMAGE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for IMAGE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NMHDR { pub hwndFrom : super::super::Foundation:: HWND , pub idFrom : usize , pub code : u32 } impl NMHDR { } impl :: std :: default :: Default for NMHDR { fn default ( ) -> Self { Self { hwndFrom : :: std :: default :: Default :: default ( ) , idFrom : 0 , code : 0 } } } impl :: std :: fmt :: Debug for NMHDR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NMHDR" ) . field ( "hwndFrom" , & self . hwndFrom ) . field ( "idFrom" , & self . idFrom ) . field ( "code" , & self . code ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NMHDR { fn eq ( & self , other : & Self ) -> bool { self . hwndFrom == other . hwndFrom && self . idFrom == other . idFrom && self . code == other . code } } impl :: std :: cmp :: Eq for NMHDR { } unsafe impl :: windows :: Abi for NMHDR { 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 SCROLLBAR_OBJID ( pub i32 ) ; pub const OBJID_CLIENT : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -4i32 ) ; pub const OBJID_HSCROLL : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -6i32 ) ; pub const OBJID_VSCROLL : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -5i32 ) ; pub const OBJID_MENU : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -3i32 ) ; pub const OBJID_SYSMENU : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -1i32 ) ; impl :: std :: convert :: From < i32 > for SCROLLBAR_OBJID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SCROLLBAR_OBJID { 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 DisplayDevices { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA { pub dmDeviceName : [ u8 ;32 ] , pub dmSpecVersion : u16 , pub dmDriverVersion : u16 , pub dmSize : u16 , pub dmDriverExtra : u16 , pub dmFields : u32 , pub Anonymous1 : DEVMODEA_0 , pub dmColor : i16 , pub dmDuplex : i16 , pub dmYResolution : i16 , pub dmTTOption : i16 , pub dmCollate : i16 , pub dmFormName : [ u8 ;32 ] , pub dmLogPixels : u16 , pub dmBitsPerPel : u32 , pub dmPelsWidth : u32 , pub dmPelsHeight : u32 , pub Anonymous2 : DEVMODEA_1 , pub dmDisplayFrequency : u32 , pub dmICMMethod : u32 , pub dmICMIntent : u32 , pub dmMediaType : u32 , pub dmDitherType : u32 , pub dmReserved1 : u32 , pub dmReserved2 : u32 , pub dmPanningWidth : u32 , pub dmPanningHeight : u32 } impl DEVMODEA { } impl :: std :: cmp :: PartialEq for DEVMODEA { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA { } unsafe impl :: windows :: Abi for DEVMODEA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DEVMODEA_0 { pub Anonymous1 : DEVMODEA_0_0 , pub Anonymous2 : DEVMODEA_0_1 } impl DEVMODEA_0 { } impl :: std :: cmp :: PartialEq for DEVMODEA_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA_0 { } unsafe impl :: windows :: Abi for DEVMODEA_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA_0_0 { pub dmOrientation : i16 , pub dmPaperSize : i16 , pub dmPaperLength : i16 , pub dmPaperWidth : i16 , pub dmScale : i16 , pub dmCopies : i16 , pub dmDefaultSource : i16 , pub dmPrintQuality : i16 } impl DEVMODEA_0_0 { } impl :: std :: default :: Default for DEVMODEA_0_0 { fn default ( ) -> Self { Self { dmOrientation : 0 , dmPaperSize : 0 , dmPaperLength : 0 , dmPaperWidth : 0 , dmScale : 0 , dmCopies : 0 , dmDefaultSource : 0 , dmPrintQuality : 0 } } } impl :: std :: fmt :: Debug for DEVMODEA_0_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous1_e__Struct" ) . field ( "dmOrientation" , & self . dmOrientation ) . field ( "dmPaperSize" , & self . dmPaperSize ) . field ( "dmPaperLength" , & self . dmPaperLength ) . field ( "dmPaperWidth" , & self . dmPaperWidth ) . field ( "dmScale" , & self . dmScale ) . field ( "dmCopies" , & self . dmCopies ) . field ( "dmDefaultSource" , & self . dmDefaultSource ) . field ( "dmPrintQuality" , & self . dmPrintQuality ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVMODEA_0_0 { fn eq ( & self , other : & Self ) -> bool { self . dmOrientation == other . dmOrientation && self . dmPaperSize == other . dmPaperSize && self . dmPaperLength == other . dmPaperLength && self . dmPaperWidth == other . dmPaperWidth && self . dmScale == other . dmScale && self . dmCopies == other . dmCopies && self . dmDefaultSource == other . dmDefaultSource && self . dmPrintQuality == other . dmPrintQuality } } impl :: std :: cmp :: Eq for DEVMODEA_0_0 { } unsafe impl :: windows :: Abi for DEVMODEA_0_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA_0_1 { pub dmPosition : super::super::Foundation:: POINTL , pub dmDisplayOrientation : u32 , pub dmDisplayFixedOutput : u32 } impl DEVMODEA_0_1 { } impl :: std :: default :: Default for DEVMODEA_0_1 { fn default ( ) -> Self { Self { dmPosition : :: std :: default :: Default :: default ( ) , dmDisplayOrientation : 0 , dmDisplayFixedOutput : 0 } } } impl :: std :: fmt :: Debug for DEVMODEA_0_1 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous2_e__Struct" ) . field ( "dmPosition" , & self . dmPosition ) . field ( "dmDisplayOrientation" , & self . dmDisplayOrientation ) . field ( "dmDisplayFixedOutput" , & self . dmDisplayFixedOutput ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVMODEA_0_1 { fn eq ( & self , other : & Self ) -> bool { self . dmPosition == other . dmPosition && self . dmDisplayOrientation == other . dmDisplayOrientation && self . dmDisplayFixedOutput == other . dmDisplayFixedOutput } } impl :: std :: cmp :: Eq for DEVMODEA_0_1 { } unsafe impl :: windows :: Abi for DEVMODEA_0_1 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DEVMODEA_1 { pub dmDisplayFlags : u32 , pub dmNup : u32 } impl DEVMODEA_1 { } impl :: std :: cmp :: PartialEq for DEVMODEA_1 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA_1 { } unsafe impl :: windows :: Abi for DEVMODEA_1 { 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 Shell { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct HELPINFO { pub cbSize : u32 , pub iContextType : i32 , pub iCtrlId : i32 , pub hItemHandle : super::super::Foundation:: HANDLE , pub dwContextId : usize , pub MousePos : super::super::Foundation:: POINT } impl HELPINFO { } impl :: std :: default :: Default for HELPINFO { fn default ( ) -> Self { Self { cbSize : 0 , iContextType : 0 , iCtrlId : 0 , hItemHandle : :: std :: default :: Default :: default ( ) , dwContextId : 0 , MousePos : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for HELPINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HELPINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "iContextType" , & self . iContextType ) . field ( "iCtrlId" , & self . iCtrlId ) . field ( "hItemHandle" , & self . hItemHandle ) . field ( "dwContextId" , & self . dwContextId ) . field ( "MousePos" , & self . MousePos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HELPINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iContextType == other . iContextType && self . iCtrlId == other . iCtrlId && self . hItemHandle == other . hItemHandle && self . dwContextId == other . dwContextId && self . MousePos == other . MousePos } } impl :: std :: cmp :: Eq for HELPINFO { } unsafe impl :: windows :: Abi for HELPINFO { 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 WindowsAndMessaging { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ACCEL { pub fVirt : u8 , pub key : u16 , pub cmd : u16 } impl ACCEL { } impl :: std :: default :: Default for ACCEL { fn default ( ) -> Self { Self { fVirt : 0 , key : 0 , cmd : 0 } } } impl :: std :: fmt :: Debug for ACCEL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ACCEL" ) . field ( "fVirt" , & self . fVirt ) . field ( "key" , & self . key ) . field ( "cmd" , & self . cmd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ACCEL { fn eq ( & self , other : & Self ) -> bool { self . fVirt == other . fVirt && self . key == other . key && self . cmd == other . cmd } } impl :: std :: cmp :: Eq for ACCEL { } unsafe impl :: windows :: Abi for ACCEL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ALTTABINFO { pub cbSize : u32 , pub cItems : i32 , pub cColumns : i32 , pub cRows : i32 , pub iColFocus : i32 , pub iRowFocus : i32 , pub cxItem : i32 , pub cyItem : i32 , pub ptStart : super::super::Foundation:: POINT } impl ALTTABINFO { } impl :: std :: default :: Default for ALTTABINFO { fn default ( ) -> Self { Self { cbSize : 0 , cItems : 0 , cColumns : 0 , cRows : 0 , iColFocus : 0 , iRowFocus : 0 , cxItem : 0 , cyItem : 0 , ptStart : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ALTTABINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ALTTABINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "cItems" , & self . cItems ) . field ( "cColumns" , & self . cColumns ) . field ( "cRows" , & self . cRows ) . field ( "iColFocus" , & self . iColFocus ) . field ( "iRowFocus" , & self . iRowFocus ) . field ( "cxItem" , & self . cxItem ) . field ( "cyItem" , & self . cyItem ) . field ( "ptStart" , & self . ptStart ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ALTTABINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . cItems == other . cItems && self . cColumns == other . cColumns && self . cRows == other . cRows && self . iColFocus == other . iColFocus && self . iRowFocus == other . iRowFocus && self . cxItem == other . cxItem && self . cyItem == other . cyItem && self . ptStart == other . ptStart } } impl :: std :: cmp :: Eq for ALTTABINFO { } unsafe impl :: windows :: Abi for ALTTABINFO { 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 ANIMATE_WINDOW_FLAGS ( pub u32 ) ; pub const AW_ACTIVATE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 131072u32 ) ; pub const AW_BLEND : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 524288u32 ) ; pub const AW_CENTER : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 16u32 ) ; pub const AW_HIDE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 65536u32 ) ; pub const AW_HOR_POSITIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 1u32 ) ; pub const AW_HOR_NEGATIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 2u32 ) ; pub const AW_SLIDE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 262144u32 ) ; pub const AW_VER_POSITIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 4u32 ) ; pub const AW_VER_NEGATIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for ANIMATE_WINDOW_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for ANIMATE_WINDOW_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for ANIMATE_WINDOW_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for ANIMATE_WINDOW_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for ANIMATE_WINDOW_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for ANIMATE_WINDOW_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ANIMATIONINFO { pub cbSize : u32 , pub iMinAnimate : i32 } impl ANIMATIONINFO { } impl :: std :: default :: Default for ANIMATIONINFO { fn default ( ) -> Self { Self { cbSize : 0 , iMinAnimate : 0 } } } impl :: std :: fmt :: Debug for ANIMATIONINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ANIMATIONINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "iMinAnimate" , & self . iMinAnimate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ANIMATIONINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iMinAnimate == other . iMinAnimate } } impl :: std :: cmp :: Eq for ANIMATIONINFO { } unsafe impl :: windows :: Abi for ANIMATIONINFO { type Abi = Self ; type DefaultType = Self ; } pub const ARW_DOWN : i32 = 4i32 ; pub const ARW_HIDE : i32 = 8i32 ; pub const ARW_LEFT : i32 = 0i32 ; pub const ARW_RIGHT : i32 = 0i32 ; pub const ARW_STARTMASK : i32 = 3i32 ; pub const ARW_STARTRIGHT : i32 = 1i32 ; pub const ARW_STARTTOP : i32 = 2i32 ; pub const ARW_UP : i32 = 4i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct AUDIODESCRIPTION { pub cbSize : u32 , pub Enabled : super::super::Foundation:: BOOL , pub Locale : u32 } impl AUDIODESCRIPTION { } impl :: std :: default :: Default for AUDIODESCRIPTION { fn default ( ) -> Self { Self { cbSize : 0 , Enabled : :: std :: default :: Default :: default ( ) , Locale : 0 } } } impl :: std :: fmt :: Debug for AUDIODESCRIPTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "AUDIODESCRIPTION" ) . field ( "cbSize" , & self . cbSize ) . field ( "Enabled" , & self . Enabled ) . field ( "Locale" , & self . Locale ) . finish ( ) } } impl :: std :: cmp :: PartialEq for AUDIODESCRIPTION { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . Enabled == other . Enabled && self . Locale == other . Locale } } impl :: std :: cmp :: Eq for AUDIODESCRIPTION { } unsafe impl :: windows :: Abi for AUDIODESCRIPTION { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn AdjustWindowRect < 'a , > ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AdjustWindowRect ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } AdjustWindowRect ( :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( dwstyle ) , bmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AdjustWindowRectEx < 'a , > ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwexstyle : WINDOW_EX_STYLE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AdjustWindowRectEx ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : super::super::Foundation:: BOOL , dwexstyle : WINDOW_EX_STYLE ) -> super::super::Foundation:: BOOL ; } AdjustWindowRectEx ( :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( dwstyle ) , bmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwexstyle ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AllowSetForegroundWindow < > ( dwprocessid : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AllowSetForegroundWindow ( dwprocessid : u32 ) -> super::super::Foundation:: BOOL ; } AllowSetForegroundWindow ( :: std :: mem :: transmute ( dwprocessid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AnimateWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , dwtime : u32 , dwflags : ANIMATE_WINDOW_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AnimateWindow ( hwnd : super::super::Foundation:: HWND , dwtime : u32 , dwflags : ANIMATE_WINDOW_FLAGS ) -> super::super::Foundation:: BOOL ; } AnimateWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwtime ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AnyPopup < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AnyPopup ( ) -> super::super::Foundation:: BOOL ; } AnyPopup ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AppendMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AppendMenuA ( hmenu : HMENU , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } AppendMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AppendMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AppendMenuW ( hmenu : HMENU , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } AppendMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ArrangeIconicWindows < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ArrangeIconicWindows ( hwnd : super::super::Foundation:: HWND ) -> u32 ; } ArrangeIconicWindows ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const BM_CLICK : u32 = 245u32 ; pub const BM_GETCHECK : u32 = 240u32 ; pub const BM_GETIMAGE : u32 = 246u32 ; pub const BM_GETSTATE : u32 = 242u32 ; pub const BM_SETCHECK : u32 = 241u32 ; pub const BM_SETDONTCLICK : u32 = 248u32 ; pub const BM_SETIMAGE : u32 = 247u32 ; pub const BM_SETSTATE : u32 = 243u32 ; pub const BM_SETSTYLE : u32 = 244u32 ; pub const BN_CLICKED : u32 = 0u32 ; pub const BN_DISABLE : u32 = 4u32 ; pub const BN_DOUBLECLICKED : u32 = 5u32 ; pub const BN_HILITE : u32 = 2u32 ; pub const BN_KILLFOCUS : u32 = 7u32 ; pub const BN_PAINT : u32 = 1u32 ; pub const BN_SETFOCUS : u32 = 6u32 ; pub const BN_UNHILITE : u32 = 3u32 ; pub const BROADCAST_QUERY_DENY : u32 = 1112363332u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct BROADCAST_SYSTEM_MESSAGE_FLAGS ( pub u32 ) ; pub const BSF_ALLOWSFW : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 128u32 ) ; pub const BSF_FLUSHDISK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 4u32 ) ; pub const BSF_FORCEIFHUNG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 32u32 ) ; pub const BSF_IGNORECURRENTTASK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 2u32 ) ; pub const BSF_NOHANG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 8u32 ) ; pub const BSF_NOTIMEOUTIFNOTHUNG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 64u32 ) ; pub const BSF_POSTMESSAGE : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 16u32 ) ; pub const BSF_QUERY : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 1u32 ) ; pub const BSF_SENDNOTIFYMESSAGE : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 256u32 ) ; pub const BSF_LUID : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 1024u32 ) ; pub const BSF_RETURNHDESK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 512u32 ) ; impl :: std :: convert :: From < u32 > for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct BROADCAST_SYSTEM_MESSAGE_INFO ( pub u32 ) ; pub const BSM_ALLCOMPONENTS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 0u32 ) ; pub const BSM_ALLDESKTOPS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 16u32 ) ; pub const BSM_APPLICATIONS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 8u32 ) ; impl :: std :: convert :: From < u32 > for BROADCAST_SYSTEM_MESSAGE_INFO { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for BROADCAST_SYSTEM_MESSAGE_INFO { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for BROADCAST_SYSTEM_MESSAGE_INFO { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for BROADCAST_SYSTEM_MESSAGE_INFO { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for BROADCAST_SYSTEM_MESSAGE_INFO { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for BROADCAST_SYSTEM_MESSAGE_INFO { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BSMINFO { pub cbSize : u32 , pub hdesk : super::super::System::StationsAndDesktops:: HDESK , pub hwnd : super::super::Foundation:: HWND , pub luid : super::super::System::SystemServices:: LUID } impl BSMINFO { } impl :: std :: default :: Default for BSMINFO { fn default ( ) -> Self { Self { cbSize : 0 , hdesk : :: std :: default :: Default :: default ( ) , hwnd : :: std :: default :: Default :: default ( ) , luid : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for BSMINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BSMINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "hdesk" , & self . hdesk ) . field ( "hwnd" , & self . hwnd ) . field ( "luid" , & self . luid ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BSMINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hdesk == other . hdesk && self . hwnd == other . hwnd && self . luid == other . luid } } impl :: std :: cmp :: Eq for BSMINFO { } unsafe impl :: windows :: Abi for BSMINFO { type Abi = Self ; type DefaultType = Self ; } pub const BSM_INSTALLABLEDRIVERS : u32 = 4u32 ; pub const BSM_NETDRIVER : u32 = 2u32 ; pub const BSM_VXDS : u32 = 1u32 ; pub const BST_FOCUS : u32 = 8u32 ; pub const BST_PUSHED : u32 = 4u32 ; pub const BS_3STATE : i32 = 5i32 ; pub const BS_AUTO3STATE : i32 = 6i32 ; pub const BS_AUTOCHECKBOX : i32 = 3i32 ; pub const BS_AUTORADIOBUTTON : i32 = 9i32 ; pub const BS_BITMAP : i32 = 128i32 ; pub const BS_BOTTOM : i32 = 2048i32 ; pub const BS_CENTER : i32 = 768i32 ; pub const BS_CHECKBOX : i32 = 2i32 ; pub const BS_DEFPUSHBUTTON : i32 = 1i32 ; pub const BS_FLAT : i32 = 32768i32 ; pub const BS_GROUPBOX : i32 = 7i32 ; pub const BS_ICON : i32 = 64i32 ; pub const BS_LEFT : i32 = 256i32 ; pub const BS_LEFTTEXT : i32 = 32i32 ; pub const BS_MULTILINE : i32 = 8192i32 ; pub const BS_NOTIFY : i32 = 16384i32 ; pub const BS_OWNERDRAW : i32 = 11i32 ; pub const BS_PUSHBOX : i32 = 10i32 ; pub const BS_PUSHBUTTON : i32 = 0i32 ; pub const BS_PUSHLIKE : i32 = 4096i32 ; pub const BS_RADIOBUTTON : i32 = 4i32 ; pub const BS_RIGHT : i32 = 512i32 ; pub const BS_TEXT : i32 = 0i32 ; pub const BS_TOP : i32 = 1024i32 ; pub const BS_TYPEMASK : i32 = 15i32 ; pub const BS_USERBUTTON : i32 = 8i32 ; pub const BS_VCENTER : i32 = 3072i32 ; pub unsafe fn BeginDeferWindowPos < > ( nnumwindows : i32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BeginDeferWindowPos ( nnumwindows : i32 ) -> isize ; } BeginDeferWindowPos ( :: std :: mem :: transmute ( nnumwindows ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BringWindowToTop < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BringWindowToTop ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } BringWindowToTop ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageA < 'a , > ( flags : u32 , lpinfo : * mut u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageA ( flags : u32 , lpinfo : * mut u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } BroadcastSystemMessageA ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageExA < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , pbsminfo : * mut BSMINFO , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageExA ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , pbsminfo : * mut BSMINFO ) -> i32 ; } BroadcastSystemMessageExA ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pbsminfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageExW < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , pbsminfo : * mut BSMINFO , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageExW ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , pbsminfo : * mut BSMINFO ) -> i32 ; } BroadcastSystemMessageExW ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pbsminfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageW < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageW ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } BroadcastSystemMessageW ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const CALERT_SYSTEM : u32 = 6u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CASCADE_WINDOWS_HOW ( pub u32 ) ; pub const MDITILE_SKIPDISABLED : CASCADE_WINDOWS_HOW = CASCADE_WINDOWS_HOW ( 2u32 ) ; pub const MDITILE_ZORDER : CASCADE_WINDOWS_HOW = CASCADE_WINDOWS_HOW ( 4u32 ) ; impl :: std :: convert :: From < u32 > for CASCADE_WINDOWS_HOW { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CASCADE_WINDOWS_HOW { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CASCADE_WINDOWS_HOW { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CASCADE_WINDOWS_HOW { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CASCADE_WINDOWS_HOW { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CASCADE_WINDOWS_HOW { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CBN_CLOSEUP : u32 = 8u32 ; pub const CBN_DBLCLK : u32 = 2u32 ; pub const CBN_DROPDOWN : u32 = 7u32 ; pub const CBN_EDITCHANGE : u32 = 5u32 ; pub const CBN_EDITUPDATE : u32 = 6u32 ; pub const CBN_ERRSPACE : i32 = -1i32 ; pub const CBN_KILLFOCUS : u32 = 4u32 ; pub const CBN_SELCHANGE : u32 = 1u32 ; pub const CBN_SELENDCANCEL : u32 = 10u32 ; pub const CBN_SELENDOK : u32 = 9u32 ; pub const CBN_SETFOCUS : u32 = 3u32 ; pub const CBS_AUTOHSCROLL : i32 = 64i32 ; pub const CBS_DISABLENOSCROLL : i32 = 2048i32 ; pub const CBS_DROPDOWN : i32 = 2i32 ; pub const CBS_DROPDOWNLIST : i32 = 3i32 ; pub const CBS_HASSTRINGS : i32 = 512i32 ; pub const CBS_LOWERCASE : i32 = 16384i32 ; pub const CBS_NOINTEGRALHEIGHT : i32 = 1024i32 ; pub const CBS_OEMCONVERT : i32 = 128i32 ; pub const CBS_OWNERDRAWFIXED : i32 = 16i32 ; pub const CBS_OWNERDRAWVARIABLE : i32 = 32i32 ; pub const CBS_SIMPLE : i32 = 1i32 ; pub const CBS_SORT : i32 = 256i32 ; pub const CBS_UPPERCASE : i32 = 8192i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBTACTIVATESTRUCT { pub fMouse : super::super::Foundation:: BOOL , pub hWndActive : super::super::Foundation:: HWND } impl CBTACTIVATESTRUCT { } impl :: std :: default :: Default for CBTACTIVATESTRUCT { fn default ( ) -> Self { Self { fMouse : :: std :: default :: Default :: default ( ) , hWndActive : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBTACTIVATESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBTACTIVATESTRUCT" ) . field ( "fMouse" , & self . fMouse ) . field ( "hWndActive" , & self . hWndActive ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBTACTIVATESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . fMouse == other . fMouse && self . hWndActive == other . hWndActive } } impl :: std :: cmp :: Eq for CBTACTIVATESTRUCT { } unsafe impl :: windows :: Abi for CBTACTIVATESTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBT_CREATEWNDA { pub lpcs : * mut CREATESTRUCTA , pub hwndInsertAfter : super::super::Foundation:: HWND } impl CBT_CREATEWNDA { } impl :: std :: default :: Default for CBT_CREATEWNDA { fn default ( ) -> Self { Self { lpcs : :: std :: ptr :: null_mut ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBT_CREATEWNDA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBT_CREATEWNDA" ) . field ( "lpcs" , & self . lpcs ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBT_CREATEWNDA { fn eq ( & self , other : & Self ) -> bool { self . lpcs == other . lpcs && self . hwndInsertAfter == other . hwndInsertAfter } } impl :: std :: cmp :: Eq for CBT_CREATEWNDA { } unsafe impl :: windows :: Abi for CBT_CREATEWNDA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBT_CREATEWNDW { pub lpcs : * mut CREATESTRUCTW , pub hwndInsertAfter : super::super::Foundation:: HWND } impl CBT_CREATEWNDW { } impl :: std :: default :: Default for CBT_CREATEWNDW { fn default ( ) -> Self { Self { lpcs : :: std :: ptr :: null_mut ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBT_CREATEWNDW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBT_CREATEWNDW" ) . field ( "lpcs" , & self . lpcs ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBT_CREATEWNDW { fn eq ( & self , other : & Self ) -> bool { self . lpcs == other . lpcs && self . hwndInsertAfter == other . hwndInsertAfter } } impl :: std :: cmp :: Eq for CBT_CREATEWNDW { } unsafe impl :: windows :: Abi for CBT_CREATEWNDW { type Abi = Self ; type DefaultType = Self ; } pub const CB_ADDSTRING : u32 = 323u32 ; pub const CB_DELETESTRING : u32 = 324u32 ; pub const CB_DIR : u32 = 325u32 ; pub const CB_ERR : i32 = -1i32 ; pub const CB_ERRSPACE : i32 = -2i32 ; pub const CB_FINDSTRING : u32 = 332u32 ; pub const CB_FINDSTRINGEXACT : u32 = 344u32 ; pub const CB_GETCOMBOBOXINFO : u32 = 356u32 ; pub const CB_GETCOUNT : u32 = 326u32 ; pub const CB_GETCURSEL : u32 = 327u32 ; pub const CB_GETDROPPEDCONTROLRECT : u32 = 338u32 ; pub const CB_GETDROPPEDSTATE : u32 = 343u32 ; pub const CB_GETDROPPEDWIDTH : u32 = 351u32 ; pub const CB_GETEDITSEL : u32 = 320u32 ; pub const CB_GETEXTENDEDUI : u32 = 342u32 ; pub const CB_GETHORIZONTALEXTENT : u32 = 349u32 ; pub const CB_GETITEMDATA : u32 = 336u32 ; pub const CB_GETITEMHEIGHT : u32 = 340u32 ; pub const CB_GETLBTEXT : u32 = 328u32 ; pub const CB_GETLBTEXTLEN : u32 = 329u32 ; pub const CB_GETLOCALE : u32 = 346u32 ; pub const CB_GETTOPINDEX : u32 = 347u32 ; pub const CB_INITSTORAGE : u32 = 353u32 ; pub const CB_INSERTSTRING : u32 = 330u32 ; pub const CB_LIMITTEXT : u32 = 321u32 ; pub const CB_MSGMAX : u32 = 357u32 ; pub const CB_MULTIPLEADDSTRING : u32 = 355u32 ; pub const CB_OKAY : u32 = 0u32 ; pub const CB_RESETCONTENT : u32 = 331u32 ; pub const CB_SELECTSTRING : u32 = 333u32 ; pub const CB_SETCURSEL : u32 = 334u32 ; pub const CB_SETDROPPEDWIDTH : u32 = 352u32 ; pub const CB_SETEDITSEL : u32 = 322u32 ; pub const CB_SETEXTENDEDUI : u32 = 341u32 ; pub const CB_SETHORIZONTALEXTENT : u32 = 350u32 ; pub const CB_SETITEMDATA : u32 = 337u32 ; pub const CB_SETITEMHEIGHT : u32 = 339u32 ; pub const CB_SETLOCALE : u32 = 345u32 ; pub const CB_SETTOPINDEX : u32 = 348u32 ; pub const CB_SHOWDROPDOWN : u32 = 335u32 ; pub const CCHILDREN_SCROLLBAR : u32 = 5u32 ; pub const CCHILDREN_TITLEBAR : u32 = 5u32 ; pub const CDM_FIRST : u32 = 1124u32 ; pub const CDM_GETFILEPATH : u32 = 1125u32 ; pub const CDM_GETFOLDERIDLIST : u32 = 1127u32 ; pub const CDM_GETFOLDERPATH : u32 = 1126u32 ; pub const CDM_GETSPEC : u32 = 1124u32 ; pub const CDM_HIDECONTROL : u32 = 1129u32 ; pub const CDM_LAST : u32 = 1224u32 ; pub const CDM_SETCONTROLTEXT : u32 = 1128u32 ; pub const CDM_SETDEFEXT : u32 = 1130u32 ; pub const CD_LBSELADD : u32 = 2u32 ; pub const CD_LBSELCHANGE : u32 = 0u32 ; pub const CD_LBSELNOITEMS : i32 = -1i32 ; pub const CD_LBSELSUB : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CHANGEFILTERSTRUCT { pub cbSize : u32 , pub ExtStatus : MSGFLTINFO_STATUS } impl CHANGEFILTERSTRUCT { } impl :: std :: default :: Default for CHANGEFILTERSTRUCT { fn default ( ) -> Self { Self { cbSize : 0 , ExtStatus : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHANGEFILTERSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHANGEFILTERSTRUCT" ) . field ( "cbSize" , & self . cbSize ) . field ( "ExtStatus" , & self . ExtStatus ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHANGEFILTERSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . ExtStatus == other . ExtStatus } } impl :: std :: cmp :: Eq for CHANGEFILTERSTRUCT { } unsafe impl :: windows :: Abi for CHANGEFILTERSTRUCT { 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 CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( pub u32 ) ; pub const MSGFLT_ADD : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( 1u32 ) ; pub const MSGFLT_REMOVE : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CHILDID_SELF : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSECOLORA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCCHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl CHOOSECOLORA { } impl :: std :: default :: Default for CHOOSECOLORA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , rgbResult : 0 , lpCustColors : :: std :: ptr :: null_mut ( ) , Flags : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHOOSECOLORA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSECOLORA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "rgbResult" , & self . rgbResult ) . field ( "lpCustColors" , & self . lpCustColors ) . field ( "Flags" , & self . Flags ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSECOLORA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . rgbResult == other . rgbResult && self . lpCustColors == other . lpCustColors && self . Flags == other . Flags && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for CHOOSECOLORA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSECOLORA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for CHOOSECOLORA { type Abi = CHOOSECOLORA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSECOLORW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCCHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl CHOOSECOLORW { } impl :: std :: default :: Default for CHOOSECOLORW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , rgbResult : 0 , lpCustColors : :: std :: ptr :: null_mut ( ) , Flags : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHOOSECOLORW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSECOLORW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "rgbResult" , & self . rgbResult ) . field ( "lpCustColors" , & self . lpCustColors ) . field ( "Flags" , & self . Flags ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSECOLORW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . rgbResult == other . rgbResult && self . lpCustColors == other . lpCustColors && self . Flags == other . Flags && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for CHOOSECOLORW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSECOLORW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for CHOOSECOLORW { type Abi = CHOOSECOLORW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSEFONTA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTA , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCFHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } impl CHOOSEFONTA { } impl :: std :: default :: Default for CHOOSEFONTA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDC : :: std :: default :: Default :: default ( ) , lpLogFont : :: std :: ptr :: null_mut ( ) , iPointSize : 0 , Flags : :: std :: default :: Default :: default ( ) , rgbColors : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszStyle : :: std :: default :: Default :: default ( ) , nFontType : :: std :: default :: Default :: default ( ) , ___MISSING_ALIGNMENT__ : 0 , nSizeMin : 0 , nSizeMax : 0 } } } impl :: std :: fmt :: Debug for CHOOSEFONTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSEFONTA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDC" , & self . hDC ) . field ( "lpLogFont" , & self . lpLogFont ) . field ( "iPointSize" , & self . iPointSize ) . field ( "Flags" , & self . Flags ) . field ( "rgbColors" , & self . rgbColors ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszStyle" , & self . lpszStyle ) . field ( "nFontType" , & self . nFontType ) . field ( "___MISSING_ALIGNMENT__" , & self . ___MISSING_ALIGNMENT__ ) . field ( "nSizeMin" , & self . nSizeMin ) . field ( "nSizeMax" , & self . nSizeMax ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSEFONTA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDC == other . hDC && self . lpLogFont == other . lpLogFont && self . iPointSize == other . iPointSize && self . Flags == other . Flags && self . rgbColors == other . rgbColors && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . hInstance == other . hInstance && self . lpszStyle == other . lpszStyle && self . nFontType == other . nFontType && self . ___MISSING_ALIGNMENT__ == other . ___MISSING_ALIGNMENT__ && self . nSizeMin == other . nSizeMin && self . nSizeMax == other . nSizeMax } } impl :: std :: cmp :: Eq for CHOOSEFONTA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSEFONTA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTA , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } unsafe impl :: windows :: Abi for CHOOSEFONTA { type Abi = CHOOSEFONTA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSEFONTW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTW , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCFHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PWSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } impl CHOOSEFONTW { } impl :: std :: default :: Default for CHOOSEFONTW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDC : :: std :: default :: Default :: default ( ) , lpLogFont : :: std :: ptr :: null_mut ( ) , iPointSize : 0 , Flags : :: std :: default :: Default :: default ( ) , rgbColors : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszStyle : :: std :: default :: Default :: default ( ) , nFontType : :: std :: default :: Default :: default ( ) , ___MISSING_ALIGNMENT__ : 0 , nSizeMin : 0 , nSizeMax : 0 } } } impl :: std :: fmt :: Debug for CHOOSEFONTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSEFONTW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDC" , & self . hDC ) . field ( "lpLogFont" , & self . lpLogFont ) . field ( "iPointSize" , & self . iPointSize ) . field ( "Flags" , & self . Flags ) . field ( "rgbColors" , & self . rgbColors ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszStyle" , & self . lpszStyle ) . field ( "nFontType" , & self . nFontType ) . field ( "___MISSING_ALIGNMENT__" , & self . ___MISSING_ALIGNMENT__ ) . field ( "nSizeMin" , & self . nSizeMin ) . field ( "nSizeMax" , & self . nSizeMax ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSEFONTW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDC == other . hDC && self . lpLogFont == other . lpLogFont && self . iPointSize == other . iPointSize && self . Flags == other . Flags && self . rgbColors == other . rgbColors && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . hInstance == other . hInstance && self . lpszStyle == other . lpszStyle && self . nFontType == other . nFontType && self . ___MISSING_ALIGNMENT__ == other . ___MISSING_ALIGNMENT__ && self . nSizeMin == other . nSizeMin && self . nSizeMax == other . nSizeMax } } impl :: std :: cmp :: Eq for CHOOSEFONTW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSEFONTW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTW , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PWSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } unsafe impl :: windows :: Abi for CHOOSEFONTW { type Abi = CHOOSEFONTW_abi ; 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 CHOOSEFONT_FLAGS ( pub u32 ) ; pub const CF_APPLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 512u32 ) ; pub const CF_ANSIONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1024u32 ) ; pub const CF_BOTH : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 3u32 ) ; pub const CF_EFFECTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 256u32 ) ; pub const CF_ENABLEHOOK : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8u32 ) ; pub const CF_ENABLETEMPLATE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16u32 ) ; pub const CF_ENABLETEMPLATEHANDLE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 32u32 ) ; pub const CF_FIXEDPITCHONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16384u32 ) ; pub const CF_FORCEFONTEXIST : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 65536u32 ) ; pub const CF_INACTIVEFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 33554432u32 ) ; pub const CF_INITTOLOGFONTSTRUCT : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 64u32 ) ; pub const CF_LIMITSIZE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8192u32 ) ; pub const CF_NOOEMFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2048u32 ) ; pub const CF_NOFACESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 524288u32 ) ; pub const CF_NOSCRIPTSEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8388608u32 ) ; pub const CF_NOSIMULATIONS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4096u32 ) ; pub const CF_NOSIZESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2097152u32 ) ; pub const CF_NOSTYLESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1048576u32 ) ; pub const CF_NOVECTORFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2048u32 ) ; pub const CF_NOVERTFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16777216u32 ) ; pub const CF_PRINTERFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2u32 ) ; pub const CF_SCALABLEONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 131072u32 ) ; pub const CF_SCREENFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1u32 ) ; pub const CF_SCRIPTSONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1024u32 ) ; pub const CF_SELECTSCRIPT : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4194304u32 ) ; pub const CF_SHOWHELP : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4u32 ) ; pub const CF_TTONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 262144u32 ) ; pub const CF_USESTYLE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 128u32 ) ; pub const CF_WYSIWYG : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 32768u32 ) ; impl :: std :: convert :: From < u32 > for CHOOSEFONT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHOOSEFONT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHOOSEFONT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHOOSEFONT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHOOSEFONT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHOOSEFONT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CHOOSEFONT_FONT_TYPE ( pub u32 ) ; pub const BOLD_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 256u32 ) ; pub const ITALIC_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 512u32 ) ; pub const PRINTER_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 16384u32 ) ; pub const REGULAR_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 1024u32 ) ; pub const SCREEN_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 8192u32 ) ; pub const SIMULATED_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 32768u32 ) ; impl :: std :: convert :: From < u32 > for CHOOSEFONT_FONT_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHOOSEFONT_FONT_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHOOSEFONT_FONT_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHOOSEFONT_FONT_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHOOSEFONT_FONT_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHOOSEFONT_FONT_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CLIENTCREATESTRUCT { pub hWindowMenu : super::super::Foundation:: HANDLE , pub idFirstChild : u32 } impl CLIENTCREATESTRUCT { } impl :: std :: default :: Default for CLIENTCREATESTRUCT { fn default ( ) -> Self { Self { hWindowMenu : :: std :: default :: Default :: default ( ) , idFirstChild : 0 } } } impl :: std :: fmt :: Debug for CLIENTCREATESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CLIENTCREATESTRUCT" ) . field ( "hWindowMenu" , & self . hWindowMenu ) . field ( "idFirstChild" , & self . idFirstChild ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CLIENTCREATESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hWindowMenu == other . hWindowMenu && self . idFirstChild == other . idFirstChild } } impl :: std :: cmp :: Eq for CLIENTCREATESTRUCT { } unsafe impl :: windows :: Abi for CLIENTCREATESTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const COLOR_BTNHIGHLIGHT : u32 = 20u32 ; pub const CONSOLE_APPLICATION_16BIT : u32 = 0u32 ; pub const CONSOLE_CARET_SELECTION : u32 = 1u32 ; pub const CONSOLE_CARET_VISIBLE : u32 = 2u32 ; pub const CONTACTVISUALIZATION_OFF : u32 = 0u32 ; pub const CONTACTVISUALIZATION_ON : u32 = 1u32 ; pub const CONTACTVISUALIZATION_PRESENTATIONMODE : u32 = 2u32 ; pub const CREATEPROCESS_MANIFEST_RESOURCE_ID : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CREATESTRUCTA { pub lpCreateParams : * mut :: std :: ffi :: c_void , pub hInstance : super::super::Foundation:: HINSTANCE , pub hMenu : HMENU , pub hwndParent : super::super::Foundation:: HWND , pub cy : i32 , pub cx : i32 , pub y : i32 , pub x : i32 , pub style : i32 , pub lpszName : super::super::Foundation:: PSTR , pub lpszClass : super::super::Foundation:: PSTR , pub dwExStyle : u32 } impl CREATESTRUCTA { } impl :: std :: default :: Default for CREATESTRUCTA { fn default ( ) -> Self { Self { lpCreateParams : :: std :: ptr :: null_mut ( ) , hInstance : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndParent : :: std :: default :: Default :: default ( ) , cy : 0 , cx : 0 , y : 0 , x : 0 , style : 0 , lpszName : :: std :: default :: Default :: default ( ) , lpszClass : :: std :: default :: Default :: default ( ) , dwExStyle : 0 } } } impl :: std :: fmt :: Debug for CREATESTRUCTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CREATESTRUCTA" ) . field ( "lpCreateParams" , & self . lpCreateParams ) . field ( "hInstance" , & self . hInstance ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndParent" , & self . hwndParent ) . field ( "cy" , & self . cy ) . field ( "cx" , & self . cx ) . field ( "y" , & self . y ) . field ( "x" , & self . x ) . field ( "style" , & self . style ) . field ( "lpszName" , & self . lpszName ) . field ( "lpszClass" , & self . lpszClass ) . field ( "dwExStyle" , & self . dwExStyle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CREATESTRUCTA { fn eq ( & self , other : & Self ) -> bool { self . lpCreateParams == other . lpCreateParams && self . hInstance == other . hInstance && self . hMenu == other . hMenu && self . hwndParent == other . hwndParent && self . cy == other . cy && self . cx == other . cx && self . y == other . y && self . x == other . x && self . style == other . style && self . lpszName == other . lpszName && self . lpszClass == other . lpszClass && self . dwExStyle == other . dwExStyle } } impl :: std :: cmp :: Eq for CREATESTRUCTA { } unsafe impl :: windows :: Abi for CREATESTRUCTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CREATESTRUCTW { pub lpCreateParams : * mut :: std :: ffi :: c_void , pub hInstance : super::super::Foundation:: HINSTANCE , pub hMenu : HMENU , pub hwndParent : super::super::Foundation:: HWND , pub cy : i32 , pub cx : i32 , pub y : i32 , pub x : i32 , pub style : i32 , pub lpszName : super::super::Foundation:: PWSTR , pub lpszClass : super::super::Foundation:: PWSTR , pub dwExStyle : u32 } impl CREATESTRUCTW { } impl :: std :: default :: Default for CREATESTRUCTW { fn default ( ) -> Self { Self { lpCreateParams : :: std :: ptr :: null_mut ( ) , hInstance : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndParent : :: std :: default :: Default :: default ( ) , cy : 0 , cx : 0 , y : 0 , x : 0 , style : 0 , lpszName : :: std :: default :: Default :: default ( ) , lpszClass : :: std :: default :: Default :: default ( ) , dwExStyle : 0 } } } impl :: std :: fmt :: Debug for CREATESTRUCTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CREATESTRUCTW" ) . field ( "lpCreateParams" , & self . lpCreateParams ) . field ( "hInstance" , & self . hInstance ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndParent" , & self . hwndParent ) . field ( "cy" , & self . cy ) . field ( "cx" , & self . cx ) . field ( "y" , & self . y ) . field ( "x" , & self . x ) . field ( "style" , & self . style ) . field ( "lpszName" , & self . lpszName ) . field ( "lpszClass" , & self . lpszClass ) . field ( "dwExStyle" , & self . dwExStyle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CREATESTRUCTW { fn eq ( & self , other : & Self ) -> bool { self . lpCreateParams == other . lpCreateParams && self . hInstance == other . hInstance && self . hMenu == other . hMenu && self . hwndParent == other . hwndParent && self . cy == other . cy && self . cx == other . cx && self . y == other . y && self . x == other . x && self . style == other . style && self . lpszName == other . lpszName && self . lpszClass == other . lpszClass && self . dwExStyle == other . dwExStyle } } impl :: std :: cmp :: Eq for CREATESTRUCTW { } unsafe impl :: windows :: Abi for CREATESTRUCTW { type Abi = Self ; type DefaultType = Self ; } pub const CSOUND_SYSTEM : u32 = 16u32 ; pub const CTLCOLOR_BTN : u32 = 3u32 ; pub const CTLCOLOR_DLG : u32 = 4u32 ; pub const CTLCOLOR_EDIT : u32 = 1u32 ; pub const CTLCOLOR_LISTBOX : u32 = 2u32 ; pub const CTLCOLOR_MAX : u32 = 7u32 ; pub const CTLCOLOR_MSGBOX : u32 = 0u32 ; pub const CTLCOLOR_SCROLLBAR : u32 = 5u32 ; pub const CTLCOLOR_STATIC : u32 = 6u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CURSORINFO { pub cbSize : u32 , pub flags : CURSORINFO_FLAGS , pub hCursor : HCURSOR , pub ptScreenPos : super::super::Foundation:: POINT } impl CURSORINFO { } impl :: std :: default :: Default for CURSORINFO { fn default ( ) -> Self { Self { cbSize : 0 , flags : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , ptScreenPos : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CURSORINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CURSORINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "flags" , & self . flags ) . field ( "hCursor" , & self . hCursor ) . field ( "ptScreenPos" , & self . ptScreenPos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CURSORINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . flags == other . flags && self . hCursor == other . hCursor && self . ptScreenPos == other . ptScreenPos } } impl :: std :: cmp :: Eq for CURSORINFO { } unsafe impl :: windows :: Abi for CURSORINFO { 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 CURSORINFO_FLAGS ( pub u32 ) ; pub const CURSOR_SHOWING : CURSORINFO_FLAGS = CURSORINFO_FLAGS ( 1u32 ) ; pub const CURSOR_SUPPRESSED : CURSORINFO_FLAGS = CURSORINFO_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for CURSORINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CURSORINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CURSORINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CURSORINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CURSORINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CURSORINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CURSORSHAPE { pub xHotSpot : i32 , pub yHotSpot : i32 , pub cx : i32 , pub cy : i32 , pub cbWidth : i32 , pub Planes : u8 , pub BitsPixel : u8 } impl CURSORSHAPE { } impl :: std :: default :: Default for CURSORSHAPE { fn default ( ) -> Self { Self { xHotSpot : 0 , yHotSpot : 0 , cx : 0 , cy : 0 , cbWidth : 0 , Planes : 0 , BitsPixel : 0 } } } impl :: std :: fmt :: Debug for CURSORSHAPE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CURSORSHAPE" ) . field ( "xHotSpot" , & self . xHotSpot ) . field ( "yHotSpot" , & self . yHotSpot ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "cbWidth" , & self . cbWidth ) . field ( "Planes" , & self . Planes ) . field ( "BitsPixel" , & self . BitsPixel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CURSORSHAPE { fn eq ( & self , other : & Self ) -> bool { self . xHotSpot == other . xHotSpot && self . yHotSpot == other . yHotSpot && self . cx == other . cx && self . cy == other . cy && self . cbWidth == other . cbWidth && self . Planes == other . Planes && self . BitsPixel == other . BitsPixel } } impl :: std :: cmp :: Eq for CURSORSHAPE { } unsafe impl :: windows :: Abi for CURSORSHAPE { type Abi = Self ; type DefaultType = Self ; } pub const CWF_CREATE_ONLY : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CWPRETSTRUCT { pub lResult : super::super::Foundation:: LRESULT , pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub message : u32 , pub hwnd : super::super::Foundation:: HWND } impl CWPRETSTRUCT { } impl :: std :: default :: Default for CWPRETSTRUCT { fn default ( ) -> Self { Self { lResult : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , message : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CWPRETSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CWPRETSTRUCT" ) . field ( "lResult" , & self . lResult ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "message" , & self . message ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CWPRETSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . lResult == other . lResult && self . lParam == other . lParam && self . wParam == other . wParam && self . message == other . message && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for CWPRETSTRUCT { } unsafe impl :: windows :: Abi for CWPRETSTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CWPSTRUCT { pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub message : u32 , pub hwnd : super::super::Foundation:: HWND } impl CWPSTRUCT { } impl :: std :: default :: Default for CWPSTRUCT { fn default ( ) -> Self { Self { lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , message : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CWPSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CWPSTRUCT" ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "message" , & self . message ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CWPSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . lParam == other . lParam && self . wParam == other . wParam && self . message == other . message && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for CWPSTRUCT { } unsafe impl :: windows :: Abi for CWPSTRUCT { 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 CWP_FLAGS ( pub u32 ) ; pub const CWP_ALL : CWP_FLAGS = CWP_FLAGS ( 0u32 ) ; pub const CWP_SKIPINVISIBLE : CWP_FLAGS = CWP_FLAGS ( 1u32 ) ; pub const CWP_SKIPDISABLED : CWP_FLAGS = CWP_FLAGS ( 2u32 ) ; pub const CWP_SKIPTRANSPARENT : CWP_FLAGS = CWP_FLAGS ( 4u32 ) ; impl :: std :: convert :: From < u32 > for CWP_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CWP_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CWP_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CWP_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CWP_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CWP_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CW_USEDEFAULT : i32 = -2147483648i32 ; pub unsafe fn CalculatePopupWindowPosition < > ( anchorpoint : * const super::super::Foundation:: POINT , windowsize : * const super::super::Foundation:: SIZE , flags : u32 , excluderect : * mut super::super::Foundation:: RECT , popupwindowposition : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CalculatePopupWindowPosition ( anchorpoint : * const super::super::Foundation:: POINT , windowsize : * const super::super::Foundation:: SIZE , flags : u32 , excluderect : * mut super::super::Foundation:: RECT , popupwindowposition : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } CalculatePopupWindowPosition ( :: std :: mem :: transmute ( anchorpoint ) , :: std :: mem :: transmute ( windowsize ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( excluderect ) , :: std :: mem :: transmute ( popupwindowposition ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallMsgFilterA < > ( lpmsg : * mut MSG , ncode : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallMsgFilterA ( lpmsg : * mut MSG , ncode : i32 ) -> super::super::Foundation:: BOOL ; } CallMsgFilterA ( :: std :: mem :: transmute ( lpmsg ) , :: std :: mem :: transmute ( ncode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallMsgFilterW < > ( lpmsg : * mut MSG , ncode : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallMsgFilterW ( lpmsg : * mut MSG , ncode : i32 ) -> super::super::Foundation:: BOOL ; } CallMsgFilterW ( :: std :: mem :: transmute ( lpmsg ) , :: std :: mem :: transmute ( ncode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallNextHookEx < 'a , > ( hhk : impl :: windows :: IntoParam < 'a , HHOOK > , ncode : i32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallNextHookEx ( hhk : HHOOK , ncode : i32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallNextHookEx ( hhk . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncode ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallWindowProcA < 'a , > ( lpprevwndfunc : :: std :: option :: Option < WNDPROC > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallWindowProcA ( lpprevwndfunc : :: windows :: RawPtr , hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallWindowProcA ( :: std :: mem :: transmute ( lpprevwndfunc ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallWindowProcW < 'a , > ( lpprevwndfunc : :: std :: option :: Option < WNDPROC > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallWindowProcW ( lpprevwndfunc : :: windows :: RawPtr , hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallWindowProcW ( :: std :: mem :: transmute ( lpprevwndfunc ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CancelShutdown < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CancelShutdown ( ) -> super::super::Foundation:: BOOL ; } CancelShutdown ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CascadeWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , whow : CASCADE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CascadeWindows ( hwndparent : super::super::Foundation:: HWND , whow : CASCADE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND ) -> u16 ; } CascadeWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( whow ) , :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( ckids ) , :: std :: mem :: transmute ( lpkids ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , cmd : u32 , lpsznewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cmdinsert : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeMenuA ( hmenu : HMENU , cmd : u32 , lpsznewitem : super::super::Foundation:: PSTR , cmdinsert : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } ChangeMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmd ) , lpsznewitem . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmdinsert ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , cmd : u32 , lpsznewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cmdinsert : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeMenuW ( hmenu : HMENU , cmd : u32 , lpsznewitem : super::super::Foundation:: PWSTR , cmdinsert : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } ChangeMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmd ) , lpsznewitem . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmdinsert ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeWindowMessageFilter < > ( message : u32 , dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeWindowMessageFilter ( message : u32 , dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ) -> super::super::Foundation:: BOOL ; } ChangeWindowMessageFilter ( :: std :: mem :: transmute ( message ) , :: std :: mem :: transmute ( dwflag ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeWindowMessageFilterEx < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , message : u32 , action : WINDOW_MESSAGE_FILTER_ACTION , pchangefilterstruct : * mut CHANGEFILTERSTRUCT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeWindowMessageFilterEx ( hwnd : super::super::Foundation:: HWND , message : u32 , action : WINDOW_MESSAGE_FILTER_ACTION , pchangefilterstruct : * mut CHANGEFILTERSTRUCT ) -> super::super::Foundation:: BOOL ; } ChangeWindowMessageFilterEx ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( message ) , :: std :: mem :: transmute ( action ) , :: std :: mem :: transmute ( pchangefilterstruct ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharLowerA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerBuffA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerBuffA ( lpsz : super::super::Foundation:: PSTR , cchlength : u32 ) -> u32 ; } CharLowerBuffA ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerBuffW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerBuffW ( lpsz : super::super::Foundation:: PWSTR , cchlength : u32 ) -> u32 ; } CharLowerBuffW ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharLowerW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharNextA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextExA < 'a , > ( codepage : u16 , lpcurrentchar : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwflags : u32 , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextExA ( codepage : u16 , lpcurrentchar : super::super::Foundation:: PSTR , dwflags : u32 ) -> super::super::Foundation:: PSTR ; } CharNextExA ( :: std :: mem :: transmute ( codepage ) , lpcurrentchar . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharNextW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevA < 'a , > ( lpszstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszcurrent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevA ( lpszstart : super::super::Foundation:: PSTR , lpszcurrent : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharPrevA ( lpszstart . into_param ( ) . abi ( ) , lpszcurrent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevExA < 'a , > ( codepage : u16 , lpstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcurrentchar : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwflags : u32 , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevExA ( codepage : u16 , lpstart : super::super::Foundation:: PSTR , lpcurrentchar : super::super::Foundation:: PSTR , dwflags : u32 ) -> super::super::Foundation:: PSTR ; } CharPrevExA ( :: std :: mem :: transmute ( codepage ) , lpstart . into_param ( ) . abi ( ) , lpcurrentchar . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevW < 'a , > ( lpszstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszcurrent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevW ( lpszstart : super::super::Foundation:: PWSTR , lpszcurrent : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharPrevW ( lpszstart . into_param ( ) . abi ( ) , lpszcurrent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemA < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemA ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } CharToOemA ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemBuffA < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemBuffA ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } CharToOemBuffA ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemBuffW < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemBuffW ( lpszsrc : super::super::Foundation:: PWSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } CharToOemBuffW ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemW < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemW ( psrc : super::super::Foundation:: PWSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } CharToOemW ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharUpperA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperBuffA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperBuffA ( lpsz : super::super::Foundation:: PSTR , cchlength : u32 ) -> u32 ; } CharUpperBuffA ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperBuffW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperBuffW ( lpsz : super::super::Foundation:: PWSTR , cchlength : u32 ) -> u32 ; } CharUpperBuffW ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharUpperW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CheckMenuItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidcheckitem : u32 , ucheck : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CheckMenuItem ( hmenu : HMENU , uidcheckitem : u32 , ucheck : u32 ) -> u32 ; } CheckMenuItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidcheckitem ) , :: std :: mem :: transmute ( ucheck ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CheckMenuRadioItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , first : u32 , last : u32 , check : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CheckMenuRadioItem ( hmenu : HMENU , first : u32 , last : u32 , check : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } CheckMenuRadioItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( first ) , :: std :: mem :: transmute ( last ) , :: std :: mem :: transmute ( check ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChildWindowFromPoint < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChildWindowFromPoint ( hwndparent : super::super::Foundation:: HWND , point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } ChildWindowFromPoint ( hwndparent . into_param ( ) . abi ( ) , point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChildWindowFromPointEx < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pt : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , flags : CWP_FLAGS , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChildWindowFromPointEx ( hwnd : super::super::Foundation:: HWND , pt : super::super::Foundation:: POINT , flags : CWP_FLAGS ) -> super::super::Foundation:: HWND ; } ChildWindowFromPointEx ( hwnd . into_param ( ) . abi ( ) , pt . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseColorA < > ( param0 : * mut CHOOSECOLORA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseColorA ( param0 : * mut CHOOSECOLORA_abi ) -> super::super::Foundation:: BOOL ; } ChooseColorA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseColorW < > ( param0 : * mut CHOOSECOLORW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseColorW ( param0 : * mut CHOOSECOLORW_abi ) -> super::super::Foundation:: BOOL ; } ChooseColorW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseFontA < > ( param0 : * mut CHOOSEFONTA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseFontA ( param0 : * mut CHOOSEFONTA_abi ) -> super::super::Foundation:: BOOL ; } ChooseFontA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseFontW < > ( param0 : * mut CHOOSEFONTW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseFontW ( param0 : * mut CHOOSEFONTW_abi ) -> super::super::Foundation:: BOOL ; } ChooseFontW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ClipCursor < > ( lprect : * const super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ClipCursor ( lprect : * const super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } ClipCursor ( :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CloseWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CloseWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } CloseWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CommDlgExtendedError < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn CommDlgExtendedError ( ) -> u32 ; } CommDlgExtendedError ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyAcceleratorTableA < 'a , > ( haccelsrc : impl :: windows :: IntoParam < 'a , HACCEL > , lpacceldst : * mut ACCEL , caccelentries : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyAcceleratorTableA ( haccelsrc : HACCEL , lpacceldst : * mut ACCEL , caccelentries : i32 ) -> i32 ; } CopyAcceleratorTableA ( haccelsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpacceldst ) , :: std :: mem :: transmute ( caccelentries ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyAcceleratorTableW < 'a , > ( haccelsrc : impl :: windows :: IntoParam < 'a , HACCEL > , lpacceldst : * mut ACCEL , caccelentries : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyAcceleratorTableW ( haccelsrc : HACCEL , lpacceldst : * mut ACCEL , caccelentries : i32 ) -> i32 ; } CopyAcceleratorTableW ( haccelsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpacceldst ) , :: std :: mem :: transmute ( caccelentries ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyIcon < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyIcon ( hicon : HICON ) -> HICON ; } CopyIcon ( hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyImage < 'a , > ( h : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyImage ( h : super::super::Foundation:: HANDLE , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } CopyImage ( h . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateAcceleratorTableA < > ( paccel : * mut ACCEL , caccel : i32 , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateAcceleratorTableA ( paccel : * mut ACCEL , caccel : i32 ) -> HACCEL ; } CreateAcceleratorTableA ( :: std :: mem :: transmute ( paccel ) , :: std :: mem :: transmute ( caccel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateAcceleratorTableW < > ( paccel : * mut ACCEL , caccel : i32 , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateAcceleratorTableW ( paccel : * mut ACCEL , caccel : i32 ) -> HACCEL ; } CreateAcceleratorTableW ( :: std :: mem :: transmute ( paccel ) , :: std :: mem :: transmute ( caccel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hbitmap : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , nwidth : i32 , nheight : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateCaret ( hwnd : super::super::Foundation:: HWND , hbitmap : super::super::Graphics::Gdi:: HBITMAP , nwidth : i32 , nheight : i32 ) -> super::super::Foundation:: BOOL ; } CreateCaret ( hwnd . into_param ( ) . abi ( ) , hbitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCursor < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , xhotspot : i32 , yhotspot : i32 , nwidth : i32 , nheight : i32 , pvandplane : * const :: std :: ffi :: c_void , pvxorplane : * const :: std :: ffi :: c_void , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateCursor ( hinst : super::super::Foundation:: HINSTANCE , xhotspot : i32 , yhotspot : i32 , nwidth : i32 , nheight : i32 , pvandplane : * const :: std :: ffi :: c_void , pvxorplane : * const :: std :: ffi :: c_void ) -> HCURSOR ; } CreateCursor ( hinst . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( xhotspot ) , :: std :: mem :: transmute ( yhotspot ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , :: std :: mem :: transmute ( pvandplane ) , :: std :: mem :: transmute ( pvxorplane ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogIndirectParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogIndirectParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogIndirectParamA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogIndirectParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogIndirectParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogIndirectParamW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogParamA ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PWSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogParamW ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIcon < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , nwidth : i32 , nheight : i32 , cplanes : u8 , cbitspixel : u8 , lpbandbits : * const u8 , lpbxorbits : * const u8 , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIcon ( hinstance : super::super::Foundation:: HINSTANCE , nwidth : i32 , nheight : i32 , cplanes : u8 , cbitspixel : u8 , lpbandbits : * const u8 , lpbxorbits : * const u8 ) -> HICON ; } CreateIcon ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , :: std :: mem :: transmute ( cplanes ) , :: std :: mem :: transmute ( cbitspixel ) , :: std :: mem :: transmute ( lpbandbits ) , :: std :: mem :: transmute ( lpbxorbits ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconFromResource < 'a , > ( presbits : * mut u8 , dwressize : u32 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwver : u32 , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconFromResource ( presbits : * mut u8 , dwressize : u32 , ficon : super::super::Foundation:: BOOL , dwver : u32 ) -> HICON ; } CreateIconFromResource ( :: std :: mem :: transmute ( presbits ) , :: std :: mem :: transmute ( dwressize ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwver ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconFromResourceEx < 'a , > ( presbits : * mut u8 , dwressize : u32 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwver : u32 , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconFromResourceEx ( presbits : * mut u8 , dwressize : u32 , ficon : super::super::Foundation:: BOOL , dwver : u32 , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> HICON ; } CreateIconFromResourceEx ( :: std :: mem :: transmute ( presbits ) , :: std :: mem :: transmute ( dwressize ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwver ) , :: std :: mem :: transmute ( cxdesired ) , :: std :: mem :: transmute ( cydesired ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconIndirect < > ( piconinfo : * mut ICONINFO , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconIndirect ( piconinfo : * mut ICONINFO ) -> HICON ; } CreateIconIndirect ( :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMDIWindowA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMDIWindowA ( lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hinstance : super::super::Foundation:: HINSTANCE , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateMDIWindowA ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMDIWindowW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMDIWindowW ( lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hinstance : super::super::Foundation:: HINSTANCE , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateMDIWindowW ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMenu < > ( ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMenu ( ) -> HMENU ; } CreateMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreatePopupMenu < > ( ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreatePopupMenu ( ) -> HMENU ; } CreatePopupMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateResourceIndexer < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , extensiondllpath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ppresourceindexer : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn CreateResourceIndexer ( projectroot : super::super::Foundation:: PWSTR , extensiondllpath : super::super::Foundation:: PWSTR , ppresourceindexer : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } CreateResourceIndexer ( projectroot . into_param ( ) . abi ( ) , extensiondllpath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ppresourceindexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateWindowExA < 'a , > ( dwexstyle : WINDOW_EX_STYLE , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpparam : * mut :: std :: ffi :: c_void , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateWindowExA ( dwexstyle : WINDOW_EX_STYLE , lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hmenu : HMENU , hinstance : super::super::Foundation:: HINSTANCE , lpparam : * mut :: std :: ffi :: c_void ) -> super::super::Foundation:: HWND ; } CreateWindowExA ( :: std :: mem :: transmute ( dwexstyle ) , lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateWindowExW < 'a , > ( dwexstyle : WINDOW_EX_STYLE , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpparam : * mut :: std :: ffi :: c_void , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateWindowExW ( dwexstyle : WINDOW_EX_STYLE , lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hmenu : HMENU , hinstance : super::super::Foundation:: HINSTANCE , lpparam : * mut :: std :: ffi :: c_void ) -> super::super::Foundation:: HWND ; } CreateWindowExW ( :: std :: mem :: transmute ( dwexstyle ) , lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const DCX_EXCLUDEUPDATE : i32 = 256i32 ; pub const DC_HASDEFID : u32 = 21323u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEBUGHOOKINFO { pub idThread : u32 , pub idThreadInstaller : u32 , pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub code : i32 } impl DEBUGHOOKINFO { } impl :: std :: default :: Default for DEBUGHOOKINFO { fn default ( ) -> Self { Self { idThread : 0 , idThreadInstaller : 0 , lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , code : 0 } } } impl :: std :: fmt :: Debug for DEBUGHOOKINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DEBUGHOOKINFO" ) . field ( "idThread" , & self . idThread ) . field ( "idThreadInstaller" , & self . idThreadInstaller ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "code" , & self . code ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEBUGHOOKINFO { fn eq ( & self , other : & Self ) -> bool { self . idThread == other . idThread && self . idThreadInstaller == other . idThreadInstaller && self . lParam == other . lParam && self . wParam == other . wParam && self . code == other . code } } impl :: std :: cmp :: Eq for DEBUGHOOKINFO { } unsafe impl :: windows :: Abi for DEBUGHOOKINFO { type Abi = Self ; type DefaultType = Self ; } pub type DESKTOPENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type DESKTOPENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub const DESKTOP_CREATEMENU : i32 = 4i32 ; pub const DESKTOP_CREATEWINDOW : i32 = 2i32 ; pub const DESKTOP_ENUMERATE : i32 = 64i32 ; pub const DESKTOP_HOOKCONTROL : i32 = 8i32 ; pub const DESKTOP_JOURNALPLAYBACK : i32 = 32i32 ; pub const DESKTOP_JOURNALRECORD : i32 = 16i32 ; pub const DESKTOP_READOBJECTS : i32 = 1i32 ; pub const DESKTOP_SWITCHDESKTOP : i32 = 256i32 ; pub const DESKTOP_WRITEOBJECTS : i32 = 128i32 ; pub const DEVICE_NOTIFY_ALL_INTERFACE_CLASSES : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVNAMES { pub wDriverOffset : u16 , pub wDeviceOffset : u16 , pub wOutputOffset : u16 , pub wDefault : u16 } impl DEVNAMES { } impl :: std :: default :: Default for DEVNAMES { fn default ( ) -> Self { Self { wDriverOffset : 0 , wDeviceOffset : 0 , wOutputOffset : 0 , wDefault : 0 } } } impl :: std :: fmt :: Debug for DEVNAMES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DEVNAMES" ) . field ( "wDriverOffset" , & self . wDriverOffset ) . field ( "wDeviceOffset" , & self . wDeviceOffset ) . field ( "wOutputOffset" , & self . wOutputOffset ) . field ( "wDefault" , & self . wDefault ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVNAMES { fn eq ( & self , other : & Self ) -> bool { self . wDriverOffset == other . wDriverOffset && self . wDeviceOffset == other . wDeviceOffset && self . wOutputOffset == other . wOutputOffset && self . wDefault == other . wDefault } } impl :: std :: cmp :: Eq for DEVNAMES { } unsafe impl :: windows :: Abi for DEVNAMES { type Abi = Self ; type DefaultType = Self ; } pub const DF_ALLOWOTHERACCOUNTHOOK : i32 = 1i32 ; pub const DIFFERENCE : u32 = 11u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct DI_FLAGS ( pub u32 ) ; pub const DI_MASK : DI_FLAGS = DI_FLAGS ( 1u32 ) ; pub const DI_IMAGE : DI_FLAGS = DI_FLAGS ( 2u32 ) ; pub const DI_NORMAL : DI_FLAGS = DI_FLAGS ( 3u32 ) ; pub const DI_COMPAT : DI_FLAGS = DI_FLAGS ( 4u32 ) ; pub const DI_DEFAULTSIZE : DI_FLAGS = DI_FLAGS ( 8u32 ) ; pub const DI_NOMIRROR : DI_FLAGS = DI_FLAGS ( 16u32 ) ; impl :: std :: convert :: From < u32 > for DI_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DI_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for DI_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for DI_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for DI_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for DI_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const DLGC_BUTTON : u32 = 8192u32 ; pub const DLGC_DEFPUSHBUTTON : u32 = 16u32 ; pub const DLGC_HASSETSEL : u32 = 8u32 ; pub const DLGC_RADIOBUTTON : u32 = 64u32 ; pub const DLGC_STATIC : u32 = 256u32 ; pub const DLGC_UNDEFPUSHBUTTON : u32 = 32u32 ; pub const DLGC_WANTALLKEYS : u32 = 4u32 ; pub const DLGC_WANTARROWS : u32 = 1u32 ; pub const DLGC_WANTCHARS : u32 = 128u32 ; pub const DLGC_WANTMESSAGE : u32 = 4u32 ; pub const DLGC_WANTTAB : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C , packed ( 2 ) ) ] pub struct DLGITEMTEMPLATE { pub style : u32 , pub dwExtendedStyle : u32 , pub x : i16 , pub y : i16 , pub cx : i16 , pub cy : i16 , pub id : u16 } impl DLGITEMTEMPLATE { } impl :: std :: cmp :: PartialEq for DLGITEMTEMPLATE { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DLGITEMTEMPLATE { } unsafe impl :: windows :: Abi for DLGITEMTEMPLATE { type Abi = Self ; type DefaultType = Self ; } pub type DLGPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> isize ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C , packed ( 2 ) ) ] pub struct DLGTEMPLATE { pub style : u32 , pub dwExtendedStyle : u32 , pub cdit : u16 , pub x : i16 , pub y : i16 , pub cx : i16 , pub cy : i16 } impl DLGTEMPLATE { } impl :: std :: cmp :: PartialEq for DLGTEMPLATE { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DLGTEMPLATE { } unsafe impl :: windows :: Abi for DLGTEMPLATE { type Abi = Self ; type DefaultType = Self ; } pub const DLGWINDOWEXTRA : u32 = 30u32 ; pub const DM_GETDEFID : u32 = 1024u32 ; pub const DM_POINTERHITTEST : u32 = 592u32 ; pub const DM_REPOSITION : u32 = 1026u32 ; pub const DM_SETDEFID : u32 = 1025u32 ; pub const DN_DEFAULTPRN : u32 = 1u32 ; pub const DOF_DIRECTORY : u32 = 32771u32 ; pub const DOF_DOCUMENT : u32 = 32770u32 ; pub const DOF_EXECUTABLE : u32 = 32769u32 ; pub const DOF_MULTIPLE : u32 = 32772u32 ; pub const DOF_PROGMAN : u32 = 1u32 ; pub const DOF_SHELLDATA : u32 = 2u32 ; pub const DO_DROPFILE : i32 = 1162627398i32 ; pub const DO_PRINTFILE : i32 = 1414419024i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DROPSTRUCT { pub hwndSource : super::super::Foundation:: HWND , pub hwndSink : super::super::Foundation:: HWND , pub wFmt : u32 , pub dwData : usize , pub ptDrop : super::super::Foundation:: POINT , pub dwControlData : u32 } impl DROPSTRUCT { } impl :: std :: default :: Default for DROPSTRUCT { fn default ( ) -> Self { Self { hwndSource : :: std :: default :: Default :: default ( ) , hwndSink : :: std :: default :: Default :: default ( ) , wFmt : 0 , dwData : 0 , ptDrop : :: std :: default :: Default :: default ( ) , dwControlData : 0 } } } impl :: std :: fmt :: Debug for DROPSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DROPSTRUCT" ) . field ( "hwndSource" , & self . hwndSource ) . field ( "hwndSink" , & self . hwndSink ) . field ( "wFmt" , & self . wFmt ) . field ( "dwData" , & self . dwData ) . field ( "ptDrop" , & self . ptDrop ) . field ( "dwControlData" , & self . dwControlData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DROPSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hwndSource == other . hwndSource && self . hwndSink == other . hwndSink && self . wFmt == other . wFmt && self . dwData == other . dwData && self . ptDrop == other . ptDrop && self . dwControlData == other . dwControlData } } impl :: std :: cmp :: Eq for DROPSTRUCT { } unsafe impl :: windows :: Abi for DROPSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const DS_3DLOOK : i32 = 4i32 ; pub const DS_ABSALIGN : i32 = 1i32 ; pub const DS_CENTER : i32 = 2048i32 ; pub const DS_CENTERMOUSE : i32 = 4096i32 ; pub const DS_CONTEXTHELP : i32 = 8192i32 ; pub const DS_CONTROL : i32 = 1024i32 ; pub const DS_FIXEDSYS : i32 = 8i32 ; pub const DS_LOCALEDIT : i32 = 32i32 ; pub const DS_MODALFRAME : i32 = 128i32 ; pub const DS_NOFAILCREATE : i32 = 16i32 ; pub const DS_NOIDLEMSG : i32 = 256i32 ; pub const DS_SETFONT : i32 = 64i32 ; pub const DS_SETFOREGROUND : i32 = 512i32 ; pub const DS_SYSMODAL : i32 = 2i32 ; pub const DS_USEPIXELS : i32 = 32768i32 ; pub const DWLP_MSGRESULT : u32 = 0u32 ; pub const DWL_DLGPROC : u32 = 4u32 ; pub const DWL_MSGRESULT : u32 = 0u32 ; pub const DWL_USER : u32 = 8u32 ; pub unsafe fn DefDlgProcA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefDlgProcA ( hdlg : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefDlgProcA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefDlgProcW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefDlgProcW ( hdlg : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefDlgProcW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefFrameProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndmdiclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefFrameProcA ( hwnd : super::super::Foundation:: HWND , hwndmdiclient : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefFrameProcA ( hwnd . into_param ( ) . abi ( ) , hwndmdiclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefFrameProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndmdiclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefFrameProcW ( hwnd : super::super::Foundation:: HWND , hwndmdiclient : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefFrameProcW ( hwnd . into_param ( ) . abi ( ) , hwndmdiclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefMDIChildProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefMDIChildProcA ( hwnd : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefMDIChildProcA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefMDIChildProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefMDIChildProcW ( hwnd : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefMDIChildProcW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefWindowProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefWindowProcA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefWindowProcA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefWindowProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefWindowProcW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefWindowProcW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeferWindowPos < 'a , > ( hwinposinfo : isize , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinsertafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeferWindowPos ( hwinposinfo : isize , hwnd : super::super::Foundation:: HWND , hwndinsertafter : super::super::Foundation:: HWND , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS ) -> isize ; } DeferWindowPos ( :: std :: mem :: transmute ( hwinposinfo ) , hwnd . into_param ( ) . abi ( ) , hwndinsertafter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeleteMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeleteMenu ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } DeleteMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeregisterShellHookWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeregisterShellHookWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DeregisterShellHookWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyAcceleratorTable < 'a , > ( haccel : impl :: windows :: IntoParam < 'a , HACCEL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyAcceleratorTable ( haccel : HACCEL ) -> super::super::Foundation:: BOOL ; } DestroyAcceleratorTable ( haccel . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyCaret < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyCaret ( ) -> super::super::Foundation:: BOOL ; } DestroyCaret ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyCursor < 'a , > ( hcursor : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyCursor ( hcursor : HCURSOR ) -> super::super::Foundation:: BOOL ; } DestroyCursor ( hcursor . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyIcon < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyIcon ( hicon : HICON ) -> super::super::Foundation:: BOOL ; } DestroyIcon ( hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyIndexedResults < 'a , > ( resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiercount : u32 , qualifiers : * mut IndexedResourceQualifier , ) { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn DestroyIndexedResults ( resourceuri : super::super::Foundation:: PWSTR , qualifiercount : u32 , qualifiers : * mut IndexedResourceQualifier ) ; } DestroyIndexedResults ( resourceuri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( qualifiercount ) , :: std :: mem :: transmute ( qualifiers ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyMenu ( hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } DestroyMenu ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyResourceIndexer < > ( resourceindexer : * mut :: std :: ffi :: c_void , ) { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn DestroyResourceIndexer ( resourceindexer : * mut :: std :: ffi :: c_void ) ; } DestroyResourceIndexer ( :: std :: mem :: transmute ( resourceindexer ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DestroyWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxIndirectParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxIndirectParamA ( hinstance : super::super::Foundation:: HINSTANCE , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxIndirectParamA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( hdialogtemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxIndirectParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxIndirectParamW ( hinstance : super::super::Foundation:: HINSTANCE , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxIndirectParamW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( hdialogtemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxParamA ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PWSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxParamW ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DisableProcessWindowsGhosting < > ( ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DisableProcessWindowsGhosting ( ) ; } DisableProcessWindowsGhosting ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DispatchMessageA < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DispatchMessageA ( lpmsg : * const MSG ) -> super::super::Foundation:: LRESULT ; } DispatchMessageA ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DispatchMessageW < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DispatchMessageW ( lpmsg : * const MSG ) -> super::super::Foundation:: LRESULT ; } DispatchMessageW ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DragObject < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndfrom : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , fmt : u32 , data : usize , hcur : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DragObject ( hwndparent : super::super::Foundation:: HWND , hwndfrom : super::super::Foundation:: HWND , fmt : u32 , data : usize , hcur : HCURSOR ) -> u32 ; } DragObject ( hwndparent . into_param ( ) . abi ( ) , hwndfrom . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fmt ) , :: std :: mem :: transmute ( data ) , hcur . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawIcon < 'a , > ( hdc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , x : i32 , y : i32 , hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawIcon ( hdc : super::super::Graphics::Gdi:: HDC , x : i32 , y : i32 , hicon : HICON ) -> super::super::Foundation:: BOOL ; } DrawIcon ( hdc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawIconEx < 'a , > ( hdc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , xleft : i32 , ytop : i32 , hicon : impl :: windows :: IntoParam < 'a , HICON > , cxwidth : i32 , cywidth : i32 , istepifanicur : u32 , hbrflickerfreedraw : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBRUSH > , diflags : DI_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawIconEx ( hdc : super::super::Graphics::Gdi:: HDC , xleft : i32 , ytop : i32 , hicon : HICON , cxwidth : i32 , cywidth : i32 , istepifanicur : u32 , hbrflickerfreedraw : super::super::Graphics::Gdi:: HBRUSH , diflags : DI_FLAGS ) -> super::super::Foundation:: BOOL ; } DrawIconEx ( hdc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( xleft ) , :: std :: mem :: transmute ( ytop ) , hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cxwidth ) , :: std :: mem :: transmute ( cywidth ) , :: std :: mem :: transmute ( istepifanicur ) , hbrflickerfreedraw . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( diflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawMenuBar < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawMenuBar ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DrawMenuBar ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const EC_LEFTMARGIN : u32 = 1u32 ; pub const EC_RIGHTMARGIN : u32 = 2u32 ; pub const EC_USEFONTINFO : u32 = 65535u32 ; pub const EDD_GET_DEVICE_INTERFACE_NAME : 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 EDIT_CONTROL_FEATURE ( pub i32 ) ; pub const EDIT_CONTROL_FEATURE_ENTERPRISE_DATA_PROTECTION_PASTE_SUPPORT : EDIT_CONTROL_FEATURE = EDIT_CONTROL_FEATURE ( 0i32 ) ; pub const EDIT_CONTROL_FEATURE_PASTE_NOTIFICATIONS : EDIT_CONTROL_FEATURE = EDIT_CONTROL_FEATURE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EDIT_CONTROL_FEATURE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EDIT_CONTROL_FEATURE { type Abi = Self ; type DefaultType = Self ; } pub const EDS_RAWMODE : u32 = 2u32 ; pub const EDS_ROTATEDMODE : u32 = 4u32 ; pub const EIMES_CANCELCOMPSTRINFOCUS : u32 = 2u32 ; pub const EIMES_COMPLETECOMPSTRKILLFOCUS : u32 = 4u32 ; pub const EIMES_GETCOMPSTRATONCE : u32 = 1u32 ; pub const EMSIS_COMPOSITIONSTRING : u32 = 1u32 ; pub const ENDSESSION_CLOSEAPP : u32 = 1u32 ; pub const ENDSESSION_CRITICAL : u32 = 1073741824u32 ; pub const ENDSESSION_LOGOFF : u32 = 2147483648u32 ; pub const EN_AFTER_PASTE : u32 = 2049u32 ; pub const EN_ALIGN_LTR_EC : u32 = 1792u32 ; pub const EN_ALIGN_RTL_EC : u32 = 1793u32 ; pub const EN_BEFORE_PASTE : u32 = 2048u32 ; pub const EN_CHANGE : u32 = 768u32 ; pub const EN_ERRSPACE : u32 = 1280u32 ; pub const EN_HSCROLL : u32 = 1537u32 ; pub const EN_KILLFOCUS : u32 = 512u32 ; pub const EN_MAXTEXT : u32 = 1281u32 ; pub const EN_SETFOCUS : u32 = 256u32 ; pub const EN_UPDATE : u32 = 1024u32 ; pub const EN_VSCROLL : u32 = 1538u32 ; pub const ES_AUTOHSCROLL : i32 = 128i32 ; pub const ES_AUTOVSCROLL : i32 = 64i32 ; pub const ES_CENTER : i32 = 1i32 ; pub const ES_LEFT : i32 = 0i32 ; pub const ES_LOWERCASE : i32 = 16i32 ; pub const ES_MULTILINE : i32 = 4i32 ; pub const ES_NOHIDESEL : i32 = 256i32 ; pub const ES_NUMBER : i32 = 8192i32 ; pub const ES_OEMCONVERT : i32 = 1024i32 ; pub const ES_PASSWORD : i32 = 32i32 ; pub const ES_READONLY : i32 = 2048i32 ; pub const ES_RIGHT : i32 = 2i32 ; pub const ES_UPPERCASE : i32 = 8i32 ; pub const ES_WANTRETURN : i32 = 4096i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EVENTMSG { pub message : u32 , pub paramL : u32 , pub paramH : u32 , pub time : u32 , pub hwnd : super::super::Foundation:: HWND } impl EVENTMSG { } impl :: std :: default :: Default for EVENTMSG { fn default ( ) -> Self { Self { message : 0 , paramL : 0 , paramH : 0 , time : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for EVENTMSG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "EVENTMSG" ) . field ( "message" , & self . message ) . field ( "paramL" , & self . paramL ) . field ( "paramH" , & self . paramH ) . field ( "time" , & self . time ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for EVENTMSG { fn eq ( & self , other : & Self ) -> bool { self . message == other . message && self . paramL == other . paramL && self . paramH == other . paramH && self . time == other . time && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for EVENTMSG { } unsafe impl :: windows :: Abi for EVENTMSG { type Abi = Self ; type DefaultType = Self ; } pub const EVENT_AIA_END : u32 = 45055u32 ; pub const EVENT_AIA_START : u32 = 40960u32 ; pub const EVENT_CONSOLE_CARET : u32 = 16385u32 ; pub const EVENT_CONSOLE_END : u32 = 16639u32 ; pub const EVENT_CONSOLE_END_APPLICATION : u32 = 16391u32 ; pub const EVENT_CONSOLE_LAYOUT : u32 = 16389u32 ; pub const EVENT_CONSOLE_START_APPLICATION : u32 = 16390u32 ; pub const EVENT_CONSOLE_UPDATE_REGION : u32 = 16386u32 ; pub const EVENT_CONSOLE_UPDATE_SCROLL : u32 = 16388u32 ; pub const EVENT_CONSOLE_UPDATE_SIMPLE : u32 = 16387u32 ; pub const EVENT_MAX : u32 = 2147483647u32 ; pub const EVENT_MIN : u32 = 1u32 ; pub const EVENT_OBJECT_ACCELERATORCHANGE : u32 = 32786u32 ; pub const EVENT_OBJECT_CLOAKED : u32 = 32791u32 ; pub const EVENT_OBJECT_CONTENTSCROLLED : u32 = 32789u32 ; pub const EVENT_OBJECT_CREATE : u32 = 32768u32 ; pub const EVENT_OBJECT_DEFACTIONCHANGE : u32 = 32785u32 ; pub const EVENT_OBJECT_DESCRIPTIONCHANGE : u32 = 32781u32 ; pub const EVENT_OBJECT_DESTROY : u32 = 32769u32 ; pub const EVENT_OBJECT_DRAGCANCEL : u32 = 32802u32 ; pub const EVENT_OBJECT_DRAGCOMPLETE : u32 = 32803u32 ; pub const EVENT_OBJECT_DRAGDROPPED : u32 = 32806u32 ; pub const EVENT_OBJECT_DRAGENTER : u32 = 32804u32 ; pub const EVENT_OBJECT_DRAGLEAVE : u32 = 32805u32 ; pub const EVENT_OBJECT_DRAGSTART : u32 = 32801u32 ; pub const EVENT_OBJECT_END : u32 = 33023u32 ; pub const EVENT_OBJECT_FOCUS : u32 = 32773u32 ; pub const EVENT_OBJECT_HELPCHANGE : u32 = 32784u32 ; pub const EVENT_OBJECT_HIDE : u32 = 32771u32 ; pub const EVENT_OBJECT_HOSTEDOBJECTSINVALIDATED : u32 = 32800u32 ; pub const EVENT_OBJECT_IME_CHANGE : u32 = 32809u32 ; pub const EVENT_OBJECT_IME_HIDE : u32 = 32808u32 ; pub const EVENT_OBJECT_IME_SHOW : u32 = 32807u32 ; pub const EVENT_OBJECT_INVOKED : u32 = 32787u32 ; pub const EVENT_OBJECT_LIVEREGIONCHANGED : u32 = 32793u32 ; pub const EVENT_OBJECT_LOCATIONCHANGE : u32 = 32779u32 ; pub const EVENT_OBJECT_NAMECHANGE : u32 = 32780u32 ; pub const EVENT_OBJECT_PARENTCHANGE : u32 = 32783u32 ; pub const EVENT_OBJECT_REORDER : u32 = 32772u32 ; pub const EVENT_OBJECT_SELECTION : u32 = 32774u32 ; pub const EVENT_OBJECT_SELECTIONADD : u32 = 32775u32 ; pub const EVENT_OBJECT_SELECTIONREMOVE : u32 = 32776u32 ; pub const EVENT_OBJECT_SELECTIONWITHIN : u32 = 32777u32 ; pub const EVENT_OBJECT_SHOW : u32 = 32770u32 ; pub const EVENT_OBJECT_STATECHANGE : u32 = 32778u32 ; pub const EVENT_OBJECT_TEXTEDIT_CONVERSIONTARGETCHANGED : u32 = 32816u32 ; pub const EVENT_OBJECT_TEXTSELECTIONCHANGED : u32 = 32788u32 ; pub const EVENT_OBJECT_UNCLOAKED : u32 = 32792u32 ; pub const EVENT_OBJECT_VALUECHANGE : u32 = 32782u32 ; pub const EVENT_OEM_DEFINED_END : u32 = 511u32 ; pub const EVENT_OEM_DEFINED_START : u32 = 257u32 ; pub const EVENT_SYSTEM_ALERT : u32 = 2u32 ; pub const EVENT_SYSTEM_ARRANGMENTPREVIEW : u32 = 32790u32 ; pub const EVENT_SYSTEM_CAPTUREEND : u32 = 9u32 ; pub const EVENT_SYSTEM_CAPTURESTART : u32 = 8u32 ; pub const EVENT_SYSTEM_CONTEXTHELPEND : u32 = 13u32 ; pub const EVENT_SYSTEM_CONTEXTHELPSTART : u32 = 12u32 ; pub const EVENT_SYSTEM_DESKTOPSWITCH : u32 = 32u32 ; pub const EVENT_SYSTEM_DIALOGEND : u32 = 17u32 ; pub const EVENT_SYSTEM_DIALOGSTART : u32 = 16u32 ; pub const EVENT_SYSTEM_DRAGDROPEND : u32 = 15u32 ; pub const EVENT_SYSTEM_DRAGDROPSTART : u32 = 14u32 ; pub const EVENT_SYSTEM_END : u32 = 255u32 ; pub const EVENT_SYSTEM_FOREGROUND : u32 = 3u32 ; pub const EVENT_SYSTEM_IME_KEY_NOTIFICATION : u32 = 41u32 ; pub const EVENT_SYSTEM_MENUEND : u32 = 5u32 ; pub const EVENT_SYSTEM_MENUPOPUPEND : u32 = 7u32 ; pub const EVENT_SYSTEM_MENUPOPUPSTART : u32 = 6u32 ; pub const EVENT_SYSTEM_MENUSTART : u32 = 4u32 ; pub const EVENT_SYSTEM_MINIMIZEEND : u32 = 23u32 ; pub const EVENT_SYSTEM_MINIMIZESTART : u32 = 22u32 ; pub const EVENT_SYSTEM_MOVESIZEEND : u32 = 11u32 ; pub const EVENT_SYSTEM_MOVESIZESTART : u32 = 10u32 ; pub const EVENT_SYSTEM_SCROLLINGEND : u32 = 19u32 ; pub const EVENT_SYSTEM_SCROLLINGSTART : u32 = 18u32 ; pub const EVENT_SYSTEM_SOUND : u32 = 1u32 ; pub const EVENT_SYSTEM_SWITCHEND : u32 = 21u32 ; pub const EVENT_SYSTEM_SWITCHER_APPDROPPED : u32 = 38u32 ; pub const EVENT_SYSTEM_SWITCHER_APPGRABBED : u32 = 36u32 ; pub const EVENT_SYSTEM_SWITCHER_APPOVERTARGET : u32 = 37u32 ; pub const EVENT_SYSTEM_SWITCHER_CANCELLED : u32 = 39u32 ; pub const EVENT_SYSTEM_SWITCHSTART : u32 = 20u32 ; pub const EVENT_UIA_EVENTID_END : u32 = 20223u32 ; pub const EVENT_UIA_EVENTID_START : u32 = 19968u32 ; pub const EVENT_UIA_PROPID_END : u32 = 30207u32 ; pub const EVENT_UIA_PROPID_START : u32 = 29952u32 ; pub const EWX_ARSO : u32 = 67108864u32 ; pub const EWX_BOOTOPTIONS : u32 = 16777216u32 ; pub const EWX_FORCE : u32 = 4u32 ; pub const EWX_FORCEIFHUNG : u32 = 16u32 ; pub const EWX_QUICKRESOLVE : u32 = 32u32 ; pub unsafe fn EnableMenuItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidenableitem : u32 , uenable : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnableMenuItem ( hmenu : HMENU , uidenableitem : u32 , uenable : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } EnableMenuItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidenableitem ) , :: std :: mem :: transmute ( uenable ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndDeferWindowPos < > ( hwinposinfo : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndDeferWindowPos ( hwinposinfo : isize ) -> super::super::Foundation:: BOOL ; } EndDeferWindowPos ( :: std :: mem :: transmute ( hwinposinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndDialog < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nresult : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndDialog ( hdlg : super::super::Foundation:: HWND , nresult : isize ) -> super::super::Foundation:: BOOL ; } EndDialog ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndMenu < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndMenu ( ) -> super::super::Foundation:: BOOL ; } EndMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumChildWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumChildWindows ( hwndparent : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumChildWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCA > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsA ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr ) -> i32 ; } EnumPropsA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsExA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCEXA > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsExA ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } EnumPropsExA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsExW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCEXW > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsExW ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } EnumPropsExW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCW > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsW ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr ) -> i32 ; } EnumPropsW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumThreadWindows < 'a , > ( dwthreadid : u32 , lpfn : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumThreadWindows ( dwthreadid : u32 , lpfn : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumThreadWindows ( :: std :: mem :: transmute ( dwthreadid ) , :: std :: mem :: transmute ( lpfn ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumWindows < 'a , > ( lpenumfunc : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumWindows ( lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumWindows ( :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const FALT : u32 = 16u32 ; pub const FAPPCOMMAND_KEY : u32 = 0u32 ; pub const FAPPCOMMAND_MASK : u32 = 61440u32 ; pub const FAPPCOMMAND_MOUSE : u32 = 32768u32 ; pub const FAPPCOMMAND_OEM : u32 = 4096u32 ; pub const FCONTROL : u32 = 8u32 ; pub const FE_FONTSMOOTHINGCLEARTYPE : u32 = 2u32 ; pub const FE_FONTSMOOTHINGORIENTATIONBGR : u32 = 0u32 ; pub const FE_FONTSMOOTHINGORIENTATIONRGB : u32 = 1u32 ; pub const FE_FONTSMOOTHINGSTANDARD : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct FINDREPLACEA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PSTR , pub lpstrReplaceWith : super::super::Foundation:: PSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPFRHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl FINDREPLACEA { } impl :: std :: default :: Default for FINDREPLACEA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , lpstrFindWhat : :: std :: default :: Default :: default ( ) , lpstrReplaceWith : :: std :: default :: Default :: default ( ) , wFindWhatLen : 0 , wReplaceWithLen : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for FINDREPLACEA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FINDREPLACEA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "Flags" , & self . Flags ) . field ( "lpstrFindWhat" , & self . lpstrFindWhat ) . field ( "lpstrReplaceWith" , & self . lpstrReplaceWith ) . field ( "wFindWhatLen" , & self . wFindWhatLen ) . field ( "wReplaceWithLen" , & self . wReplaceWithLen ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FINDREPLACEA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . Flags == other . Flags && self . lpstrFindWhat == other . lpstrFindWhat && self . lpstrReplaceWith == other . lpstrReplaceWith && self . wFindWhatLen == other . wFindWhatLen && self . wReplaceWithLen == other . wReplaceWithLen && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for FINDREPLACEA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct FINDREPLACEA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PSTR , pub lpstrReplaceWith : super::super::Foundation:: PSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for FINDREPLACEA { type Abi = FINDREPLACEA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct FINDREPLACEW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PWSTR , pub lpstrReplaceWith : super::super::Foundation:: PWSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPFRHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl FINDREPLACEW { } impl :: std :: default :: Default for FINDREPLACEW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , lpstrFindWhat : :: std :: default :: Default :: default ( ) , lpstrReplaceWith : :: std :: default :: Default :: default ( ) , wFindWhatLen : 0 , wReplaceWithLen : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for FINDREPLACEW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FINDREPLACEW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "Flags" , & self . Flags ) . field ( "lpstrFindWhat" , & self . lpstrFindWhat ) . field ( "lpstrReplaceWith" , & self . lpstrReplaceWith ) . field ( "wFindWhatLen" , & self . wFindWhatLen ) . field ( "wReplaceWithLen" , & self . wReplaceWithLen ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FINDREPLACEW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . Flags == other . Flags && self . lpstrFindWhat == other . lpstrFindWhat && self . lpstrReplaceWith == other . lpstrReplaceWith && self . wFindWhatLen == other . wFindWhatLen && self . wReplaceWithLen == other . wReplaceWithLen && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for FINDREPLACEW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct FINDREPLACEW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PWSTR , pub lpstrReplaceWith : super::super::Foundation:: PWSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for FINDREPLACEW { type Abi = FINDREPLACEW_abi ; 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 FINDREPLACE_FLAGS ( pub u32 ) ; pub const FR_DIALOGTERM : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 64u32 ) ; pub const FR_DOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 1u32 ) ; pub const FR_ENABLEHOOK : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 256u32 ) ; pub const FR_ENABLETEMPLATE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 512u32 ) ; pub const FR_ENABLETEMPLATEHANDLE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 8192u32 ) ; pub const FR_FINDNEXT : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 8u32 ) ; pub const FR_HIDEUPDOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 16384u32 ) ; pub const FR_HIDEMATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 32768u32 ) ; pub const FR_HIDEWHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 65536u32 ) ; pub const FR_MATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 4u32 ) ; pub const FR_NOMATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 2048u32 ) ; pub const FR_NOUPDOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 1024u32 ) ; pub const FR_NOWHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 4096u32 ) ; pub const FR_REPLACE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 16u32 ) ; pub const FR_REPLACEALL : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 32u32 ) ; pub const FR_SHOWHELP : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 128u32 ) ; pub const FR_WHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for FINDREPLACE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for FINDREPLACE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for FINDREPLACE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for FINDREPLACE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for FINDREPLACE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for FINDREPLACE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const FKF_AVAILABLE : u32 = 2u32 ; pub const FKF_CLICKON : u32 = 64u32 ; pub const FKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const FKF_FILTERKEYSON : u32 = 1u32 ; pub const FKF_HOTKEYACTIVE : u32 = 4u32 ; pub const FKF_HOTKEYSOUND : u32 = 16u32 ; pub const FKF_INDICATOR : u32 = 32u32 ; pub const FNOINVERT : u32 = 2u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct FOREGROUND_WINDOW_LOCK_CODE ( pub u32 ) ; pub const LSFW_LOCK : FOREGROUND_WINDOW_LOCK_CODE = FOREGROUND_WINDOW_LOCK_CODE ( 1u32 ) ; pub const LSFW_UNLOCK : FOREGROUND_WINDOW_LOCK_CODE = FOREGROUND_WINDOW_LOCK_CODE ( 2u32 ) ; impl :: std :: convert :: From < u32 > for FOREGROUND_WINDOW_LOCK_CODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for FOREGROUND_WINDOW_LOCK_CODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for FOREGROUND_WINDOW_LOCK_CODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for FOREGROUND_WINDOW_LOCK_CODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for FOREGROUND_WINDOW_LOCK_CODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for FOREGROUND_WINDOW_LOCK_CODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const FRM_FIRST : u32 = 1124u32 ; pub const FRM_LAST : u32 = 1224u32 ; pub const FRM_SETOPERATIONRESULT : u32 = 1124u32 ; pub const FRM_SETOPERATIONRESULTTEXT : u32 = 1125u32 ; pub const FR_NOWRAPAROUND : u32 = 524288u32 ; pub const FR_RAW : u32 = 131072u32 ; pub const FR_SHOWWRAPAROUND : u32 = 262144u32 ; pub const FR_WRAPAROUND : u32 = 1048576u32 ; pub const FSHIFT : u32 = 4u32 ; pub const FVIRTKEY : u32 = 1u32 ; pub unsafe fn FindTextA < > ( param0 : * mut FINDREPLACEA , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn FindTextA ( param0 : * mut FINDREPLACEA_abi ) -> super::super::Foundation:: HWND ; } FindTextA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindTextW < > ( param0 : * mut FINDREPLACEW , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn FindTextW ( param0 : * mut FINDREPLACEW_abi ) -> super::super::Foundation:: HWND ; } FindTextW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowA ( lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HWND ; } FindWindowA ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowExA < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndchildafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszwindow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowExA ( hwndparent : super::super::Foundation:: HWND , hwndchildafter : super::super::Foundation:: HWND , lpszclass : super::super::Foundation:: PSTR , lpszwindow : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HWND ; } FindWindowExA ( hwndparent . into_param ( ) . abi ( ) , hwndchildafter . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , lpszwindow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowExW < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndchildafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszwindow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowExW ( hwndparent : super::super::Foundation:: HWND , hwndchildafter : super::super::Foundation:: HWND , lpszclass : super::super::Foundation:: PWSTR , lpszwindow : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HWND ; } FindWindowExW ( hwndparent . into_param ( ) . abi ( ) , hwndchildafter . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , lpszwindow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowW ( lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HWND ; } FindWindowW ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const GCF_INCLUDE_ANCESTORS : 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 GDI_IMAGE_TYPE ( pub u32 ) ; pub const IMAGE_BITMAP : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 0u32 ) ; pub const IMAGE_CURSOR : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 2u32 ) ; pub const IMAGE_ICON : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 1u32 ) ; impl :: std :: convert :: From < u32 > for GDI_IMAGE_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GDI_IMAGE_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GDI_IMAGE_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GDI_IMAGE_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GDI_IMAGE_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GDI_IMAGE_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GESTURECONFIGMAXCOUNT : u32 = 256u32 ; pub const GESTUREVISUALIZATION_DOUBLETAP : u32 = 2u32 ; pub const GESTUREVISUALIZATION_OFF : u32 = 0u32 ; pub const GESTUREVISUALIZATION_ON : u32 = 31u32 ; pub const GESTUREVISUALIZATION_PRESSANDHOLD : u32 = 8u32 ; pub const GESTUREVISUALIZATION_PRESSANDTAP : u32 = 4u32 ; pub const GESTUREVISUALIZATION_RIGHTTAP : u32 = 16u32 ; pub const GESTUREVISUALIZATION_TAP : 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 GET_ANCESTOR_FLAGS ( pub u32 ) ; pub const GA_PARENT : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 1u32 ) ; pub const GA_ROOT : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 2u32 ) ; pub const GA_ROOTOWNER : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 3u32 ) ; impl :: std :: convert :: From < u32 > for GET_ANCESTOR_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_ANCESTOR_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_ANCESTOR_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_ANCESTOR_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_ANCESTOR_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_ANCESTOR_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct GET_CLASS_LONG_INDEX ( pub i32 ) ; pub const GCW_ATOM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -32i32 ) ; pub const GCL_CBCLSEXTRA : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -20i32 ) ; pub const GCL_CBWNDEXTRA : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -18i32 ) ; pub const GCL_HBRBACKGROUND : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -10i32 ) ; pub const GCL_HCURSOR : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -12i32 ) ; pub const GCL_HICON : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -14i32 ) ; pub const GCL_HICONSM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -34i32 ) ; pub const GCL_HMODULE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -16i32 ) ; pub const GCL_MENUNAME : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -8i32 ) ; pub const GCL_STYLE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -26i32 ) ; pub const GCL_WNDPROC : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -24i32 ) ; pub const GCLP_HBRBACKGROUND : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -10i32 ) ; pub const GCLP_HCURSOR : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -12i32 ) ; pub const GCLP_HICON : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -14i32 ) ; pub const GCLP_HICONSM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -34i32 ) ; pub const GCLP_HMODULE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -16i32 ) ; pub const GCLP_MENUNAME : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -8i32 ) ; pub const GCLP_WNDPROC : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -24i32 ) ; impl :: std :: convert :: From < i32 > for GET_CLASS_LONG_INDEX { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_CLASS_LONG_INDEX { 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 GET_MENU_DEFAULT_ITEM_FLAGS ( pub u32 ) ; pub const GMDI_GOINTOPOPUPS : GET_MENU_DEFAULT_ITEM_FLAGS = GET_MENU_DEFAULT_ITEM_FLAGS ( 2u32 ) ; pub const GMDI_USEDISABLED : GET_MENU_DEFAULT_ITEM_FLAGS = GET_MENU_DEFAULT_ITEM_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for GET_MENU_DEFAULT_ITEM_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_MENU_DEFAULT_ITEM_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_MENU_DEFAULT_ITEM_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_MENU_DEFAULT_ITEM_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_MENU_DEFAULT_ITEM_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_MENU_DEFAULT_ITEM_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct GET_WINDOW_CMD ( pub u32 ) ; pub const GW_CHILD : GET_WINDOW_CMD = GET_WINDOW_CMD ( 5u32 ) ; pub const GW_ENABLEDPOPUP : GET_WINDOW_CMD = GET_WINDOW_CMD ( 6u32 ) ; pub const GW_HWNDFIRST : GET_WINDOW_CMD = GET_WINDOW_CMD ( 0u32 ) ; pub const GW_HWNDLAST : GET_WINDOW_CMD = GET_WINDOW_CMD ( 1u32 ) ; pub const GW_HWNDNEXT : GET_WINDOW_CMD = GET_WINDOW_CMD ( 2u32 ) ; pub const GW_HWNDPREV : GET_WINDOW_CMD = GET_WINDOW_CMD ( 3u32 ) ; pub const GW_OWNER : GET_WINDOW_CMD = GET_WINDOW_CMD ( 4u32 ) ; impl :: std :: convert :: From < u32 > for GET_WINDOW_CMD { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_WINDOW_CMD { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_WINDOW_CMD { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_WINDOW_CMD { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_WINDOW_CMD { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_WINDOW_CMD { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GF_BEGIN : u32 = 1u32 ; pub const GF_END : u32 = 4u32 ; pub const GF_INERTIA : u32 = 2u32 ; pub const GIDC_ARRIVAL : u32 = 1u32 ; pub const GIDC_REMOVAL : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct GUITHREADINFO { pub cbSize : u32 , pub flags : GUITHREADINFO_FLAGS , pub hwndActive : super::super::Foundation:: HWND , pub hwndFocus : super::super::Foundation:: HWND , pub hwndCapture : super::super::Foundation:: HWND , pub hwndMenuOwner : super::super::Foundation:: HWND , pub hwndMoveSize : super::super::Foundation:: HWND , pub hwndCaret : super::super::Foundation:: HWND , pub rcCaret : super::super::Foundation:: RECT } impl GUITHREADINFO { } impl :: std :: default :: Default for GUITHREADINFO { fn default ( ) -> Self { Self { cbSize : 0 , flags : :: std :: default :: Default :: default ( ) , hwndActive : :: std :: default :: Default :: default ( ) , hwndFocus : :: std :: default :: Default :: default ( ) , hwndCapture : :: std :: default :: Default :: default ( ) , hwndMenuOwner : :: std :: default :: Default :: default ( ) , hwndMoveSize : :: std :: default :: Default :: default ( ) , hwndCaret : :: std :: default :: Default :: default ( ) , rcCaret : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for GUITHREADINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "GUITHREADINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "flags" , & self . flags ) . field ( "hwndActive" , & self . hwndActive ) . field ( "hwndFocus" , & self . hwndFocus ) . field ( "hwndCapture" , & self . hwndCapture ) . field ( "hwndMenuOwner" , & self . hwndMenuOwner ) . field ( "hwndMoveSize" , & self . hwndMoveSize ) . field ( "hwndCaret" , & self . hwndCaret ) . field ( "rcCaret" , & self . rcCaret ) . finish ( ) } } impl :: std :: cmp :: PartialEq for GUITHREADINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . flags == other . flags && self . hwndActive == other . hwndActive && self . hwndFocus == other . hwndFocus && self . hwndCapture == other . hwndCapture && self . hwndMenuOwner == other . hwndMenuOwner && self . hwndMoveSize == other . hwndMoveSize && self . hwndCaret == other . hwndCaret && self . rcCaret == other . rcCaret } } impl :: std :: cmp :: Eq for GUITHREADINFO { } unsafe impl :: windows :: Abi for GUITHREADINFO { 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 GUITHREADINFO_FLAGS ( pub u32 ) ; pub const GUI_CARETBLINKING : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 1u32 ) ; pub const GUI_INMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 4u32 ) ; pub const GUI_INMOVESIZE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 2u32 ) ; pub const GUI_POPUPMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 16u32 ) ; pub const GUI_SYSTEMMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for GUITHREADINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GUITHREADINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GUITHREADINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GUITHREADINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GUITHREADINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GUITHREADINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GUI_16BITTASK : u32 = 0u32 ; pub const GWFS_INCLUDE_ANCESTORS : u32 = 1u32 ; pub const GW_MAX : u32 = 5u32 ; pub unsafe fn GetAltTabInfoA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PSTR , cchitemtext : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAltTabInfoA ( hwnd : super::super::Foundation:: HWND , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PSTR , cchitemtext : u32 ) -> super::super::Foundation:: BOOL ; } GetAltTabInfoA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( iitem ) , :: std :: mem :: transmute ( pati ) , :: std :: mem :: transmute ( pszitemtext ) , :: std :: mem :: transmute ( cchitemtext ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetAltTabInfoW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PWSTR , cchitemtext : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAltTabInfoW ( hwnd : super::super::Foundation:: HWND , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PWSTR , cchitemtext : u32 ) -> super::super::Foundation:: BOOL ; } GetAltTabInfoW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( iitem ) , :: std :: mem :: transmute ( pati ) , :: std :: mem :: transmute ( pszitemtext ) , :: std :: mem :: transmute ( cchitemtext ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetAncestor < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , gaflags : GET_ANCESTOR_FLAGS , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAncestor ( hwnd : super::super::Foundation:: HWND , gaflags : GET_ANCESTOR_FLAGS ) -> super::super::Foundation:: HWND ; } GetAncestor ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( gaflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCaretBlinkTime < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCaretBlinkTime ( ) -> u32 ; } GetCaretBlinkTime ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCaretPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCaretPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetCaretPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwndclass : * mut WNDCLASSA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoA ( hinstance : super::super::Foundation:: HINSTANCE , lpclassname : super::super::Foundation:: PSTR , lpwndclass : * mut WNDCLASSA_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoA ( hinstance . into_param ( ) . abi ( ) , lpclassname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoExA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwcx : * mut WNDCLASSEXA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoExA ( hinstance : super::super::Foundation:: HINSTANCE , lpszclass : super::super::Foundation:: PSTR , lpwcx : * mut WNDCLASSEXA_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoExA ( hinstance . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwcx ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoExW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwcx : * mut WNDCLASSEXW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoExW ( hinstance : super::super::Foundation:: HINSTANCE , lpszclass : super::super::Foundation:: PWSTR , lpwcx : * mut WNDCLASSEXW_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoExW ( hinstance . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwcx ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwndclass : * mut WNDCLASSW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoW ( hinstance : super::super::Foundation:: HINSTANCE , lpclassname : super::super::Foundation:: PWSTR , lpwndclass : * mut WNDCLASSW_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoW ( hinstance . into_param ( ) . abi ( ) , lpclassname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> u32 ; } GetClassLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> usize ; } GetClassLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> usize ; } GetClassLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> u32 ; } GetClassLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassNameA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpclassname : super::super::Foundation:: PSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassNameA ( hwnd : super::super::Foundation:: HWND , lpclassname : super::super::Foundation:: PSTR , nmaxcount : i32 ) -> i32 ; } GetClassNameA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpclassname ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassNameW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpclassname : super::super::Foundation:: PWSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassNameW ( hwnd : super::super::Foundation:: HWND , lpclassname : super::super::Foundation:: PWSTR , nmaxcount : i32 ) -> i32 ; } GetClassNameW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpclassname ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 ) -> u16 ; } GetClassWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClientRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClientRect ( hwnd : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetClientRect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClipCursor < > ( lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClipCursor ( lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetClipCursor ( :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursor < > ( ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursor ( ) -> HCURSOR ; } GetCursor ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursorInfo < > ( pci : * mut CURSORINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursorInfo ( pci : * mut CURSORINFO ) -> super::super::Foundation:: BOOL ; } GetCursorInfo ( :: std :: mem :: transmute ( pci ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursorPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursorPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetCursorPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDesktopWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDesktopWindow ( ) -> super::super::Foundation:: HWND ; } GetDesktopWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDialogBaseUnits < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDialogBaseUnits ( ) -> i32 ; } GetDialogBaseUnits ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgCtrlID < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgCtrlID ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetDlgCtrlID ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItem ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 ) -> super::super::Foundation:: HWND ; } GetDlgItem ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemInt < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lptranslated : * mut super::super::Foundation:: BOOL , bsigned : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemInt ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lptranslated : * mut super::super::Foundation:: BOOL , bsigned : super::super::Foundation:: BOOL ) -> u32 ; } GetDlgItemInt ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lptranslated ) , bsigned . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemTextA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemTextA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 ) -> u32 ; } GetDlgItemTextA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemTextW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemTextW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 ) -> u32 ; } GetDlgItemTextW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDpiAwarenessContextForProcess < 'a , > ( hprocess : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::System::SystemServices:: DPI_AWARENESS_CONTEXT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDpiAwarenessContextForProcess ( hprocess : super::super::Foundation:: HANDLE ) -> super::super::System::SystemServices:: DPI_AWARENESS_CONTEXT ; } GetDpiAwarenessContextForProcess ( hprocess . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetFileTitleA < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , buf : super::super::Foundation:: PSTR , cchsize : u16 , ) -> i16 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetFileTitleA ( param0 : super::super::Foundation:: PSTR , buf : super::super::Foundation:: PSTR , cchsize : u16 ) -> i16 ; } GetFileTitleA ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( buf ) , :: std :: mem :: transmute ( cchsize ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetFileTitleW < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , buf : super::super::Foundation:: PWSTR , cchsize : u16 , ) -> i16 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetFileTitleW ( param0 : super::super::Foundation:: PWSTR , buf : super::super::Foundation:: PWSTR , cchsize : u16 ) -> i16 ; } GetFileTitleW ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( buf ) , :: std :: mem :: transmute ( cchsize ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetForegroundWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetForegroundWindow ( ) -> super::super::Foundation:: HWND ; } GetForegroundWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetGUIThreadInfo < > ( idthread : u32 , pgui : * mut GUITHREADINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetGUIThreadInfo ( idthread : u32 , pgui : * mut GUITHREADINFO ) -> super::super::Foundation:: BOOL ; } GetGUIThreadInfo ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( pgui ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfo < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfo ( hicon : HICON , piconinfo : * mut ICONINFO ) -> super::super::Foundation:: BOOL ; } GetIconInfo ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfoExA < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFOEXA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfoExA ( hicon : HICON , piconinfo : * mut ICONINFOEXA ) -> super::super::Foundation:: BOOL ; } GetIconInfoExA ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfoExW < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFOEXW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfoExW ( hicon : HICON , piconinfo : * mut ICONINFOEXW ) -> super::super::Foundation:: BOOL ; } GetIconInfoExW ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetInputState < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetInputState ( ) -> super::super::Foundation:: BOOL ; } GetInputState ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetLastActivePopup < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetLastActivePopup ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetLastActivePopup ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetLayeredWindowAttributes < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pcrkey : * mut u32 , pbalpha : * mut u8 , pdwflags : * mut LAYERED_WINDOW_ATTRIBUTES_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetLayeredWindowAttributes ( hwnd : super::super::Foundation:: HWND , pcrkey : * mut u32 , pbalpha : * mut u8 , pdwflags : * mut LAYERED_WINDOW_ATTRIBUTES_FLAGS ) -> super::super::Foundation:: BOOL ; } GetLayeredWindowAttributes ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pcrkey ) , :: std :: mem :: transmute ( pbalpha ) , :: std :: mem :: transmute ( pdwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenu ( hwnd : super::super::Foundation:: HWND ) -> HMENU ; } GetMenu ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuBarInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , idobject : super::Controls:: SCROLLBAR_OBJID , iditem : i32 , pmbi : * mut MENUBARINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuBarInfo ( hwnd : super::super::Foundation:: HWND , idobject : super::Controls:: SCROLLBAR_OBJID , iditem : i32 , pmbi : * mut MENUBARINFO ) -> super::super::Foundation:: BOOL ; } GetMenuBarInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( idobject ) , :: std :: mem :: transmute ( iditem ) , :: std :: mem :: transmute ( pmbi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuCheckMarkDimensions < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuCheckMarkDimensions ( ) -> i32 ; } GetMenuCheckMarkDimensions ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuDefaultItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , fbypos : u32 , gmdiflags : GET_MENU_DEFAULT_ITEM_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuDefaultItem ( hmenu : HMENU , fbypos : u32 , gmdiflags : GET_MENU_DEFAULT_ITEM_FLAGS ) -> u32 ; } GetMenuDefaultItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fbypos ) , :: std :: mem :: transmute ( gmdiflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuInfo < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , HMENU > , param1 : * mut MENUINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuInfo ( param0 : HMENU , param1 : * mut MENUINFO ) -> super::super::Foundation:: BOOL ; } GetMenuInfo ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( param1 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemCount < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemCount ( hmenu : HMENU ) -> i32 ; } GetMenuItemCount ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemID < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , npos : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemID ( hmenu : HMENU , npos : i32 ) -> u32 ; } GetMenuItemID ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( npos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemInfoA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemInfoA ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } GetMenuItemInfoA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemInfoW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemInfoW ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } GetMenuItemInfoW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uitem : u32 , lprcitem : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemRect ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , uitem : u32 , lprcitem : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetMenuItemRect ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uitem ) , :: std :: mem :: transmute ( lprcitem ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuState < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uid : u32 , uflags : MENU_ITEM_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuState ( hmenu : HMENU , uid : u32 , uflags : MENU_ITEM_FLAGS ) -> u32 ; } GetMenuState ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuStringA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uiditem : u32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuStringA ( hmenu : HMENU , uiditem : u32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS ) -> i32 ; } GetMenuStringA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uiditem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuStringW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uiditem : u32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuStringW ( hmenu : HMENU , uiditem : u32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS ) -> i32 ; } GetMenuStringW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uiditem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageA < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageA ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 ) -> super::super::Foundation:: BOOL ; } GetMessageA ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageExtraInfo < > ( ) -> super::super::Foundation:: LPARAM { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageExtraInfo ( ) -> super::super::Foundation:: LPARAM ; } GetMessageExtraInfo ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessagePos < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessagePos ( ) -> u32 ; } GetMessagePos ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageTime < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageTime ( ) -> i32 ; } GetMessageTime ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageW < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageW ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 ) -> super::super::Foundation:: BOOL ; } GetMessageW ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetNextDlgGroupItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hctl : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , bprevious : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetNextDlgGroupItem ( hdlg : super::super::Foundation:: HWND , hctl : super::super::Foundation:: HWND , bprevious : super::super::Foundation:: BOOL ) -> super::super::Foundation:: HWND ; } GetNextDlgGroupItem ( hdlg . into_param ( ) . abi ( ) , hctl . into_param ( ) . abi ( ) , bprevious . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetNextDlgTabItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hctl : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , bprevious : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetNextDlgTabItem ( hdlg : super::super::Foundation:: HWND , hctl : super::super::Foundation:: HWND , bprevious : super::super::Foundation:: BOOL ) -> super::super::Foundation:: HWND ; } GetNextDlgTabItem ( hdlg . into_param ( ) . abi ( ) , hctl . into_param ( ) . abi ( ) , bprevious . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetOpenFileNameA < > ( param0 : * mut OPENFILENAMEA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetOpenFileNameA ( param0 : * mut OPENFILENAMEA_abi ) -> super::super::Foundation:: BOOL ; } GetOpenFileNameA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetOpenFileNameW < > ( param0 : * mut OPENFILENAMEW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetOpenFileNameW ( param0 : * mut OPENFILENAMEW_abi ) -> super::super::Foundation:: BOOL ; } GetOpenFileNameW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetParent < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetParent ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetParent ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPhysicalCursorPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPhysicalCursorPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetPhysicalCursorPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetProcessDefaultLayout < > ( pdwdefaultlayout : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetProcessDefaultLayout ( pdwdefaultlayout : * mut u32 ) -> super::super::Foundation:: BOOL ; } GetProcessDefaultLayout ( :: std :: mem :: transmute ( pdwdefaultlayout ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HANDLE ; } GetPropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } GetPropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetQueueStatus < > ( flags : QUEUE_STATUS_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetQueueStatus ( flags : QUEUE_STATUS_FLAGS ) -> u32 ; } GetQueueStatus ( :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSaveFileNameA < > ( param0 : * mut OPENFILENAMEA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetSaveFileNameA ( param0 : * mut OPENFILENAMEA_abi ) -> super::super::Foundation:: BOOL ; } GetSaveFileNameA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSaveFileNameW < > ( param0 : * mut OPENFILENAMEW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetSaveFileNameW ( param0 : * mut OPENFILENAMEW_abi ) -> super::super::Foundation:: BOOL ; } GetSaveFileNameW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetShellWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetShellWindow ( ) -> super::super::Foundation:: HWND ; } GetShellWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSubMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , npos : i32 , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSubMenu ( hmenu : HMENU , npos : i32 ) -> HMENU ; } GetSubMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( npos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSysColor < > ( nindex : SYS_COLOR_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSysColor ( nindex : SYS_COLOR_INDEX ) -> u32 ; } GetSysColor ( :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSystemMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , brevert : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSystemMenu ( hwnd : super::super::Foundation:: HWND , brevert : super::super::Foundation:: BOOL ) -> HMENU ; } GetSystemMenu ( hwnd . into_param ( ) . abi ( ) , brevert . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSystemMetrics < > ( nindex : SYSTEM_METRICS_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSystemMetrics ( nindex : SYSTEM_METRICS_INDEX ) -> i32 ; } GetSystemMetrics ( :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetTitleBarInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pti : * mut TITLEBARINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetTitleBarInfo ( hwnd : super::super::Foundation:: HWND , pti : * mut TITLEBARINFO ) -> super::super::Foundation:: BOOL ; } GetTitleBarInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pti ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetTopWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetTopWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetTopWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ucmd : GET_WINDOW_CMD , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindow ( hwnd : super::super::Foundation:: HWND , ucmd : GET_WINDOW_CMD ) -> super::super::Foundation:: HWND ; } GetWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ucmd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowDisplayAffinity < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pdwaffinity : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowDisplayAffinity ( hwnd : super::super::Foundation:: HWND , pdwaffinity : * mut u32 ) -> super::super::Foundation:: BOOL ; } GetWindowDisplayAffinity ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdwaffinity ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pwi : * mut WINDOWINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowInfo ( hwnd : super::super::Foundation:: HWND , pwi : * mut WINDOWINFO ) -> super::super::Foundation:: BOOL ; } GetWindowInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pwi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> i32 ; } GetWindowLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> isize ; } GetWindowLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> isize ; } GetWindowLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> i32 ; } GetWindowLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowModuleFileNameA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pszfilename : super::super::Foundation:: PSTR , cchfilenamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowModuleFileNameA ( hwnd : super::super::Foundation:: HWND , pszfilename : super::super::Foundation:: PSTR , cchfilenamemax : u32 ) -> u32 ; } GetWindowModuleFileNameA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pszfilename ) , :: std :: mem :: transmute ( cchfilenamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowModuleFileNameW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pszfilename : super::super::Foundation:: PWSTR , cchfilenamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowModuleFileNameW ( hwnd : super::super::Foundation:: HWND , pszfilename : super::super::Foundation:: PWSTR , cchfilenamemax : u32 ) -> u32 ; } GetWindowModuleFileNameW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pszfilename ) , :: std :: mem :: transmute ( cchfilenamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowPlacement < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpwndpl : * mut WINDOWPLACEMENT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowPlacement ( hwnd : super::super::Foundation:: HWND , lpwndpl : * mut WINDOWPLACEMENT ) -> super::super::Foundation:: BOOL ; } GetWindowPlacement ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndpl ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowRect ( hwnd : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetWindowRect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : super::super::Foundation:: PSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR , nmaxcount : i32 ) -> i32 ; } GetWindowTextA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextLengthA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextLengthA ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetWindowTextLengthA ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextLengthW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextLengthW ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetWindowTextLengthW ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : super::super::Foundation:: PWSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR , nmaxcount : i32 ) -> i32 ; } GetWindowTextW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowThreadProcessId < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdwprocessid : * mut u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowThreadProcessId ( hwnd : super::super::Foundation:: HWND , lpdwprocessid : * mut u32 ) -> u32 ; } GetWindowThreadProcessId ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdwprocessid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 ) -> u16 ; } GetWindowWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HACCEL ( pub isize ) ; impl HACCEL { } impl :: std :: default :: Default for HACCEL { fn default ( ) -> Self { Self ( 0 ) } } impl HACCEL { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HACCEL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HACCEL" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HACCEL { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HACCEL { } unsafe impl :: windows :: Abi for HACCEL { 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 HANDEDNESS ( pub i32 ) ; pub const HANDEDNESS_LEFT : HANDEDNESS = HANDEDNESS ( 0i32 ) ; pub const HANDEDNESS_RIGHT : HANDEDNESS = HANDEDNESS ( 1i32 ) ; impl :: std :: convert :: From < i32 > for HANDEDNESS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for HANDEDNESS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct HARDWAREHOOKSTRUCT { pub hwnd : super::super::Foundation:: HWND , pub message : u32 , pub wParam : super::super::Foundation:: WPARAM , pub lParam : super::super::Foundation:: LPARAM } impl HARDWAREHOOKSTRUCT { } impl :: std :: default :: Default for HARDWAREHOOKSTRUCT { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , message : 0 , wParam : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for HARDWAREHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HARDWAREHOOKSTRUCT" ) . field ( "hwnd" , & self . hwnd ) . field ( "message" , & self . message ) . field ( "wParam" , & self . wParam ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HARDWAREHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . message == other . message && self . wParam == other . wParam && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for HARDWAREHOOKSTRUCT { } unsafe impl :: windows :: Abi for HARDWAREHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const HBMMENU_CALLBACK : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( -1i32 as _ ) ; pub const HBMMENU_MBAR_CLOSE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 5i32 as _ ) ; pub const HBMMENU_MBAR_CLOSE_D : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 6i32 as _ ) ; pub const HBMMENU_MBAR_MINIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 3i32 as _ ) ; pub const HBMMENU_MBAR_MINIMIZE_D : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 7i32 as _ ) ; pub const HBMMENU_MBAR_RESTORE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 2i32 as _ ) ; pub const HBMMENU_POPUP_CLOSE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 8i32 as _ ) ; pub const HBMMENU_POPUP_MAXIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 10i32 as _ ) ; pub const HBMMENU_POPUP_MINIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 11i32 as _ ) ; pub const HBMMENU_POPUP_RESTORE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 9i32 as _ ) ; pub const HBMMENU_SYSTEM : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 1i32 as _ ) ; pub const HCBT_ACTIVATE : u32 = 5u32 ; pub const HCBT_CLICKSKIPPED : u32 = 6u32 ; pub const HCBT_CREATEWND : u32 = 3u32 ; pub const HCBT_DESTROYWND : u32 = 4u32 ; pub const HCBT_KEYSKIPPED : u32 = 7u32 ; pub const HCBT_MINMAX : u32 = 1u32 ; pub const HCBT_MOVESIZE : u32 = 0u32 ; pub const HCBT_QS : u32 = 2u32 ; pub const HCBT_SETFOCUS : u32 = 9u32 ; pub const HCBT_SYSCOMMAND : u32 = 8u32 ; pub const HCF_DEFAULTDESKTOP : u32 = 512u32 ; pub const HCF_LOGONDESKTOP : u32 = 256u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HCURSOR ( pub isize ) ; impl HCURSOR { } impl :: std :: default :: Default for HCURSOR { fn default ( ) -> Self { Self ( 0 ) } } impl HCURSOR { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HCURSOR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HCURSOR" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HCURSOR { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HCURSOR { } unsafe impl :: windows :: Abi for HCURSOR { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HICON > for HCURSOR { fn into_param ( self ) -> :: windows :: Param < 'a , HICON > { :: windows :: Param :: Owned ( HICON ( self . 0 ) ) } } pub const HC_ACTION : u32 = 0u32 ; pub const HC_GETNEXT : u32 = 1u32 ; pub const HC_NOREMOVE : u32 = 3u32 ; pub const HC_SKIP : u32 = 2u32 ; pub const HC_SYSMODALOFF : u32 = 5u32 ; pub const HC_SYSMODALON : u32 = 4u32 ; pub const HELPINFO_MENUITEM : u32 = 2u32 ; pub const HELPINFO_WINDOW : u32 = 1u32 ; pub const HELP_COMMAND : i32 = 258i32 ; pub const HELP_CONTENTS : i32 = 3i32 ; pub const HELP_CONTEXT : i32 = 1i32 ; pub const HELP_CONTEXTMENU : u32 = 10u32 ; pub const HELP_CONTEXTPOPUP : i32 = 8i32 ; pub const HELP_FINDER : u32 = 11u32 ; pub const HELP_FORCEFILE : i32 = 9i32 ; pub const HELP_HELPONHELP : i32 = 4i32 ; pub const HELP_INDEX : i32 = 3i32 ; pub const HELP_KEY : i32 = 257i32 ; pub const HELP_MULTIKEY : i32 = 513i32 ; pub const HELP_PARTIALKEY : i32 = 261i32 ; pub const HELP_QUIT : i32 = 2i32 ; pub const HELP_SETCONTENTS : i32 = 5i32 ; pub const HELP_SETINDEX : i32 = 5i32 ; pub const HELP_SETPOPUP_POS : u32 = 13u32 ; pub const HELP_SETWINPOS : i32 = 515i32 ; pub const HELP_TCARD : u32 = 32768u32 ; pub const HELP_TCARD_DATA : u32 = 16u32 ; pub const HELP_TCARD_OTHER_CALLER : u32 = 17u32 ; pub const HELP_WM_HELP : u32 = 12u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HHOOK ( pub isize ) ; impl HHOOK { } impl :: std :: default :: Default for HHOOK { fn default ( ) -> Self { Self ( 0 ) } } impl HHOOK { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HHOOK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HHOOK" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HHOOK { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HHOOK { } unsafe impl :: windows :: Abi for HHOOK { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HICON ( pub isize ) ; impl HICON { } impl :: std :: default :: Default for HICON { fn default ( ) -> Self { Self ( 0 ) } } impl HICON { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HICON { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HICON" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HICON { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HICON { } unsafe impl :: windows :: Abi for HICON { type Abi = Self ; type DefaultType = Self ; } pub const HIDE_WINDOW : u32 = 0u32 ; pub const HKL_NEXT : u32 = 1u32 ; pub const HKL_PREV : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HMENU ( pub isize ) ; impl HMENU { } impl :: std :: default :: Default for HMENU { fn default ( ) -> Self { Self ( 0 ) } } impl HMENU { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HMENU { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HMENU" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HMENU { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HMENU { } unsafe impl :: windows :: Abi for HMENU { type Abi = Self ; type DefaultType = Self ; } pub type HOOKPROC = unsafe extern "system" fn ( code : i32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; pub const HSHELL_ACCESSIBILITYSTATE : u32 = 11u32 ; pub const HSHELL_ACTIVATESHELLWINDOW : u32 = 3u32 ; pub const HSHELL_APPCOMMAND : u32 = 12u32 ; pub const HSHELL_ENDTASK : u32 = 10u32 ; pub const HSHELL_GETMINRECT : u32 = 5u32 ; pub const HSHELL_HIGHBIT : u32 = 32768u32 ; pub const HSHELL_LANGUAGE : u32 = 8u32 ; pub const HSHELL_MONITORCHANGED : u32 = 16u32 ; pub const HSHELL_REDRAW : u32 = 6u32 ; pub const HSHELL_SYSMENU : u32 = 9u32 ; pub const HSHELL_TASKMAN : u32 = 7u32 ; pub const HSHELL_WINDOWACTIVATED : u32 = 4u32 ; pub const HSHELL_WINDOWCREATED : u32 = 1u32 ; pub const HSHELL_WINDOWDESTROYED : u32 = 2u32 ; pub const HSHELL_WINDOWREPLACED : u32 = 13u32 ; pub const HSHELL_WINDOWREPLACING : u32 = 14u32 ; pub const HTBORDER : u32 = 18u32 ; pub const HTBOTTOM : u32 = 15u32 ; pub const HTBOTTOMLEFT : u32 = 16u32 ; pub const HTBOTTOMRIGHT : u32 = 17u32 ; pub const HTCAPTION : u32 = 2u32 ; pub const HTCLIENT : u32 = 1u32 ; pub const HTCLOSE : u32 = 20u32 ; pub const HTERROR : i32 = -2i32 ; pub const HTGROWBOX : u32 = 4u32 ; pub const HTHELP : u32 = 21u32 ; pub const HTHSCROLL : u32 = 6u32 ; pub const HTLEFT : u32 = 10u32 ; pub const HTMAXBUTTON : u32 = 9u32 ; pub const HTMENU : u32 = 5u32 ; pub const HTMINBUTTON : u32 = 8u32 ; pub const HTNOWHERE : u32 = 0u32 ; pub const HTOBJECT : u32 = 19u32 ; pub const HTRIGHT : u32 = 11u32 ; pub const HTSYSMENU : u32 = 3u32 ; pub const HTTOP : u32 = 12u32 ; pub const HTTOPLEFT : u32 = 13u32 ; pub const HTTOPRIGHT : u32 = 14u32 ; pub const HTTRANSPARENT : i32 = -1i32 ; pub const HTVSCROLL : u32 = 7u32 ; pub const HWND_BOTTOM : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 1i32 as _ ) ; pub const HWND_DESKTOP : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 0i32 as _ ) ; pub const HWND_MESSAGE : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -3i32 as _ ) ; pub const HWND_NOTOPMOST : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -2i32 as _ ) ; pub const HWND_TOP : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 0i32 as _ ) ; pub const HWND_TOPMOST : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -1i32 as _ ) ; pub unsafe fn HideCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn HideCaret ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } HideCaret ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn HiliteMenuItem < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidhiliteitem : u32 , uhilite : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn HiliteMenuItem ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , uidhiliteitem : u32 , uhilite : u32 ) -> super::super::Foundation:: BOOL ; } HiliteMenuItem ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidhiliteitem ) , :: std :: mem :: transmute ( uhilite ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFO { pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP } impl ICONINFO { } impl :: std :: default :: Default for ICONINFO { fn default ( ) -> Self { Self { fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFO" ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFO { fn eq ( & self , other : & Self ) -> bool { self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor } } impl :: std :: cmp :: Eq for ICONINFO { } unsafe impl :: windows :: Abi for ICONINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFOEXA { pub cbSize : u32 , pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP , pub wResID : u16 , pub szModName : [ super::super::System::SystemServices:: CHAR ;260 ] , pub szResName : [ super::super::System::SystemServices:: CHAR ;260 ] } impl ICONINFOEXA { } impl :: std :: default :: Default for ICONINFOEXA { fn default ( ) -> Self { Self { cbSize : 0 , fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) , wResID : 0 , szModName : [ :: std :: default :: Default :: default ( ) ;260 ] , szResName : [ :: std :: default :: Default :: default ( ) ;260 ] } } } impl :: std :: fmt :: Debug for ICONINFOEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFOEXA" ) . field ( "cbSize" , & self . cbSize ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . field ( "wResID" , & self . wResID ) . field ( "szModName" , & self . szModName ) . field ( "szResName" , & self . szResName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFOEXA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor && self . wResID == other . wResID && self . szModName == other . szModName && self . szResName == other . szResName } } impl :: std :: cmp :: Eq for ICONINFOEXA { } unsafe impl :: windows :: Abi for ICONINFOEXA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFOEXW { pub cbSize : u32 , pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP , pub wResID : u16 , pub szModName : [ u16 ;260 ] , pub szResName : [ u16 ;260 ] } impl ICONINFOEXW { } impl :: std :: default :: Default for ICONINFOEXW { fn default ( ) -> Self { Self { cbSize : 0 , fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) , wResID : 0 , szModName : [ 0 ;260 ] , szResName : [ 0 ;260 ] } } } impl :: std :: fmt :: Debug for ICONINFOEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFOEXW" ) . field ( "cbSize" , & self . cbSize ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . field ( "wResID" , & self . wResID ) . field ( "szModName" , & self . szModName ) . field ( "szResName" , & self . szResName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFOEXW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor && self . wResID == other . wResID && self . szModName == other . szModName && self . szResName == other . szResName } } impl :: std :: cmp :: Eq for ICONINFOEXW { } unsafe impl :: windows :: Abi for ICONINFOEXW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONMETRICSA { pub cbSize : u32 , pub iHorzSpacing : i32 , pub iVertSpacing : i32 , pub iTitleWrap : i32 , pub lfFont : super::super::Graphics::Gdi:: LOGFONTA } impl ICONMETRICSA { } impl :: std :: default :: Default for ICONMETRICSA { fn default ( ) -> Self { Self { cbSize : 0 , iHorzSpacing : 0 , iVertSpacing : 0 , iTitleWrap : 0 , lfFont : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONMETRICSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONMETRICSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "iHorzSpacing" , & self . iHorzSpacing ) . field ( "iVertSpacing" , & self . iVertSpacing ) . field ( "iTitleWrap" , & self . iTitleWrap ) . field ( "lfFont" , & self . lfFont ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONMETRICSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iHorzSpacing == other . iHorzSpacing && self . iVertSpacing == other . iVertSpacing && self . iTitleWrap == other . iTitleWrap && self . lfFont == other . lfFont } } impl :: std :: cmp :: Eq for ICONMETRICSA { } unsafe impl :: windows :: Abi for ICONMETRICSA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONMETRICSW { pub cbSize : u32 , pub iHorzSpacing : i32 , pub iVertSpacing : i32 , pub iTitleWrap : i32 , pub lfFont : super::super::Graphics::Gdi:: LOGFONTW } impl ICONMETRICSW { } impl :: std :: default :: Default for ICONMETRICSW { fn default ( ) -> Self { Self { cbSize : 0 , iHorzSpacing : 0 , iVertSpacing : 0 , iTitleWrap : 0 , lfFont : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONMETRICSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONMETRICSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "iHorzSpacing" , & self . iHorzSpacing ) . field ( "iVertSpacing" , & self . iVertSpacing ) . field ( "iTitleWrap" , & self . iTitleWrap ) . field ( "lfFont" , & self . lfFont ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONMETRICSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iHorzSpacing == other . iHorzSpacing && self . iVertSpacing == other . iVertSpacing && self . iTitleWrap == other . iTitleWrap && self . lfFont == other . lfFont } } impl :: std :: cmp :: Eq for ICONMETRICSW { } unsafe impl :: windows :: Abi for ICONMETRICSW { type Abi = Self ; type DefaultType = Self ; } pub const ICON_BIG : u32 = 1u32 ; pub const ICON_SMALL : u32 = 0u32 ; pub const ICON_SMALL2 : u32 = 2u32 ; pub const IDANI_CAPTION : u32 = 3u32 ; pub const IDANI_OPEN : u32 = 1u32 ; pub const IDC_APPSTARTING : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32650i32 as _ ) ; pub const IDC_ARROW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32512i32 as _ ) ; pub const IDC_CROSS : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32515i32 as _ ) ; pub const IDC_HAND : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32649i32 as _ ) ; pub const IDC_HELP : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32651i32 as _ ) ; pub const IDC_IBEAM : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32513i32 as _ ) ; pub const IDC_ICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32641i32 as _ ) ; pub const IDC_NO : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32648i32 as _ ) ; pub const IDC_PERSON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32672i32 as _ ) ; pub const IDC_PIN : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32671i32 as _ ) ; pub const IDC_SIZE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32640i32 as _ ) ; pub const IDC_SIZEALL : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32646i32 as _ ) ; pub const IDC_SIZENESW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32643i32 as _ ) ; pub const IDC_SIZENS : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32645i32 as _ ) ; pub const IDC_SIZENWSE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32642i32 as _ ) ; pub const IDC_SIZEWE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32644i32 as _ ) ; pub const IDC_UPARROW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32516i32 as _ ) ; pub const IDC_WAIT : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32514i32 as _ ) ; pub const IDHOT_SNAPDESKTOP : i32 = -2i32 ; pub const IDHOT_SNAPWINDOW : i32 = -1i32 ; pub const IDH_CANCEL : u32 = 28444u32 ; pub const IDH_GENERIC_HELP_BUTTON : u32 = 28442u32 ; pub const IDH_HELP : u32 = 28445u32 ; pub const IDH_MISSING_CONTEXT : u32 = 28441u32 ; pub const IDH_NO_HELP : u32 = 28440u32 ; pub const IDH_OK : u32 = 28443u32 ; pub const IDI_APPLICATION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32512u32 as _ ) ; pub const IDI_ASTERISK : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32516u32 as _ ) ; pub const IDI_EXCLAMATION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32515u32 as _ ) ; pub const IDI_HAND : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32513u32 as _ ) ; pub const IDI_QUESTION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32514u32 as _ ) ; pub const IDI_SHIELD : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32518u32 as _ ) ; pub const IDI_WINLOGO : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32517u32 as _ ) ; pub const IMAGE_ENHMETAFILE : u32 = 3u32 ; pub const INDEXID_CONTAINER : u32 = 0u32 ; pub const INDEXID_OBJECT : u32 = 0u32 ; pub const INPUTLANGCHANGE_BACKWARD : u32 = 4u32 ; pub const INPUTLANGCHANGE_FORWARD : u32 = 2u32 ; pub const INPUTLANGCHANGE_SYSCHARSET : u32 = 1u32 ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IPrintDialogCallback ( :: windows :: IUnknown ) ; impl IPrintDialogCallback { pub unsafe fn InitDone < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn SelectionChange < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn HandleMessage < 'a , > ( & self , hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , presult : * mut super::super::Foundation:: LRESULT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( presult ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IPrintDialogCallback { type Vtable = IPrintDialogCallback_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1481810627 ,25904 ,4561 , [ 182 ,163 ,0 ,0 ,248 ,117 ,123 ,249 ] , ) ; } impl :: std :: convert :: From < IPrintDialogCallback > for :: windows :: IUnknown { fn from ( value : IPrintDialogCallback ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IPrintDialogCallback > for :: windows :: IUnknown { fn from ( value : & IPrintDialogCallback ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IPrintDialogCallback { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a IPrintDialogCallback { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IPrintDialogCallback_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hdlg : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , presult : * mut super::super::Foundation:: LRESULT , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IPrintDialogServices ( :: windows :: IUnknown ) ; impl IPrintDialogServices { pub unsafe fn GetCurrentDevMode < > ( & self , pdevmode : * mut super::DisplayDevices:: DEVMODEA , pcbsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pdevmode ) , :: std :: mem :: transmute ( pcbsize ) , ) . ok ( ) } pub unsafe fn GetCurrentPrinterName < > ( & self , pprintername : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pprintername ) , :: std :: mem :: transmute ( pcchsize ) , ) . ok ( ) } pub unsafe fn GetCurrentPortName < > ( & self , pportname : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pportname ) , :: std :: mem :: transmute ( pcchsize ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IPrintDialogServices { type Vtable = IPrintDialogServices_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1352314586 ,22073 ,4561 , [ 182 ,161 ,0 ,0 ,248 ,117 ,123 ,249 ] , ) ; } impl :: std :: convert :: From < IPrintDialogServices > for :: windows :: IUnknown { fn from ( value : IPrintDialogServices ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IPrintDialogServices > for :: windows :: IUnknown { fn from ( value : & IPrintDialogServices ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IPrintDialogServices { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a IPrintDialogServices { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IPrintDialogServices_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pdevmode : * mut super::DisplayDevices:: DEVMODEA , pcbsize : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pprintername : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pportname : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: HRESULT , ) ; pub const ISMEX_CALLBACK : u32 = 4u32 ; pub const ISMEX_NOSEND : u32 = 0u32 ; pub const ISMEX_NOTIFY : u32 = 2u32 ; pub const ISMEX_REPLIED : u32 = 8u32 ; pub const ISMEX_SEND : u32 = 1u32 ; pub const ISOLATIONAWARE_MANIFEST_RESOURCE_ID : u32 = 2u32 ; pub const ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID : u32 = 3u32 ; pub const ISOLATIONPOLICY_BROWSER_MANIFEST_RESOURCE_ID : u32 = 5u32 ; pub const ISOLATIONPOLICY_MANIFEST_RESOURCE_ID : u32 = 4u32 ; pub unsafe fn InSendMessage < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InSendMessage ( ) -> super::super::Foundation:: BOOL ; } InSendMessage ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InSendMessageEx < > ( lpreserved : * mut :: std :: ffi :: c_void , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InSendMessageEx ( lpreserved : * mut :: std :: ffi :: c_void ) -> u32 ; } InSendMessageEx ( :: std :: mem :: transmute ( lpreserved ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IndexFilePath < 'a , > ( resourceindexer : * mut :: std :: ffi :: c_void , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ppresourceuri : * mut super::super::Foundation:: PWSTR , pqualifiercount : * mut u32 , ppqualifiers : * mut * mut IndexedResourceQualifier , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn IndexFilePath ( resourceindexer : * mut :: std :: ffi :: c_void , filepath : super::super::Foundation:: PWSTR , ppresourceuri : * mut super::super::Foundation:: PWSTR , pqualifiercount : * mut u32 , ppqualifiers : * mut * mut IndexedResourceQualifier ) -> :: windows :: HRESULT ; } IndexFilePath ( :: std :: mem :: transmute ( resourceindexer ) , filepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ppresourceuri ) , :: std :: mem :: transmute ( pqualifiercount ) , :: std :: mem :: transmute ( ppqualifiers ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct IndexedResourceQualifier { pub name : super::super::Foundation:: PWSTR , pub value : super::super::Foundation:: PWSTR } impl IndexedResourceQualifier { } impl :: std :: default :: Default for IndexedResourceQualifier { fn default ( ) -> Self { Self { name : :: std :: default :: Default :: default ( ) , value : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for IndexedResourceQualifier { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "IndexedResourceQualifier" ) . field ( "name" , & self . name ) . field ( "value" , & self . value ) . finish ( ) } } impl :: std :: cmp :: PartialEq for IndexedResourceQualifier { fn eq ( & self , other : & Self ) -> bool { self . name == other . name && self . value == other . value } } impl :: std :: cmp :: Eq for IndexedResourceQualifier { } unsafe impl :: windows :: Abi for IndexedResourceQualifier { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn InheritWindowMonitor < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinherit : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InheritWindowMonitor ( hwnd : super::super::Foundation:: HWND , hwndinherit : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } InheritWindowMonitor ( hwnd . into_param ( ) . abi ( ) , hwndinherit . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuA ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } InsertMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuItemA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmi : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuItemA ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmi : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } InsertMenuItemA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuItemW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmi : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuItemW ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmi : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } InsertMenuItemW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuW ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } InsertMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InternalGetWindowText < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pstring : super::super::Foundation:: PWSTR , cchmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InternalGetWindowText ( hwnd : super::super::Foundation:: HWND , pstring : super::super::Foundation:: PWSTR , cchmaxcount : i32 ) -> i32 ; } InternalGetWindowText ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pstring ) , :: std :: mem :: transmute ( cchmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharAlphaA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaNumericA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaNumericA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharAlphaNumericA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaNumericW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaNumericW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharAlphaNumericW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharAlphaW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharLowerA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharLowerA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharLowerA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharUpperA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharUpperA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharUpperA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharUpperW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharUpperW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharUpperW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsChild < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsChild ( hwndparent : super::super::Foundation:: HWND , hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsChild ( hwndparent . into_param ( ) . abi ( ) , hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsDialogMessageA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsDialogMessageA ( hdlg : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } IsDialogMessageA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsDialogMessageW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsDialogMessageW ( hdlg : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } IsDialogMessageW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsGUIThread < 'a , > ( bconvert : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsGUIThread ( bconvert : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } IsGUIThread ( bconvert . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsHungAppWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsHungAppWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsHungAppWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsIconic < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsIconic ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsIconic ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsMenu ( hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } IsMenu ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsProcessDPIAware < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsProcessDPIAware ( ) -> super::super::Foundation:: BOOL ; } IsProcessDPIAware ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindowUnicode < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindowUnicode ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindowUnicode ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindowVisible < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindowVisible ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindowVisible ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWow64Message < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWow64Message ( ) -> super::super::Foundation:: BOOL ; } IsWow64Message ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsZoomed < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsZoomed ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsZoomed ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct KBDLLHOOKSTRUCT { pub vkCode : u32 , pub scanCode : u32 , pub flags : u32 , pub time : u32 , pub dwExtraInfo : usize } impl KBDLLHOOKSTRUCT { } impl :: std :: default :: Default for KBDLLHOOKSTRUCT { fn default ( ) -> Self { Self { vkCode : 0 , scanCode : 0 , flags : 0 , time : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for KBDLLHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "KBDLLHOOKSTRUCT" ) . field ( "vkCode" , & self . vkCode ) . field ( "scanCode" , & self . scanCode ) . field ( "flags" , & self . flags ) . field ( "time" , & self . time ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for KBDLLHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . vkCode == other . vkCode && self . scanCode == other . scanCode && self . flags == other . flags && self . time == other . time && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for KBDLLHOOKSTRUCT { } unsafe impl :: windows :: Abi for KBDLLHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const KF_ALTDOWN : u32 = 8192u32 ; pub const KF_DLGMODE : u32 = 2048u32 ; pub const KF_EXTENDED : u32 = 256u32 ; pub const KF_MENUMODE : u32 = 4096u32 ; pub const KF_REPEAT : u32 = 16384u32 ; pub const KF_UP : u32 = 32768u32 ; pub const KL_NAMELENGTH : u32 = 9u32 ; pub unsafe fn KillTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , uidevent : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn KillTimer ( hwnd : super::super::Foundation:: HWND , uidevent : usize ) -> super::super::Foundation:: BOOL ; } KillTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidevent ) ) } # [ 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 LAYERED_WINDOW_ATTRIBUTES_FLAGS ( pub u32 ) ; pub const LWA_ALPHA : LAYERED_WINDOW_ATTRIBUTES_FLAGS = LAYERED_WINDOW_ATTRIBUTES_FLAGS ( 2u32 ) ; pub const LWA_COLORKEY : LAYERED_WINDOW_ATTRIBUTES_FLAGS = LAYERED_WINDOW_ATTRIBUTES_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const LBN_DBLCLK : u32 = 2u32 ; pub const LBN_ERRSPACE : i32 = -2i32 ; pub const LBN_KILLFOCUS : u32 = 5u32 ; pub const LBN_SELCANCEL : u32 = 3u32 ; pub const LBN_SELCHANGE : u32 = 1u32 ; pub const LBN_SETFOCUS : u32 = 4u32 ; pub const LBS_COMBOBOX : i32 = 32768i32 ; pub const LBS_DISABLENOSCROLL : i32 = 4096i32 ; pub const LBS_EXTENDEDSEL : i32 = 2048i32 ; pub const LBS_HASSTRINGS : i32 = 64i32 ; pub const LBS_MULTICOLUMN : i32 = 512i32 ; pub const LBS_MULTIPLESEL : i32 = 8i32 ; pub const LBS_NODATA : i32 = 8192i32 ; pub const LBS_NOINTEGRALHEIGHT : i32 = 256i32 ; pub const LBS_NOREDRAW : i32 = 4i32 ; pub const LBS_NOSEL : i32 = 16384i32 ; pub const LBS_NOTIFY : i32 = 1i32 ; pub const LBS_OWNERDRAWFIXED : i32 = 16i32 ; pub const LBS_OWNERDRAWVARIABLE : i32 = 32i32 ; pub const LBS_SORT : i32 = 2i32 ; pub const LBS_STANDARD : i32 = 10485763i32 ; pub const LBS_USETABSTOPS : i32 = 128i32 ; pub const LBS_WANTKEYBOARDINPUT : i32 = 1024i32 ; pub const LB_ADDFILE : u32 = 406u32 ; pub const LB_ADDSTRING : u32 = 384u32 ; pub const LB_CTLCODE : i32 = 0i32 ; pub const LB_DELETESTRING : u32 = 386u32 ; pub const LB_DIR : u32 = 397u32 ; pub const LB_ERR : i32 = -1i32 ; pub const LB_ERRSPACE : i32 = -2i32 ; pub const LB_FINDSTRING : u32 = 399u32 ; pub const LB_FINDSTRINGEXACT : u32 = 418u32 ; pub const LB_GETANCHORINDEX : u32 = 413u32 ; pub const LB_GETCARETINDEX : u32 = 415u32 ; pub const LB_GETCOUNT : u32 = 395u32 ; pub const LB_GETCURSEL : u32 = 392u32 ; pub const LB_GETHORIZONTALEXTENT : u32 = 403u32 ; pub const LB_GETITEMDATA : u32 = 409u32 ; pub const LB_GETITEMHEIGHT : u32 = 417u32 ; pub const LB_GETITEMRECT : u32 = 408u32 ; pub const LB_GETLISTBOXINFO : u32 = 434u32 ; pub const LB_GETLOCALE : u32 = 422u32 ; pub const LB_GETSEL : u32 = 391u32 ; pub const LB_GETSELCOUNT : u32 = 400u32 ; pub const LB_GETSELITEMS : u32 = 401u32 ; pub const LB_GETTEXT : u32 = 393u32 ; pub const LB_GETTEXTLEN : u32 = 394u32 ; pub const LB_GETTOPINDEX : u32 = 398u32 ; pub const LB_INITSTORAGE : u32 = 424u32 ; pub const LB_INSERTSTRING : u32 = 385u32 ; pub const LB_ITEMFROMPOINT : u32 = 425u32 ; pub const LB_MSGMAX : u32 = 435u32 ; pub const LB_MULTIPLEADDSTRING : u32 = 433u32 ; pub const LB_OKAY : u32 = 0u32 ; pub const LB_RESETCONTENT : u32 = 388u32 ; pub const LB_SELECTSTRING : u32 = 396u32 ; pub const LB_SELITEMRANGE : u32 = 411u32 ; pub const LB_SELITEMRANGEEX : u32 = 387u32 ; pub const LB_SETANCHORINDEX : u32 = 412u32 ; pub const LB_SETCARETINDEX : u32 = 414u32 ; pub const LB_SETCOLUMNWIDTH : u32 = 405u32 ; pub const LB_SETCOUNT : u32 = 423u32 ; pub const LB_SETCURSEL : u32 = 390u32 ; pub const LB_SETHORIZONTALEXTENT : u32 = 404u32 ; pub const LB_SETITEMDATA : u32 = 410u32 ; pub const LB_SETITEMHEIGHT : u32 = 416u32 ; pub const LB_SETLOCALE : u32 = 421u32 ; pub const LB_SETSEL : u32 = 389u32 ; pub const LB_SETTABSTOPS : u32 = 402u32 ; pub const LB_SETTOPINDEX : u32 = 407u32 ; pub const LLKHF_INJECTED : u32 = 16u32 ; pub const LLKHF_LOWER_IL_INJECTED : u32 = 2u32 ; pub const LLMHF_INJECTED : u32 = 1u32 ; pub const LLMHF_LOWER_IL_INJECTED : u32 = 2u32 ; pub type LPCCHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPCFHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPFRHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPOFNHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPAGEPAINTHOOK = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPAGESETUPHOOK = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPRINTHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPSETUPHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub const LR_COLOR : u32 = 2u32 ; pub unsafe fn LoadAcceleratorsA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptablename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadAcceleratorsA ( hinstance : super::super::Foundation:: HINSTANCE , lptablename : super::super::Foundation:: PSTR ) -> HACCEL ; } LoadAcceleratorsA ( hinstance . into_param ( ) . abi ( ) , lptablename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadAcceleratorsW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptablename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadAcceleratorsW ( hinstance : super::super::Foundation:: HINSTANCE , lptablename : super::super::Foundation:: PWSTR ) -> HACCEL ; } LoadAcceleratorsW ( hinstance . into_param ( ) . abi ( ) , lptablename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpcursorname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorA ( hinstance : super::super::Foundation:: HINSTANCE , lpcursorname : super::super::Foundation:: PSTR ) -> HCURSOR ; } LoadCursorA ( hinstance . into_param ( ) . abi ( ) , lpcursorname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorFromFileA < 'a , > ( lpfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorFromFileA ( lpfilename : super::super::Foundation:: PSTR ) -> HCURSOR ; } LoadCursorFromFileA ( lpfilename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorFromFileW < 'a , > ( lpfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorFromFileW ( lpfilename : super::super::Foundation:: PWSTR ) -> HCURSOR ; } LoadCursorFromFileW ( lpfilename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpcursorname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorW ( hinstance : super::super::Foundation:: HINSTANCE , lpcursorname : super::super::Foundation:: PWSTR ) -> HCURSOR ; } LoadCursorW ( hinstance . into_param ( ) . abi ( ) , lpcursorname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadIconA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpiconname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadIconA ( hinstance : super::super::Foundation:: HINSTANCE , lpiconname : super::super::Foundation:: PSTR ) -> HICON ; } LoadIconA ( hinstance . into_param ( ) . abi ( ) , lpiconname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadIconW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpiconname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadIconW ( hinstance : super::super::Foundation:: HINSTANCE , lpiconname : super::super::Foundation:: PWSTR ) -> HICON ; } LoadIconW ( hinstance . into_param ( ) . abi ( ) , lpiconname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadImageA < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , name : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadImageA ( hinst : super::super::Foundation:: HINSTANCE , name : super::super::Foundation:: PSTR , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } LoadImageA ( hinst . into_param ( ) . abi ( ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( fuload ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadImageW < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , name : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadImageW ( hinst : super::super::Foundation:: HINSTANCE , name : super::super::Foundation:: PWSTR , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } LoadImageW ( hinst . into_param ( ) . abi ( ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( fuload ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpmenuname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuA ( hinstance : super::super::Foundation:: HINSTANCE , lpmenuname : super::super::Foundation:: PSTR ) -> HMENU ; } LoadMenuA ( hinstance . into_param ( ) . abi ( ) , lpmenuname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuIndirectA < > ( lpmenutemplate : * const :: std :: ffi :: c_void , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuIndirectA ( lpmenutemplate : * const :: std :: ffi :: c_void ) -> HMENU ; } LoadMenuIndirectA ( :: std :: mem :: transmute ( lpmenutemplate ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuIndirectW < > ( lpmenutemplate : * const :: std :: ffi :: c_void , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuIndirectW ( lpmenutemplate : * const :: std :: ffi :: c_void ) -> HMENU ; } LoadMenuIndirectW ( :: std :: mem :: transmute ( lpmenutemplate ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpmenuname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuW ( hinstance : super::super::Foundation:: HINSTANCE , lpmenuname : super::super::Foundation:: PWSTR ) -> HMENU ; } LoadMenuW ( hinstance . into_param ( ) . abi ( ) , lpmenuname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadStringA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , uid : u32 , lpbuffer : super::super::Foundation:: PSTR , cchbuffermax : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadStringA ( hinstance : super::super::Foundation:: HINSTANCE , uid : u32 , lpbuffer : super::super::Foundation:: PSTR , cchbuffermax : i32 ) -> i32 ; } LoadStringA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( cchbuffermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadStringW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , uid : u32 , lpbuffer : super::super::Foundation:: PWSTR , cchbuffermax : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadStringW ( hinstance : super::super::Foundation:: HINSTANCE , uid : u32 , lpbuffer : super::super::Foundation:: PWSTR , cchbuffermax : i32 ) -> i32 ; } LoadStringW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( cchbuffermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LockSetForegroundWindow < > ( ulockcode : FOREGROUND_WINDOW_LOCK_CODE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LockSetForegroundWindow ( ulockcode : FOREGROUND_WINDOW_LOCK_CODE ) -> super::super::Foundation:: BOOL ; } LockSetForegroundWindow ( :: std :: mem :: transmute ( ulockcode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LogicalToPhysicalPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LogicalToPhysicalPoint ( hwnd : super::super::Foundation:: HWND , lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } LogicalToPhysicalPoint ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LookupIconIdFromDirectory < 'a , > ( presbits : * mut u8 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LookupIconIdFromDirectory ( presbits : * mut u8 , ficon : super::super::Foundation:: BOOL ) -> i32 ; } LookupIconIdFromDirectory ( :: std :: mem :: transmute ( presbits ) , ficon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LookupIconIdFromDirectoryEx < 'a , > ( presbits : * mut u8 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LookupIconIdFromDirectoryEx ( presbits : * mut u8 , ficon : super::super::Foundation:: BOOL , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> i32 ; } LookupIconIdFromDirectoryEx ( :: std :: mem :: transmute ( presbits ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cxdesired ) , :: std :: mem :: transmute ( cydesired ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const MAPVK_VK_TO_CHAR : u32 = 2u32 ; pub const MAPVK_VK_TO_VSC : u32 = 0u32 ; pub const MAPVK_VK_TO_VSC_EX : u32 = 4u32 ; pub const MAPVK_VSC_TO_VK : u32 = 1u32 ; pub const MAPVK_VSC_TO_VK_EX : u32 = 3u32 ; pub const MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID : u32 = 16u32 ; pub const MAX_LOGICALDPIOVERRIDE : u32 = 2u32 ; pub const MAX_STR_BLOCKREASON : u32 = 256u32 ; pub const MAX_TOUCH_COUNT : u32 = 256u32 ; pub const MAX_TOUCH_PREDICTION_FILTER_TAPS : u32 = 3u32 ; pub const MA_ACTIVATE : u32 = 1u32 ; pub const MA_ACTIVATEANDEAT : u32 = 2u32 ; pub const MA_NOACTIVATE : u32 = 3u32 ; pub const MA_NOACTIVATEANDEAT : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDICREATESTRUCTA { pub szClass : super::super::Foundation:: PSTR , pub szTitle : super::super::Foundation:: PSTR , pub hOwner : super::super::Foundation:: HANDLE , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub style : WINDOW_STYLE , pub lParam : super::super::Foundation:: LPARAM } impl MDICREATESTRUCTA { } impl :: std :: default :: Default for MDICREATESTRUCTA { fn default ( ) -> Self { Self { szClass : :: std :: default :: Default :: default ( ) , szTitle : :: std :: default :: Default :: default ( ) , hOwner : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , style : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDICREATESTRUCTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDICREATESTRUCTA" ) . field ( "szClass" , & self . szClass ) . field ( "szTitle" , & self . szTitle ) . field ( "hOwner" , & self . hOwner ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "style" , & self . style ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDICREATESTRUCTA { fn eq ( & self , other : & Self ) -> bool { self . szClass == other . szClass && self . szTitle == other . szTitle && self . hOwner == other . hOwner && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . style == other . style && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for MDICREATESTRUCTA { } unsafe impl :: windows :: Abi for MDICREATESTRUCTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDICREATESTRUCTW { pub szClass : super::super::Foundation:: PWSTR , pub szTitle : super::super::Foundation:: PWSTR , pub hOwner : super::super::Foundation:: HANDLE , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub style : WINDOW_STYLE , pub lParam : super::super::Foundation:: LPARAM } impl MDICREATESTRUCTW { } impl :: std :: default :: Default for MDICREATESTRUCTW { fn default ( ) -> Self { Self { szClass : :: std :: default :: Default :: default ( ) , szTitle : :: std :: default :: Default :: default ( ) , hOwner : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , style : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDICREATESTRUCTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDICREATESTRUCTW" ) . field ( "szClass" , & self . szClass ) . field ( "szTitle" , & self . szTitle ) . field ( "hOwner" , & self . hOwner ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "style" , & self . style ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDICREATESTRUCTW { fn eq ( & self , other : & Self ) -> bool { self . szClass == other . szClass && self . szTitle == other . szTitle && self . hOwner == other . hOwner && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . style == other . style && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for MDICREATESTRUCTW { } unsafe impl :: windows :: Abi for MDICREATESTRUCTW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDINEXTMENU { pub hmenuIn : HMENU , pub hmenuNext : HMENU , pub hwndNext : super::super::Foundation:: HWND } impl MDINEXTMENU { } impl :: std :: default :: Default for MDINEXTMENU { fn default ( ) -> Self { Self { hmenuIn : :: std :: default :: Default :: default ( ) , hmenuNext : :: std :: default :: Default :: default ( ) , hwndNext : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDINEXTMENU { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDINEXTMENU" ) . field ( "hmenuIn" , & self . hmenuIn ) . field ( "hmenuNext" , & self . hmenuNext ) . field ( "hwndNext" , & self . hwndNext ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDINEXTMENU { fn eq ( & self , other : & Self ) -> bool { self . hmenuIn == other . hmenuIn && self . hmenuNext == other . hmenuNext && self . hwndNext == other . hwndNext } } impl :: std :: cmp :: Eq for MDINEXTMENU { } unsafe impl :: windows :: Abi for MDINEXTMENU { type Abi = Self ; type DefaultType = Self ; } pub const MDIS_ALLCHILDSTYLES : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUBARINFO { pub cbSize : u32 , pub rcBar : super::super::Foundation:: RECT , pub hMenu : HMENU , pub hwndMenu : super::super::Foundation:: HWND , pub _bitfield : i32 } impl MENUBARINFO { } impl :: std :: default :: Default for MENUBARINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcBar : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndMenu : :: std :: default :: Default :: default ( ) , _bitfield : 0 } } } impl :: std :: fmt :: Debug for MENUBARINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUBARINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcBar" , & self . rcBar ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndMenu" , & self . hwndMenu ) . field ( "_bitfield" , & self . _bitfield ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUBARINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcBar == other . rcBar && self . hMenu == other . hMenu && self . hwndMenu == other . hwndMenu && self . _bitfield == other . _bitfield } } impl :: std :: cmp :: Eq for MENUBARINFO { } unsafe impl :: windows :: Abi for MENUBARINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUGETOBJECTINFO { pub dwFlags : MENUGETOBJECTINFO_FLAGS , pub uPos : u32 , pub hmenu : HMENU , pub riid : * mut :: std :: ffi :: c_void , pub pvObj : * mut :: std :: ffi :: c_void } impl MENUGETOBJECTINFO { } impl :: std :: default :: Default for MENUGETOBJECTINFO { fn default ( ) -> Self { Self { dwFlags : :: std :: default :: Default :: default ( ) , uPos : 0 , hmenu : :: std :: default :: Default :: default ( ) , riid : :: std :: ptr :: null_mut ( ) , pvObj : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for MENUGETOBJECTINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUGETOBJECTINFO" ) . field ( "dwFlags" , & self . dwFlags ) . field ( "uPos" , & self . uPos ) . field ( "hmenu" , & self . hmenu ) . field ( "riid" , & self . riid ) . field ( "pvObj" , & self . pvObj ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUGETOBJECTINFO { fn eq ( & self , other : & Self ) -> bool { self . dwFlags == other . dwFlags && self . uPos == other . uPos && self . hmenu == other . hmenu && self . riid == other . riid && self . pvObj == other . pvObj } } impl :: std :: cmp :: Eq for MENUGETOBJECTINFO { } unsafe impl :: windows :: Abi for MENUGETOBJECTINFO { 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 MENUGETOBJECTINFO_FLAGS ( pub u32 ) ; pub const MNGOF_BOTTOMGAP : MENUGETOBJECTINFO_FLAGS = MENUGETOBJECTINFO_FLAGS ( 2u32 ) ; pub const MNGOF_TOPGAP : MENUGETOBJECTINFO_FLAGS = MENUGETOBJECTINFO_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for MENUGETOBJECTINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUGETOBJECTINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUGETOBJECTINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUGETOBJECTINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUGETOBJECTINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUGETOBJECTINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUINFO { pub cbSize : u32 , pub fMask : MENUINFO_MASK , pub dwStyle : MENUINFO_STYLE , pub cyMax : u32 , pub hbrBack : super::super::Graphics::Gdi:: HBRUSH , pub dwContextHelpID : u32 , pub dwMenuData : usize } impl MENUINFO { } impl :: std :: default :: Default for MENUINFO { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , cyMax : 0 , hbrBack : :: std :: default :: Default :: default ( ) , dwContextHelpID : 0 , dwMenuData : 0 } } } impl :: std :: fmt :: Debug for MENUINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "dwStyle" , & self . dwStyle ) . field ( "cyMax" , & self . cyMax ) . field ( "hbrBack" , & self . hbrBack ) . field ( "dwContextHelpID" , & self . dwContextHelpID ) . field ( "dwMenuData" , & self . dwMenuData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . dwStyle == other . dwStyle && self . cyMax == other . cyMax && self . hbrBack == other . hbrBack && self . dwContextHelpID == other . dwContextHelpID && self . dwMenuData == other . dwMenuData } } impl :: std :: cmp :: Eq for MENUINFO { } unsafe impl :: windows :: Abi for MENUINFO { 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 MENUINFO_MASK ( pub u32 ) ; pub const MIM_APPLYTOSUBMENUS : MENUINFO_MASK = MENUINFO_MASK ( 2147483648u32 ) ; pub const MIM_BACKGROUND : MENUINFO_MASK = MENUINFO_MASK ( 2u32 ) ; pub const MIM_HELPID : MENUINFO_MASK = MENUINFO_MASK ( 4u32 ) ; pub const MIM_MAXHEIGHT : MENUINFO_MASK = MENUINFO_MASK ( 1u32 ) ; pub const MIM_MENUDATA : MENUINFO_MASK = MENUINFO_MASK ( 8u32 ) ; pub const MIM_STYLE : MENUINFO_MASK = MENUINFO_MASK ( 16u32 ) ; impl :: std :: convert :: From < u32 > for MENUINFO_MASK { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUINFO_MASK { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUINFO_MASK { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUINFO_MASK { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUINFO_MASK { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUINFO_MASK { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENUINFO_STYLE ( pub u32 ) ; pub const MNS_AUTODISMISS : MENUINFO_STYLE = MENUINFO_STYLE ( 268435456u32 ) ; pub const MNS_CHECKORBMP : MENUINFO_STYLE = MENUINFO_STYLE ( 67108864u32 ) ; pub const MNS_DRAGDROP : MENUINFO_STYLE = MENUINFO_STYLE ( 536870912u32 ) ; pub const MNS_MODELESS : MENUINFO_STYLE = MENUINFO_STYLE ( 1073741824u32 ) ; pub const MNS_NOCHECK : MENUINFO_STYLE = MENUINFO_STYLE ( 2147483648u32 ) ; pub const MNS_NOTIFYBYPOS : MENUINFO_STYLE = MENUINFO_STYLE ( 134217728u32 ) ; impl :: std :: convert :: From < u32 > for MENUINFO_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUINFO_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUINFO_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUINFO_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUINFO_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUINFO_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMINFOA { pub cbSize : u32 , pub fMask : MENU_ITEM_MASK , pub fType : MENU_ITEM_TYPE , pub fState : MENU_ITEM_STATE , pub wID : u32 , pub hSubMenu : HMENU , pub hbmpChecked : super::super::Graphics::Gdi:: HBITMAP , pub hbmpUnchecked : super::super::Graphics::Gdi:: HBITMAP , pub dwItemData : usize , pub dwTypeData : super::super::Foundation:: PSTR , pub cch : u32 , pub hbmpItem : super::super::Graphics::Gdi:: HBITMAP } impl MENUITEMINFOA { } impl :: std :: default :: Default for MENUITEMINFOA { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , fType : :: std :: default :: Default :: default ( ) , fState : :: std :: default :: Default :: default ( ) , wID : 0 , hSubMenu : :: std :: default :: Default :: default ( ) , hbmpChecked : :: std :: default :: Default :: default ( ) , hbmpUnchecked : :: std :: default :: Default :: default ( ) , dwItemData : 0 , dwTypeData : :: std :: default :: Default :: default ( ) , cch : 0 , hbmpItem : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MENUITEMINFOA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMINFOA" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "fType" , & self . fType ) . field ( "fState" , & self . fState ) . field ( "wID" , & self . wID ) . field ( "hSubMenu" , & self . hSubMenu ) . field ( "hbmpChecked" , & self . hbmpChecked ) . field ( "hbmpUnchecked" , & self . hbmpUnchecked ) . field ( "dwItemData" , & self . dwItemData ) . field ( "dwTypeData" , & self . dwTypeData ) . field ( "cch" , & self . cch ) . field ( "hbmpItem" , & self . hbmpItem ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMINFOA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . fType == other . fType && self . fState == other . fState && self . wID == other . wID && self . hSubMenu == other . hSubMenu && self . hbmpChecked == other . hbmpChecked && self . hbmpUnchecked == other . hbmpUnchecked && self . dwItemData == other . dwItemData && self . dwTypeData == other . dwTypeData && self . cch == other . cch && self . hbmpItem == other . hbmpItem } } impl :: std :: cmp :: Eq for MENUITEMINFOA { } unsafe impl :: windows :: Abi for MENUITEMINFOA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMINFOW { pub cbSize : u32 , pub fMask : MENU_ITEM_MASK , pub fType : MENU_ITEM_TYPE , pub fState : MENU_ITEM_STATE , pub wID : u32 , pub hSubMenu : HMENU , pub hbmpChecked : super::super::Graphics::Gdi:: HBITMAP , pub hbmpUnchecked : super::super::Graphics::Gdi:: HBITMAP , pub dwItemData : usize , pub dwTypeData : super::super::Foundation:: PWSTR , pub cch : u32 , pub hbmpItem : super::super::Graphics::Gdi:: HBITMAP } impl MENUITEMINFOW { } impl :: std :: default :: Default for MENUITEMINFOW { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , fType : :: std :: default :: Default :: default ( ) , fState : :: std :: default :: Default :: default ( ) , wID : 0 , hSubMenu : :: std :: default :: Default :: default ( ) , hbmpChecked : :: std :: default :: Default :: default ( ) , hbmpUnchecked : :: std :: default :: Default :: default ( ) , dwItemData : 0 , dwTypeData : :: std :: default :: Default :: default ( ) , cch : 0 , hbmpItem : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MENUITEMINFOW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMINFOW" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "fType" , & self . fType ) . field ( "fState" , & self . fState ) . field ( "wID" , & self . wID ) . field ( "hSubMenu" , & self . hSubMenu ) . field ( "hbmpChecked" , & self . hbmpChecked ) . field ( "hbmpUnchecked" , & self . hbmpUnchecked ) . field ( "dwItemData" , & self . dwItemData ) . field ( "dwTypeData" , & self . dwTypeData ) . field ( "cch" , & self . cch ) . field ( "hbmpItem" , & self . hbmpItem ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMINFOW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . fType == other . fType && self . fState == other . fState && self . wID == other . wID && self . hSubMenu == other . hSubMenu && self . hbmpChecked == other . hbmpChecked && self . hbmpUnchecked == other . hbmpUnchecked && self . dwItemData == other . dwItemData && self . dwTypeData == other . dwTypeData && self . cch == other . cch && self . hbmpItem == other . hbmpItem } } impl :: std :: cmp :: Eq for MENUITEMINFOW { } unsafe impl :: windows :: Abi for MENUITEMINFOW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMTEMPLATE { pub mtOption : u16 , pub mtID : u16 , pub mtString : [ u16 ;1 ] } impl MENUITEMTEMPLATE { } impl :: std :: default :: Default for MENUITEMTEMPLATE { fn default ( ) -> Self { Self { mtOption : 0 , mtID : 0 , mtString : [ 0 ;1 ] } } } impl :: std :: fmt :: Debug for MENUITEMTEMPLATE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMTEMPLATE" ) . field ( "mtOption" , & self . mtOption ) . field ( "mtID" , & self . mtID ) . field ( "mtString" , & self . mtString ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMTEMPLATE { fn eq ( & self , other : & Self ) -> bool { self . mtOption == other . mtOption && self . mtID == other . mtID && self . mtString == other . mtString } } impl :: std :: cmp :: Eq for MENUITEMTEMPLATE { } unsafe impl :: windows :: Abi for MENUITEMTEMPLATE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMTEMPLATEHEADER { pub versionNumber : u16 , pub offset : u16 } impl MENUITEMTEMPLATEHEADER { } impl :: std :: default :: Default for MENUITEMTEMPLATEHEADER { fn default ( ) -> Self { Self { versionNumber : 0 , offset : 0 } } } impl :: std :: fmt :: Debug for MENUITEMTEMPLATEHEADER { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMTEMPLATEHEADER" ) . field ( "versionNumber" , & self . versionNumber ) . field ( "offset" , & self . offset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMTEMPLATEHEADER { fn eq ( & self , other : & Self ) -> bool { self . versionNumber == other . versionNumber && self . offset == other . offset } } impl :: std :: cmp :: Eq for MENUITEMTEMPLATEHEADER { } unsafe impl :: windows :: Abi for MENUITEMTEMPLATEHEADER { 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 MENU_ITEM_FLAGS ( pub u32 ) ; pub const MF_BYCOMMAND : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_BYPOSITION : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 1024u32 ) ; pub const MF_BITMAP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4u32 ) ; pub const MF_CHECKED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 8u32 ) ; pub const MF_DISABLED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 2u32 ) ; pub const MF_ENABLED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_GRAYED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 1u32 ) ; pub const MF_MENUBARBREAK : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 32u32 ) ; pub const MF_MENUBREAK : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 64u32 ) ; pub const MF_OWNERDRAW : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 256u32 ) ; pub const MF_POPUP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16u32 ) ; pub const MF_SEPARATOR : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 2048u32 ) ; pub const MF_STRING : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_UNCHECKED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_INSERT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_CHANGE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; pub const MF_APPEND : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 256u32 ) ; pub const MF_DELETE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 512u32 ) ; pub const MF_REMOVE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4096u32 ) ; pub const MF_USECHECKBITMAPS : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 512u32 ) ; pub const MF_UNHILITE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_HILITE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; pub const MF_DEFAULT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4096u32 ) ; pub const MF_SYSMENU : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 8192u32 ) ; pub const MF_HELP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16384u32 ) ; pub const MF_RIGHTJUSTIFY : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16384u32 ) ; pub const MF_MOUSESELECT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 32768u32 ) ; pub const MF_END : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_MASK ( pub u32 ) ; pub const MIIM_BITMAP : MENU_ITEM_MASK = MENU_ITEM_MASK ( 128u32 ) ; pub const MIIM_CHECKMARKS : MENU_ITEM_MASK = MENU_ITEM_MASK ( 8u32 ) ; pub const MIIM_DATA : MENU_ITEM_MASK = MENU_ITEM_MASK ( 32u32 ) ; pub const MIIM_FTYPE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 256u32 ) ; pub const MIIM_ID : MENU_ITEM_MASK = MENU_ITEM_MASK ( 2u32 ) ; pub const MIIM_STATE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 1u32 ) ; pub const MIIM_STRING : MENU_ITEM_MASK = MENU_ITEM_MASK ( 64u32 ) ; pub const MIIM_SUBMENU : MENU_ITEM_MASK = MENU_ITEM_MASK ( 4u32 ) ; pub const MIIM_TYPE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 16u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_MASK { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_MASK { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_MASK { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_MASK { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_MASK { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_MASK { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_STATE ( pub u32 ) ; pub const MFS_GRAYED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 3u32 ) ; pub const MFS_DISABLED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 3u32 ) ; pub const MFS_CHECKED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 8u32 ) ; pub const MFS_HILITE : MENU_ITEM_STATE = MENU_ITEM_STATE ( 128u32 ) ; pub const MFS_ENABLED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_UNCHECKED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_UNHILITE : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_DEFAULT : MENU_ITEM_STATE = MENU_ITEM_STATE ( 4096u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_STATE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_STATE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_STATE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_STATE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_STATE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_STATE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_TYPE ( pub u32 ) ; pub const MFT_BITMAP : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 4u32 ) ; pub const MFT_MENUBARBREAK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 32u32 ) ; pub const MFT_MENUBREAK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 64u32 ) ; pub const MFT_OWNERDRAW : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 256u32 ) ; pub const MFT_RADIOCHECK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 512u32 ) ; pub const MFT_RIGHTJUSTIFY : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 16384u32 ) ; pub const MFT_RIGHTORDER : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 8192u32 ) ; pub const MFT_SEPARATOR : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 2048u32 ) ; pub const MFT_STRING : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 0u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ 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 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_BLOCK { pub LowId : u32 , pub HighId : u32 , pub OffsetToEntries : u32 } impl MESSAGE_RESOURCE_BLOCK { } impl :: std :: default :: Default for MESSAGE_RESOURCE_BLOCK { fn default ( ) -> Self { Self { LowId : 0 , HighId : 0 , OffsetToEntries : 0 } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_BLOCK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_BLOCK" ) . field ( "LowId" , & self . LowId ) . field ( "HighId" , & self . HighId ) . field ( "OffsetToEntries" , & self . OffsetToEntries ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_BLOCK { fn eq ( & self , other : & Self ) -> bool { self . LowId == other . LowId && self . HighId == other . HighId && self . OffsetToEntries == other . OffsetToEntries } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_BLOCK { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_BLOCK { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_DATA { pub NumberOfBlocks : u32 , pub Blocks : [ MESSAGE_RESOURCE_BLOCK ;1 ] } impl MESSAGE_RESOURCE_DATA { } impl :: std :: default :: Default for MESSAGE_RESOURCE_DATA { fn default ( ) -> Self { Self { NumberOfBlocks : 0 , Blocks : [ :: std :: default :: Default :: default ( ) ;1 ] } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_DATA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_DATA" ) . field ( "NumberOfBlocks" , & self . NumberOfBlocks ) . field ( "Blocks" , & self . Blocks ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_DATA { fn eq ( & self , other : & Self ) -> bool { self . NumberOfBlocks == other . NumberOfBlocks && self . Blocks == other . Blocks } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_DATA { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_DATA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_ENTRY { pub Length : u16 , pub Flags : u16 , pub Text : [ u8 ;1 ] } impl MESSAGE_RESOURCE_ENTRY { } impl :: std :: default :: Default for MESSAGE_RESOURCE_ENTRY { fn default ( ) -> Self { Self { Length : 0 , Flags : 0 , Text : [ 0 ;1 ] } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_ENTRY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_ENTRY" ) . field ( "Length" , & self . Length ) . field ( "Flags" , & self . Flags ) . field ( "Text" , & self . Text ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_ENTRY { fn eq ( & self , other : & Self ) -> bool { self . Length == other . Length && self . Flags == other . Flags && self . Text == other . Text } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_ENTRY { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_ENTRY { type Abi = Self ; type DefaultType = Self ; } pub const METRICS_USEDEFAULT : i32 = -1i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MINIMIZEDMETRICS { pub cbSize : u32 , pub iWidth : i32 , pub iHorzGap : i32 , pub iVertGap : i32 , pub iArrange : MINIMIZEDMETRICS_ARRANGE } impl MINIMIZEDMETRICS { } impl :: std :: default :: Default for MINIMIZEDMETRICS { fn default ( ) -> Self { Self { cbSize : 0 , iWidth : 0 , iHorzGap : 0 , iVertGap : 0 , iArrange : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MINIMIZEDMETRICS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MINIMIZEDMETRICS" ) . field ( "cbSize" , & self . cbSize ) . field ( "iWidth" , & self . iWidth ) . field ( "iHorzGap" , & self . iHorzGap ) . field ( "iVertGap" , & self . iVertGap ) . field ( "iArrange" , & self . iArrange ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MINIMIZEDMETRICS { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iWidth == other . iWidth && self . iHorzGap == other . iHorzGap && self . iVertGap == other . iVertGap && self . iArrange == other . iArrange } } impl :: std :: cmp :: Eq for MINIMIZEDMETRICS { } unsafe impl :: windows :: Abi for MINIMIZEDMETRICS { 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 MINIMIZEDMETRICS_ARRANGE ( pub i32 ) ; pub const ARW_BOTTOMLEFT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 0i32 ) ; pub const ARW_BOTTOMRIGHT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 1i32 ) ; pub const ARW_TOPLEFT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 2i32 ) ; pub const ARW_TOPRIGHT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 3i32 ) ; impl :: std :: convert :: From < i32 > for MINIMIZEDMETRICS_ARRANGE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MINIMIZEDMETRICS_ARRANGE { type Abi = Self ; type DefaultType = Self ; } pub const MINIMUM_RESERVED_MANIFEST_RESOURCE_ID : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MINMAXINFO { pub ptReserved : super::super::Foundation:: POINT , pub ptMaxSize : super::super::Foundation:: POINT , pub ptMaxPosition : super::super::Foundation:: POINT , pub ptMinTrackSize : super::super::Foundation:: POINT , pub ptMaxTrackSize : super::super::Foundation:: POINT } impl MINMAXINFO { } impl :: std :: default :: Default for MINMAXINFO { fn default ( ) -> Self { Self { ptReserved : :: std :: default :: Default :: default ( ) , ptMaxSize : :: std :: default :: Default :: default ( ) , ptMaxPosition : :: std :: default :: Default :: default ( ) , ptMinTrackSize : :: std :: default :: Default :: default ( ) , ptMaxTrackSize : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MINMAXINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MINMAXINFO" ) . field ( "ptReserved" , & self . ptReserved ) . field ( "ptMaxSize" , & self . ptMaxSize ) . field ( "ptMaxPosition" , & self . ptMaxPosition ) . field ( "ptMinTrackSize" , & self . ptMinTrackSize ) . field ( "ptMaxTrackSize" , & self . ptMaxTrackSize ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MINMAXINFO { fn eq ( & self , other : & Self ) -> bool { self . ptReserved == other . ptReserved && self . ptMaxSize == other . ptMaxSize && self . ptMaxPosition == other . ptMaxPosition && self . ptMinTrackSize == other . ptMinTrackSize && self . ptMaxTrackSize == other . ptMaxTrackSize } } impl :: std :: cmp :: Eq for MINMAXINFO { } unsafe impl :: windows :: Abi for MINMAXINFO { type Abi = Self ; type DefaultType = Self ; } pub const MIN_LOGICALDPIOVERRIDE : i32 = -2i32 ; pub const MKF_AVAILABLE : u32 = 2u32 ; pub const MKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const MKF_HOTKEYACTIVE : u32 = 4u32 ; pub const MKF_HOTKEYSOUND : u32 = 16u32 ; pub const MKF_INDICATOR : u32 = 32u32 ; pub const MKF_LEFTBUTTONDOWN : u32 = 16777216u32 ; pub const MKF_LEFTBUTTONSEL : u32 = 268435456u32 ; pub const MKF_MODIFIERS : u32 = 64u32 ; pub const MKF_MOUSEKEYSON : u32 = 1u32 ; pub const MKF_MOUSEMODE : u32 = 2147483648u32 ; pub const MKF_REPLACENUMBERS : u32 = 128u32 ; pub const MKF_RIGHTBUTTONDOWN : u32 = 33554432u32 ; pub const MKF_RIGHTBUTTONSEL : u32 = 536870912u32 ; pub const MK_CONTROL : u32 = 8u32 ; pub const MK_LBUTTON : u32 = 1u32 ; pub const MK_MBUTTON : u32 = 16u32 ; pub const MK_RBUTTON : u32 = 2u32 ; pub const MK_SHIFT : u32 = 4u32 ; pub const MK_XBUTTON1 : u32 = 32u32 ; pub const MK_XBUTTON2 : u32 = 64u32 ; pub const MNC_CLOSE : u32 = 1u32 ; pub const MNC_EXECUTE : u32 = 2u32 ; pub const MNC_IGNORE : u32 = 0u32 ; pub const MNC_SELECT : u32 = 3u32 ; pub const MND_CONTINUE : u32 = 0u32 ; pub const MND_ENDMENU : u32 = 1u32 ; pub const MNGO_NOERROR : u32 = 1u32 ; pub const MNGO_NOINTERFACE : u32 = 0u32 ; pub const MN_GETHMENU : u32 = 481u32 ; pub const MONITORINFOF_PRIMARY : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MOUSEHOOKSTRUCT { pub pt : super::super::Foundation:: POINT , pub hwnd : super::super::Foundation:: HWND , pub wHitTestCode : u32 , pub dwExtraInfo : usize } impl MOUSEHOOKSTRUCT { } impl :: std :: default :: Default for MOUSEHOOKSTRUCT { fn default ( ) -> Self { Self { pt : :: std :: default :: Default :: default ( ) , hwnd : :: std :: default :: Default :: default ( ) , wHitTestCode : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for MOUSEHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MOUSEHOOKSTRUCT" ) . field ( "pt" , & self . pt ) . field ( "hwnd" , & self . hwnd ) . field ( "wHitTestCode" , & self . wHitTestCode ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MOUSEHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . pt == other . pt && self . hwnd == other . hwnd && self . wHitTestCode == other . wHitTestCode && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for MOUSEHOOKSTRUCT { } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MOUSEHOOKSTRUCTEX { pub __AnonymousBase_winuser_L1173_C46 : MOUSEHOOKSTRUCT , pub mouseData : MOUSEHOOKSTRUCTEX_MOUSE_DATA } impl MOUSEHOOKSTRUCTEX { } impl :: std :: default :: Default for MOUSEHOOKSTRUCTEX { fn default ( ) -> Self { Self { __AnonymousBase_winuser_L1173_C46 : :: std :: default :: Default :: default ( ) , mouseData : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MOUSEHOOKSTRUCTEX { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MOUSEHOOKSTRUCTEX" ) . field ( "__AnonymousBase_winuser_L1173_C46" , & self . __AnonymousBase_winuser_L1173_C46 ) . field ( "mouseData" , & self . mouseData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MOUSEHOOKSTRUCTEX { fn eq ( & self , other : & Self ) -> bool { self . __AnonymousBase_winuser_L1173_C46 == other . __AnonymousBase_winuser_L1173_C46 && self . mouseData == other . mouseData } } impl :: std :: cmp :: Eq for MOUSEHOOKSTRUCTEX { } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCTEX { 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 MOUSEHOOKSTRUCTEX_MOUSE_DATA ( pub u32 ) ; pub const XBUTTON1 : MOUSEHOOKSTRUCTEX_MOUSE_DATA = MOUSEHOOKSTRUCTEX_MOUSE_DATA ( 1u32 ) ; pub const XBUTTON2 : MOUSEHOOKSTRUCTEX_MOUSE_DATA = MOUSEHOOKSTRUCTEX_MOUSE_DATA ( 2u32 ) ; impl :: std :: convert :: From < u32 > for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const MOUSEWHEEL_ROUTING_FOCUS : u32 = 0u32 ; pub const MOUSEWHEEL_ROUTING_HYBRID : u32 = 1u32 ; pub const MOUSEWHEEL_ROUTING_MOUSE_POS : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MSG { pub hwnd : super::super::Foundation:: HWND , pub message : u32 , pub wParam : super::super::Foundation:: WPARAM , pub lParam : super::super::Foundation:: LPARAM , pub time : u32 , pub pt : super::super::Foundation:: POINT } impl MSG { } impl :: std :: default :: Default for MSG { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , message : 0 , wParam : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) , time : 0 , pt : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MSG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSG" ) . field ( "hwnd" , & self . hwnd ) . field ( "message" , & self . message ) . field ( "wParam" , & self . wParam ) . field ( "lParam" , & self . lParam ) . field ( "time" , & self . time ) . field ( "pt" , & self . pt ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSG { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . message == other . message && self . wParam == other . wParam && self . lParam == other . lParam && self . time == other . time && self . pt == other . pt } } impl :: std :: cmp :: Eq for MSG { } unsafe impl :: windows :: Abi for MSG { type Abi = Self ; type DefaultType = Self ; } pub type MSGBOXCALLBACK = unsafe extern "system" fn ( lphelpinfo : * mut super::Shell:: HELPINFO ) ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct MSGBOXPARAMSA { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PSTR , pub lpszCaption : super::super::Foundation:: PSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: std :: option :: Option < MSGBOXCALLBACK > , pub dwLanguageId : u32 } impl MSGBOXPARAMSA { } impl :: std :: default :: Default for MSGBOXPARAMSA { fn default ( ) -> Self { Self { cbSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszText : :: std :: default :: Default :: default ( ) , lpszCaption : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , lpszIcon : :: std :: default :: Default :: default ( ) , dwContextHelpId : 0 , lpfnMsgBoxCallback : :: std :: default :: Default :: default ( ) , dwLanguageId : 0 } } } impl :: std :: fmt :: Debug for MSGBOXPARAMSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSGBOXPARAMSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszText" , & self . lpszText ) . field ( "lpszCaption" , & self . lpszCaption ) . field ( "dwStyle" , & self . dwStyle ) . field ( "lpszIcon" , & self . lpszIcon ) . field ( "dwContextHelpId" , & self . dwContextHelpId ) . field ( "dwLanguageId" , & self . dwLanguageId ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSGBOXPARAMSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpszText == other . lpszText && self . lpszCaption == other . lpszCaption && self . dwStyle == other . dwStyle && self . lpszIcon == other . lpszIcon && self . dwContextHelpId == other . dwContextHelpId && self . lpfnMsgBoxCallback . map ( | f | f as usize ) == other . lpfnMsgBoxCallback . map ( | f | f as usize ) && self . dwLanguageId == other . dwLanguageId } } impl :: std :: cmp :: Eq for MSGBOXPARAMSA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct MSGBOXPARAMSA_abi { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PSTR , pub lpszCaption : super::super::Foundation:: PSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: windows :: RawPtr , pub dwLanguageId : u32 } unsafe impl :: windows :: Abi for MSGBOXPARAMSA { type Abi = MSGBOXPARAMSA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct MSGBOXPARAMSW { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PWSTR , pub lpszCaption : super::super::Foundation:: PWSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PWSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: std :: option :: Option < MSGBOXCALLBACK > , pub dwLanguageId : u32 } impl MSGBOXPARAMSW { } impl :: std :: default :: Default for MSGBOXPARAMSW { fn default ( ) -> Self { Self { cbSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszText : :: std :: default :: Default :: default ( ) , lpszCaption : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , lpszIcon : :: std :: default :: Default :: default ( ) , dwContextHelpId : 0 , lpfnMsgBoxCallback : :: std :: default :: Default :: default ( ) , dwLanguageId : 0 } } } impl :: std :: fmt :: Debug for MSGBOXPARAMSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSGBOXPARAMSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszText" , & self . lpszText ) . field ( "lpszCaption" , & self . lpszCaption ) . field ( "dwStyle" , & self . dwStyle ) . field ( "lpszIcon" , & self . lpszIcon ) . field ( "dwContextHelpId" , & self . dwContextHelpId ) . field ( "dwLanguageId" , & self . dwLanguageId ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSGBOXPARAMSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpszText == other . lpszText && self . lpszCaption == other . lpszCaption && self . dwStyle == other . dwStyle && self . lpszIcon == other . lpszIcon && self . dwContextHelpId == other . dwContextHelpId && self . lpfnMsgBoxCallback . map ( | f | f as usize ) == other . lpfnMsgBoxCallback . map ( | f | f as usize ) && self . dwLanguageId == other . dwLanguageId } } impl :: std :: cmp :: Eq for MSGBOXPARAMSW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct MSGBOXPARAMSW_abi { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PWSTR , pub lpszCaption : super::super::Foundation:: PWSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PWSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: windows :: RawPtr , pub dwLanguageId : u32 } unsafe impl :: windows :: Abi for MSGBOXPARAMSW { type Abi = MSGBOXPARAMSW_abi ; 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 MSGFLTINFO_STATUS ( pub u32 ) ; pub const MSGFLTINFO_NONE : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 0u32 ) ; pub const MSGFLTINFO_ALLOWED_HIGHER : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 3u32 ) ; pub const MSGFLTINFO_ALREADYALLOWED_FORWND : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 1u32 ) ; pub const MSGFLTINFO_ALREADYDISALLOWED_FORWND : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for MSGFLTINFO_STATUS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MSGFLTINFO_STATUS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MSGFLTINFO_STATUS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MSGFLTINFO_STATUS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MSGFLTINFO_STATUS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MSGFLTINFO_STATUS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const MSGF_DIALOGBOX : u32 = 0u32 ; pub const MSGF_MAX : u32 = 8u32 ; pub const MSGF_MENU : u32 = 2u32 ; pub const MSGF_MESSAGEBOX : u32 = 1u32 ; pub const MSGF_NEXTWINDOW : u32 = 6u32 ; pub const MSGF_SCROLLBAR : u32 = 5u32 ; pub const MSGF_USER : u32 = 4096u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MSLLHOOKSTRUCT { pub pt : super::super::Foundation:: POINT , pub mouseData : MOUSEHOOKSTRUCTEX_MOUSE_DATA , pub flags : u32 , pub time : u32 , pub dwExtraInfo : usize } impl MSLLHOOKSTRUCT { } impl :: std :: default :: Default for MSLLHOOKSTRUCT { fn default ( ) -> Self { Self { pt : :: std :: default :: Default :: default ( ) , mouseData : :: std :: default :: Default :: default ( ) , flags : 0 , time : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for MSLLHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSLLHOOKSTRUCT" ) . field ( "pt" , & self . pt ) . field ( "mouseData" , & self . mouseData ) . field ( "flags" , & self . flags ) . field ( "time" , & self . time ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSLLHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . pt == other . pt && self . mouseData == other . mouseData && self . flags == other . flags && self . time == other . time && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for MSLLHOOKSTRUCT { } unsafe impl :: windows :: Abi for MSLLHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MapDialogRect < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MapDialogRect ( hdlg : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } MapDialogRect ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MenuItemFromPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ptscreen : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MenuItemFromPoint ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , ptscreen : super::super::Foundation:: POINT ) -> i32 ; } MenuItemFromPoint ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , ptscreen . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , 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 ; } MessageBoxA ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxExA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , utype : MESSAGEBOX_STYLE , wlanguageid : u16 , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxExA ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PSTR , lpcaption : super::super::Foundation:: PSTR , utype : MESSAGEBOX_STYLE , wlanguageid : u16 ) -> MESSAGEBOX_RESULT ; } MessageBoxExA ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) , :: std :: mem :: transmute ( wlanguageid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxExW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , utype : MESSAGEBOX_STYLE , wlanguageid : u16 , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxExW ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PWSTR , lpcaption : super::super::Foundation:: PWSTR , utype : MESSAGEBOX_STYLE , wlanguageid : u16 ) -> MESSAGEBOX_RESULT ; } MessageBoxExW ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) , :: std :: mem :: transmute ( wlanguageid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxIndirectA < > ( lpmbp : * const MSGBOXPARAMSA , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxIndirectA ( lpmbp : * const MSGBOXPARAMSA_abi ) -> MESSAGEBOX_RESULT ; } MessageBoxIndirectA ( :: std :: mem :: transmute ( lpmbp ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxIndirectW < > ( lpmbp : * const MSGBOXPARAMSW , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxIndirectW ( lpmbp : * const MSGBOXPARAMSW_abi ) -> MESSAGEBOX_RESULT ; } MessageBoxIndirectW ( :: std :: mem :: transmute ( lpmbp ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , utype : MESSAGEBOX_STYLE , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxW ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PWSTR , lpcaption : super::super::Foundation:: PWSTR , utype : MESSAGEBOX_STYLE ) -> MESSAGEBOX_RESULT ; } MessageBoxW ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ModifyMenuA < 'a , > ( hmnu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ModifyMenuA ( hmnu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } ModifyMenuA ( hmnu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ModifyMenuW < 'a , > ( hmnu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ModifyMenuW ( hmnu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } ModifyMenuW ( hmnu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MoveWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , brepaint : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MoveWindow ( hwnd : super::super::Foundation:: HWND , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , brepaint : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } MoveWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , brepaint . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateConfig < 'a , > ( platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , outputxmlfile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateConfig ( platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , outputxmlfile : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmCreateConfig ( :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , outputxmlfile . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateConfigInMemory < 'a , > ( platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateConfigInMemory ( platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmCreateConfigInMemory ( :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceFile < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputdirectory : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceFile ( indexer : MrmResourceIndexerHandle , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputdirectory : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmCreateResourceFile ( indexer . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( packagingmode ) , :: std :: mem :: transmute ( packagingoptions ) , outputdirectory . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceFileInMemory < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputpridata : * mut * mut u8 , outputprisize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceFileInMemory ( indexer : MrmResourceIndexerHandle , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputpridata : * mut * mut u8 , outputprisize : * mut u32 ) -> :: windows :: HRESULT ; } MrmCreateResourceFileInMemory ( indexer . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( packagingmode ) , :: std :: mem :: transmute ( packagingoptions ) , :: std :: mem :: transmute ( outputpridata ) , :: std :: mem :: transmute ( outputprisize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexer < 'a , > ( packagefamilyname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexer ( packagefamilyname : super::super::Foundation:: PWSTR , projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexer ( packagefamilyname . into_param ( ) . abi ( ) , projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousPriData < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , pridata : * mut u8 , prisize : u32 , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousPriData ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , pridata : * mut u8 , prisize : u32 , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousPriData ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pridata ) , :: std :: mem :: transmute ( prisize ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousPriFile < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , prifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousPriFile ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , prifile : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousPriFile ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , prifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaData < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaxmldata : * mut u8 , schemaxmlsize : u32 , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousSchemaData ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , schemaxmldata : * mut u8 , schemaxmlsize : u32 , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousSchemaData ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( schemaxmldata ) , :: std :: mem :: transmute ( schemaxmlsize ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaFile < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemafile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousSchemaFile ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , schemafile : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousSchemaFile ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , schemafile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDestroyIndexerAndMessages < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDestroyIndexerAndMessages ( indexer : MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmDestroyIndexerAndMessages ( indexer . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriDataInMemory < > ( inputpridata : * mut u8 , inputprisize : u32 , schemapridata : * mut u8 , schemaprisize : u32 , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriDataInMemory ( inputpridata : * mut u8 , inputprisize : u32 , schemapridata : * mut u8 , schemaprisize : u32 , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmDumpPriDataInMemory ( :: std :: mem :: transmute ( inputpridata ) , :: std :: mem :: transmute ( inputprisize ) , :: std :: mem :: transmute ( schemapridata ) , :: std :: mem :: transmute ( schemaprisize ) , :: std :: mem :: transmute ( dumptype ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriFile < 'a , > ( indexfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaprifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dumptype : MrmDumpType , outputxmlfile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriFile ( indexfilename : super::super::Foundation:: PWSTR , schemaprifile : super::super::Foundation:: PWSTR , dumptype : MrmDumpType , outputxmlfile : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmDumpPriFile ( indexfilename . into_param ( ) . abi ( ) , schemaprifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dumptype ) , outputxmlfile . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriFileInMemory < 'a , > ( indexfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaprifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriFileInMemory ( indexfilename : super::super::Foundation:: PWSTR , schemaprifile : super::super::Foundation:: PWSTR , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmDumpPriFileInMemory ( indexfilename . into_param ( ) . abi ( ) , schemaprifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dumptype ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ 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 MrmDumpType ( pub i32 ) ; pub const MrmDumpType_Basic : MrmDumpType = MrmDumpType ( 0i32 ) ; pub const MrmDumpType_Detailed : MrmDumpType = MrmDumpType ( 1i32 ) ; pub const MrmDumpType_Schema : MrmDumpType = MrmDumpType ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmDumpType { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmDumpType { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MrmFreeMemory < > ( data : * mut u8 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmFreeMemory ( data : * mut u8 ) -> :: windows :: HRESULT ; } MrmFreeMemory ( :: std :: mem :: transmute ( data ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexEmbeddedData < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , embeddeddata : * const u8 , embeddeddatasize : u32 , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexEmbeddedData ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , embeddeddata : * const u8 , embeddeddatasize : u32 , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexEmbeddedData ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( embeddeddata ) , :: std :: mem :: transmute ( embeddeddatasize ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexFile < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexFile ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , filepath : super::super::Foundation:: PWSTR , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexFile ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , filepath . into_param ( ) . abi ( ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexFileAutoQualifiers < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexFileAutoQualifiers ( indexer : MrmResourceIndexerHandle , filepath : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexFileAutoQualifiers ( indexer . into_param ( ) . abi ( ) , filepath . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexResourceContainerAutoQualifiers < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , containerpath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexResourceContainerAutoQualifiers ( indexer : MrmResourceIndexerHandle , containerpath : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexResourceContainerAutoQualifiers ( indexer . into_param ( ) . abi ( ) , containerpath . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexString < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , resourcestring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexString ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , resourcestring : super::super::Foundation:: PWSTR , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexString ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , resourcestring . into_param ( ) . abi ( ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ 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 MrmPackagingMode ( pub i32 ) ; pub const MrmPackagingModeStandaloneFile : MrmPackagingMode = MrmPackagingMode ( 0i32 ) ; pub const MrmPackagingModeAutoSplit : MrmPackagingMode = MrmPackagingMode ( 1i32 ) ; pub const MrmPackagingModeResourcePack : MrmPackagingMode = MrmPackagingMode ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmPackagingMode { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPackagingMode { 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 MrmPackagingOptions ( pub i32 ) ; pub const MrmPackagingOptionsNone : MrmPackagingOptions = MrmPackagingOptions ( 0i32 ) ; pub const MrmPackagingOptionsOmitSchemaFromResourcePacks : MrmPackagingOptions = MrmPackagingOptions ( 1i32 ) ; pub const MrmPackagingOptionsSplitLanguageVariants : MrmPackagingOptions = MrmPackagingOptions ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmPackagingOptions { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPackagingOptions { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MrmPeekResourceIndexerMessages < 'a , > ( handle : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , messages : * mut * mut MrmResourceIndexerMessage , nummsgs : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmPeekResourceIndexerMessages ( handle : MrmResourceIndexerHandle , messages : * mut * mut MrmResourceIndexerMessage , nummsgs : * mut u32 ) -> :: windows :: HRESULT ; } MrmPeekResourceIndexerMessages ( handle . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( messages ) , :: std :: mem :: transmute ( nummsgs ) ) . ok ( ) } # [ 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 MrmPlatformVersion ( pub i32 ) ; pub const MrmPlatformVersion_Default : MrmPlatformVersion = MrmPlatformVersion ( 0i32 ) ; pub const MrmPlatformVersion_Windows10_0_0_0 : MrmPlatformVersion = MrmPlatformVersion ( 17432576i32 ) ; pub const MrmPlatformVersion_Windows10_0_0_5 : MrmPlatformVersion = MrmPlatformVersion ( 17432581i32 ) ; impl :: std :: convert :: From < i32 > for MrmPlatformVersion { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPlatformVersion { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MrmResourceIndexerHandle { pub handle : * mut :: std :: ffi :: c_void } impl MrmResourceIndexerHandle { } impl :: std :: default :: Default for MrmResourceIndexerHandle { fn default ( ) -> Self { Self { handle : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for MrmResourceIndexerHandle { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MrmResourceIndexerHandle" ) . field ( "handle" , & self . handle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MrmResourceIndexerHandle { fn eq ( & self , other : & Self ) -> bool { self . handle == other . handle } } impl :: std :: cmp :: Eq for MrmResourceIndexerHandle { } unsafe impl :: windows :: Abi for MrmResourceIndexerHandle { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MrmResourceIndexerMessage { pub severity : MrmResourceIndexerMessageSeverity , pub id : u32 , pub text : super::super::Foundation:: PWSTR } impl MrmResourceIndexerMessage { } impl :: std :: default :: Default for MrmResourceIndexerMessage { fn default ( ) -> Self { Self { severity : :: std :: default :: Default :: default ( ) , id : 0 , text : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MrmResourceIndexerMessage { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MrmResourceIndexerMessage" ) . field ( "severity" , & self . severity ) . field ( "id" , & self . id ) . field ( "text" , & self . text ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MrmResourceIndexerMessage { fn eq ( & self , other : & Self ) -> bool { self . severity == other . severity && self . id == other . id && self . text == other . text } } impl :: std :: cmp :: Eq for MrmResourceIndexerMessage { } unsafe impl :: windows :: Abi for MrmResourceIndexerMessage { 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 MrmResourceIndexerMessageSeverity ( pub i32 ) ; pub const MrmResourceIndexerMessageSeverityVerbose : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 0i32 ) ; pub const MrmResourceIndexerMessageSeverityInfo : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 1i32 ) ; pub const MrmResourceIndexerMessageSeverityWarning : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 2i32 ) ; pub const MrmResourceIndexerMessageSeverityError : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 3i32 ) ; impl :: std :: convert :: From < i32 > for MrmResourceIndexerMessageSeverity { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmResourceIndexerMessageSeverity { type Abi = Self ; type DefaultType = Self ; } pub type NAMEENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type NAMEENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NCCALCSIZE_PARAMS { pub rgrc : [ super::super::Foundation:: RECT ;3 ] , pub lppos : * mut WINDOWPOS } impl NCCALCSIZE_PARAMS { } impl :: std :: default :: Default for NCCALCSIZE_PARAMS { fn default ( ) -> Self { Self { rgrc : [ :: std :: default :: Default :: default ( ) ;3 ] , lppos : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for NCCALCSIZE_PARAMS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NCCALCSIZE_PARAMS" ) . field ( "rgrc" , & self . rgrc ) . field ( "lppos" , & self . lppos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NCCALCSIZE_PARAMS { fn eq ( & self , other : & Self ) -> bool { self . rgrc == other . rgrc && self . lppos == other . lppos } } impl :: std :: cmp :: Eq for NCCALCSIZE_PARAMS { } unsafe impl :: windows :: Abi for NCCALCSIZE_PARAMS { type Abi = Self ; type DefaultType = Self ; } pub const NFR_ANSI : u32 = 1u32 ; pub const NFR_UNICODE : u32 = 2u32 ; pub const NF_QUERY : u32 = 3u32 ; pub const NF_REQUERY : u32 = 4u32 ; pub const NID_EXTERNAL_PEN : u32 = 8u32 ; pub const NID_EXTERNAL_TOUCH : u32 = 2u32 ; pub const NID_INTEGRATED_PEN : u32 = 4u32 ; pub const NID_INTEGRATED_TOUCH : u32 = 1u32 ; pub const NID_MULTI_INPUT : u32 = 64u32 ; pub const NID_READY : u32 = 128u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NONCLIENTMETRICSA { pub cbSize : u32 , pub iBorderWidth : i32 , pub iScrollWidth : i32 , pub iScrollHeight : i32 , pub iCaptionWidth : i32 , pub iCaptionHeight : i32 , pub lfCaptionFont : super::super::Graphics::Gdi:: LOGFONTA , pub iSmCaptionWidth : i32 , pub iSmCaptionHeight : i32 , pub lfSmCaptionFont : super::super::Graphics::Gdi:: LOGFONTA , pub iMenuWidth : i32 , pub iMenuHeight : i32 , pub lfMenuFont : super::super::Graphics::Gdi:: LOGFONTA , pub lfStatusFont : super::super::Graphics::Gdi:: LOGFONTA , pub lfMessageFont : super::super::Graphics::Gdi:: LOGFONTA , pub iPaddedBorderWidth : i32 } impl NONCLIENTMETRICSA { } impl :: std :: default :: Default for NONCLIENTMETRICSA { fn default ( ) -> Self { Self { cbSize : 0 , iBorderWidth : 0 , iScrollWidth : 0 , iScrollHeight : 0 , iCaptionWidth : 0 , iCaptionHeight : 0 , lfCaptionFont : :: std :: default :: Default :: default ( ) , iSmCaptionWidth : 0 , iSmCaptionHeight : 0 , lfSmCaptionFont : :: std :: default :: Default :: default ( ) , iMenuWidth : 0 , iMenuHeight : 0 , lfMenuFont : :: std :: default :: Default :: default ( ) , lfStatusFont : :: std :: default :: Default :: default ( ) , lfMessageFont : :: std :: default :: Default :: default ( ) , iPaddedBorderWidth : 0 } } } impl :: std :: fmt :: Debug for NONCLIENTMETRICSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NONCLIENTMETRICSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "iBorderWidth" , & self . iBorderWidth ) . field ( "iScrollWidth" , & self . iScrollWidth ) . field ( "iScrollHeight" , & self . iScrollHeight ) . field ( "iCaptionWidth" , & self . iCaptionWidth ) . field ( "iCaptionHeight" , & self . iCaptionHeight ) . field ( "lfCaptionFont" , & self . lfCaptionFont ) . field ( "iSmCaptionWidth" , & self . iSmCaptionWidth ) . field ( "iSmCaptionHeight" , & self . iSmCaptionHeight ) . field ( "lfSmCaptionFont" , & self . lfSmCaptionFont ) . field ( "iMenuWidth" , & self . iMenuWidth ) . field ( "iMenuHeight" , & self . iMenuHeight ) . field ( "lfMenuFont" , & self . lfMenuFont ) . field ( "lfStatusFont" , & self . lfStatusFont ) . field ( "lfMessageFont" , & self . lfMessageFont ) . field ( "iPaddedBorderWidth" , & self . iPaddedBorderWidth ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NONCLIENTMETRICSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iBorderWidth == other . iBorderWidth && self . iScrollWidth == other . iScrollWidth && self . iScrollHeight == other . iScrollHeight && self . iCaptionWidth == other . iCaptionWidth && self . iCaptionHeight == other . iCaptionHeight && self . lfCaptionFont == other . lfCaptionFont && self . iSmCaptionWidth == other . iSmCaptionWidth && self . iSmCaptionHeight == other . iSmCaptionHeight && self . lfSmCaptionFont == other . lfSmCaptionFont && self . iMenuWidth == other . iMenuWidth && self . iMenuHeight == other . iMenuHeight && self . lfMenuFont == other . lfMenuFont && self . lfStatusFont == other . lfStatusFont && self . lfMessageFont == other . lfMessageFont && self . iPaddedBorderWidth == other . iPaddedBorderWidth } } impl :: std :: cmp :: Eq for NONCLIENTMETRICSA { } unsafe impl :: windows :: Abi for NONCLIENTMETRICSA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NONCLIENTMETRICSW { pub cbSize : u32 , pub iBorderWidth : i32 , pub iScrollWidth : i32 , pub iScrollHeight : i32 , pub iCaptionWidth : i32 , pub iCaptionHeight : i32 , pub lfCaptionFont : super::super::Graphics::Gdi:: LOGFONTW , pub iSmCaptionWidth : i32 , pub iSmCaptionHeight : i32 , pub lfSmCaptionFont : super::super::Graphics::Gdi:: LOGFONTW , pub iMenuWidth : i32 , pub iMenuHeight : i32 , pub lfMenuFont : super::super::Graphics::Gdi:: LOGFONTW , pub lfStatusFont : super::super::Graphics::Gdi:: LOGFONTW , pub lfMessageFont : super::super::Graphics::Gdi:: LOGFONTW , pub iPaddedBorderWidth : i32 } impl NONCLIENTMETRICSW { } impl :: std :: default :: Default for NONCLIENTMETRICSW { fn default ( ) -> Self { Self { cbSize : 0 , iBorderWidth : 0 , iScrollWidth : 0 , iScrollHeight : 0 , iCaptionWidth : 0 , iCaptionHeight : 0 , lfCaptionFont : :: std :: default :: Default :: default ( ) , iSmCaptionWidth : 0 , iSmCaptionHeight : 0 , lfSmCaptionFont : :: std :: default :: Default :: default ( ) , iMenuWidth : 0 , iMenuHeight : 0 , lfMenuFont : :: std :: default :: Default :: default ( ) , lfStatusFont : :: std :: default :: Default :: default ( ) , lfMessageFont : :: std :: default :: Default :: default ( ) , iPaddedBorderWidth : 0 } } } impl :: std :: fmt :: Debug for NONCLIENTMETRICSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NONCLIENTMETRICSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "iBorderWidth" , & self . iBorderWidth ) . field ( "iScrollWidth" , & self . iScrollWidth ) . field ( "iScrollHeight" , & self . iScrollHeight ) . field ( "iCaptionWidth" , & self . iCaptionWidth ) . field ( "iCaptionHeight" , & self . iCaptionHeight ) . field ( "lfCaptionFont" , & self . lfCaptionFont ) . field ( "iSmCaptionWidth" , & self . iSmCaptionWidth ) . field ( "iSmCaptionHeight" , & self . iSmCaptionHeight ) . field ( "lfSmCaptionFont" , & self . lfSmCaptionFont ) . field ( "iMenuWidth" , & self . iMenuWidth ) . field ( "iMenuHeight" , & self . iMenuHeight ) . field ( "lfMenuFont" , & self . lfMenuFont ) . field ( "lfStatusFont" , & self . lfStatusFont ) . field ( "lfMessageFont" , & self . lfMessageFont ) . field ( "iPaddedBorderWidth" , & self . iPaddedBorderWidth ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NONCLIENTMETRICSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iBorderWidth == other . iBorderWidth && self . iScrollWidth == other . iScrollWidth && self . iScrollHeight == other . iScrollHeight && self . iCaptionWidth == other . iCaptionWidth && self . iCaptionHeight == other . iCaptionHeight && self . lfCaptionFont == other . lfCaptionFont && self . iSmCaptionWidth == other . iSmCaptionWidth && self . iSmCaptionHeight == other . iSmCaptionHeight && self . lfSmCaptionFont == other . lfSmCaptionFont && self . iMenuWidth == other . iMenuWidth && self . iMenuHeight == other . iMenuHeight && self . lfMenuFont == other . lfMenuFont && self . lfStatusFont == other . lfStatusFont && self . lfMessageFont == other . lfMessageFont && self . iPaddedBorderWidth == other . iPaddedBorderWidth } } impl :: std :: cmp :: Eq for NONCLIENTMETRICSW { } unsafe impl :: windows :: Abi for NONCLIENTMETRICSW { type Abi = Self ; type DefaultType = Self ; } pub const OBM_BTNCORNERS : u32 = 32758u32 ; pub const OBM_BTSIZE : u32 = 32761u32 ; pub const OBM_CHECK : u32 = 32760u32 ; pub const OBM_CHECKBOXES : u32 = 32759u32 ; pub const OBM_CLOSE : u32 = 32754u32 ; pub const OBM_COMBO : u32 = 32738u32 ; pub const OBM_DNARROW : u32 = 32752u32 ; pub const OBM_DNARROWD : u32 = 32742u32 ; pub const OBM_DNARROWI : u32 = 32736u32 ; pub const OBM_LFARROW : u32 = 32750u32 ; pub const OBM_LFARROWD : u32 = 32740u32 ; pub const OBM_LFARROWI : u32 = 32734u32 ; pub const OBM_MNARROW : u32 = 32739u32 ; pub const OBM_OLD_CLOSE : u32 = 32767u32 ; pub const OBM_OLD_DNARROW : u32 = 32764u32 ; pub const OBM_OLD_LFARROW : u32 = 32762u32 ; pub const OBM_OLD_REDUCE : u32 = 32757u32 ; pub const OBM_OLD_RESTORE : u32 = 32755u32 ; pub const OBM_OLD_RGARROW : u32 = 32763u32 ; pub const OBM_OLD_UPARROW : u32 = 32765u32 ; pub const OBM_OLD_ZOOM : u32 = 32756u32 ; pub const OBM_REDUCE : u32 = 32749u32 ; pub const OBM_REDUCED : u32 = 32746u32 ; pub const OBM_RESTORE : u32 = 32747u32 ; pub const OBM_RESTORED : u32 = 32744u32 ; pub const OBM_RGARROW : u32 = 32751u32 ; pub const OBM_RGARROWD : u32 = 32741u32 ; pub const OBM_RGARROWI : u32 = 32735u32 ; pub const OBM_SIZE : u32 = 32766u32 ; pub const OBM_UPARROW : u32 = 32753u32 ; pub const OBM_UPARROWD : u32 = 32743u32 ; pub const OBM_UPARROWI : u32 = 32737u32 ; pub const OBM_ZOOM : u32 = 32748u32 ; pub const OBM_ZOOMD : u32 = 32745u32 ; pub const OCR_ICOCUR : u32 = 32647u32 ; pub const OCR_ICON : u32 = 32641u32 ; pub const OCR_SIZE : u32 = 32640u32 ; pub const ODA_DRAWENTIRE : u32 = 1u32 ; pub const ODA_FOCUS : u32 = 4u32 ; pub const ODA_SELECT : u32 = 2u32 ; pub const ODS_CHECKED : u32 = 8u32 ; pub const ODS_COMBOBOXEDIT : u32 = 4096u32 ; pub const ODS_DEFAULT : u32 = 32u32 ; pub const ODS_DISABLED : u32 = 4u32 ; pub const ODS_FOCUS : u32 = 16u32 ; pub const ODS_GRAYED : u32 = 2u32 ; pub const ODS_HOTLIGHT : u32 = 64u32 ; pub const ODS_INACTIVE : u32 = 128u32 ; pub const ODS_NOACCEL : u32 = 256u32 ; pub const ODS_NOFOCUSRECT : u32 = 512u32 ; pub const ODS_SELECTED : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYA { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEA , pub pszFile : super::super::Foundation:: PSTR } impl OFNOTIFYA { } impl :: std :: default :: Default for OFNOTIFYA { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , pszFile : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYA" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "pszFile" , & self . pszFile ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYA { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . pszFile == other . pszFile } } impl :: std :: cmp :: Eq for OFNOTIFYA { } unsafe impl :: windows :: Abi for OFNOTIFYA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYEXA { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEA , pub psf : * mut :: std :: ffi :: c_void , pub pidl : * mut :: std :: ffi :: c_void } impl OFNOTIFYEXA { } impl :: std :: default :: Default for OFNOTIFYEXA { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , psf : :: std :: ptr :: null_mut ( ) , pidl : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYEXA" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "psf" , & self . psf ) . field ( "pidl" , & self . pidl ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYEXA { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . psf == other . psf && self . pidl == other . pidl } } impl :: std :: cmp :: Eq for OFNOTIFYEXA { } unsafe impl :: windows :: Abi for OFNOTIFYEXA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYEXW { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEW , pub psf : * mut :: std :: ffi :: c_void , pub pidl : * mut :: std :: ffi :: c_void } impl OFNOTIFYEXW { } impl :: std :: default :: Default for OFNOTIFYEXW { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , psf : :: std :: ptr :: null_mut ( ) , pidl : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYEXW" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "psf" , & self . psf ) . field ( "pidl" , & self . pidl ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYEXW { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . psf == other . psf && self . pidl == other . pidl } } impl :: std :: cmp :: Eq for OFNOTIFYEXW { } unsafe impl :: windows :: Abi for OFNOTIFYEXW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYW { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEW , pub pszFile : super::super::Foundation:: PWSTR } impl OFNOTIFYW { } impl :: std :: default :: Default for OFNOTIFYW { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , pszFile : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYW" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "pszFile" , & self . pszFile ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYW { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . pszFile == other . pszFile } } impl :: std :: cmp :: Eq for OFNOTIFYW { } unsafe impl :: windows :: Abi for OFNOTIFYW { type Abi = Self ; type DefaultType = Self ; } pub const OFN_SHAREFALLTHROUGH : u32 = 2u32 ; pub const OFN_SHARENOWARN : u32 = 1u32 ; pub const OFN_SHAREWARN : u32 = 0u32 ; pub const OIC_BANG : u32 = 32515u32 ; pub const OIC_HAND : u32 = 32513u32 ; pub const OIC_NOTE : u32 = 32516u32 ; pub const OIC_QUES : u32 = 32514u32 ; pub const OIC_SAMPLE : u32 = 32512u32 ; pub const OIC_SHIELD : u32 = 32518u32 ; pub const OIC_WINLOGO : u32 = 32517u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAMEA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } impl OPENFILENAMEA { } impl :: std :: default :: Default for OPENFILENAMEA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , pvReserved : :: std :: ptr :: null_mut ( ) , dwReserved : 0 , FlagsEx : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAMEA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAMEA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "pvReserved" , & self . pvReserved ) . field ( "dwReserved" , & self . dwReserved ) . field ( "FlagsEx" , & self . FlagsEx ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAMEA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . pvReserved == other . pvReserved && self . dwReserved == other . dwReserved && self . FlagsEx == other . FlagsEx } } impl :: std :: cmp :: Eq for OPENFILENAMEA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAMEA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } unsafe impl :: windows :: Abi for OPENFILENAMEA { type Abi = OPENFILENAMEA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAMEW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } impl OPENFILENAMEW { } impl :: std :: default :: Default for OPENFILENAMEW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , pvReserved : :: std :: ptr :: null_mut ( ) , dwReserved : 0 , FlagsEx : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAMEW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAMEW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "pvReserved" , & self . pvReserved ) . field ( "dwReserved" , & self . dwReserved ) . field ( "FlagsEx" , & self . FlagsEx ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAMEW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . pvReserved == other . pvReserved && self . dwReserved == other . dwReserved && self . FlagsEx == other . FlagsEx } } impl :: std :: cmp :: Eq for OPENFILENAMEW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAMEW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } unsafe impl :: windows :: Abi for OPENFILENAMEW { type Abi = OPENFILENAMEW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAME_NT4A { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl OPENFILENAME_NT4A { } impl :: std :: default :: Default for OPENFILENAME_NT4A { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : 0 , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAME_NT4A { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAME_NT4A" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAME_NT4A { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for OPENFILENAME_NT4A { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAME_NT4A_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for OPENFILENAME_NT4A { type Abi = OPENFILENAME_NT4A_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAME_NT4W { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl OPENFILENAME_NT4W { } impl :: std :: default :: Default for OPENFILENAME_NT4W { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : 0 , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAME_NT4W { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAME_NT4W" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAME_NT4W { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for OPENFILENAME_NT4W { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAME_NT4W_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for OPENFILENAME_NT4W { type Abi = OPENFILENAME_NT4W_abi ; 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 OPEN_FILENAME_FLAGS ( pub u32 ) ; pub const OFN_READONLY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1u32 ) ; pub const OFN_OVERWRITEPROMPT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2u32 ) ; pub const OFN_HIDEREADONLY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4u32 ) ; pub const OFN_NOCHANGEDIR : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8u32 ) ; pub const OFN_SHOWHELP : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 16u32 ) ; pub const OFN_ENABLEHOOK : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 32u32 ) ; pub const OFN_ENABLETEMPLATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 64u32 ) ; pub const OFN_ENABLETEMPLATEHANDLE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 128u32 ) ; pub const OFN_NOVALIDATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 256u32 ) ; pub const OFN_ALLOWMULTISELECT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 512u32 ) ; pub const OFN_EXTENSIONDIFFERENT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1024u32 ) ; pub const OFN_PATHMUSTEXIST : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2048u32 ) ; pub const OFN_FILEMUSTEXIST : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4096u32 ) ; pub const OFN_CREATEPROMPT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8192u32 ) ; pub const OFN_SHAREAWARE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 16384u32 ) ; pub const OFN_NOREADONLYRETURN : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 32768u32 ) ; pub const OFN_NOTESTFILECREATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 65536u32 ) ; pub const OFN_NONETWORKBUTTON : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 131072u32 ) ; pub const OFN_NOLONGNAMES : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 262144u32 ) ; pub const OFN_EXPLORER : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 524288u32 ) ; pub const OFN_NODEREFERENCELINKS : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1048576u32 ) ; pub const OFN_LONGNAMES : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2097152u32 ) ; pub const OFN_ENABLEINCLUDENOTIFY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4194304u32 ) ; pub const OFN_ENABLESIZING : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8388608u32 ) ; pub const OFN_DONTADDTORECENT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 33554432u32 ) ; pub const OFN_FORCESHOWHIDDEN : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 268435456u32 ) ; impl :: std :: convert :: From < u32 > for OPEN_FILENAME_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for OPEN_FILENAME_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for OPEN_FILENAME_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for OPEN_FILENAME_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for OPEN_FILENAME_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for OPEN_FILENAME_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct OPEN_FILENAME_FLAGS_EX ( pub u32 ) ; pub const OFN_EX_NONE : OPEN_FILENAME_FLAGS_EX = OPEN_FILENAME_FLAGS_EX ( 0u32 ) ; pub const OFN_EX_NOPLACESBAR : OPEN_FILENAME_FLAGS_EX = OPEN_FILENAME_FLAGS_EX ( 1u32 ) ; impl :: std :: convert :: From < u32 > for OPEN_FILENAME_FLAGS_EX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for OPEN_FILENAME_FLAGS_EX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for OPEN_FILENAME_FLAGS_EX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for OPEN_FILENAME_FLAGS_EX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for OPEN_FILENAME_FLAGS_EX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for OPEN_FILENAME_FLAGS_EX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const ORD_LANGDRIVER : u32 = 1u32 ; pub unsafe fn OemToCharA < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharA ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } OemToCharA ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharBuffA < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharBuffA ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } OemToCharBuffA ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharBuffW < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PWSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharBuffW ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PWSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } OemToCharBuffW ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharW < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PWSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharW ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } OemToCharW ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenIcon < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OpenIcon ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } OpenIcon ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PAGESETUPDLGA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: std :: option :: Option < LPPAGESETUPHOOK > , pub lpfnPagePaintHook : :: std :: option :: Option < LPPAGEPAINTHOOK > , pub lpPageSetupTemplateName : super::super::Foundation:: PSTR , pub hPageSetupTemplate : isize } impl PAGESETUPDLGA { } impl :: std :: default :: Default for PAGESETUPDLGA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , Flags : :: std :: default :: Default :: default ( ) , ptPaperSize : :: std :: default :: Default :: default ( ) , rtMinMargin : :: std :: default :: Default :: default ( ) , rtMargin : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPageSetupHook : :: std :: default :: Default :: default ( ) , lpfnPagePaintHook : :: std :: default :: Default :: default ( ) , lpPageSetupTemplateName : :: std :: default :: Default :: default ( ) , hPageSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PAGESETUPDLGA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PAGESETUPDLGA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "Flags" , & self . Flags ) . field ( "ptPaperSize" , & self . ptPaperSize ) . field ( "rtMinMargin" , & self . rtMinMargin ) . field ( "rtMargin" , & self . rtMargin ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPageSetupTemplateName" , & self . lpPageSetupTemplateName ) . field ( "hPageSetupTemplate" , & self . hPageSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PAGESETUPDLGA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . Flags == other . Flags && self . ptPaperSize == other . ptPaperSize && self . rtMinMargin == other . rtMinMargin && self . rtMargin == other . rtMargin && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPageSetupHook . map ( | f | f as usize ) == other . lpfnPageSetupHook . map ( | f | f as usize ) && self . lpfnPagePaintHook . map ( | f | f as usize ) == other . lpfnPagePaintHook . map ( | f | f as usize ) && self . lpPageSetupTemplateName == other . lpPageSetupTemplateName && self . hPageSetupTemplate == other . hPageSetupTemplate } } impl :: std :: cmp :: Eq for PAGESETUPDLGA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PAGESETUPDLGA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: windows :: RawPtr , pub lpfnPagePaintHook : :: windows :: RawPtr , pub lpPageSetupTemplateName : super::super::Foundation:: PSTR , pub hPageSetupTemplate : isize } unsafe impl :: windows :: Abi for PAGESETUPDLGA { type Abi = PAGESETUPDLGA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PAGESETUPDLGW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: std :: option :: Option < LPPAGESETUPHOOK > , pub lpfnPagePaintHook : :: std :: option :: Option < LPPAGEPAINTHOOK > , pub lpPageSetupTemplateName : super::super::Foundation:: PWSTR , pub hPageSetupTemplate : isize } impl PAGESETUPDLGW { } impl :: std :: default :: Default for PAGESETUPDLGW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , Flags : :: std :: default :: Default :: default ( ) , ptPaperSize : :: std :: default :: Default :: default ( ) , rtMinMargin : :: std :: default :: Default :: default ( ) , rtMargin : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPageSetupHook : :: std :: default :: Default :: default ( ) , lpfnPagePaintHook : :: std :: default :: Default :: default ( ) , lpPageSetupTemplateName : :: std :: default :: Default :: default ( ) , hPageSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PAGESETUPDLGW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PAGESETUPDLGW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "Flags" , & self . Flags ) . field ( "ptPaperSize" , & self . ptPaperSize ) . field ( "rtMinMargin" , & self . rtMinMargin ) . field ( "rtMargin" , & self . rtMargin ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPageSetupTemplateName" , & self . lpPageSetupTemplateName ) . field ( "hPageSetupTemplate" , & self . hPageSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PAGESETUPDLGW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . Flags == other . Flags && self . ptPaperSize == other . ptPaperSize && self . rtMinMargin == other . rtMinMargin && self . rtMargin == other . rtMargin && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPageSetupHook . map ( | f | f as usize ) == other . lpfnPageSetupHook . map ( | f | f as usize ) && self . lpfnPagePaintHook . map ( | f | f as usize ) == other . lpfnPagePaintHook . map ( | f | f as usize ) && self . lpPageSetupTemplateName == other . lpPageSetupTemplateName && self . hPageSetupTemplate == other . hPageSetupTemplate } } impl :: std :: cmp :: Eq for PAGESETUPDLGW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PAGESETUPDLGW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: windows :: RawPtr , pub lpfnPagePaintHook : :: windows :: RawPtr , pub lpPageSetupTemplateName : super::super::Foundation:: PWSTR , pub hPageSetupTemplate : isize } unsafe impl :: windows :: Abi for PAGESETUPDLGW { type Abi = PAGESETUPDLGW_abi ; 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 PAGESETUPDLG_FLAGS ( pub u32 ) ; pub const PSD_DEFAULTMINMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 0u32 ) ; pub const PSD_DISABLEMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 16u32 ) ; pub const PSD_DISABLEORIENTATION : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 256u32 ) ; pub const PSD_DISABLEPAGEPAINTING : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 524288u32 ) ; pub const PSD_DISABLEPAPER : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 512u32 ) ; pub const PSD_DISABLEPRINTER : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 32u32 ) ; pub const PSD_ENABLEPAGEPAINTHOOK : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 262144u32 ) ; pub const PSD_ENABLEPAGESETUPHOOK : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 8192u32 ) ; pub const PSD_ENABLEPAGESETUPTEMPLATE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 32768u32 ) ; pub const PSD_ENABLEPAGESETUPTEMPLATEHANDLE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 131072u32 ) ; pub const PSD_INHUNDREDTHSOFMILLIMETERS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 8u32 ) ; pub const PSD_INTHOUSANDTHSOFINCHES : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 4u32 ) ; pub const PSD_INWININIINTLMEASURE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 0u32 ) ; pub const PSD_MARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2u32 ) ; pub const PSD_MINMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 1u32 ) ; pub const PSD_NONETWORKBUTTON : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2097152u32 ) ; pub const PSD_NOWARNING : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 128u32 ) ; pub const PSD_RETURNDEFAULT : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 1024u32 ) ; pub const PSD_SHOWHELP : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2048u32 ) ; impl :: std :: convert :: From < u32 > for PAGESETUPDLG_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PAGESETUPDLG_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PAGESETUPDLG_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PAGESETUPDLG_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PAGESETUPDLG_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PAGESETUPDLG_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const PBTF_APMRESUMEFROMFAILURE : u32 = 1u32 ; pub const PBT_APMBATTERYLOW : u32 = 9u32 ; pub const PBT_APMOEMEVENT : u32 = 11u32 ; pub const PBT_APMPOWERSTATUSCHANGE : u32 = 10u32 ; pub const PBT_APMQUERYSTANDBY : u32 = 1u32 ; pub const PBT_APMQUERYSTANDBYFAILED : u32 = 3u32 ; pub const PBT_APMQUERYSUSPEND : u32 = 0u32 ; pub const PBT_APMQUERYSUSPENDFAILED : u32 = 2u32 ; pub const PBT_APMRESUMEAUTOMATIC : u32 = 18u32 ; pub const PBT_APMRESUMECRITICAL : u32 = 6u32 ; pub const PBT_APMRESUMESTANDBY : u32 = 8u32 ; pub const PBT_APMRESUMESUSPEND : u32 = 7u32 ; pub const PBT_APMSTANDBY : u32 = 5u32 ; pub const PBT_APMSUSPEND : u32 = 4u32 ; pub const PBT_POWERSETTINGCHANGE : u32 = 32787u32 ; pub const PDC_ARRIVAL : u32 = 1u32 ; pub const PDC_MAPPING_CHANGE : u32 = 256u32 ; pub const PDC_MODE_ASPECTRATIOPRESERVED : u32 = 2048u32 ; pub const PDC_MODE_CENTERED : u32 = 128u32 ; pub const PDC_MODE_DEFAULT : u32 = 64u32 ; pub const PDC_ORIENTATION_0 : u32 = 4u32 ; pub const PDC_ORIENTATION_180 : u32 = 16u32 ; pub const PDC_ORIENTATION_270 : u32 = 32u32 ; pub const PDC_ORIENTATION_90 : u32 = 8u32 ; pub const PDC_ORIGIN : u32 = 1024u32 ; pub const PDC_REMOVAL : u32 = 2u32 ; pub const PDC_RESOLUTION : u32 = 512u32 ; pub const PD_RESULT_APPLY : u32 = 2u32 ; pub const PD_RESULT_CANCEL : u32 = 0u32 ; pub const PD_RESULT_PRINT : 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 PEEK_MESSAGE_REMOVE_TYPE ( pub u32 ) ; pub const PM_NOREMOVE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 0u32 ) ; pub const PM_REMOVE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 1u32 ) ; pub const PM_NOYIELD : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 2u32 ) ; pub const PM_QS_INPUT : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 67567616u32 ) ; pub const PM_QS_POSTMESSAGE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 9961472u32 ) ; pub const PM_QS_PAINT : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 2097152u32 ) ; pub const PM_QS_SENDMESSAGE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 4194304u32 ) ; impl :: std :: convert :: From < u32 > for PEEK_MESSAGE_REMOVE_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PEEK_MESSAGE_REMOVE_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PEEK_MESSAGE_REMOVE_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PEEK_MESSAGE_REMOVE_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PEEK_MESSAGE_REMOVE_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PEEK_MESSAGE_REMOVE_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const PENARBITRATIONTYPE_FIS : u32 = 2u32 ; pub const PENARBITRATIONTYPE_MAX : u32 = 4u32 ; pub const PENARBITRATIONTYPE_NONE : u32 = 0u32 ; pub const PENARBITRATIONTYPE_SPT : u32 = 3u32 ; pub const PENARBITRATIONTYPE_WIN8 : u32 = 1u32 ; pub const PENVISUALIZATION_CURSOR : u32 = 32u32 ; pub const PENVISUALIZATION_DOUBLETAP : u32 = 2u32 ; pub const PENVISUALIZATION_OFF : u32 = 0u32 ; pub const PENVISUALIZATION_ON : u32 = 35u32 ; pub const PENVISUALIZATION_TAP : u32 = 1u32 ; pub const PEN_FLAG_BARREL : u32 = 1u32 ; pub const PEN_FLAG_ERASER : u32 = 4u32 ; pub const PEN_FLAG_INVERTED : u32 = 2u32 ; pub const PEN_FLAG_NONE : u32 = 0u32 ; pub const PEN_MASK_NONE : u32 = 0u32 ; pub const PEN_MASK_PRESSURE : u32 = 1u32 ; pub const PEN_MASK_ROTATION : u32 = 2u32 ; pub const PEN_MASK_TILT_X : u32 = 4u32 ; pub const PEN_MASK_TILT_Y : u32 = 8u32 ; pub const PMB_ACTIVE : u32 = 1u32 ; pub const POINTER_DEVICE_PRODUCT_STRING_MAX : u32 = 520u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct POINTER_INPUT_TYPE ( pub i32 ) ; pub const PT_POINTER : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 1i32 ) ; pub const PT_TOUCH : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 2i32 ) ; pub const PT_PEN : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 3i32 ) ; pub const PT_MOUSE : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 4i32 ) ; pub const PT_TOUCHPAD : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 5i32 ) ; impl :: std :: convert :: From < i32 > for POINTER_INPUT_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for POINTER_INPUT_TYPE { type Abi = Self ; type DefaultType = Self ; } pub const POINTER_MESSAGE_FLAG_CANCELED : u32 = 32768u32 ; pub const POINTER_MESSAGE_FLAG_CONFIDENCE : u32 = 16384u32 ; pub const POINTER_MESSAGE_FLAG_FIFTHBUTTON : u32 = 256u32 ; pub const POINTER_MESSAGE_FLAG_FIRSTBUTTON : u32 = 16u32 ; pub const POINTER_MESSAGE_FLAG_FOURTHBUTTON : u32 = 128u32 ; pub const POINTER_MESSAGE_FLAG_INCONTACT : u32 = 4u32 ; pub const POINTER_MESSAGE_FLAG_INRANGE : u32 = 2u32 ; pub const POINTER_MESSAGE_FLAG_NEW : u32 = 1u32 ; pub const POINTER_MESSAGE_FLAG_PRIMARY : u32 = 8192u32 ; pub const POINTER_MESSAGE_FLAG_SECONDBUTTON : u32 = 32u32 ; pub const POINTER_MESSAGE_FLAG_THIRDBUTTON : u32 = 64u32 ; pub const POINTER_MOD_CTRL : u32 = 8u32 ; pub const POINTER_MOD_SHIFT : u32 = 4u32 ; pub type PREGISTERCLASSNAMEW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR ) -> u8 ; pub const PRF_CHECKVISIBLE : i32 = 1i32 ; pub const PRF_CHILDREN : i32 = 16i32 ; pub const PRF_CLIENT : i32 = 4i32 ; pub const PRF_ERASEBKGND : i32 = 8i32 ; pub const PRF_NONCLIENT : i32 = 2i32 ; pub const PRF_OWNED : i32 = 32i32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: std :: option :: Option < LPPRINTHOOKPROC > , pub lpfnSetupHook : :: std :: option :: Option < LPSETUPHOOKPROC > , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpSetupTemplateName : super::super::Foundation:: PSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } impl PRINTDLGA { } impl :: std :: default :: Default for PRINTDLGA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFromPage : 0 , nToPage : 0 , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPrintHook : :: std :: default :: Default :: default ( ) , lpfnSetupHook : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpSetupTemplateName : :: std :: default :: Default :: default ( ) , hPrintTemplate : 0 , hSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpSetupTemplateName" , & self . lpSetupTemplateName ) . field ( "hPrintTemplate" , & self . hPrintTemplate ) . field ( "hSetupTemplate" , & self . hSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . nFromPage == other . nFromPage && self . nToPage == other . nToPage && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPrintHook . map ( | f | f as usize ) == other . lpfnPrintHook . map ( | f | f as usize ) && self . lpfnSetupHook . map ( | f | f as usize ) == other . lpfnSetupHook . map ( | f | f as usize ) && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpSetupTemplateName == other . lpSetupTemplateName && self . hPrintTemplate == other . hPrintTemplate && self . hSetupTemplate == other . hSetupTemplate } } impl :: std :: cmp :: Eq for PRINTDLGA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: windows :: RawPtr , pub lpfnSetupHook : :: windows :: RawPtr , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpSetupTemplateName : super::super::Foundation:: PSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } unsafe impl :: windows :: Abi for PRINTDLGA { type Abi = PRINTDLGA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGEXA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpCallback : :: std :: option :: Option < :: windows :: IUnknown > , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } impl PRINTDLGEXA { } impl :: std :: default :: Default for PRINTDLGEXA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , Flags2 : 0 , ExclusionFlags : 0 , nPageRanges : 0 , nMaxPageRanges : 0 , lpPageRanges : :: std :: ptr :: null_mut ( ) , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpCallback : :: std :: default :: Default :: default ( ) , nPropertyPages : 0 , lphPropertyPages : :: std :: ptr :: null_mut ( ) , nStartPage : 0 , dwResultAction : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGEXA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "Flags2" , & self . Flags2 ) . field ( "ExclusionFlags" , & self . ExclusionFlags ) . field ( "nPageRanges" , & self . nPageRanges ) . field ( "nMaxPageRanges" , & self . nMaxPageRanges ) . field ( "lpPageRanges" , & self . lpPageRanges ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpCallback" , & self . lpCallback ) . field ( "nPropertyPages" , & self . nPropertyPages ) . field ( "lphPropertyPages" , & self . lphPropertyPages ) . field ( "nStartPage" , & self . nStartPage ) . field ( "dwResultAction" , & self . dwResultAction ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGEXA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . Flags2 == other . Flags2 && self . ExclusionFlags == other . ExclusionFlags && self . nPageRanges == other . nPageRanges && self . nMaxPageRanges == other . nMaxPageRanges && self . lpPageRanges == other . lpPageRanges && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpCallback == other . lpCallback && self . nPropertyPages == other . nPropertyPages && self . lphPropertyPages == other . lphPropertyPages && self . nStartPage == other . nStartPage && self . dwResultAction == other . dwResultAction } } impl :: std :: cmp :: Eq for PRINTDLGEXA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGEXA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpCallback : :: windows :: RawPtr , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } unsafe impl :: windows :: Abi for PRINTDLGEXA { type Abi = PRINTDLGEXA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGEXW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpCallback : :: std :: option :: Option < :: windows :: IUnknown > , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } impl PRINTDLGEXW { } impl :: std :: default :: Default for PRINTDLGEXW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , Flags2 : 0 , ExclusionFlags : 0 , nPageRanges : 0 , nMaxPageRanges : 0 , lpPageRanges : :: std :: ptr :: null_mut ( ) , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpCallback : :: std :: default :: Default :: default ( ) , nPropertyPages : 0 , lphPropertyPages : :: std :: ptr :: null_mut ( ) , nStartPage : 0 , dwResultAction : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGEXW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "Flags2" , & self . Flags2 ) . field ( "ExclusionFlags" , & self . ExclusionFlags ) . field ( "nPageRanges" , & self . nPageRanges ) . field ( "nMaxPageRanges" , & self . nMaxPageRanges ) . field ( "lpPageRanges" , & self . lpPageRanges ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpCallback" , & self . lpCallback ) . field ( "nPropertyPages" , & self . nPropertyPages ) . field ( "lphPropertyPages" , & self . lphPropertyPages ) . field ( "nStartPage" , & self . nStartPage ) . field ( "dwResultAction" , & self . dwResultAction ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGEXW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . Flags2 == other . Flags2 && self . ExclusionFlags == other . ExclusionFlags && self . nPageRanges == other . nPageRanges && self . nMaxPageRanges == other . nMaxPageRanges && self . lpPageRanges == other . lpPageRanges && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpCallback == other . lpCallback && self . nPropertyPages == other . nPropertyPages && self . lphPropertyPages == other . lphPropertyPages && self . nStartPage == other . nStartPage && self . dwResultAction == other . dwResultAction } } impl :: std :: cmp :: Eq for PRINTDLGEXW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGEXW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpCallback : :: windows :: RawPtr , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } unsafe impl :: windows :: Abi for PRINTDLGEXW { type Abi = PRINTDLGEXW_abi ; 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 PRINTDLGEX_FLAGS ( pub u32 ) ; pub const PD_ALLPAGES : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 0u32 ) ; pub const PD_COLLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16u32 ) ; pub const PD_CURRENTPAGE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4194304u32 ) ; pub const PD_DISABLEPRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 524288u32 ) ; pub const PD_ENABLEPRINTTEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16384u32 ) ; pub const PD_ENABLEPRINTTEMPLATEHANDLE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 65536u32 ) ; pub const PD_EXCLUSIONFLAGS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16777216u32 ) ; pub const PD_HIDEPRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1048576u32 ) ; pub const PD_NOCURRENTPAGE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8388608u32 ) ; pub const PD_NOPAGENUMS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8u32 ) ; pub const PD_NOSELECTION : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4u32 ) ; pub const PD_NOWARNING : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 128u32 ) ; pub const PD_PAGENUMS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2u32 ) ; pub const PD_PRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 32u32 ) ; pub const PD_RETURNDC : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 256u32 ) ; pub const PD_RETURNDEFAULT : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1024u32 ) ; pub const PD_RETURNIC : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 512u32 ) ; pub const PD_SELECTION : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1u32 ) ; pub const PD_USEDEVMODECOPIES : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 262144u32 ) ; pub const PD_USEDEVMODECOPIESANDCOLLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 262144u32 ) ; pub const PD_USELARGETEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 268435456u32 ) ; pub const PD_ENABLEPRINTHOOK : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4096u32 ) ; pub const PD_ENABLESETUPHOOK : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8192u32 ) ; pub const PD_ENABLESETUPTEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 32768u32 ) ; pub const PD_ENABLESETUPTEMPLATEHANDLE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 131072u32 ) ; pub const PD_NONETWORKBUTTON : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2097152u32 ) ; pub const PD_PRINTSETUP : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 64u32 ) ; pub const PD_SHOWHELP : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2048u32 ) ; impl :: std :: convert :: From < u32 > for PRINTDLGEX_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PRINTDLGEX_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PRINTDLGEX_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PRINTDLGEX_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PRINTDLGEX_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PRINTDLGEX_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: std :: option :: Option < LPPRINTHOOKPROC > , pub lpfnSetupHook : :: std :: option :: Option < LPSETUPHOOKPROC > , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpSetupTemplateName : super::super::Foundation:: PWSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } impl PRINTDLGW { } impl :: std :: default :: Default for PRINTDLGW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFromPage : 0 , nToPage : 0 , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPrintHook : :: std :: default :: Default :: default ( ) , lpfnSetupHook : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpSetupTemplateName : :: std :: default :: Default :: default ( ) , hPrintTemplate : 0 , hSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpSetupTemplateName" , & self . lpSetupTemplateName ) . field ( "hPrintTemplate" , & self . hPrintTemplate ) . field ( "hSetupTemplate" , & self . hSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . nFromPage == other . nFromPage && self . nToPage == other . nToPage && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPrintHook . map ( | f | f as usize ) == other . lpfnPrintHook . map ( | f | f as usize ) && self . lpfnSetupHook . map ( | f | f as usize ) == other . lpfnSetupHook . map ( | f | f as usize ) && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpSetupTemplateName == other . lpSetupTemplateName && self . hPrintTemplate == other . hPrintTemplate && self . hSetupTemplate == other . hSetupTemplate } } impl :: std :: cmp :: Eq for PRINTDLGW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: windows :: RawPtr , pub lpfnSetupHook : :: windows :: RawPtr , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpSetupTemplateName : super::super::Foundation:: PWSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } unsafe impl :: windows :: Abi for PRINTDLGW { type Abi = PRINTDLGW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct PRINTPAGERANGE { pub nFromPage : u32 , pub nToPage : u32 } impl PRINTPAGERANGE { } impl :: std :: default :: Default for PRINTPAGERANGE { fn default ( ) -> Self { Self { nFromPage : 0 , nToPage : 0 } } } impl :: std :: fmt :: Debug for PRINTPAGERANGE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTPAGERANGE" ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTPAGERANGE { fn eq ( & self , other : & Self ) -> bool { self . nFromPage == other . nFromPage && self . nToPage == other . nToPage } } impl :: std :: cmp :: Eq for PRINTPAGERANGE { } unsafe impl :: windows :: Abi for PRINTPAGERANGE { type Abi = Self ; type DefaultType = Self ; } pub type PROPENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PSTR , param2 : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCEXA = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PSTR , param2 : super::super::Foundation:: HANDLE , param3 : usize ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCEXW = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PWSTR , param2 : super::super::Foundation:: HANDLE , param3 : usize ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PWSTR , param2 : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; pub const PS_OPENTYPE_FONTTYPE : u32 = 65536u32 ; pub const PWR_CRITICALRESUME : u32 = 3u32 ; pub const PWR_FAIL : i32 = -1i32 ; pub const PWR_OK : u32 = 1u32 ; pub const PWR_SUSPENDREQUEST : u32 = 1u32 ; pub const PWR_SUSPENDRESUME : u32 = 2u32 ; pub const PW_RENDERFULLCONTENT : u32 = 2u32 ; pub unsafe fn PageSetupDlgA < > ( param0 : * mut PAGESETUPDLGA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PageSetupDlgA ( param0 : * mut PAGESETUPDLGA_abi ) -> super::super::Foundation:: BOOL ; } PageSetupDlgA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PageSetupDlgW < > ( param0 : * mut PAGESETUPDLGW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PageSetupDlgW ( param0 : * mut PAGESETUPDLGW_abi ) -> super::super::Foundation:: BOOL ; } PageSetupDlgW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PeekMessageA < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PeekMessageA ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE ) -> super::super::Foundation:: BOOL ; } PeekMessageA ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) , :: std :: mem :: transmute ( wremovemsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PeekMessageW < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PeekMessageW ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE ) -> super::super::Foundation:: BOOL ; } PeekMessageW ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) , :: std :: mem :: transmute ( wremovemsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PhysicalToLogicalPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PhysicalToLogicalPoint ( hwnd : super::super::Foundation:: HWND , lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } PhysicalToLogicalPoint ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostQuitMessage < > ( nexitcode : i32 , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostQuitMessage ( nexitcode : i32 ) ; } PostQuitMessage ( :: std :: mem :: transmute ( nexitcode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostThreadMessageA < 'a , > ( idthread : u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostThreadMessageA ( idthread : u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostThreadMessageA ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostThreadMessageW < 'a , > ( idthread : u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostThreadMessageW ( idthread : u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostThreadMessageW ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgA < > ( ppd : * mut PRINTDLGA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgA ( ppd : * mut PRINTDLGA_abi ) -> super::super::Foundation:: BOOL ; } PrintDlgA ( :: std :: mem :: transmute ( ppd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgExA < > ( ppd : * mut PRINTDLGEXA , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgExA ( ppd : * mut PRINTDLGEXA_abi ) -> :: windows :: HRESULT ; } PrintDlgExA ( :: std :: mem :: transmute ( ppd ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgExW < > ( ppd : * mut PRINTDLGEXW , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgExW ( ppd : * mut PRINTDLGEXW_abi ) -> :: windows :: HRESULT ; } PrintDlgExW ( :: std :: mem :: transmute ( ppd ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgW < > ( ppd : * mut PRINTDLGW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgW ( ppd : * mut PRINTDLGW_abi ) -> super::super::Foundation:: BOOL ; } PrintDlgW ( :: std :: mem :: transmute ( ppd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrivateExtractIconsA < 'a , > ( szfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PrivateExtractIconsA ( szfilename : super::super::Foundation:: PSTR , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 ) -> u32 ; } PrivateExtractIconsA ( szfilename . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niconindex ) , :: std :: mem :: transmute ( cxicon ) , :: std :: mem :: transmute ( cyicon ) , :: std :: mem :: transmute ( phicon ) , :: std :: mem :: transmute ( piconid ) , :: std :: mem :: transmute ( nicons ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrivateExtractIconsW < 'a , > ( szfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PrivateExtractIconsW ( szfilename : super::super::Foundation:: PWSTR , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 ) -> u32 ; } PrivateExtractIconsW ( szfilename . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niconindex ) , :: std :: mem :: transmute ( cxicon ) , :: std :: mem :: transmute ( cyicon ) , :: std :: mem :: transmute ( phicon ) , :: std :: mem :: transmute ( piconid ) , :: std :: mem :: transmute ( nicons ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const QS_POINTER : u32 = 4096u32 ; pub const QS_TOUCH : u32 = 2048u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct QUEUE_STATUS_FLAGS ( pub u32 ) ; pub const QS_ALLEVENTS : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1215u32 ) ; pub const QS_ALLINPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1279u32 ) ; pub const QS_ALLPOSTMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 256u32 ) ; pub const QS_HOTKEY : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 128u32 ) ; pub const QS_INPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1031u32 ) ; pub const QS_KEY : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1u32 ) ; pub const QS_MOUSE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 6u32 ) ; pub const QS_MOUSEBUTTON : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 4u32 ) ; pub const QS_MOUSEMOVE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 2u32 ) ; pub const QS_PAINT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 32u32 ) ; pub const QS_POSTMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 8u32 ) ; pub const QS_RAWINPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1024u32 ) ; pub const QS_SENDMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 64u32 ) ; pub const QS_TIMER : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 16u32 ) ; impl :: std :: convert :: From < u32 > for QUEUE_STATUS_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for QUEUE_STATUS_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for QUEUE_STATUS_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for QUEUE_STATUS_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for QUEUE_STATUS_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for QUEUE_STATUS_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const RES_CURSOR : u32 = 2u32 ; pub const RES_ICON : u32 = 1u32 ; pub const RIDEV_EXMODEMASK : u32 = 240u32 ; pub const RIM_INPUT : u32 = 0u32 ; pub const RIM_INPUTSINK : u32 = 1u32 ; pub const RIM_TYPEMAX : u32 = 2u32 ; pub const RI_KEY_BREAK : u32 = 1u32 ; pub const RI_KEY_E0 : u32 = 2u32 ; pub const RI_KEY_E1 : u32 = 4u32 ; pub const RI_KEY_MAKE : u32 = 0u32 ; pub const RI_KEY_TERMSRV_SET_LED : u32 = 8u32 ; pub const RI_KEY_TERMSRV_SHADOW : u32 = 16u32 ; pub const RI_MOUSE_BUTTON_4_DOWN : u32 = 64u32 ; pub const RI_MOUSE_BUTTON_4_UP : u32 = 128u32 ; pub const RI_MOUSE_BUTTON_5_DOWN : u32 = 256u32 ; pub const RI_MOUSE_BUTTON_5_UP : u32 = 512u32 ; pub const RI_MOUSE_HWHEEL : u32 = 2048u32 ; pub const RI_MOUSE_LEFT_BUTTON_DOWN : u32 = 1u32 ; pub const RI_MOUSE_LEFT_BUTTON_UP : u32 = 2u32 ; pub const RI_MOUSE_MIDDLE_BUTTON_DOWN : u32 = 16u32 ; pub const RI_MOUSE_MIDDLE_BUTTON_UP : u32 = 32u32 ; pub const RI_MOUSE_RIGHT_BUTTON_DOWN : u32 = 4u32 ; pub const RI_MOUSE_RIGHT_BUTTON_UP : u32 = 8u32 ; pub const RI_MOUSE_WHEEL : u32 = 1024u32 ; pub const RT_ACCELERATOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 9i32 as _ ) ; pub const RT_ANICURSOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 21i32 as _ ) ; pub const RT_ANIICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 22i32 as _ ) ; pub const RT_BITMAP : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 2i32 as _ ) ; pub const RT_CURSOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 1i32 as _ ) ; pub const RT_DIALOG : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 5i32 as _ ) ; pub const RT_DLGINCLUDE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 17i32 as _ ) ; pub const RT_FONT : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 8i32 as _ ) ; pub const RT_FONTDIR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 7i32 as _ ) ; pub const RT_HTML : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 23i32 as _ ) ; pub const RT_ICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 3i32 as _ ) ; pub const RT_MANIFEST : u32 = 24u32 ; pub const RT_MENU : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 4i32 as _ ) ; pub const RT_MESSAGETABLE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 11i32 as _ ) ; pub const RT_PLUGPLAY : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 19i32 as _ ) ; pub const RT_VERSION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 16i32 as _ ) ; pub const RT_VXD : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 20i32 as _ ) ; pub unsafe fn RealChildWindowFromPoint < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptparentclientcoords : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealChildWindowFromPoint ( hwndparent : super::super::Foundation:: HWND , ptparentclientcoords : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } RealChildWindowFromPoint ( hwndparent . into_param ( ) . abi ( ) , ptparentclientcoords . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RealGetWindowClassA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptszclassname : super::super::Foundation:: PSTR , cchclassnamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealGetWindowClassA ( hwnd : super::super::Foundation:: HWND , ptszclassname : super::super::Foundation:: PSTR , cchclassnamemax : u32 ) -> u32 ; } RealGetWindowClassA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ptszclassname ) , :: std :: mem :: transmute ( cchclassnamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RealGetWindowClassW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptszclassname : super::super::Foundation:: PWSTR , cchclassnamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealGetWindowClassW ( hwnd : super::super::Foundation:: HWND , ptszclassname : super::super::Foundation:: PWSTR , cchclassnamemax : u32 ) -> u32 ; } RealGetWindowClassW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ptszclassname ) , :: std :: mem :: transmute ( cchclassnamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassA < > ( lpwndclass : * const WNDCLASSA , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassA ( lpwndclass : * const WNDCLASSA_abi ) -> u16 ; } RegisterClassA ( :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassExA < > ( param0 : * const WNDCLASSEXA , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassExA ( param0 : * const WNDCLASSEXA_abi ) -> u16 ; } RegisterClassExA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassExW < > ( param0 : * const WNDCLASSEXW , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassExW ( param0 : * const WNDCLASSEXW_abi ) -> u16 ; } RegisterClassExW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassW < > ( lpwndclass : * const WNDCLASSW , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassW ( lpwndclass : * const WNDCLASSW_abi ) -> u16 ; } RegisterClassW ( :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterShellHookWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterShellHookWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } RegisterShellHookWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterWindowMessageA < 'a , > ( lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterWindowMessageA ( lpstring : super::super::Foundation:: PSTR ) -> u32 ; } RegisterWindowMessageA ( lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterWindowMessageW < 'a , > ( lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterWindowMessageW ( lpstring : super::super::Foundation:: PWSTR ) -> u32 ; } RegisterWindowMessageW ( lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemoveMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemoveMenu ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } RemoveMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemovePropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemovePropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HANDLE ; } RemovePropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemovePropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemovePropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } RemovePropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplaceTextA < > ( param0 : * mut FINDREPLACEA , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ReplaceTextA ( param0 : * mut FINDREPLACEA_abi ) -> super::super::Foundation:: HWND ; } ReplaceTextA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplaceTextW < > ( param0 : * mut FINDREPLACEW , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ReplaceTextW ( param0 : * mut FINDREPLACEW_abi ) -> super::super::Foundation:: HWND ; } ReplaceTextW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplyMessage < 'a , > ( lresult : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LRESULT > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ReplyMessage ( lresult : super::super::Foundation:: LRESULT ) -> super::super::Foundation:: BOOL ; } ReplyMessage ( lresult . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const SBM_ENABLE_ARROWS : u32 = 228u32 ; pub const SBM_GETPOS : u32 = 225u32 ; pub const SBM_GETRANGE : u32 = 227u32 ; pub const SBM_GETSCROLLBARINFO : u32 = 235u32 ; pub const SBM_GETSCROLLINFO : u32 = 234u32 ; pub const SBM_SETPOS : u32 = 224u32 ; pub const SBM_SETRANGE : u32 = 226u32 ; pub const SBM_SETRANGEREDRAW : u32 = 230u32 ; pub const SBM_SETSCROLLINFO : u32 = 233u32 ; pub const SBS_BOTTOMALIGN : i32 = 4i32 ; pub const SBS_HORZ : i32 = 0i32 ; pub const SBS_LEFTALIGN : i32 = 2i32 ; pub const SBS_RIGHTALIGN : i32 = 4i32 ; pub const SBS_SIZEBOX : i32 = 8i32 ; pub const SBS_SIZEBOXBOTTOMRIGHTALIGN : i32 = 4i32 ; pub const SBS_SIZEBOXTOPLEFTALIGN : i32 = 2i32 ; pub const SBS_SIZEGRIP : i32 = 16i32 ; pub const SBS_TOPALIGN : i32 = 2i32 ; pub const SBS_VERT : i32 = 1i32 ; pub const SB_BOTTOM : u32 = 7u32 ; pub const SB_ENDSCROLL : u32 = 8u32 ; pub const SB_LEFT : u32 = 6u32 ; pub const SB_LINEDOWN : u32 = 1u32 ; pub const SB_LINELEFT : u32 = 0u32 ; pub const SB_LINERIGHT : u32 = 1u32 ; pub const SB_LINEUP : u32 = 0u32 ; pub const SB_PAGEDOWN : u32 = 3u32 ; pub const SB_PAGELEFT : u32 = 2u32 ; pub const SB_PAGERIGHT : u32 = 3u32 ; pub const SB_PAGEUP : u32 = 2u32 ; pub const SB_RIGHT : u32 = 7u32 ; pub const SB_THUMBPOSITION : u32 = 4u32 ; pub const SB_THUMBTRACK : u32 = 5u32 ; pub const SB_TOP : u32 = 6u32 ; pub const SCF_ISSECURE : u32 = 1u32 ; pub const SC_ARRANGE : u32 = 61712u32 ; pub const SC_CLOSE : u32 = 61536u32 ; pub const SC_CONTEXTHELP : u32 = 61824u32 ; pub const SC_DEFAULT : u32 = 61792u32 ; pub const SC_HOTKEY : u32 = 61776u32 ; pub const SC_HSCROLL : u32 = 61568u32 ; pub const SC_KEYMENU : u32 = 61696u32 ; pub const SC_MAXIMIZE : u32 = 61488u32 ; pub const SC_MINIMIZE : u32 = 61472u32 ; pub const SC_MONITORPOWER : u32 = 61808u32 ; pub const SC_MOUSEMENU : u32 = 61584u32 ; pub const SC_MOVE : u32 = 61456u32 ; pub const SC_NEXTWINDOW : u32 = 61504u32 ; pub const SC_PREVWINDOW : u32 = 61520u32 ; pub const SC_RESTORE : u32 = 61728u32 ; pub const SC_SCREENSAVE : u32 = 61760u32 ; pub const SC_SEPARATOR : u32 = 61455u32 ; pub const SC_SIZE : u32 = 61440u32 ; pub const SC_TASKLIST : u32 = 61744u32 ; pub const SC_VSCROLL : u32 = 61552u32 ; pub type SENDASYNCPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : usize , param3 : super::super::Foundation:: LRESULT ) ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SEND_MESSAGE_TIMEOUT_FLAGS ( pub u32 ) ; pub const SMTO_ABORTIFHUNG : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 2u32 ) ; pub const SMTO_BLOCK : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 1u32 ) ; pub const SMTO_NORMAL : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 0u32 ) ; pub const SMTO_NOTIMEOUTIFNOTHUNG : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 8u32 ) ; pub const SMTO_ERRORONEXIT : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 32u32 ) ; impl :: std :: convert :: From < u32 > for SEND_MESSAGE_TIMEOUT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SEND_MESSAGE_TIMEOUT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SEND_MESSAGE_TIMEOUT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SEND_MESSAGE_TIMEOUT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SEND_MESSAGE_TIMEOUT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SEND_MESSAGE_TIMEOUT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SET_WINDOW_POS_FLAGS ( pub u32 ) ; pub const SWP_ASYNCWINDOWPOS : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 16384u32 ) ; pub const SWP_DEFERERASE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 8192u32 ) ; pub const SWP_DRAWFRAME : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 32u32 ) ; pub const SWP_FRAMECHANGED : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 32u32 ) ; pub const SWP_HIDEWINDOW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 128u32 ) ; pub const SWP_NOACTIVATE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 16u32 ) ; pub const SWP_NOCOPYBITS : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 256u32 ) ; pub const SWP_NOMOVE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 2u32 ) ; pub const SWP_NOOWNERZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; pub const SWP_NOREDRAW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 8u32 ) ; pub const SWP_NOREPOSITION : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; pub const SWP_NOSENDCHANGING : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 1024u32 ) ; pub const SWP_NOSIZE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 1u32 ) ; pub const SWP_NOZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 4u32 ) ; pub const SWP_SHOWWINDOW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 64u32 ) ; pub const SWP__NOOWNERZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; impl :: std :: convert :: From < u32 > for SET_WINDOW_POS_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SET_WINDOW_POS_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SET_WINDOW_POS_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SET_WINDOW_POS_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SET_WINDOW_POS_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SET_WINDOW_POS_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SHELLHOOKINFO { pub hwnd : super::super::Foundation:: HWND , pub rc : super::super::Foundation:: RECT } impl SHELLHOOKINFO { } impl :: std :: default :: Default for SHELLHOOKINFO { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , rc : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for SHELLHOOKINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SHELLHOOKINFO" ) . field ( "hwnd" , & self . hwnd ) . field ( "rc" , & self . rc ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SHELLHOOKINFO { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . rc == other . rc } } impl :: std :: cmp :: Eq for SHELLHOOKINFO { } unsafe impl :: windows :: Abi for SHELLHOOKINFO { type Abi = Self ; type DefaultType = Self ; } pub const SHOW_FULLSCREEN : u32 = 3u32 ; pub const SHOW_ICONWINDOW : u32 = 2u32 ; pub const SHOW_OPENNOACTIVATE : u32 = 4u32 ; pub const SHOW_OPENWINDOW : 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 SHOW_WINDOW_CMD ( pub u32 ) ; pub const SW_FORCEMINIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 11u32 ) ; pub const SW_HIDE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 0u32 ) ; pub const SW_MAXIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_MINIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 6u32 ) ; pub const SW_RESTORE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 9u32 ) ; pub const SW_SHOW : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 5u32 ) ; pub const SW_SHOWDEFAULT : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 10u32 ) ; pub const SW_SHOWMAXIMIZED : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_SHOWMINIMIZED : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_SHOWMINNOACTIVE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 7u32 ) ; pub const SW_SHOWNA : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 8u32 ) ; pub const SW_SHOWNOACTIVATE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SHOWNORMAL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_NORMAL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_MAX : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 11u32 ) ; pub const SW_PARENTCLOSING : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_OTHERZOOM : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_PARENTOPENING : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_OTHERUNZOOM : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SCROLLCHILDREN : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_INVALIDATE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_ERASE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SMOOTHSCROLL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 16u32 ) ; impl :: std :: convert :: From < u32 > for SHOW_WINDOW_CMD { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SHOW_WINDOW_CMD { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SHOW_WINDOW_CMD { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SHOW_WINDOW_CMD { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SHOW_WINDOW_CMD { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SHOW_WINDOW_CMD { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const SIZE_MAXHIDE : u32 = 4u32 ; pub const SIZE_MAXIMIZED : u32 = 2u32 ; pub const SIZE_MAXSHOW : u32 = 3u32 ; pub const SIZE_MINIMIZED : u32 = 1u32 ; pub const SIZE_RESTORED : u32 = 0u32 ; pub const SM_CARETBLINKINGENABLED : u32 = 8194u32 ; pub const SM_CMETRICS : u32 = 76u32 ; pub const SM_RESERVED1 : u32 = 24u32 ; pub const SM_RESERVED2 : u32 = 25u32 ; pub const SM_RESERVED3 : u32 = 26u32 ; pub const SM_RESERVED4 : u32 = 27u32 ; pub const SM_SYSTEMDOCKED : u32 = 8196u32 ; pub const SOUND_SYSTEM_APPEND : u32 = 14u32 ; pub const SOUND_SYSTEM_APPSTART : u32 = 12u32 ; pub const SOUND_SYSTEM_BEEP : u32 = 3u32 ; pub const SOUND_SYSTEM_ERROR : u32 = 4u32 ; pub const SOUND_SYSTEM_FAULT : u32 = 13u32 ; pub const SOUND_SYSTEM_INFORMATION : u32 = 7u32 ; pub const SOUND_SYSTEM_MAXIMIZE : u32 = 8u32 ; pub const SOUND_SYSTEM_MENUCOMMAND : u32 = 15u32 ; pub const SOUND_SYSTEM_MENUPOPUP : u32 = 16u32 ; pub const SOUND_SYSTEM_MINIMIZE : u32 = 9u32 ; pub const SOUND_SYSTEM_QUESTION : u32 = 5u32 ; pub const SOUND_SYSTEM_RESTOREDOWN : u32 = 11u32 ; pub const SOUND_SYSTEM_RESTOREUP : u32 = 10u32 ; pub const SOUND_SYSTEM_SHUTDOWN : u32 = 2u32 ; pub const SOUND_SYSTEM_STARTUP : u32 = 1u32 ; pub const SOUND_SYSTEM_WARNING : u32 = 6u32 ; pub const SS_BITMAP : i32 = 14i32 ; pub const SS_BLACKFRAME : i32 = 7i32 ; pub const SS_BLACKRECT : i32 = 4i32 ; pub const SS_CENTER : i32 = 1i32 ; pub const SS_CENTERIMAGE : i32 = 512i32 ; pub const SS_EDITCONTROL : i32 = 8192i32 ; pub const SS_ELLIPSISMASK : i32 = 49152i32 ; pub const SS_ENDELLIPSIS : i32 = 16384i32 ; pub const SS_ENHMETAFILE : i32 = 15i32 ; pub const SS_ETCHEDFRAME : i32 = 18i32 ; pub const SS_ETCHEDHORZ : i32 = 16i32 ; pub const SS_ETCHEDVERT : i32 = 17i32 ; pub const SS_GRAYFRAME : i32 = 8i32 ; pub const SS_GRAYRECT : i32 = 5i32 ; pub const SS_ICON : i32 = 3i32 ; pub const SS_LEFT : i32 = 0i32 ; pub const SS_LEFTNOWORDWRAP : i32 = 12i32 ; pub const SS_NOPREFIX : i32 = 128i32 ; pub const SS_NOTIFY : i32 = 256i32 ; pub const SS_OWNERDRAW : i32 = 13i32 ; pub const SS_PATHELLIPSIS : i32 = 32768i32 ; pub const SS_REALSIZECONTROL : i32 = 64i32 ; pub const SS_REALSIZEIMAGE : i32 = 2048i32 ; pub const SS_RIGHT : i32 = 2i32 ; pub const SS_RIGHTJUST : i32 = 1024i32 ; pub const SS_SIMPLE : i32 = 11i32 ; pub const SS_SUNKEN : i32 = 4096i32 ; pub const SS_TYPEMASK : i32 = 31i32 ; pub const SS_USERITEM : i32 = 10i32 ; pub const SS_WHITEFRAME : i32 = 9i32 ; pub const SS_WHITERECT : i32 = 6i32 ; pub const SS_WORDELLIPSIS : i32 = 49152i32 ; pub const START_PAGE_GENERAL : u32 = 4294967295u32 ; pub const STATE_SYSTEM_ALERT_HIGH : u32 = 268435456u32 ; pub const STATE_SYSTEM_ALERT_LOW : u32 = 67108864u32 ; pub const STATE_SYSTEM_ALERT_MEDIUM : u32 = 134217728u32 ; pub const STATE_SYSTEM_ANIMATED : u32 = 16384u32 ; pub const STATE_SYSTEM_BUSY : u32 = 2048u32 ; pub const STATE_SYSTEM_CHECKED : u32 = 16u32 ; pub const STATE_SYSTEM_COLLAPSED : u32 = 1024u32 ; pub const STATE_SYSTEM_DEFAULT : u32 = 256u32 ; pub const STATE_SYSTEM_EXPANDED : u32 = 512u32 ; pub const STATE_SYSTEM_EXTSELECTABLE : u32 = 33554432u32 ; pub const STATE_SYSTEM_FLOATING : u32 = 4096u32 ; pub const STATE_SYSTEM_FOCUSED : u32 = 4u32 ; pub const STATE_SYSTEM_HOTTRACKED : u32 = 128u32 ; pub const STATE_SYSTEM_LINKED : u32 = 4194304u32 ; pub const STATE_SYSTEM_MARQUEED : u32 = 8192u32 ; pub const STATE_SYSTEM_MIXED : u32 = 32u32 ; pub const STATE_SYSTEM_MOVEABLE : u32 = 262144u32 ; pub const STATE_SYSTEM_MULTISELECTABLE : u32 = 16777216u32 ; pub const STATE_SYSTEM_PROTECTED : u32 = 536870912u32 ; pub const STATE_SYSTEM_READONLY : u32 = 64u32 ; pub const STATE_SYSTEM_SELECTABLE : u32 = 2097152u32 ; pub const STATE_SYSTEM_SELECTED : u32 = 2u32 ; pub const STATE_SYSTEM_SELFVOICING : u32 = 524288u32 ; pub const STATE_SYSTEM_SIZEABLE : u32 = 131072u32 ; pub const STATE_SYSTEM_TRAVERSED : u32 = 8388608u32 ; pub const STATE_SYSTEM_VALID : u32 = 1073741823u32 ; pub const STM_GETICON : u32 = 369u32 ; pub const STM_GETIMAGE : u32 = 371u32 ; pub const STM_MSGMAX : u32 = 372u32 ; pub const STM_SETICON : u32 = 368u32 ; pub const STM_SETIMAGE : u32 = 370u32 ; pub const STN_CLICKED : u32 = 0u32 ; pub const STN_DBLCLK : u32 = 1u32 ; pub const STN_DISABLE : u32 = 3u32 ; pub const STN_ENABLE : u32 = 2u32 ; pub const STRSAFE_E_END_OF_FILE : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024858i32 as _ ) ; pub const STRSAFE_E_INSUFFICIENT_BUFFER : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024774i32 as _ ) ; pub const STRSAFE_E_INVALID_PARAMETER : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024809i32 as _ ) ; pub const STRSAFE_FILL_BEHIND_NULL : u32 = 512u32 ; pub const STRSAFE_FILL_ON_FAILURE : u32 = 1024u32 ; pub const STRSAFE_IGNORE_NULLS : u32 = 256u32 ; pub const STRSAFE_MAX_CCH : u32 = 2147483647u32 ; pub const STRSAFE_NO_TRUNCATION : u32 = 4096u32 ; pub const STRSAFE_NULL_ON_FAILURE : u32 = 2048u32 ; pub const STRSAFE_USE_SECURE_CRT : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct STYLESTRUCT { pub styleOld : u32 , pub styleNew : u32 } impl STYLESTRUCT { } impl :: std :: default :: Default for STYLESTRUCT { fn default ( ) -> Self { Self { styleOld : 0 , styleNew : 0 } } } impl :: std :: fmt :: Debug for STYLESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "STYLESTRUCT" ) . field ( "styleOld" , & self . styleOld ) . field ( "styleNew" , & self . styleNew ) . finish ( ) } } impl :: std :: cmp :: PartialEq for STYLESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . styleOld == other . styleOld && self . styleNew == other . styleNew } } impl :: std :: cmp :: Eq for STYLESTRUCT { } unsafe impl :: windows :: Abi for STYLESTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const SYMBOL_FONTTYPE : u32 = 524288u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_CURSOR_ID ( pub u32 ) ; pub const OCR_APPSTARTING : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32650u32 ) ; pub const OCR_NORMAL : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32512u32 ) ; pub const OCR_CROSS : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32515u32 ) ; pub const OCR_HAND : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32649u32 ) ; pub const OCR_HELP : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32651u32 ) ; pub const OCR_IBEAM : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32513u32 ) ; pub const OCR_NO : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32648u32 ) ; pub const OCR_SIZEALL : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32646u32 ) ; pub const OCR_SIZENESW : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32643u32 ) ; pub const OCR_SIZENS : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32645u32 ) ; pub const OCR_SIZENWSE : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32642u32 ) ; pub const OCR_SIZEWE : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32644u32 ) ; pub const OCR_UP : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32516u32 ) ; pub const OCR_WAIT : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32514u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_CURSOR_ID { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_CURSOR_ID { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_CURSOR_ID { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_CURSOR_ID { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_CURSOR_ID { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_CURSOR_ID { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_METRICS_INDEX ( pub u32 ) ; pub const SM_ARRANGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 56u32 ) ; pub const SM_CLEANBOOT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 67u32 ) ; pub const SM_CMONITORS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 80u32 ) ; pub const SM_CMOUSEBUTTONS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 43u32 ) ; pub const SM_CONVERTIBLESLATEMODE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8195u32 ) ; pub const SM_CXBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 5u32 ) ; pub const SM_CXCURSOR : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 13u32 ) ; pub const SM_CXDLGFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 7u32 ) ; pub const SM_CXDOUBLECLK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 36u32 ) ; pub const SM_CXDRAG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 68u32 ) ; pub const SM_CXEDGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 45u32 ) ; pub const SM_CXFIXEDFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 7u32 ) ; pub const SM_CXFOCUSBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 83u32 ) ; pub const SM_CXFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 32u32 ) ; pub const SM_CXFULLSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 16u32 ) ; pub const SM_CXHSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 21u32 ) ; pub const SM_CXHTHUMB : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 10u32 ) ; pub const SM_CXICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 11u32 ) ; pub const SM_CXICONSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 38u32 ) ; pub const SM_CXMAXIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 61u32 ) ; pub const SM_CXMAXTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 59u32 ) ; pub const SM_CXMENUCHECK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 71u32 ) ; pub const SM_CXMENUSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 54u32 ) ; pub const SM_CXMIN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 28u32 ) ; pub const SM_CXMINIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 57u32 ) ; pub const SM_CXMINSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 47u32 ) ; pub const SM_CXMINTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 34u32 ) ; pub const SM_CXPADDEDBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 92u32 ) ; pub const SM_CXSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 0u32 ) ; pub const SM_CXSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 30u32 ) ; pub const SM_CXSIZEFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 32u32 ) ; pub const SM_CXSMICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 49u32 ) ; pub const SM_CXSMSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 52u32 ) ; pub const SM_CXVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 78u32 ) ; pub const SM_CXVSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 2u32 ) ; pub const SM_CYBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 6u32 ) ; pub const SM_CYCAPTION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 4u32 ) ; pub const SM_CYCURSOR : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 14u32 ) ; pub const SM_CYDLGFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8u32 ) ; pub const SM_CYDOUBLECLK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 37u32 ) ; pub const SM_CYDRAG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 69u32 ) ; pub const SM_CYEDGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 46u32 ) ; pub const SM_CYFIXEDFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8u32 ) ; pub const SM_CYFOCUSBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 84u32 ) ; pub const SM_CYFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 33u32 ) ; pub const SM_CYFULLSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 17u32 ) ; pub const SM_CYHSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 3u32 ) ; pub const SM_CYICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 12u32 ) ; pub const SM_CYICONSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 39u32 ) ; pub const SM_CYKANJIWINDOW : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 18u32 ) ; pub const SM_CYMAXIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 62u32 ) ; pub const SM_CYMAXTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 60u32 ) ; pub const SM_CYMENU : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 15u32 ) ; pub const SM_CYMENUCHECK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 72u32 ) ; pub const SM_CYMENUSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 55u32 ) ; pub const SM_CYMIN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 29u32 ) ; pub const SM_CYMINIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 58u32 ) ; pub const SM_CYMINSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 48u32 ) ; pub const SM_CYMINTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 35u32 ) ; pub const SM_CYSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 1u32 ) ; pub const SM_CYSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 31u32 ) ; pub const SM_CYSIZEFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 33u32 ) ; pub const SM_CYSMCAPTION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 51u32 ) ; pub const SM_CYSMICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 50u32 ) ; pub const SM_CYSMSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 53u32 ) ; pub const SM_CYVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 79u32 ) ; pub const SM_CYVSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 20u32 ) ; pub const SM_CYVTHUMB : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 9u32 ) ; pub const SM_DBCSENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 42u32 ) ; pub const SM_DEBUG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 22u32 ) ; pub const SM_DIGITIZER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 94u32 ) ; pub const SM_IMMENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 82u32 ) ; pub const SM_MAXIMUMTOUCHES : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 95u32 ) ; pub const SM_MEDIACENTER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 87u32 ) ; pub const SM_MENUDROPALIGNMENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 40u32 ) ; pub const SM_MIDEASTENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 74u32 ) ; pub const SM_MOUSEPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 19u32 ) ; pub const SM_MOUSEHORIZONTALWHEELPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 91u32 ) ; pub const SM_MOUSEWHEELPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 75u32 ) ; pub const SM_NETWORK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 63u32 ) ; pub const SM_PENWINDOWS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 41u32 ) ; pub const SM_REMOTECONTROL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8193u32 ) ; pub const SM_REMOTESESSION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 4096u32 ) ; pub const SM_SAMEDISPLAYFORMAT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 81u32 ) ; pub const SM_SECURE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 44u32 ) ; pub const SM_SERVERR2 : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 89u32 ) ; pub const SM_SHOWSOUNDS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 70u32 ) ; pub const SM_SHUTTINGDOWN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8192u32 ) ; pub const SM_SLOWMACHINE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 73u32 ) ; pub const SM_STARTER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 88u32 ) ; pub const SM_SWAPBUTTON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 23u32 ) ; pub const SM_SYSTEMDOCKED_ : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8196u32 ) ; pub const SM_TABLETPC : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 86u32 ) ; pub const SM_XVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 76u32 ) ; pub const SM_YVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 77u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_METRICS_INDEX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_METRICS_INDEX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_METRICS_INDEX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_METRICS_INDEX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_METRICS_INDEX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_METRICS_INDEX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_PARAMETERS_INFO_ACTION ( pub u32 ) ; pub const SPI_GETBEEP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 1u32 ) ; pub const SPI_SETBEEP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 2u32 ) ; pub const SPI_GETMOUSE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 3u32 ) ; pub const SPI_SETMOUSE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4u32 ) ; pub const SPI_GETBORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 5u32 ) ; pub const SPI_SETBORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 6u32 ) ; pub const SPI_GETKEYBOARDSPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 10u32 ) ; pub const SPI_SETKEYBOARDSPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 11u32 ) ; pub const SPI_LANGDRIVER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 12u32 ) ; pub const SPI_ICONHORIZONTALSPACING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 13u32 ) ; pub const SPI_GETSCREENSAVETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 14u32 ) ; pub const SPI_SETSCREENSAVETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 15u32 ) ; pub const SPI_GETSCREENSAVEACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 16u32 ) ; pub const SPI_SETSCREENSAVEACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 17u32 ) ; pub const SPI_GETGRIDGRANULARITY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 18u32 ) ; pub const SPI_SETGRIDGRANULARITY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 19u32 ) ; pub const SPI_SETDESKWALLPAPER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 20u32 ) ; pub const SPI_SETDESKPATTERN : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 21u32 ) ; pub const SPI_GETKEYBOARDDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 22u32 ) ; pub const SPI_SETKEYBOARDDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 23u32 ) ; pub const SPI_ICONVERTICALSPACING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 24u32 ) ; pub const SPI_GETICONTITLEWRAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 25u32 ) ; pub const SPI_SETICONTITLEWRAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 26u32 ) ; pub const SPI_GETMENUDROPALIGNMENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 27u32 ) ; pub const SPI_SETMENUDROPALIGNMENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 28u32 ) ; pub const SPI_SETDOUBLECLKWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 29u32 ) ; pub const SPI_SETDOUBLECLKHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 30u32 ) ; pub const SPI_GETICONTITLELOGFONT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 31u32 ) ; pub const SPI_SETDOUBLECLICKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 32u32 ) ; pub const SPI_SETMOUSEBUTTONSWAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 33u32 ) ; pub const SPI_SETICONTITLELOGFONT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 34u32 ) ; pub const SPI_GETFASTTASKSWITCH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 35u32 ) ; pub const SPI_SETFASTTASKSWITCH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 36u32 ) ; pub const SPI_SETDRAGFULLWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 37u32 ) ; pub const SPI_GETDRAGFULLWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 38u32 ) ; pub const SPI_GETNONCLIENTMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 41u32 ) ; pub const SPI_SETNONCLIENTMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 42u32 ) ; pub const SPI_GETMINIMIZEDMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 43u32 ) ; pub const SPI_SETMINIMIZEDMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 44u32 ) ; pub const SPI_GETICONMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 45u32 ) ; pub const SPI_SETICONMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 46u32 ) ; pub const SPI_SETWORKAREA : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 47u32 ) ; pub const SPI_GETWORKAREA : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 48u32 ) ; pub const SPI_SETPENWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 49u32 ) ; pub const SPI_GETHIGHCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 66u32 ) ; pub const SPI_SETHIGHCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 67u32 ) ; pub const SPI_GETKEYBOARDPREF : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 68u32 ) ; pub const SPI_SETKEYBOARDPREF : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 69u32 ) ; pub const SPI_GETSCREENREADER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 70u32 ) ; pub const SPI_SETSCREENREADER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 71u32 ) ; pub const SPI_GETANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 72u32 ) ; pub const SPI_SETANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 73u32 ) ; pub const SPI_GETFONTSMOOTHING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 74u32 ) ; pub const SPI_SETFONTSMOOTHING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 75u32 ) ; pub const SPI_SETDRAGWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 76u32 ) ; pub const SPI_SETDRAGHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 77u32 ) ; pub const SPI_SETHANDHELD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 78u32 ) ; pub const SPI_GETLOWPOWERTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 79u32 ) ; pub const SPI_GETPOWEROFFTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 80u32 ) ; pub const SPI_SETLOWPOWERTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 81u32 ) ; pub const SPI_SETPOWEROFFTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 82u32 ) ; pub const SPI_GETLOWPOWERACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 83u32 ) ; pub const SPI_GETPOWEROFFACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 84u32 ) ; pub const SPI_SETLOWPOWERACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 85u32 ) ; pub const SPI_SETPOWEROFFACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 86u32 ) ; pub const SPI_SETCURSORS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 87u32 ) ; pub const SPI_SETICONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 88u32 ) ; pub const SPI_GETDEFAULTINPUTLANG : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 89u32 ) ; pub const SPI_SETDEFAULTINPUTLANG : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 90u32 ) ; pub const SPI_SETLANGTOGGLE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 91u32 ) ; pub const SPI_GETWINDOWSEXTENSION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 92u32 ) ; pub const SPI_SETMOUSETRAILS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 93u32 ) ; pub const SPI_GETMOUSETRAILS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 94u32 ) ; pub const SPI_SETSCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 97u32 ) ; pub const SPI_SCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 97u32 ) ; pub const SPI_GETFILTERKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 50u32 ) ; pub const SPI_SETFILTERKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 51u32 ) ; pub const SPI_GETTOGGLEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 52u32 ) ; pub const SPI_SETTOGGLEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 53u32 ) ; pub const SPI_GETMOUSEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 54u32 ) ; pub const SPI_SETMOUSEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 55u32 ) ; pub const SPI_GETSHOWSOUNDS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 56u32 ) ; pub const SPI_SETSHOWSOUNDS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 57u32 ) ; pub const SPI_GETSTICKYKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 58u32 ) ; pub const SPI_SETSTICKYKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 59u32 ) ; pub const SPI_GETACCESSTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 60u32 ) ; pub const SPI_SETACCESSTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 61u32 ) ; pub const SPI_GETSERIALKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 62u32 ) ; pub const SPI_SETSERIALKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 63u32 ) ; pub const SPI_GETSOUNDSENTRY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 64u32 ) ; pub const SPI_SETSOUNDSENTRY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 65u32 ) ; pub const SPI_GETSNAPTODEFBUTTON : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 95u32 ) ; pub const SPI_SETSNAPTODEFBUTTON : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 96u32 ) ; pub const SPI_GETMOUSEHOVERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 98u32 ) ; pub const SPI_SETMOUSEHOVERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 99u32 ) ; pub const SPI_GETMOUSEHOVERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 100u32 ) ; pub const SPI_SETMOUSEHOVERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 101u32 ) ; pub const SPI_GETMOUSEHOVERTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 102u32 ) ; pub const SPI_SETMOUSEHOVERTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 103u32 ) ; pub const SPI_GETWHEELSCROLLLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 104u32 ) ; pub const SPI_SETWHEELSCROLLLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 105u32 ) ; pub const SPI_GETMENUSHOWDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 106u32 ) ; pub const SPI_SETMENUSHOWDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 107u32 ) ; pub const SPI_GETWHEELSCROLLCHARS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 108u32 ) ; pub const SPI_SETWHEELSCROLLCHARS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 109u32 ) ; pub const SPI_GETSHOWIMEUI : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 110u32 ) ; pub const SPI_SETSHOWIMEUI : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 111u32 ) ; pub const SPI_GETMOUSESPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 112u32 ) ; pub const SPI_SETMOUSESPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 113u32 ) ; pub const SPI_GETSCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 114u32 ) ; pub const SPI_GETDESKWALLPAPER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 115u32 ) ; pub const SPI_GETAUDIODESCRIPTION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 116u32 ) ; pub const SPI_SETAUDIODESCRIPTION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 117u32 ) ; pub const SPI_GETSCREENSAVESECURE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 118u32 ) ; pub const SPI_SETSCREENSAVESECURE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 119u32 ) ; pub const SPI_GETHUNGAPPTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 120u32 ) ; pub const SPI_SETHUNGAPPTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 121u32 ) ; pub const SPI_GETWAITTOKILLTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 122u32 ) ; pub const SPI_SETWAITTOKILLTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 123u32 ) ; pub const SPI_GETWAITTOKILLSERVICETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 124u32 ) ; pub const SPI_SETWAITTOKILLSERVICETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 125u32 ) ; pub const SPI_GETMOUSEDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 126u32 ) ; pub const SPI_SETMOUSEDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 127u32 ) ; pub const SPI_GETPENDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 128u32 ) ; pub const SPI_SETPENDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 129u32 ) ; pub const SPI_GETWINARRANGING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 130u32 ) ; pub const SPI_SETWINARRANGING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 131u32 ) ; pub const SPI_GETMOUSEDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 132u32 ) ; pub const SPI_SETMOUSEDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 133u32 ) ; pub const SPI_GETPENDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 134u32 ) ; pub const SPI_SETPENDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 135u32 ) ; pub const SPI_GETMOUSESIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 136u32 ) ; pub const SPI_SETMOUSESIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 137u32 ) ; pub const SPI_GETPENSIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 138u32 ) ; pub const SPI_SETPENSIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 139u32 ) ; pub const SPI_GETDRAGFROMMAXIMIZE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 140u32 ) ; pub const SPI_SETDRAGFROMMAXIMIZE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 141u32 ) ; pub const SPI_GETSNAPSIZING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 142u32 ) ; pub const SPI_SETSNAPSIZING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 143u32 ) ; pub const SPI_GETDOCKMOVING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 144u32 ) ; pub const SPI_SETDOCKMOVING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 145u32 ) ; pub const SPI_GETTOUCHPREDICTIONPARAMETERS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 156u32 ) ; pub const SPI_SETTOUCHPREDICTIONPARAMETERS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 157u32 ) ; pub const SPI_GETLOGICALDPIOVERRIDE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 158u32 ) ; pub const SPI_SETLOGICALDPIOVERRIDE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 159u32 ) ; pub const SPI_GETMENURECT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 162u32 ) ; pub const SPI_SETMENURECT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 163u32 ) ; pub const SPI_GETACTIVEWINDOWTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4096u32 ) ; pub const SPI_SETACTIVEWINDOWTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4097u32 ) ; pub const SPI_GETMENUANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4098u32 ) ; pub const SPI_SETMENUANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4099u32 ) ; pub const SPI_GETCOMBOBOXANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4100u32 ) ; pub const SPI_SETCOMBOBOXANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4101u32 ) ; pub const SPI_GETLISTBOXSMOOTHSCROLLING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4102u32 ) ; pub const SPI_SETLISTBOXSMOOTHSCROLLING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4103u32 ) ; pub const SPI_GETGRADIENTCAPTIONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4104u32 ) ; pub const SPI_SETGRADIENTCAPTIONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4105u32 ) ; pub const SPI_GETKEYBOARDCUES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4106u32 ) ; pub const SPI_SETKEYBOARDCUES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4107u32 ) ; pub const SPI_GETMENUUNDERLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4106u32 ) ; pub const SPI_SETMENUUNDERLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4107u32 ) ; pub const SPI_GETACTIVEWNDTRKZORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4108u32 ) ; pub const SPI_SETACTIVEWNDTRKZORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4109u32 ) ; pub const SPI_GETHOTTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4110u32 ) ; pub const SPI_SETHOTTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4111u32 ) ; pub const SPI_GETMENUFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4114u32 ) ; pub const SPI_SETMENUFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4115u32 ) ; pub const SPI_GETSELECTIONFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4116u32 ) ; pub const SPI_SETSELECTIONFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4117u32 ) ; pub const SPI_GETTOOLTIPANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4118u32 ) ; pub const SPI_SETTOOLTIPANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4119u32 ) ; pub const SPI_GETTOOLTIPFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4120u32 ) ; pub const SPI_SETTOOLTIPFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4121u32 ) ; pub const SPI_GETCURSORSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4122u32 ) ; pub const SPI_SETCURSORSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4123u32 ) ; pub const SPI_GETMOUSESONAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4124u32 ) ; pub const SPI_SETMOUSESONAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4125u32 ) ; pub const SPI_GETMOUSECLICKLOCK : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4126u32 ) ; pub const SPI_SETMOUSECLICKLOCK : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4127u32 ) ; pub const SPI_GETMOUSEVANISH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4128u32 ) ; pub const SPI_SETMOUSEVANISH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4129u32 ) ; pub const SPI_GETFLATMENU : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4130u32 ) ; pub const SPI_SETFLATMENU : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4131u32 ) ; pub const SPI_GETDROPSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4132u32 ) ; pub const SPI_SETDROPSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4133u32 ) ; pub const SPI_GETBLOCKSENDINPUTRESETS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4134u32 ) ; pub const SPI_SETBLOCKSENDINPUTRESETS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4135u32 ) ; pub const SPI_GETUIEFFECTS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4158u32 ) ; pub const SPI_SETUIEFFECTS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4159u32 ) ; pub const SPI_GETDISABLEOVERLAPPEDCONTENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4160u32 ) ; pub const SPI_SETDISABLEOVERLAPPEDCONTENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4161u32 ) ; pub const SPI_GETCLIENTAREAANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4162u32 ) ; pub const SPI_SETCLIENTAREAANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4163u32 ) ; pub const SPI_GETCLEARTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4168u32 ) ; pub const SPI_SETCLEARTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4169u32 ) ; pub const SPI_GETSPEECHRECOGNITION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4170u32 ) ; pub const SPI_SETSPEECHRECOGNITION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4171u32 ) ; pub const SPI_GETCARETBROWSING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4172u32 ) ; pub const SPI_SETCARETBROWSING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4173u32 ) ; pub const SPI_GETTHREADLOCALINPUTSETTINGS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4174u32 ) ; pub const SPI_SETTHREADLOCALINPUTSETTINGS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4175u32 ) ; pub const SPI_GETSYSTEMLANGUAGEBAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4176u32 ) ; pub const SPI_SETSYSTEMLANGUAGEBAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4177u32 ) ; pub const SPI_GETFOREGROUNDLOCKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8192u32 ) ; pub const SPI_SETFOREGROUNDLOCKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8193u32 ) ; pub const SPI_GETACTIVEWNDTRKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8194u32 ) ; pub const SPI_SETACTIVEWNDTRKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8195u32 ) ; pub const SPI_GETFOREGROUNDFLASHCOUNT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8196u32 ) ; pub const SPI_SETFOREGROUNDFLASHCOUNT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8197u32 ) ; pub const SPI_GETCARETWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8198u32 ) ; pub const SPI_SETCARETWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8199u32 ) ; pub const SPI_GETMOUSECLICKLOCKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8200u32 ) ; pub const SPI_SETMOUSECLICKLOCKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8201u32 ) ; pub const SPI_GETFONTSMOOTHINGTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8202u32 ) ; pub const SPI_SETFONTSMOOTHINGTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8203u32 ) ; pub const SPI_GETFONTSMOOTHINGCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8204u32 ) ; pub const SPI_SETFONTSMOOTHINGCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8205u32 ) ; pub const SPI_GETFOCUSBORDERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8206u32 ) ; pub const SPI_SETFOCUSBORDERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8207u32 ) ; pub const SPI_GETFOCUSBORDERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8208u32 ) ; pub const SPI_SETFOCUSBORDERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8209u32 ) ; pub const SPI_GETFONTSMOOTHINGORIENTATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8210u32 ) ; pub const SPI_SETFONTSMOOTHINGORIENTATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8211u32 ) ; pub const SPI_GETMINIMUMHITRADIUS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8212u32 ) ; pub const SPI_SETMINIMUMHITRADIUS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8213u32 ) ; pub const SPI_GETMESSAGEDURATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8214u32 ) ; pub const SPI_SETMESSAGEDURATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8215u32 ) ; pub const SPI_GETCONTACTVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8216u32 ) ; pub const SPI_SETCONTACTVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8217u32 ) ; pub const SPI_GETGESTUREVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8218u32 ) ; pub const SPI_SETGESTUREVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8219u32 ) ; pub const SPI_GETMOUSEWHEELROUTING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8220u32 ) ; pub const SPI_SETMOUSEWHEELROUTING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8221u32 ) ; pub const SPI_GETPENVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8222u32 ) ; pub const SPI_SETPENVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8223u32 ) ; pub const SPI_GETPENARBITRATIONTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8224u32 ) ; pub const SPI_SETPENARBITRATIONTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8225u32 ) ; pub const SPI_GETCARETTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8226u32 ) ; pub const SPI_SETCARETTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8227u32 ) ; pub const SPI_GETHANDEDNESS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8228u32 ) ; pub const SPI_SETHANDEDNESS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8229u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_PARAMETERS_INFO_ACTION { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_PARAMETERS_INFO_ACTION { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_PARAMETERS_INFO_ACTION { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_PARAMETERS_INFO_ACTION { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_PARAMETERS_INFO_ACTION { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_PARAMETERS_INFO_ACTION { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( pub u32 ) ; pub const SPIF_UPDATEINIFILE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 1u32 ) ; pub const SPIF_SENDCHANGE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 2u32 ) ; pub const SPIF_SENDWININICHANGE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYS_COLOR_INDEX ( pub u32 ) ; pub const COLOR_3DDKSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 21u32 ) ; pub const COLOR_3DFACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 15u32 ) ; pub const COLOR_3DHIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_3DHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_3DLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 22u32 ) ; pub const COLOR_3DSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 16u32 ) ; pub const COLOR_ACTIVEBORDER : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 10u32 ) ; pub const COLOR_ACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 2u32 ) ; pub const COLOR_APPWORKSPACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 12u32 ) ; pub const COLOR_BACKGROUND : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 1u32 ) ; pub const COLOR_BTNFACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 15u32 ) ; pub const _COLOR_BTNHIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const _COLOR_BTNHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_BTNSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 16u32 ) ; pub const COLOR_BTNTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 18u32 ) ; pub const COLOR_CAPTIONTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 9u32 ) ; pub const COLOR_DESKTOP : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 1u32 ) ; pub const COLOR_GRADIENTACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 27u32 ) ; pub const COLOR_GRADIENTINACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 28u32 ) ; pub const COLOR_GRAYTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 17u32 ) ; pub const COLOR_HIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 13u32 ) ; pub const COLOR_HIGHLIGHTTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 14u32 ) ; pub const COLOR_HOTLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 26u32 ) ; pub const COLOR_INACTIVEBORDER : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 11u32 ) ; pub const COLOR_INACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 3u32 ) ; pub const COLOR_INACTIVECAPTIONTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 19u32 ) ; pub const COLOR_INFOBK : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 24u32 ) ; pub const COLOR_INFOTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 23u32 ) ; pub const COLOR_MENU : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 4u32 ) ; pub const COLOR_MENUHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 29u32 ) ; pub const COLOR_MENUBAR : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 30u32 ) ; pub const COLOR_MENUTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 7u32 ) ; pub const COLOR_SCROLLBAR : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 0u32 ) ; pub const COLOR_WINDOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 5u32 ) ; pub const COLOR_WINDOWFRAME : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 6u32 ) ; pub const COLOR_WINDOWTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 8u32 ) ; impl :: std :: convert :: From < u32 > for SYS_COLOR_INDEX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYS_COLOR_INDEX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYS_COLOR_INDEX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYS_COLOR_INDEX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYS_COLOR_INDEX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYS_COLOR_INDEX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub unsafe fn SendDlgItemMessageA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendDlgItemMessageA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendDlgItemMessageA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendDlgItemMessageW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendDlgItemMessageW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendDlgItemMessageW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , :: std :: mem :: transmute ( wparam ) , :: std :: mem :: transmute ( lparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageCallbackA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , lpresultcallback : :: std :: option :: Option < SENDASYNCPROC > , dwdata : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageCallbackA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , lpresultcallback : :: windows :: RawPtr , dwdata : usize ) -> super::super::Foundation:: BOOL ; } SendMessageCallbackA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpresultcallback ) , :: std :: mem :: transmute ( dwdata ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageCallbackW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , lpresultcallback : :: std :: option :: Option < SENDASYNCPROC > , dwdata : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageCallbackW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , lpresultcallback : :: windows :: RawPtr , dwdata : usize ) -> super::super::Foundation:: BOOL ; } SendMessageCallbackW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpresultcallback ) , :: std :: mem :: transmute ( dwdata ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageTimeoutA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageTimeoutA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize ) -> super::super::Foundation:: LRESULT ; } SendMessageTimeoutA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fuflags ) , :: std :: mem :: transmute ( utimeout ) , :: std :: mem :: transmute ( lpdwresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageTimeoutW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageTimeoutW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize ) -> super::super::Foundation:: LRESULT ; } SendMessageTimeoutW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fuflags ) , :: std :: mem :: transmute ( utimeout ) , :: std :: mem :: transmute ( lpdwresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , :: std :: mem :: transmute ( wparam ) , :: std :: mem :: transmute ( lparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendNotifyMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendNotifyMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } SendNotifyMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendNotifyMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendNotifyMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } SendNotifyMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCaretBlinkTime < > ( umseconds : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCaretBlinkTime ( umseconds : u32 ) -> super::super::Foundation:: BOOL ; } SetCaretBlinkTime ( :: std :: mem :: transmute ( umseconds ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCaretPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCaretPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetCaretPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 ) -> u32 ; } SetClassLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize ) -> usize ; } SetClassLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize ) -> usize ; } SetClassLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 ) -> u32 ; } SetClassLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , wnewword : u16 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 , wnewword : u16 ) -> u16 ; } SetClassWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( wnewword ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCoalescableTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nidevent : usize , uelapse : u32 , lptimerfunc : :: std :: option :: Option < TIMERPROC > , utolerancedelay : u32 , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCoalescableTimer ( hwnd : super::super::Foundation:: HWND , nidevent : usize , uelapse : u32 , lptimerfunc : :: windows :: RawPtr , utolerancedelay : u32 ) -> usize ; } SetCoalescableTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nidevent ) , :: std :: mem :: transmute ( uelapse ) , :: std :: mem :: transmute ( lptimerfunc ) , :: std :: mem :: transmute ( utolerancedelay ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCursor < 'a , > ( hcursor : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCursor ( hcursor : HCURSOR ) -> HCURSOR ; } SetCursor ( hcursor . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCursorPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCursorPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetCursorPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDebugErrorLevel < > ( dwlevel : u32 , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDebugErrorLevel ( dwlevel : u32 ) ; } SetDebugErrorLevel ( :: std :: mem :: transmute ( dwlevel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemInt < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , uvalue : u32 , bsigned : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemInt ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , uvalue : u32 , bsigned : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } SetDlgItemInt ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( uvalue ) , bsigned . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemTextA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemTextA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } SetDlgItemTextA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemTextW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemTextW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } SetDlgItemTextW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetForegroundWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetForegroundWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } SetForegroundWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetLayeredWindowAttributes < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , crkey : u32 , balpha : u8 , dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetLayeredWindowAttributes ( hwnd : super::super::Foundation:: HWND , crkey : u32 , balpha : u8 , dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS ) -> super::super::Foundation:: BOOL ; } SetLayeredWindowAttributes ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( crkey ) , :: std :: mem :: transmute ( balpha ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenu ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } SetMenu ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuDefaultItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uitem : u32 , fbypos : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuDefaultItem ( hmenu : HMENU , uitem : u32 , fbypos : u32 ) -> super::super::Foundation:: BOOL ; } SetMenuDefaultItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uitem ) , :: std :: mem :: transmute ( fbypos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuInfo < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , HMENU > , param1 : * mut MENUINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuInfo ( param0 : HMENU , param1 : * mut MENUINFO ) -> super::super::Foundation:: BOOL ; } SetMenuInfo ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( param1 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemBitmaps < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , hbitmapunchecked : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , hbitmapchecked : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemBitmaps ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , hbitmapunchecked : super::super::Graphics::Gdi:: HBITMAP , hbitmapchecked : super::super::Graphics::Gdi:: HBITMAP ) -> super::super::Foundation:: BOOL ; } SetMenuItemBitmaps ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , hbitmapunchecked . into_param ( ) . abi ( ) , hbitmapchecked . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemInfoA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbypositon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemInfoA ( hmenu : HMENU , item : u32 , fbypositon : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } SetMenuItemInfoA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbypositon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemInfoW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbypositon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemInfoW ( hmenu : HMENU , item : u32 , fbypositon : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } SetMenuItemInfoW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbypositon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMessageExtraInfo < 'a , > ( lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LPARAM { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMessageExtraInfo ( lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LPARAM ; } SetMessageExtraInfo ( lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMessageQueue < > ( cmessagesmax : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMessageQueue ( cmessagesmax : i32 ) -> super::super::Foundation:: BOOL ; } SetMessageQueue ( :: std :: mem :: transmute ( cmessagesmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetParent < 'a , > ( hwndchild : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndnewparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetParent ( hwndchild : super::super::Foundation:: HWND , hwndnewparent : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } SetParent ( hwndchild . into_param ( ) . abi ( ) , hwndnewparent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPhysicalCursorPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPhysicalCursorPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetPhysicalCursorPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetProcessDPIAware < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetProcessDPIAware ( ) -> super::super::Foundation:: BOOL ; } SetProcessDPIAware ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetProcessDefaultLayout < > ( dwdefaultlayout : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetProcessDefaultLayout ( dwdefaultlayout : u32 ) -> super::super::Foundation:: BOOL ; } SetProcessDefaultLayout ( :: std :: mem :: transmute ( dwdefaultlayout ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hdata : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR , hdata : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } SetPropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) , hdata . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hdata : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR , hdata : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } SetPropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) , hdata . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetSysColors < > ( celements : i32 , lpaelements : * const i32 , lpargbvalues : * const u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetSysColors ( celements : i32 , lpaelements : * const i32 , lpargbvalues : * const u32 ) -> super::super::Foundation:: BOOL ; } SetSysColors ( :: std :: mem :: transmute ( celements ) , :: std :: mem :: transmute ( lpaelements ) , :: std :: mem :: transmute ( lpargbvalues ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetSystemCursor < 'a , > ( hcur : impl :: windows :: IntoParam < 'a , HCURSOR > , id : SYSTEM_CURSOR_ID , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetSystemCursor ( hcur : HCURSOR , id : SYSTEM_CURSOR_ID ) -> super::super::Foundation:: BOOL ; } SetSystemCursor ( hcur . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( id ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nidevent : usize , uelapse : u32 , lptimerfunc : :: std :: option :: Option < TIMERPROC > , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetTimer ( hwnd : super::super::Foundation:: HWND , nidevent : usize , uelapse : u32 , lptimerfunc : :: windows :: RawPtr ) -> usize ; } SetTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nidevent ) , :: std :: mem :: transmute ( uelapse ) , :: std :: mem :: transmute ( lptimerfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowDisplayAffinity < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , dwaffinity : WINDOW_DISPLAY_AFFINITY , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowDisplayAffinity ( hwnd : super::super::Foundation:: HWND , dwaffinity : WINDOW_DISPLAY_AFFINITY ) -> super::super::Foundation:: BOOL ; } SetWindowDisplayAffinity ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwaffinity ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 ) -> i32 ; } SetWindowLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize ) -> isize ; } SetWindowLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize ) -> isize ; } SetWindowLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 ) -> i32 ; } SetWindowLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowPlacement < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpwndpl : * const WINDOWPLACEMENT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowPlacement ( hwnd : super::super::Foundation:: HWND , lpwndpl : * const WINDOWPLACEMENT ) -> super::super::Foundation:: BOOL ; } SetWindowPlacement ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndpl ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowPos < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinsertafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowPos ( hwnd : super::super::Foundation:: HWND , hwndinsertafter : super::super::Foundation:: HWND , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS ) -> super::super::Foundation:: BOOL ; } SetWindowPos ( hwnd . into_param ( ) . abi ( ) , hwndinsertafter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowTextA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowTextA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } SetWindowTextA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowTextW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowTextW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } SetWindowTextW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , wnewword : u16 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 , wnewword : u16 ) -> u16 ; } SetWindowWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( wnewword ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookA < > ( nfiltertype : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookA ( nfiltertype : i32 , pfnfilterproc : :: windows :: RawPtr ) -> HHOOK ; } SetWindowsHookA ( :: std :: mem :: transmute ( nfiltertype ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookExA < 'a , > ( idhook : WINDOWS_HOOK_ID , lpfn : :: std :: option :: Option < HOOKPROC > , hmod : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , dwthreadid : u32 , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookExA ( idhook : WINDOWS_HOOK_ID , lpfn : :: windows :: RawPtr , hmod : super::super::Foundation:: HINSTANCE , dwthreadid : u32 ) -> HHOOK ; } SetWindowsHookExA ( :: std :: mem :: transmute ( idhook ) , :: std :: mem :: transmute ( lpfn ) , hmod . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwthreadid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookExW < 'a , > ( idhook : WINDOWS_HOOK_ID , lpfn : :: std :: option :: Option < HOOKPROC > , hmod : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , dwthreadid : u32 , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookExW ( idhook : WINDOWS_HOOK_ID , lpfn : :: windows :: RawPtr , hmod : super::super::Foundation:: HINSTANCE , dwthreadid : u32 ) -> HHOOK ; } SetWindowsHookExW ( :: std :: mem :: transmute ( idhook ) , :: std :: mem :: transmute ( lpfn ) , hmod . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwthreadid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookW < > ( nfiltertype : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookW ( nfiltertype : i32 , pfnfilterproc : :: windows :: RawPtr ) -> HHOOK ; } SetWindowsHookW ( :: std :: mem :: transmute ( nfiltertype ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowCaret ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } ShowCaret ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowCursor < 'a , > ( bshow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowCursor ( bshow : super::super::Foundation:: BOOL ) -> i32 ; } ShowCursor ( bshow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowOwnedPopups < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , fshow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowOwnedPopups ( hwnd : super::super::Foundation:: HWND , fshow : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } ShowOwnedPopups ( hwnd . into_param ( ) . abi ( ) , fshow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ncmdshow : SHOW_WINDOW_CMD , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowWindow ( hwnd : super::super::Foundation:: HWND , ncmdshow : SHOW_WINDOW_CMD ) -> super::super::Foundation:: BOOL ; } ShowWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncmdshow ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowWindowAsync < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ncmdshow : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowWindowAsync ( hwnd : super::super::Foundation:: HWND , ncmdshow : i32 ) -> super::super::Foundation:: BOOL ; } ShowWindowAsync ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncmdshow ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SoundSentry < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SoundSentry ( ) -> super::super::Foundation:: BOOL ; } SoundSentry ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SwitchToThisWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , funknown : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SwitchToThisWindow ( hwnd : super::super::Foundation:: HWND , funknown : super::super::Foundation:: BOOL ) ; } SwitchToThisWindow ( hwnd . into_param ( ) . abi ( ) , funknown . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SystemParametersInfoA < > ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SystemParametersInfoA ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ) -> super::super::Foundation:: BOOL ; } SystemParametersInfoA ( :: std :: mem :: transmute ( uiaction ) , :: std :: mem :: transmute ( uiparam ) , :: std :: mem :: transmute ( pvparam ) , :: std :: mem :: transmute ( fwinini ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SystemParametersInfoW < > ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SystemParametersInfoW ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ) -> super::super::Foundation:: BOOL ; } SystemParametersInfoW ( :: std :: mem :: transmute ( uiaction ) , :: std :: mem :: transmute ( uiparam ) , :: std :: mem :: transmute ( pvparam ) , :: std :: mem :: transmute ( fwinini ) ) } # [ 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 TILE_WINDOWS_HOW ( pub u32 ) ; pub const MDITILE_HORIZONTAL : TILE_WINDOWS_HOW = TILE_WINDOWS_HOW ( 1u32 ) ; pub const MDITILE_VERTICAL : TILE_WINDOWS_HOW = TILE_WINDOWS_HOW ( 0u32 ) ; impl :: std :: convert :: From < u32 > for TILE_WINDOWS_HOW { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for TILE_WINDOWS_HOW { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for TILE_WINDOWS_HOW { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for TILE_WINDOWS_HOW { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for TILE_WINDOWS_HOW { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for TILE_WINDOWS_HOW { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub type TIMERPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : usize , param3 : u32 ) ; pub const TIMERV_COALESCING_MAX : u32 = 2147483637u32 ; pub const TIMERV_COALESCING_MIN : u32 = 1u32 ; pub const TIMERV_DEFAULT_COALESCING : u32 = 0u32 ; pub const TIMERV_NO_COALESCING : u32 = 4294967295u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TITLEBARINFO { pub cbSize : u32 , pub rcTitleBar : super::super::Foundation:: RECT , pub rgstate : [ u32 ;6 ] } impl TITLEBARINFO { } impl :: std :: default :: Default for TITLEBARINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcTitleBar : :: std :: default :: Default :: default ( ) , rgstate : [ 0 ;6 ] } } } impl :: std :: fmt :: Debug for TITLEBARINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TITLEBARINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcTitleBar" , & self . rcTitleBar ) . field ( "rgstate" , & self . rgstate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TITLEBARINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcTitleBar == other . rcTitleBar && self . rgstate == other . rgstate } } impl :: std :: cmp :: Eq for TITLEBARINFO { } unsafe impl :: windows :: Abi for TITLEBARINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TITLEBARINFOEX { pub cbSize : u32 , pub rcTitleBar : super::super::Foundation:: RECT , pub rgstate : [ u32 ;6 ] , pub rgrect : [ super::super::Foundation:: RECT ;6 ] } impl TITLEBARINFOEX { } impl :: std :: default :: Default for TITLEBARINFOEX { fn default ( ) -> Self { Self { cbSize : 0 , rcTitleBar : :: std :: default :: Default :: default ( ) , rgstate : [ 0 ;6 ] , rgrect : [ :: std :: default :: Default :: default ( ) ;6 ] } } } impl :: std :: fmt :: Debug for TITLEBARINFOEX { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TITLEBARINFOEX" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcTitleBar" , & self . rcTitleBar ) . field ( "rgstate" , & self . rgstate ) . field ( "rgrect" , & self . rgrect ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TITLEBARINFOEX { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcTitleBar == other . rcTitleBar && self . rgstate == other . rgstate && self . rgrect == other . rgrect } } impl :: std :: cmp :: Eq for TITLEBARINFOEX { } unsafe impl :: windows :: Abi for TITLEBARINFOEX { type Abi = Self ; type DefaultType = Self ; } pub const TKF_AVAILABLE : u32 = 2u32 ; pub const TKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const TKF_HOTKEYACTIVE : u32 = 4u32 ; pub const TKF_HOTKEYSOUND : u32 = 16u32 ; pub const TKF_INDICATOR : u32 = 32u32 ; pub const TKF_TOGGLEKEYSON : u32 = 1u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_LATENCY : u32 = 8u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_DELTA : f32 = 0.001f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_EXPO_SMOOTH_ALPHA : f32 = 0.99f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_LEARNING_RATE : f32 = 0.001f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MAX : f32 = 0.999f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MIN : f32 = 0.9f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_SAMPLETIME : u32 = 8u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_USE_HW_TIMESTAMP : u32 = 1u32 ; pub const TOUCH_FLAG_NONE : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_CLIENT : u32 = 1u32 ; pub const TOUCH_HIT_TESTING_DEFAULT : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_NONE : u32 = 2u32 ; pub const TOUCH_HIT_TESTING_PROXIMITY_CLOSEST : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_PROXIMITY_FARTHEST : u32 = 4095u32 ; pub const TOUCH_MASK_CONTACTAREA : u32 = 1u32 ; pub const TOUCH_MASK_NONE : u32 = 0u32 ; pub const TOUCH_MASK_ORIENTATION : u32 = 2u32 ; pub const TOUCH_MASK_PRESSURE : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TPMPARAMS { pub cbSize : u32 , pub rcExclude : super::super::Foundation:: RECT } impl TPMPARAMS { } impl :: std :: default :: Default for TPMPARAMS { fn default ( ) -> Self { Self { cbSize : 0 , rcExclude : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for TPMPARAMS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TPMPARAMS" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcExclude" , & self . rcExclude ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TPMPARAMS { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcExclude == other . rcExclude } } impl :: std :: cmp :: Eq for TPMPARAMS { } unsafe impl :: windows :: Abi for TPMPARAMS { 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 TRACK_POPUP_MENU_FLAGS ( pub u32 ) ; pub const TPM_LEFTBUTTON : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_RIGHTBUTTON : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 2u32 ) ; pub const TPM_LEFTALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_CENTERALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 4u32 ) ; pub const TPM_RIGHTALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 8u32 ) ; pub const TPM_TOPALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_VCENTERALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 16u32 ) ; pub const TPM_BOTTOMALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 32u32 ) ; pub const TPM_HORIZONTAL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_VERTICAL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 64u32 ) ; pub const TPM_NONOTIFY : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 128u32 ) ; pub const TPM_RETURNCMD : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 256u32 ) ; pub const TPM_RECURSE : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 1u32 ) ; pub const TPM_HORPOSANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 1024u32 ) ; pub const TPM_HORNEGANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 2048u32 ) ; pub const TPM_VERPOSANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 4096u32 ) ; pub const TPM_VERNEGANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 8192u32 ) ; pub const TPM_NOANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 16384u32 ) ; pub const TPM_LAYOUTRTL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 32768u32 ) ; pub const TPM_WORKAREA : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 65536u32 ) ; impl :: std :: convert :: From < u32 > for TRACK_POPUP_MENU_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for TRACK_POPUP_MENU_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for TRACK_POPUP_MENU_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for TRACK_POPUP_MENU_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for TRACK_POPUP_MENU_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for TRACK_POPUP_MENU_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const TT_OPENTYPE_FONTTYPE : u32 = 131072u32 ; pub const TYPE1_FONTTYPE : u32 = 262144u32 ; pub unsafe fn TileWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , whow : TILE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TileWindows ( hwndparent : super::super::Foundation:: HWND , whow : TILE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND ) -> u16 ; } TileWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( whow ) , :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( ckids ) , :: std :: mem :: transmute ( lpkids ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TouchPredictionParameters { pub cbSize : u32 , pub dwLatency : u32 , pub dwSampleTime : u32 , pub bUseHWTimeStamp : u32 } impl TouchPredictionParameters { } impl :: std :: default :: Default for TouchPredictionParameters { fn default ( ) -> Self { Self { cbSize : 0 , dwLatency : 0 , dwSampleTime : 0 , bUseHWTimeStamp : 0 } } } impl :: std :: fmt :: Debug for TouchPredictionParameters { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TouchPredictionParameters" ) . field ( "cbSize" , & self . cbSize ) . field ( "dwLatency" , & self . dwLatency ) . field ( "dwSampleTime" , & self . dwSampleTime ) . field ( "bUseHWTimeStamp" , & self . bUseHWTimeStamp ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TouchPredictionParameters { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . dwLatency == other . dwLatency && self . dwSampleTime == other . dwSampleTime && self . bUseHWTimeStamp == other . bUseHWTimeStamp } } impl :: std :: cmp :: Eq for TouchPredictionParameters { } unsafe impl :: windows :: Abi for TouchPredictionParameters { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn TrackPopupMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : TRACK_POPUP_MENU_FLAGS , x : i32 , y : i32 , nreserved : i32 , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , prcrect : * const super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TrackPopupMenu ( hmenu : HMENU , uflags : TRACK_POPUP_MENU_FLAGS , x : i32 , y : i32 , nreserved : i32 , hwnd : super::super::Foundation:: HWND , prcrect : * const super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } TrackPopupMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nreserved ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( prcrect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TrackPopupMenuEx < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : u32 , x : i32 , y : i32 , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptpm : * mut TPMPARAMS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TrackPopupMenuEx ( hmenu : HMENU , uflags : u32 , x : i32 , y : i32 , hwnd : super::super::Foundation:: HWND , lptpm : * mut TPMPARAMS ) -> super::super::Foundation:: BOOL ; } TrackPopupMenuEx ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptpm ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateAcceleratorA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hacctable : impl :: windows :: IntoParam < 'a , HACCEL > , lpmsg : * mut MSG , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateAcceleratorA ( hwnd : super::super::Foundation:: HWND , hacctable : HACCEL , lpmsg : * mut MSG ) -> i32 ; } TranslateAcceleratorA ( hwnd . into_param ( ) . abi ( ) , hacctable . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateAcceleratorW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hacctable : impl :: windows :: IntoParam < 'a , HACCEL > , lpmsg : * mut MSG , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateAcceleratorW ( hwnd : super::super::Foundation:: HWND , hacctable : HACCEL , lpmsg : * mut MSG ) -> i32 ; } TranslateAcceleratorW ( hwnd . into_param ( ) . abi ( ) , hacctable . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateMDISysAccel < 'a , > ( hwndclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateMDISysAccel ( hwndclient : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } TranslateMDISysAccel ( hwndclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateMessage < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateMessage ( lpmsg : * const MSG ) -> super::super::Foundation:: BOOL ; } TranslateMessage ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const UISF_ACTIVE : u32 = 4u32 ; pub const UISF_HIDEACCEL : u32 = 2u32 ; pub const UISF_HIDEFOCUS : u32 = 1u32 ; pub const UIS_CLEAR : u32 = 2u32 ; pub const UIS_INITIALIZE : u32 = 3u32 ; pub const UIS_SET : u32 = 1u32 ; pub const UNICODE_NOCHAR : u32 = 65535u32 ; pub const UOI_TIMERPROC_EXCEPTION_SUPPRESSION : u32 = 7u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct UPDATELAYEREDWINDOWINFO { pub cbSize : u32 , pub hdcDst : super::super::Graphics::Gdi:: HDC , pub pptDst : * mut super::super::Foundation:: POINT , pub psize : * mut super::super::Foundation:: SIZE , pub hdcSrc : super::super::Graphics::Gdi:: HDC , pub pptSrc : * mut super::super::Foundation:: POINT , pub crKey : u32 , pub pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , pub dwFlags : UPDATE_LAYERED_WINDOW_FLAGS , pub prcDirty : * mut super::super::Foundation:: RECT } impl UPDATELAYEREDWINDOWINFO { } impl :: std :: default :: Default for UPDATELAYEREDWINDOWINFO { fn default ( ) -> Self { Self { cbSize : 0 , hdcDst : :: std :: default :: Default :: default ( ) , pptDst : :: std :: ptr :: null_mut ( ) , psize : :: std :: ptr :: null_mut ( ) , hdcSrc : :: std :: default :: Default :: default ( ) , pptSrc : :: std :: ptr :: null_mut ( ) , crKey : 0 , pblend : :: std :: ptr :: null_mut ( ) , dwFlags : :: std :: default :: Default :: default ( ) , prcDirty : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for UPDATELAYEREDWINDOWINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "UPDATELAYEREDWINDOWINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "hdcDst" , & self . hdcDst ) . field ( "pptDst" , & self . pptDst ) . field ( "psize" , & self . psize ) . field ( "hdcSrc" , & self . hdcSrc ) . field ( "pptSrc" , & self . pptSrc ) . field ( "crKey" , & self . crKey ) . field ( "pblend" , & self . pblend ) . field ( "dwFlags" , & self . dwFlags ) . field ( "prcDirty" , & self . prcDirty ) . finish ( ) } } impl :: std :: cmp :: PartialEq for UPDATELAYEREDWINDOWINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hdcDst == other . hdcDst && self . pptDst == other . pptDst && self . psize == other . psize && self . hdcSrc == other . hdcSrc && self . pptSrc == other . pptSrc && self . crKey == other . crKey && self . pblend == other . pblend && self . dwFlags == other . dwFlags && self . prcDirty == other . prcDirty } } impl :: std :: cmp :: Eq for UPDATELAYEREDWINDOWINFO { } unsafe impl :: windows :: Abi for UPDATELAYEREDWINDOWINFO { 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 UPDATE_LAYERED_WINDOW_FLAGS ( pub u32 ) ; pub const ULW_ALPHA : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 2u32 ) ; pub const ULW_COLORKEY : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 1u32 ) ; pub const ULW_OPAQUE : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 4u32 ) ; pub const ULW_EX_NORESIZE : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for UPDATE_LAYERED_WINDOW_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for UPDATE_LAYERED_WINDOW_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for UPDATE_LAYERED_WINDOW_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for UPDATE_LAYERED_WINDOW_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for UPDATE_LAYERED_WINDOW_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for UPDATE_LAYERED_WINDOW_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const USER_DEFAULT_SCREEN_DPI : u32 = 96u32 ; pub const USER_TIMER_MAXIMUM : u32 = 2147483647u32 ; pub const USER_TIMER_MINIMUM : u32 = 10u32 ; pub unsafe fn UnhookWindowsHook < > ( ncode : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnhookWindowsHook ( ncode : i32 , pfnfilterproc : :: windows :: RawPtr ) -> super::super::Foundation:: BOOL ; } UnhookWindowsHook ( :: std :: mem :: transmute ( ncode ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnhookWindowsHookEx < 'a , > ( hhk : impl :: windows :: IntoParam < 'a , HHOOK > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnhookWindowsHookEx ( hhk : HHOOK ) -> super::super::Foundation:: BOOL ; } UnhookWindowsHookEx ( hhk . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnregisterClassA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnregisterClassA ( lpclassname : super::super::Foundation:: PSTR , hinstance : super::super::Foundation:: HINSTANCE ) -> super::super::Foundation:: BOOL ; } UnregisterClassA ( lpclassname . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnregisterClassW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnregisterClassW ( lpclassname : super::super::Foundation:: PWSTR , hinstance : super::super::Foundation:: HINSTANCE ) -> super::super::Foundation:: BOOL ; } UnregisterClassW ( lpclassname . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UpdateLayeredWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hdcdst : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , pptdst : * mut super::super::Foundation:: POINT , psize : * mut super::super::Foundation:: SIZE , hdcsrc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , pptsrc : * mut super::super::Foundation:: POINT , crkey : u32 , pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , dwflags : UPDATE_LAYERED_WINDOW_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UpdateLayeredWindow ( hwnd : super::super::Foundation:: HWND , hdcdst : super::super::Graphics::Gdi:: HDC , pptdst : * mut super::super::Foundation:: POINT , psize : * mut super::super::Foundation:: SIZE , hdcsrc : super::super::Graphics::Gdi:: HDC , pptsrc : * mut super::super::Foundation:: POINT , crkey : u32 , pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , dwflags : UPDATE_LAYERED_WINDOW_FLAGS ) -> super::super::Foundation:: BOOL ; } UpdateLayeredWindow ( hwnd . into_param ( ) . abi ( ) , hdcdst . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pptdst ) , :: std :: mem :: transmute ( psize ) , hdcsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pptsrc ) , :: std :: mem :: transmute ( crkey ) , :: std :: mem :: transmute ( pblend ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UpdateLayeredWindowIndirect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pulwinfo : * const UPDATELAYEREDWINDOWINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UpdateLayeredWindowIndirect ( hwnd : super::super::Foundation:: HWND , pulwinfo : * const UPDATELAYEREDWINDOWINFO ) -> super::super::Foundation:: BOOL ; } UpdateLayeredWindowIndirect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pulwinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const VK_ACCEPT : u32 = 30u32 ; pub const VK_ADD : u32 = 107u32 ; pub const VK_APPS : u32 = 93u32 ; pub const VK_ATTN : u32 = 246u32 ; pub const VK_BACK : u32 = 8u32 ; pub const VK_BROWSER_BACK : u32 = 166u32 ; pub const VK_BROWSER_FAVORITES : u32 = 171u32 ; pub const VK_BROWSER_FORWARD : u32 = 167u32 ; pub const VK_BROWSER_HOME : u32 = 172u32 ; pub const VK_BROWSER_REFRESH : u32 = 168u32 ; pub const VK_BROWSER_SEARCH : u32 = 170u32 ; pub const VK_BROWSER_STOP : u32 = 169u32 ; pub const VK_CANCEL : u32 = 3u32 ; pub const VK_CAPITAL : u32 = 20u32 ; pub const VK_CLEAR : u32 = 12u32 ; pub const VK_CONTROL : u32 = 17u32 ; pub const VK_CONVERT : u32 = 28u32 ; pub const VK_CRSEL : u32 = 247u32 ; pub const VK_DECIMAL : u32 = 110u32 ; pub const VK_DELETE : u32 = 46u32 ; pub const VK_DIVIDE : u32 = 111u32 ; pub const VK_DOWN : u32 = 40u32 ; pub const VK_END : u32 = 35u32 ; pub const VK_EREOF : u32 = 249u32 ; pub const VK_ESCAPE : u32 = 27u32 ; pub const VK_EXECUTE : u32 = 43u32 ; pub const VK_EXSEL : u32 = 248u32 ; pub const VK_F1 : u32 = 112u32 ; pub const VK_F10 : u32 = 121u32 ; pub const VK_F11 : u32 = 122u32 ; pub const VK_F12 : u32 = 123u32 ; pub const VK_F13 : u32 = 124u32 ; pub const VK_F14 : u32 = 125u32 ; pub const VK_F15 : u32 = 126u32 ; pub const VK_F16 : u32 = 127u32 ; pub const VK_F17 : u32 = 128u32 ; pub const VK_F18 : u32 = 129u32 ; pub const VK_F19 : u32 = 130u32 ; pub const VK_F2 : u32 = 113u32 ; pub const VK_F20 : u32 = 131u32 ; pub const VK_F21 : u32 = 132u32 ; pub const VK_F22 : u32 = 133u32 ; pub const VK_F23 : u32 = 134u32 ; pub const VK_F24 : u32 = 135u32 ; pub const VK_F3 : u32 = 114u32 ; pub const VK_F4 : u32 = 115u32 ; pub const VK_F5 : u32 = 116u32 ; pub const VK_F6 : u32 = 117u32 ; pub const VK_F7 : u32 = 118u32 ; pub const VK_F8 : u32 = 119u32 ; pub const VK_F9 : u32 = 120u32 ; pub const VK_FINAL : u32 = 24u32 ; pub const VK_GAMEPAD_A : u32 = 195u32 ; pub const VK_GAMEPAD_B : u32 = 196u32 ; pub const VK_GAMEPAD_DPAD_DOWN : u32 = 204u32 ; pub const VK_GAMEPAD_DPAD_LEFT : u32 = 205u32 ; pub const VK_GAMEPAD_DPAD_RIGHT : u32 = 206u32 ; pub const VK_GAMEPAD_DPAD_UP : u32 = 203u32 ; pub const VK_GAMEPAD_LEFT_SHOULDER : u32 = 200u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_BUTTON : u32 = 209u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_DOWN : u32 = 212u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_LEFT : u32 = 214u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_RIGHT : u32 = 213u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_UP : u32 = 211u32 ; pub const VK_GAMEPAD_LEFT_TRIGGER : u32 = 201u32 ; pub const VK_GAMEPAD_MENU : u32 = 207u32 ; pub const VK_GAMEPAD_RIGHT_SHOULDER : u32 = 199u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_BUTTON : u32 = 210u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_DOWN : u32 = 216u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_LEFT : u32 = 218u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_RIGHT : u32 = 217u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_UP : u32 = 215u32 ; pub const VK_GAMEPAD_RIGHT_TRIGGER : u32 = 202u32 ; pub const VK_GAMEPAD_VIEW : u32 = 208u32 ; pub const VK_GAMEPAD_X : u32 = 197u32 ; pub const VK_GAMEPAD_Y : u32 = 198u32 ; pub const VK_HANGEUL : u32 = 21u32 ; pub const VK_HANGUL : u32 = 21u32 ; pub const VK_HANJA : u32 = 25u32 ; pub const VK_HELP : u32 = 47u32 ; pub const VK_HOME : u32 = 36u32 ; pub const VK_ICO_00 : u32 = 228u32 ; pub const VK_ICO_CLEAR : u32 = 230u32 ; pub const VK_ICO_HELP : u32 = 227u32 ; pub const VK_INSERT : u32 = 45u32 ; pub const VK_JUNJA : u32 = 23u32 ; pub const VK_KANA : u32 = 21u32 ; pub const VK_KANJI : u32 = 25u32 ; pub const VK_LAUNCH_APP1 : u32 = 182u32 ; pub const VK_LAUNCH_APP2 : u32 = 183u32 ; pub const VK_LAUNCH_MAIL : u32 = 180u32 ; pub const VK_LAUNCH_MEDIA_SELECT : u32 = 181u32 ; pub const VK_LBUTTON : u32 = 1u32 ; pub const VK_LCONTROL : u32 = 162u32 ; pub const VK_LEFT : u32 = 37u32 ; pub const VK_LMENU : u32 = 164u32 ; pub const VK_LSHIFT : u32 = 160u32 ; pub const VK_LWIN : u32 = 91u32 ; pub const VK_MBUTTON : u32 = 4u32 ; pub const VK_MEDIA_NEXT_TRACK : u32 = 176u32 ; pub const VK_MEDIA_PLAY_PAUSE : u32 = 179u32 ; pub const VK_MEDIA_PREV_TRACK : u32 = 177u32 ; pub const VK_MEDIA_STOP : u32 = 178u32 ; pub const VK_MENU : u32 = 18u32 ; pub const VK_MODECHANGE : u32 = 31u32 ; pub const VK_MULTIPLY : u32 = 106u32 ; pub const VK_NAVIGATION_ACCEPT : u32 = 142u32 ; pub const VK_NAVIGATION_CANCEL : u32 = 143u32 ; pub const VK_NAVIGATION_DOWN : u32 = 139u32 ; pub const VK_NAVIGATION_LEFT : u32 = 140u32 ; pub const VK_NAVIGATION_MENU : u32 = 137u32 ; pub const VK_NAVIGATION_RIGHT : u32 = 141u32 ; pub const VK_NAVIGATION_UP : u32 = 138u32 ; pub const VK_NAVIGATION_VIEW : u32 = 136u32 ; pub const VK_NEXT : u32 = 34u32 ; pub const VK_NONAME : u32 = 252u32 ; pub const VK_NONCONVERT : u32 = 29u32 ; pub const VK_NUMLOCK : u32 = 144u32 ; pub const VK_NUMPAD0 : u32 = 96u32 ; pub const VK_NUMPAD1 : u32 = 97u32 ; pub const VK_NUMPAD2 : u32 = 98u32 ; pub const VK_NUMPAD3 : u32 = 99u32 ; pub const VK_NUMPAD4 : u32 = 100u32 ; pub const VK_NUMPAD5 : u32 = 101u32 ; pub const VK_NUMPAD6 : u32 = 102u32 ; pub const VK_NUMPAD7 : u32 = 103u32 ; pub const VK_NUMPAD8 : u32 = 104u32 ; pub const VK_NUMPAD9 : u32 = 105u32 ; pub const VK_OEM_1 : u32 = 186u32 ; pub const VK_OEM_102 : u32 = 226u32 ; pub const VK_OEM_2 : u32 = 191u32 ; pub const VK_OEM_3 : u32 = 192u32 ; pub const VK_OEM_4 : u32 = 219u32 ; pub const VK_OEM_5 : u32 = 220u32 ; pub const VK_OEM_6 : u32 = 221u32 ; pub const VK_OEM_7 : u32 = 222u32 ; pub const VK_OEM_8 : u32 = 223u32 ; pub const VK_OEM_ATTN : u32 = 240u32 ; pub const VK_OEM_AUTO : u32 = 243u32 ; pub const VK_OEM_AX : u32 = 225u32 ; pub const VK_OEM_BACKTAB : u32 = 245u32 ; pub const VK_OEM_CLEAR : u32 = 254u32 ; pub const VK_OEM_COMMA : u32 = 188u32 ; pub const VK_OEM_COPY : u32 = 242u32 ; pub const VK_OEM_CUSEL : u32 = 239u32 ; pub const VK_OEM_ENLW : u32 = 244u32 ; pub const VK_OEM_FINISH : u32 = 241u32 ; pub const VK_OEM_FJ_JISHO : u32 = 146u32 ; pub const VK_OEM_FJ_LOYA : u32 = 149u32 ; pub const VK_OEM_FJ_MASSHOU : u32 = 147u32 ; pub const VK_OEM_FJ_ROYA : u32 = 150u32 ; pub const VK_OEM_FJ_TOUROKU : u32 = 148u32 ; pub const VK_OEM_JUMP : u32 = 234u32 ; pub const VK_OEM_MINUS : u32 = 189u32 ; pub const VK_OEM_NEC_EQUAL : u32 = 146u32 ; pub const VK_OEM_PA1 : u32 = 235u32 ; pub const VK_OEM_PA2 : u32 = 236u32 ; pub const VK_OEM_PA3 : u32 = 237u32 ; pub const VK_OEM_PERIOD : u32 = 190u32 ; pub const VK_OEM_PLUS : u32 = 187u32 ; pub const VK_OEM_RESET : u32 = 233u32 ; pub const VK_OEM_WSCTRL : u32 = 238u32 ; pub const VK_PA1 : u32 = 253u32 ; pub const VK_PACKET : u32 = 231u32 ; pub const VK_PAUSE : u32 = 19u32 ; pub const VK_PLAY : u32 = 250u32 ; pub const VK_PRINT : u32 = 42u32 ; pub const VK_PRIOR : u32 = 33u32 ; pub const VK_PROCESSKEY : u32 = 229u32 ; pub const VK_RBUTTON : u32 = 2u32 ; pub const VK_RCONTROL : u32 = 163u32 ; pub const VK_RETURN : u32 = 13u32 ; pub const VK_RIGHT : u32 = 39u32 ; pub const VK_RMENU : u32 = 165u32 ; pub const VK_RSHIFT : u32 = 161u32 ; pub const VK_RWIN : u32 = 92u32 ; pub const VK_SCROLL : u32 = 145u32 ; pub const VK_SELECT : u32 = 41u32 ; pub const VK_SEPARATOR : u32 = 108u32 ; pub const VK_SHIFT : u32 = 16u32 ; pub const VK_SLEEP : u32 = 95u32 ; pub const VK_SNAPSHOT : u32 = 44u32 ; pub const VK_SPACE : u32 = 32u32 ; pub const VK_SUBTRACT : u32 = 109u32 ; pub const VK_TAB : u32 = 9u32 ; pub const VK_UP : u32 = 38u32 ; pub const VK_VOLUME_DOWN : u32 = 174u32 ; pub const VK_VOLUME_MUTE : u32 = 173u32 ; pub const VK_VOLUME_UP : u32 = 175u32 ; pub const VK_XBUTTON1 : u32 = 5u32 ; pub const VK_XBUTTON2 : u32 = 6u32 ; pub const VK_ZOOM : u32 = 251u32 ; pub const WA_ACTIVE : u32 = 1u32 ; pub const WA_CLICKACTIVE : u32 = 2u32 ; pub const WA_INACTIVE : u32 = 0u32 ; pub const WHEEL_DELTA : u32 = 120u32 ; pub const WH_HARDWARE : u32 = 8u32 ; pub const WH_MAX : u32 = 14u32 ; pub const WH_MIN : i32 = -1i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWINFO { pub cbSize : u32 , pub rcWindow : super::super::Foundation:: RECT , pub rcClient : super::super::Foundation:: RECT , pub dwStyle : u32 , pub dwExStyle : u32 , pub dwWindowStatus : u32 , pub cxWindowBorders : u32 , pub cyWindowBorders : u32 , pub atomWindowType : u16 , pub wCreatorVersion : u16 } impl WINDOWINFO { } impl :: std :: default :: Default for WINDOWINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcWindow : :: std :: default :: Default :: default ( ) , rcClient : :: std :: default :: Default :: default ( ) , dwStyle : 0 , dwExStyle : 0 , dwWindowStatus : 0 , cxWindowBorders : 0 , cyWindowBorders : 0 , atomWindowType : 0 , wCreatorVersion : 0 } } } impl :: std :: fmt :: Debug for WINDOWINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcWindow" , & self . rcWindow ) . field ( "rcClient" , & self . rcClient ) . field ( "dwStyle" , & self . dwStyle ) . field ( "dwExStyle" , & self . dwExStyle ) . field ( "dwWindowStatus" , & self . dwWindowStatus ) . field ( "cxWindowBorders" , & self . cxWindowBorders ) . field ( "cyWindowBorders" , & self . cyWindowBorders ) . field ( "atomWindowType" , & self . atomWindowType ) . field ( "wCreatorVersion" , & self . wCreatorVersion ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcWindow == other . rcWindow && self . rcClient == other . rcClient && self . dwStyle == other . dwStyle && self . dwExStyle == other . dwExStyle && self . dwWindowStatus == other . dwWindowStatus && self . cxWindowBorders == other . cxWindowBorders && self . cyWindowBorders == other . cyWindowBorders && self . atomWindowType == other . atomWindowType && self . wCreatorVersion == other . wCreatorVersion } } impl :: std :: cmp :: Eq for WINDOWINFO { } unsafe impl :: windows :: Abi for WINDOWINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWPLACEMENT { pub length : u32 , pub flags : WINDOWPLACEMENT_FLAGS , pub showCmd : SHOW_WINDOW_CMD , pub ptMinPosition : super::super::Foundation:: POINT , pub ptMaxPosition : super::super::Foundation:: POINT , pub rcNormalPosition : super::super::Foundation:: RECT } impl WINDOWPLACEMENT { } impl :: std :: default :: Default for WINDOWPLACEMENT { fn default ( ) -> Self { Self { length : 0 , flags : :: std :: default :: Default :: default ( ) , showCmd : :: std :: default :: Default :: default ( ) , ptMinPosition : :: std :: default :: Default :: default ( ) , ptMaxPosition : :: std :: default :: Default :: default ( ) , rcNormalPosition : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WINDOWPLACEMENT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWPLACEMENT" ) . field ( "length" , & self . length ) . field ( "flags" , & self . flags ) . field ( "showCmd" , & self . showCmd ) . field ( "ptMinPosition" , & self . ptMinPosition ) . field ( "ptMaxPosition" , & self . ptMaxPosition ) . field ( "rcNormalPosition" , & self . rcNormalPosition ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWPLACEMENT { fn eq ( & self , other : & Self ) -> bool { self . length == other . length && self . flags == other . flags && self . showCmd == other . showCmd && self . ptMinPosition == other . ptMinPosition && self . ptMaxPosition == other . ptMaxPosition && self . rcNormalPosition == other . rcNormalPosition } } impl :: std :: cmp :: Eq for WINDOWPLACEMENT { } unsafe impl :: windows :: Abi for WINDOWPLACEMENT { 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 WINDOWPLACEMENT_FLAGS ( pub u32 ) ; pub const WPF_ASYNCWINDOWPLACEMENT : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 4u32 ) ; pub const WPF_RESTORETOMAXIMIZED : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 2u32 ) ; pub const WPF_SETMINPOSITION : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for WINDOWPLACEMENT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOWPLACEMENT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOWPLACEMENT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOWPLACEMENT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOWPLACEMENT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOWPLACEMENT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWPOS { pub hwnd : super::super::Foundation:: HWND , pub hwndInsertAfter : super::super::Foundation:: HWND , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub flags : SET_WINDOW_POS_FLAGS } impl WINDOWPOS { } impl :: std :: default :: Default for WINDOWPOS { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , flags : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WINDOWPOS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWPOS" ) . field ( "hwnd" , & self . hwnd ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "flags" , & self . flags ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWPOS { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . hwndInsertAfter == other . hwndInsertAfter && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . flags == other . flags } } impl :: std :: cmp :: Eq for WINDOWPOS { } unsafe impl :: windows :: Abi for WINDOWPOS { 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 WINDOWS_HOOK_ID ( pub i32 ) ; pub const WH_CALLWNDPROC : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 4i32 ) ; pub const WH_CALLWNDPROCRET : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 12i32 ) ; pub const WH_CBT : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 5i32 ) ; pub const WH_DEBUG : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 9i32 ) ; pub const WH_FOREGROUNDIDLE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 11i32 ) ; pub const WH_GETMESSAGE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 3i32 ) ; pub const WH_JOURNALPLAYBACK : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 1i32 ) ; pub const WH_JOURNALRECORD : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 0i32 ) ; pub const WH_KEYBOARD : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 2i32 ) ; pub const WH_KEYBOARD_LL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 13i32 ) ; pub const WH_MOUSE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 7i32 ) ; pub const WH_MOUSE_LL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 14i32 ) ; pub const WH_MSGFILTER : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( -1i32 ) ; pub const WH_SHELL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 10i32 ) ; pub const WH_SYSMSGFILTER : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 6i32 ) ; impl :: std :: convert :: From < i32 > for WINDOWS_HOOK_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOWS_HOOK_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 WINDOW_DISPLAY_AFFINITY ( pub u32 ) ; pub const WDA_NONE : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 0u32 ) ; pub const WDA_MONITOR : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 1u32 ) ; pub const WDA_EXCLUDEFROMCAPTURE : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 17u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_DISPLAY_AFFINITY { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_DISPLAY_AFFINITY { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_DISPLAY_AFFINITY { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_DISPLAY_AFFINITY { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_DISPLAY_AFFINITY { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_DISPLAY_AFFINITY { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_EX_STYLE ( pub u32 ) ; pub const WS_EX_DLGMODALFRAME : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1u32 ) ; pub const WS_EX_NOPARENTNOTIFY : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4u32 ) ; pub const WS_EX_TOPMOST : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 8u32 ) ; pub const WS_EX_ACCEPTFILES : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 16u32 ) ; pub const WS_EX_TRANSPARENT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 32u32 ) ; pub const WS_EX_MDICHILD : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 64u32 ) ; pub const WS_EX_TOOLWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 128u32 ) ; pub const WS_EX_WINDOWEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 256u32 ) ; pub const WS_EX_CLIENTEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 512u32 ) ; pub const WS_EX_CONTEXTHELP : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1024u32 ) ; pub const WS_EX_RIGHT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4096u32 ) ; pub const WS_EX_LEFT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_RTLREADING : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 8192u32 ) ; pub const WS_EX_LTRREADING : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_LEFTSCROLLBAR : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 16384u32 ) ; pub const WS_EX_RIGHTSCROLLBAR : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_CONTROLPARENT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 65536u32 ) ; pub const WS_EX_STATICEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 131072u32 ) ; pub const WS_EX_APPWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 262144u32 ) ; pub const WS_EX_OVERLAPPEDWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 768u32 ) ; pub const WS_EX_PALETTEWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 392u32 ) ; pub const WS_EX_LAYERED : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 524288u32 ) ; pub const WS_EX_NOINHERITLAYOUT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1048576u32 ) ; pub const WS_EX_NOREDIRECTIONBITMAP : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 2097152u32 ) ; pub const WS_EX_LAYOUTRTL : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4194304u32 ) ; pub const WS_EX_COMPOSITED : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 33554432u32 ) ; pub const WS_EX_NOACTIVATE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 134217728u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_EX_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_EX_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_EX_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_EX_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_EX_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_EX_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_LONG_PTR_INDEX ( pub i32 ) ; pub const GWL_EXSTYLE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -20i32 ) ; pub const GWLP_HINSTANCE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -6i32 ) ; pub const GWLP_HWNDPARENT : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -8i32 ) ; pub const GWLP_ID : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -12i32 ) ; pub const GWL_STYLE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -16i32 ) ; pub const GWLP_USERDATA : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -21i32 ) ; pub const GWLP_WNDPROC : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -4i32 ) ; pub const GWL_HINSTANCE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -6i32 ) ; pub const GWL_ID : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -12i32 ) ; pub const GWL_USERDATA : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -21i32 ) ; pub const GWL_WNDPROC : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -4i32 ) ; pub const GWL_HWNDPARENT : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -8i32 ) ; impl :: std :: convert :: From < i32 > for WINDOW_LONG_PTR_INDEX { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_LONG_PTR_INDEX { 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 WINDOW_MESSAGE_FILTER_ACTION ( pub u32 ) ; pub const MSGFLT_ALLOW : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 1u32 ) ; pub const MSGFLT_DISALLOW : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 2u32 ) ; pub const MSGFLT_RESET : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 0u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_MESSAGE_FILTER_ACTION { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_MESSAGE_FILTER_ACTION { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_MESSAGE_FILTER_ACTION { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_MESSAGE_FILTER_ACTION { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_MESSAGE_FILTER_ACTION { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_MESSAGE_FILTER_ACTION { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_STYLE ( pub u32 ) ; pub const WS_OVERLAPPED : WINDOW_STYLE = WINDOW_STYLE ( 0u32 ) ; pub const WS_POPUP : WINDOW_STYLE = WINDOW_STYLE ( 2147483648u32 ) ; pub const WS_CHILD : WINDOW_STYLE = WINDOW_STYLE ( 1073741824u32 ) ; pub const WS_MINIMIZE : WINDOW_STYLE = WINDOW_STYLE ( 536870912u32 ) ; pub const WS_VISIBLE : WINDOW_STYLE = WINDOW_STYLE ( 268435456u32 ) ; pub const WS_DISABLED : WINDOW_STYLE = WINDOW_STYLE ( 134217728u32 ) ; pub const WS_CLIPSIBLINGS : WINDOW_STYLE = WINDOW_STYLE ( 67108864u32 ) ; pub const WS_CLIPCHILDREN : WINDOW_STYLE = WINDOW_STYLE ( 33554432u32 ) ; pub const WS_MAXIMIZE : WINDOW_STYLE = WINDOW_STYLE ( 16777216u32 ) ; pub const WS_CAPTION : WINDOW_STYLE = WINDOW_STYLE ( 12582912u32 ) ; pub const WS_BORDER : WINDOW_STYLE = WINDOW_STYLE ( 8388608u32 ) ; pub const WS_DLGFRAME : WINDOW_STYLE = WINDOW_STYLE ( 4194304u32 ) ; pub const WS_VSCROLL : WINDOW_STYLE = WINDOW_STYLE ( 2097152u32 ) ; pub const WS_HSCROLL : WINDOW_STYLE = WINDOW_STYLE ( 1048576u32 ) ; pub const WS_SYSMENU : WINDOW_STYLE = WINDOW_STYLE ( 524288u32 ) ; pub const WS_THICKFRAME : WINDOW_STYLE = WINDOW_STYLE ( 262144u32 ) ; pub const WS_GROUP : WINDOW_STYLE = WINDOW_STYLE ( 131072u32 ) ; pub const WS_TABSTOP : WINDOW_STYLE = WINDOW_STYLE ( 65536u32 ) ; pub const WS_MINIMIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 131072u32 ) ; pub const WS_MAXIMIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 65536u32 ) ; pub const WS_TILED : WINDOW_STYLE = WINDOW_STYLE ( 0u32 ) ; pub const WS_ICONIC : WINDOW_STYLE = WINDOW_STYLE ( 536870912u32 ) ; pub const WS_SIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 262144u32 ) ; pub const WS_TILEDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 13565952u32 ) ; pub const WS_OVERLAPPEDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 13565952u32 ) ; pub const WS_POPUPWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 2156396544u32 ) ; pub const WS_CHILDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 1073741824u32 ) ; pub const WS_ACTIVECAPTION : WINDOW_STYLE = WINDOW_STYLE ( 1u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const WINEVENT_INCONTEXT : u32 = 4u32 ; pub const WINEVENT_OUTOFCONTEXT : u32 = 0u32 ; pub const WINEVENT_SKIPOWNPROCESS : u32 = 2u32 ; pub const WINEVENT_SKIPOWNTHREAD : u32 = 1u32 ; pub type WINSTAENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type WINSTAENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub const WINSTA_ACCESSCLIPBOARD : i32 = 4i32 ; pub const WINSTA_ACCESSGLOBALATOMS : i32 = 32i32 ; pub const WINSTA_CREATEDESKTOP : i32 = 8i32 ; pub const WINSTA_ENUMDESKTOPS : i32 = 1i32 ; pub const WINSTA_ENUMERATE : i32 = 256i32 ; pub const WINSTA_EXITWINDOWS : i32 = 64i32 ; pub const WINSTA_READATTRIBUTES : i32 = 2i32 ; pub const WINSTA_READSCREEN : i32 = 512i32 ; pub const WINSTA_WRITEATTRIBUTES : i32 = 16i32 ; pub const WMSZ_BOTTOM : u32 = 6u32 ; pub const WMSZ_BOTTOMLEFT : u32 = 7u32 ; pub const WMSZ_BOTTOMRIGHT : u32 = 8u32 ; pub const WMSZ_LEFT : u32 = 1u32 ; pub const WMSZ_RIGHT : u32 = 2u32 ; pub const WMSZ_TOP : u32 = 3u32 ; pub const WMSZ_TOPLEFT : u32 = 4u32 ; pub const WMSZ_TOPRIGHT : u32 = 5u32 ; pub const WM_ACTIVATE : u32 = 6u32 ; pub const WM_ACTIVATEAPP : u32 = 28u32 ; pub const WM_AFXFIRST : u32 = 864u32 ; pub const WM_AFXLAST : u32 = 895u32 ; pub const WM_APP : u32 = 32768u32 ; pub const WM_APPCOMMAND : u32 = 793u32 ; pub const WM_ASKCBFORMATNAME : u32 = 780u32 ; pub const WM_CANCELJOURNAL : u32 = 75u32 ; pub const WM_CANCELMODE : u32 = 31u32 ; pub const WM_CAPTURECHANGED : u32 = 533u32 ; pub const WM_CHANGECBCHAIN : u32 = 781u32 ; pub const WM_CHANGEUISTATE : u32 = 295u32 ; pub const WM_CHAR : u32 = 258u32 ; pub const WM_CHARTOITEM : u32 = 47u32 ; pub const WM_CHILDACTIVATE : u32 = 34u32 ; pub const WM_CHOOSEFONT_GETLOGFONT : u32 = 1025u32 ; pub const WM_CHOOSEFONT_SETFLAGS : u32 = 1126u32 ; pub const WM_CHOOSEFONT_SETLOGFONT : u32 = 1125u32 ; pub const WM_CLEAR : u32 = 771u32 ; pub const WM_CLIPBOARDUPDATE : u32 = 797u32 ; pub const WM_CLOSE : u32 = 16u32 ; pub const WM_COMMAND : u32 = 273u32 ; pub const WM_COMMNOTIFY : u32 = 68u32 ; pub const WM_COMPACTING : u32 = 65u32 ; pub const WM_COMPAREITEM : u32 = 57u32 ; pub const WM_COPY : u32 = 769u32 ; pub const WM_COPYDATA : u32 = 74u32 ; pub const WM_CREATE : u32 = 1u32 ; pub const WM_CTLCOLORBTN : u32 = 309u32 ; pub const WM_CTLCOLORDLG : u32 = 310u32 ; pub const WM_CTLCOLOREDIT : u32 = 307u32 ; pub const WM_CTLCOLORLISTBOX : u32 = 308u32 ; pub const WM_CTLCOLORMSGBOX : u32 = 306u32 ; pub const WM_CTLCOLORSCROLLBAR : u32 = 311u32 ; pub const WM_CTLCOLORSTATIC : u32 = 312u32 ; pub const WM_CUT : u32 = 768u32 ; pub const WM_DEADCHAR : u32 = 259u32 ; pub const WM_DELETEITEM : u32 = 45u32 ; pub const WM_DESTROY : u32 = 2u32 ; pub const WM_DESTROYCLIPBOARD : u32 = 775u32 ; pub const WM_DEVICECHANGE : u32 = 537u32 ; pub const WM_DEVMODECHANGE : u32 = 27u32 ; pub const WM_DISPLAYCHANGE : u32 = 126u32 ; pub const WM_DPICHANGED : u32 = 736u32 ; pub const WM_DPICHANGED_AFTERPARENT : u32 = 739u32 ; pub const WM_DPICHANGED_BEFOREPARENT : u32 = 738u32 ; pub const WM_DRAWCLIPBOARD : u32 = 776u32 ; pub const WM_DRAWITEM : u32 = 43u32 ; pub const WM_DROPFILES : u32 = 563u32 ; pub const WM_DWMCOLORIZATIONCOLORCHANGED : u32 = 800u32 ; pub const WM_DWMCOMPOSITIONCHANGED : u32 = 798u32 ; pub const WM_DWMNCRENDERINGCHANGED : u32 = 799u32 ; pub const WM_DWMSENDICONICLIVEPREVIEWBITMAP : u32 = 806u32 ; pub const WM_DWMSENDICONICTHUMBNAIL : u32 = 803u32 ; pub const WM_DWMWINDOWMAXIMIZEDCHANGE : u32 = 801u32 ; pub const WM_ENABLE : u32 = 10u32 ; pub const WM_ENDSESSION : u32 = 22u32 ; pub const WM_ENTERIDLE : u32 = 289u32 ; pub const WM_ENTERMENULOOP : u32 = 529u32 ; pub const WM_ENTERSIZEMOVE : u32 = 561u32 ; pub const WM_ERASEBKGND : u32 = 20u32 ; pub const WM_EXITMENULOOP : u32 = 530u32 ; pub const WM_EXITSIZEMOVE : u32 = 562u32 ; pub const WM_FONTCHANGE : u32 = 29u32 ; pub const WM_GESTURE : u32 = 281u32 ; pub const WM_GESTURENOTIFY : u32 = 282u32 ; pub const WM_GETDLGCODE : u32 = 135u32 ; pub const WM_GETDPISCALEDSIZE : u32 = 740u32 ; pub const WM_GETFONT : u32 = 49u32 ; pub const WM_GETHOTKEY : u32 = 51u32 ; pub const WM_GETICON : u32 = 127u32 ; pub const WM_GETMINMAXINFO : u32 = 36u32 ; pub const WM_GETOBJECT : u32 = 61u32 ; pub const WM_GETTEXT : u32 = 13u32 ; pub const WM_GETTEXTLENGTH : u32 = 14u32 ; pub const WM_GETTITLEBARINFOEX : u32 = 831u32 ; pub const WM_HANDHELDFIRST : u32 = 856u32 ; pub const WM_HANDHELDLAST : u32 = 863u32 ; pub const WM_HELP : u32 = 83u32 ; pub const WM_HOTKEY : u32 = 786u32 ; pub const WM_HSCROLL : u32 = 276u32 ; pub const WM_HSCROLLCLIPBOARD : u32 = 782u32 ; pub const WM_ICONERASEBKGND : u32 = 39u32 ; pub const WM_IME_CHAR : u32 = 646u32 ; pub const WM_IME_COMPOSITION : u32 = 271u32 ; pub const WM_IME_COMPOSITIONFULL : u32 = 644u32 ; pub const WM_IME_CONTROL : u32 = 643u32 ; pub const WM_IME_ENDCOMPOSITION : u32 = 270u32 ; pub const WM_IME_KEYDOWN : u32 = 656u32 ; pub const WM_IME_KEYLAST : u32 = 271u32 ; pub const WM_IME_KEYUP : u32 = 657u32 ; pub const WM_IME_NOTIFY : u32 = 642u32 ; pub const WM_IME_REQUEST : u32 = 648u32 ; pub const WM_IME_SELECT : u32 = 645u32 ; pub const WM_IME_SETCONTEXT : u32 = 641u32 ; pub const WM_IME_STARTCOMPOSITION : u32 = 269u32 ; pub const WM_INITDIALOG : u32 = 272u32 ; pub const WM_INITMENU : u32 = 278u32 ; pub const WM_INITMENUPOPUP : u32 = 279u32 ; pub const WM_INPUT : u32 = 255u32 ; pub const WM_INPUTLANGCHANGE : u32 = 81u32 ; pub const WM_INPUTLANGCHANGEREQUEST : u32 = 80u32 ; pub const WM_INPUT_DEVICE_CHANGE : u32 = 254u32 ; pub const WM_KEYDOWN : u32 = 256u32 ; pub const WM_KEYFIRST : u32 = 256u32 ; pub const WM_KEYLAST : u32 = 265u32 ; pub const WM_KEYUP : u32 = 257u32 ; pub const WM_KILLFOCUS : u32 = 8u32 ; pub const WM_LBUTTONDBLCLK : u32 = 515u32 ; pub const WM_LBUTTONDOWN : u32 = 513u32 ; pub const WM_LBUTTONUP : u32 = 514u32 ; pub const WM_MBUTTONDBLCLK : u32 = 521u32 ; pub const WM_MBUTTONDOWN : u32 = 519u32 ; pub const WM_MBUTTONUP : u32 = 520u32 ; pub const WM_MDIACTIVATE : u32 = 546u32 ; pub const WM_MDICASCADE : u32 = 551u32 ; pub const WM_MDICREATE : u32 = 544u32 ; pub const WM_MDIDESTROY : u32 = 545u32 ; pub const WM_MDIGETACTIVE : u32 = 553u32 ; pub const WM_MDIICONARRANGE : u32 = 552u32 ; pub const WM_MDIMAXIMIZE : u32 = 549u32 ; pub const WM_MDINEXT : u32 = 548u32 ; pub const WM_MDIREFRESHMENU : u32 = 564u32 ; pub const WM_MDIRESTORE : u32 = 547u32 ; pub const WM_MDISETMENU : u32 = 560u32 ; pub const WM_MDITILE : u32 = 550u32 ; pub const WM_MEASUREITEM : u32 = 44u32 ; pub const WM_MENUCHAR : u32 = 288u32 ; pub const WM_MENUCOMMAND : u32 = 294u32 ; pub const WM_MENUDRAG : u32 = 291u32 ; pub const WM_MENUGETOBJECT : u32 = 292u32 ; pub const WM_MENURBUTTONUP : u32 = 290u32 ; pub const WM_MENUSELECT : u32 = 287u32 ; pub const WM_MOUSEACTIVATE : u32 = 33u32 ; pub const WM_MOUSEFIRST : u32 = 512u32 ; pub const WM_MOUSEHWHEEL : u32 = 526u32 ; pub const WM_MOUSELAST : u32 = 526u32 ; pub const WM_MOUSEMOVE : u32 = 512u32 ; pub const WM_MOUSEWHEEL : u32 = 522u32 ; pub const WM_MOVE : u32 = 3u32 ; pub const WM_MOVING : u32 = 534u32 ; pub const WM_NCACTIVATE : u32 = 134u32 ; pub const WM_NCCALCSIZE : u32 = 131u32 ; pub const WM_NCCREATE : u32 = 129u32 ; pub const WM_NCDESTROY : u32 = 130u32 ; pub const WM_NCHITTEST : u32 = 132u32 ; pub const WM_NCLBUTTONDBLCLK : u32 = 163u32 ; pub const WM_NCLBUTTONDOWN : u32 = 161u32 ; pub const WM_NCLBUTTONUP : u32 = 162u32 ; pub const WM_NCMBUTTONDBLCLK : u32 = 169u32 ; pub const WM_NCMBUTTONDOWN : u32 = 167u32 ; pub const WM_NCMBUTTONUP : u32 = 168u32 ; pub const WM_NCMOUSEHOVER : u32 = 672u32 ; pub const WM_NCMOUSELEAVE : u32 = 674u32 ; pub const WM_NCMOUSEMOVE : u32 = 160u32 ; pub const WM_NCPAINT : u32 = 133u32 ; pub const WM_NCPOINTERDOWN : u32 = 578u32 ; pub const WM_NCPOINTERUP : u32 = 579u32 ; pub const WM_NCPOINTERUPDATE : u32 = 577u32 ; pub const WM_NCRBUTTONDBLCLK : u32 = 166u32 ; pub const WM_NCRBUTTONDOWN : u32 = 164u32 ; pub const WM_NCRBUTTONUP : u32 = 165u32 ; pub const WM_NCXBUTTONDBLCLK : u32 = 173u32 ; pub const WM_NCXBUTTONDOWN : u32 = 171u32 ; pub const WM_NCXBUTTONUP : u32 = 172u32 ; pub const WM_NEXTDLGCTL : u32 = 40u32 ; pub const WM_NEXTMENU : u32 = 531u32 ; pub const WM_NOTIFYFORMAT : u32 = 85u32 ; pub const WM_NULL : u32 = 0u32 ; pub const WM_PAINT : u32 = 15u32 ; pub const WM_PAINTCLIPBOARD : u32 = 777u32 ; pub const WM_PAINTICON : u32 = 38u32 ; pub const WM_PALETTECHANGED : u32 = 785u32 ; pub const WM_PALETTEISCHANGING : u32 = 784u32 ; pub const WM_PARENTNOTIFY : u32 = 528u32 ; pub const WM_PASTE : u32 = 770u32 ; pub const WM_PENWINFIRST : u32 = 896u32 ; pub const WM_PENWINLAST : u32 = 911u32 ; pub const WM_POINTERACTIVATE : u32 = 587u32 ; pub const WM_POINTERCAPTURECHANGED : u32 = 588u32 ; pub const WM_POINTERDEVICECHANGE : u32 = 568u32 ; pub const WM_POINTERDEVICEINRANGE : u32 = 569u32 ; pub const WM_POINTERDEVICEOUTOFRANGE : u32 = 570u32 ; pub const WM_POINTERDOWN : u32 = 582u32 ; pub const WM_POINTERENTER : u32 = 585u32 ; pub const WM_POINTERHWHEEL : u32 = 591u32 ; pub const WM_POINTERLEAVE : u32 = 586u32 ; pub const WM_POINTERROUTEDAWAY : u32 = 594u32 ; pub const WM_POINTERROUTEDRELEASED : u32 = 595u32 ; pub const WM_POINTERROUTEDTO : u32 = 593u32 ; pub const WM_POINTERUP : u32 = 583u32 ; pub const WM_POINTERUPDATE : u32 = 581u32 ; pub const WM_POINTERWHEEL : u32 = 590u32 ; pub const WM_POWER : u32 = 72u32 ; pub const WM_POWERBROADCAST : u32 = 536u32 ; pub const WM_PRINT : u32 = 791u32 ; pub const WM_PSD_ENVSTAMPRECT : u32 = 1029u32 ; pub const WM_PSD_FULLPAGERECT : u32 = 1025u32 ; pub const WM_PSD_GREEKTEXTRECT : u32 = 1028u32 ; pub const WM_PSD_MARGINRECT : u32 = 1027u32 ; pub const WM_PSD_MINMARGINRECT : u32 = 1026u32 ; pub const WM_PSD_YAFULLPAGERECT : u32 = 1030u32 ; pub const WM_QUERYDRAGICON : u32 = 55u32 ; pub const WM_QUERYENDSESSION : u32 = 17u32 ; pub const WM_QUERYNEWPALETTE : u32 = 783u32 ; pub const WM_QUERYOPEN : u32 = 19u32 ; pub const WM_QUERYUISTATE : u32 = 297u32 ; pub const WM_QUEUESYNC : u32 = 35u32 ; pub const WM_QUIT : u32 = 18u32 ; pub const WM_RBUTTONDBLCLK : u32 = 518u32 ; pub const WM_RBUTTONDOWN : u32 = 516u32 ; pub const WM_RBUTTONUP : u32 = 517u32 ; pub const WM_RENDERALLFORMATS : u32 = 774u32 ; pub const WM_RENDERFORMAT : u32 = 773u32 ; pub const WM_SETCURSOR : u32 = 32u32 ; pub const WM_SETFOCUS : u32 = 7u32 ; pub const WM_SETFONT : u32 = 48u32 ; pub const WM_SETHOTKEY : u32 = 50u32 ; pub const WM_SETICON : u32 = 128u32 ; pub const WM_SETREDRAW : u32 = 11u32 ; pub const WM_SETTEXT : u32 = 12u32 ; pub const WM_SHOWWINDOW : u32 = 24u32 ; pub const WM_SIZE : u32 = 5u32 ; pub const WM_SIZECLIPBOARD : u32 = 779u32 ; pub const WM_SIZING : u32 = 532u32 ; pub const WM_SPOOLERSTATUS : u32 = 42u32 ; pub const WM_STYLECHANGED : u32 = 125u32 ; pub const WM_STYLECHANGING : u32 = 124u32 ; pub const WM_SYNCPAINT : u32 = 136u32 ; pub const WM_SYSCHAR : u32 = 262u32 ; pub const WM_SYSCOLORCHANGE : u32 = 21u32 ; pub const WM_SYSCOMMAND : u32 = 274u32 ; pub const WM_SYSDEADCHAR : u32 = 263u32 ; pub const WM_SYSKEYDOWN : u32 = 260u32 ; pub const WM_SYSKEYUP : u32 = 261u32 ; pub const WM_TABLET_FIRST : u32 = 704u32 ; pub const WM_TABLET_LAST : u32 = 735u32 ; pub const WM_TCARD : u32 = 82u32 ; pub const WM_THEMECHANGED : u32 = 794u32 ; pub const WM_TIMECHANGE : u32 = 30u32 ; pub const WM_TIMER : u32 = 275u32 ; pub const WM_TOUCH : u32 = 576u32 ; pub const WM_TOUCHHITTESTING : u32 = 589u32 ; pub const WM_UNDO : u32 = 772u32 ; pub const WM_UNINITMENUPOPUP : u32 = 293u32 ; pub const WM_UPDATEUISTATE : u32 = 296u32 ; pub const WM_USER : u32 = 1024u32 ; pub const WM_USERCHANGED : u32 = 84u32 ; pub const WM_VKEYTOITEM : u32 = 46u32 ; pub const WM_VSCROLL : u32 = 277u32 ; pub const WM_VSCROLLCLIPBOARD : u32 = 778u32 ; pub const WM_WINDOWPOSCHANGED : u32 = 71u32 ; pub const WM_WINDOWPOSCHANGING : u32 = 70u32 ; pub const WM_WININICHANGE : u32 = 26u32 ; pub const WM_WTSSESSION_CHANGE : u32 = 689u32 ; pub const WM_XBUTTONDBLCLK : u32 = 525u32 ; pub const WM_XBUTTONDOWN : u32 = 523u32 ; pub const WM_XBUTTONUP : u32 = 524u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSA { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR } impl WNDCLASSA { } impl :: std :: default :: Default for WNDCLASSA { fn default ( ) -> Self { Self { style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSA" ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSA { fn eq ( & self , other : & Self ) -> bool { self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName } } impl :: std :: cmp :: Eq for WNDCLASSA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSA_abi { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for WNDCLASSA { type Abi = WNDCLASSA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSEXA { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR , pub hIconSm : HICON } impl WNDCLASSEXA { } impl :: std :: default :: Default for WNDCLASSEXA { fn default ( ) -> Self { Self { cbSize : 0 , style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) , hIconSm : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSEXA" ) . field ( "cbSize" , & self . cbSize ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . field ( "hIconSm" , & self . hIconSm ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSEXA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName && self . hIconSm == other . hIconSm } } impl :: std :: cmp :: Eq for WNDCLASSEXA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSEXA_abi { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR , pub hIconSm : HICON } unsafe impl :: windows :: Abi for WNDCLASSEXA { type Abi = WNDCLASSEXA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSEXW { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR , pub hIconSm : HICON } impl WNDCLASSEXW { } impl :: std :: default :: Default for WNDCLASSEXW { fn default ( ) -> Self { Self { cbSize : 0 , style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) , hIconSm : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSEXW" ) . field ( "cbSize" , & self . cbSize ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . field ( "hIconSm" , & self . hIconSm ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSEXW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName && self . hIconSm == other . hIconSm } } impl :: std :: cmp :: Eq for WNDCLASSEXW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSEXW_abi { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR , pub hIconSm : HICON } unsafe impl :: windows :: Abi for WNDCLASSEXW { type Abi = WNDCLASSEXW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSW { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR } impl WNDCLASSW { } impl :: std :: default :: Default for WNDCLASSW { fn default ( ) -> Self { Self { style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSW" ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSW { fn eq ( & self , other : & Self ) -> bool { self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName } } impl :: std :: cmp :: Eq for WNDCLASSW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSW_abi { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for WNDCLASSW { type Abi = WNDCLASSW_abi ; 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 WNDCLASS_STYLES ( pub u32 ) ; pub const CS_VREDRAW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 1u32 ) ; pub const CS_HREDRAW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 2u32 ) ; pub const CS_DBLCLKS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 8u32 ) ; pub const CS_OWNDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 32u32 ) ; pub const CS_CLASSDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 64u32 ) ; pub const CS_PARENTDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 128u32 ) ; pub const CS_NOCLOSE : WNDCLASS_STYLES = WNDCLASS_STYLES ( 512u32 ) ; pub const CS_SAVEBITS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 2048u32 ) ; pub const CS_BYTEALIGNCLIENT : WNDCLASS_STYLES = WNDCLASS_STYLES ( 4096u32 ) ; pub const CS_BYTEALIGNWINDOW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 8192u32 ) ; pub const CS_GLOBALCLASS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 16384u32 ) ; pub const CS_IME : WNDCLASS_STYLES = WNDCLASS_STYLES ( 65536u32 ) ; pub const CS_DROPSHADOW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 131072u32 ) ; impl :: std :: convert :: From < u32 > for WNDCLASS_STYLES { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WNDCLASS_STYLES { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WNDCLASS_STYLES { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WNDCLASS_STYLES { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WNDCLASS_STYLES { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WNDCLASS_STYLES { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub type WNDENUMPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type WNDPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; pub const WSF_VISIBLE : i32 = 1i32 ; pub const WTS_CONSOLE_CONNECT : u32 = 1u32 ; pub const WTS_CONSOLE_DISCONNECT : u32 = 2u32 ; pub const WTS_REMOTE_CONNECT : u32 = 3u32 ; pub const WTS_REMOTE_DISCONNECT : u32 = 4u32 ; pub const WTS_SESSION_CREATE : u32 = 10u32 ; pub const WTS_SESSION_LOCK : u32 = 7u32 ; pub const WTS_SESSION_LOGOFF : u32 = 6u32 ; pub const WTS_SESSION_LOGON : u32 = 5u32 ; pub const WTS_SESSION_REMOTE_CONTROL : u32 = 9u32 ; pub const WTS_SESSION_TERMINATE : u32 = 11u32 ; pub const WTS_SESSION_UNLOCK : u32 = 8u32 ; pub const WVR_ALIGNBOTTOM : u32 = 64u32 ; pub const WVR_ALIGNLEFT : u32 = 32u32 ; pub const WVR_ALIGNRIGHT : u32 = 128u32 ; pub const WVR_ALIGNTOP : u32 = 16u32 ; pub const WVR_HREDRAW : u32 = 256u32 ; pub const WVR_VALIDRECTS : u32 = 1024u32 ; pub const WVR_VREDRAW : u32 = 512u32 ; pub unsafe fn WaitMessage < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WaitMessage ( ) -> super::super::Foundation:: BOOL ; } WaitMessage ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn WindowFromPhysicalPoint < 'a , > ( point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WindowFromPhysicalPoint ( point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } WindowFromPhysicalPoint ( point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn WindowFromPoint < 'a , > ( point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WindowFromPoint ( point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } WindowFromPoint ( point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const __WARNING_BANNED_API_USAGE : u32 = 28719u32 ; pub const __WARNING_CYCLOMATIC_COMPLEXITY : u32 = 28734u32 ; pub const __WARNING_DEREF_NULL_PTR : u32 = 6011u32 ; pub const __WARNING_HIGH_PRIORITY_OVERFLOW_POSTCONDITION : u32 = 26045u32 ; pub const __WARNING_INCORRECT_ANNOTATION : u32 = 26007u32 ; pub const __WARNING_INVALID_PARAM_VALUE_1 : u32 = 6387u32 ; pub const __WARNING_INVALID_PARAM_VALUE_3 : u32 = 28183u32 ; pub const __WARNING_MISSING_ZERO_TERMINATION2 : u32 = 6054u32 ; pub const __WARNING_POSTCONDITION_NULLTERMINATION_VIOLATION : u32 = 26036u32 ; pub const __WARNING_POST_EXPECTED : u32 = 28210u32 ; pub const __WARNING_POTENTIAL_BUFFER_OVERFLOW_HIGH_PRIORITY : u32 = 26015u32 ; pub const __WARNING_POTENTIAL_RANGE_POSTCONDITION_VIOLATION : u32 = 26071u32 ; pub const __WARNING_PRECONDITION_NULLTERMINATION_VIOLATION : u32 = 26035u32 ; pub const __WARNING_RANGE_POSTCONDITION_VIOLATION : u32 = 26061u32 ; pub const __WARNING_RETURNING_BAD_RESULT : u32 = 28196u32 ; pub const __WARNING_RETURN_UNINIT_VAR : u32 = 6101u32 ; pub const __WARNING_USING_UNINIT_VAR : u32 = 6001u32 ; pub unsafe fn wsprintfA < 'a , > ( param0 : super::super::Foundation:: PSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wsprintfA ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: PSTR ) -> i32 ; } wsprintfA ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wsprintfW < 'a , > ( param0 : super::super::Foundation:: PWSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wsprintfW ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: PWSTR ) -> i32 ; } wsprintfW ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wvsprintfA < 'a , > ( param0 : super::super::Foundation:: PSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , arglist : * mut i8 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wvsprintfA ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: PSTR , arglist : * mut i8 ) -> i32 ; } wvsprintfA ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( arglist ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wvsprintfW < 'a , > ( param0 : super::super::Foundation:: PWSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , arglist : * mut i8 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wvsprintfW ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: PWSTR , arglist : * mut i8 ) -> i32 ; } wvsprintfW ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( arglist ) ) } # [ 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/WindowsD2DErrorSample-113ee0a6732de562/out/windows.rs:1:15964 [INFO] [stdout] | [INFO] [stdout] 1 | ... { if ! value . 0 . 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 Foundation { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Numerics { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct Matrix3x2 { pub M11 : f32 , pub M12 : f32 , pub M21 : f32 , pub M22 : f32 , pub M31 : f32 , pub M32 : f32 } impl Matrix3x2 { } impl :: std :: default :: Default for Matrix3x2 { fn default ( ) -> Self { Self { M11 : 0.0 , M12 : 0.0 , M21 : 0.0 , M22 : 0.0 , M31 : 0.0 , M32 : 0.0 } } } impl :: std :: fmt :: Debug for Matrix3x2 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "Matrix3x2" ) . field ( "M11" , & self . M11 ) . field ( "M12" , & self . M12 ) . field ( "M21" , & self . M21 ) . field ( "M22" , & self . M22 ) . field ( "M31" , & self . M31 ) . field ( "M32" , & self . M32 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for Matrix3x2 { fn eq ( & self , other : & Self ) -> bool { self . M11 == other . M11 && self . M12 == other . M12 && self . M21 == other . M21 && self . M22 == other . M22 && self . M31 == other . M31 && self . M32 == other . M32 } } impl :: std :: cmp :: Eq for Matrix3x2 { } unsafe impl :: windows :: Abi for Matrix3x2 { type Abi = Self ; type DefaultType = Self ; } unsafe impl :: windows :: RuntimeType for Matrix3x2 { const SIGNATURE : :: windows :: ConstBuffer = :: windows :: ConstBuffer :: from_slice ( b"struct(Windows.Foundation.Numerics.Matrix3x2;f4;f4;f4;f4;f4;f4)" ) ; } impl Matrix3x2 { pub fn identity ( ) -> Self { Self { M11 : 1.0 , M12 : 0.0 , M21 : 0.0 , M22 : 1.0 , M31 : 0.0 , M32 : 0.0 , } } pub fn translation ( x : f32 , y : f32 ) -> Self { Self { M11 : 1.0 , M12 : 0.0 , M21 : 0.0 , M22 : 1.0 , M31 : x , M32 : y , } } pub fn rotation ( angle : f32 , x : f32 , y : f32 ) -> Self { let mut matrix = Self :: default ( ) ; unsafe { super :: super :: Win32 :: Graphics :: Direct2D :: D2D1MakeRotateMatrix ( angle , super :: super :: Win32 :: Graphics :: Direct2D :: D2D_POINT_2F { x , y } , & mut matrix ) ; } matrix } fn impl_add ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 + rhs . M11 , M12 : self . M12 + rhs . M12 , M21 : self . M21 + rhs . M21 , M22 : self . M22 + rhs . M22 , M31 : self . M31 + rhs . M31 , M32 : self . M32 + rhs . M32 , } } fn impl_sub ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 - rhs . M11 , M12 : self . M12 - rhs . M12 , M21 : self . M21 - rhs . M21 , M22 : self . M22 - rhs . M22 , M31 : self . M31 - rhs . M31 , M32 : self . M32 - rhs . M32 , } } fn impl_mul ( & self , rhs : & Self ) -> Self { Self { M11 : self . M11 * rhs . M11 + self . M12 * rhs . M21 , M12 : self . M11 * rhs . M12 + self . M12 * rhs . M22 , M21 : self . M21 * rhs . M11 + self . M22 * rhs . M21 , M22 : self . M21 * rhs . M12 + self . M22 * rhs . M22 , M31 : self . M31 * rhs . M11 + self . M32 * rhs . M21 + rhs . M31 , M32 : self . M31 * rhs . M12 + self . M32 * rhs . M22 + rhs . M32 , } } fn impl_mul_f32 ( & self , rhs : f32 ) -> Self { Self { M11 : self . M11 * rhs , M12 : self . M12 * rhs , M21 : self . M21 * rhs , M22 : self . M22 * rhs , M31 : self . M31 * rhs , M32 : self . M32 * rhs , } } } impl :: std :: ops :: Add < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_add ( & rhs ) } } impl :: std :: ops :: Add < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_add ( rhs ) } } impl :: std :: ops :: Add < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_add ( & rhs ) } } impl :: std :: ops :: Add < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn add ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_add ( rhs ) } } impl :: std :: ops :: Sub < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( & rhs ) } } impl :: std :: ops :: Sub < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( rhs ) } } impl :: std :: ops :: Sub < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( & rhs ) } } impl :: std :: ops :: Sub < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn sub ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_sub ( rhs ) } } impl :: std :: ops :: Mul < Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( & rhs ) } } impl :: std :: ops :: Mul < & Matrix3x2 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( rhs ) } } impl :: std :: ops :: Mul < Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( & rhs ) } } impl :: std :: ops :: Mul < & Matrix3x2 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : & Matrix3x2 ) -> Matrix3x2 { self . impl_mul ( rhs ) } } impl :: std :: ops :: Mul < f32 > for Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : f32 ) -> Matrix3x2 { self . impl_mul_f32 ( rhs ) } } impl :: std :: ops :: Mul < f32 > for & Matrix3x2 { type Output = Matrix3x2 ; fn mul ( self , rhs : f32 ) -> Matrix3x2 { self . impl_mul_f32 ( rhs ) } } } } # [ 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 :: HRESULT :: from_thread ( ) . into ( ) ) } } # [ 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 ( transparent ) ] pub struct HANDLE ( pub isize ) ; impl HANDLE { } impl :: std :: default :: Default for HANDLE { fn default ( ) -> Self { Self ( 0 ) } } impl HANDLE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HANDLE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HANDLE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HANDLE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HANDLE { } unsafe impl :: windows :: Abi for HANDLE { type Abi = Self ; type DefaultType = Self ; } impl HANDLE { pub const INVALID : Self = Self ( - 1 ) ; pub fn is_invalid ( & self ) -> bool { self . 0 == - 1 } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HINSTANCE ( pub isize ) ; impl HINSTANCE { } impl :: std :: default :: Default for HINSTANCE { fn default ( ) -> Self { Self ( 0 ) } } impl HINSTANCE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HINSTANCE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HINSTANCE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HINSTANCE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HINSTANCE { } unsafe impl :: windows :: Abi for HINSTANCE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HWND ( pub isize ) ; impl HWND { } impl :: std :: default :: Default for HWND { fn default ( ) -> Self { Self ( 0 ) } } impl HWND { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HWND { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HWND" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HWND { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HWND { } unsafe impl :: windows :: Abi for HWND { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct LPARAM ( pub isize ) ; impl LPARAM { } impl :: std :: default :: Default for LPARAM { fn default ( ) -> Self { Self ( 0 ) } } impl LPARAM { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for LPARAM { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LPARAM" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LPARAM { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for LPARAM { } unsafe impl :: windows :: Abi for LPARAM { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct LRESULT ( pub i32 ) ; impl LRESULT { } impl :: std :: default :: Default for LRESULT { fn default ( ) -> Self { Self ( 0 ) } } impl LRESULT { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for LRESULT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LRESULT" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LRESULT { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for LRESULT { } unsafe impl :: windows :: Abi for LRESULT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct POINT { pub x : i32 , pub y : i32 } impl POINT { } impl :: std :: default :: Default for POINT { fn default ( ) -> Self { Self { x : 0 , y : 0 } } } impl :: std :: fmt :: Debug for POINT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "POINT" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for POINT { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for POINT { } unsafe impl :: windows :: Abi for POINT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct POINTL { pub x : i32 , pub y : i32 } impl POINTL { } impl :: std :: default :: Default for POINTL { fn default ( ) -> Self { Self { x : 0 , y : 0 } } } impl :: std :: fmt :: Debug for POINTL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "POINTL" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for POINTL { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for POINTL { } unsafe impl :: windows :: Abi for POINTL { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct PSTR ( pub * mut u8 ) ; impl PSTR { pub const NULL : Self = Self ( :: std :: ptr :: null_mut ( ) ) ; pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: cmp :: PartialEq for PSTR { fn eq ( & self , other : & Self ) -> bool { self . 0 == other . 0 } } unsafe impl :: windows :: Abi for PSTR { type Abi = Self ; type DefaultType = Self ; fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . 0 . is_null ( ) { unsafe { :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PSTR > for & 'a 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 _ ) ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct PWSTR ( pub * mut u16 ) ; impl PWSTR { pub const NULL : Self = Self ( :: std :: ptr :: null_mut ( ) ) ; pub fn is_null ( & self ) -> bool { self . 0 . is_null ( ) } } impl :: std :: default :: Default for PWSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: cmp :: PartialEq for PWSTR { fn eq ( & self , other : & Self ) -> bool { self . 0 == other . 0 } } unsafe impl :: windows :: Abi for PWSTR { type Abi = Self ; type DefaultType = Self ; fn drop_param ( param : & mut :: windows :: Param < '_ , Self > ) { if let :: windows :: Param :: Boxed ( value ) = param { if ! value . 0 . is_null ( ) { unsafe { let _ = :: std :: boxed :: Box :: from_raw ( value . 0 ) ; } } } } } impl < 'a > :: windows :: IntoParam < 'a , PWSTR > for & 'a 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 _ ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct RECT { pub left : i32 , pub top : i32 , pub right : i32 , pub bottom : i32 } impl RECT { } impl :: std :: default :: Default for RECT { fn default ( ) -> Self { Self { left : 0 , top : 0 , right : 0 , bottom : 0 } } } impl :: std :: fmt :: Debug for RECT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "RECT" ) . field ( "left" , & self . left ) . field ( "top" , & self . top ) . field ( "right" , & self . right ) . field ( "bottom" , & self . bottom ) . finish ( ) } } impl :: std :: cmp :: PartialEq for RECT { fn eq ( & self , other : & Self ) -> bool { self . left == other . left && self . top == other . top && self . right == other . right && self . bottom == other . bottom } } impl :: std :: cmp :: Eq for RECT { } unsafe impl :: windows :: Abi for RECT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SIZE { pub cx : i32 , pub cy : i32 } impl SIZE { } impl :: std :: default :: Default for SIZE { fn default ( ) -> Self { Self { cx : 0 , cy : 0 } } } impl :: std :: fmt :: Debug for SIZE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SIZE" ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SIZE { fn eq ( & self , other : & Self ) -> bool { self . cx == other . cx && self . cy == other . cy } } impl :: std :: cmp :: Eq for SIZE { } unsafe impl :: windows :: Abi for SIZE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct WPARAM ( pub usize ) ; impl WPARAM { } impl :: std :: default :: Default for WPARAM { fn default ( ) -> Self { Self ( 0 ) } } impl WPARAM { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for WPARAM { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WPARAM" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WPARAM { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for WPARAM { } unsafe impl :: windows :: Abi for WPARAM { 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 Graphics { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Direct2D { pub unsafe fn D2D1CreateFactory < > ( factorytype : D2D1_FACTORY_TYPE , riid : * const :: windows :: Guid , pfactoryoptions : * const D2D1_FACTORY_OPTIONS , ppifactory : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="d2d1" ) ] extern "system" { fn D2D1CreateFactory ( factorytype : D2D1_FACTORY_TYPE , riid : * const :: windows :: Guid , pfactoryoptions : * const D2D1_FACTORY_OPTIONS , ppifactory : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } D2D1CreateFactory ( :: std :: mem :: transmute ( factorytype ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( pfactoryoptions ) , :: std :: mem :: transmute ( ppifactory ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn D2D1MakeRotateMatrix < 'a , > ( angle : f32 , center : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , matrix : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { # [ cfg ( windows ) ] { # [ link ( name ="d2d1" ) ] extern "system" { fn D2D1MakeRotateMatrix ( angle : f32 , center : D2D_POINT_2F , matrix : * mut super::super::super::Foundation::Numerics:: Matrix3x2 ) ; } D2D1MakeRotateMatrix ( :: std :: mem :: transmute ( angle ) , center . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( matrix ) ) } # [ 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 D2D1_ALPHA_MODE ( pub u32 ) ; pub const D2D1_ALPHA_MODE_UNKNOWN : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 0u32 ) ; pub const D2D1_ALPHA_MODE_PREMULTIPLIED : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 1u32 ) ; pub const D2D1_ALPHA_MODE_STRAIGHT : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 2u32 ) ; pub const D2D1_ALPHA_MODE_IGNORE : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 3u32 ) ; pub const D2D1_ALPHA_MODE_FORCE_DWORD : D2D1_ALPHA_MODE = D2D1_ALPHA_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_ALPHA_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_ALPHA_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_ALPHA_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_ALPHA_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_ALPHA_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_ALPHA_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_ANTIALIAS_MODE ( pub u32 ) ; pub const D2D1_ANTIALIAS_MODE_PER_PRIMITIVE : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 0u32 ) ; pub const D2D1_ANTIALIAS_MODE_ALIASED : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 1u32 ) ; pub const D2D1_ANTIALIAS_MODE_FORCE_DWORD : D2D1_ANTIALIAS_MODE = D2D1_ANTIALIAS_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_ANTIALIAS_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_ANTIALIAS_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_ANTIALIAS_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_ANTIALIAS_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_ANTIALIAS_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_ANTIALIAS_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BITMAP_BRUSH_PROPERTIES { pub extendModeX : D2D1_EXTEND_MODE , pub extendModeY : D2D1_EXTEND_MODE , pub interpolationMode : D2D1_BITMAP_INTERPOLATION_MODE } impl D2D1_BITMAP_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_BITMAP_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { extendModeX : :: std :: default :: Default :: default ( ) , extendModeY : :: std :: default :: Default :: default ( ) , interpolationMode : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_BITMAP_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BITMAP_BRUSH_PROPERTIES" ) . field ( "extendModeX" , & self . extendModeX ) . field ( "extendModeY" , & self . extendModeY ) . field ( "interpolationMode" , & self . interpolationMode ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BITMAP_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . extendModeX == other . extendModeX && self . extendModeY == other . extendModeY && self . interpolationMode == other . interpolationMode } } impl :: std :: cmp :: Eq for D2D1_BITMAP_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BITMAP_BRUSH_PROPERTIES { 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 D2D1_BITMAP_INTERPOLATION_MODE ( pub u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 0u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_LINEAR : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 1u32 ) ; pub const D2D1_BITMAP_INTERPOLATION_MODE_FORCE_DWORD : D2D1_BITMAP_INTERPOLATION_MODE = D2D1_BITMAP_INTERPOLATION_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_BITMAP_INTERPOLATION_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_BITMAP_INTERPOLATION_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_BITMAP_INTERPOLATION_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_BITMAP_INTERPOLATION_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_BITMAP_INTERPOLATION_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_BITMAP_INTERPOLATION_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BITMAP_PROPERTIES { pub pixelFormat : D2D1_PIXEL_FORMAT , pub dpiX : f32 , pub dpiY : f32 } impl D2D1_BITMAP_PROPERTIES { } impl :: std :: default :: Default for D2D1_BITMAP_PROPERTIES { fn default ( ) -> Self { Self { pixelFormat : :: std :: default :: Default :: default ( ) , dpiX : 0.0 , dpiY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_BITMAP_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BITMAP_PROPERTIES" ) . field ( "pixelFormat" , & self . pixelFormat ) . field ( "dpiX" , & self . dpiX ) . field ( "dpiY" , & self . dpiY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BITMAP_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . pixelFormat == other . pixelFormat && self . dpiX == other . dpiX && self . dpiY == other . dpiY } } impl :: std :: cmp :: Eq for D2D1_BITMAP_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BITMAP_PROPERTIES { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_BRUSH_PROPERTIES { pub opacity : f32 , pub transform : super::super::super::Foundation::Numerics:: Matrix3x2 } impl D2D1_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { opacity : 0.0 , transform : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_BRUSH_PROPERTIES" ) . field ( "opacity" , & self . opacity ) . field ( "transform" , & self . transform ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . opacity == other . opacity && self . transform == other . transform } } impl :: std :: cmp :: Eq for D2D1_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_BRUSH_PROPERTIES { 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 D2D1_CAP_STYLE ( pub u32 ) ; pub const D2D1_CAP_STYLE_FLAT : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 0u32 ) ; pub const D2D1_CAP_STYLE_SQUARE : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 1u32 ) ; pub const D2D1_CAP_STYLE_ROUND : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 2u32 ) ; pub const D2D1_CAP_STYLE_TRIANGLE : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 3u32 ) ; pub const D2D1_CAP_STYLE_FORCE_DWORD : D2D1_CAP_STYLE = D2D1_CAP_STYLE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_CAP_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_CAP_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_CAP_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_CAP_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_CAP_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_CAP_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_COLOR_F { pub r : f32 , pub g : f32 , pub b : f32 , pub a : f32 } impl D2D1_COLOR_F { } impl :: std :: default :: Default for D2D1_COLOR_F { fn default ( ) -> Self { Self { r : 0.0 , g : 0.0 , b : 0.0 , a : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_COLOR_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_COLOR_F" ) . field ( "r" , & self . r ) . field ( "g" , & self . g ) . field ( "b" , & self . b ) . field ( "a" , & self . a ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_COLOR_F { fn eq ( & self , other : & Self ) -> bool { self . r == other . r && self . g == other . g && self . b == other . b && self . a == other . a } } impl :: std :: cmp :: Eq for D2D1_COLOR_F { } unsafe impl :: windows :: Abi for D2D1_COLOR_F { 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 D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( pub u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 0u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 1u32 ) ; pub const D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_FORCE_DWORD : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS = D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_DASH_STYLE ( pub u32 ) ; pub const D2D1_DASH_STYLE_SOLID : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 0u32 ) ; pub const D2D1_DASH_STYLE_DASH : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 1u32 ) ; pub const D2D1_DASH_STYLE_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 2u32 ) ; pub const D2D1_DASH_STYLE_DASH_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 3u32 ) ; pub const D2D1_DASH_STYLE_DASH_DOT_DOT : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 4u32 ) ; pub const D2D1_DASH_STYLE_CUSTOM : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 5u32 ) ; pub const D2D1_DASH_STYLE_FORCE_DWORD : D2D1_DASH_STYLE = D2D1_DASH_STYLE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DASH_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DASH_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DASH_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DASH_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DASH_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DASH_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_DEBUG_LEVEL ( pub u32 ) ; pub const D2D1_DEBUG_LEVEL_NONE : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 0u32 ) ; pub const D2D1_DEBUG_LEVEL_ERROR : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 1u32 ) ; pub const D2D1_DEBUG_LEVEL_WARNING : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 2u32 ) ; pub const D2D1_DEBUG_LEVEL_INFORMATION : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 3u32 ) ; pub const D2D1_DEBUG_LEVEL_FORCE_DWORD : D2D1_DEBUG_LEVEL = D2D1_DEBUG_LEVEL ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DEBUG_LEVEL { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DEBUG_LEVEL { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DEBUG_LEVEL { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DEBUG_LEVEL { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DEBUG_LEVEL { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DEBUG_LEVEL { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_DRAWING_STATE_DESCRIPTION { pub antialiasMode : D2D1_ANTIALIAS_MODE , pub textAntialiasMode : D2D1_TEXT_ANTIALIAS_MODE , pub tag1 : u64 , pub tag2 : u64 , pub transform : super::super::super::Foundation::Numerics:: Matrix3x2 } impl D2D1_DRAWING_STATE_DESCRIPTION { } impl :: std :: default :: Default for D2D1_DRAWING_STATE_DESCRIPTION { fn default ( ) -> Self { Self { antialiasMode : :: std :: default :: Default :: default ( ) , textAntialiasMode : :: std :: default :: Default :: default ( ) , tag1 : 0 , tag2 : 0 , transform : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_DRAWING_STATE_DESCRIPTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_DRAWING_STATE_DESCRIPTION" ) . field ( "antialiasMode" , & self . antialiasMode ) . field ( "textAntialiasMode" , & self . textAntialiasMode ) . field ( "tag1" , & self . tag1 ) . field ( "tag2" , & self . tag2 ) . field ( "transform" , & self . transform ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_DRAWING_STATE_DESCRIPTION { fn eq ( & self , other : & Self ) -> bool { self . antialiasMode == other . antialiasMode && self . textAntialiasMode == other . textAntialiasMode && self . tag1 == other . tag1 && self . tag2 == other . tag2 && self . transform == other . transform } } impl :: std :: cmp :: Eq for D2D1_DRAWING_STATE_DESCRIPTION { } unsafe impl :: windows :: Abi for D2D1_DRAWING_STATE_DESCRIPTION { 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 D2D1_DRAW_TEXT_OPTIONS ( pub u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_NO_SNAP : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 1u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_CLIP : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 2u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 4u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_DISABLE_COLOR_BITMAP_SNAPPING : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 8u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_NONE : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 0u32 ) ; pub const D2D1_DRAW_TEXT_OPTIONS_FORCE_DWORD : D2D1_DRAW_TEXT_OPTIONS = D2D1_DRAW_TEXT_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_DRAW_TEXT_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_DRAW_TEXT_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_DRAW_TEXT_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_DRAW_TEXT_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_DRAW_TEXT_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_DRAW_TEXT_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_ELLIPSE { pub point : D2D_POINT_2F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_ELLIPSE { } impl :: std :: default :: Default for D2D1_ELLIPSE { fn default ( ) -> Self { Self { point : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_ELLIPSE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_ELLIPSE" ) . field ( "point" , & self . point ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_ELLIPSE { fn eq ( & self , other : & Self ) -> bool { self . point == other . point && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_ELLIPSE { } unsafe impl :: windows :: Abi for D2D1_ELLIPSE { 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 D2D1_EXTEND_MODE ( pub u32 ) ; pub const D2D1_EXTEND_MODE_CLAMP : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 0u32 ) ; pub const D2D1_EXTEND_MODE_WRAP : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 1u32 ) ; pub const D2D1_EXTEND_MODE_MIRROR : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 2u32 ) ; pub const D2D1_EXTEND_MODE_FORCE_DWORD : D2D1_EXTEND_MODE = D2D1_EXTEND_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_EXTEND_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_EXTEND_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_EXTEND_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_EXTEND_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_EXTEND_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_EXTEND_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_FACTORY_OPTIONS { pub debugLevel : D2D1_DEBUG_LEVEL } impl D2D1_FACTORY_OPTIONS { } impl :: std :: default :: Default for D2D1_FACTORY_OPTIONS { fn default ( ) -> Self { Self { debugLevel : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_FACTORY_OPTIONS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_FACTORY_OPTIONS" ) . field ( "debugLevel" , & self . debugLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_FACTORY_OPTIONS { fn eq ( & self , other : & Self ) -> bool { self . debugLevel == other . debugLevel } } impl :: std :: cmp :: Eq for D2D1_FACTORY_OPTIONS { } unsafe impl :: windows :: Abi for D2D1_FACTORY_OPTIONS { 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 D2D1_FACTORY_TYPE ( pub u32 ) ; pub const D2D1_FACTORY_TYPE_SINGLE_THREADED : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 0u32 ) ; pub const D2D1_FACTORY_TYPE_MULTI_THREADED : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 1u32 ) ; pub const D2D1_FACTORY_TYPE_FORCE_DWORD : D2D1_FACTORY_TYPE = D2D1_FACTORY_TYPE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FACTORY_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FACTORY_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FACTORY_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FACTORY_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FACTORY_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FACTORY_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_FEATURE_LEVEL ( pub u32 ) ; pub const D2D1_FEATURE_LEVEL_DEFAULT : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 0u32 ) ; pub const D2D1_FEATURE_LEVEL_9 : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 37120u32 ) ; pub const D2D1_FEATURE_LEVEL_10 : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 40960u32 ) ; pub const D2D1_FEATURE_LEVEL_FORCE_DWORD : D2D1_FEATURE_LEVEL = D2D1_FEATURE_LEVEL ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FEATURE_LEVEL { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FEATURE_LEVEL { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FEATURE_LEVEL { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FEATURE_LEVEL { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FEATURE_LEVEL { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FEATURE_LEVEL { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_FILL_MODE ( pub u32 ) ; pub const D2D1_FILL_MODE_ALTERNATE : D2D1_FILL_MODE = D2D1_FILL_MODE ( 0u32 ) ; pub const D2D1_FILL_MODE_WINDING : D2D1_FILL_MODE = D2D1_FILL_MODE ( 1u32 ) ; pub const D2D1_FILL_MODE_FORCE_DWORD : D2D1_FILL_MODE = D2D1_FILL_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_FILL_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_FILL_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_FILL_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_FILL_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_FILL_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_FILL_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_GAMMA ( pub u32 ) ; pub const D2D1_GAMMA_2_2 : D2D1_GAMMA = D2D1_GAMMA ( 0u32 ) ; pub const D2D1_GAMMA_1_0 : D2D1_GAMMA = D2D1_GAMMA ( 1u32 ) ; pub const D2D1_GAMMA_FORCE_DWORD : D2D1_GAMMA = D2D1_GAMMA ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_GAMMA { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_GAMMA { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_GAMMA { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_GAMMA { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_GAMMA { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_GAMMA { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_GRADIENT_STOP { pub position : f32 , pub color : D2D1_COLOR_F } impl D2D1_GRADIENT_STOP { } impl :: std :: default :: Default for D2D1_GRADIENT_STOP { fn default ( ) -> Self { Self { position : 0.0 , color : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_GRADIENT_STOP { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_GRADIENT_STOP" ) . field ( "position" , & self . position ) . field ( "color" , & self . color ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_GRADIENT_STOP { fn eq ( & self , other : & Self ) -> bool { self . position == other . position && self . color == other . color } } impl :: std :: cmp :: Eq for D2D1_GRADIENT_STOP { } unsafe impl :: windows :: Abi for D2D1_GRADIENT_STOP { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_HWND_RENDER_TARGET_PROPERTIES { pub hwnd : super::super::Foundation:: HWND , pub pixelSize : D2D_SIZE_U , pub presentOptions : D2D1_PRESENT_OPTIONS } impl D2D1_HWND_RENDER_TARGET_PROPERTIES { } impl :: std :: default :: Default for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , pixelSize : :: std :: default :: Default :: default ( ) , presentOptions : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_HWND_RENDER_TARGET_PROPERTIES" ) . field ( "hwnd" , & self . hwnd ) . field ( "pixelSize" , & self . pixelSize ) . field ( "presentOptions" , & self . presentOptions ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_HWND_RENDER_TARGET_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . pixelSize == other . pixelSize && self . presentOptions == other . presentOptions } } impl :: std :: cmp :: Eq for D2D1_HWND_RENDER_TARGET_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_HWND_RENDER_TARGET_PROPERTIES { 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 D2D1_LAYER_OPTIONS ( pub u32 ) ; pub const D2D1_LAYER_OPTIONS_NONE : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 0u32 ) ; pub const D2D1_LAYER_OPTIONS_INITIALIZE_FOR_CLEARTYPE : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 1u32 ) ; pub const D2D1_LAYER_OPTIONS_FORCE_DWORD : D2D1_LAYER_OPTIONS = D2D1_LAYER_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_LAYER_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_LAYER_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_LAYER_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_LAYER_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_LAYER_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_LAYER_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct D2D1_LAYER_PARAMETERS { pub contentBounds : D2D_RECT_F , pub geometricMask : :: std :: option :: Option < ID2D1Geometry > , pub maskAntialiasMode : D2D1_ANTIALIAS_MODE , pub maskTransform : super::super::super::Foundation::Numerics:: Matrix3x2 , pub opacity : f32 , pub opacityBrush : :: std :: option :: Option < ID2D1Brush > , pub layerOptions : D2D1_LAYER_OPTIONS } impl D2D1_LAYER_PARAMETERS { } impl :: std :: default :: Default for D2D1_LAYER_PARAMETERS { fn default ( ) -> Self { Self { contentBounds : :: std :: default :: Default :: default ( ) , geometricMask : :: std :: default :: Default :: default ( ) , maskAntialiasMode : :: std :: default :: Default :: default ( ) , maskTransform : :: std :: default :: Default :: default ( ) , opacity : 0.0 , opacityBrush : :: std :: default :: Default :: default ( ) , layerOptions : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_LAYER_PARAMETERS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_LAYER_PARAMETERS" ) . field ( "contentBounds" , & self . contentBounds ) . field ( "geometricMask" , & self . geometricMask ) . field ( "maskAntialiasMode" , & self . maskAntialiasMode ) . field ( "maskTransform" , & self . maskTransform ) . field ( "opacity" , & self . opacity ) . field ( "opacityBrush" , & self . opacityBrush ) . field ( "layerOptions" , & self . layerOptions ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_LAYER_PARAMETERS { fn eq ( & self , other : & Self ) -> bool { self . contentBounds == other . contentBounds && self . geometricMask == other . geometricMask && self . maskAntialiasMode == other . maskAntialiasMode && self . maskTransform == other . maskTransform && self . opacity == other . opacity && self . opacityBrush == other . opacityBrush && self . layerOptions == other . layerOptions } } impl :: std :: cmp :: Eq for D2D1_LAYER_PARAMETERS { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct D2D1_LAYER_PARAMETERS_abi { pub contentBounds : D2D_RECT_F , pub geometricMask : :: windows :: RawPtr , pub maskAntialiasMode : D2D1_ANTIALIAS_MODE , pub maskTransform : super::super::super::Foundation::Numerics:: Matrix3x2 , pub opacity : f32 , pub opacityBrush : :: windows :: RawPtr , pub layerOptions : D2D1_LAYER_OPTIONS } unsafe impl :: windows :: Abi for D2D1_LAYER_PARAMETERS { type Abi = D2D1_LAYER_PARAMETERS_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { pub startPoint : D2D_POINT_2F , pub endPoint : D2D_POINT_2F } impl D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { startPoint : :: std :: default :: Default :: default ( ) , endPoint : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES" ) . field ( "startPoint" , & self . startPoint ) . field ( "endPoint" , & self . endPoint ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . startPoint == other . startPoint && self . endPoint == other . endPoint } } impl :: std :: cmp :: Eq for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES { 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 D2D1_LINE_JOIN ( pub u32 ) ; pub const D2D1_LINE_JOIN_MITER : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 0u32 ) ; pub const D2D1_LINE_JOIN_BEVEL : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 1u32 ) ; pub const D2D1_LINE_JOIN_ROUND : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 2u32 ) ; pub const D2D1_LINE_JOIN_MITER_OR_BEVEL : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 3u32 ) ; pub const D2D1_LINE_JOIN_FORCE_DWORD : D2D1_LINE_JOIN = D2D1_LINE_JOIN ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_LINE_JOIN { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_LINE_JOIN { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_LINE_JOIN { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_LINE_JOIN { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_LINE_JOIN { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_LINE_JOIN { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_OPACITY_MASK_CONTENT ( pub u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_GRAPHICS : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 0u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 1u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 2u32 ) ; pub const D2D1_OPACITY_MASK_CONTENT_FORCE_DWORD : D2D1_OPACITY_MASK_CONTENT = D2D1_OPACITY_MASK_CONTENT ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_OPACITY_MASK_CONTENT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_OPACITY_MASK_CONTENT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_OPACITY_MASK_CONTENT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_OPACITY_MASK_CONTENT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_OPACITY_MASK_CONTENT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_OPACITY_MASK_CONTENT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_PIXEL_FORMAT { pub format : super::Dxgi:: DXGI_FORMAT , pub alphaMode : D2D1_ALPHA_MODE } impl D2D1_PIXEL_FORMAT { } impl :: std :: default :: Default for D2D1_PIXEL_FORMAT { fn default ( ) -> Self { Self { format : :: std :: default :: Default :: default ( ) , alphaMode : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_PIXEL_FORMAT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_PIXEL_FORMAT" ) . field ( "format" , & self . format ) . field ( "alphaMode" , & self . alphaMode ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_PIXEL_FORMAT { fn eq ( & self , other : & Self ) -> bool { self . format == other . format && self . alphaMode == other . alphaMode } } impl :: std :: cmp :: Eq for D2D1_PIXEL_FORMAT { } unsafe impl :: windows :: Abi for D2D1_PIXEL_FORMAT { 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 D2D1_PRESENT_OPTIONS ( pub u32 ) ; pub const D2D1_PRESENT_OPTIONS_NONE : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 0u32 ) ; pub const D2D1_PRESENT_OPTIONS_RETAIN_CONTENTS : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 1u32 ) ; pub const D2D1_PRESENT_OPTIONS_IMMEDIATELY : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 2u32 ) ; pub const D2D1_PRESENT_OPTIONS_FORCE_DWORD : D2D1_PRESENT_OPTIONS = D2D1_PRESENT_OPTIONS ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_PRESENT_OPTIONS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_PRESENT_OPTIONS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_PRESENT_OPTIONS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_PRESENT_OPTIONS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_PRESENT_OPTIONS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_PRESENT_OPTIONS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { pub center : D2D_POINT_2F , pub gradientOriginOffset : D2D_POINT_2F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { } impl :: std :: default :: Default for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn default ( ) -> Self { Self { center : :: std :: default :: Default :: default ( ) , gradientOriginOffset : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES" ) . field ( "center" , & self . center ) . field ( "gradientOriginOffset" , & self . gradientOriginOffset ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . center == other . center && self . gradientOriginOffset == other . gradientOriginOffset && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_RENDER_TARGET_PROPERTIES { pub r#type : D2D1_RENDER_TARGET_TYPE , pub pixelFormat : D2D1_PIXEL_FORMAT , pub dpiX : f32 , pub dpiY : f32 , pub usage : D2D1_RENDER_TARGET_USAGE , pub minLevel : D2D1_FEATURE_LEVEL } impl D2D1_RENDER_TARGET_PROPERTIES { } impl :: std :: default :: Default for D2D1_RENDER_TARGET_PROPERTIES { fn default ( ) -> Self { Self { r#type : :: std :: default :: Default :: default ( ) , pixelFormat : :: std :: default :: Default :: default ( ) , dpiX : 0.0 , dpiY : 0.0 , usage : :: std :: default :: Default :: default ( ) , minLevel : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for D2D1_RENDER_TARGET_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_RENDER_TARGET_PROPERTIES" ) . field ( "r#type" , & self . r#type ) . field ( "pixelFormat" , & self . pixelFormat ) . field ( "dpiX" , & self . dpiX ) . field ( "dpiY" , & self . dpiY ) . field ( "usage" , & self . usage ) . field ( "minLevel" , & self . minLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_RENDER_TARGET_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . r#type == other . r#type && self . pixelFormat == other . pixelFormat && self . dpiX == other . dpiX && self . dpiY == other . dpiY && self . usage == other . usage && self . minLevel == other . minLevel } } impl :: std :: cmp :: Eq for D2D1_RENDER_TARGET_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_PROPERTIES { 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 D2D1_RENDER_TARGET_TYPE ( pub u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_DEFAULT : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 0u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_SOFTWARE : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 1u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_HARDWARE : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 2u32 ) ; pub const D2D1_RENDER_TARGET_TYPE_FORCE_DWORD : D2D1_RENDER_TARGET_TYPE = D2D1_RENDER_TARGET_TYPE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_RENDER_TARGET_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_RENDER_TARGET_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_RENDER_TARGET_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_RENDER_TARGET_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_RENDER_TARGET_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_RENDER_TARGET_USAGE ( pub u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_NONE : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 0u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_FORCE_BITMAP_REMOTING : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 1u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 2u32 ) ; pub const D2D1_RENDER_TARGET_USAGE_FORCE_DWORD : D2D1_RENDER_TARGET_USAGE = D2D1_RENDER_TARGET_USAGE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_RENDER_TARGET_USAGE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_RENDER_TARGET_USAGE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_RENDER_TARGET_USAGE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_RENDER_TARGET_USAGE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_RENDER_TARGET_USAGE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_RENDER_TARGET_USAGE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_ROUNDED_RECT { pub rect : D2D_RECT_F , pub radiusX : f32 , pub radiusY : f32 } impl D2D1_ROUNDED_RECT { } impl :: std :: default :: Default for D2D1_ROUNDED_RECT { fn default ( ) -> Self { Self { rect : :: std :: default :: Default :: default ( ) , radiusX : 0.0 , radiusY : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_ROUNDED_RECT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_ROUNDED_RECT" ) . field ( "rect" , & self . rect ) . field ( "radiusX" , & self . radiusX ) . field ( "radiusY" , & self . radiusY ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_ROUNDED_RECT { fn eq ( & self , other : & Self ) -> bool { self . rect == other . rect && self . radiusX == other . radiusX && self . radiusY == other . radiusY } } impl :: std :: cmp :: Eq for D2D1_ROUNDED_RECT { } unsafe impl :: windows :: Abi for D2D1_ROUNDED_RECT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D1_STROKE_STYLE_PROPERTIES { pub startCap : D2D1_CAP_STYLE , pub endCap : D2D1_CAP_STYLE , pub dashCap : D2D1_CAP_STYLE , pub lineJoin : D2D1_LINE_JOIN , pub miterLimit : f32 , pub dashStyle : D2D1_DASH_STYLE , pub dashOffset : f32 } impl D2D1_STROKE_STYLE_PROPERTIES { } impl :: std :: default :: Default for D2D1_STROKE_STYLE_PROPERTIES { fn default ( ) -> Self { Self { startCap : :: std :: default :: Default :: default ( ) , endCap : :: std :: default :: Default :: default ( ) , dashCap : :: std :: default :: Default :: default ( ) , lineJoin : :: std :: default :: Default :: default ( ) , miterLimit : 0.0 , dashStyle : :: std :: default :: Default :: default ( ) , dashOffset : 0.0 } } } impl :: std :: fmt :: Debug for D2D1_STROKE_STYLE_PROPERTIES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D1_STROKE_STYLE_PROPERTIES" ) . field ( "startCap" , & self . startCap ) . field ( "endCap" , & self . endCap ) . field ( "dashCap" , & self . dashCap ) . field ( "lineJoin" , & self . lineJoin ) . field ( "miterLimit" , & self . miterLimit ) . field ( "dashStyle" , & self . dashStyle ) . field ( "dashOffset" , & self . dashOffset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D1_STROKE_STYLE_PROPERTIES { fn eq ( & self , other : & Self ) -> bool { self . startCap == other . startCap && self . endCap == other . endCap && self . dashCap == other . dashCap && self . lineJoin == other . lineJoin && self . miterLimit == other . miterLimit && self . dashStyle == other . dashStyle && self . dashOffset == other . dashOffset } } impl :: std :: cmp :: Eq for D2D1_STROKE_STYLE_PROPERTIES { } unsafe impl :: windows :: Abi for D2D1_STROKE_STYLE_PROPERTIES { 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 D2D1_TEXT_ANTIALIAS_MODE ( pub u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_DEFAULT : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 0u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 1u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 2u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_ALIASED : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 3u32 ) ; pub const D2D1_TEXT_ANTIALIAS_MODE_FORCE_DWORD : D2D1_TEXT_ANTIALIAS_MODE = D2D1_TEXT_ANTIALIAS_MODE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_TEXT_ANTIALIAS_MODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_TEXT_ANTIALIAS_MODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_TEXT_ANTIALIAS_MODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_TEXT_ANTIALIAS_MODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_TEXT_ANTIALIAS_MODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_TEXT_ANTIALIAS_MODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct D2D1_WINDOW_STATE ( pub u32 ) ; pub const D2D1_WINDOW_STATE_NONE : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 0u32 ) ; pub const D2D1_WINDOW_STATE_OCCLUDED : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 1u32 ) ; pub const D2D1_WINDOW_STATE_FORCE_DWORD : D2D1_WINDOW_STATE = D2D1_WINDOW_STATE ( 4294967295u32 ) ; impl :: std :: convert :: From < u32 > for D2D1_WINDOW_STATE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for D2D1_WINDOW_STATE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for D2D1_WINDOW_STATE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for D2D1_WINDOW_STATE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for D2D1_WINDOW_STATE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for D2D1_WINDOW_STATE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_POINT_2F { pub x : f32 , pub y : f32 } impl D2D_POINT_2F { } impl :: std :: default :: Default for D2D_POINT_2F { fn default ( ) -> Self { Self { x : 0.0 , y : 0.0 } } } impl :: std :: fmt :: Debug for D2D_POINT_2F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_POINT_2F" ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_POINT_2F { fn eq ( & self , other : & Self ) -> bool { self . x == other . x && self . y == other . y } } impl :: std :: cmp :: Eq for D2D_POINT_2F { } unsafe impl :: windows :: Abi for D2D_POINT_2F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_RECT_F { pub left : f32 , pub top : f32 , pub right : f32 , pub bottom : f32 } impl D2D_RECT_F { } impl :: std :: default :: Default for D2D_RECT_F { fn default ( ) -> Self { Self { left : 0.0 , top : 0.0 , right : 0.0 , bottom : 0.0 } } } impl :: std :: fmt :: Debug for D2D_RECT_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_RECT_F" ) . field ( "left" , & self . left ) . field ( "top" , & self . top ) . field ( "right" , & self . right ) . field ( "bottom" , & self . bottom ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_RECT_F { fn eq ( & self , other : & Self ) -> bool { self . left == other . left && self . top == other . top && self . right == other . right && self . bottom == other . bottom } } impl :: std :: cmp :: Eq for D2D_RECT_F { } unsafe impl :: windows :: Abi for D2D_RECT_F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_SIZE_F { pub width : f32 , pub height : f32 } impl D2D_SIZE_F { } impl :: std :: default :: Default for D2D_SIZE_F { fn default ( ) -> Self { Self { width : 0.0 , height : 0.0 } } } impl :: std :: fmt :: Debug for D2D_SIZE_F { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_SIZE_F" ) . field ( "width" , & self . width ) . field ( "height" , & self . height ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_SIZE_F { fn eq ( & self , other : & Self ) -> bool { self . width == other . width && self . height == other . height } } impl :: std :: cmp :: Eq for D2D_SIZE_F { } unsafe impl :: windows :: Abi for D2D_SIZE_F { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct D2D_SIZE_U { pub width : u32 , pub height : u32 } impl D2D_SIZE_U { } impl :: std :: default :: Default for D2D_SIZE_U { fn default ( ) -> Self { Self { width : 0 , height : 0 } } } impl :: std :: fmt :: Debug for D2D_SIZE_U { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "D2D_SIZE_U" ) . field ( "width" , & self . width ) . field ( "height" , & self . height ) . finish ( ) } } impl :: std :: cmp :: PartialEq for D2D_SIZE_U { fn eq ( & self , other : & Self ) -> bool { self . width == other . width && self . height == other . height } } impl :: std :: cmp :: Eq for D2D_SIZE_U { } unsafe impl :: windows :: Abi for D2D_SIZE_U { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Bitmap ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Bitmap { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2720620631 ,59970 ,16537 , [ 152 ,59 ,83 ,159 ,182 ,80 ,84 ,38 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1BitmapBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1BitmapBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420522 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1BitmapRenderTarget ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1BitmapRenderTarget { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420501 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Brush ( :: windows :: IUnknown ) ; impl ID2D1Brush { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn SetOpacity < > ( & self , opacity : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( opacity ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetOpacity < > ( & self , ) -> f32 { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } } unsafe impl :: windows :: Interface for ID2D1Brush { type Vtable = ID2D1Brush_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420520 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1Brush > for :: windows :: IUnknown { fn from ( value : ID2D1Brush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Brush > for :: windows :: IUnknown { fn from ( value : & ID2D1Brush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1Brush > for ID2D1Resource { fn from ( value : ID2D1Brush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Brush > for ID2D1Resource { fn from ( value : & ID2D1Brush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1Brush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Brush_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacity : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> f32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1DCRenderTarget ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1DCRenderTarget { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 475118692 ,56929 ,18173 , [ 152 ,153 ,99 ,165 ,216 ,240 ,57 ,80 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1DrawingStateBlock ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1DrawingStateBlock { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 676359737 ,60406 ,18081 , [ 187 ,71 ,253 ,133 ,86 ,90 ,185 ,87 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1EllipseGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1EllipseGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420516 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Factory ( :: windows :: IUnknown ) ; impl ID2D1Factory { pub unsafe fn ReloadSystemMetrics < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDesktopDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn CreateRectangleGeometry < > ( & self , rectangle : * const D2D_RECT_F , ) -> :: windows :: Result < ID2D1RectangleGeometry > { let mut result__ : < ID2D1RectangleGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rectangle ) , & mut result__ ) . from_abi :: < ID2D1RectangleGeometry > ( result__ ) } pub unsafe fn CreateRoundedRectangleGeometry < > ( & self , roundedrectangle : * const D2D1_ROUNDED_RECT , ) -> :: windows :: Result < ID2D1RoundedRectangleGeometry > { let mut result__ : < ID2D1RoundedRectangleGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrectangle ) , & mut result__ ) . from_abi :: < ID2D1RoundedRectangleGeometry > ( result__ ) } pub unsafe fn CreateEllipseGeometry < > ( & self , ellipse : * const D2D1_ELLIPSE , ) -> :: windows :: Result < ID2D1EllipseGeometry > { let mut result__ : < ID2D1EllipseGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , & mut result__ ) . from_abi :: < ID2D1EllipseGeometry > ( result__ ) } pub unsafe fn CreateGeometryGroup < > ( & self , fillmode : D2D1_FILL_MODE , geometries : * mut :: std :: option :: Option < ID2D1Geometry > , geometriescount : u32 , ) -> :: windows :: Result < ID2D1GeometryGroup > { let mut result__ : < ID2D1GeometryGroup as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( fillmode ) , :: std :: mem :: transmute ( geometries ) , :: std :: mem :: transmute ( geometriescount ) , & mut result__ ) . from_abi :: < ID2D1GeometryGroup > ( result__ ) } pub unsafe fn CreateTransformedGeometry < 'a , > ( & self , sourcegeometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) -> :: windows :: Result < ID2D1TransformedGeometry > { let mut result__ : < ID2D1TransformedGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , sourcegeometry . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( transform ) , & mut result__ ) . from_abi :: < ID2D1TransformedGeometry > ( result__ ) } pub unsafe fn CreatePathGeometry < > ( & self , ) -> :: windows :: Result < ID2D1PathGeometry > { let mut result__ : < ID2D1PathGeometry as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1PathGeometry > ( result__ ) } pub unsafe fn CreateStrokeStyle < > ( & self , strokestyleproperties : * const D2D1_STROKE_STYLE_PROPERTIES , dashes : * const f32 , dashescount : u32 , ) -> :: windows :: Result < ID2D1StrokeStyle > { let mut result__ : < ID2D1StrokeStyle as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( strokestyleproperties ) , :: std :: mem :: transmute ( dashes ) , :: std :: mem :: transmute ( dashescount ) , & mut result__ ) . from_abi :: < ID2D1StrokeStyle > ( result__ ) } pub unsafe fn CreateDrawingStateBlock < 'a , > ( & self , drawingstatedescription : * const D2D1_DRAWING_STATE_DESCRIPTION , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) -> :: windows :: Result < ID2D1DrawingStateBlock > { let mut result__ : < ID2D1DrawingStateBlock as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( drawingstatedescription ) , textrenderingparams . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1DrawingStateBlock > ( result__ ) } pub unsafe fn CreateWicBitmapRenderTarget < 'a , > ( & self , target : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmap > , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1RenderTarget > { let mut result__ : < ID2D1RenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , target . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1RenderTarget > ( result__ ) } pub unsafe fn CreateHwndRenderTarget < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , hwndrendertargetproperties : * const D2D1_HWND_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1HwndRenderTarget > { let mut result__ : < ID2D1HwndRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , :: std :: mem :: transmute ( hwndrendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1HwndRenderTarget > ( result__ ) } pub unsafe fn CreateDxgiSurfaceRenderTarget < 'a , > ( & self , dxgisurface : impl :: windows :: IntoParam < 'a , super::Dxgi:: IDXGISurface > , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1RenderTarget > { let mut result__ : < ID2D1RenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , dxgisurface . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1RenderTarget > ( result__ ) } pub unsafe fn CreateDCRenderTarget < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> :: windows :: Result < ID2D1DCRenderTarget > { let mut result__ : < ID2D1DCRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , & mut result__ ) . from_abi :: < ID2D1DCRenderTarget > ( result__ ) } } unsafe impl :: windows :: Interface for ID2D1Factory { type Vtable = ID2D1Factory_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 102048327 ,28496 ,18010 , [ 146 ,69 ,17 ,139 ,253 ,59 ,96 ,7 ] , ) ; } impl :: std :: convert :: From < ID2D1Factory > for :: windows :: IUnknown { fn from ( value : ID2D1Factory ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Factory > for :: windows :: IUnknown { fn from ( value : & ID2D1Factory ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Factory { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Factory { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Factory_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rectangle : * const D2D_RECT_F , rectanglegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrectangle : * const D2D1_ROUNDED_RECT , roundedrectanglegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , ellipsegeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , fillmode : D2D1_FILL_MODE , geometries : * mut :: windows :: RawPtr , geometriescount : u32 , geometrygroup : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , sourcegeometry : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , transformedgeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pathgeometry : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , strokestyleproperties : * const D2D1_STROKE_STYLE_PROPERTIES , dashes : * const f32 , dashescount : u32 , strokestyle : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstatedescription : * const D2D1_DRAWING_STATE_DESCRIPTION , textrenderingparams : :: windows :: RawPtr , drawingstateblock : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , rendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , hwndrendertargetproperties : * const D2D1_HWND_RENDER_TARGET_PROPERTIES , hwndrendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dxgisurface : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , rendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , dcrendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Geometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Geometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420513 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1GeometryGroup ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1GeometryGroup { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420518 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1GradientStopCollection ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1GradientStopCollection { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420519 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1HwndRenderTarget ( :: windows :: IUnknown ) ; impl ID2D1HwndRenderTarget { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn CreateBitmap < 'a , > ( & self , size : impl :: windows :: IntoParam < 'a , D2D_SIZE_U > , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , size . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( srcdata ) , :: std :: mem :: transmute ( pitch ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateBitmapFromWicBitmap < 'a , > ( & self , wicbitmapsource : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmapSource > , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , wicbitmapsource . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateSharedBitmap < > ( & self , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: std :: option :: Option < ID2D1Bitmap > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( data ) , :: std :: mem :: transmute ( bitmapproperties ) , :: std :: mem :: transmute ( bitmap ) , ) . ok ( ) } pub unsafe fn CreateBitmapBrush < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1BitmapBrush > { let mut result__ : < ID2D1BitmapBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1BitmapBrush > ( result__ ) } pub unsafe fn CreateSolidColorBrush < > ( & self , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1SolidColorBrush > { let mut result__ : < ID2D1SolidColorBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1SolidColorBrush > ( result__ ) } pub unsafe fn CreateGradientStopCollection < > ( & self , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , ) -> :: windows :: Result < ID2D1GradientStopCollection > { let mut result__ : < ID2D1GradientStopCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( gradientstops ) , :: std :: mem :: transmute ( gradientstopscount ) , :: std :: mem :: transmute ( colorinterpolationgamma ) , :: std :: mem :: transmute ( extendmode ) , & mut result__ ) . from_abi :: < ID2D1GradientStopCollection > ( result__ ) } pub unsafe fn CreateLinearGradientBrush < 'a , > ( & self , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1LinearGradientBrush > { let mut result__ : < ID2D1LinearGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( lineargradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1LinearGradientBrush > ( result__ ) } pub unsafe fn CreateRadialGradientBrush < 'a , > ( & self , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1RadialGradientBrush > { let mut result__ : < ID2D1RadialGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( radialgradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1RadialGradientBrush > ( result__ ) } pub unsafe fn CreateCompatibleRenderTarget < > ( & self , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , ) -> :: windows :: Result < ID2D1BitmapRenderTarget > { let mut result__ : < ID2D1BitmapRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( desiredsize ) , :: std :: mem :: transmute ( desiredpixelsize ) , :: std :: mem :: transmute ( desiredformat ) , :: std :: mem :: transmute ( options ) , & mut result__ ) . from_abi :: < ID2D1BitmapRenderTarget > ( result__ ) } pub unsafe fn CreateLayer < > ( & self , size : * const D2D_SIZE_F , ) -> :: windows :: Result < ID2D1Layer > { let mut result__ : < ID2D1Layer as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( size ) , & mut result__ ) . from_abi :: < ID2D1Layer > ( result__ ) } pub unsafe fn CreateMesh < > ( & self , ) -> :: windows :: Result < ID2D1Mesh > { let mut result__ : < ID2D1Mesh as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1Mesh > ( result__ ) } pub unsafe fn DrawLine < 'a , > ( & self , point0 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , point1 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , point0 . into_param ( ) . abi ( ) , point1 . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , opacitybrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , opacitybrush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillMesh < 'a , > ( & self , mesh : impl :: windows :: IntoParam < 'a , ID2D1Mesh > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , mesh . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillOpacityMask < 'a , > ( & self , opacitymask : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , opacitymask . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( content ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawBitmap < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( opacity ) , :: std :: mem :: transmute ( interpolationmode ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawText < 'a , > ( & self , string : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , stringlength : u32 , textformat : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextFormat > , layoutrect : * const D2D_RECT_F , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , string . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( stringlength ) , textformat . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( layoutrect ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn DrawTextLayout < 'a , > ( & self , origin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , textlayout : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextLayout > , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , ) { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , origin . into_param ( ) . abi ( ) , textlayout . into_param ( ) . abi ( ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , ) } pub unsafe fn DrawGlyphRun < 'a , > ( & self , baselineorigin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN , foregroundbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , baselineorigin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( glyphrun ) , foregroundbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetAntialiasMode < > ( & self , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn GetAntialiasMode < > ( & self , ) -> D2D1_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextAntialiasMode < > ( & self , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textantialiasmode ) , ) } pub unsafe fn GetTextAntialiasMode < > ( & self , ) -> D2D1_TEXT_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextRenderingParams < 'a , > ( & self , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , textrenderingparams . into_param ( ) . abi ( ) , ) } pub unsafe fn GetTextRenderingParams < > ( & self , textrenderingparams : * mut :: std :: option :: Option < super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textrenderingparams ) , ) } pub unsafe fn SetTags < > ( & self , tag1 : u64 , tag2 : u64 , ) { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn GetTags < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn PushLayer < 'a , > ( & self , layerparameters : * const D2D1_LAYER_PARAMETERS , layer : impl :: windows :: IntoParam < 'a , ID2D1Layer > , ) { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( layerparameters ) , layer . into_param ( ) . abi ( ) , ) } pub unsafe fn PopLayer < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Flush < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn SaveDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn RestoreDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn PushAxisAlignedClip < > ( & self , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cliprect ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn PopAxisAlignedClip < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Clear < > ( & self , clearcolor : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( clearcolor ) , ) } pub unsafe fn BeginDraw < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn EndDraw < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn GetPixelFormat < > ( & self , ) -> D2D1_PIXEL_FORMAT { let mut result__ : D2D1_PIXEL_FORMAT = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn SetDpi < > ( & self , dpix : f32 , dpiy : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetSize < > ( & self , ) -> D2D_SIZE_F { let mut result__ : D2D_SIZE_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetPixelSize < > ( & self , ) -> D2D_SIZE_U { let mut result__ : D2D_SIZE_U = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetMaximumBitmapSize < > ( & self , ) -> u32 { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn IsSupported < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , ) } pub unsafe fn CheckWindowState < > ( & self , ) -> D2D1_WINDOW_STATE { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Resize < > ( & self , pixelsize : * const D2D_SIZE_U , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pixelsize ) , ) . ok ( ) } pub unsafe fn GetHwnd < > ( & self , ) -> super::super::Foundation:: HWND { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , ) } } unsafe impl :: windows :: Interface for ID2D1HwndRenderTarget { type Vtable = ID2D1HwndRenderTarget_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420504 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for :: windows :: IUnknown { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for :: windows :: IUnknown { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for ID2D1RenderTarget { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for ID2D1RenderTarget { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1RenderTarget > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1RenderTarget > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1RenderTarget > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1RenderTarget > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1RenderTarget > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1RenderTarget > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1HwndRenderTarget > for ID2D1Resource { fn from ( value : ID2D1HwndRenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1HwndRenderTarget > for ID2D1Resource { fn from ( value : & ID2D1HwndRenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1HwndRenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1HwndRenderTarget_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : D2D_SIZE_U , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , wicbitmapsource : :: windows :: RawPtr , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , bitmapbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , solidcolorbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , gradientstopcollection : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , lineargradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , radialgradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , bitmaprendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : * const D2D_SIZE_F , layer : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , point0 : D2D_POINT_2F , point1 : D2D_POINT_2F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , opacitybrush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : :: windows :: RawPtr , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacitymask : :: windows :: RawPtr , brush : :: windows :: RawPtr , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , string : super::super::Foundation:: PWSTR , stringlength : u32 , textformat : :: windows :: RawPtr , layoutrect : * const D2D_RECT_F , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , origin : D2D_POINT_2F , textlayout : :: windows :: RawPtr , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , baselineorigin : D2D_POINT_2F , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN_abi , foregroundbrush : :: windows :: RawPtr , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_TEXT_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : u64 , tag2 : u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , layerparameters : * const D2D1_LAYER_PARAMETERS_abi , layer : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , clearcolor : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_PIXEL_FORMAT ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : f32 , dpiy : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_F ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_U ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_WINDOW_STATE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixelsize : * const D2D_SIZE_U , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> super::super::Foundation:: HWND , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Layer ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Layer { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420507 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1LinearGradientBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1LinearGradientBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420523 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1Mesh ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1Mesh { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420546 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1PathGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1PathGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420517 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RadialGradientBrush ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RadialGradientBrush { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420524 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RectangleGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RectangleGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420514 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1RenderTarget ( :: windows :: IUnknown ) ; impl ID2D1RenderTarget { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn CreateBitmap < 'a , > ( & self , size : impl :: windows :: IntoParam < 'a , D2D_SIZE_U > , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , size . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( srcdata ) , :: std :: mem :: transmute ( pitch ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateBitmapFromWicBitmap < 'a , > ( & self , wicbitmapsource : impl :: windows :: IntoParam < 'a , super::Imaging:: IWICBitmapSource > , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , ) -> :: windows :: Result < ID2D1Bitmap > { let mut result__ : < ID2D1Bitmap as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , wicbitmapsource . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapproperties ) , & mut result__ ) . from_abi :: < ID2D1Bitmap > ( result__ ) } pub unsafe fn CreateSharedBitmap < > ( & self , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: std :: option :: Option < ID2D1Bitmap > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( riid ) , :: std :: mem :: transmute ( data ) , :: std :: mem :: transmute ( bitmapproperties ) , :: std :: mem :: transmute ( bitmap ) , ) . ok ( ) } pub unsafe fn CreateBitmapBrush < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1BitmapBrush > { let mut result__ : < ID2D1BitmapBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( bitmapbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1BitmapBrush > ( result__ ) } pub unsafe fn CreateSolidColorBrush < > ( & self , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , ) -> :: windows :: Result < ID2D1SolidColorBrush > { let mut result__ : < ID2D1SolidColorBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , :: std :: mem :: transmute ( brushproperties ) , & mut result__ ) . from_abi :: < ID2D1SolidColorBrush > ( result__ ) } pub unsafe fn CreateGradientStopCollection < > ( & self , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , ) -> :: windows :: Result < ID2D1GradientStopCollection > { let mut result__ : < ID2D1GradientStopCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( gradientstops ) , :: std :: mem :: transmute ( gradientstopscount ) , :: std :: mem :: transmute ( colorinterpolationgamma ) , :: std :: mem :: transmute ( extendmode ) , & mut result__ ) . from_abi :: < ID2D1GradientStopCollection > ( result__ ) } pub unsafe fn CreateLinearGradientBrush < 'a , > ( & self , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1LinearGradientBrush > { let mut result__ : < ID2D1LinearGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( lineargradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1LinearGradientBrush > ( result__ ) } pub unsafe fn CreateRadialGradientBrush < 'a , > ( & self , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : impl :: windows :: IntoParam < 'a , ID2D1GradientStopCollection > , ) -> :: windows :: Result < ID2D1RadialGradientBrush > { let mut result__ : < ID2D1RadialGradientBrush as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( radialgradientbrushproperties ) , :: std :: mem :: transmute ( brushproperties ) , gradientstopcollection . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ID2D1RadialGradientBrush > ( result__ ) } pub unsafe fn CreateCompatibleRenderTarget < > ( & self , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , ) -> :: windows :: Result < ID2D1BitmapRenderTarget > { let mut result__ : < ID2D1BitmapRenderTarget as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( desiredsize ) , :: std :: mem :: transmute ( desiredpixelsize ) , :: std :: mem :: transmute ( desiredformat ) , :: std :: mem :: transmute ( options ) , & mut result__ ) . from_abi :: < ID2D1BitmapRenderTarget > ( result__ ) } pub unsafe fn CreateLayer < > ( & self , size : * const D2D_SIZE_F , ) -> :: windows :: Result < ID2D1Layer > { let mut result__ : < ID2D1Layer as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( size ) , & mut result__ ) . from_abi :: < ID2D1Layer > ( result__ ) } pub unsafe fn CreateMesh < > ( & self , ) -> :: windows :: Result < ID2D1Mesh > { let mut result__ : < ID2D1Mesh as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ID2D1Mesh > ( result__ ) } pub unsafe fn DrawLine < 'a , > ( & self , point0 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , point1 : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , point0 . into_param ( ) . abi ( ) , point1 . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRectangle < 'a , > ( & self , rect : * const D2D_RECT_F , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillRoundedRectangle < 'a , > ( & self , roundedrect : * const D2D1_ROUNDED_RECT , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( roundedrect ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillEllipse < 'a , > ( & self , ellipse : * const D2D1_ELLIPSE , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ellipse ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn DrawGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , strokewidth : f32 , strokestyle : impl :: windows :: IntoParam < 'a , ID2D1StrokeStyle > , ) { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( strokewidth ) , strokestyle . into_param ( ) . abi ( ) , ) } pub unsafe fn FillGeometry < 'a , > ( & self , geometry : impl :: windows :: IntoParam < 'a , ID2D1Geometry > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , opacitybrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , geometry . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , opacitybrush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillMesh < 'a , > ( & self , mesh : impl :: windows :: IntoParam < 'a , ID2D1Mesh > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , ) { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , mesh . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , ) } pub unsafe fn FillOpacityMask < 'a , > ( & self , opacitymask : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , brush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , opacitymask . into_param ( ) . abi ( ) , brush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( content ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawBitmap < 'a , > ( & self , bitmap : impl :: windows :: IntoParam < 'a , ID2D1Bitmap > , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , bitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( destinationrectangle ) , :: std :: mem :: transmute ( opacity ) , :: std :: mem :: transmute ( interpolationmode ) , :: std :: mem :: transmute ( sourcerectangle ) , ) } pub unsafe fn DrawText < 'a , > ( & self , string : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , stringlength : u32 , textformat : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextFormat > , layoutrect : * const D2D_RECT_F , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , string . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( stringlength ) , textformat . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( layoutrect ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn DrawTextLayout < 'a , > ( & self , origin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , textlayout : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteTextLayout > , defaultfillbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , options : D2D1_DRAW_TEXT_OPTIONS , ) { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , origin . into_param ( ) . abi ( ) , textlayout . into_param ( ) . abi ( ) , defaultfillbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( options ) , ) } pub unsafe fn DrawGlyphRun < 'a , > ( & self , baselineorigin : impl :: windows :: IntoParam < 'a , D2D_POINT_2F > , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN , foregroundbrush : impl :: windows :: IntoParam < 'a , ID2D1Brush > , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , baselineorigin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( glyphrun ) , foregroundbrush . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( measuringmode ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetAntialiasMode < > ( & self , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn GetAntialiasMode < > ( & self , ) -> D2D1_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextAntialiasMode < > ( & self , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textantialiasmode ) , ) } pub unsafe fn GetTextAntialiasMode < > ( & self , ) -> D2D1_TEXT_ANTIALIAS_MODE { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn SetTextRenderingParams < 'a , > ( & self , textrenderingparams : impl :: windows :: IntoParam < 'a , super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , textrenderingparams . into_param ( ) . abi ( ) , ) } pub unsafe fn GetTextRenderingParams < > ( & self , textrenderingparams : * mut :: std :: option :: Option < super::DirectWrite:: IDWriteRenderingParams > , ) { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( textrenderingparams ) , ) } pub unsafe fn SetTags < > ( & self , tag1 : u64 , tag2 : u64 , ) { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn GetTags < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) } pub unsafe fn PushLayer < 'a , > ( & self , layerparameters : * const D2D1_LAYER_PARAMETERS , layer : impl :: windows :: IntoParam < 'a , ID2D1Layer > , ) { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( layerparameters ) , layer . into_param ( ) . abi ( ) , ) } pub unsafe fn PopLayer < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Flush < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn SaveDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn RestoreDrawingState < 'a , > ( & self , drawingstateblock : impl :: windows :: IntoParam < 'a , ID2D1DrawingStateBlock > , ) { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , drawingstateblock . into_param ( ) . abi ( ) , ) } pub unsafe fn PushAxisAlignedClip < > ( & self , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cliprect ) , :: std :: mem :: transmute ( antialiasmode ) , ) } pub unsafe fn PopAxisAlignedClip < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn Clear < > ( & self , clearcolor : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( clearcolor ) , ) } pub unsafe fn BeginDraw < > ( & self , ) { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn EndDraw < > ( & self , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( tag1 ) , :: std :: mem :: transmute ( tag2 ) , ) . ok ( ) } pub unsafe fn GetPixelFormat < > ( & self , ) -> D2D1_PIXEL_FORMAT { let mut result__ : D2D1_PIXEL_FORMAT = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn SetDpi < > ( & self , dpix : f32 , dpiy : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetDpi < > ( & self , dpix : * mut f32 , dpiy : * mut f32 , ) { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dpix ) , :: std :: mem :: transmute ( dpiy ) , ) } pub unsafe fn GetSize < > ( & self , ) -> D2D_SIZE_F { let mut result__ : D2D_SIZE_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetPixelSize < > ( & self , ) -> D2D_SIZE_U { let mut result__ : D2D_SIZE_U = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } pub unsafe fn GetMaximumBitmapSize < > ( & self , ) -> u32 { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn IsSupported < > ( & self , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( rendertargetproperties ) , ) } } unsafe impl :: windows :: Interface for ID2D1RenderTarget { type Vtable = ID2D1RenderTarget_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420500 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1RenderTarget > for :: windows :: IUnknown { fn from ( value : ID2D1RenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1RenderTarget > for :: windows :: IUnknown { fn from ( value : & ID2D1RenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1RenderTarget > for ID2D1Resource { fn from ( value : ID2D1RenderTarget ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1RenderTarget > for ID2D1Resource { fn from ( value : & ID2D1RenderTarget ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1RenderTarget { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1RenderTarget_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : D2D_SIZE_U , srcdata : * const :: std :: ffi :: c_void , pitch : u32 , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , wicbitmapsource : :: windows :: RawPtr , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , riid : * const :: windows :: Guid , data : * mut :: std :: ffi :: c_void , bitmapproperties : * const D2D1_BITMAP_PROPERTIES , bitmap : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , bitmapbrushproperties : * const D2D1_BITMAP_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , bitmapbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , brushproperties : * const D2D1_BRUSH_PROPERTIES , solidcolorbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , gradientstops : * const D2D1_GRADIENT_STOP , gradientstopscount : u32 , colorinterpolationgamma : D2D1_GAMMA , extendmode : D2D1_EXTEND_MODE , gradientstopcollection : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , lineargradientbrushproperties : * const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , lineargradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , radialgradientbrushproperties : * const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES , brushproperties : * const D2D1_BRUSH_PROPERTIES , gradientstopcollection : :: windows :: RawPtr , radialgradientbrush : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , desiredsize : * const D2D_SIZE_F , desiredpixelsize : * const D2D_SIZE_U , desiredformat : * const D2D1_PIXEL_FORMAT , options : D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS , bitmaprendertarget : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , size : * const D2D_SIZE_F , layer : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , point0 : D2D_POINT_2F , point1 : D2D_POINT_2F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rect : * const D2D_RECT_F , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , roundedrect : * const D2D1_ROUNDED_RECT , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ellipse : * const D2D1_ELLIPSE , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , strokewidth : f32 , strokestyle : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , geometry : :: windows :: RawPtr , brush : :: windows :: RawPtr , opacitybrush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mesh : :: windows :: RawPtr , brush : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacitymask : :: windows :: RawPtr , brush : :: windows :: RawPtr , content : D2D1_OPACITY_MASK_CONTENT , destinationrectangle : * const D2D_RECT_F , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bitmap : :: windows :: RawPtr , destinationrectangle : * const D2D_RECT_F , opacity : f32 , interpolationmode : D2D1_BITMAP_INTERPOLATION_MODE , sourcerectangle : * const D2D_RECT_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , string : super::super::Foundation:: PWSTR , stringlength : u32 , textformat : :: windows :: RawPtr , layoutrect : * const D2D_RECT_F , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , origin : D2D_POINT_2F , textlayout : :: windows :: RawPtr , defaultfillbrush : :: windows :: RawPtr , options : D2D1_DRAW_TEXT_OPTIONS , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , baselineorigin : D2D_POINT_2F , glyphrun : * const super::DirectWrite:: DWRITE_GLYPH_RUN_abi , foregroundbrush : :: windows :: RawPtr , measuringmode : super::DirectWrite:: DWRITE_MEASURING_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textantialiasmode : D2D1_TEXT_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> D2D1_TEXT_ANTIALIAS_MODE , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , textrenderingparams : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : u64 , tag2 : u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , layerparameters : * const D2D1_LAYER_PARAMETERS_abi , layer : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , drawingstateblock : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cliprect : * const D2D_RECT_F , antialiasmode : D2D1_ANTIALIAS_MODE , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , clearcolor : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , tag1 : * mut u64 , tag2 : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_PIXEL_FORMAT ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : f32 , dpiy : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dpix : * mut f32 , dpiy : * mut f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_F ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D_SIZE_U ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , rendertargetproperties : * const D2D1_RENDER_TARGET_PROPERTIES , ) -> super::super::Foundation:: BOOL , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1Resource ( :: windows :: IUnknown ) ; impl ID2D1Resource { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } } unsafe impl :: windows :: Interface for ID2D1Resource { type Vtable = ID2D1Resource_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420497 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1Resource > for :: windows :: IUnknown { fn from ( value : ID2D1Resource ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1Resource > for :: windows :: IUnknown { fn from ( value : & ID2D1Resource ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1Resource { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1Resource { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1Resource_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1RoundedRectangleGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1RoundedRectangleGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420515 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ID2D1SolidColorBrush ( :: windows :: IUnknown ) ; impl ID2D1SolidColorBrush { pub unsafe fn GetFactory < > ( & self , factory : * mut :: std :: option :: Option < ID2D1Factory > , ) { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( factory ) , ) } pub unsafe fn SetOpacity < > ( & self , opacity : f32 , ) { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( opacity ) , ) } pub unsafe fn SetTransform < > ( & self , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn GetOpacity < > ( & self , ) -> f32 { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , ) } pub unsafe fn GetTransform < > ( & self , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( transform ) , ) } pub unsafe fn SetColor < > ( & self , color : * const D2D1_COLOR_F , ) { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( color ) , ) } pub unsafe fn GetColor < > ( & self , ) -> D2D1_COLOR_F { let mut result__ : D2D1_COLOR_F = :: std :: default :: Default :: default ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) ; result__ } } unsafe impl :: windows :: Interface for ID2D1SolidColorBrush { type Vtable = ID2D1SolidColorBrush_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420521 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } impl :: std :: convert :: From < ID2D1SolidColorBrush > for :: windows :: IUnknown { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for :: windows :: IUnknown { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1SolidColorBrush > for ID2D1Brush { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for ID2D1Brush { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Brush > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Brush > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Brush > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Brush > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Brush > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Brush > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ID2D1SolidColorBrush > for ID2D1Resource { fn from ( value : ID2D1SolidColorBrush ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ID2D1SolidColorBrush > for ID2D1Resource { fn from ( value : & ID2D1SolidColorBrush ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ID2D1Resource > for & 'a ID2D1SolidColorBrush { fn into_param ( self ) -> :: windows :: Param < 'a , ID2D1Resource > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ID2D1Resource > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ID2D1SolidColorBrush_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , factory : * mut :: windows :: RawPtr , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , opacity : f32 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * const super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> f32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , transform : * mut super::super::super::Foundation::Numerics:: Matrix3x2 , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , color : * const D2D1_COLOR_F , ) , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , result__ : * mut D2D1_COLOR_F ) , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1StrokeStyle ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1StrokeStyle { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420509 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct ID2D1TransformedGeometry ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for ID2D1TransformedGeometry { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 752420539 ,4834 ,4572 , [ 159 ,237 ,0 ,17 ,67 ,160 ,85 ,249 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod DirectWrite { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DWRITE_GLYPH_OFFSET { pub advanceOffset : f32 , pub ascenderOffset : f32 } impl DWRITE_GLYPH_OFFSET { } impl :: std :: default :: Default for DWRITE_GLYPH_OFFSET { fn default ( ) -> Self { Self { advanceOffset : 0.0 , ascenderOffset : 0.0 } } } impl :: std :: fmt :: Debug for DWRITE_GLYPH_OFFSET { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DWRITE_GLYPH_OFFSET" ) . field ( "advanceOffset" , & self . advanceOffset ) . field ( "ascenderOffset" , & self . ascenderOffset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DWRITE_GLYPH_OFFSET { fn eq ( & self , other : & Self ) -> bool { self . advanceOffset == other . advanceOffset && self . ascenderOffset == other . ascenderOffset } } impl :: std :: cmp :: Eq for DWRITE_GLYPH_OFFSET { } unsafe impl :: windows :: Abi for DWRITE_GLYPH_OFFSET { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct DWRITE_GLYPH_RUN { pub fontFace : :: std :: option :: Option < IDWriteFontFace > , pub fontEmSize : f32 , pub glyphCount : u32 , pub glyphIndices : * mut u16 , pub glyphAdvances : * mut f32 , pub glyphOffsets : * mut DWRITE_GLYPH_OFFSET , pub isSideways : super::super::Foundation:: BOOL , pub bidiLevel : u32 } impl DWRITE_GLYPH_RUN { } impl :: std :: default :: Default for DWRITE_GLYPH_RUN { fn default ( ) -> Self { Self { fontFace : :: std :: default :: Default :: default ( ) , fontEmSize : 0.0 , glyphCount : 0 , glyphIndices : :: std :: ptr :: null_mut ( ) , glyphAdvances : :: std :: ptr :: null_mut ( ) , glyphOffsets : :: std :: ptr :: null_mut ( ) , isSideways : :: std :: default :: Default :: default ( ) , bidiLevel : 0 } } } impl :: std :: fmt :: Debug for DWRITE_GLYPH_RUN { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DWRITE_GLYPH_RUN" ) . field ( "fontFace" , & self . fontFace ) . field ( "fontEmSize" , & self . fontEmSize ) . field ( "glyphCount" , & self . glyphCount ) . field ( "glyphIndices" , & self . glyphIndices ) . field ( "glyphAdvances" , & self . glyphAdvances ) . field ( "glyphOffsets" , & self . glyphOffsets ) . field ( "isSideways" , & self . isSideways ) . field ( "bidiLevel" , & self . bidiLevel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DWRITE_GLYPH_RUN { fn eq ( & self , other : & Self ) -> bool { self . fontFace == other . fontFace && self . fontEmSize == other . fontEmSize && self . glyphCount == other . glyphCount && self . glyphIndices == other . glyphIndices && self . glyphAdvances == other . glyphAdvances && self . glyphOffsets == other . glyphOffsets && self . isSideways == other . isSideways && self . bidiLevel == other . bidiLevel } } impl :: std :: cmp :: Eq for DWRITE_GLYPH_RUN { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct DWRITE_GLYPH_RUN_abi { pub fontFace : :: windows :: RawPtr , pub fontEmSize : f32 , pub glyphCount : u32 , pub glyphIndices : * mut u16 , pub glyphAdvances : * mut f32 , pub glyphOffsets : * mut DWRITE_GLYPH_OFFSET , pub isSideways : super::super::Foundation:: BOOL , pub bidiLevel : u32 } unsafe impl :: windows :: Abi for DWRITE_GLYPH_RUN { type Abi = DWRITE_GLYPH_RUN_abi ; 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 DWRITE_MEASURING_MODE ( pub i32 ) ; pub const DWRITE_MEASURING_MODE_NATURAL : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 0i32 ) ; pub const DWRITE_MEASURING_MODE_GDI_CLASSIC : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 1i32 ) ; pub const DWRITE_MEASURING_MODE_GDI_NATURAL : DWRITE_MEASURING_MODE = DWRITE_MEASURING_MODE ( 2i32 ) ; impl :: std :: convert :: From < i32 > for DWRITE_MEASURING_MODE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DWRITE_MEASURING_MODE { type Abi = Self ; type DefaultType = Self ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteFontFace ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteFontFace { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1598652493 ,28708 ,19779 , [ 191 ,169 ,210 ,89 ,132 ,245 ,56 ,73 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteRenderingParams ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteRenderingParams { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 789423418 ,10973 ,18381 , [ 130 ,238 ,217 ,236 ,52 ,104 ,142 ,117 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteTextFormat ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteTextFormat { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2626709528 ,12759 ,20435 , [ 161 ,81 ,124 ,94 ,34 ,93 ,181 ,90 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDWriteTextLayout ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDWriteTextLayout { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1400074295 ,27924 ,16651 , [ 155 ,254 ,11 ,24 ,43 ,183 ,9 ,97 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Dxgi { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct DXGI_FORMAT ( pub u32 ) ; impl :: std :: convert :: From < u32 > for DXGI_FORMAT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DXGI_FORMAT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for DXGI_FORMAT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for DXGI_FORMAT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for DXGI_FORMAT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for DXGI_FORMAT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDXGISurface ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDXGISurface { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3405559148 ,27331 ,18569 , [ 191 ,71 ,158 ,35 ,187 ,210 ,96 ,236 ] , ) ; } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Gdi { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BLENDFUNCTION { pub BlendOp : u8 , pub BlendFlags : u8 , pub SourceConstantAlpha : u8 , pub AlphaFormat : u8 } impl BLENDFUNCTION { } impl :: std :: default :: Default for BLENDFUNCTION { fn default ( ) -> Self { Self { BlendOp : 0 , BlendFlags : 0 , SourceConstantAlpha : 0 , AlphaFormat : 0 } } } impl :: std :: fmt :: Debug for BLENDFUNCTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BLENDFUNCTION" ) . field ( "BlendOp" , & self . BlendOp ) . field ( "BlendFlags" , & self . BlendFlags ) . field ( "SourceConstantAlpha" , & self . SourceConstantAlpha ) . field ( "AlphaFormat" , & self . AlphaFormat ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BLENDFUNCTION { fn eq ( & self , other : & Self ) -> bool { self . BlendOp == other . BlendOp && self . BlendFlags == other . BlendFlags && self . SourceConstantAlpha == other . SourceConstantAlpha && self . AlphaFormat == other . AlphaFormat } } impl :: std :: cmp :: Eq for BLENDFUNCTION { } unsafe impl :: windows :: Abi for BLENDFUNCTION { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HBITMAP ( pub isize ) ; impl HBITMAP { } impl :: std :: default :: Default for HBITMAP { fn default ( ) -> Self { Self ( 0 ) } } impl HBITMAP { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HBITMAP { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HBITMAP" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HBITMAP { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HBITMAP { } unsafe impl :: windows :: Abi for HBITMAP { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HGDIOBJ > for HBITMAP { fn into_param ( self ) -> :: windows :: Param < 'a , HGDIOBJ > { :: windows :: Param :: Owned ( HGDIOBJ ( self . 0 ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HBRUSH ( pub isize ) ; impl HBRUSH { } impl :: std :: default :: Default for HBRUSH { fn default ( ) -> Self { Self ( 0 ) } } impl HBRUSH { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HBRUSH { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HBRUSH" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HBRUSH { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HBRUSH { } unsafe impl :: windows :: Abi for HBRUSH { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HGDIOBJ > for HBRUSH { fn into_param ( self ) -> :: windows :: Param < 'a , HGDIOBJ > { :: windows :: Param :: Owned ( HGDIOBJ ( self . 0 ) ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HDC ( pub isize ) ; impl HDC { } impl :: std :: default :: Default for HDC { fn default ( ) -> Self { Self ( 0 ) } } impl HDC { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HDC { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HDC" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HDC { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HDC { } unsafe impl :: windows :: Abi for HDC { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HGDIOBJ ( pub isize ) ; impl HGDIOBJ { } impl :: std :: default :: Default for HGDIOBJ { fn default ( ) -> Self { Self ( 0 ) } } impl HGDIOBJ { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HGDIOBJ { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HGDIOBJ" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HGDIOBJ { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HGDIOBJ { } unsafe impl :: windows :: Abi for HGDIOBJ { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LOGFONTA { pub lfHeight : i32 , pub lfWidth : i32 , pub lfEscapement : i32 , pub lfOrientation : i32 , pub lfWeight : i32 , pub lfItalic : u8 , pub lfUnderline : u8 , pub lfStrikeOut : u8 , pub lfCharSet : u8 , pub lfOutPrecision : u8 , pub lfClipPrecision : u8 , pub lfQuality : u8 , pub lfPitchAndFamily : u8 , pub lfFaceName : [ super::super::System::SystemServices:: CHAR ;32 ] } impl LOGFONTA { } impl :: std :: default :: Default for LOGFONTA { fn default ( ) -> Self { Self { lfHeight : 0 , lfWidth : 0 , lfEscapement : 0 , lfOrientation : 0 , lfWeight : 0 , lfItalic : 0 , lfUnderline : 0 , lfStrikeOut : 0 , lfCharSet : 0 , lfOutPrecision : 0 , lfClipPrecision : 0 , lfQuality : 0 , lfPitchAndFamily : 0 , lfFaceName : [ :: std :: default :: Default :: default ( ) ;32 ] } } } impl :: std :: fmt :: Debug for LOGFONTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LOGFONTA" ) . field ( "lfHeight" , & self . lfHeight ) . field ( "lfWidth" , & self . lfWidth ) . field ( "lfEscapement" , & self . lfEscapement ) . field ( "lfOrientation" , & self . lfOrientation ) . field ( "lfWeight" , & self . lfWeight ) . field ( "lfItalic" , & self . lfItalic ) . field ( "lfUnderline" , & self . lfUnderline ) . field ( "lfStrikeOut" , & self . lfStrikeOut ) . field ( "lfCharSet" , & self . lfCharSet ) . field ( "lfOutPrecision" , & self . lfOutPrecision ) . field ( "lfClipPrecision" , & self . lfClipPrecision ) . field ( "lfQuality" , & self . lfQuality ) . field ( "lfPitchAndFamily" , & self . lfPitchAndFamily ) . field ( "lfFaceName" , & self . lfFaceName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LOGFONTA { fn eq ( & self , other : & Self ) -> bool { self . lfHeight == other . lfHeight && self . lfWidth == other . lfWidth && self . lfEscapement == other . lfEscapement && self . lfOrientation == other . lfOrientation && self . lfWeight == other . lfWeight && self . lfItalic == other . lfItalic && self . lfUnderline == other . lfUnderline && self . lfStrikeOut == other . lfStrikeOut && self . lfCharSet == other . lfCharSet && self . lfOutPrecision == other . lfOutPrecision && self . lfClipPrecision == other . lfClipPrecision && self . lfQuality == other . lfQuality && self . lfPitchAndFamily == other . lfPitchAndFamily && self . lfFaceName == other . lfFaceName } } impl :: std :: cmp :: Eq for LOGFONTA { } unsafe impl :: windows :: Abi for LOGFONTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LOGFONTW { pub lfHeight : i32 , pub lfWidth : i32 , pub lfEscapement : i32 , pub lfOrientation : i32 , pub lfWeight : i32 , pub lfItalic : u8 , pub lfUnderline : u8 , pub lfStrikeOut : u8 , pub lfCharSet : u8 , pub lfOutPrecision : u8 , pub lfClipPrecision : u8 , pub lfQuality : u8 , pub lfPitchAndFamily : u8 , pub lfFaceName : [ u16 ;32 ] } impl LOGFONTW { } impl :: std :: default :: Default for LOGFONTW { fn default ( ) -> Self { Self { lfHeight : 0 , lfWidth : 0 , lfEscapement : 0 , lfOrientation : 0 , lfWeight : 0 , lfItalic : 0 , lfUnderline : 0 , lfStrikeOut : 0 , lfCharSet : 0 , lfOutPrecision : 0 , lfClipPrecision : 0 , lfQuality : 0 , lfPitchAndFamily : 0 , lfFaceName : [ 0 ;32 ] } } } impl :: std :: fmt :: Debug for LOGFONTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LOGFONTW" ) . field ( "lfHeight" , & self . lfHeight ) . field ( "lfWidth" , & self . lfWidth ) . field ( "lfEscapement" , & self . lfEscapement ) . field ( "lfOrientation" , & self . lfOrientation ) . field ( "lfWeight" , & self . lfWeight ) . field ( "lfItalic" , & self . lfItalic ) . field ( "lfUnderline" , & self . lfUnderline ) . field ( "lfStrikeOut" , & self . lfStrikeOut ) . field ( "lfCharSet" , & self . lfCharSet ) . field ( "lfOutPrecision" , & self . lfOutPrecision ) . field ( "lfClipPrecision" , & self . lfClipPrecision ) . field ( "lfQuality" , & self . lfQuality ) . field ( "lfPitchAndFamily" , & self . lfPitchAndFamily ) . field ( "lfFaceName" , & self . lfFaceName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LOGFONTW { fn eq ( & self , other : & Self ) -> bool { self . lfHeight == other . lfHeight && self . lfWidth == other . lfWidth && self . lfEscapement == other . lfEscapement && self . lfOrientation == other . lfOrientation && self . lfWeight == other . lfWeight && self . lfItalic == other . lfItalic && self . lfUnderline == other . lfUnderline && self . lfStrikeOut == other . lfStrikeOut && self . lfCharSet == other . lfCharSet && self . lfOutPrecision == other . lfOutPrecision && self . lfClipPrecision == other . lfClipPrecision && self . lfQuality == other . lfQuality && self . lfPitchAndFamily == other . lfPitchAndFamily && self . lfFaceName == other . lfFaceName } } impl :: std :: cmp :: Eq for LOGFONTW { } unsafe impl :: windows :: Abi for LOGFONTW { 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 Imaging { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IWICBitmap ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IWICBitmap { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 289 ,43250 ,18551 , [ 186 ,10 ,253 ,43 ,102 ,69 ,251 ,148 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IWICBitmapSource ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IWICBitmapSource { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 288 ,43250 ,18551 , [ 186 ,10 ,253 ,43 ,102 ,69 ,251 ,148 ] , ) ; } } } # [ 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 LibraryLoader { pub unsafe fn GetModuleHandleW < 'a , > ( lpmodulename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HINSTANCE { # [ cfg ( windows ) ] { # [ link ( name ="KERNEL32" ) ] extern "system" { fn GetModuleHandleW ( lpmodulename : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HINSTANCE ; } GetModuleHandleW ( lpmodulename . into_param ( ) . abi ( ) ) } # [ 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 StationsAndDesktops { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HDESK ( pub isize ) ; impl HDESK { } impl :: std :: default :: Default for HDESK { fn default ( ) -> Self { Self ( 0 ) } } impl HDESK { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HDESK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HDESK" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HDESK { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HDESK { } unsafe impl :: windows :: Abi for HDESK { 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 SystemServices { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct CHAR ( pub u8 ) ; impl CHAR { } impl :: std :: default :: Default for CHAR { fn default ( ) -> Self { Self ( 0 ) } } impl CHAR { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for CHAR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHAR" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHAR { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for CHAR { } unsafe impl :: windows :: Abi for CHAR { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct DPI_AWARENESS_CONTEXT ( pub isize ) ; impl DPI_AWARENESS_CONTEXT { } impl :: std :: default :: Default for DPI_AWARENESS_CONTEXT { fn default ( ) -> Self { Self ( 0 ) } } impl DPI_AWARENESS_CONTEXT { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for DPI_AWARENESS_CONTEXT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DPI_AWARENESS_CONTEXT" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DPI_AWARENESS_CONTEXT { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for DPI_AWARENESS_CONTEXT { } unsafe impl :: windows :: Abi for DPI_AWARENESS_CONTEXT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct LUID { pub LowPart : u32 , pub HighPart : i32 } impl LUID { } impl :: std :: default :: Default for LUID { fn default ( ) -> Self { Self { LowPart : 0 , HighPart : 0 } } } impl :: std :: fmt :: Debug for LUID { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "LUID" ) . field ( "LowPart" , & self . LowPart ) . field ( "HighPart" , & self . HighPart ) . finish ( ) } } impl :: std :: cmp :: PartialEq for LUID { fn eq ( & self , other : & Self ) -> bool { self . LowPart == other . LowPart && self . HighPart == other . HighPart } } impl :: std :: cmp :: Eq for LUID { } unsafe impl :: windows :: Abi for LUID { 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 UI { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Controls { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HPROPSHEETPAGE ( pub isize ) ; impl HPROPSHEETPAGE { } impl :: std :: default :: Default for HPROPSHEETPAGE { fn default ( ) -> Self { Self ( 0 ) } } impl HPROPSHEETPAGE { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HPROPSHEETPAGE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HPROPSHEETPAGE" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HPROPSHEETPAGE { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HPROPSHEETPAGE { } unsafe impl :: windows :: Abi for HPROPSHEETPAGE { 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 IMAGE_FLAGS ( pub u32 ) ; pub const LR_CREATEDIBSECTION : IMAGE_FLAGS = IMAGE_FLAGS ( 8192u32 ) ; pub const LR_DEFAULTCOLOR : IMAGE_FLAGS = IMAGE_FLAGS ( 0u32 ) ; pub const LR_DEFAULTSIZE : IMAGE_FLAGS = IMAGE_FLAGS ( 64u32 ) ; pub const LR_LOADFROMFILE : IMAGE_FLAGS = IMAGE_FLAGS ( 16u32 ) ; pub const LR_LOADMAP3DCOLORS : IMAGE_FLAGS = IMAGE_FLAGS ( 4096u32 ) ; pub const LR_LOADTRANSPARENT : IMAGE_FLAGS = IMAGE_FLAGS ( 32u32 ) ; pub const LR_MONOCHROME : IMAGE_FLAGS = IMAGE_FLAGS ( 1u32 ) ; pub const LR_SHARED : IMAGE_FLAGS = IMAGE_FLAGS ( 32768u32 ) ; pub const LR_VGACOLOR : IMAGE_FLAGS = IMAGE_FLAGS ( 128u32 ) ; pub const LR_COPYDELETEORG : IMAGE_FLAGS = IMAGE_FLAGS ( 8u32 ) ; pub const LR_COPYFROMRESOURCE : IMAGE_FLAGS = IMAGE_FLAGS ( 16384u32 ) ; pub const LR_COPYRETURNORG : IMAGE_FLAGS = IMAGE_FLAGS ( 4u32 ) ; impl :: std :: convert :: From < u32 > for IMAGE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for IMAGE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for IMAGE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for IMAGE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for IMAGE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for IMAGE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NMHDR { pub hwndFrom : super::super::Foundation:: HWND , pub idFrom : usize , pub code : u32 } impl NMHDR { } impl :: std :: default :: Default for NMHDR { fn default ( ) -> Self { Self { hwndFrom : :: std :: default :: Default :: default ( ) , idFrom : 0 , code : 0 } } } impl :: std :: fmt :: Debug for NMHDR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NMHDR" ) . field ( "hwndFrom" , & self . hwndFrom ) . field ( "idFrom" , & self . idFrom ) . field ( "code" , & self . code ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NMHDR { fn eq ( & self , other : & Self ) -> bool { self . hwndFrom == other . hwndFrom && self . idFrom == other . idFrom && self . code == other . code } } impl :: std :: cmp :: Eq for NMHDR { } unsafe impl :: windows :: Abi for NMHDR { 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 SCROLLBAR_OBJID ( pub i32 ) ; pub const OBJID_CLIENT : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -4i32 ) ; pub const OBJID_HSCROLL : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -6i32 ) ; pub const OBJID_VSCROLL : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -5i32 ) ; pub const OBJID_MENU : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -3i32 ) ; pub const OBJID_SYSMENU : SCROLLBAR_OBJID = SCROLLBAR_OBJID ( -1i32 ) ; impl :: std :: convert :: From < i32 > for SCROLLBAR_OBJID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SCROLLBAR_OBJID { 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 DisplayDevices { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA { pub dmDeviceName : [ u8 ;32 ] , pub dmSpecVersion : u16 , pub dmDriverVersion : u16 , pub dmSize : u16 , pub dmDriverExtra : u16 , pub dmFields : u32 , pub Anonymous1 : DEVMODEA_0 , pub dmColor : i16 , pub dmDuplex : i16 , pub dmYResolution : i16 , pub dmTTOption : i16 , pub dmCollate : i16 , pub dmFormName : [ u8 ;32 ] , pub dmLogPixels : u16 , pub dmBitsPerPel : u32 , pub dmPelsWidth : u32 , pub dmPelsHeight : u32 , pub Anonymous2 : DEVMODEA_1 , pub dmDisplayFrequency : u32 , pub dmICMMethod : u32 , pub dmICMIntent : u32 , pub dmMediaType : u32 , pub dmDitherType : u32 , pub dmReserved1 : u32 , pub dmReserved2 : u32 , pub dmPanningWidth : u32 , pub dmPanningHeight : u32 } impl DEVMODEA { } impl :: std :: cmp :: PartialEq for DEVMODEA { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA { } unsafe impl :: windows :: Abi for DEVMODEA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DEVMODEA_0 { pub Anonymous1 : DEVMODEA_0_0 , pub Anonymous2 : DEVMODEA_0_1 } impl DEVMODEA_0 { } impl :: std :: cmp :: PartialEq for DEVMODEA_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA_0 { } unsafe impl :: windows :: Abi for DEVMODEA_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA_0_0 { pub dmOrientation : i16 , pub dmPaperSize : i16 , pub dmPaperLength : i16 , pub dmPaperWidth : i16 , pub dmScale : i16 , pub dmCopies : i16 , pub dmDefaultSource : i16 , pub dmPrintQuality : i16 } impl DEVMODEA_0_0 { } impl :: std :: default :: Default for DEVMODEA_0_0 { fn default ( ) -> Self { Self { dmOrientation : 0 , dmPaperSize : 0 , dmPaperLength : 0 , dmPaperWidth : 0 , dmScale : 0 , dmCopies : 0 , dmDefaultSource : 0 , dmPrintQuality : 0 } } } impl :: std :: fmt :: Debug for DEVMODEA_0_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous1_e__Struct" ) . field ( "dmOrientation" , & self . dmOrientation ) . field ( "dmPaperSize" , & self . dmPaperSize ) . field ( "dmPaperLength" , & self . dmPaperLength ) . field ( "dmPaperWidth" , & self . dmPaperWidth ) . field ( "dmScale" , & self . dmScale ) . field ( "dmCopies" , & self . dmCopies ) . field ( "dmDefaultSource" , & self . dmDefaultSource ) . field ( "dmPrintQuality" , & self . dmPrintQuality ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVMODEA_0_0 { fn eq ( & self , other : & Self ) -> bool { self . dmOrientation == other . dmOrientation && self . dmPaperSize == other . dmPaperSize && self . dmPaperLength == other . dmPaperLength && self . dmPaperWidth == other . dmPaperWidth && self . dmScale == other . dmScale && self . dmCopies == other . dmCopies && self . dmDefaultSource == other . dmDefaultSource && self . dmPrintQuality == other . dmPrintQuality } } impl :: std :: cmp :: Eq for DEVMODEA_0_0 { } unsafe impl :: windows :: Abi for DEVMODEA_0_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVMODEA_0_1 { pub dmPosition : super::super::Foundation:: POINTL , pub dmDisplayOrientation : u32 , pub dmDisplayFixedOutput : u32 } impl DEVMODEA_0_1 { } impl :: std :: default :: Default for DEVMODEA_0_1 { fn default ( ) -> Self { Self { dmPosition : :: std :: default :: Default :: default ( ) , dmDisplayOrientation : 0 , dmDisplayFixedOutput : 0 } } } impl :: std :: fmt :: Debug for DEVMODEA_0_1 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous2_e__Struct" ) . field ( "dmPosition" , & self . dmPosition ) . field ( "dmDisplayOrientation" , & self . dmDisplayOrientation ) . field ( "dmDisplayFixedOutput" , & self . dmDisplayFixedOutput ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVMODEA_0_1 { fn eq ( & self , other : & Self ) -> bool { self . dmPosition == other . dmPosition && self . dmDisplayOrientation == other . dmDisplayOrientation && self . dmDisplayFixedOutput == other . dmDisplayFixedOutput } } impl :: std :: cmp :: Eq for DEVMODEA_0_1 { } unsafe impl :: windows :: Abi for DEVMODEA_0_1 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DEVMODEA_1 { pub dmDisplayFlags : u32 , pub dmNup : u32 } impl DEVMODEA_1 { } impl :: std :: cmp :: PartialEq for DEVMODEA_1 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DEVMODEA_1 { } unsafe impl :: windows :: Abi for DEVMODEA_1 { 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 Shell { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct HELPINFO { pub cbSize : u32 , pub iContextType : i32 , pub iCtrlId : i32 , pub hItemHandle : super::super::Foundation:: HANDLE , pub dwContextId : usize , pub MousePos : super::super::Foundation:: POINT } impl HELPINFO { } impl :: std :: default :: Default for HELPINFO { fn default ( ) -> Self { Self { cbSize : 0 , iContextType : 0 , iCtrlId : 0 , hItemHandle : :: std :: default :: Default :: default ( ) , dwContextId : 0 , MousePos : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for HELPINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HELPINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "iContextType" , & self . iContextType ) . field ( "iCtrlId" , & self . iCtrlId ) . field ( "hItemHandle" , & self . hItemHandle ) . field ( "dwContextId" , & self . dwContextId ) . field ( "MousePos" , & self . MousePos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HELPINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iContextType == other . iContextType && self . iCtrlId == other . iCtrlId && self . hItemHandle == other . hItemHandle && self . dwContextId == other . dwContextId && self . MousePos == other . MousePos } } impl :: std :: cmp :: Eq for HELPINFO { } unsafe impl :: windows :: Abi for HELPINFO { 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 WindowsAndMessaging { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ACCEL { pub fVirt : u8 , pub key : u16 , pub cmd : u16 } impl ACCEL { } impl :: std :: default :: Default for ACCEL { fn default ( ) -> Self { Self { fVirt : 0 , key : 0 , cmd : 0 } } } impl :: std :: fmt :: Debug for ACCEL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ACCEL" ) . field ( "fVirt" , & self . fVirt ) . field ( "key" , & self . key ) . field ( "cmd" , & self . cmd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ACCEL { fn eq ( & self , other : & Self ) -> bool { self . fVirt == other . fVirt && self . key == other . key && self . cmd == other . cmd } } impl :: std :: cmp :: Eq for ACCEL { } unsafe impl :: windows :: Abi for ACCEL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ALTTABINFO { pub cbSize : u32 , pub cItems : i32 , pub cColumns : i32 , pub cRows : i32 , pub iColFocus : i32 , pub iRowFocus : i32 , pub cxItem : i32 , pub cyItem : i32 , pub ptStart : super::super::Foundation:: POINT } impl ALTTABINFO { } impl :: std :: default :: Default for ALTTABINFO { fn default ( ) -> Self { Self { cbSize : 0 , cItems : 0 , cColumns : 0 , cRows : 0 , iColFocus : 0 , iRowFocus : 0 , cxItem : 0 , cyItem : 0 , ptStart : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ALTTABINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ALTTABINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "cItems" , & self . cItems ) . field ( "cColumns" , & self . cColumns ) . field ( "cRows" , & self . cRows ) . field ( "iColFocus" , & self . iColFocus ) . field ( "iRowFocus" , & self . iRowFocus ) . field ( "cxItem" , & self . cxItem ) . field ( "cyItem" , & self . cyItem ) . field ( "ptStart" , & self . ptStart ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ALTTABINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . cItems == other . cItems && self . cColumns == other . cColumns && self . cRows == other . cRows && self . iColFocus == other . iColFocus && self . iRowFocus == other . iRowFocus && self . cxItem == other . cxItem && self . cyItem == other . cyItem && self . ptStart == other . ptStart } } impl :: std :: cmp :: Eq for ALTTABINFO { } unsafe impl :: windows :: Abi for ALTTABINFO { 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 ANIMATE_WINDOW_FLAGS ( pub u32 ) ; pub const AW_ACTIVATE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 131072u32 ) ; pub const AW_BLEND : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 524288u32 ) ; pub const AW_CENTER : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 16u32 ) ; pub const AW_HIDE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 65536u32 ) ; pub const AW_HOR_POSITIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 1u32 ) ; pub const AW_HOR_NEGATIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 2u32 ) ; pub const AW_SLIDE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 262144u32 ) ; pub const AW_VER_POSITIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 4u32 ) ; pub const AW_VER_NEGATIVE : ANIMATE_WINDOW_FLAGS = ANIMATE_WINDOW_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for ANIMATE_WINDOW_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for ANIMATE_WINDOW_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for ANIMATE_WINDOW_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for ANIMATE_WINDOW_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for ANIMATE_WINDOW_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for ANIMATE_WINDOW_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ANIMATIONINFO { pub cbSize : u32 , pub iMinAnimate : i32 } impl ANIMATIONINFO { } impl :: std :: default :: Default for ANIMATIONINFO { fn default ( ) -> Self { Self { cbSize : 0 , iMinAnimate : 0 } } } impl :: std :: fmt :: Debug for ANIMATIONINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ANIMATIONINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "iMinAnimate" , & self . iMinAnimate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ANIMATIONINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iMinAnimate == other . iMinAnimate } } impl :: std :: cmp :: Eq for ANIMATIONINFO { } unsafe impl :: windows :: Abi for ANIMATIONINFO { type Abi = Self ; type DefaultType = Self ; } pub const ARW_DOWN : i32 = 4i32 ; pub const ARW_HIDE : i32 = 8i32 ; pub const ARW_LEFT : i32 = 0i32 ; pub const ARW_RIGHT : i32 = 0i32 ; pub const ARW_STARTMASK : i32 = 3i32 ; pub const ARW_STARTRIGHT : i32 = 1i32 ; pub const ARW_STARTTOP : i32 = 2i32 ; pub const ARW_UP : i32 = 4i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct AUDIODESCRIPTION { pub cbSize : u32 , pub Enabled : super::super::Foundation:: BOOL , pub Locale : u32 } impl AUDIODESCRIPTION { } impl :: std :: default :: Default for AUDIODESCRIPTION { fn default ( ) -> Self { Self { cbSize : 0 , Enabled : :: std :: default :: Default :: default ( ) , Locale : 0 } } } impl :: std :: fmt :: Debug for AUDIODESCRIPTION { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "AUDIODESCRIPTION" ) . field ( "cbSize" , & self . cbSize ) . field ( "Enabled" , & self . Enabled ) . field ( "Locale" , & self . Locale ) . finish ( ) } } impl :: std :: cmp :: PartialEq for AUDIODESCRIPTION { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . Enabled == other . Enabled && self . Locale == other . Locale } } impl :: std :: cmp :: Eq for AUDIODESCRIPTION { } unsafe impl :: windows :: Abi for AUDIODESCRIPTION { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn AdjustWindowRect < 'a , > ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AdjustWindowRect ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } AdjustWindowRect ( :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( dwstyle ) , bmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AdjustWindowRectEx < 'a , > ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwexstyle : WINDOW_EX_STYLE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AdjustWindowRectEx ( lprect : * mut super::super::Foundation:: RECT , dwstyle : WINDOW_STYLE , bmenu : super::super::Foundation:: BOOL , dwexstyle : WINDOW_EX_STYLE ) -> super::super::Foundation:: BOOL ; } AdjustWindowRectEx ( :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( dwstyle ) , bmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwexstyle ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AllowSetForegroundWindow < > ( dwprocessid : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AllowSetForegroundWindow ( dwprocessid : u32 ) -> super::super::Foundation:: BOOL ; } AllowSetForegroundWindow ( :: std :: mem :: transmute ( dwprocessid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AnimateWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , dwtime : u32 , dwflags : ANIMATE_WINDOW_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AnimateWindow ( hwnd : super::super::Foundation:: HWND , dwtime : u32 , dwflags : ANIMATE_WINDOW_FLAGS ) -> super::super::Foundation:: BOOL ; } AnimateWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwtime ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AnyPopup < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AnyPopup ( ) -> super::super::Foundation:: BOOL ; } AnyPopup ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AppendMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AppendMenuA ( hmenu : HMENU , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } AppendMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn AppendMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn AppendMenuW ( hmenu : HMENU , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } AppendMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ArrangeIconicWindows < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ArrangeIconicWindows ( hwnd : super::super::Foundation:: HWND ) -> u32 ; } ArrangeIconicWindows ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const BM_CLICK : u32 = 245u32 ; pub const BM_GETCHECK : u32 = 240u32 ; pub const BM_GETIMAGE : u32 = 246u32 ; pub const BM_GETSTATE : u32 = 242u32 ; pub const BM_SETCHECK : u32 = 241u32 ; pub const BM_SETDONTCLICK : u32 = 248u32 ; pub const BM_SETIMAGE : u32 = 247u32 ; pub const BM_SETSTATE : u32 = 243u32 ; pub const BM_SETSTYLE : u32 = 244u32 ; pub const BN_CLICKED : u32 = 0u32 ; pub const BN_DISABLE : u32 = 4u32 ; pub const BN_DOUBLECLICKED : u32 = 5u32 ; pub const BN_HILITE : u32 = 2u32 ; pub const BN_KILLFOCUS : u32 = 7u32 ; pub const BN_PAINT : u32 = 1u32 ; pub const BN_SETFOCUS : u32 = 6u32 ; pub const BN_UNHILITE : u32 = 3u32 ; pub const BROADCAST_QUERY_DENY : u32 = 1112363332u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct BROADCAST_SYSTEM_MESSAGE_FLAGS ( pub u32 ) ; pub const BSF_ALLOWSFW : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 128u32 ) ; pub const BSF_FLUSHDISK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 4u32 ) ; pub const BSF_FORCEIFHUNG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 32u32 ) ; pub const BSF_IGNORECURRENTTASK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 2u32 ) ; pub const BSF_NOHANG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 8u32 ) ; pub const BSF_NOTIMEOUTIFNOTHUNG : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 64u32 ) ; pub const BSF_POSTMESSAGE : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 16u32 ) ; pub const BSF_QUERY : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 1u32 ) ; pub const BSF_SENDNOTIFYMESSAGE : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 256u32 ) ; pub const BSF_LUID : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 1024u32 ) ; pub const BSF_RETURNHDESK : BROADCAST_SYSTEM_MESSAGE_FLAGS = BROADCAST_SYSTEM_MESSAGE_FLAGS ( 512u32 ) ; impl :: std :: convert :: From < u32 > for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for BROADCAST_SYSTEM_MESSAGE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for BROADCAST_SYSTEM_MESSAGE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct BROADCAST_SYSTEM_MESSAGE_INFO ( pub u32 ) ; pub const BSM_ALLCOMPONENTS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 0u32 ) ; pub const BSM_ALLDESKTOPS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 16u32 ) ; pub const BSM_APPLICATIONS : BROADCAST_SYSTEM_MESSAGE_INFO = BROADCAST_SYSTEM_MESSAGE_INFO ( 8u32 ) ; impl :: std :: convert :: From < u32 > for BROADCAST_SYSTEM_MESSAGE_INFO { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for BROADCAST_SYSTEM_MESSAGE_INFO { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for BROADCAST_SYSTEM_MESSAGE_INFO { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for BROADCAST_SYSTEM_MESSAGE_INFO { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for BROADCAST_SYSTEM_MESSAGE_INFO { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for BROADCAST_SYSTEM_MESSAGE_INFO { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct BSMINFO { pub cbSize : u32 , pub hdesk : super::super::System::StationsAndDesktops:: HDESK , pub hwnd : super::super::Foundation:: HWND , pub luid : super::super::System::SystemServices:: LUID } impl BSMINFO { } impl :: std :: default :: Default for BSMINFO { fn default ( ) -> Self { Self { cbSize : 0 , hdesk : :: std :: default :: Default :: default ( ) , hwnd : :: std :: default :: Default :: default ( ) , luid : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for BSMINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "BSMINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "hdesk" , & self . hdesk ) . field ( "hwnd" , & self . hwnd ) . field ( "luid" , & self . luid ) . finish ( ) } } impl :: std :: cmp :: PartialEq for BSMINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hdesk == other . hdesk && self . hwnd == other . hwnd && self . luid == other . luid } } impl :: std :: cmp :: Eq for BSMINFO { } unsafe impl :: windows :: Abi for BSMINFO { type Abi = Self ; type DefaultType = Self ; } pub const BSM_INSTALLABLEDRIVERS : u32 = 4u32 ; pub const BSM_NETDRIVER : u32 = 2u32 ; pub const BSM_VXDS : u32 = 1u32 ; pub const BST_FOCUS : u32 = 8u32 ; pub const BST_PUSHED : u32 = 4u32 ; pub const BS_3STATE : i32 = 5i32 ; pub const BS_AUTO3STATE : i32 = 6i32 ; pub const BS_AUTOCHECKBOX : i32 = 3i32 ; pub const BS_AUTORADIOBUTTON : i32 = 9i32 ; pub const BS_BITMAP : i32 = 128i32 ; pub const BS_BOTTOM : i32 = 2048i32 ; pub const BS_CENTER : i32 = 768i32 ; pub const BS_CHECKBOX : i32 = 2i32 ; pub const BS_DEFPUSHBUTTON : i32 = 1i32 ; pub const BS_FLAT : i32 = 32768i32 ; pub const BS_GROUPBOX : i32 = 7i32 ; pub const BS_ICON : i32 = 64i32 ; pub const BS_LEFT : i32 = 256i32 ; pub const BS_LEFTTEXT : i32 = 32i32 ; pub const BS_MULTILINE : i32 = 8192i32 ; pub const BS_NOTIFY : i32 = 16384i32 ; pub const BS_OWNERDRAW : i32 = 11i32 ; pub const BS_PUSHBOX : i32 = 10i32 ; pub const BS_PUSHBUTTON : i32 = 0i32 ; pub const BS_PUSHLIKE : i32 = 4096i32 ; pub const BS_RADIOBUTTON : i32 = 4i32 ; pub const BS_RIGHT : i32 = 512i32 ; pub const BS_TEXT : i32 = 0i32 ; pub const BS_TOP : i32 = 1024i32 ; pub const BS_TYPEMASK : i32 = 15i32 ; pub const BS_USERBUTTON : i32 = 8i32 ; pub const BS_VCENTER : i32 = 3072i32 ; pub unsafe fn BeginDeferWindowPos < > ( nnumwindows : i32 , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BeginDeferWindowPos ( nnumwindows : i32 ) -> isize ; } BeginDeferWindowPos ( :: std :: mem :: transmute ( nnumwindows ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BringWindowToTop < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BringWindowToTop ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } BringWindowToTop ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageA < 'a , > ( flags : u32 , lpinfo : * mut u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageA ( flags : u32 , lpinfo : * mut u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } BroadcastSystemMessageA ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageExA < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , pbsminfo : * mut BSMINFO , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageExA ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , pbsminfo : * mut BSMINFO ) -> i32 ; } BroadcastSystemMessageExA ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pbsminfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageExW < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , pbsminfo : * mut BSMINFO , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageExW ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , pbsminfo : * mut BSMINFO ) -> i32 ; } BroadcastSystemMessageExW ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pbsminfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn BroadcastSystemMessageW < 'a , > ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn BroadcastSystemMessageW ( flags : BROADCAST_SYSTEM_MESSAGE_FLAGS , lpinfo : * mut BROADCAST_SYSTEM_MESSAGE_INFO , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } BroadcastSystemMessageW ( :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( lpinfo ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const CALERT_SYSTEM : u32 = 6u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CASCADE_WINDOWS_HOW ( pub u32 ) ; pub const MDITILE_SKIPDISABLED : CASCADE_WINDOWS_HOW = CASCADE_WINDOWS_HOW ( 2u32 ) ; pub const MDITILE_ZORDER : CASCADE_WINDOWS_HOW = CASCADE_WINDOWS_HOW ( 4u32 ) ; impl :: std :: convert :: From < u32 > for CASCADE_WINDOWS_HOW { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CASCADE_WINDOWS_HOW { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CASCADE_WINDOWS_HOW { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CASCADE_WINDOWS_HOW { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CASCADE_WINDOWS_HOW { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CASCADE_WINDOWS_HOW { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CBN_CLOSEUP : u32 = 8u32 ; pub const CBN_DBLCLK : u32 = 2u32 ; pub const CBN_DROPDOWN : u32 = 7u32 ; pub const CBN_EDITCHANGE : u32 = 5u32 ; pub const CBN_EDITUPDATE : u32 = 6u32 ; pub const CBN_ERRSPACE : i32 = -1i32 ; pub const CBN_KILLFOCUS : u32 = 4u32 ; pub const CBN_SELCHANGE : u32 = 1u32 ; pub const CBN_SELENDCANCEL : u32 = 10u32 ; pub const CBN_SELENDOK : u32 = 9u32 ; pub const CBN_SETFOCUS : u32 = 3u32 ; pub const CBS_AUTOHSCROLL : i32 = 64i32 ; pub const CBS_DISABLENOSCROLL : i32 = 2048i32 ; pub const CBS_DROPDOWN : i32 = 2i32 ; pub const CBS_DROPDOWNLIST : i32 = 3i32 ; pub const CBS_HASSTRINGS : i32 = 512i32 ; pub const CBS_LOWERCASE : i32 = 16384i32 ; pub const CBS_NOINTEGRALHEIGHT : i32 = 1024i32 ; pub const CBS_OEMCONVERT : i32 = 128i32 ; pub const CBS_OWNERDRAWFIXED : i32 = 16i32 ; pub const CBS_OWNERDRAWVARIABLE : i32 = 32i32 ; pub const CBS_SIMPLE : i32 = 1i32 ; pub const CBS_SORT : i32 = 256i32 ; pub const CBS_UPPERCASE : i32 = 8192i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBTACTIVATESTRUCT { pub fMouse : super::super::Foundation:: BOOL , pub hWndActive : super::super::Foundation:: HWND } impl CBTACTIVATESTRUCT { } impl :: std :: default :: Default for CBTACTIVATESTRUCT { fn default ( ) -> Self { Self { fMouse : :: std :: default :: Default :: default ( ) , hWndActive : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBTACTIVATESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBTACTIVATESTRUCT" ) . field ( "fMouse" , & self . fMouse ) . field ( "hWndActive" , & self . hWndActive ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBTACTIVATESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . fMouse == other . fMouse && self . hWndActive == other . hWndActive } } impl :: std :: cmp :: Eq for CBTACTIVATESTRUCT { } unsafe impl :: windows :: Abi for CBTACTIVATESTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBT_CREATEWNDA { pub lpcs : * mut CREATESTRUCTA , pub hwndInsertAfter : super::super::Foundation:: HWND } impl CBT_CREATEWNDA { } impl :: std :: default :: Default for CBT_CREATEWNDA { fn default ( ) -> Self { Self { lpcs : :: std :: ptr :: null_mut ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBT_CREATEWNDA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBT_CREATEWNDA" ) . field ( "lpcs" , & self . lpcs ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBT_CREATEWNDA { fn eq ( & self , other : & Self ) -> bool { self . lpcs == other . lpcs && self . hwndInsertAfter == other . hwndInsertAfter } } impl :: std :: cmp :: Eq for CBT_CREATEWNDA { } unsafe impl :: windows :: Abi for CBT_CREATEWNDA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CBT_CREATEWNDW { pub lpcs : * mut CREATESTRUCTW , pub hwndInsertAfter : super::super::Foundation:: HWND } impl CBT_CREATEWNDW { } impl :: std :: default :: Default for CBT_CREATEWNDW { fn default ( ) -> Self { Self { lpcs : :: std :: ptr :: null_mut ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CBT_CREATEWNDW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CBT_CREATEWNDW" ) . field ( "lpcs" , & self . lpcs ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CBT_CREATEWNDW { fn eq ( & self , other : & Self ) -> bool { self . lpcs == other . lpcs && self . hwndInsertAfter == other . hwndInsertAfter } } impl :: std :: cmp :: Eq for CBT_CREATEWNDW { } unsafe impl :: windows :: Abi for CBT_CREATEWNDW { type Abi = Self ; type DefaultType = Self ; } pub const CB_ADDSTRING : u32 = 323u32 ; pub const CB_DELETESTRING : u32 = 324u32 ; pub const CB_DIR : u32 = 325u32 ; pub const CB_ERR : i32 = -1i32 ; pub const CB_ERRSPACE : i32 = -2i32 ; pub const CB_FINDSTRING : u32 = 332u32 ; pub const CB_FINDSTRINGEXACT : u32 = 344u32 ; pub const CB_GETCOMBOBOXINFO : u32 = 356u32 ; pub const CB_GETCOUNT : u32 = 326u32 ; pub const CB_GETCURSEL : u32 = 327u32 ; pub const CB_GETDROPPEDCONTROLRECT : u32 = 338u32 ; pub const CB_GETDROPPEDSTATE : u32 = 343u32 ; pub const CB_GETDROPPEDWIDTH : u32 = 351u32 ; pub const CB_GETEDITSEL : u32 = 320u32 ; pub const CB_GETEXTENDEDUI : u32 = 342u32 ; pub const CB_GETHORIZONTALEXTENT : u32 = 349u32 ; pub const CB_GETITEMDATA : u32 = 336u32 ; pub const CB_GETITEMHEIGHT : u32 = 340u32 ; pub const CB_GETLBTEXT : u32 = 328u32 ; pub const CB_GETLBTEXTLEN : u32 = 329u32 ; pub const CB_GETLOCALE : u32 = 346u32 ; pub const CB_GETTOPINDEX : u32 = 347u32 ; pub const CB_INITSTORAGE : u32 = 353u32 ; pub const CB_INSERTSTRING : u32 = 330u32 ; pub const CB_LIMITTEXT : u32 = 321u32 ; pub const CB_MSGMAX : u32 = 357u32 ; pub const CB_MULTIPLEADDSTRING : u32 = 355u32 ; pub const CB_OKAY : u32 = 0u32 ; pub const CB_RESETCONTENT : u32 = 331u32 ; pub const CB_SELECTSTRING : u32 = 333u32 ; pub const CB_SETCURSEL : u32 = 334u32 ; pub const CB_SETDROPPEDWIDTH : u32 = 352u32 ; pub const CB_SETEDITSEL : u32 = 322u32 ; pub const CB_SETEXTENDEDUI : u32 = 341u32 ; pub const CB_SETHORIZONTALEXTENT : u32 = 350u32 ; pub const CB_SETITEMDATA : u32 = 337u32 ; pub const CB_SETITEMHEIGHT : u32 = 339u32 ; pub const CB_SETLOCALE : u32 = 345u32 ; pub const CB_SETTOPINDEX : u32 = 348u32 ; pub const CB_SHOWDROPDOWN : u32 = 335u32 ; pub const CCHILDREN_SCROLLBAR : u32 = 5u32 ; pub const CCHILDREN_TITLEBAR : u32 = 5u32 ; pub const CDM_FIRST : u32 = 1124u32 ; pub const CDM_GETFILEPATH : u32 = 1125u32 ; pub const CDM_GETFOLDERIDLIST : u32 = 1127u32 ; pub const CDM_GETFOLDERPATH : u32 = 1126u32 ; pub const CDM_GETSPEC : u32 = 1124u32 ; pub const CDM_HIDECONTROL : u32 = 1129u32 ; pub const CDM_LAST : u32 = 1224u32 ; pub const CDM_SETCONTROLTEXT : u32 = 1128u32 ; pub const CDM_SETDEFEXT : u32 = 1130u32 ; pub const CD_LBSELADD : u32 = 2u32 ; pub const CD_LBSELCHANGE : u32 = 0u32 ; pub const CD_LBSELNOITEMS : i32 = -1i32 ; pub const CD_LBSELSUB : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CHANGEFILTERSTRUCT { pub cbSize : u32 , pub ExtStatus : MSGFLTINFO_STATUS } impl CHANGEFILTERSTRUCT { } impl :: std :: default :: Default for CHANGEFILTERSTRUCT { fn default ( ) -> Self { Self { cbSize : 0 , ExtStatus : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHANGEFILTERSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHANGEFILTERSTRUCT" ) . field ( "cbSize" , & self . cbSize ) . field ( "ExtStatus" , & self . ExtStatus ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHANGEFILTERSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . ExtStatus == other . ExtStatus } } impl :: std :: cmp :: Eq for CHANGEFILTERSTRUCT { } unsafe impl :: windows :: Abi for CHANGEFILTERSTRUCT { 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 CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( pub u32 ) ; pub const MSGFLT_ADD : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( 1u32 ) ; pub const MSGFLT_REMOVE : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS = CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHANGE_WINDOW_MESSAGE_FILTER_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CHILDID_SELF : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSECOLORA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCCHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl CHOOSECOLORA { } impl :: std :: default :: Default for CHOOSECOLORA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , rgbResult : 0 , lpCustColors : :: std :: ptr :: null_mut ( ) , Flags : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHOOSECOLORA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSECOLORA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "rgbResult" , & self . rgbResult ) . field ( "lpCustColors" , & self . lpCustColors ) . field ( "Flags" , & self . Flags ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSECOLORA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . rgbResult == other . rgbResult && self . lpCustColors == other . lpCustColors && self . Flags == other . Flags && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for CHOOSECOLORA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSECOLORA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for CHOOSECOLORA { type Abi = CHOOSECOLORA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSECOLORW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCCHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl CHOOSECOLORW { } impl :: std :: default :: Default for CHOOSECOLORW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , rgbResult : 0 , lpCustColors : :: std :: ptr :: null_mut ( ) , Flags : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CHOOSECOLORW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSECOLORW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "rgbResult" , & self . rgbResult ) . field ( "lpCustColors" , & self . lpCustColors ) . field ( "Flags" , & self . Flags ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSECOLORW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . rgbResult == other . rgbResult && self . lpCustColors == other . lpCustColors && self . Flags == other . Flags && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for CHOOSECOLORW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSECOLORW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HWND , pub rgbResult : u32 , pub lpCustColors : * mut u32 , pub Flags : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for CHOOSECOLORW { type Abi = CHOOSECOLORW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSEFONTA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTA , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCFHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } impl CHOOSEFONTA { } impl :: std :: default :: Default for CHOOSEFONTA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDC : :: std :: default :: Default :: default ( ) , lpLogFont : :: std :: ptr :: null_mut ( ) , iPointSize : 0 , Flags : :: std :: default :: Default :: default ( ) , rgbColors : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszStyle : :: std :: default :: Default :: default ( ) , nFontType : :: std :: default :: Default :: default ( ) , ___MISSING_ALIGNMENT__ : 0 , nSizeMin : 0 , nSizeMax : 0 } } } impl :: std :: fmt :: Debug for CHOOSEFONTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSEFONTA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDC" , & self . hDC ) . field ( "lpLogFont" , & self . lpLogFont ) . field ( "iPointSize" , & self . iPointSize ) . field ( "Flags" , & self . Flags ) . field ( "rgbColors" , & self . rgbColors ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszStyle" , & self . lpszStyle ) . field ( "nFontType" , & self . nFontType ) . field ( "___MISSING_ALIGNMENT__" , & self . ___MISSING_ALIGNMENT__ ) . field ( "nSizeMin" , & self . nSizeMin ) . field ( "nSizeMax" , & self . nSizeMax ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSEFONTA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDC == other . hDC && self . lpLogFont == other . lpLogFont && self . iPointSize == other . iPointSize && self . Flags == other . Flags && self . rgbColors == other . rgbColors && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . hInstance == other . hInstance && self . lpszStyle == other . lpszStyle && self . nFontType == other . nFontType && self . ___MISSING_ALIGNMENT__ == other . ___MISSING_ALIGNMENT__ && self . nSizeMin == other . nSizeMin && self . nSizeMax == other . nSizeMax } } impl :: std :: cmp :: Eq for CHOOSEFONTA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSEFONTA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTA , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } unsafe impl :: windows :: Abi for CHOOSEFONTA { type Abi = CHOOSEFONTA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct CHOOSEFONTW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTW , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPCFHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PWSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } impl CHOOSEFONTW { } impl :: std :: default :: Default for CHOOSEFONTW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDC : :: std :: default :: Default :: default ( ) , lpLogFont : :: std :: ptr :: null_mut ( ) , iPointSize : 0 , Flags : :: std :: default :: Default :: default ( ) , rgbColors : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszStyle : :: std :: default :: Default :: default ( ) , nFontType : :: std :: default :: Default :: default ( ) , ___MISSING_ALIGNMENT__ : 0 , nSizeMin : 0 , nSizeMax : 0 } } } impl :: std :: fmt :: Debug for CHOOSEFONTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CHOOSEFONTW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDC" , & self . hDC ) . field ( "lpLogFont" , & self . lpLogFont ) . field ( "iPointSize" , & self . iPointSize ) . field ( "Flags" , & self . Flags ) . field ( "rgbColors" , & self . rgbColors ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszStyle" , & self . lpszStyle ) . field ( "nFontType" , & self . nFontType ) . field ( "___MISSING_ALIGNMENT__" , & self . ___MISSING_ALIGNMENT__ ) . field ( "nSizeMin" , & self . nSizeMin ) . field ( "nSizeMax" , & self . nSizeMax ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CHOOSEFONTW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDC == other . hDC && self . lpLogFont == other . lpLogFont && self . iPointSize == other . iPointSize && self . Flags == other . Flags && self . rgbColors == other . rgbColors && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . hInstance == other . hInstance && self . lpszStyle == other . lpszStyle && self . nFontType == other . nFontType && self . ___MISSING_ALIGNMENT__ == other . ___MISSING_ALIGNMENT__ && self . nSizeMin == other . nSizeMin && self . nSizeMax == other . nSizeMax } } impl :: std :: cmp :: Eq for CHOOSEFONTW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct CHOOSEFONTW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDC : super::super::Graphics::Gdi:: HDC , pub lpLogFont : * mut super::super::Graphics::Gdi:: LOGFONTW , pub iPointSize : i32 , pub Flags : CHOOSEFONT_FLAGS , pub rgbColors : u32 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszStyle : super::super::Foundation:: PWSTR , pub nFontType : CHOOSEFONT_FONT_TYPE , pub ___MISSING_ALIGNMENT__ : u16 , pub nSizeMin : i32 , pub nSizeMax : i32 } unsafe impl :: windows :: Abi for CHOOSEFONTW { type Abi = CHOOSEFONTW_abi ; 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 CHOOSEFONT_FLAGS ( pub u32 ) ; pub const CF_APPLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 512u32 ) ; pub const CF_ANSIONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1024u32 ) ; pub const CF_BOTH : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 3u32 ) ; pub const CF_EFFECTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 256u32 ) ; pub const CF_ENABLEHOOK : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8u32 ) ; pub const CF_ENABLETEMPLATE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16u32 ) ; pub const CF_ENABLETEMPLATEHANDLE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 32u32 ) ; pub const CF_FIXEDPITCHONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16384u32 ) ; pub const CF_FORCEFONTEXIST : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 65536u32 ) ; pub const CF_INACTIVEFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 33554432u32 ) ; pub const CF_INITTOLOGFONTSTRUCT : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 64u32 ) ; pub const CF_LIMITSIZE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8192u32 ) ; pub const CF_NOOEMFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2048u32 ) ; pub const CF_NOFACESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 524288u32 ) ; pub const CF_NOSCRIPTSEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 8388608u32 ) ; pub const CF_NOSIMULATIONS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4096u32 ) ; pub const CF_NOSIZESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2097152u32 ) ; pub const CF_NOSTYLESEL : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1048576u32 ) ; pub const CF_NOVECTORFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2048u32 ) ; pub const CF_NOVERTFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 16777216u32 ) ; pub const CF_PRINTERFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 2u32 ) ; pub const CF_SCALABLEONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 131072u32 ) ; pub const CF_SCREENFONTS : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1u32 ) ; pub const CF_SCRIPTSONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 1024u32 ) ; pub const CF_SELECTSCRIPT : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4194304u32 ) ; pub const CF_SHOWHELP : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 4u32 ) ; pub const CF_TTONLY : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 262144u32 ) ; pub const CF_USESTYLE : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 128u32 ) ; pub const CF_WYSIWYG : CHOOSEFONT_FLAGS = CHOOSEFONT_FLAGS ( 32768u32 ) ; impl :: std :: convert :: From < u32 > for CHOOSEFONT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHOOSEFONT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHOOSEFONT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHOOSEFONT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHOOSEFONT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHOOSEFONT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CHOOSEFONT_FONT_TYPE ( pub u32 ) ; pub const BOLD_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 256u32 ) ; pub const ITALIC_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 512u32 ) ; pub const PRINTER_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 16384u32 ) ; pub const REGULAR_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 1024u32 ) ; pub const SCREEN_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 8192u32 ) ; pub const SIMULATED_FONTTYPE : CHOOSEFONT_FONT_TYPE = CHOOSEFONT_FONT_TYPE ( 32768u32 ) ; impl :: std :: convert :: From < u32 > for CHOOSEFONT_FONT_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CHOOSEFONT_FONT_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CHOOSEFONT_FONT_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CHOOSEFONT_FONT_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CHOOSEFONT_FONT_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CHOOSEFONT_FONT_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CLIENTCREATESTRUCT { pub hWindowMenu : super::super::Foundation:: HANDLE , pub idFirstChild : u32 } impl CLIENTCREATESTRUCT { } impl :: std :: default :: Default for CLIENTCREATESTRUCT { fn default ( ) -> Self { Self { hWindowMenu : :: std :: default :: Default :: default ( ) , idFirstChild : 0 } } } impl :: std :: fmt :: Debug for CLIENTCREATESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CLIENTCREATESTRUCT" ) . field ( "hWindowMenu" , & self . hWindowMenu ) . field ( "idFirstChild" , & self . idFirstChild ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CLIENTCREATESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hWindowMenu == other . hWindowMenu && self . idFirstChild == other . idFirstChild } } impl :: std :: cmp :: Eq for CLIENTCREATESTRUCT { } unsafe impl :: windows :: Abi for CLIENTCREATESTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const COLOR_BTNHIGHLIGHT : u32 = 20u32 ; pub const CONSOLE_APPLICATION_16BIT : u32 = 0u32 ; pub const CONSOLE_CARET_SELECTION : u32 = 1u32 ; pub const CONSOLE_CARET_VISIBLE : u32 = 2u32 ; pub const CONTACTVISUALIZATION_OFF : u32 = 0u32 ; pub const CONTACTVISUALIZATION_ON : u32 = 1u32 ; pub const CONTACTVISUALIZATION_PRESENTATIONMODE : u32 = 2u32 ; pub const CREATEPROCESS_MANIFEST_RESOURCE_ID : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CREATESTRUCTA { pub lpCreateParams : * mut :: std :: ffi :: c_void , pub hInstance : super::super::Foundation:: HINSTANCE , pub hMenu : HMENU , pub hwndParent : super::super::Foundation:: HWND , pub cy : i32 , pub cx : i32 , pub y : i32 , pub x : i32 , pub style : i32 , pub lpszName : super::super::Foundation:: PSTR , pub lpszClass : super::super::Foundation:: PSTR , pub dwExStyle : u32 } impl CREATESTRUCTA { } impl :: std :: default :: Default for CREATESTRUCTA { fn default ( ) -> Self { Self { lpCreateParams : :: std :: ptr :: null_mut ( ) , hInstance : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndParent : :: std :: default :: Default :: default ( ) , cy : 0 , cx : 0 , y : 0 , x : 0 , style : 0 , lpszName : :: std :: default :: Default :: default ( ) , lpszClass : :: std :: default :: Default :: default ( ) , dwExStyle : 0 } } } impl :: std :: fmt :: Debug for CREATESTRUCTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CREATESTRUCTA" ) . field ( "lpCreateParams" , & self . lpCreateParams ) . field ( "hInstance" , & self . hInstance ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndParent" , & self . hwndParent ) . field ( "cy" , & self . cy ) . field ( "cx" , & self . cx ) . field ( "y" , & self . y ) . field ( "x" , & self . x ) . field ( "style" , & self . style ) . field ( "lpszName" , & self . lpszName ) . field ( "lpszClass" , & self . lpszClass ) . field ( "dwExStyle" , & self . dwExStyle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CREATESTRUCTA { fn eq ( & self , other : & Self ) -> bool { self . lpCreateParams == other . lpCreateParams && self . hInstance == other . hInstance && self . hMenu == other . hMenu && self . hwndParent == other . hwndParent && self . cy == other . cy && self . cx == other . cx && self . y == other . y && self . x == other . x && self . style == other . style && self . lpszName == other . lpszName && self . lpszClass == other . lpszClass && self . dwExStyle == other . dwExStyle } } impl :: std :: cmp :: Eq for CREATESTRUCTA { } unsafe impl :: windows :: Abi for CREATESTRUCTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CREATESTRUCTW { pub lpCreateParams : * mut :: std :: ffi :: c_void , pub hInstance : super::super::Foundation:: HINSTANCE , pub hMenu : HMENU , pub hwndParent : super::super::Foundation:: HWND , pub cy : i32 , pub cx : i32 , pub y : i32 , pub x : i32 , pub style : i32 , pub lpszName : super::super::Foundation:: PWSTR , pub lpszClass : super::super::Foundation:: PWSTR , pub dwExStyle : u32 } impl CREATESTRUCTW { } impl :: std :: default :: Default for CREATESTRUCTW { fn default ( ) -> Self { Self { lpCreateParams : :: std :: ptr :: null_mut ( ) , hInstance : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndParent : :: std :: default :: Default :: default ( ) , cy : 0 , cx : 0 , y : 0 , x : 0 , style : 0 , lpszName : :: std :: default :: Default :: default ( ) , lpszClass : :: std :: default :: Default :: default ( ) , dwExStyle : 0 } } } impl :: std :: fmt :: Debug for CREATESTRUCTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CREATESTRUCTW" ) . field ( "lpCreateParams" , & self . lpCreateParams ) . field ( "hInstance" , & self . hInstance ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndParent" , & self . hwndParent ) . field ( "cy" , & self . cy ) . field ( "cx" , & self . cx ) . field ( "y" , & self . y ) . field ( "x" , & self . x ) . field ( "style" , & self . style ) . field ( "lpszName" , & self . lpszName ) . field ( "lpszClass" , & self . lpszClass ) . field ( "dwExStyle" , & self . dwExStyle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CREATESTRUCTW { fn eq ( & self , other : & Self ) -> bool { self . lpCreateParams == other . lpCreateParams && self . hInstance == other . hInstance && self . hMenu == other . hMenu && self . hwndParent == other . hwndParent && self . cy == other . cy && self . cx == other . cx && self . y == other . y && self . x == other . x && self . style == other . style && self . lpszName == other . lpszName && self . lpszClass == other . lpszClass && self . dwExStyle == other . dwExStyle } } impl :: std :: cmp :: Eq for CREATESTRUCTW { } unsafe impl :: windows :: Abi for CREATESTRUCTW { type Abi = Self ; type DefaultType = Self ; } pub const CSOUND_SYSTEM : u32 = 16u32 ; pub const CTLCOLOR_BTN : u32 = 3u32 ; pub const CTLCOLOR_DLG : u32 = 4u32 ; pub const CTLCOLOR_EDIT : u32 = 1u32 ; pub const CTLCOLOR_LISTBOX : u32 = 2u32 ; pub const CTLCOLOR_MAX : u32 = 7u32 ; pub const CTLCOLOR_MSGBOX : u32 = 0u32 ; pub const CTLCOLOR_SCROLLBAR : u32 = 5u32 ; pub const CTLCOLOR_STATIC : u32 = 6u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CURSORINFO { pub cbSize : u32 , pub flags : CURSORINFO_FLAGS , pub hCursor : HCURSOR , pub ptScreenPos : super::super::Foundation:: POINT } impl CURSORINFO { } impl :: std :: default :: Default for CURSORINFO { fn default ( ) -> Self { Self { cbSize : 0 , flags : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , ptScreenPos : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CURSORINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CURSORINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "flags" , & self . flags ) . field ( "hCursor" , & self . hCursor ) . field ( "ptScreenPos" , & self . ptScreenPos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CURSORINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . flags == other . flags && self . hCursor == other . hCursor && self . ptScreenPos == other . ptScreenPos } } impl :: std :: cmp :: Eq for CURSORINFO { } unsafe impl :: windows :: Abi for CURSORINFO { 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 CURSORINFO_FLAGS ( pub u32 ) ; pub const CURSOR_SHOWING : CURSORINFO_FLAGS = CURSORINFO_FLAGS ( 1u32 ) ; pub const CURSOR_SUPPRESSED : CURSORINFO_FLAGS = CURSORINFO_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for CURSORINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CURSORINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CURSORINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CURSORINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CURSORINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CURSORINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CURSORSHAPE { pub xHotSpot : i32 , pub yHotSpot : i32 , pub cx : i32 , pub cy : i32 , pub cbWidth : i32 , pub Planes : u8 , pub BitsPixel : u8 } impl CURSORSHAPE { } impl :: std :: default :: Default for CURSORSHAPE { fn default ( ) -> Self { Self { xHotSpot : 0 , yHotSpot : 0 , cx : 0 , cy : 0 , cbWidth : 0 , Planes : 0 , BitsPixel : 0 } } } impl :: std :: fmt :: Debug for CURSORSHAPE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CURSORSHAPE" ) . field ( "xHotSpot" , & self . xHotSpot ) . field ( "yHotSpot" , & self . yHotSpot ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "cbWidth" , & self . cbWidth ) . field ( "Planes" , & self . Planes ) . field ( "BitsPixel" , & self . BitsPixel ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CURSORSHAPE { fn eq ( & self , other : & Self ) -> bool { self . xHotSpot == other . xHotSpot && self . yHotSpot == other . yHotSpot && self . cx == other . cx && self . cy == other . cy && self . cbWidth == other . cbWidth && self . Planes == other . Planes && self . BitsPixel == other . BitsPixel } } impl :: std :: cmp :: Eq for CURSORSHAPE { } unsafe impl :: windows :: Abi for CURSORSHAPE { type Abi = Self ; type DefaultType = Self ; } pub const CWF_CREATE_ONLY : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CWPRETSTRUCT { pub lResult : super::super::Foundation:: LRESULT , pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub message : u32 , pub hwnd : super::super::Foundation:: HWND } impl CWPRETSTRUCT { } impl :: std :: default :: Default for CWPRETSTRUCT { fn default ( ) -> Self { Self { lResult : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , message : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CWPRETSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CWPRETSTRUCT" ) . field ( "lResult" , & self . lResult ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "message" , & self . message ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CWPRETSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . lResult == other . lResult && self . lParam == other . lParam && self . wParam == other . wParam && self . message == other . message && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for CWPRETSTRUCT { } unsafe impl :: windows :: Abi for CWPRETSTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CWPSTRUCT { pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub message : u32 , pub hwnd : super::super::Foundation:: HWND } impl CWPSTRUCT { } impl :: std :: default :: Default for CWPSTRUCT { fn default ( ) -> Self { Self { lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , message : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for CWPSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "CWPSTRUCT" ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "message" , & self . message ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CWPSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . lParam == other . lParam && self . wParam == other . wParam && self . message == other . message && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for CWPSTRUCT { } unsafe impl :: windows :: Abi for CWPSTRUCT { 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 CWP_FLAGS ( pub u32 ) ; pub const CWP_ALL : CWP_FLAGS = CWP_FLAGS ( 0u32 ) ; pub const CWP_SKIPINVISIBLE : CWP_FLAGS = CWP_FLAGS ( 1u32 ) ; pub const CWP_SKIPDISABLED : CWP_FLAGS = CWP_FLAGS ( 2u32 ) ; pub const CWP_SKIPTRANSPARENT : CWP_FLAGS = CWP_FLAGS ( 4u32 ) ; impl :: std :: convert :: From < u32 > for CWP_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CWP_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CWP_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CWP_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CWP_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CWP_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const CW_USEDEFAULT : i32 = -2147483648i32 ; pub unsafe fn CalculatePopupWindowPosition < > ( anchorpoint : * const super::super::Foundation:: POINT , windowsize : * const super::super::Foundation:: SIZE , flags : u32 , excluderect : * mut super::super::Foundation:: RECT , popupwindowposition : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CalculatePopupWindowPosition ( anchorpoint : * const super::super::Foundation:: POINT , windowsize : * const super::super::Foundation:: SIZE , flags : u32 , excluderect : * mut super::super::Foundation:: RECT , popupwindowposition : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } CalculatePopupWindowPosition ( :: std :: mem :: transmute ( anchorpoint ) , :: std :: mem :: transmute ( windowsize ) , :: std :: mem :: transmute ( flags ) , :: std :: mem :: transmute ( excluderect ) , :: std :: mem :: transmute ( popupwindowposition ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallMsgFilterA < > ( lpmsg : * mut MSG , ncode : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallMsgFilterA ( lpmsg : * mut MSG , ncode : i32 ) -> super::super::Foundation:: BOOL ; } CallMsgFilterA ( :: std :: mem :: transmute ( lpmsg ) , :: std :: mem :: transmute ( ncode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallMsgFilterW < > ( lpmsg : * mut MSG , ncode : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallMsgFilterW ( lpmsg : * mut MSG , ncode : i32 ) -> super::super::Foundation:: BOOL ; } CallMsgFilterW ( :: std :: mem :: transmute ( lpmsg ) , :: std :: mem :: transmute ( ncode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallNextHookEx < 'a , > ( hhk : impl :: windows :: IntoParam < 'a , HHOOK > , ncode : i32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallNextHookEx ( hhk : HHOOK , ncode : i32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallNextHookEx ( hhk . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncode ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallWindowProcA < 'a , > ( lpprevwndfunc : :: std :: option :: Option < WNDPROC > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallWindowProcA ( lpprevwndfunc : :: windows :: RawPtr , hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallWindowProcA ( :: std :: mem :: transmute ( lpprevwndfunc ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CallWindowProcW < 'a , > ( lpprevwndfunc : :: std :: option :: Option < WNDPROC > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CallWindowProcW ( lpprevwndfunc : :: windows :: RawPtr , hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } CallWindowProcW ( :: std :: mem :: transmute ( lpprevwndfunc ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CancelShutdown < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CancelShutdown ( ) -> super::super::Foundation:: BOOL ; } CancelShutdown ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CascadeWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , whow : CASCADE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CascadeWindows ( hwndparent : super::super::Foundation:: HWND , whow : CASCADE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND ) -> u16 ; } CascadeWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( whow ) , :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( ckids ) , :: std :: mem :: transmute ( lpkids ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , cmd : u32 , lpsznewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cmdinsert : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeMenuA ( hmenu : HMENU , cmd : u32 , lpsznewitem : super::super::Foundation:: PSTR , cmdinsert : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } ChangeMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmd ) , lpsznewitem . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmdinsert ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , cmd : u32 , lpsznewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cmdinsert : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeMenuW ( hmenu : HMENU , cmd : u32 , lpsznewitem : super::super::Foundation:: PWSTR , cmdinsert : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } ChangeMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmd ) , lpsznewitem . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cmdinsert ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeWindowMessageFilter < > ( message : u32 , dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeWindowMessageFilter ( message : u32 , dwflag : CHANGE_WINDOW_MESSAGE_FILTER_FLAGS ) -> super::super::Foundation:: BOOL ; } ChangeWindowMessageFilter ( :: std :: mem :: transmute ( message ) , :: std :: mem :: transmute ( dwflag ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChangeWindowMessageFilterEx < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , message : u32 , action : WINDOW_MESSAGE_FILTER_ACTION , pchangefilterstruct : * mut CHANGEFILTERSTRUCT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChangeWindowMessageFilterEx ( hwnd : super::super::Foundation:: HWND , message : u32 , action : WINDOW_MESSAGE_FILTER_ACTION , pchangefilterstruct : * mut CHANGEFILTERSTRUCT ) -> super::super::Foundation:: BOOL ; } ChangeWindowMessageFilterEx ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( message ) , :: std :: mem :: transmute ( action ) , :: std :: mem :: transmute ( pchangefilterstruct ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharLowerA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerBuffA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerBuffA ( lpsz : super::super::Foundation:: PSTR , cchlength : u32 ) -> u32 ; } CharLowerBuffA ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerBuffW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerBuffW ( lpsz : super::super::Foundation:: PWSTR , cchlength : u32 ) -> u32 ; } CharLowerBuffW ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharLowerW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharLowerW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharLowerW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharNextA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextExA < 'a , > ( codepage : u16 , lpcurrentchar : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwflags : u32 , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextExA ( codepage : u16 , lpcurrentchar : super::super::Foundation:: PSTR , dwflags : u32 ) -> super::super::Foundation:: PSTR ; } CharNextExA ( :: std :: mem :: transmute ( codepage ) , lpcurrentchar . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharNextW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharNextW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharNextW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevA < 'a , > ( lpszstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszcurrent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevA ( lpszstart : super::super::Foundation:: PSTR , lpszcurrent : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharPrevA ( lpszstart . into_param ( ) . abi ( ) , lpszcurrent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevExA < 'a , > ( codepage : u16 , lpstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcurrentchar : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwflags : u32 , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevExA ( codepage : u16 , lpstart : super::super::Foundation:: PSTR , lpcurrentchar : super::super::Foundation:: PSTR , dwflags : u32 ) -> super::super::Foundation:: PSTR ; } CharPrevExA ( :: std :: mem :: transmute ( codepage ) , lpstart . into_param ( ) . abi ( ) , lpcurrentchar . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharPrevW < 'a , > ( lpszstart : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszcurrent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharPrevW ( lpszstart : super::super::Foundation:: PWSTR , lpszcurrent : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharPrevW ( lpszstart . into_param ( ) . abi ( ) , lpszcurrent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemA < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemA ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } CharToOemA ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemBuffA < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemBuffA ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } CharToOemBuffA ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemBuffW < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemBuffW ( lpszsrc : super::super::Foundation:: PWSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } CharToOemBuffW ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharToOemW < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharToOemW ( psrc : super::super::Foundation:: PWSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } CharToOemW ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: PSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperA ( lpsz : super::super::Foundation:: PSTR ) -> super::super::Foundation:: PSTR ; } CharUpperA ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperBuffA < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperBuffA ( lpsz : super::super::Foundation:: PSTR , cchlength : u32 ) -> u32 ; } CharUpperBuffA ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperBuffW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , cchlength : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperBuffW ( lpsz : super::super::Foundation:: PWSTR , cchlength : u32 ) -> u32 ; } CharUpperBuffW ( lpsz . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cchlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CharUpperW < 'a , > ( lpsz : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: PWSTR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CharUpperW ( lpsz : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: PWSTR ; } CharUpperW ( lpsz . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CheckMenuItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidcheckitem : u32 , ucheck : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CheckMenuItem ( hmenu : HMENU , uidcheckitem : u32 , ucheck : u32 ) -> u32 ; } CheckMenuItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidcheckitem ) , :: std :: mem :: transmute ( ucheck ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CheckMenuRadioItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , first : u32 , last : u32 , check : u32 , flags : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CheckMenuRadioItem ( hmenu : HMENU , first : u32 , last : u32 , check : u32 , flags : u32 ) -> super::super::Foundation:: BOOL ; } CheckMenuRadioItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( first ) , :: std :: mem :: transmute ( last ) , :: std :: mem :: transmute ( check ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChildWindowFromPoint < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChildWindowFromPoint ( hwndparent : super::super::Foundation:: HWND , point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } ChildWindowFromPoint ( hwndparent . into_param ( ) . abi ( ) , point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChildWindowFromPointEx < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pt : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , flags : CWP_FLAGS , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ChildWindowFromPointEx ( hwnd : super::super::Foundation:: HWND , pt : super::super::Foundation:: POINT , flags : CWP_FLAGS ) -> super::super::Foundation:: HWND ; } ChildWindowFromPointEx ( hwnd . into_param ( ) . abi ( ) , pt . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseColorA < > ( param0 : * mut CHOOSECOLORA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseColorA ( param0 : * mut CHOOSECOLORA_abi ) -> super::super::Foundation:: BOOL ; } ChooseColorA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseColorW < > ( param0 : * mut CHOOSECOLORW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseColorW ( param0 : * mut CHOOSECOLORW_abi ) -> super::super::Foundation:: BOOL ; } ChooseColorW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseFontA < > ( param0 : * mut CHOOSEFONTA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseFontA ( param0 : * mut CHOOSEFONTA_abi ) -> super::super::Foundation:: BOOL ; } ChooseFontA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ChooseFontW < > ( param0 : * mut CHOOSEFONTW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ChooseFontW ( param0 : * mut CHOOSEFONTW_abi ) -> super::super::Foundation:: BOOL ; } ChooseFontW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ClipCursor < > ( lprect : * const super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ClipCursor ( lprect : * const super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } ClipCursor ( :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CloseWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CloseWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } CloseWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CommDlgExtendedError < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn CommDlgExtendedError ( ) -> u32 ; } CommDlgExtendedError ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyAcceleratorTableA < 'a , > ( haccelsrc : impl :: windows :: IntoParam < 'a , HACCEL > , lpacceldst : * mut ACCEL , caccelentries : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyAcceleratorTableA ( haccelsrc : HACCEL , lpacceldst : * mut ACCEL , caccelentries : i32 ) -> i32 ; } CopyAcceleratorTableA ( haccelsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpacceldst ) , :: std :: mem :: transmute ( caccelentries ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyAcceleratorTableW < 'a , > ( haccelsrc : impl :: windows :: IntoParam < 'a , HACCEL > , lpacceldst : * mut ACCEL , caccelentries : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyAcceleratorTableW ( haccelsrc : HACCEL , lpacceldst : * mut ACCEL , caccelentries : i32 ) -> i32 ; } CopyAcceleratorTableW ( haccelsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpacceldst ) , :: std :: mem :: transmute ( caccelentries ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyIcon < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyIcon ( hicon : HICON ) -> HICON ; } CopyIcon ( hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CopyImage < 'a , > ( h : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CopyImage ( h : super::super::Foundation:: HANDLE , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } CopyImage ( h . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateAcceleratorTableA < > ( paccel : * mut ACCEL , caccel : i32 , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateAcceleratorTableA ( paccel : * mut ACCEL , caccel : i32 ) -> HACCEL ; } CreateAcceleratorTableA ( :: std :: mem :: transmute ( paccel ) , :: std :: mem :: transmute ( caccel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateAcceleratorTableW < > ( paccel : * mut ACCEL , caccel : i32 , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateAcceleratorTableW ( paccel : * mut ACCEL , caccel : i32 ) -> HACCEL ; } CreateAcceleratorTableW ( :: std :: mem :: transmute ( paccel ) , :: std :: mem :: transmute ( caccel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hbitmap : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , nwidth : i32 , nheight : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateCaret ( hwnd : super::super::Foundation:: HWND , hbitmap : super::super::Graphics::Gdi:: HBITMAP , nwidth : i32 , nheight : i32 ) -> super::super::Foundation:: BOOL ; } CreateCaret ( hwnd . into_param ( ) . abi ( ) , hbitmap . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCursor < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , xhotspot : i32 , yhotspot : i32 , nwidth : i32 , nheight : i32 , pvandplane : * const :: std :: ffi :: c_void , pvxorplane : * const :: std :: ffi :: c_void , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateCursor ( hinst : super::super::Foundation:: HINSTANCE , xhotspot : i32 , yhotspot : i32 , nwidth : i32 , nheight : i32 , pvandplane : * const :: std :: ffi :: c_void , pvxorplane : * const :: std :: ffi :: c_void ) -> HCURSOR ; } CreateCursor ( hinst . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( xhotspot ) , :: std :: mem :: transmute ( yhotspot ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , :: std :: mem :: transmute ( pvandplane ) , :: std :: mem :: transmute ( pvxorplane ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogIndirectParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogIndirectParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogIndirectParamA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogIndirectParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogIndirectParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogIndirectParamW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogParamA ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateDialogParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateDialogParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PWSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateDialogParamW ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIcon < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , nwidth : i32 , nheight : i32 , cplanes : u8 , cbitspixel : u8 , lpbandbits : * const u8 , lpbxorbits : * const u8 , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIcon ( hinstance : super::super::Foundation:: HINSTANCE , nwidth : i32 , nheight : i32 , cplanes : u8 , cbitspixel : u8 , lpbandbits : * const u8 , lpbxorbits : * const u8 ) -> HICON ; } CreateIcon ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , :: std :: mem :: transmute ( cplanes ) , :: std :: mem :: transmute ( cbitspixel ) , :: std :: mem :: transmute ( lpbandbits ) , :: std :: mem :: transmute ( lpbxorbits ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconFromResource < 'a , > ( presbits : * mut u8 , dwressize : u32 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwver : u32 , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconFromResource ( presbits : * mut u8 , dwressize : u32 , ficon : super::super::Foundation:: BOOL , dwver : u32 ) -> HICON ; } CreateIconFromResource ( :: std :: mem :: transmute ( presbits ) , :: std :: mem :: transmute ( dwressize ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwver ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconFromResourceEx < 'a , > ( presbits : * mut u8 , dwressize : u32 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , dwver : u32 , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconFromResourceEx ( presbits : * mut u8 , dwressize : u32 , ficon : super::super::Foundation:: BOOL , dwver : u32 , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> HICON ; } CreateIconFromResourceEx ( :: std :: mem :: transmute ( presbits ) , :: std :: mem :: transmute ( dwressize ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwver ) , :: std :: mem :: transmute ( cxdesired ) , :: std :: mem :: transmute ( cydesired ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateIconIndirect < > ( piconinfo : * mut ICONINFO , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateIconIndirect ( piconinfo : * mut ICONINFO ) -> HICON ; } CreateIconIndirect ( :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMDIWindowA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMDIWindowA ( lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hinstance : super::super::Foundation:: HINSTANCE , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateMDIWindowA ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMDIWindowW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMDIWindowW ( lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hinstance : super::super::Foundation:: HINSTANCE , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: HWND ; } CreateMDIWindowW ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateMenu < > ( ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateMenu ( ) -> HMENU ; } CreateMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreatePopupMenu < > ( ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreatePopupMenu ( ) -> HMENU ; } CreatePopupMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateResourceIndexer < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , extensiondllpath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ppresourceindexer : * mut * mut :: std :: ffi :: c_void , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn CreateResourceIndexer ( projectroot : super::super::Foundation:: PWSTR , extensiondllpath : super::super::Foundation:: PWSTR , ppresourceindexer : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } CreateResourceIndexer ( projectroot . into_param ( ) . abi ( ) , extensiondllpath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ppresourceindexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateWindowExA < 'a , > ( dwexstyle : WINDOW_EX_STYLE , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpparam : * mut :: std :: ffi :: c_void , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateWindowExA ( dwexstyle : WINDOW_EX_STYLE , lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hmenu : HMENU , hinstance : super::super::Foundation:: HINSTANCE , lpparam : * mut :: std :: ffi :: c_void ) -> super::super::Foundation:: HWND ; } CreateWindowExA ( :: std :: mem :: transmute ( dwexstyle ) , lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateWindowExW < 'a , > ( dwexstyle : WINDOW_EX_STYLE , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpparam : * mut :: std :: ffi :: c_void , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn CreateWindowExW ( dwexstyle : WINDOW_EX_STYLE , lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR , dwstyle : WINDOW_STYLE , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , hwndparent : super::super::Foundation:: HWND , hmenu : HMENU , hinstance : super::super::Foundation:: HINSTANCE , lpparam : * mut :: std :: ffi :: c_void ) -> super::super::Foundation:: HWND ; } CreateWindowExW ( :: std :: mem :: transmute ( dwexstyle ) , lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwstyle ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , hwndparent . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const DCX_EXCLUDEUPDATE : i32 = 256i32 ; pub const DC_HASDEFID : u32 = 21323u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEBUGHOOKINFO { pub idThread : u32 , pub idThreadInstaller : u32 , pub lParam : super::super::Foundation:: LPARAM , pub wParam : super::super::Foundation:: WPARAM , pub code : i32 } impl DEBUGHOOKINFO { } impl :: std :: default :: Default for DEBUGHOOKINFO { fn default ( ) -> Self { Self { idThread : 0 , idThreadInstaller : 0 , lParam : :: std :: default :: Default :: default ( ) , wParam : :: std :: default :: Default :: default ( ) , code : 0 } } } impl :: std :: fmt :: Debug for DEBUGHOOKINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DEBUGHOOKINFO" ) . field ( "idThread" , & self . idThread ) . field ( "idThreadInstaller" , & self . idThreadInstaller ) . field ( "lParam" , & self . lParam ) . field ( "wParam" , & self . wParam ) . field ( "code" , & self . code ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEBUGHOOKINFO { fn eq ( & self , other : & Self ) -> bool { self . idThread == other . idThread && self . idThreadInstaller == other . idThreadInstaller && self . lParam == other . lParam && self . wParam == other . wParam && self . code == other . code } } impl :: std :: cmp :: Eq for DEBUGHOOKINFO { } unsafe impl :: windows :: Abi for DEBUGHOOKINFO { type Abi = Self ; type DefaultType = Self ; } pub type DESKTOPENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type DESKTOPENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub const DESKTOP_CREATEMENU : i32 = 4i32 ; pub const DESKTOP_CREATEWINDOW : i32 = 2i32 ; pub const DESKTOP_ENUMERATE : i32 = 64i32 ; pub const DESKTOP_HOOKCONTROL : i32 = 8i32 ; pub const DESKTOP_JOURNALPLAYBACK : i32 = 32i32 ; pub const DESKTOP_JOURNALRECORD : i32 = 16i32 ; pub const DESKTOP_READOBJECTS : i32 = 1i32 ; pub const DESKTOP_SWITCHDESKTOP : i32 = 256i32 ; pub const DESKTOP_WRITEOBJECTS : i32 = 128i32 ; pub const DEVICE_NOTIFY_ALL_INTERFACE_CLASSES : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DEVNAMES { pub wDriverOffset : u16 , pub wDeviceOffset : u16 , pub wOutputOffset : u16 , pub wDefault : u16 } impl DEVNAMES { } impl :: std :: default :: Default for DEVNAMES { fn default ( ) -> Self { Self { wDriverOffset : 0 , wDeviceOffset : 0 , wOutputOffset : 0 , wDefault : 0 } } } impl :: std :: fmt :: Debug for DEVNAMES { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DEVNAMES" ) . field ( "wDriverOffset" , & self . wDriverOffset ) . field ( "wDeviceOffset" , & self . wDeviceOffset ) . field ( "wOutputOffset" , & self . wOutputOffset ) . field ( "wDefault" , & self . wDefault ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DEVNAMES { fn eq ( & self , other : & Self ) -> bool { self . wDriverOffset == other . wDriverOffset && self . wDeviceOffset == other . wDeviceOffset && self . wOutputOffset == other . wOutputOffset && self . wDefault == other . wDefault } } impl :: std :: cmp :: Eq for DEVNAMES { } unsafe impl :: windows :: Abi for DEVNAMES { type Abi = Self ; type DefaultType = Self ; } pub const DF_ALLOWOTHERACCOUNTHOOK : i32 = 1i32 ; pub const DIFFERENCE : u32 = 11u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct DI_FLAGS ( pub u32 ) ; pub const DI_MASK : DI_FLAGS = DI_FLAGS ( 1u32 ) ; pub const DI_IMAGE : DI_FLAGS = DI_FLAGS ( 2u32 ) ; pub const DI_NORMAL : DI_FLAGS = DI_FLAGS ( 3u32 ) ; pub const DI_COMPAT : DI_FLAGS = DI_FLAGS ( 4u32 ) ; pub const DI_DEFAULTSIZE : DI_FLAGS = DI_FLAGS ( 8u32 ) ; pub const DI_NOMIRROR : DI_FLAGS = DI_FLAGS ( 16u32 ) ; impl :: std :: convert :: From < u32 > for DI_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for DI_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for DI_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for DI_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for DI_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for DI_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const DLGC_BUTTON : u32 = 8192u32 ; pub const DLGC_DEFPUSHBUTTON : u32 = 16u32 ; pub const DLGC_HASSETSEL : u32 = 8u32 ; pub const DLGC_RADIOBUTTON : u32 = 64u32 ; pub const DLGC_STATIC : u32 = 256u32 ; pub const DLGC_UNDEFPUSHBUTTON : u32 = 32u32 ; pub const DLGC_WANTALLKEYS : u32 = 4u32 ; pub const DLGC_WANTARROWS : u32 = 1u32 ; pub const DLGC_WANTCHARS : u32 = 128u32 ; pub const DLGC_WANTMESSAGE : u32 = 4u32 ; pub const DLGC_WANTTAB : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C , packed ( 2 ) ) ] pub struct DLGITEMTEMPLATE { pub style : u32 , pub dwExtendedStyle : u32 , pub x : i16 , pub y : i16 , pub cx : i16 , pub cy : i16 , pub id : u16 } impl DLGITEMTEMPLATE { } impl :: std :: cmp :: PartialEq for DLGITEMTEMPLATE { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DLGITEMTEMPLATE { } unsafe impl :: windows :: Abi for DLGITEMTEMPLATE { type Abi = Self ; type DefaultType = Self ; } pub type DLGPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> isize ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C , packed ( 2 ) ) ] pub struct DLGTEMPLATE { pub style : u32 , pub dwExtendedStyle : u32 , pub cdit : u16 , pub x : i16 , pub y : i16 , pub cx : i16 , pub cy : i16 } impl DLGTEMPLATE { } impl :: std :: cmp :: PartialEq for DLGTEMPLATE { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DLGTEMPLATE { } unsafe impl :: windows :: Abi for DLGTEMPLATE { type Abi = Self ; type DefaultType = Self ; } pub const DLGWINDOWEXTRA : u32 = 30u32 ; pub const DM_GETDEFID : u32 = 1024u32 ; pub const DM_POINTERHITTEST : u32 = 592u32 ; pub const DM_REPOSITION : u32 = 1026u32 ; pub const DM_SETDEFID : u32 = 1025u32 ; pub const DN_DEFAULTPRN : u32 = 1u32 ; pub const DOF_DIRECTORY : u32 = 32771u32 ; pub const DOF_DOCUMENT : u32 = 32770u32 ; pub const DOF_EXECUTABLE : u32 = 32769u32 ; pub const DOF_MULTIPLE : u32 = 32772u32 ; pub const DOF_PROGMAN : u32 = 1u32 ; pub const DOF_SHELLDATA : u32 = 2u32 ; pub const DO_DROPFILE : i32 = 1162627398i32 ; pub const DO_PRINTFILE : i32 = 1414419024i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DROPSTRUCT { pub hwndSource : super::super::Foundation:: HWND , pub hwndSink : super::super::Foundation:: HWND , pub wFmt : u32 , pub dwData : usize , pub ptDrop : super::super::Foundation:: POINT , pub dwControlData : u32 } impl DROPSTRUCT { } impl :: std :: default :: Default for DROPSTRUCT { fn default ( ) -> Self { Self { hwndSource : :: std :: default :: Default :: default ( ) , hwndSink : :: std :: default :: Default :: default ( ) , wFmt : 0 , dwData : 0 , ptDrop : :: std :: default :: Default :: default ( ) , dwControlData : 0 } } } impl :: std :: fmt :: Debug for DROPSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "DROPSTRUCT" ) . field ( "hwndSource" , & self . hwndSource ) . field ( "hwndSink" , & self . hwndSink ) . field ( "wFmt" , & self . wFmt ) . field ( "dwData" , & self . dwData ) . field ( "ptDrop" , & self . ptDrop ) . field ( "dwControlData" , & self . dwControlData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DROPSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hwndSource == other . hwndSource && self . hwndSink == other . hwndSink && self . wFmt == other . wFmt && self . dwData == other . dwData && self . ptDrop == other . ptDrop && self . dwControlData == other . dwControlData } } impl :: std :: cmp :: Eq for DROPSTRUCT { } unsafe impl :: windows :: Abi for DROPSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const DS_3DLOOK : i32 = 4i32 ; pub const DS_ABSALIGN : i32 = 1i32 ; pub const DS_CENTER : i32 = 2048i32 ; pub const DS_CENTERMOUSE : i32 = 4096i32 ; pub const DS_CONTEXTHELP : i32 = 8192i32 ; pub const DS_CONTROL : i32 = 1024i32 ; pub const DS_FIXEDSYS : i32 = 8i32 ; pub const DS_LOCALEDIT : i32 = 32i32 ; pub const DS_MODALFRAME : i32 = 128i32 ; pub const DS_NOFAILCREATE : i32 = 16i32 ; pub const DS_NOIDLEMSG : i32 = 256i32 ; pub const DS_SETFONT : i32 = 64i32 ; pub const DS_SETFOREGROUND : i32 = 512i32 ; pub const DS_SYSMODAL : i32 = 2i32 ; pub const DS_USEPIXELS : i32 = 32768i32 ; pub const DWLP_MSGRESULT : u32 = 0u32 ; pub const DWL_DLGPROC : u32 = 4u32 ; pub const DWL_MSGRESULT : u32 = 0u32 ; pub const DWL_USER : u32 = 8u32 ; pub unsafe fn DefDlgProcA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefDlgProcA ( hdlg : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefDlgProcA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefDlgProcW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefDlgProcW ( hdlg : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefDlgProcW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefFrameProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndmdiclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefFrameProcA ( hwnd : super::super::Foundation:: HWND , hwndmdiclient : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefFrameProcA ( hwnd . into_param ( ) . abi ( ) , hwndmdiclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefFrameProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndmdiclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefFrameProcW ( hwnd : super::super::Foundation:: HWND , hwndmdiclient : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefFrameProcW ( hwnd . into_param ( ) . abi ( ) , hwndmdiclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefMDIChildProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefMDIChildProcA ( hwnd : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefMDIChildProcA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefMDIChildProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefMDIChildProcW ( hwnd : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefMDIChildProcW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefWindowProcA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefWindowProcA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefWindowProcA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DefWindowProcW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DefWindowProcW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } DefWindowProcW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeferWindowPos < 'a , > ( hwinposinfo : isize , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinsertafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeferWindowPos ( hwinposinfo : isize , hwnd : super::super::Foundation:: HWND , hwndinsertafter : super::super::Foundation:: HWND , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS ) -> isize ; } DeferWindowPos ( :: std :: mem :: transmute ( hwinposinfo ) , hwnd . into_param ( ) . abi ( ) , hwndinsertafter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeleteMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeleteMenu ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } DeleteMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DeregisterShellHookWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DeregisterShellHookWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DeregisterShellHookWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyAcceleratorTable < 'a , > ( haccel : impl :: windows :: IntoParam < 'a , HACCEL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyAcceleratorTable ( haccel : HACCEL ) -> super::super::Foundation:: BOOL ; } DestroyAcceleratorTable ( haccel . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyCaret < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyCaret ( ) -> super::super::Foundation:: BOOL ; } DestroyCaret ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyCursor < 'a , > ( hcursor : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyCursor ( hcursor : HCURSOR ) -> super::super::Foundation:: BOOL ; } DestroyCursor ( hcursor . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyIcon < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyIcon ( hicon : HICON ) -> super::super::Foundation:: BOOL ; } DestroyIcon ( hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyIndexedResults < 'a , > ( resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiercount : u32 , qualifiers : * mut IndexedResourceQualifier , ) { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn DestroyIndexedResults ( resourceuri : super::super::Foundation:: PWSTR , qualifiercount : u32 , qualifiers : * mut IndexedResourceQualifier ) ; } DestroyIndexedResults ( resourceuri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( qualifiercount ) , :: std :: mem :: transmute ( qualifiers ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyMenu ( hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } DestroyMenu ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyResourceIndexer < > ( resourceindexer : * mut :: std :: ffi :: c_void , ) { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn DestroyResourceIndexer ( resourceindexer : * mut :: std :: ffi :: c_void ) ; } DestroyResourceIndexer ( :: std :: mem :: transmute ( resourceindexer ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DestroyWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DestroyWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DestroyWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxIndirectParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxIndirectParamA ( hinstance : super::super::Foundation:: HINSTANCE , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxIndirectParamA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( hdialogtemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxIndirectParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxIndirectParamW ( hinstance : super::super::Foundation:: HINSTANCE , hdialogtemplate : * mut DLGTEMPLATE , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxIndirectParamW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( hdialogtemplate ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxParamA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxParamA ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxParamA ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DialogBoxParamW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptemplatename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdialogfunc : :: std :: option :: Option < DLGPROC > , dwinitparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DialogBoxParamW ( hinstance : super::super::Foundation:: HINSTANCE , lptemplatename : super::super::Foundation:: PWSTR , hwndparent : super::super::Foundation:: HWND , lpdialogfunc : :: windows :: RawPtr , dwinitparam : super::super::Foundation:: LPARAM ) -> isize ; } DialogBoxParamW ( hinstance . into_param ( ) . abi ( ) , lptemplatename . into_param ( ) . abi ( ) , hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdialogfunc ) , dwinitparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DisableProcessWindowsGhosting < > ( ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DisableProcessWindowsGhosting ( ) ; } DisableProcessWindowsGhosting ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DispatchMessageA < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DispatchMessageA ( lpmsg : * const MSG ) -> super::super::Foundation:: LRESULT ; } DispatchMessageA ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DispatchMessageW < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DispatchMessageW ( lpmsg : * const MSG ) -> super::super::Foundation:: LRESULT ; } DispatchMessageW ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DragObject < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndfrom : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , fmt : u32 , data : usize , hcur : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DragObject ( hwndparent : super::super::Foundation:: HWND , hwndfrom : super::super::Foundation:: HWND , fmt : u32 , data : usize , hcur : HCURSOR ) -> u32 ; } DragObject ( hwndparent . into_param ( ) . abi ( ) , hwndfrom . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fmt ) , :: std :: mem :: transmute ( data ) , hcur . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawIcon < 'a , > ( hdc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , x : i32 , y : i32 , hicon : impl :: windows :: IntoParam < 'a , HICON > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawIcon ( hdc : super::super::Graphics::Gdi:: HDC , x : i32 , y : i32 , hicon : HICON ) -> super::super::Foundation:: BOOL ; } DrawIcon ( hdc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , hicon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawIconEx < 'a , > ( hdc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , xleft : i32 , ytop : i32 , hicon : impl :: windows :: IntoParam < 'a , HICON > , cxwidth : i32 , cywidth : i32 , istepifanicur : u32 , hbrflickerfreedraw : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBRUSH > , diflags : DI_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawIconEx ( hdc : super::super::Graphics::Gdi:: HDC , xleft : i32 , ytop : i32 , hicon : HICON , cxwidth : i32 , cywidth : i32 , istepifanicur : u32 , hbrflickerfreedraw : super::super::Graphics::Gdi:: HBRUSH , diflags : DI_FLAGS ) -> super::super::Foundation:: BOOL ; } DrawIconEx ( hdc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( xleft ) , :: std :: mem :: transmute ( ytop ) , hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cxwidth ) , :: std :: mem :: transmute ( cywidth ) , :: std :: mem :: transmute ( istepifanicur ) , hbrflickerfreedraw . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( diflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn DrawMenuBar < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn DrawMenuBar ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } DrawMenuBar ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const EC_LEFTMARGIN : u32 = 1u32 ; pub const EC_RIGHTMARGIN : u32 = 2u32 ; pub const EC_USEFONTINFO : u32 = 65535u32 ; pub const EDD_GET_DEVICE_INTERFACE_NAME : 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 EDIT_CONTROL_FEATURE ( pub i32 ) ; pub const EDIT_CONTROL_FEATURE_ENTERPRISE_DATA_PROTECTION_PASTE_SUPPORT : EDIT_CONTROL_FEATURE = EDIT_CONTROL_FEATURE ( 0i32 ) ; pub const EDIT_CONTROL_FEATURE_PASTE_NOTIFICATIONS : EDIT_CONTROL_FEATURE = EDIT_CONTROL_FEATURE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for EDIT_CONTROL_FEATURE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for EDIT_CONTROL_FEATURE { type Abi = Self ; type DefaultType = Self ; } pub const EDS_RAWMODE : u32 = 2u32 ; pub const EDS_ROTATEDMODE : u32 = 4u32 ; pub const EIMES_CANCELCOMPSTRINFOCUS : u32 = 2u32 ; pub const EIMES_COMPLETECOMPSTRKILLFOCUS : u32 = 4u32 ; pub const EIMES_GETCOMPSTRATONCE : u32 = 1u32 ; pub const EMSIS_COMPOSITIONSTRING : u32 = 1u32 ; pub const ENDSESSION_CLOSEAPP : u32 = 1u32 ; pub const ENDSESSION_CRITICAL : u32 = 1073741824u32 ; pub const ENDSESSION_LOGOFF : u32 = 2147483648u32 ; pub const EN_AFTER_PASTE : u32 = 2049u32 ; pub const EN_ALIGN_LTR_EC : u32 = 1792u32 ; pub const EN_ALIGN_RTL_EC : u32 = 1793u32 ; pub const EN_BEFORE_PASTE : u32 = 2048u32 ; pub const EN_CHANGE : u32 = 768u32 ; pub const EN_ERRSPACE : u32 = 1280u32 ; pub const EN_HSCROLL : u32 = 1537u32 ; pub const EN_KILLFOCUS : u32 = 512u32 ; pub const EN_MAXTEXT : u32 = 1281u32 ; pub const EN_SETFOCUS : u32 = 256u32 ; pub const EN_UPDATE : u32 = 1024u32 ; pub const EN_VSCROLL : u32 = 1538u32 ; pub const ES_AUTOHSCROLL : i32 = 128i32 ; pub const ES_AUTOVSCROLL : i32 = 64i32 ; pub const ES_CENTER : i32 = 1i32 ; pub const ES_LEFT : i32 = 0i32 ; pub const ES_LOWERCASE : i32 = 16i32 ; pub const ES_MULTILINE : i32 = 4i32 ; pub const ES_NOHIDESEL : i32 = 256i32 ; pub const ES_NUMBER : i32 = 8192i32 ; pub const ES_OEMCONVERT : i32 = 1024i32 ; pub const ES_PASSWORD : i32 = 32i32 ; pub const ES_READONLY : i32 = 2048i32 ; pub const ES_RIGHT : i32 = 2i32 ; pub const ES_UPPERCASE : i32 = 8i32 ; pub const ES_WANTRETURN : i32 = 4096i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EVENTMSG { pub message : u32 , pub paramL : u32 , pub paramH : u32 , pub time : u32 , pub hwnd : super::super::Foundation:: HWND } impl EVENTMSG { } impl :: std :: default :: Default for EVENTMSG { fn default ( ) -> Self { Self { message : 0 , paramL : 0 , paramH : 0 , time : 0 , hwnd : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for EVENTMSG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "EVENTMSG" ) . field ( "message" , & self . message ) . field ( "paramL" , & self . paramL ) . field ( "paramH" , & self . paramH ) . field ( "time" , & self . time ) . field ( "hwnd" , & self . hwnd ) . finish ( ) } } impl :: std :: cmp :: PartialEq for EVENTMSG { fn eq ( & self , other : & Self ) -> bool { self . message == other . message && self . paramL == other . paramL && self . paramH == other . paramH && self . time == other . time && self . hwnd == other . hwnd } } impl :: std :: cmp :: Eq for EVENTMSG { } unsafe impl :: windows :: Abi for EVENTMSG { type Abi = Self ; type DefaultType = Self ; } pub const EVENT_AIA_END : u32 = 45055u32 ; pub const EVENT_AIA_START : u32 = 40960u32 ; pub const EVENT_CONSOLE_CARET : u32 = 16385u32 ; pub const EVENT_CONSOLE_END : u32 = 16639u32 ; pub const EVENT_CONSOLE_END_APPLICATION : u32 = 16391u32 ; pub const EVENT_CONSOLE_LAYOUT : u32 = 16389u32 ; pub const EVENT_CONSOLE_START_APPLICATION : u32 = 16390u32 ; pub const EVENT_CONSOLE_UPDATE_REGION : u32 = 16386u32 ; pub const EVENT_CONSOLE_UPDATE_SCROLL : u32 = 16388u32 ; pub const EVENT_CONSOLE_UPDATE_SIMPLE : u32 = 16387u32 ; pub const EVENT_MAX : u32 = 2147483647u32 ; pub const EVENT_MIN : u32 = 1u32 ; pub const EVENT_OBJECT_ACCELERATORCHANGE : u32 = 32786u32 ; pub const EVENT_OBJECT_CLOAKED : u32 = 32791u32 ; pub const EVENT_OBJECT_CONTENTSCROLLED : u32 = 32789u32 ; pub const EVENT_OBJECT_CREATE : u32 = 32768u32 ; pub const EVENT_OBJECT_DEFACTIONCHANGE : u32 = 32785u32 ; pub const EVENT_OBJECT_DESCRIPTIONCHANGE : u32 = 32781u32 ; pub const EVENT_OBJECT_DESTROY : u32 = 32769u32 ; pub const EVENT_OBJECT_DRAGCANCEL : u32 = 32802u32 ; pub const EVENT_OBJECT_DRAGCOMPLETE : u32 = 32803u32 ; pub const EVENT_OBJECT_DRAGDROPPED : u32 = 32806u32 ; pub const EVENT_OBJECT_DRAGENTER : u32 = 32804u32 ; pub const EVENT_OBJECT_DRAGLEAVE : u32 = 32805u32 ; pub const EVENT_OBJECT_DRAGSTART : u32 = 32801u32 ; pub const EVENT_OBJECT_END : u32 = 33023u32 ; pub const EVENT_OBJECT_FOCUS : u32 = 32773u32 ; pub const EVENT_OBJECT_HELPCHANGE : u32 = 32784u32 ; pub const EVENT_OBJECT_HIDE : u32 = 32771u32 ; pub const EVENT_OBJECT_HOSTEDOBJECTSINVALIDATED : u32 = 32800u32 ; pub const EVENT_OBJECT_IME_CHANGE : u32 = 32809u32 ; pub const EVENT_OBJECT_IME_HIDE : u32 = 32808u32 ; pub const EVENT_OBJECT_IME_SHOW : u32 = 32807u32 ; pub const EVENT_OBJECT_INVOKED : u32 = 32787u32 ; pub const EVENT_OBJECT_LIVEREGIONCHANGED : u32 = 32793u32 ; pub const EVENT_OBJECT_LOCATIONCHANGE : u32 = 32779u32 ; pub const EVENT_OBJECT_NAMECHANGE : u32 = 32780u32 ; pub const EVENT_OBJECT_PARENTCHANGE : u32 = 32783u32 ; pub const EVENT_OBJECT_REORDER : u32 = 32772u32 ; pub const EVENT_OBJECT_SELECTION : u32 = 32774u32 ; pub const EVENT_OBJECT_SELECTIONADD : u32 = 32775u32 ; pub const EVENT_OBJECT_SELECTIONREMOVE : u32 = 32776u32 ; pub const EVENT_OBJECT_SELECTIONWITHIN : u32 = 32777u32 ; pub const EVENT_OBJECT_SHOW : u32 = 32770u32 ; pub const EVENT_OBJECT_STATECHANGE : u32 = 32778u32 ; pub const EVENT_OBJECT_TEXTEDIT_CONVERSIONTARGETCHANGED : u32 = 32816u32 ; pub const EVENT_OBJECT_TEXTSELECTIONCHANGED : u32 = 32788u32 ; pub const EVENT_OBJECT_UNCLOAKED : u32 = 32792u32 ; pub const EVENT_OBJECT_VALUECHANGE : u32 = 32782u32 ; pub const EVENT_OEM_DEFINED_END : u32 = 511u32 ; pub const EVENT_OEM_DEFINED_START : u32 = 257u32 ; pub const EVENT_SYSTEM_ALERT : u32 = 2u32 ; pub const EVENT_SYSTEM_ARRANGMENTPREVIEW : u32 = 32790u32 ; pub const EVENT_SYSTEM_CAPTUREEND : u32 = 9u32 ; pub const EVENT_SYSTEM_CAPTURESTART : u32 = 8u32 ; pub const EVENT_SYSTEM_CONTEXTHELPEND : u32 = 13u32 ; pub const EVENT_SYSTEM_CONTEXTHELPSTART : u32 = 12u32 ; pub const EVENT_SYSTEM_DESKTOPSWITCH : u32 = 32u32 ; pub const EVENT_SYSTEM_DIALOGEND : u32 = 17u32 ; pub const EVENT_SYSTEM_DIALOGSTART : u32 = 16u32 ; pub const EVENT_SYSTEM_DRAGDROPEND : u32 = 15u32 ; pub const EVENT_SYSTEM_DRAGDROPSTART : u32 = 14u32 ; pub const EVENT_SYSTEM_END : u32 = 255u32 ; pub const EVENT_SYSTEM_FOREGROUND : u32 = 3u32 ; pub const EVENT_SYSTEM_IME_KEY_NOTIFICATION : u32 = 41u32 ; pub const EVENT_SYSTEM_MENUEND : u32 = 5u32 ; pub const EVENT_SYSTEM_MENUPOPUPEND : u32 = 7u32 ; pub const EVENT_SYSTEM_MENUPOPUPSTART : u32 = 6u32 ; pub const EVENT_SYSTEM_MENUSTART : u32 = 4u32 ; pub const EVENT_SYSTEM_MINIMIZEEND : u32 = 23u32 ; pub const EVENT_SYSTEM_MINIMIZESTART : u32 = 22u32 ; pub const EVENT_SYSTEM_MOVESIZEEND : u32 = 11u32 ; pub const EVENT_SYSTEM_MOVESIZESTART : u32 = 10u32 ; pub const EVENT_SYSTEM_SCROLLINGEND : u32 = 19u32 ; pub const EVENT_SYSTEM_SCROLLINGSTART : u32 = 18u32 ; pub const EVENT_SYSTEM_SOUND : u32 = 1u32 ; pub const EVENT_SYSTEM_SWITCHEND : u32 = 21u32 ; pub const EVENT_SYSTEM_SWITCHER_APPDROPPED : u32 = 38u32 ; pub const EVENT_SYSTEM_SWITCHER_APPGRABBED : u32 = 36u32 ; pub const EVENT_SYSTEM_SWITCHER_APPOVERTARGET : u32 = 37u32 ; pub const EVENT_SYSTEM_SWITCHER_CANCELLED : u32 = 39u32 ; pub const EVENT_SYSTEM_SWITCHSTART : u32 = 20u32 ; pub const EVENT_UIA_EVENTID_END : u32 = 20223u32 ; pub const EVENT_UIA_EVENTID_START : u32 = 19968u32 ; pub const EVENT_UIA_PROPID_END : u32 = 30207u32 ; pub const EVENT_UIA_PROPID_START : u32 = 29952u32 ; pub const EWX_ARSO : u32 = 67108864u32 ; pub const EWX_BOOTOPTIONS : u32 = 16777216u32 ; pub const EWX_FORCE : u32 = 4u32 ; pub const EWX_FORCEIFHUNG : u32 = 16u32 ; pub const EWX_QUICKRESOLVE : u32 = 32u32 ; pub unsafe fn EnableMenuItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidenableitem : u32 , uenable : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnableMenuItem ( hmenu : HMENU , uidenableitem : u32 , uenable : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } EnableMenuItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidenableitem ) , :: std :: mem :: transmute ( uenable ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndDeferWindowPos < > ( hwinposinfo : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndDeferWindowPos ( hwinposinfo : isize ) -> super::super::Foundation:: BOOL ; } EndDeferWindowPos ( :: std :: mem :: transmute ( hwinposinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndDialog < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nresult : isize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndDialog ( hdlg : super::super::Foundation:: HWND , nresult : isize ) -> super::super::Foundation:: BOOL ; } EndDialog ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EndMenu < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EndMenu ( ) -> super::super::Foundation:: BOOL ; } EndMenu ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumChildWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumChildWindows ( hwndparent : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumChildWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCA > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsA ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr ) -> i32 ; } EnumPropsA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsExA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCEXA > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsExA ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } EnumPropsExA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsExW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCEXW > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsExW ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> i32 ; } EnumPropsExW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumPropsW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpenumfunc : :: std :: option :: Option < PROPENUMPROCW > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumPropsW ( hwnd : super::super::Foundation:: HWND , lpenumfunc : :: windows :: RawPtr ) -> i32 ; } EnumPropsW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpenumfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumThreadWindows < 'a , > ( dwthreadid : u32 , lpfn : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumThreadWindows ( dwthreadid : u32 , lpfn : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumThreadWindows ( :: std :: mem :: transmute ( dwthreadid ) , :: std :: mem :: transmute ( lpfn ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn EnumWindows < 'a , > ( lpenumfunc : :: std :: option :: Option < WNDENUMPROC > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn EnumWindows ( lpenumfunc : :: windows :: RawPtr , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } EnumWindows ( :: std :: mem :: transmute ( lpenumfunc ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const FALT : u32 = 16u32 ; pub const FAPPCOMMAND_KEY : u32 = 0u32 ; pub const FAPPCOMMAND_MASK : u32 = 61440u32 ; pub const FAPPCOMMAND_MOUSE : u32 = 32768u32 ; pub const FAPPCOMMAND_OEM : u32 = 4096u32 ; pub const FCONTROL : u32 = 8u32 ; pub const FE_FONTSMOOTHINGCLEARTYPE : u32 = 2u32 ; pub const FE_FONTSMOOTHINGORIENTATIONBGR : u32 = 0u32 ; pub const FE_FONTSMOOTHINGORIENTATIONRGB : u32 = 1u32 ; pub const FE_FONTSMOOTHINGSTANDARD : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct FINDREPLACEA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PSTR , pub lpstrReplaceWith : super::super::Foundation:: PSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPFRHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl FINDREPLACEA { } impl :: std :: default :: Default for FINDREPLACEA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , lpstrFindWhat : :: std :: default :: Default :: default ( ) , lpstrReplaceWith : :: std :: default :: Default :: default ( ) , wFindWhatLen : 0 , wReplaceWithLen : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for FINDREPLACEA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FINDREPLACEA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "Flags" , & self . Flags ) . field ( "lpstrFindWhat" , & self . lpstrFindWhat ) . field ( "lpstrReplaceWith" , & self . lpstrReplaceWith ) . field ( "wFindWhatLen" , & self . wFindWhatLen ) . field ( "wReplaceWithLen" , & self . wReplaceWithLen ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FINDREPLACEA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . Flags == other . Flags && self . lpstrFindWhat == other . lpstrFindWhat && self . lpstrReplaceWith == other . lpstrReplaceWith && self . wFindWhatLen == other . wFindWhatLen && self . wReplaceWithLen == other . wReplaceWithLen && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for FINDREPLACEA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct FINDREPLACEA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PSTR , pub lpstrReplaceWith : super::super::Foundation:: PSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for FINDREPLACEA { type Abi = FINDREPLACEA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct FINDREPLACEW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PWSTR , pub lpstrReplaceWith : super::super::Foundation:: PWSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPFRHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl FINDREPLACEW { } impl :: std :: default :: Default for FINDREPLACEW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , lpstrFindWhat : :: std :: default :: Default :: default ( ) , lpstrReplaceWith : :: std :: default :: Default :: default ( ) , wFindWhatLen : 0 , wReplaceWithLen : 0 , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for FINDREPLACEW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FINDREPLACEW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "Flags" , & self . Flags ) . field ( "lpstrFindWhat" , & self . lpstrFindWhat ) . field ( "lpstrReplaceWith" , & self . lpstrReplaceWith ) . field ( "wFindWhatLen" , & self . wFindWhatLen ) . field ( "wReplaceWithLen" , & self . wReplaceWithLen ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FINDREPLACEW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . Flags == other . Flags && self . lpstrFindWhat == other . lpstrFindWhat && self . lpstrReplaceWith == other . lpstrReplaceWith && self . wFindWhatLen == other . wFindWhatLen && self . wReplaceWithLen == other . wReplaceWithLen && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for FINDREPLACEW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct FINDREPLACEW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub Flags : FINDREPLACE_FLAGS , pub lpstrFindWhat : super::super::Foundation:: PWSTR , pub lpstrReplaceWith : super::super::Foundation:: PWSTR , pub wFindWhatLen : u16 , pub wReplaceWithLen : u16 , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for FINDREPLACEW { type Abi = FINDREPLACEW_abi ; 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 FINDREPLACE_FLAGS ( pub u32 ) ; pub const FR_DIALOGTERM : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 64u32 ) ; pub const FR_DOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 1u32 ) ; pub const FR_ENABLEHOOK : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 256u32 ) ; pub const FR_ENABLETEMPLATE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 512u32 ) ; pub const FR_ENABLETEMPLATEHANDLE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 8192u32 ) ; pub const FR_FINDNEXT : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 8u32 ) ; pub const FR_HIDEUPDOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 16384u32 ) ; pub const FR_HIDEMATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 32768u32 ) ; pub const FR_HIDEWHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 65536u32 ) ; pub const FR_MATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 4u32 ) ; pub const FR_NOMATCHCASE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 2048u32 ) ; pub const FR_NOUPDOWN : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 1024u32 ) ; pub const FR_NOWHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 4096u32 ) ; pub const FR_REPLACE : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 16u32 ) ; pub const FR_REPLACEALL : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 32u32 ) ; pub const FR_SHOWHELP : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 128u32 ) ; pub const FR_WHOLEWORD : FINDREPLACE_FLAGS = FINDREPLACE_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for FINDREPLACE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for FINDREPLACE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for FINDREPLACE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for FINDREPLACE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for FINDREPLACE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for FINDREPLACE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const FKF_AVAILABLE : u32 = 2u32 ; pub const FKF_CLICKON : u32 = 64u32 ; pub const FKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const FKF_FILTERKEYSON : u32 = 1u32 ; pub const FKF_HOTKEYACTIVE : u32 = 4u32 ; pub const FKF_HOTKEYSOUND : u32 = 16u32 ; pub const FKF_INDICATOR : u32 = 32u32 ; pub const FNOINVERT : u32 = 2u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct FOREGROUND_WINDOW_LOCK_CODE ( pub u32 ) ; pub const LSFW_LOCK : FOREGROUND_WINDOW_LOCK_CODE = FOREGROUND_WINDOW_LOCK_CODE ( 1u32 ) ; pub const LSFW_UNLOCK : FOREGROUND_WINDOW_LOCK_CODE = FOREGROUND_WINDOW_LOCK_CODE ( 2u32 ) ; impl :: std :: convert :: From < u32 > for FOREGROUND_WINDOW_LOCK_CODE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for FOREGROUND_WINDOW_LOCK_CODE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for FOREGROUND_WINDOW_LOCK_CODE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for FOREGROUND_WINDOW_LOCK_CODE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for FOREGROUND_WINDOW_LOCK_CODE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for FOREGROUND_WINDOW_LOCK_CODE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const FRM_FIRST : u32 = 1124u32 ; pub const FRM_LAST : u32 = 1224u32 ; pub const FRM_SETOPERATIONRESULT : u32 = 1124u32 ; pub const FRM_SETOPERATIONRESULTTEXT : u32 = 1125u32 ; pub const FR_NOWRAPAROUND : u32 = 524288u32 ; pub const FR_RAW : u32 = 131072u32 ; pub const FR_SHOWWRAPAROUND : u32 = 262144u32 ; pub const FR_WRAPAROUND : u32 = 1048576u32 ; pub const FSHIFT : u32 = 4u32 ; pub const FVIRTKEY : u32 = 1u32 ; pub unsafe fn FindTextA < > ( param0 : * mut FINDREPLACEA , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn FindTextA ( param0 : * mut FINDREPLACEA_abi ) -> super::super::Foundation:: HWND ; } FindTextA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindTextW < > ( param0 : * mut FINDREPLACEW , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn FindTextW ( param0 : * mut FINDREPLACEW_abi ) -> super::super::Foundation:: HWND ; } FindTextW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowA ( lpclassname : super::super::Foundation:: PSTR , lpwindowname : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HWND ; } FindWindowA ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowExA < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndchildafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszwindow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowExA ( hwndparent : super::super::Foundation:: HWND , hwndchildafter : super::super::Foundation:: HWND , lpszclass : super::super::Foundation:: PSTR , lpszwindow : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HWND ; } FindWindowExA ( hwndparent . into_param ( ) . abi ( ) , hwndchildafter . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , lpszwindow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowExW < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndchildafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpszwindow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowExW ( hwndparent : super::super::Foundation:: HWND , hwndchildafter : super::super::Foundation:: HWND , lpszclass : super::super::Foundation:: PWSTR , lpszwindow : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HWND ; } FindWindowExW ( hwndparent . into_param ( ) . abi ( ) , hwndchildafter . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , lpszwindow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn FindWindowW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwindowname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn FindWindowW ( lpclassname : super::super::Foundation:: PWSTR , lpwindowname : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HWND ; } FindWindowW ( lpclassname . into_param ( ) . abi ( ) , lpwindowname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const GCF_INCLUDE_ANCESTORS : 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 GDI_IMAGE_TYPE ( pub u32 ) ; pub const IMAGE_BITMAP : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 0u32 ) ; pub const IMAGE_CURSOR : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 2u32 ) ; pub const IMAGE_ICON : GDI_IMAGE_TYPE = GDI_IMAGE_TYPE ( 1u32 ) ; impl :: std :: convert :: From < u32 > for GDI_IMAGE_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GDI_IMAGE_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GDI_IMAGE_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GDI_IMAGE_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GDI_IMAGE_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GDI_IMAGE_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GESTURECONFIGMAXCOUNT : u32 = 256u32 ; pub const GESTUREVISUALIZATION_DOUBLETAP : u32 = 2u32 ; pub const GESTUREVISUALIZATION_OFF : u32 = 0u32 ; pub const GESTUREVISUALIZATION_ON : u32 = 31u32 ; pub const GESTUREVISUALIZATION_PRESSANDHOLD : u32 = 8u32 ; pub const GESTUREVISUALIZATION_PRESSANDTAP : u32 = 4u32 ; pub const GESTUREVISUALIZATION_RIGHTTAP : u32 = 16u32 ; pub const GESTUREVISUALIZATION_TAP : 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 GET_ANCESTOR_FLAGS ( pub u32 ) ; pub const GA_PARENT : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 1u32 ) ; pub const GA_ROOT : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 2u32 ) ; pub const GA_ROOTOWNER : GET_ANCESTOR_FLAGS = GET_ANCESTOR_FLAGS ( 3u32 ) ; impl :: std :: convert :: From < u32 > for GET_ANCESTOR_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_ANCESTOR_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_ANCESTOR_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_ANCESTOR_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_ANCESTOR_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_ANCESTOR_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct GET_CLASS_LONG_INDEX ( pub i32 ) ; pub const GCW_ATOM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -32i32 ) ; pub const GCL_CBCLSEXTRA : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -20i32 ) ; pub const GCL_CBWNDEXTRA : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -18i32 ) ; pub const GCL_HBRBACKGROUND : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -10i32 ) ; pub const GCL_HCURSOR : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -12i32 ) ; pub const GCL_HICON : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -14i32 ) ; pub const GCL_HICONSM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -34i32 ) ; pub const GCL_HMODULE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -16i32 ) ; pub const GCL_MENUNAME : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -8i32 ) ; pub const GCL_STYLE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -26i32 ) ; pub const GCL_WNDPROC : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -24i32 ) ; pub const GCLP_HBRBACKGROUND : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -10i32 ) ; pub const GCLP_HCURSOR : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -12i32 ) ; pub const GCLP_HICON : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -14i32 ) ; pub const GCLP_HICONSM : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -34i32 ) ; pub const GCLP_HMODULE : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -16i32 ) ; pub const GCLP_MENUNAME : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -8i32 ) ; pub const GCLP_WNDPROC : GET_CLASS_LONG_INDEX = GET_CLASS_LONG_INDEX ( -24i32 ) ; impl :: std :: convert :: From < i32 > for GET_CLASS_LONG_INDEX { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_CLASS_LONG_INDEX { 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 GET_MENU_DEFAULT_ITEM_FLAGS ( pub u32 ) ; pub const GMDI_GOINTOPOPUPS : GET_MENU_DEFAULT_ITEM_FLAGS = GET_MENU_DEFAULT_ITEM_FLAGS ( 2u32 ) ; pub const GMDI_USEDISABLED : GET_MENU_DEFAULT_ITEM_FLAGS = GET_MENU_DEFAULT_ITEM_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for GET_MENU_DEFAULT_ITEM_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_MENU_DEFAULT_ITEM_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_MENU_DEFAULT_ITEM_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_MENU_DEFAULT_ITEM_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_MENU_DEFAULT_ITEM_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_MENU_DEFAULT_ITEM_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct GET_WINDOW_CMD ( pub u32 ) ; pub const GW_CHILD : GET_WINDOW_CMD = GET_WINDOW_CMD ( 5u32 ) ; pub const GW_ENABLEDPOPUP : GET_WINDOW_CMD = GET_WINDOW_CMD ( 6u32 ) ; pub const GW_HWNDFIRST : GET_WINDOW_CMD = GET_WINDOW_CMD ( 0u32 ) ; pub const GW_HWNDLAST : GET_WINDOW_CMD = GET_WINDOW_CMD ( 1u32 ) ; pub const GW_HWNDNEXT : GET_WINDOW_CMD = GET_WINDOW_CMD ( 2u32 ) ; pub const GW_HWNDPREV : GET_WINDOW_CMD = GET_WINDOW_CMD ( 3u32 ) ; pub const GW_OWNER : GET_WINDOW_CMD = GET_WINDOW_CMD ( 4u32 ) ; impl :: std :: convert :: From < u32 > for GET_WINDOW_CMD { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GET_WINDOW_CMD { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GET_WINDOW_CMD { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GET_WINDOW_CMD { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GET_WINDOW_CMD { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GET_WINDOW_CMD { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GF_BEGIN : u32 = 1u32 ; pub const GF_END : u32 = 4u32 ; pub const GF_INERTIA : u32 = 2u32 ; pub const GIDC_ARRIVAL : u32 = 1u32 ; pub const GIDC_REMOVAL : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct GUITHREADINFO { pub cbSize : u32 , pub flags : GUITHREADINFO_FLAGS , pub hwndActive : super::super::Foundation:: HWND , pub hwndFocus : super::super::Foundation:: HWND , pub hwndCapture : super::super::Foundation:: HWND , pub hwndMenuOwner : super::super::Foundation:: HWND , pub hwndMoveSize : super::super::Foundation:: HWND , pub hwndCaret : super::super::Foundation:: HWND , pub rcCaret : super::super::Foundation:: RECT } impl GUITHREADINFO { } impl :: std :: default :: Default for GUITHREADINFO { fn default ( ) -> Self { Self { cbSize : 0 , flags : :: std :: default :: Default :: default ( ) , hwndActive : :: std :: default :: Default :: default ( ) , hwndFocus : :: std :: default :: Default :: default ( ) , hwndCapture : :: std :: default :: Default :: default ( ) , hwndMenuOwner : :: std :: default :: Default :: default ( ) , hwndMoveSize : :: std :: default :: Default :: default ( ) , hwndCaret : :: std :: default :: Default :: default ( ) , rcCaret : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for GUITHREADINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "GUITHREADINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "flags" , & self . flags ) . field ( "hwndActive" , & self . hwndActive ) . field ( "hwndFocus" , & self . hwndFocus ) . field ( "hwndCapture" , & self . hwndCapture ) . field ( "hwndMenuOwner" , & self . hwndMenuOwner ) . field ( "hwndMoveSize" , & self . hwndMoveSize ) . field ( "hwndCaret" , & self . hwndCaret ) . field ( "rcCaret" , & self . rcCaret ) . finish ( ) } } impl :: std :: cmp :: PartialEq for GUITHREADINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . flags == other . flags && self . hwndActive == other . hwndActive && self . hwndFocus == other . hwndFocus && self . hwndCapture == other . hwndCapture && self . hwndMenuOwner == other . hwndMenuOwner && self . hwndMoveSize == other . hwndMoveSize && self . hwndCaret == other . hwndCaret && self . rcCaret == other . rcCaret } } impl :: std :: cmp :: Eq for GUITHREADINFO { } unsafe impl :: windows :: Abi for GUITHREADINFO { 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 GUITHREADINFO_FLAGS ( pub u32 ) ; pub const GUI_CARETBLINKING : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 1u32 ) ; pub const GUI_INMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 4u32 ) ; pub const GUI_INMOVESIZE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 2u32 ) ; pub const GUI_POPUPMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 16u32 ) ; pub const GUI_SYSTEMMENUMODE : GUITHREADINFO_FLAGS = GUITHREADINFO_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for GUITHREADINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for GUITHREADINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for GUITHREADINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for GUITHREADINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for GUITHREADINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for GUITHREADINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const GUI_16BITTASK : u32 = 0u32 ; pub const GWFS_INCLUDE_ANCESTORS : u32 = 1u32 ; pub const GW_MAX : u32 = 5u32 ; pub unsafe fn GetAltTabInfoA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PSTR , cchitemtext : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAltTabInfoA ( hwnd : super::super::Foundation:: HWND , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PSTR , cchitemtext : u32 ) -> super::super::Foundation:: BOOL ; } GetAltTabInfoA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( iitem ) , :: std :: mem :: transmute ( pati ) , :: std :: mem :: transmute ( pszitemtext ) , :: std :: mem :: transmute ( cchitemtext ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetAltTabInfoW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PWSTR , cchitemtext : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAltTabInfoW ( hwnd : super::super::Foundation:: HWND , iitem : i32 , pati : * mut ALTTABINFO , pszitemtext : super::super::Foundation:: PWSTR , cchitemtext : u32 ) -> super::super::Foundation:: BOOL ; } GetAltTabInfoW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( iitem ) , :: std :: mem :: transmute ( pati ) , :: std :: mem :: transmute ( pszitemtext ) , :: std :: mem :: transmute ( cchitemtext ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetAncestor < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , gaflags : GET_ANCESTOR_FLAGS , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetAncestor ( hwnd : super::super::Foundation:: HWND , gaflags : GET_ANCESTOR_FLAGS ) -> super::super::Foundation:: HWND ; } GetAncestor ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( gaflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCaretBlinkTime < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCaretBlinkTime ( ) -> u32 ; } GetCaretBlinkTime ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCaretPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCaretPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetCaretPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwndclass : * mut WNDCLASSA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoA ( hinstance : super::super::Foundation:: HINSTANCE , lpclassname : super::super::Foundation:: PSTR , lpwndclass : * mut WNDCLASSA_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoA ( hinstance . into_param ( ) . abi ( ) , lpclassname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoExA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpwcx : * mut WNDCLASSEXA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoExA ( hinstance : super::super::Foundation:: HINSTANCE , lpszclass : super::super::Foundation:: PSTR , lpwcx : * mut WNDCLASSEXA_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoExA ( hinstance . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwcx ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoExW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpszclass : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwcx : * mut WNDCLASSEXW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoExW ( hinstance : super::super::Foundation:: HINSTANCE , lpszclass : super::super::Foundation:: PWSTR , lpwcx : * mut WNDCLASSEXW_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoExW ( hinstance . into_param ( ) . abi ( ) , lpszclass . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwcx ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassInfoW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpwndclass : * mut WNDCLASSW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassInfoW ( hinstance : super::super::Foundation:: HINSTANCE , lpclassname : super::super::Foundation:: PWSTR , lpwndclass : * mut WNDCLASSW_abi ) -> super::super::Foundation:: BOOL ; } GetClassInfoW ( hinstance . into_param ( ) . abi ( ) , lpclassname . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> u32 ; } GetClassLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> usize ; } GetClassLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> usize ; } GetClassLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassLongW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX ) -> u32 ; } GetClassLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassNameA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpclassname : super::super::Foundation:: PSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassNameA ( hwnd : super::super::Foundation:: HWND , lpclassname : super::super::Foundation:: PSTR , nmaxcount : i32 ) -> i32 ; } GetClassNameA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpclassname ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassNameW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpclassname : super::super::Foundation:: PWSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassNameW ( hwnd : super::super::Foundation:: HWND , lpclassname : super::super::Foundation:: PWSTR , nmaxcount : i32 ) -> i32 ; } GetClassNameW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpclassname ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClassWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClassWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 ) -> u16 ; } GetClassWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClientRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClientRect ( hwnd : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetClientRect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetClipCursor < > ( lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetClipCursor ( lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetClipCursor ( :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursor < > ( ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursor ( ) -> HCURSOR ; } GetCursor ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursorInfo < > ( pci : * mut CURSORINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursorInfo ( pci : * mut CURSORINFO ) -> super::super::Foundation:: BOOL ; } GetCursorInfo ( :: std :: mem :: transmute ( pci ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetCursorPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetCursorPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetCursorPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDesktopWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDesktopWindow ( ) -> super::super::Foundation:: HWND ; } GetDesktopWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDialogBaseUnits < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDialogBaseUnits ( ) -> i32 ; } GetDialogBaseUnits ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgCtrlID < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgCtrlID ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetDlgCtrlID ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItem ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 ) -> super::super::Foundation:: HWND ; } GetDlgItem ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemInt < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lptranslated : * mut super::super::Foundation:: BOOL , bsigned : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemInt ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lptranslated : * mut super::super::Foundation:: BOOL , bsigned : super::super::Foundation:: BOOL ) -> u32 ; } GetDlgItemInt ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lptranslated ) , bsigned . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemTextA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemTextA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 ) -> u32 ; } GetDlgItemTextA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDlgItemTextW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDlgItemTextW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 ) -> u32 ; } GetDlgItemTextW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetDpiAwarenessContextForProcess < 'a , > ( hprocess : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::System::SystemServices:: DPI_AWARENESS_CONTEXT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetDpiAwarenessContextForProcess ( hprocess : super::super::Foundation:: HANDLE ) -> super::super::System::SystemServices:: DPI_AWARENESS_CONTEXT ; } GetDpiAwarenessContextForProcess ( hprocess . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetFileTitleA < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , buf : super::super::Foundation:: PSTR , cchsize : u16 , ) -> i16 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetFileTitleA ( param0 : super::super::Foundation:: PSTR , buf : super::super::Foundation:: PSTR , cchsize : u16 ) -> i16 ; } GetFileTitleA ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( buf ) , :: std :: mem :: transmute ( cchsize ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetFileTitleW < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , buf : super::super::Foundation:: PWSTR , cchsize : u16 , ) -> i16 { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetFileTitleW ( param0 : super::super::Foundation:: PWSTR , buf : super::super::Foundation:: PWSTR , cchsize : u16 ) -> i16 ; } GetFileTitleW ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( buf ) , :: std :: mem :: transmute ( cchsize ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetForegroundWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetForegroundWindow ( ) -> super::super::Foundation:: HWND ; } GetForegroundWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetGUIThreadInfo < > ( idthread : u32 , pgui : * mut GUITHREADINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetGUIThreadInfo ( idthread : u32 , pgui : * mut GUITHREADINFO ) -> super::super::Foundation:: BOOL ; } GetGUIThreadInfo ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( pgui ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfo < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfo ( hicon : HICON , piconinfo : * mut ICONINFO ) -> super::super::Foundation:: BOOL ; } GetIconInfo ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfoExA < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFOEXA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfoExA ( hicon : HICON , piconinfo : * mut ICONINFOEXA ) -> super::super::Foundation:: BOOL ; } GetIconInfoExA ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetIconInfoExW < 'a , > ( hicon : impl :: windows :: IntoParam < 'a , HICON > , piconinfo : * mut ICONINFOEXW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetIconInfoExW ( hicon : HICON , piconinfo : * mut ICONINFOEXW ) -> super::super::Foundation:: BOOL ; } GetIconInfoExW ( hicon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( piconinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetInputState < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetInputState ( ) -> super::super::Foundation:: BOOL ; } GetInputState ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetLastActivePopup < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetLastActivePopup ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetLastActivePopup ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetLayeredWindowAttributes < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pcrkey : * mut u32 , pbalpha : * mut u8 , pdwflags : * mut LAYERED_WINDOW_ATTRIBUTES_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetLayeredWindowAttributes ( hwnd : super::super::Foundation:: HWND , pcrkey : * mut u32 , pbalpha : * mut u8 , pdwflags : * mut LAYERED_WINDOW_ATTRIBUTES_FLAGS ) -> super::super::Foundation:: BOOL ; } GetLayeredWindowAttributes ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pcrkey ) , :: std :: mem :: transmute ( pbalpha ) , :: std :: mem :: transmute ( pdwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenu ( hwnd : super::super::Foundation:: HWND ) -> HMENU ; } GetMenu ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuBarInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , idobject : super::Controls:: SCROLLBAR_OBJID , iditem : i32 , pmbi : * mut MENUBARINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuBarInfo ( hwnd : super::super::Foundation:: HWND , idobject : super::Controls:: SCROLLBAR_OBJID , iditem : i32 , pmbi : * mut MENUBARINFO ) -> super::super::Foundation:: BOOL ; } GetMenuBarInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( idobject ) , :: std :: mem :: transmute ( iditem ) , :: std :: mem :: transmute ( pmbi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuCheckMarkDimensions < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuCheckMarkDimensions ( ) -> i32 ; } GetMenuCheckMarkDimensions ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuDefaultItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , fbypos : u32 , gmdiflags : GET_MENU_DEFAULT_ITEM_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuDefaultItem ( hmenu : HMENU , fbypos : u32 , gmdiflags : GET_MENU_DEFAULT_ITEM_FLAGS ) -> u32 ; } GetMenuDefaultItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fbypos ) , :: std :: mem :: transmute ( gmdiflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuInfo < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , HMENU > , param1 : * mut MENUINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuInfo ( param0 : HMENU , param1 : * mut MENUINFO ) -> super::super::Foundation:: BOOL ; } GetMenuInfo ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( param1 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemCount < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemCount ( hmenu : HMENU ) -> i32 ; } GetMenuItemCount ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemID < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , npos : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemID ( hmenu : HMENU , npos : i32 ) -> u32 ; } GetMenuItemID ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( npos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemInfoA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemInfoA ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } GetMenuItemInfoA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemInfoW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemInfoW ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } GetMenuItemInfoW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuItemRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uitem : u32 , lprcitem : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuItemRect ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , uitem : u32 , lprcitem : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetMenuItemRect ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uitem ) , :: std :: mem :: transmute ( lprcitem ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuState < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uid : u32 , uflags : MENU_ITEM_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuState ( hmenu : HMENU , uid : u32 , uflags : MENU_ITEM_FLAGS ) -> u32 ; } GetMenuState ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuStringA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uiditem : u32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuStringA ( hmenu : HMENU , uiditem : u32 , lpstring : super::super::Foundation:: PSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS ) -> i32 ; } GetMenuStringA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uiditem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMenuStringW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uiditem : u32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMenuStringW ( hmenu : HMENU , uiditem : u32 , lpstring : super::super::Foundation:: PWSTR , cchmax : i32 , flags : MENU_ITEM_FLAGS ) -> i32 ; } GetMenuStringW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uiditem ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( cchmax ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageA < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageA ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 ) -> super::super::Foundation:: BOOL ; } GetMessageA ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageExtraInfo < > ( ) -> super::super::Foundation:: LPARAM { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageExtraInfo ( ) -> super::super::Foundation:: LPARAM ; } GetMessageExtraInfo ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessagePos < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessagePos ( ) -> u32 ; } GetMessagePos ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageTime < > ( ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageTime ( ) -> i32 ; } GetMessageTime ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetMessageW < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetMessageW ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 ) -> super::super::Foundation:: BOOL ; } GetMessageW ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetNextDlgGroupItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hctl : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , bprevious : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetNextDlgGroupItem ( hdlg : super::super::Foundation:: HWND , hctl : super::super::Foundation:: HWND , bprevious : super::super::Foundation:: BOOL ) -> super::super::Foundation:: HWND ; } GetNextDlgGroupItem ( hdlg . into_param ( ) . abi ( ) , hctl . into_param ( ) . abi ( ) , bprevious . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetNextDlgTabItem < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hctl : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , bprevious : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetNextDlgTabItem ( hdlg : super::super::Foundation:: HWND , hctl : super::super::Foundation:: HWND , bprevious : super::super::Foundation:: BOOL ) -> super::super::Foundation:: HWND ; } GetNextDlgTabItem ( hdlg . into_param ( ) . abi ( ) , hctl . into_param ( ) . abi ( ) , bprevious . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetOpenFileNameA < > ( param0 : * mut OPENFILENAMEA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetOpenFileNameA ( param0 : * mut OPENFILENAMEA_abi ) -> super::super::Foundation:: BOOL ; } GetOpenFileNameA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetOpenFileNameW < > ( param0 : * mut OPENFILENAMEW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetOpenFileNameW ( param0 : * mut OPENFILENAMEW_abi ) -> super::super::Foundation:: BOOL ; } GetOpenFileNameW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetParent < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetParent ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetParent ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPhysicalCursorPos < > ( lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPhysicalCursorPos ( lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } GetPhysicalCursorPos ( :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetProcessDefaultLayout < > ( pdwdefaultlayout : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetProcessDefaultLayout ( pdwdefaultlayout : * mut u32 ) -> super::super::Foundation:: BOOL ; } GetProcessDefaultLayout ( :: std :: mem :: transmute ( pdwdefaultlayout ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HANDLE ; } GetPropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetPropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetPropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } GetPropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetQueueStatus < > ( flags : QUEUE_STATUS_FLAGS , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetQueueStatus ( flags : QUEUE_STATUS_FLAGS ) -> u32 ; } GetQueueStatus ( :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSaveFileNameA < > ( param0 : * mut OPENFILENAMEA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetSaveFileNameA ( param0 : * mut OPENFILENAMEA_abi ) -> super::super::Foundation:: BOOL ; } GetSaveFileNameA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSaveFileNameW < > ( param0 : * mut OPENFILENAMEW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn GetSaveFileNameW ( param0 : * mut OPENFILENAMEW_abi ) -> super::super::Foundation:: BOOL ; } GetSaveFileNameW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetShellWindow < > ( ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetShellWindow ( ) -> super::super::Foundation:: HWND ; } GetShellWindow ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSubMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , npos : i32 , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSubMenu ( hmenu : HMENU , npos : i32 ) -> HMENU ; } GetSubMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( npos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSysColor < > ( nindex : SYS_COLOR_INDEX , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSysColor ( nindex : SYS_COLOR_INDEX ) -> u32 ; } GetSysColor ( :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSystemMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , brevert : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSystemMenu ( hwnd : super::super::Foundation:: HWND , brevert : super::super::Foundation:: BOOL ) -> HMENU ; } GetSystemMenu ( hwnd . into_param ( ) . abi ( ) , brevert . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetSystemMetrics < > ( nindex : SYSTEM_METRICS_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetSystemMetrics ( nindex : SYSTEM_METRICS_INDEX ) -> i32 ; } GetSystemMetrics ( :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetTitleBarInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pti : * mut TITLEBARINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetTitleBarInfo ( hwnd : super::super::Foundation:: HWND , pti : * mut TITLEBARINFO ) -> super::super::Foundation:: BOOL ; } GetTitleBarInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pti ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetTopWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetTopWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } GetTopWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ucmd : GET_WINDOW_CMD , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindow ( hwnd : super::super::Foundation:: HWND , ucmd : GET_WINDOW_CMD ) -> super::super::Foundation:: HWND ; } GetWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ucmd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowDisplayAffinity < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pdwaffinity : * mut u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowDisplayAffinity ( hwnd : super::super::Foundation:: HWND , pdwaffinity : * mut u32 ) -> super::super::Foundation:: BOOL ; } GetWindowDisplayAffinity ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdwaffinity ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowInfo < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pwi : * mut WINDOWINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowInfo ( hwnd : super::super::Foundation:: HWND , pwi : * mut WINDOWINFO ) -> super::super::Foundation:: BOOL ; } GetWindowInfo ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pwi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> i32 ; } GetWindowLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> isize ; } GetWindowLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> isize ; } GetWindowLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowLongW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX ) -> i32 ; } GetWindowLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowModuleFileNameA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pszfilename : super::super::Foundation:: PSTR , cchfilenamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowModuleFileNameA ( hwnd : super::super::Foundation:: HWND , pszfilename : super::super::Foundation:: PSTR , cchfilenamemax : u32 ) -> u32 ; } GetWindowModuleFileNameA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pszfilename ) , :: std :: mem :: transmute ( cchfilenamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowModuleFileNameW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pszfilename : super::super::Foundation:: PWSTR , cchfilenamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowModuleFileNameW ( hwnd : super::super::Foundation:: HWND , pszfilename : super::super::Foundation:: PWSTR , cchfilenamemax : u32 ) -> u32 ; } GetWindowModuleFileNameW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pszfilename ) , :: std :: mem :: transmute ( cchfilenamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowPlacement < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpwndpl : * mut WINDOWPLACEMENT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowPlacement ( hwnd : super::super::Foundation:: HWND , lpwndpl : * mut WINDOWPLACEMENT ) -> super::super::Foundation:: BOOL ; } GetWindowPlacement ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndpl ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowRect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowRect ( hwnd : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } GetWindowRect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : super::super::Foundation:: PSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR , nmaxcount : i32 ) -> i32 ; } GetWindowTextA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextLengthA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextLengthA ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetWindowTextLengthA ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextLengthW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextLengthW ( hwnd : super::super::Foundation:: HWND ) -> i32 ; } GetWindowTextLengthW ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowTextW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : super::super::Foundation:: PWSTR , nmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowTextW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR , nmaxcount : i32 ) -> i32 ; } GetWindowTextW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpstring ) , :: std :: mem :: transmute ( nmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowThreadProcessId < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpdwprocessid : * mut u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowThreadProcessId ( hwnd : super::super::Foundation:: HWND , lpdwprocessid : * mut u32 ) -> u32 ; } GetWindowThreadProcessId ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpdwprocessid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetWindowWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn GetWindowWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 ) -> u16 ; } GetWindowWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HACCEL ( pub isize ) ; impl HACCEL { } impl :: std :: default :: Default for HACCEL { fn default ( ) -> Self { Self ( 0 ) } } impl HACCEL { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HACCEL { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HACCEL" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HACCEL { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HACCEL { } unsafe impl :: windows :: Abi for HACCEL { 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 HANDEDNESS ( pub i32 ) ; pub const HANDEDNESS_LEFT : HANDEDNESS = HANDEDNESS ( 0i32 ) ; pub const HANDEDNESS_RIGHT : HANDEDNESS = HANDEDNESS ( 1i32 ) ; impl :: std :: convert :: From < i32 > for HANDEDNESS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for HANDEDNESS { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct HARDWAREHOOKSTRUCT { pub hwnd : super::super::Foundation:: HWND , pub message : u32 , pub wParam : super::super::Foundation:: WPARAM , pub lParam : super::super::Foundation:: LPARAM } impl HARDWAREHOOKSTRUCT { } impl :: std :: default :: Default for HARDWAREHOOKSTRUCT { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , message : 0 , wParam : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for HARDWAREHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HARDWAREHOOKSTRUCT" ) . field ( "hwnd" , & self . hwnd ) . field ( "message" , & self . message ) . field ( "wParam" , & self . wParam ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HARDWAREHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . message == other . message && self . wParam == other . wParam && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for HARDWAREHOOKSTRUCT { } unsafe impl :: windows :: Abi for HARDWAREHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const HBMMENU_CALLBACK : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( -1i32 as _ ) ; pub const HBMMENU_MBAR_CLOSE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 5i32 as _ ) ; pub const HBMMENU_MBAR_CLOSE_D : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 6i32 as _ ) ; pub const HBMMENU_MBAR_MINIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 3i32 as _ ) ; pub const HBMMENU_MBAR_MINIMIZE_D : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 7i32 as _ ) ; pub const HBMMENU_MBAR_RESTORE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 2i32 as _ ) ; pub const HBMMENU_POPUP_CLOSE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 8i32 as _ ) ; pub const HBMMENU_POPUP_MAXIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 10i32 as _ ) ; pub const HBMMENU_POPUP_MINIMIZE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 11i32 as _ ) ; pub const HBMMENU_POPUP_RESTORE : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 9i32 as _ ) ; pub const HBMMENU_SYSTEM : super::super::Graphics::Gdi:: HBITMAP = super::super::Graphics::Gdi:: HBITMAP ( 1i32 as _ ) ; pub const HCBT_ACTIVATE : u32 = 5u32 ; pub const HCBT_CLICKSKIPPED : u32 = 6u32 ; pub const HCBT_CREATEWND : u32 = 3u32 ; pub const HCBT_DESTROYWND : u32 = 4u32 ; pub const HCBT_KEYSKIPPED : u32 = 7u32 ; pub const HCBT_MINMAX : u32 = 1u32 ; pub const HCBT_MOVESIZE : u32 = 0u32 ; pub const HCBT_QS : u32 = 2u32 ; pub const HCBT_SETFOCUS : u32 = 9u32 ; pub const HCBT_SYSCOMMAND : u32 = 8u32 ; pub const HCF_DEFAULTDESKTOP : u32 = 512u32 ; pub const HCF_LOGONDESKTOP : u32 = 256u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HCURSOR ( pub isize ) ; impl HCURSOR { } impl :: std :: default :: Default for HCURSOR { fn default ( ) -> Self { Self ( 0 ) } } impl HCURSOR { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HCURSOR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HCURSOR" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HCURSOR { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HCURSOR { } unsafe impl :: windows :: Abi for HCURSOR { type Abi = Self ; type DefaultType = Self ; } impl < 'a > :: windows :: IntoParam < 'a , HICON > for HCURSOR { fn into_param ( self ) -> :: windows :: Param < 'a , HICON > { :: windows :: Param :: Owned ( HICON ( self . 0 ) ) } } pub const HC_ACTION : u32 = 0u32 ; pub const HC_GETNEXT : u32 = 1u32 ; pub const HC_NOREMOVE : u32 = 3u32 ; pub const HC_SKIP : u32 = 2u32 ; pub const HC_SYSMODALOFF : u32 = 5u32 ; pub const HC_SYSMODALON : u32 = 4u32 ; pub const HELPINFO_MENUITEM : u32 = 2u32 ; pub const HELPINFO_WINDOW : u32 = 1u32 ; pub const HELP_COMMAND : i32 = 258i32 ; pub const HELP_CONTENTS : i32 = 3i32 ; pub const HELP_CONTEXT : i32 = 1i32 ; pub const HELP_CONTEXTMENU : u32 = 10u32 ; pub const HELP_CONTEXTPOPUP : i32 = 8i32 ; pub const HELP_FINDER : u32 = 11u32 ; pub const HELP_FORCEFILE : i32 = 9i32 ; pub const HELP_HELPONHELP : i32 = 4i32 ; pub const HELP_INDEX : i32 = 3i32 ; pub const HELP_KEY : i32 = 257i32 ; pub const HELP_MULTIKEY : i32 = 513i32 ; pub const HELP_PARTIALKEY : i32 = 261i32 ; pub const HELP_QUIT : i32 = 2i32 ; pub const HELP_SETCONTENTS : i32 = 5i32 ; pub const HELP_SETINDEX : i32 = 5i32 ; pub const HELP_SETPOPUP_POS : u32 = 13u32 ; pub const HELP_SETWINPOS : i32 = 515i32 ; pub const HELP_TCARD : u32 = 32768u32 ; pub const HELP_TCARD_DATA : u32 = 16u32 ; pub const HELP_TCARD_OTHER_CALLER : u32 = 17u32 ; pub const HELP_WM_HELP : u32 = 12u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HHOOK ( pub isize ) ; impl HHOOK { } impl :: std :: default :: Default for HHOOK { fn default ( ) -> Self { Self ( 0 ) } } impl HHOOK { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HHOOK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HHOOK" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HHOOK { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HHOOK { } unsafe impl :: windows :: Abi for HHOOK { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HICON ( pub isize ) ; impl HICON { } impl :: std :: default :: Default for HICON { fn default ( ) -> Self { Self ( 0 ) } } impl HICON { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HICON { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HICON" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HICON { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HICON { } unsafe impl :: windows :: Abi for HICON { type Abi = Self ; type DefaultType = Self ; } pub const HIDE_WINDOW : u32 = 0u32 ; pub const HKL_NEXT : u32 = 1u32 ; pub const HKL_PREV : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( transparent ) ] pub struct HMENU ( pub isize ) ; impl HMENU { } impl :: std :: default :: Default for HMENU { fn default ( ) -> Self { Self ( 0 ) } } impl HMENU { pub const NULL : Self = Self ( 0 ) ; pub fn is_null ( & self ) -> bool { self . 0 == 0 } } impl :: std :: fmt :: Debug for HMENU { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "HMENU" ) . field ( "Value" , & self .0 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for HMENU { fn eq ( & self , other : & Self ) -> bool { self .0 == other .0 } } impl :: std :: cmp :: Eq for HMENU { } unsafe impl :: windows :: Abi for HMENU { type Abi = Self ; type DefaultType = Self ; } pub type HOOKPROC = unsafe extern "system" fn ( code : i32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; pub const HSHELL_ACCESSIBILITYSTATE : u32 = 11u32 ; pub const HSHELL_ACTIVATESHELLWINDOW : u32 = 3u32 ; pub const HSHELL_APPCOMMAND : u32 = 12u32 ; pub const HSHELL_ENDTASK : u32 = 10u32 ; pub const HSHELL_GETMINRECT : u32 = 5u32 ; pub const HSHELL_HIGHBIT : u32 = 32768u32 ; pub const HSHELL_LANGUAGE : u32 = 8u32 ; pub const HSHELL_MONITORCHANGED : u32 = 16u32 ; pub const HSHELL_REDRAW : u32 = 6u32 ; pub const HSHELL_SYSMENU : u32 = 9u32 ; pub const HSHELL_TASKMAN : u32 = 7u32 ; pub const HSHELL_WINDOWACTIVATED : u32 = 4u32 ; pub const HSHELL_WINDOWCREATED : u32 = 1u32 ; pub const HSHELL_WINDOWDESTROYED : u32 = 2u32 ; pub const HSHELL_WINDOWREPLACED : u32 = 13u32 ; pub const HSHELL_WINDOWREPLACING : u32 = 14u32 ; pub const HTBORDER : u32 = 18u32 ; pub const HTBOTTOM : u32 = 15u32 ; pub const HTBOTTOMLEFT : u32 = 16u32 ; pub const HTBOTTOMRIGHT : u32 = 17u32 ; pub const HTCAPTION : u32 = 2u32 ; pub const HTCLIENT : u32 = 1u32 ; pub const HTCLOSE : u32 = 20u32 ; pub const HTERROR : i32 = -2i32 ; pub const HTGROWBOX : u32 = 4u32 ; pub const HTHELP : u32 = 21u32 ; pub const HTHSCROLL : u32 = 6u32 ; pub const HTLEFT : u32 = 10u32 ; pub const HTMAXBUTTON : u32 = 9u32 ; pub const HTMENU : u32 = 5u32 ; pub const HTMINBUTTON : u32 = 8u32 ; pub const HTNOWHERE : u32 = 0u32 ; pub const HTOBJECT : u32 = 19u32 ; pub const HTRIGHT : u32 = 11u32 ; pub const HTSYSMENU : u32 = 3u32 ; pub const HTTOP : u32 = 12u32 ; pub const HTTOPLEFT : u32 = 13u32 ; pub const HTTOPRIGHT : u32 = 14u32 ; pub const HTTRANSPARENT : i32 = -1i32 ; pub const HTVSCROLL : u32 = 7u32 ; pub const HWND_BOTTOM : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 1i32 as _ ) ; pub const HWND_DESKTOP : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 0i32 as _ ) ; pub const HWND_MESSAGE : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -3i32 as _ ) ; pub const HWND_NOTOPMOST : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -2i32 as _ ) ; pub const HWND_TOP : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( 0i32 as _ ) ; pub const HWND_TOPMOST : super::super::Foundation:: HWND = super::super::Foundation:: HWND ( -1i32 as _ ) ; pub unsafe fn HideCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn HideCaret ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } HideCaret ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn HiliteMenuItem < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uidhiliteitem : u32 , uhilite : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn HiliteMenuItem ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , uidhiliteitem : u32 , uhilite : u32 ) -> super::super::Foundation:: BOOL ; } HiliteMenuItem ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidhiliteitem ) , :: std :: mem :: transmute ( uhilite ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFO { pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP } impl ICONINFO { } impl :: std :: default :: Default for ICONINFO { fn default ( ) -> Self { Self { fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFO" ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFO { fn eq ( & self , other : & Self ) -> bool { self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor } } impl :: std :: cmp :: Eq for ICONINFO { } unsafe impl :: windows :: Abi for ICONINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFOEXA { pub cbSize : u32 , pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP , pub wResID : u16 , pub szModName : [ super::super::System::SystemServices:: CHAR ;260 ] , pub szResName : [ super::super::System::SystemServices:: CHAR ;260 ] } impl ICONINFOEXA { } impl :: std :: default :: Default for ICONINFOEXA { fn default ( ) -> Self { Self { cbSize : 0 , fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) , wResID : 0 , szModName : [ :: std :: default :: Default :: default ( ) ;260 ] , szResName : [ :: std :: default :: Default :: default ( ) ;260 ] } } } impl :: std :: fmt :: Debug for ICONINFOEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFOEXA" ) . field ( "cbSize" , & self . cbSize ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . field ( "wResID" , & self . wResID ) . field ( "szModName" , & self . szModName ) . field ( "szResName" , & self . szResName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFOEXA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor && self . wResID == other . wResID && self . szModName == other . szModName && self . szResName == other . szResName } } impl :: std :: cmp :: Eq for ICONINFOEXA { } unsafe impl :: windows :: Abi for ICONINFOEXA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONINFOEXW { pub cbSize : u32 , pub fIcon : super::super::Foundation:: BOOL , pub xHotspot : u32 , pub yHotspot : u32 , pub hbmMask : super::super::Graphics::Gdi:: HBITMAP , pub hbmColor : super::super::Graphics::Gdi:: HBITMAP , pub wResID : u16 , pub szModName : [ u16 ;260 ] , pub szResName : [ u16 ;260 ] } impl ICONINFOEXW { } impl :: std :: default :: Default for ICONINFOEXW { fn default ( ) -> Self { Self { cbSize : 0 , fIcon : :: std :: default :: Default :: default ( ) , xHotspot : 0 , yHotspot : 0 , hbmMask : :: std :: default :: Default :: default ( ) , hbmColor : :: std :: default :: Default :: default ( ) , wResID : 0 , szModName : [ 0 ;260 ] , szResName : [ 0 ;260 ] } } } impl :: std :: fmt :: Debug for ICONINFOEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONINFOEXW" ) . field ( "cbSize" , & self . cbSize ) . field ( "fIcon" , & self . fIcon ) . field ( "xHotspot" , & self . xHotspot ) . field ( "yHotspot" , & self . yHotspot ) . field ( "hbmMask" , & self . hbmMask ) . field ( "hbmColor" , & self . hbmColor ) . field ( "wResID" , & self . wResID ) . field ( "szModName" , & self . szModName ) . field ( "szResName" , & self . szResName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONINFOEXW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fIcon == other . fIcon && self . xHotspot == other . xHotspot && self . yHotspot == other . yHotspot && self . hbmMask == other . hbmMask && self . hbmColor == other . hbmColor && self . wResID == other . wResID && self . szModName == other . szModName && self . szResName == other . szResName } } impl :: std :: cmp :: Eq for ICONINFOEXW { } unsafe impl :: windows :: Abi for ICONINFOEXW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONMETRICSA { pub cbSize : u32 , pub iHorzSpacing : i32 , pub iVertSpacing : i32 , pub iTitleWrap : i32 , pub lfFont : super::super::Graphics::Gdi:: LOGFONTA } impl ICONMETRICSA { } impl :: std :: default :: Default for ICONMETRICSA { fn default ( ) -> Self { Self { cbSize : 0 , iHorzSpacing : 0 , iVertSpacing : 0 , iTitleWrap : 0 , lfFont : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONMETRICSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONMETRICSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "iHorzSpacing" , & self . iHorzSpacing ) . field ( "iVertSpacing" , & self . iVertSpacing ) . field ( "iTitleWrap" , & self . iTitleWrap ) . field ( "lfFont" , & self . lfFont ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONMETRICSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iHorzSpacing == other . iHorzSpacing && self . iVertSpacing == other . iVertSpacing && self . iTitleWrap == other . iTitleWrap && self . lfFont == other . lfFont } } impl :: std :: cmp :: Eq for ICONMETRICSA { } unsafe impl :: windows :: Abi for ICONMETRICSA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct ICONMETRICSW { pub cbSize : u32 , pub iHorzSpacing : i32 , pub iVertSpacing : i32 , pub iTitleWrap : i32 , pub lfFont : super::super::Graphics::Gdi:: LOGFONTW } impl ICONMETRICSW { } impl :: std :: default :: Default for ICONMETRICSW { fn default ( ) -> Self { Self { cbSize : 0 , iHorzSpacing : 0 , iVertSpacing : 0 , iTitleWrap : 0 , lfFont : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for ICONMETRICSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "ICONMETRICSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "iHorzSpacing" , & self . iHorzSpacing ) . field ( "iVertSpacing" , & self . iVertSpacing ) . field ( "iTitleWrap" , & self . iTitleWrap ) . field ( "lfFont" , & self . lfFont ) . finish ( ) } } impl :: std :: cmp :: PartialEq for ICONMETRICSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iHorzSpacing == other . iHorzSpacing && self . iVertSpacing == other . iVertSpacing && self . iTitleWrap == other . iTitleWrap && self . lfFont == other . lfFont } } impl :: std :: cmp :: Eq for ICONMETRICSW { } unsafe impl :: windows :: Abi for ICONMETRICSW { type Abi = Self ; type DefaultType = Self ; } pub const ICON_BIG : u32 = 1u32 ; pub const ICON_SMALL : u32 = 0u32 ; pub const ICON_SMALL2 : u32 = 2u32 ; pub const IDANI_CAPTION : u32 = 3u32 ; pub const IDANI_OPEN : u32 = 1u32 ; pub const IDC_APPSTARTING : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32650i32 as _ ) ; pub const IDC_ARROW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32512i32 as _ ) ; pub const IDC_CROSS : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32515i32 as _ ) ; pub const IDC_HAND : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32649i32 as _ ) ; pub const IDC_HELP : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32651i32 as _ ) ; pub const IDC_IBEAM : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32513i32 as _ ) ; pub const IDC_ICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32641i32 as _ ) ; pub const IDC_NO : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32648i32 as _ ) ; pub const IDC_PERSON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32672i32 as _ ) ; pub const IDC_PIN : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32671i32 as _ ) ; pub const IDC_SIZE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32640i32 as _ ) ; pub const IDC_SIZEALL : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32646i32 as _ ) ; pub const IDC_SIZENESW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32643i32 as _ ) ; pub const IDC_SIZENS : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32645i32 as _ ) ; pub const IDC_SIZENWSE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32642i32 as _ ) ; pub const IDC_SIZEWE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32644i32 as _ ) ; pub const IDC_UPARROW : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32516i32 as _ ) ; pub const IDC_WAIT : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32514i32 as _ ) ; pub const IDHOT_SNAPDESKTOP : i32 = -2i32 ; pub const IDHOT_SNAPWINDOW : i32 = -1i32 ; pub const IDH_CANCEL : u32 = 28444u32 ; pub const IDH_GENERIC_HELP_BUTTON : u32 = 28442u32 ; pub const IDH_HELP : u32 = 28445u32 ; pub const IDH_MISSING_CONTEXT : u32 = 28441u32 ; pub const IDH_NO_HELP : u32 = 28440u32 ; pub const IDH_OK : u32 = 28443u32 ; pub const IDI_APPLICATION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32512u32 as _ ) ; pub const IDI_ASTERISK : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32516u32 as _ ) ; pub const IDI_EXCLAMATION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32515u32 as _ ) ; pub const IDI_HAND : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32513u32 as _ ) ; pub const IDI_QUESTION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32514u32 as _ ) ; pub const IDI_SHIELD : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32518u32 as _ ) ; pub const IDI_WINLOGO : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 32517u32 as _ ) ; pub const IMAGE_ENHMETAFILE : u32 = 3u32 ; pub const INDEXID_CONTAINER : u32 = 0u32 ; pub const INDEXID_OBJECT : u32 = 0u32 ; pub const INPUTLANGCHANGE_BACKWARD : u32 = 4u32 ; pub const INPUTLANGCHANGE_FORWARD : u32 = 2u32 ; pub const INPUTLANGCHANGE_SYSCHARSET : u32 = 1u32 ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IPrintDialogCallback ( :: windows :: IUnknown ) ; impl IPrintDialogCallback { pub unsafe fn InitDone < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn SelectionChange < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn HandleMessage < 'a , > ( & self , hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , umsg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , presult : * mut super::super::Foundation:: LRESULT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( umsg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( presult ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IPrintDialogCallback { type Vtable = IPrintDialogCallback_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1481810627 ,25904 ,4561 , [ 182 ,163 ,0 ,0 ,248 ,117 ,123 ,249 ] , ) ; } impl :: std :: convert :: From < IPrintDialogCallback > for :: windows :: IUnknown { fn from ( value : IPrintDialogCallback ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IPrintDialogCallback > for :: windows :: IUnknown { fn from ( value : & IPrintDialogCallback ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IPrintDialogCallback { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a IPrintDialogCallback { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IPrintDialogCallback_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hdlg : super::super::Foundation:: HWND , umsg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , presult : * mut super::super::Foundation:: LRESULT , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IPrintDialogServices ( :: windows :: IUnknown ) ; impl IPrintDialogServices { pub unsafe fn GetCurrentDevMode < > ( & self , pdevmode : * mut super::DisplayDevices:: DEVMODEA , pcbsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pdevmode ) , :: std :: mem :: transmute ( pcbsize ) , ) . ok ( ) } pub unsafe fn GetCurrentPrinterName < > ( & self , pprintername : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pprintername ) , :: std :: mem :: transmute ( pcchsize ) , ) . ok ( ) } pub unsafe fn GetCurrentPortName < > ( & self , pportname : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pportname ) , :: std :: mem :: transmute ( pcchsize ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for IPrintDialogServices { type Vtable = IPrintDialogServices_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1352314586 ,22073 ,4561 , [ 182 ,161 ,0 ,0 ,248 ,117 ,123 ,249 ] , ) ; } impl :: std :: convert :: From < IPrintDialogServices > for :: windows :: IUnknown { fn from ( value : IPrintDialogServices ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IPrintDialogServices > for :: windows :: IUnknown { fn from ( value : & IPrintDialogServices ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IPrintDialogServices { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for & 'a IPrintDialogServices { fn into_param ( self ) -> :: windows :: Param < 'a , :: windows :: IUnknown > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < :: windows :: IUnknown > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IPrintDialogServices_abi ( pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iid : & :: windows :: Guid , interface : * mut :: windows :: RawPtr ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr ) -> u32 , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pdevmode : * mut super::DisplayDevices:: DEVMODEA , pcbsize : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pprintername : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pportname : super::super::Foundation:: PWSTR , pcchsize : * mut u32 , ) -> :: windows :: HRESULT , ) ; pub const ISMEX_CALLBACK : u32 = 4u32 ; pub const ISMEX_NOSEND : u32 = 0u32 ; pub const ISMEX_NOTIFY : u32 = 2u32 ; pub const ISMEX_REPLIED : u32 = 8u32 ; pub const ISMEX_SEND : u32 = 1u32 ; pub const ISOLATIONAWARE_MANIFEST_RESOURCE_ID : u32 = 2u32 ; pub const ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID : u32 = 3u32 ; pub const ISOLATIONPOLICY_BROWSER_MANIFEST_RESOURCE_ID : u32 = 5u32 ; pub const ISOLATIONPOLICY_MANIFEST_RESOURCE_ID : u32 = 4u32 ; pub unsafe fn InSendMessage < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InSendMessage ( ) -> super::super::Foundation:: BOOL ; } InSendMessage ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InSendMessageEx < > ( lpreserved : * mut :: std :: ffi :: c_void , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InSendMessageEx ( lpreserved : * mut :: std :: ffi :: c_void ) -> u32 ; } InSendMessageEx ( :: std :: mem :: transmute ( lpreserved ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IndexFilePath < 'a , > ( resourceindexer : * mut :: std :: ffi :: c_void , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ppresourceuri : * mut super::super::Foundation:: PWSTR , pqualifiercount : * mut u32 , ppqualifiers : * mut * mut IndexedResourceQualifier , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn IndexFilePath ( resourceindexer : * mut :: std :: ffi :: c_void , filepath : super::super::Foundation:: PWSTR , ppresourceuri : * mut super::super::Foundation:: PWSTR , pqualifiercount : * mut u32 , ppqualifiers : * mut * mut IndexedResourceQualifier ) -> :: windows :: HRESULT ; } IndexFilePath ( :: std :: mem :: transmute ( resourceindexer ) , filepath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ppresourceuri ) , :: std :: mem :: transmute ( pqualifiercount ) , :: std :: mem :: transmute ( ppqualifiers ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct IndexedResourceQualifier { pub name : super::super::Foundation:: PWSTR , pub value : super::super::Foundation:: PWSTR } impl IndexedResourceQualifier { } impl :: std :: default :: Default for IndexedResourceQualifier { fn default ( ) -> Self { Self { name : :: std :: default :: Default :: default ( ) , value : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for IndexedResourceQualifier { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "IndexedResourceQualifier" ) . field ( "name" , & self . name ) . field ( "value" , & self . value ) . finish ( ) } } impl :: std :: cmp :: PartialEq for IndexedResourceQualifier { fn eq ( & self , other : & Self ) -> bool { self . name == other . name && self . value == other . value } } impl :: std :: cmp :: Eq for IndexedResourceQualifier { } unsafe impl :: windows :: Abi for IndexedResourceQualifier { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn InheritWindowMonitor < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinherit : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InheritWindowMonitor ( hwnd : super::super::Foundation:: HWND , hwndinherit : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } InheritWindowMonitor ( hwnd . into_param ( ) . abi ( ) , hwndinherit . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuA ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } InsertMenuA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuItemA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmi : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuItemA ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmi : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } InsertMenuItemA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuItemW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbyposition : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmi : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuItemW ( hmenu : HMENU , item : u32 , fbyposition : super::super::Foundation:: BOOL , lpmi : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } InsertMenuItemW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbyposition . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmi ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InsertMenuW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InsertMenuW ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } InsertMenuW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn InternalGetWindowText < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pstring : super::super::Foundation:: PWSTR , cchmaxcount : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn InternalGetWindowText ( hwnd : super::super::Foundation:: HWND , pstring : super::super::Foundation:: PWSTR , cchmaxcount : i32 ) -> i32 ; } InternalGetWindowText ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pstring ) , :: std :: mem :: transmute ( cchmaxcount ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharAlphaA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaNumericA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaNumericA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharAlphaNumericA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaNumericW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaNumericW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharAlphaNumericW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharAlphaW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharAlphaW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharAlphaW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharLowerA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharLowerA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharLowerA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharUpperA < 'a , > ( ch : impl :: windows :: IntoParam < 'a , super::super::System::SystemServices:: CHAR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharUpperA ( ch : super::super::System::SystemServices:: CHAR ) -> super::super::Foundation:: BOOL ; } IsCharUpperA ( ch . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsCharUpperW < > ( ch : u16 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsCharUpperW ( ch : u16 ) -> super::super::Foundation:: BOOL ; } IsCharUpperW ( :: std :: mem :: transmute ( ch ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsChild < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsChild ( hwndparent : super::super::Foundation:: HWND , hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsChild ( hwndparent . into_param ( ) . abi ( ) , hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsDialogMessageA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsDialogMessageA ( hdlg : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } IsDialogMessageA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsDialogMessageW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsDialogMessageW ( hdlg : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } IsDialogMessageW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsGUIThread < 'a , > ( bconvert : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsGUIThread ( bconvert : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } IsGUIThread ( bconvert . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsHungAppWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsHungAppWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsHungAppWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsIconic < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsIconic ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsIconic ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsMenu ( hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } IsMenu ( hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsProcessDPIAware < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsProcessDPIAware ( ) -> super::super::Foundation:: BOOL ; } IsProcessDPIAware ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindowUnicode < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindowUnicode ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindowUnicode ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWindowVisible < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWindowVisible ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsWindowVisible ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsWow64Message < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsWow64Message ( ) -> super::super::Foundation:: BOOL ; } IsWow64Message ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn IsZoomed < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn IsZoomed ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } IsZoomed ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct KBDLLHOOKSTRUCT { pub vkCode : u32 , pub scanCode : u32 , pub flags : u32 , pub time : u32 , pub dwExtraInfo : usize } impl KBDLLHOOKSTRUCT { } impl :: std :: default :: Default for KBDLLHOOKSTRUCT { fn default ( ) -> Self { Self { vkCode : 0 , scanCode : 0 , flags : 0 , time : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for KBDLLHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "KBDLLHOOKSTRUCT" ) . field ( "vkCode" , & self . vkCode ) . field ( "scanCode" , & self . scanCode ) . field ( "flags" , & self . flags ) . field ( "time" , & self . time ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for KBDLLHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . vkCode == other . vkCode && self . scanCode == other . scanCode && self . flags == other . flags && self . time == other . time && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for KBDLLHOOKSTRUCT { } unsafe impl :: windows :: Abi for KBDLLHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const KF_ALTDOWN : u32 = 8192u32 ; pub const KF_DLGMODE : u32 = 2048u32 ; pub const KF_EXTENDED : u32 = 256u32 ; pub const KF_MENUMODE : u32 = 4096u32 ; pub const KF_REPEAT : u32 = 16384u32 ; pub const KF_UP : u32 = 32768u32 ; pub const KL_NAMELENGTH : u32 = 9u32 ; pub unsafe fn KillTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , uidevent : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn KillTimer ( hwnd : super::super::Foundation:: HWND , uidevent : usize ) -> super::super::Foundation:: BOOL ; } KillTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uidevent ) ) } # [ 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 LAYERED_WINDOW_ATTRIBUTES_FLAGS ( pub u32 ) ; pub const LWA_ALPHA : LAYERED_WINDOW_ATTRIBUTES_FLAGS = LAYERED_WINDOW_ATTRIBUTES_FLAGS ( 2u32 ) ; pub const LWA_COLORKEY : LAYERED_WINDOW_ATTRIBUTES_FLAGS = LAYERED_WINDOW_ATTRIBUTES_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for LAYERED_WINDOW_ATTRIBUTES_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for LAYERED_WINDOW_ATTRIBUTES_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const LBN_DBLCLK : u32 = 2u32 ; pub const LBN_ERRSPACE : i32 = -2i32 ; pub const LBN_KILLFOCUS : u32 = 5u32 ; pub const LBN_SELCANCEL : u32 = 3u32 ; pub const LBN_SELCHANGE : u32 = 1u32 ; pub const LBN_SETFOCUS : u32 = 4u32 ; pub const LBS_COMBOBOX : i32 = 32768i32 ; pub const LBS_DISABLENOSCROLL : i32 = 4096i32 ; pub const LBS_EXTENDEDSEL : i32 = 2048i32 ; pub const LBS_HASSTRINGS : i32 = 64i32 ; pub const LBS_MULTICOLUMN : i32 = 512i32 ; pub const LBS_MULTIPLESEL : i32 = 8i32 ; pub const LBS_NODATA : i32 = 8192i32 ; pub const LBS_NOINTEGRALHEIGHT : i32 = 256i32 ; pub const LBS_NOREDRAW : i32 = 4i32 ; pub const LBS_NOSEL : i32 = 16384i32 ; pub const LBS_NOTIFY : i32 = 1i32 ; pub const LBS_OWNERDRAWFIXED : i32 = 16i32 ; pub const LBS_OWNERDRAWVARIABLE : i32 = 32i32 ; pub const LBS_SORT : i32 = 2i32 ; pub const LBS_STANDARD : i32 = 10485763i32 ; pub const LBS_USETABSTOPS : i32 = 128i32 ; pub const LBS_WANTKEYBOARDINPUT : i32 = 1024i32 ; pub const LB_ADDFILE : u32 = 406u32 ; pub const LB_ADDSTRING : u32 = 384u32 ; pub const LB_CTLCODE : i32 = 0i32 ; pub const LB_DELETESTRING : u32 = 386u32 ; pub const LB_DIR : u32 = 397u32 ; pub const LB_ERR : i32 = -1i32 ; pub const LB_ERRSPACE : i32 = -2i32 ; pub const LB_FINDSTRING : u32 = 399u32 ; pub const LB_FINDSTRINGEXACT : u32 = 418u32 ; pub const LB_GETANCHORINDEX : u32 = 413u32 ; pub const LB_GETCARETINDEX : u32 = 415u32 ; pub const LB_GETCOUNT : u32 = 395u32 ; pub const LB_GETCURSEL : u32 = 392u32 ; pub const LB_GETHORIZONTALEXTENT : u32 = 403u32 ; pub const LB_GETITEMDATA : u32 = 409u32 ; pub const LB_GETITEMHEIGHT : u32 = 417u32 ; pub const LB_GETITEMRECT : u32 = 408u32 ; pub const LB_GETLISTBOXINFO : u32 = 434u32 ; pub const LB_GETLOCALE : u32 = 422u32 ; pub const LB_GETSEL : u32 = 391u32 ; pub const LB_GETSELCOUNT : u32 = 400u32 ; pub const LB_GETSELITEMS : u32 = 401u32 ; pub const LB_GETTEXT : u32 = 393u32 ; pub const LB_GETTEXTLEN : u32 = 394u32 ; pub const LB_GETTOPINDEX : u32 = 398u32 ; pub const LB_INITSTORAGE : u32 = 424u32 ; pub const LB_INSERTSTRING : u32 = 385u32 ; pub const LB_ITEMFROMPOINT : u32 = 425u32 ; pub const LB_MSGMAX : u32 = 435u32 ; pub const LB_MULTIPLEADDSTRING : u32 = 433u32 ; pub const LB_OKAY : u32 = 0u32 ; pub const LB_RESETCONTENT : u32 = 388u32 ; pub const LB_SELECTSTRING : u32 = 396u32 ; pub const LB_SELITEMRANGE : u32 = 411u32 ; pub const LB_SELITEMRANGEEX : u32 = 387u32 ; pub const LB_SETANCHORINDEX : u32 = 412u32 ; pub const LB_SETCARETINDEX : u32 = 414u32 ; pub const LB_SETCOLUMNWIDTH : u32 = 405u32 ; pub const LB_SETCOUNT : u32 = 423u32 ; pub const LB_SETCURSEL : u32 = 390u32 ; pub const LB_SETHORIZONTALEXTENT : u32 = 404u32 ; pub const LB_SETITEMDATA : u32 = 410u32 ; pub const LB_SETITEMHEIGHT : u32 = 416u32 ; pub const LB_SETLOCALE : u32 = 421u32 ; pub const LB_SETSEL : u32 = 389u32 ; pub const LB_SETTABSTOPS : u32 = 402u32 ; pub const LB_SETTOPINDEX : u32 = 407u32 ; pub const LLKHF_INJECTED : u32 = 16u32 ; pub const LLKHF_LOWER_IL_INJECTED : u32 = 2u32 ; pub const LLMHF_INJECTED : u32 = 1u32 ; pub const LLMHF_LOWER_IL_INJECTED : u32 = 2u32 ; pub type LPCCHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPCFHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPFRHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPOFNHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPAGEPAINTHOOK = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPAGESETUPHOOK = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPPRINTHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub type LPSETUPHOOKPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> usize ; pub const LR_COLOR : u32 = 2u32 ; pub unsafe fn LoadAcceleratorsA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptablename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadAcceleratorsA ( hinstance : super::super::Foundation:: HINSTANCE , lptablename : super::super::Foundation:: PSTR ) -> HACCEL ; } LoadAcceleratorsA ( hinstance . into_param ( ) . abi ( ) , lptablename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadAcceleratorsW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lptablename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HACCEL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadAcceleratorsW ( hinstance : super::super::Foundation:: HINSTANCE , lptablename : super::super::Foundation:: PWSTR ) -> HACCEL ; } LoadAcceleratorsW ( hinstance . into_param ( ) . abi ( ) , lptablename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpcursorname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorA ( hinstance : super::super::Foundation:: HINSTANCE , lpcursorname : super::super::Foundation:: PSTR ) -> HCURSOR ; } LoadCursorA ( hinstance . into_param ( ) . abi ( ) , lpcursorname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorFromFileA < 'a , > ( lpfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorFromFileA ( lpfilename : super::super::Foundation:: PSTR ) -> HCURSOR ; } LoadCursorFromFileA ( lpfilename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorFromFileW < 'a , > ( lpfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorFromFileW ( lpfilename : super::super::Foundation:: PWSTR ) -> HCURSOR ; } LoadCursorFromFileW ( lpfilename . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadCursorW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpcursorname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadCursorW ( hinstance : super::super::Foundation:: HINSTANCE , lpcursorname : super::super::Foundation:: PWSTR ) -> HCURSOR ; } LoadCursorW ( hinstance . into_param ( ) . abi ( ) , lpcursorname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadIconA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpiconname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadIconA ( hinstance : super::super::Foundation:: HINSTANCE , lpiconname : super::super::Foundation:: PSTR ) -> HICON ; } LoadIconA ( hinstance . into_param ( ) . abi ( ) , lpiconname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadIconW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpiconname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HICON { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadIconW ( hinstance : super::super::Foundation:: HINSTANCE , lpiconname : super::super::Foundation:: PWSTR ) -> HICON ; } LoadIconW ( hinstance . into_param ( ) . abi ( ) , lpiconname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadImageA < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , name : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadImageA ( hinst : super::super::Foundation:: HINSTANCE , name : super::super::Foundation:: PSTR , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } LoadImageA ( hinst . into_param ( ) . abi ( ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( fuload ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadImageW < 'a , > ( hinst : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , name : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadImageW ( hinst : super::super::Foundation:: HINSTANCE , name : super::super::Foundation:: PWSTR , r#type : GDI_IMAGE_TYPE , cx : i32 , cy : i32 , fuload : super::Controls:: IMAGE_FLAGS ) -> super::super::Foundation:: HANDLE ; } LoadImageW ( hinst . into_param ( ) . abi ( ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( r#type ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( fuload ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpmenuname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuA ( hinstance : super::super::Foundation:: HINSTANCE , lpmenuname : super::super::Foundation:: PSTR ) -> HMENU ; } LoadMenuA ( hinstance . into_param ( ) . abi ( ) , lpmenuname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuIndirectA < > ( lpmenutemplate : * const :: std :: ffi :: c_void , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuIndirectA ( lpmenutemplate : * const :: std :: ffi :: c_void ) -> HMENU ; } LoadMenuIndirectA ( :: std :: mem :: transmute ( lpmenutemplate ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuIndirectW < > ( lpmenutemplate : * const :: std :: ffi :: c_void , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuIndirectW ( lpmenutemplate : * const :: std :: ffi :: c_void ) -> HMENU ; } LoadMenuIndirectW ( :: std :: mem :: transmute ( lpmenutemplate ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadMenuW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , lpmenuname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> HMENU { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadMenuW ( hinstance : super::super::Foundation:: HINSTANCE , lpmenuname : super::super::Foundation:: PWSTR ) -> HMENU ; } LoadMenuW ( hinstance . into_param ( ) . abi ( ) , lpmenuname . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadStringA < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , uid : u32 , lpbuffer : super::super::Foundation:: PSTR , cchbuffermax : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadStringA ( hinstance : super::super::Foundation:: HINSTANCE , uid : u32 , lpbuffer : super::super::Foundation:: PSTR , cchbuffermax : i32 ) -> i32 ; } LoadStringA ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( cchbuffermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LoadStringW < 'a , > ( hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , uid : u32 , lpbuffer : super::super::Foundation:: PWSTR , cchbuffermax : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LoadStringW ( hinstance : super::super::Foundation:: HINSTANCE , uid : u32 , lpbuffer : super::super::Foundation:: PWSTR , cchbuffermax : i32 ) -> i32 ; } LoadStringW ( hinstance . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uid ) , :: std :: mem :: transmute ( lpbuffer ) , :: std :: mem :: transmute ( cchbuffermax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LockSetForegroundWindow < > ( ulockcode : FOREGROUND_WINDOW_LOCK_CODE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LockSetForegroundWindow ( ulockcode : FOREGROUND_WINDOW_LOCK_CODE ) -> super::super::Foundation:: BOOL ; } LockSetForegroundWindow ( :: std :: mem :: transmute ( ulockcode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LogicalToPhysicalPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LogicalToPhysicalPoint ( hwnd : super::super::Foundation:: HWND , lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } LogicalToPhysicalPoint ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LookupIconIdFromDirectory < 'a , > ( presbits : * mut u8 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LookupIconIdFromDirectory ( presbits : * mut u8 , ficon : super::super::Foundation:: BOOL ) -> i32 ; } LookupIconIdFromDirectory ( :: std :: mem :: transmute ( presbits ) , ficon . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn LookupIconIdFromDirectoryEx < 'a , > ( presbits : * mut u8 , ficon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn LookupIconIdFromDirectoryEx ( presbits : * mut u8 , ficon : super::super::Foundation:: BOOL , cxdesired : i32 , cydesired : i32 , flags : super::Controls:: IMAGE_FLAGS ) -> i32 ; } LookupIconIdFromDirectoryEx ( :: std :: mem :: transmute ( presbits ) , ficon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cxdesired ) , :: std :: mem :: transmute ( cydesired ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const MAPVK_VK_TO_CHAR : u32 = 2u32 ; pub const MAPVK_VK_TO_VSC : u32 = 0u32 ; pub const MAPVK_VK_TO_VSC_EX : u32 = 4u32 ; pub const MAPVK_VSC_TO_VK : u32 = 1u32 ; pub const MAPVK_VSC_TO_VK_EX : u32 = 3u32 ; pub const MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID : u32 = 16u32 ; pub const MAX_LOGICALDPIOVERRIDE : u32 = 2u32 ; pub const MAX_STR_BLOCKREASON : u32 = 256u32 ; pub const MAX_TOUCH_COUNT : u32 = 256u32 ; pub const MAX_TOUCH_PREDICTION_FILTER_TAPS : u32 = 3u32 ; pub const MA_ACTIVATE : u32 = 1u32 ; pub const MA_ACTIVATEANDEAT : u32 = 2u32 ; pub const MA_NOACTIVATE : u32 = 3u32 ; pub const MA_NOACTIVATEANDEAT : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDICREATESTRUCTA { pub szClass : super::super::Foundation:: PSTR , pub szTitle : super::super::Foundation:: PSTR , pub hOwner : super::super::Foundation:: HANDLE , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub style : WINDOW_STYLE , pub lParam : super::super::Foundation:: LPARAM } impl MDICREATESTRUCTA { } impl :: std :: default :: Default for MDICREATESTRUCTA { fn default ( ) -> Self { Self { szClass : :: std :: default :: Default :: default ( ) , szTitle : :: std :: default :: Default :: default ( ) , hOwner : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , style : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDICREATESTRUCTA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDICREATESTRUCTA" ) . field ( "szClass" , & self . szClass ) . field ( "szTitle" , & self . szTitle ) . field ( "hOwner" , & self . hOwner ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "style" , & self . style ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDICREATESTRUCTA { fn eq ( & self , other : & Self ) -> bool { self . szClass == other . szClass && self . szTitle == other . szTitle && self . hOwner == other . hOwner && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . style == other . style && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for MDICREATESTRUCTA { } unsafe impl :: windows :: Abi for MDICREATESTRUCTA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDICREATESTRUCTW { pub szClass : super::super::Foundation:: PWSTR , pub szTitle : super::super::Foundation:: PWSTR , pub hOwner : super::super::Foundation:: HANDLE , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub style : WINDOW_STYLE , pub lParam : super::super::Foundation:: LPARAM } impl MDICREATESTRUCTW { } impl :: std :: default :: Default for MDICREATESTRUCTW { fn default ( ) -> Self { Self { szClass : :: std :: default :: Default :: default ( ) , szTitle : :: std :: default :: Default :: default ( ) , hOwner : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , style : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDICREATESTRUCTW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDICREATESTRUCTW" ) . field ( "szClass" , & self . szClass ) . field ( "szTitle" , & self . szTitle ) . field ( "hOwner" , & self . hOwner ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "style" , & self . style ) . field ( "lParam" , & self . lParam ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDICREATESTRUCTW { fn eq ( & self , other : & Self ) -> bool { self . szClass == other . szClass && self . szTitle == other . szTitle && self . hOwner == other . hOwner && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . style == other . style && self . lParam == other . lParam } } impl :: std :: cmp :: Eq for MDICREATESTRUCTW { } unsafe impl :: windows :: Abi for MDICREATESTRUCTW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MDINEXTMENU { pub hmenuIn : HMENU , pub hmenuNext : HMENU , pub hwndNext : super::super::Foundation:: HWND } impl MDINEXTMENU { } impl :: std :: default :: Default for MDINEXTMENU { fn default ( ) -> Self { Self { hmenuIn : :: std :: default :: Default :: default ( ) , hmenuNext : :: std :: default :: Default :: default ( ) , hwndNext : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MDINEXTMENU { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MDINEXTMENU" ) . field ( "hmenuIn" , & self . hmenuIn ) . field ( "hmenuNext" , & self . hmenuNext ) . field ( "hwndNext" , & self . hwndNext ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MDINEXTMENU { fn eq ( & self , other : & Self ) -> bool { self . hmenuIn == other . hmenuIn && self . hmenuNext == other . hmenuNext && self . hwndNext == other . hwndNext } } impl :: std :: cmp :: Eq for MDINEXTMENU { } unsafe impl :: windows :: Abi for MDINEXTMENU { type Abi = Self ; type DefaultType = Self ; } pub const MDIS_ALLCHILDSTYLES : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUBARINFO { pub cbSize : u32 , pub rcBar : super::super::Foundation:: RECT , pub hMenu : HMENU , pub hwndMenu : super::super::Foundation:: HWND , pub _bitfield : i32 } impl MENUBARINFO { } impl :: std :: default :: Default for MENUBARINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcBar : :: std :: default :: Default :: default ( ) , hMenu : :: std :: default :: Default :: default ( ) , hwndMenu : :: std :: default :: Default :: default ( ) , _bitfield : 0 } } } impl :: std :: fmt :: Debug for MENUBARINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUBARINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcBar" , & self . rcBar ) . field ( "hMenu" , & self . hMenu ) . field ( "hwndMenu" , & self . hwndMenu ) . field ( "_bitfield" , & self . _bitfield ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUBARINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcBar == other . rcBar && self . hMenu == other . hMenu && self . hwndMenu == other . hwndMenu && self . _bitfield == other . _bitfield } } impl :: std :: cmp :: Eq for MENUBARINFO { } unsafe impl :: windows :: Abi for MENUBARINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUGETOBJECTINFO { pub dwFlags : MENUGETOBJECTINFO_FLAGS , pub uPos : u32 , pub hmenu : HMENU , pub riid : * mut :: std :: ffi :: c_void , pub pvObj : * mut :: std :: ffi :: c_void } impl MENUGETOBJECTINFO { } impl :: std :: default :: Default for MENUGETOBJECTINFO { fn default ( ) -> Self { Self { dwFlags : :: std :: default :: Default :: default ( ) , uPos : 0 , hmenu : :: std :: default :: Default :: default ( ) , riid : :: std :: ptr :: null_mut ( ) , pvObj : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for MENUGETOBJECTINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUGETOBJECTINFO" ) . field ( "dwFlags" , & self . dwFlags ) . field ( "uPos" , & self . uPos ) . field ( "hmenu" , & self . hmenu ) . field ( "riid" , & self . riid ) . field ( "pvObj" , & self . pvObj ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUGETOBJECTINFO { fn eq ( & self , other : & Self ) -> bool { self . dwFlags == other . dwFlags && self . uPos == other . uPos && self . hmenu == other . hmenu && self . riid == other . riid && self . pvObj == other . pvObj } } impl :: std :: cmp :: Eq for MENUGETOBJECTINFO { } unsafe impl :: windows :: Abi for MENUGETOBJECTINFO { 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 MENUGETOBJECTINFO_FLAGS ( pub u32 ) ; pub const MNGOF_BOTTOMGAP : MENUGETOBJECTINFO_FLAGS = MENUGETOBJECTINFO_FLAGS ( 2u32 ) ; pub const MNGOF_TOPGAP : MENUGETOBJECTINFO_FLAGS = MENUGETOBJECTINFO_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for MENUGETOBJECTINFO_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUGETOBJECTINFO_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUGETOBJECTINFO_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUGETOBJECTINFO_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUGETOBJECTINFO_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUGETOBJECTINFO_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUINFO { pub cbSize : u32 , pub fMask : MENUINFO_MASK , pub dwStyle : MENUINFO_STYLE , pub cyMax : u32 , pub hbrBack : super::super::Graphics::Gdi:: HBRUSH , pub dwContextHelpID : u32 , pub dwMenuData : usize } impl MENUINFO { } impl :: std :: default :: Default for MENUINFO { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , cyMax : 0 , hbrBack : :: std :: default :: Default :: default ( ) , dwContextHelpID : 0 , dwMenuData : 0 } } } impl :: std :: fmt :: Debug for MENUINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "dwStyle" , & self . dwStyle ) . field ( "cyMax" , & self . cyMax ) . field ( "hbrBack" , & self . hbrBack ) . field ( "dwContextHelpID" , & self . dwContextHelpID ) . field ( "dwMenuData" , & self . dwMenuData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . dwStyle == other . dwStyle && self . cyMax == other . cyMax && self . hbrBack == other . hbrBack && self . dwContextHelpID == other . dwContextHelpID && self . dwMenuData == other . dwMenuData } } impl :: std :: cmp :: Eq for MENUINFO { } unsafe impl :: windows :: Abi for MENUINFO { 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 MENUINFO_MASK ( pub u32 ) ; pub const MIM_APPLYTOSUBMENUS : MENUINFO_MASK = MENUINFO_MASK ( 2147483648u32 ) ; pub const MIM_BACKGROUND : MENUINFO_MASK = MENUINFO_MASK ( 2u32 ) ; pub const MIM_HELPID : MENUINFO_MASK = MENUINFO_MASK ( 4u32 ) ; pub const MIM_MAXHEIGHT : MENUINFO_MASK = MENUINFO_MASK ( 1u32 ) ; pub const MIM_MENUDATA : MENUINFO_MASK = MENUINFO_MASK ( 8u32 ) ; pub const MIM_STYLE : MENUINFO_MASK = MENUINFO_MASK ( 16u32 ) ; impl :: std :: convert :: From < u32 > for MENUINFO_MASK { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUINFO_MASK { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUINFO_MASK { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUINFO_MASK { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUINFO_MASK { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUINFO_MASK { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENUINFO_STYLE ( pub u32 ) ; pub const MNS_AUTODISMISS : MENUINFO_STYLE = MENUINFO_STYLE ( 268435456u32 ) ; pub const MNS_CHECKORBMP : MENUINFO_STYLE = MENUINFO_STYLE ( 67108864u32 ) ; pub const MNS_DRAGDROP : MENUINFO_STYLE = MENUINFO_STYLE ( 536870912u32 ) ; pub const MNS_MODELESS : MENUINFO_STYLE = MENUINFO_STYLE ( 1073741824u32 ) ; pub const MNS_NOCHECK : MENUINFO_STYLE = MENUINFO_STYLE ( 2147483648u32 ) ; pub const MNS_NOTIFYBYPOS : MENUINFO_STYLE = MENUINFO_STYLE ( 134217728u32 ) ; impl :: std :: convert :: From < u32 > for MENUINFO_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENUINFO_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENUINFO_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENUINFO_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENUINFO_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENUINFO_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMINFOA { pub cbSize : u32 , pub fMask : MENU_ITEM_MASK , pub fType : MENU_ITEM_TYPE , pub fState : MENU_ITEM_STATE , pub wID : u32 , pub hSubMenu : HMENU , pub hbmpChecked : super::super::Graphics::Gdi:: HBITMAP , pub hbmpUnchecked : super::super::Graphics::Gdi:: HBITMAP , pub dwItemData : usize , pub dwTypeData : super::super::Foundation:: PSTR , pub cch : u32 , pub hbmpItem : super::super::Graphics::Gdi:: HBITMAP } impl MENUITEMINFOA { } impl :: std :: default :: Default for MENUITEMINFOA { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , fType : :: std :: default :: Default :: default ( ) , fState : :: std :: default :: Default :: default ( ) , wID : 0 , hSubMenu : :: std :: default :: Default :: default ( ) , hbmpChecked : :: std :: default :: Default :: default ( ) , hbmpUnchecked : :: std :: default :: Default :: default ( ) , dwItemData : 0 , dwTypeData : :: std :: default :: Default :: default ( ) , cch : 0 , hbmpItem : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MENUITEMINFOA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMINFOA" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "fType" , & self . fType ) . field ( "fState" , & self . fState ) . field ( "wID" , & self . wID ) . field ( "hSubMenu" , & self . hSubMenu ) . field ( "hbmpChecked" , & self . hbmpChecked ) . field ( "hbmpUnchecked" , & self . hbmpUnchecked ) . field ( "dwItemData" , & self . dwItemData ) . field ( "dwTypeData" , & self . dwTypeData ) . field ( "cch" , & self . cch ) . field ( "hbmpItem" , & self . hbmpItem ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMINFOA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . fType == other . fType && self . fState == other . fState && self . wID == other . wID && self . hSubMenu == other . hSubMenu && self . hbmpChecked == other . hbmpChecked && self . hbmpUnchecked == other . hbmpUnchecked && self . dwItemData == other . dwItemData && self . dwTypeData == other . dwTypeData && self . cch == other . cch && self . hbmpItem == other . hbmpItem } } impl :: std :: cmp :: Eq for MENUITEMINFOA { } unsafe impl :: windows :: Abi for MENUITEMINFOA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMINFOW { pub cbSize : u32 , pub fMask : MENU_ITEM_MASK , pub fType : MENU_ITEM_TYPE , pub fState : MENU_ITEM_STATE , pub wID : u32 , pub hSubMenu : HMENU , pub hbmpChecked : super::super::Graphics::Gdi:: HBITMAP , pub hbmpUnchecked : super::super::Graphics::Gdi:: HBITMAP , pub dwItemData : usize , pub dwTypeData : super::super::Foundation:: PWSTR , pub cch : u32 , pub hbmpItem : super::super::Graphics::Gdi:: HBITMAP } impl MENUITEMINFOW { } impl :: std :: default :: Default for MENUITEMINFOW { fn default ( ) -> Self { Self { cbSize : 0 , fMask : :: std :: default :: Default :: default ( ) , fType : :: std :: default :: Default :: default ( ) , fState : :: std :: default :: Default :: default ( ) , wID : 0 , hSubMenu : :: std :: default :: Default :: default ( ) , hbmpChecked : :: std :: default :: Default :: default ( ) , hbmpUnchecked : :: std :: default :: Default :: default ( ) , dwItemData : 0 , dwTypeData : :: std :: default :: Default :: default ( ) , cch : 0 , hbmpItem : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MENUITEMINFOW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMINFOW" ) . field ( "cbSize" , & self . cbSize ) . field ( "fMask" , & self . fMask ) . field ( "fType" , & self . fType ) . field ( "fState" , & self . fState ) . field ( "wID" , & self . wID ) . field ( "hSubMenu" , & self . hSubMenu ) . field ( "hbmpChecked" , & self . hbmpChecked ) . field ( "hbmpUnchecked" , & self . hbmpUnchecked ) . field ( "dwItemData" , & self . dwItemData ) . field ( "dwTypeData" , & self . dwTypeData ) . field ( "cch" , & self . cch ) . field ( "hbmpItem" , & self . hbmpItem ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMINFOW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . fMask == other . fMask && self . fType == other . fType && self . fState == other . fState && self . wID == other . wID && self . hSubMenu == other . hSubMenu && self . hbmpChecked == other . hbmpChecked && self . hbmpUnchecked == other . hbmpUnchecked && self . dwItemData == other . dwItemData && self . dwTypeData == other . dwTypeData && self . cch == other . cch && self . hbmpItem == other . hbmpItem } } impl :: std :: cmp :: Eq for MENUITEMINFOW { } unsafe impl :: windows :: Abi for MENUITEMINFOW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMTEMPLATE { pub mtOption : u16 , pub mtID : u16 , pub mtString : [ u16 ;1 ] } impl MENUITEMTEMPLATE { } impl :: std :: default :: Default for MENUITEMTEMPLATE { fn default ( ) -> Self { Self { mtOption : 0 , mtID : 0 , mtString : [ 0 ;1 ] } } } impl :: std :: fmt :: Debug for MENUITEMTEMPLATE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMTEMPLATE" ) . field ( "mtOption" , & self . mtOption ) . field ( "mtID" , & self . mtID ) . field ( "mtString" , & self . mtString ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMTEMPLATE { fn eq ( & self , other : & Self ) -> bool { self . mtOption == other . mtOption && self . mtID == other . mtID && self . mtString == other . mtString } } impl :: std :: cmp :: Eq for MENUITEMTEMPLATE { } unsafe impl :: windows :: Abi for MENUITEMTEMPLATE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MENUITEMTEMPLATEHEADER { pub versionNumber : u16 , pub offset : u16 } impl MENUITEMTEMPLATEHEADER { } impl :: std :: default :: Default for MENUITEMTEMPLATEHEADER { fn default ( ) -> Self { Self { versionNumber : 0 , offset : 0 } } } impl :: std :: fmt :: Debug for MENUITEMTEMPLATEHEADER { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MENUITEMTEMPLATEHEADER" ) . field ( "versionNumber" , & self . versionNumber ) . field ( "offset" , & self . offset ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MENUITEMTEMPLATEHEADER { fn eq ( & self , other : & Self ) -> bool { self . versionNumber == other . versionNumber && self . offset == other . offset } } impl :: std :: cmp :: Eq for MENUITEMTEMPLATEHEADER { } unsafe impl :: windows :: Abi for MENUITEMTEMPLATEHEADER { 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 MENU_ITEM_FLAGS ( pub u32 ) ; pub const MF_BYCOMMAND : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_BYPOSITION : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 1024u32 ) ; pub const MF_BITMAP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4u32 ) ; pub const MF_CHECKED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 8u32 ) ; pub const MF_DISABLED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 2u32 ) ; pub const MF_ENABLED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_GRAYED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 1u32 ) ; pub const MF_MENUBARBREAK : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 32u32 ) ; pub const MF_MENUBREAK : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 64u32 ) ; pub const MF_OWNERDRAW : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 256u32 ) ; pub const MF_POPUP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16u32 ) ; pub const MF_SEPARATOR : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 2048u32 ) ; pub const MF_STRING : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_UNCHECKED : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_INSERT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_CHANGE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; pub const MF_APPEND : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 256u32 ) ; pub const MF_DELETE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 512u32 ) ; pub const MF_REMOVE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4096u32 ) ; pub const MF_USECHECKBITMAPS : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 512u32 ) ; pub const MF_UNHILITE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 0u32 ) ; pub const MF_HILITE : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; pub const MF_DEFAULT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 4096u32 ) ; pub const MF_SYSMENU : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 8192u32 ) ; pub const MF_HELP : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16384u32 ) ; pub const MF_RIGHTJUSTIFY : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 16384u32 ) ; pub const MF_MOUSESELECT : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 32768u32 ) ; pub const MF_END : MENU_ITEM_FLAGS = MENU_ITEM_FLAGS ( 128u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_MASK ( pub u32 ) ; pub const MIIM_BITMAP : MENU_ITEM_MASK = MENU_ITEM_MASK ( 128u32 ) ; pub const MIIM_CHECKMARKS : MENU_ITEM_MASK = MENU_ITEM_MASK ( 8u32 ) ; pub const MIIM_DATA : MENU_ITEM_MASK = MENU_ITEM_MASK ( 32u32 ) ; pub const MIIM_FTYPE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 256u32 ) ; pub const MIIM_ID : MENU_ITEM_MASK = MENU_ITEM_MASK ( 2u32 ) ; pub const MIIM_STATE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 1u32 ) ; pub const MIIM_STRING : MENU_ITEM_MASK = MENU_ITEM_MASK ( 64u32 ) ; pub const MIIM_SUBMENU : MENU_ITEM_MASK = MENU_ITEM_MASK ( 4u32 ) ; pub const MIIM_TYPE : MENU_ITEM_MASK = MENU_ITEM_MASK ( 16u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_MASK { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_MASK { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_MASK { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_MASK { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_MASK { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_MASK { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_STATE ( pub u32 ) ; pub const MFS_GRAYED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 3u32 ) ; pub const MFS_DISABLED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 3u32 ) ; pub const MFS_CHECKED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 8u32 ) ; pub const MFS_HILITE : MENU_ITEM_STATE = MENU_ITEM_STATE ( 128u32 ) ; pub const MFS_ENABLED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_UNCHECKED : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_UNHILITE : MENU_ITEM_STATE = MENU_ITEM_STATE ( 0u32 ) ; pub const MFS_DEFAULT : MENU_ITEM_STATE = MENU_ITEM_STATE ( 4096u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_STATE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_STATE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_STATE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_STATE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_STATE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_STATE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct MENU_ITEM_TYPE ( pub u32 ) ; pub const MFT_BITMAP : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 4u32 ) ; pub const MFT_MENUBARBREAK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 32u32 ) ; pub const MFT_MENUBREAK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 64u32 ) ; pub const MFT_OWNERDRAW : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 256u32 ) ; pub const MFT_RADIOCHECK : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 512u32 ) ; pub const MFT_RIGHTJUSTIFY : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 16384u32 ) ; pub const MFT_RIGHTORDER : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 8192u32 ) ; pub const MFT_SEPARATOR : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 2048u32 ) ; pub const MFT_STRING : MENU_ITEM_TYPE = MENU_ITEM_TYPE ( 0u32 ) ; impl :: std :: convert :: From < u32 > for MENU_ITEM_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MENU_ITEM_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MENU_ITEM_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MENU_ITEM_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MENU_ITEM_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MENU_ITEM_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ 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 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_BLOCK { pub LowId : u32 , pub HighId : u32 , pub OffsetToEntries : u32 } impl MESSAGE_RESOURCE_BLOCK { } impl :: std :: default :: Default for MESSAGE_RESOURCE_BLOCK { fn default ( ) -> Self { Self { LowId : 0 , HighId : 0 , OffsetToEntries : 0 } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_BLOCK { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_BLOCK" ) . field ( "LowId" , & self . LowId ) . field ( "HighId" , & self . HighId ) . field ( "OffsetToEntries" , & self . OffsetToEntries ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_BLOCK { fn eq ( & self , other : & Self ) -> bool { self . LowId == other . LowId && self . HighId == other . HighId && self . OffsetToEntries == other . OffsetToEntries } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_BLOCK { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_BLOCK { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_DATA { pub NumberOfBlocks : u32 , pub Blocks : [ MESSAGE_RESOURCE_BLOCK ;1 ] } impl MESSAGE_RESOURCE_DATA { } impl :: std :: default :: Default for MESSAGE_RESOURCE_DATA { fn default ( ) -> Self { Self { NumberOfBlocks : 0 , Blocks : [ :: std :: default :: Default :: default ( ) ;1 ] } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_DATA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_DATA" ) . field ( "NumberOfBlocks" , & self . NumberOfBlocks ) . field ( "Blocks" , & self . Blocks ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_DATA { fn eq ( & self , other : & Self ) -> bool { self . NumberOfBlocks == other . NumberOfBlocks && self . Blocks == other . Blocks } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_DATA { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_DATA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MESSAGE_RESOURCE_ENTRY { pub Length : u16 , pub Flags : u16 , pub Text : [ u8 ;1 ] } impl MESSAGE_RESOURCE_ENTRY { } impl :: std :: default :: Default for MESSAGE_RESOURCE_ENTRY { fn default ( ) -> Self { Self { Length : 0 , Flags : 0 , Text : [ 0 ;1 ] } } } impl :: std :: fmt :: Debug for MESSAGE_RESOURCE_ENTRY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MESSAGE_RESOURCE_ENTRY" ) . field ( "Length" , & self . Length ) . field ( "Flags" , & self . Flags ) . field ( "Text" , & self . Text ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MESSAGE_RESOURCE_ENTRY { fn eq ( & self , other : & Self ) -> bool { self . Length == other . Length && self . Flags == other . Flags && self . Text == other . Text } } impl :: std :: cmp :: Eq for MESSAGE_RESOURCE_ENTRY { } unsafe impl :: windows :: Abi for MESSAGE_RESOURCE_ENTRY { type Abi = Self ; type DefaultType = Self ; } pub const METRICS_USEDEFAULT : i32 = -1i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MINIMIZEDMETRICS { pub cbSize : u32 , pub iWidth : i32 , pub iHorzGap : i32 , pub iVertGap : i32 , pub iArrange : MINIMIZEDMETRICS_ARRANGE } impl MINIMIZEDMETRICS { } impl :: std :: default :: Default for MINIMIZEDMETRICS { fn default ( ) -> Self { Self { cbSize : 0 , iWidth : 0 , iHorzGap : 0 , iVertGap : 0 , iArrange : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MINIMIZEDMETRICS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MINIMIZEDMETRICS" ) . field ( "cbSize" , & self . cbSize ) . field ( "iWidth" , & self . iWidth ) . field ( "iHorzGap" , & self . iHorzGap ) . field ( "iVertGap" , & self . iVertGap ) . field ( "iArrange" , & self . iArrange ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MINIMIZEDMETRICS { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iWidth == other . iWidth && self . iHorzGap == other . iHorzGap && self . iVertGap == other . iVertGap && self . iArrange == other . iArrange } } impl :: std :: cmp :: Eq for MINIMIZEDMETRICS { } unsafe impl :: windows :: Abi for MINIMIZEDMETRICS { 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 MINIMIZEDMETRICS_ARRANGE ( pub i32 ) ; pub const ARW_BOTTOMLEFT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 0i32 ) ; pub const ARW_BOTTOMRIGHT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 1i32 ) ; pub const ARW_TOPLEFT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 2i32 ) ; pub const ARW_TOPRIGHT : MINIMIZEDMETRICS_ARRANGE = MINIMIZEDMETRICS_ARRANGE ( 3i32 ) ; impl :: std :: convert :: From < i32 > for MINIMIZEDMETRICS_ARRANGE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MINIMIZEDMETRICS_ARRANGE { type Abi = Self ; type DefaultType = Self ; } pub const MINIMUM_RESERVED_MANIFEST_RESOURCE_ID : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MINMAXINFO { pub ptReserved : super::super::Foundation:: POINT , pub ptMaxSize : super::super::Foundation:: POINT , pub ptMaxPosition : super::super::Foundation:: POINT , pub ptMinTrackSize : super::super::Foundation:: POINT , pub ptMaxTrackSize : super::super::Foundation:: POINT } impl MINMAXINFO { } impl :: std :: default :: Default for MINMAXINFO { fn default ( ) -> Self { Self { ptReserved : :: std :: default :: Default :: default ( ) , ptMaxSize : :: std :: default :: Default :: default ( ) , ptMaxPosition : :: std :: default :: Default :: default ( ) , ptMinTrackSize : :: std :: default :: Default :: default ( ) , ptMaxTrackSize : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MINMAXINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MINMAXINFO" ) . field ( "ptReserved" , & self . ptReserved ) . field ( "ptMaxSize" , & self . ptMaxSize ) . field ( "ptMaxPosition" , & self . ptMaxPosition ) . field ( "ptMinTrackSize" , & self . ptMinTrackSize ) . field ( "ptMaxTrackSize" , & self . ptMaxTrackSize ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MINMAXINFO { fn eq ( & self , other : & Self ) -> bool { self . ptReserved == other . ptReserved && self . ptMaxSize == other . ptMaxSize && self . ptMaxPosition == other . ptMaxPosition && self . ptMinTrackSize == other . ptMinTrackSize && self . ptMaxTrackSize == other . ptMaxTrackSize } } impl :: std :: cmp :: Eq for MINMAXINFO { } unsafe impl :: windows :: Abi for MINMAXINFO { type Abi = Self ; type DefaultType = Self ; } pub const MIN_LOGICALDPIOVERRIDE : i32 = -2i32 ; pub const MKF_AVAILABLE : u32 = 2u32 ; pub const MKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const MKF_HOTKEYACTIVE : u32 = 4u32 ; pub const MKF_HOTKEYSOUND : u32 = 16u32 ; pub const MKF_INDICATOR : u32 = 32u32 ; pub const MKF_LEFTBUTTONDOWN : u32 = 16777216u32 ; pub const MKF_LEFTBUTTONSEL : u32 = 268435456u32 ; pub const MKF_MODIFIERS : u32 = 64u32 ; pub const MKF_MOUSEKEYSON : u32 = 1u32 ; pub const MKF_MOUSEMODE : u32 = 2147483648u32 ; pub const MKF_REPLACENUMBERS : u32 = 128u32 ; pub const MKF_RIGHTBUTTONDOWN : u32 = 33554432u32 ; pub const MKF_RIGHTBUTTONSEL : u32 = 536870912u32 ; pub const MK_CONTROL : u32 = 8u32 ; pub const MK_LBUTTON : u32 = 1u32 ; pub const MK_MBUTTON : u32 = 16u32 ; pub const MK_RBUTTON : u32 = 2u32 ; pub const MK_SHIFT : u32 = 4u32 ; pub const MK_XBUTTON1 : u32 = 32u32 ; pub const MK_XBUTTON2 : u32 = 64u32 ; pub const MNC_CLOSE : u32 = 1u32 ; pub const MNC_EXECUTE : u32 = 2u32 ; pub const MNC_IGNORE : u32 = 0u32 ; pub const MNC_SELECT : u32 = 3u32 ; pub const MND_CONTINUE : u32 = 0u32 ; pub const MND_ENDMENU : u32 = 1u32 ; pub const MNGO_NOERROR : u32 = 1u32 ; pub const MNGO_NOINTERFACE : u32 = 0u32 ; pub const MN_GETHMENU : u32 = 481u32 ; pub const MONITORINFOF_PRIMARY : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MOUSEHOOKSTRUCT { pub pt : super::super::Foundation:: POINT , pub hwnd : super::super::Foundation:: HWND , pub wHitTestCode : u32 , pub dwExtraInfo : usize } impl MOUSEHOOKSTRUCT { } impl :: std :: default :: Default for MOUSEHOOKSTRUCT { fn default ( ) -> Self { Self { pt : :: std :: default :: Default :: default ( ) , hwnd : :: std :: default :: Default :: default ( ) , wHitTestCode : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for MOUSEHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MOUSEHOOKSTRUCT" ) . field ( "pt" , & self . pt ) . field ( "hwnd" , & self . hwnd ) . field ( "wHitTestCode" , & self . wHitTestCode ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MOUSEHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . pt == other . pt && self . hwnd == other . hwnd && self . wHitTestCode == other . wHitTestCode && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for MOUSEHOOKSTRUCT { } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MOUSEHOOKSTRUCTEX { pub __AnonymousBase_winuser_L1173_C46 : MOUSEHOOKSTRUCT , pub mouseData : MOUSEHOOKSTRUCTEX_MOUSE_DATA } impl MOUSEHOOKSTRUCTEX { } impl :: std :: default :: Default for MOUSEHOOKSTRUCTEX { fn default ( ) -> Self { Self { __AnonymousBase_winuser_L1173_C46 : :: std :: default :: Default :: default ( ) , mouseData : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MOUSEHOOKSTRUCTEX { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MOUSEHOOKSTRUCTEX" ) . field ( "__AnonymousBase_winuser_L1173_C46" , & self . __AnonymousBase_winuser_L1173_C46 ) . field ( "mouseData" , & self . mouseData ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MOUSEHOOKSTRUCTEX { fn eq ( & self , other : & Self ) -> bool { self . __AnonymousBase_winuser_L1173_C46 == other . __AnonymousBase_winuser_L1173_C46 && self . mouseData == other . mouseData } } impl :: std :: cmp :: Eq for MOUSEHOOKSTRUCTEX { } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCTEX { 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 MOUSEHOOKSTRUCTEX_MOUSE_DATA ( pub u32 ) ; pub const XBUTTON1 : MOUSEHOOKSTRUCTEX_MOUSE_DATA = MOUSEHOOKSTRUCTEX_MOUSE_DATA ( 1u32 ) ; pub const XBUTTON2 : MOUSEHOOKSTRUCTEX_MOUSE_DATA = MOUSEHOOKSTRUCTEX_MOUSE_DATA ( 2u32 ) ; impl :: std :: convert :: From < u32 > for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MOUSEHOOKSTRUCTEX_MOUSE_DATA { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MOUSEHOOKSTRUCTEX_MOUSE_DATA { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const MOUSEWHEEL_ROUTING_FOCUS : u32 = 0u32 ; pub const MOUSEWHEEL_ROUTING_HYBRID : u32 = 1u32 ; pub const MOUSEWHEEL_ROUTING_MOUSE_POS : u32 = 2u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MSG { pub hwnd : super::super::Foundation:: HWND , pub message : u32 , pub wParam : super::super::Foundation:: WPARAM , pub lParam : super::super::Foundation:: LPARAM , pub time : u32 , pub pt : super::super::Foundation:: POINT } impl MSG { } impl :: std :: default :: Default for MSG { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , message : 0 , wParam : :: std :: default :: Default :: default ( ) , lParam : :: std :: default :: Default :: default ( ) , time : 0 , pt : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MSG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSG" ) . field ( "hwnd" , & self . hwnd ) . field ( "message" , & self . message ) . field ( "wParam" , & self . wParam ) . field ( "lParam" , & self . lParam ) . field ( "time" , & self . time ) . field ( "pt" , & self . pt ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSG { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . message == other . message && self . wParam == other . wParam && self . lParam == other . lParam && self . time == other . time && self . pt == other . pt } } impl :: std :: cmp :: Eq for MSG { } unsafe impl :: windows :: Abi for MSG { type Abi = Self ; type DefaultType = Self ; } pub type MSGBOXCALLBACK = unsafe extern "system" fn ( lphelpinfo : * mut super::Shell:: HELPINFO ) ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct MSGBOXPARAMSA { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PSTR , pub lpszCaption : super::super::Foundation:: PSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: std :: option :: Option < MSGBOXCALLBACK > , pub dwLanguageId : u32 } impl MSGBOXPARAMSA { } impl :: std :: default :: Default for MSGBOXPARAMSA { fn default ( ) -> Self { Self { cbSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszText : :: std :: default :: Default :: default ( ) , lpszCaption : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , lpszIcon : :: std :: default :: Default :: default ( ) , dwContextHelpId : 0 , lpfnMsgBoxCallback : :: std :: default :: Default :: default ( ) , dwLanguageId : 0 } } } impl :: std :: fmt :: Debug for MSGBOXPARAMSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSGBOXPARAMSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszText" , & self . lpszText ) . field ( "lpszCaption" , & self . lpszCaption ) . field ( "dwStyle" , & self . dwStyle ) . field ( "lpszIcon" , & self . lpszIcon ) . field ( "dwContextHelpId" , & self . dwContextHelpId ) . field ( "dwLanguageId" , & self . dwLanguageId ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSGBOXPARAMSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpszText == other . lpszText && self . lpszCaption == other . lpszCaption && self . dwStyle == other . dwStyle && self . lpszIcon == other . lpszIcon && self . dwContextHelpId == other . dwContextHelpId && self . lpfnMsgBoxCallback . map ( | f | f as usize ) == other . lpfnMsgBoxCallback . map ( | f | f as usize ) && self . dwLanguageId == other . dwLanguageId } } impl :: std :: cmp :: Eq for MSGBOXPARAMSA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct MSGBOXPARAMSA_abi { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PSTR , pub lpszCaption : super::super::Foundation:: PSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: windows :: RawPtr , pub dwLanguageId : u32 } unsafe impl :: windows :: Abi for MSGBOXPARAMSA { type Abi = MSGBOXPARAMSA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct MSGBOXPARAMSW { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PWSTR , pub lpszCaption : super::super::Foundation:: PWSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PWSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: std :: option :: Option < MSGBOXCALLBACK > , pub dwLanguageId : u32 } impl MSGBOXPARAMSW { } impl :: std :: default :: Default for MSGBOXPARAMSW { fn default ( ) -> Self { Self { cbSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpszText : :: std :: default :: Default :: default ( ) , lpszCaption : :: std :: default :: Default :: default ( ) , dwStyle : :: std :: default :: Default :: default ( ) , lpszIcon : :: std :: default :: Default :: default ( ) , dwContextHelpId : 0 , lpfnMsgBoxCallback : :: std :: default :: Default :: default ( ) , dwLanguageId : 0 } } } impl :: std :: fmt :: Debug for MSGBOXPARAMSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSGBOXPARAMSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpszText" , & self . lpszText ) . field ( "lpszCaption" , & self . lpszCaption ) . field ( "dwStyle" , & self . dwStyle ) . field ( "lpszIcon" , & self . lpszIcon ) . field ( "dwContextHelpId" , & self . dwContextHelpId ) . field ( "dwLanguageId" , & self . dwLanguageId ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSGBOXPARAMSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpszText == other . lpszText && self . lpszCaption == other . lpszCaption && self . dwStyle == other . dwStyle && self . lpszIcon == other . lpszIcon && self . dwContextHelpId == other . dwContextHelpId && self . lpfnMsgBoxCallback . map ( | f | f as usize ) == other . lpfnMsgBoxCallback . map ( | f | f as usize ) && self . dwLanguageId == other . dwLanguageId } } impl :: std :: cmp :: Eq for MSGBOXPARAMSW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct MSGBOXPARAMSW_abi { pub cbSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpszText : super::super::Foundation:: PWSTR , pub lpszCaption : super::super::Foundation:: PWSTR , pub dwStyle : MESSAGEBOX_STYLE , pub lpszIcon : super::super::Foundation:: PWSTR , pub dwContextHelpId : usize , pub lpfnMsgBoxCallback : :: windows :: RawPtr , pub dwLanguageId : u32 } unsafe impl :: windows :: Abi for MSGBOXPARAMSW { type Abi = MSGBOXPARAMSW_abi ; 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 MSGFLTINFO_STATUS ( pub u32 ) ; pub const MSGFLTINFO_NONE : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 0u32 ) ; pub const MSGFLTINFO_ALLOWED_HIGHER : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 3u32 ) ; pub const MSGFLTINFO_ALREADYALLOWED_FORWND : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 1u32 ) ; pub const MSGFLTINFO_ALREADYDISALLOWED_FORWND : MSGFLTINFO_STATUS = MSGFLTINFO_STATUS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for MSGFLTINFO_STATUS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MSGFLTINFO_STATUS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for MSGFLTINFO_STATUS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for MSGFLTINFO_STATUS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for MSGFLTINFO_STATUS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for MSGFLTINFO_STATUS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const MSGF_DIALOGBOX : u32 = 0u32 ; pub const MSGF_MAX : u32 = 8u32 ; pub const MSGF_MENU : u32 = 2u32 ; pub const MSGF_MESSAGEBOX : u32 = 1u32 ; pub const MSGF_NEXTWINDOW : u32 = 6u32 ; pub const MSGF_SCROLLBAR : u32 = 5u32 ; pub const MSGF_USER : u32 = 4096u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MSLLHOOKSTRUCT { pub pt : super::super::Foundation:: POINT , pub mouseData : MOUSEHOOKSTRUCTEX_MOUSE_DATA , pub flags : u32 , pub time : u32 , pub dwExtraInfo : usize } impl MSLLHOOKSTRUCT { } impl :: std :: default :: Default for MSLLHOOKSTRUCT { fn default ( ) -> Self { Self { pt : :: std :: default :: Default :: default ( ) , mouseData : :: std :: default :: Default :: default ( ) , flags : 0 , time : 0 , dwExtraInfo : 0 } } } impl :: std :: fmt :: Debug for MSLLHOOKSTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MSLLHOOKSTRUCT" ) . field ( "pt" , & self . pt ) . field ( "mouseData" , & self . mouseData ) . field ( "flags" , & self . flags ) . field ( "time" , & self . time ) . field ( "dwExtraInfo" , & self . dwExtraInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MSLLHOOKSTRUCT { fn eq ( & self , other : & Self ) -> bool { self . pt == other . pt && self . mouseData == other . mouseData && self . flags == other . flags && self . time == other . time && self . dwExtraInfo == other . dwExtraInfo } } impl :: std :: cmp :: Eq for MSLLHOOKSTRUCT { } unsafe impl :: windows :: Abi for MSLLHOOKSTRUCT { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MapDialogRect < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lprect : * mut super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MapDialogRect ( hdlg : super::super::Foundation:: HWND , lprect : * mut super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } MapDialogRect ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lprect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MenuItemFromPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ptscreen : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MenuItemFromPoint ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU , ptscreen : super::super::Foundation:: POINT ) -> i32 ; } MenuItemFromPoint ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) , ptscreen . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , 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 ; } MessageBoxA ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxExA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , utype : MESSAGEBOX_STYLE , wlanguageid : u16 , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxExA ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PSTR , lpcaption : super::super::Foundation:: PSTR , utype : MESSAGEBOX_STYLE , wlanguageid : u16 ) -> MESSAGEBOX_RESULT ; } MessageBoxExA ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) , :: std :: mem :: transmute ( wlanguageid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxExW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , utype : MESSAGEBOX_STYLE , wlanguageid : u16 , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxExW ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PWSTR , lpcaption : super::super::Foundation:: PWSTR , utype : MESSAGEBOX_STYLE , wlanguageid : u16 ) -> MESSAGEBOX_RESULT ; } MessageBoxExW ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) , :: std :: mem :: transmute ( wlanguageid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxIndirectA < > ( lpmbp : * const MSGBOXPARAMSA , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxIndirectA ( lpmbp : * const MSGBOXPARAMSA_abi ) -> MESSAGEBOX_RESULT ; } MessageBoxIndirectA ( :: std :: mem :: transmute ( lpmbp ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxIndirectW < > ( lpmbp : * const MSGBOXPARAMSW , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxIndirectW ( lpmbp : * const MSGBOXPARAMSW_abi ) -> MESSAGEBOX_RESULT ; } MessageBoxIndirectW ( :: std :: mem :: transmute ( lpmbp ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MessageBoxW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptext : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , lpcaption : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , utype : MESSAGEBOX_STYLE , ) -> MESSAGEBOX_RESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MessageBoxW ( hwnd : super::super::Foundation:: HWND , lptext : super::super::Foundation:: PWSTR , lpcaption : super::super::Foundation:: PWSTR , utype : MESSAGEBOX_STYLE ) -> MESSAGEBOX_RESULT ; } MessageBoxW ( hwnd . into_param ( ) . abi ( ) , lptext . into_param ( ) . abi ( ) , lpcaption . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( utype ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ModifyMenuA < 'a , > ( hmnu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ModifyMenuA ( hmnu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } ModifyMenuA ( hmnu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ModifyMenuW < 'a , > ( hmnu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ModifyMenuW ( hmnu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , uidnewitem : usize , lpnewitem : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } ModifyMenuW ( hmnu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( uidnewitem ) , lpnewitem . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MoveWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , brepaint : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn MoveWindow ( hwnd : super::super::Foundation:: HWND , x : i32 , y : i32 , nwidth : i32 , nheight : i32 , brepaint : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } MoveWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nwidth ) , :: std :: mem :: transmute ( nheight ) , brepaint . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateConfig < 'a , > ( platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , outputxmlfile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateConfig ( platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , outputxmlfile : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmCreateConfig ( :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , outputxmlfile . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateConfigInMemory < 'a , > ( platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateConfigInMemory ( platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmCreateConfigInMemory ( :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceFile < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputdirectory : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceFile ( indexer : MrmResourceIndexerHandle , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputdirectory : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmCreateResourceFile ( indexer . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( packagingmode ) , :: std :: mem :: transmute ( packagingoptions ) , outputdirectory . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceFileInMemory < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputpridata : * mut * mut u8 , outputprisize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceFileInMemory ( indexer : MrmResourceIndexerHandle , packagingmode : MrmPackagingMode , packagingoptions : MrmPackagingOptions , outputpridata : * mut * mut u8 , outputprisize : * mut u32 ) -> :: windows :: HRESULT ; } MrmCreateResourceFileInMemory ( indexer . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( packagingmode ) , :: std :: mem :: transmute ( packagingoptions ) , :: std :: mem :: transmute ( outputpridata ) , :: std :: mem :: transmute ( outputprisize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexer < 'a , > ( packagefamilyname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexer ( packagefamilyname : super::super::Foundation:: PWSTR , projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexer ( packagefamilyname . into_param ( ) . abi ( ) , projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousPriData < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , pridata : * mut u8 , prisize : u32 , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousPriData ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , pridata : * mut u8 , prisize : u32 , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousPriData ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pridata ) , :: std :: mem :: transmute ( prisize ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousPriFile < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , prifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousPriFile ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , prifile : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousPriFile ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , prifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaData < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaxmldata : * mut u8 , schemaxmlsize : u32 , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousSchemaData ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , schemaxmldata : * mut u8 , schemaxmlsize : u32 , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousSchemaData ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( schemaxmldata ) , :: std :: mem :: transmute ( schemaxmlsize ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmCreateResourceIndexerFromPreviousSchemaFile < 'a , > ( projectroot : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , platformversion : MrmPlatformVersion , defaultqualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemafile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , indexer : * mut MrmResourceIndexerHandle , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmCreateResourceIndexerFromPreviousSchemaFile ( projectroot : super::super::Foundation:: PWSTR , platformversion : MrmPlatformVersion , defaultqualifiers : super::super::Foundation:: PWSTR , schemafile : super::super::Foundation:: PWSTR , indexer : * mut MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmCreateResourceIndexerFromPreviousSchemaFile ( projectroot . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( platformversion ) , defaultqualifiers . into_param ( ) . abi ( ) , schemafile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( indexer ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDestroyIndexerAndMessages < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDestroyIndexerAndMessages ( indexer : MrmResourceIndexerHandle ) -> :: windows :: HRESULT ; } MrmDestroyIndexerAndMessages ( indexer . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriDataInMemory < > ( inputpridata : * mut u8 , inputprisize : u32 , schemapridata : * mut u8 , schemaprisize : u32 , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriDataInMemory ( inputpridata : * mut u8 , inputprisize : u32 , schemapridata : * mut u8 , schemaprisize : u32 , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmDumpPriDataInMemory ( :: std :: mem :: transmute ( inputpridata ) , :: std :: mem :: transmute ( inputprisize ) , :: std :: mem :: transmute ( schemapridata ) , :: std :: mem :: transmute ( schemaprisize ) , :: std :: mem :: transmute ( dumptype ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriFile < 'a , > ( indexfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaprifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dumptype : MrmDumpType , outputxmlfile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriFile ( indexfilename : super::super::Foundation:: PWSTR , schemaprifile : super::super::Foundation:: PWSTR , dumptype : MrmDumpType , outputxmlfile : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmDumpPriFile ( indexfilename . into_param ( ) . abi ( ) , schemaprifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dumptype ) , outputxmlfile . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmDumpPriFileInMemory < 'a , > ( indexfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , schemaprifile : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmDumpPriFileInMemory ( indexfilename : super::super::Foundation:: PWSTR , schemaprifile : super::super::Foundation:: PWSTR , dumptype : MrmDumpType , outputxmldata : * mut * mut u8 , outputxmlsize : * mut u32 ) -> :: windows :: HRESULT ; } MrmDumpPriFileInMemory ( indexfilename . into_param ( ) . abi ( ) , schemaprifile . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dumptype ) , :: std :: mem :: transmute ( outputxmldata ) , :: std :: mem :: transmute ( outputxmlsize ) ) . ok ( ) } # [ 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 MrmDumpType ( pub i32 ) ; pub const MrmDumpType_Basic : MrmDumpType = MrmDumpType ( 0i32 ) ; pub const MrmDumpType_Detailed : MrmDumpType = MrmDumpType ( 1i32 ) ; pub const MrmDumpType_Schema : MrmDumpType = MrmDumpType ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmDumpType { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmDumpType { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MrmFreeMemory < > ( data : * mut u8 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmFreeMemory ( data : * mut u8 ) -> :: windows :: HRESULT ; } MrmFreeMemory ( :: std :: mem :: transmute ( data ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexEmbeddedData < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , embeddeddata : * const u8 , embeddeddatasize : u32 , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexEmbeddedData ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , embeddeddata : * const u8 , embeddeddatasize : u32 , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexEmbeddedData ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( embeddeddata ) , :: std :: mem :: transmute ( embeddeddatasize ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexFile < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexFile ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , filepath : super::super::Foundation:: PWSTR , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexFile ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , filepath . into_param ( ) . abi ( ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexFileAutoQualifiers < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , filepath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexFileAutoQualifiers ( indexer : MrmResourceIndexerHandle , filepath : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexFileAutoQualifiers ( indexer . into_param ( ) . abi ( ) , filepath . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexResourceContainerAutoQualifiers < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , containerpath : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexResourceContainerAutoQualifiers ( indexer : MrmResourceIndexerHandle , containerpath : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexResourceContainerAutoQualifiers ( indexer . into_param ( ) . abi ( ) , containerpath . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn MrmIndexString < 'a , > ( indexer : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , resourceuri : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , resourcestring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , qualifiers : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmIndexString ( indexer : MrmResourceIndexerHandle , resourceuri : super::super::Foundation:: PWSTR , resourcestring : super::super::Foundation:: PWSTR , qualifiers : super::super::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } MrmIndexString ( indexer . into_param ( ) . abi ( ) , resourceuri . into_param ( ) . abi ( ) , resourcestring . into_param ( ) . abi ( ) , qualifiers . into_param ( ) . abi ( ) ) . ok ( ) } # [ 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 MrmPackagingMode ( pub i32 ) ; pub const MrmPackagingModeStandaloneFile : MrmPackagingMode = MrmPackagingMode ( 0i32 ) ; pub const MrmPackagingModeAutoSplit : MrmPackagingMode = MrmPackagingMode ( 1i32 ) ; pub const MrmPackagingModeResourcePack : MrmPackagingMode = MrmPackagingMode ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmPackagingMode { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPackagingMode { 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 MrmPackagingOptions ( pub i32 ) ; pub const MrmPackagingOptionsNone : MrmPackagingOptions = MrmPackagingOptions ( 0i32 ) ; pub const MrmPackagingOptionsOmitSchemaFromResourcePacks : MrmPackagingOptions = MrmPackagingOptions ( 1i32 ) ; pub const MrmPackagingOptionsSplitLanguageVariants : MrmPackagingOptions = MrmPackagingOptions ( 2i32 ) ; impl :: std :: convert :: From < i32 > for MrmPackagingOptions { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPackagingOptions { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn MrmPeekResourceIndexerMessages < 'a , > ( handle : impl :: windows :: IntoParam < 'a , MrmResourceIndexerHandle > , messages : * mut * mut MrmResourceIndexerMessage , nummsgs : * mut u32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="MrmSupport" ) ] extern "system" { fn MrmPeekResourceIndexerMessages ( handle : MrmResourceIndexerHandle , messages : * mut * mut MrmResourceIndexerMessage , nummsgs : * mut u32 ) -> :: windows :: HRESULT ; } MrmPeekResourceIndexerMessages ( handle . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( messages ) , :: std :: mem :: transmute ( nummsgs ) ) . ok ( ) } # [ 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 MrmPlatformVersion ( pub i32 ) ; pub const MrmPlatformVersion_Default : MrmPlatformVersion = MrmPlatformVersion ( 0i32 ) ; pub const MrmPlatformVersion_Windows10_0_0_0 : MrmPlatformVersion = MrmPlatformVersion ( 17432576i32 ) ; pub const MrmPlatformVersion_Windows10_0_0_5 : MrmPlatformVersion = MrmPlatformVersion ( 17432581i32 ) ; impl :: std :: convert :: From < i32 > for MrmPlatformVersion { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmPlatformVersion { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MrmResourceIndexerHandle { pub handle : * mut :: std :: ffi :: c_void } impl MrmResourceIndexerHandle { } impl :: std :: default :: Default for MrmResourceIndexerHandle { fn default ( ) -> Self { Self { handle : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for MrmResourceIndexerHandle { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MrmResourceIndexerHandle" ) . field ( "handle" , & self . handle ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MrmResourceIndexerHandle { fn eq ( & self , other : & Self ) -> bool { self . handle == other . handle } } impl :: std :: cmp :: Eq for MrmResourceIndexerHandle { } unsafe impl :: windows :: Abi for MrmResourceIndexerHandle { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct MrmResourceIndexerMessage { pub severity : MrmResourceIndexerMessageSeverity , pub id : u32 , pub text : super::super::Foundation:: PWSTR } impl MrmResourceIndexerMessage { } impl :: std :: default :: Default for MrmResourceIndexerMessage { fn default ( ) -> Self { Self { severity : :: std :: default :: Default :: default ( ) , id : 0 , text : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for MrmResourceIndexerMessage { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "MrmResourceIndexerMessage" ) . field ( "severity" , & self . severity ) . field ( "id" , & self . id ) . field ( "text" , & self . text ) . finish ( ) } } impl :: std :: cmp :: PartialEq for MrmResourceIndexerMessage { fn eq ( & self , other : & Self ) -> bool { self . severity == other . severity && self . id == other . id && self . text == other . text } } impl :: std :: cmp :: Eq for MrmResourceIndexerMessage { } unsafe impl :: windows :: Abi for MrmResourceIndexerMessage { 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 MrmResourceIndexerMessageSeverity ( pub i32 ) ; pub const MrmResourceIndexerMessageSeverityVerbose : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 0i32 ) ; pub const MrmResourceIndexerMessageSeverityInfo : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 1i32 ) ; pub const MrmResourceIndexerMessageSeverityWarning : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 2i32 ) ; pub const MrmResourceIndexerMessageSeverityError : MrmResourceIndexerMessageSeverity = MrmResourceIndexerMessageSeverity ( 3i32 ) ; impl :: std :: convert :: From < i32 > for MrmResourceIndexerMessageSeverity { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for MrmResourceIndexerMessageSeverity { type Abi = Self ; type DefaultType = Self ; } pub type NAMEENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type NAMEENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NCCALCSIZE_PARAMS { pub rgrc : [ super::super::Foundation:: RECT ;3 ] , pub lppos : * mut WINDOWPOS } impl NCCALCSIZE_PARAMS { } impl :: std :: default :: Default for NCCALCSIZE_PARAMS { fn default ( ) -> Self { Self { rgrc : [ :: std :: default :: Default :: default ( ) ;3 ] , lppos : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for NCCALCSIZE_PARAMS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NCCALCSIZE_PARAMS" ) . field ( "rgrc" , & self . rgrc ) . field ( "lppos" , & self . lppos ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NCCALCSIZE_PARAMS { fn eq ( & self , other : & Self ) -> bool { self . rgrc == other . rgrc && self . lppos == other . lppos } } impl :: std :: cmp :: Eq for NCCALCSIZE_PARAMS { } unsafe impl :: windows :: Abi for NCCALCSIZE_PARAMS { type Abi = Self ; type DefaultType = Self ; } pub const NFR_ANSI : u32 = 1u32 ; pub const NFR_UNICODE : u32 = 2u32 ; pub const NF_QUERY : u32 = 3u32 ; pub const NF_REQUERY : u32 = 4u32 ; pub const NID_EXTERNAL_PEN : u32 = 8u32 ; pub const NID_EXTERNAL_TOUCH : u32 = 2u32 ; pub const NID_INTEGRATED_PEN : u32 = 4u32 ; pub const NID_INTEGRATED_TOUCH : u32 = 1u32 ; pub const NID_MULTI_INPUT : u32 = 64u32 ; pub const NID_READY : u32 = 128u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NONCLIENTMETRICSA { pub cbSize : u32 , pub iBorderWidth : i32 , pub iScrollWidth : i32 , pub iScrollHeight : i32 , pub iCaptionWidth : i32 , pub iCaptionHeight : i32 , pub lfCaptionFont : super::super::Graphics::Gdi:: LOGFONTA , pub iSmCaptionWidth : i32 , pub iSmCaptionHeight : i32 , pub lfSmCaptionFont : super::super::Graphics::Gdi:: LOGFONTA , pub iMenuWidth : i32 , pub iMenuHeight : i32 , pub lfMenuFont : super::super::Graphics::Gdi:: LOGFONTA , pub lfStatusFont : super::super::Graphics::Gdi:: LOGFONTA , pub lfMessageFont : super::super::Graphics::Gdi:: LOGFONTA , pub iPaddedBorderWidth : i32 } impl NONCLIENTMETRICSA { } impl :: std :: default :: Default for NONCLIENTMETRICSA { fn default ( ) -> Self { Self { cbSize : 0 , iBorderWidth : 0 , iScrollWidth : 0 , iScrollHeight : 0 , iCaptionWidth : 0 , iCaptionHeight : 0 , lfCaptionFont : :: std :: default :: Default :: default ( ) , iSmCaptionWidth : 0 , iSmCaptionHeight : 0 , lfSmCaptionFont : :: std :: default :: Default :: default ( ) , iMenuWidth : 0 , iMenuHeight : 0 , lfMenuFont : :: std :: default :: Default :: default ( ) , lfStatusFont : :: std :: default :: Default :: default ( ) , lfMessageFont : :: std :: default :: Default :: default ( ) , iPaddedBorderWidth : 0 } } } impl :: std :: fmt :: Debug for NONCLIENTMETRICSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NONCLIENTMETRICSA" ) . field ( "cbSize" , & self . cbSize ) . field ( "iBorderWidth" , & self . iBorderWidth ) . field ( "iScrollWidth" , & self . iScrollWidth ) . field ( "iScrollHeight" , & self . iScrollHeight ) . field ( "iCaptionWidth" , & self . iCaptionWidth ) . field ( "iCaptionHeight" , & self . iCaptionHeight ) . field ( "lfCaptionFont" , & self . lfCaptionFont ) . field ( "iSmCaptionWidth" , & self . iSmCaptionWidth ) . field ( "iSmCaptionHeight" , & self . iSmCaptionHeight ) . field ( "lfSmCaptionFont" , & self . lfSmCaptionFont ) . field ( "iMenuWidth" , & self . iMenuWidth ) . field ( "iMenuHeight" , & self . iMenuHeight ) . field ( "lfMenuFont" , & self . lfMenuFont ) . field ( "lfStatusFont" , & self . lfStatusFont ) . field ( "lfMessageFont" , & self . lfMessageFont ) . field ( "iPaddedBorderWidth" , & self . iPaddedBorderWidth ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NONCLIENTMETRICSA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iBorderWidth == other . iBorderWidth && self . iScrollWidth == other . iScrollWidth && self . iScrollHeight == other . iScrollHeight && self . iCaptionWidth == other . iCaptionWidth && self . iCaptionHeight == other . iCaptionHeight && self . lfCaptionFont == other . lfCaptionFont && self . iSmCaptionWidth == other . iSmCaptionWidth && self . iSmCaptionHeight == other . iSmCaptionHeight && self . lfSmCaptionFont == other . lfSmCaptionFont && self . iMenuWidth == other . iMenuWidth && self . iMenuHeight == other . iMenuHeight && self . lfMenuFont == other . lfMenuFont && self . lfStatusFont == other . lfStatusFont && self . lfMessageFont == other . lfMessageFont && self . iPaddedBorderWidth == other . iPaddedBorderWidth } } impl :: std :: cmp :: Eq for NONCLIENTMETRICSA { } unsafe impl :: windows :: Abi for NONCLIENTMETRICSA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct NONCLIENTMETRICSW { pub cbSize : u32 , pub iBorderWidth : i32 , pub iScrollWidth : i32 , pub iScrollHeight : i32 , pub iCaptionWidth : i32 , pub iCaptionHeight : i32 , pub lfCaptionFont : super::super::Graphics::Gdi:: LOGFONTW , pub iSmCaptionWidth : i32 , pub iSmCaptionHeight : i32 , pub lfSmCaptionFont : super::super::Graphics::Gdi:: LOGFONTW , pub iMenuWidth : i32 , pub iMenuHeight : i32 , pub lfMenuFont : super::super::Graphics::Gdi:: LOGFONTW , pub lfStatusFont : super::super::Graphics::Gdi:: LOGFONTW , pub lfMessageFont : super::super::Graphics::Gdi:: LOGFONTW , pub iPaddedBorderWidth : i32 } impl NONCLIENTMETRICSW { } impl :: std :: default :: Default for NONCLIENTMETRICSW { fn default ( ) -> Self { Self { cbSize : 0 , iBorderWidth : 0 , iScrollWidth : 0 , iScrollHeight : 0 , iCaptionWidth : 0 , iCaptionHeight : 0 , lfCaptionFont : :: std :: default :: Default :: default ( ) , iSmCaptionWidth : 0 , iSmCaptionHeight : 0 , lfSmCaptionFont : :: std :: default :: Default :: default ( ) , iMenuWidth : 0 , iMenuHeight : 0 , lfMenuFont : :: std :: default :: Default :: default ( ) , lfStatusFont : :: std :: default :: Default :: default ( ) , lfMessageFont : :: std :: default :: Default :: default ( ) , iPaddedBorderWidth : 0 } } } impl :: std :: fmt :: Debug for NONCLIENTMETRICSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "NONCLIENTMETRICSW" ) . field ( "cbSize" , & self . cbSize ) . field ( "iBorderWidth" , & self . iBorderWidth ) . field ( "iScrollWidth" , & self . iScrollWidth ) . field ( "iScrollHeight" , & self . iScrollHeight ) . field ( "iCaptionWidth" , & self . iCaptionWidth ) . field ( "iCaptionHeight" , & self . iCaptionHeight ) . field ( "lfCaptionFont" , & self . lfCaptionFont ) . field ( "iSmCaptionWidth" , & self . iSmCaptionWidth ) . field ( "iSmCaptionHeight" , & self . iSmCaptionHeight ) . field ( "lfSmCaptionFont" , & self . lfSmCaptionFont ) . field ( "iMenuWidth" , & self . iMenuWidth ) . field ( "iMenuHeight" , & self . iMenuHeight ) . field ( "lfMenuFont" , & self . lfMenuFont ) . field ( "lfStatusFont" , & self . lfStatusFont ) . field ( "lfMessageFont" , & self . lfMessageFont ) . field ( "iPaddedBorderWidth" , & self . iPaddedBorderWidth ) . finish ( ) } } impl :: std :: cmp :: PartialEq for NONCLIENTMETRICSW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . iBorderWidth == other . iBorderWidth && self . iScrollWidth == other . iScrollWidth && self . iScrollHeight == other . iScrollHeight && self . iCaptionWidth == other . iCaptionWidth && self . iCaptionHeight == other . iCaptionHeight && self . lfCaptionFont == other . lfCaptionFont && self . iSmCaptionWidth == other . iSmCaptionWidth && self . iSmCaptionHeight == other . iSmCaptionHeight && self . lfSmCaptionFont == other . lfSmCaptionFont && self . iMenuWidth == other . iMenuWidth && self . iMenuHeight == other . iMenuHeight && self . lfMenuFont == other . lfMenuFont && self . lfStatusFont == other . lfStatusFont && self . lfMessageFont == other . lfMessageFont && self . iPaddedBorderWidth == other . iPaddedBorderWidth } } impl :: std :: cmp :: Eq for NONCLIENTMETRICSW { } unsafe impl :: windows :: Abi for NONCLIENTMETRICSW { type Abi = Self ; type DefaultType = Self ; } pub const OBM_BTNCORNERS : u32 = 32758u32 ; pub const OBM_BTSIZE : u32 = 32761u32 ; pub const OBM_CHECK : u32 = 32760u32 ; pub const OBM_CHECKBOXES : u32 = 32759u32 ; pub const OBM_CLOSE : u32 = 32754u32 ; pub const OBM_COMBO : u32 = 32738u32 ; pub const OBM_DNARROW : u32 = 32752u32 ; pub const OBM_DNARROWD : u32 = 32742u32 ; pub const OBM_DNARROWI : u32 = 32736u32 ; pub const OBM_LFARROW : u32 = 32750u32 ; pub const OBM_LFARROWD : u32 = 32740u32 ; pub const OBM_LFARROWI : u32 = 32734u32 ; pub const OBM_MNARROW : u32 = 32739u32 ; pub const OBM_OLD_CLOSE : u32 = 32767u32 ; pub const OBM_OLD_DNARROW : u32 = 32764u32 ; pub const OBM_OLD_LFARROW : u32 = 32762u32 ; pub const OBM_OLD_REDUCE : u32 = 32757u32 ; pub const OBM_OLD_RESTORE : u32 = 32755u32 ; pub const OBM_OLD_RGARROW : u32 = 32763u32 ; pub const OBM_OLD_UPARROW : u32 = 32765u32 ; pub const OBM_OLD_ZOOM : u32 = 32756u32 ; pub const OBM_REDUCE : u32 = 32749u32 ; pub const OBM_REDUCED : u32 = 32746u32 ; pub const OBM_RESTORE : u32 = 32747u32 ; pub const OBM_RESTORED : u32 = 32744u32 ; pub const OBM_RGARROW : u32 = 32751u32 ; pub const OBM_RGARROWD : u32 = 32741u32 ; pub const OBM_RGARROWI : u32 = 32735u32 ; pub const OBM_SIZE : u32 = 32766u32 ; pub const OBM_UPARROW : u32 = 32753u32 ; pub const OBM_UPARROWD : u32 = 32743u32 ; pub const OBM_UPARROWI : u32 = 32737u32 ; pub const OBM_ZOOM : u32 = 32748u32 ; pub const OBM_ZOOMD : u32 = 32745u32 ; pub const OCR_ICOCUR : u32 = 32647u32 ; pub const OCR_ICON : u32 = 32641u32 ; pub const OCR_SIZE : u32 = 32640u32 ; pub const ODA_DRAWENTIRE : u32 = 1u32 ; pub const ODA_FOCUS : u32 = 4u32 ; pub const ODA_SELECT : u32 = 2u32 ; pub const ODS_CHECKED : u32 = 8u32 ; pub const ODS_COMBOBOXEDIT : u32 = 4096u32 ; pub const ODS_DEFAULT : u32 = 32u32 ; pub const ODS_DISABLED : u32 = 4u32 ; pub const ODS_FOCUS : u32 = 16u32 ; pub const ODS_GRAYED : u32 = 2u32 ; pub const ODS_HOTLIGHT : u32 = 64u32 ; pub const ODS_INACTIVE : u32 = 128u32 ; pub const ODS_NOACCEL : u32 = 256u32 ; pub const ODS_NOFOCUSRECT : u32 = 512u32 ; pub const ODS_SELECTED : u32 = 1u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYA { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEA , pub pszFile : super::super::Foundation:: PSTR } impl OFNOTIFYA { } impl :: std :: default :: Default for OFNOTIFYA { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , pszFile : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYA" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "pszFile" , & self . pszFile ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYA { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . pszFile == other . pszFile } } impl :: std :: cmp :: Eq for OFNOTIFYA { } unsafe impl :: windows :: Abi for OFNOTIFYA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYEXA { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEA , pub psf : * mut :: std :: ffi :: c_void , pub pidl : * mut :: std :: ffi :: c_void } impl OFNOTIFYEXA { } impl :: std :: default :: Default for OFNOTIFYEXA { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , psf : :: std :: ptr :: null_mut ( ) , pidl : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYEXA" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "psf" , & self . psf ) . field ( "pidl" , & self . pidl ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYEXA { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . psf == other . psf && self . pidl == other . pidl } } impl :: std :: cmp :: Eq for OFNOTIFYEXA { } unsafe impl :: windows :: Abi for OFNOTIFYEXA { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYEXW { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEW , pub psf : * mut :: std :: ffi :: c_void , pub pidl : * mut :: std :: ffi :: c_void } impl OFNOTIFYEXW { } impl :: std :: default :: Default for OFNOTIFYEXW { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , psf : :: std :: ptr :: null_mut ( ) , pidl : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYEXW" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "psf" , & self . psf ) . field ( "pidl" , & self . pidl ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYEXW { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . psf == other . psf && self . pidl == other . pidl } } impl :: std :: cmp :: Eq for OFNOTIFYEXW { } unsafe impl :: windows :: Abi for OFNOTIFYEXW { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct OFNOTIFYW { pub hdr : super::Controls:: NMHDR , pub lpOFN : * mut OPENFILENAMEW , pub pszFile : super::super::Foundation:: PWSTR } impl OFNOTIFYW { } impl :: std :: default :: Default for OFNOTIFYW { fn default ( ) -> Self { Self { hdr : :: std :: default :: Default :: default ( ) , lpOFN : :: std :: ptr :: null_mut ( ) , pszFile : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OFNOTIFYW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OFNOTIFYW" ) . field ( "hdr" , & self . hdr ) . field ( "lpOFN" , & self . lpOFN ) . field ( "pszFile" , & self . pszFile ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OFNOTIFYW { fn eq ( & self , other : & Self ) -> bool { self . hdr == other . hdr && self . lpOFN == other . lpOFN && self . pszFile == other . pszFile } } impl :: std :: cmp :: Eq for OFNOTIFYW { } unsafe impl :: windows :: Abi for OFNOTIFYW { type Abi = Self ; type DefaultType = Self ; } pub const OFN_SHAREFALLTHROUGH : u32 = 2u32 ; pub const OFN_SHARENOWARN : u32 = 1u32 ; pub const OFN_SHAREWARN : u32 = 0u32 ; pub const OIC_BANG : u32 = 32515u32 ; pub const OIC_HAND : u32 = 32513u32 ; pub const OIC_NOTE : u32 = 32516u32 ; pub const OIC_QUES : u32 = 32514u32 ; pub const OIC_SAMPLE : u32 = 32512u32 ; pub const OIC_SHIELD : u32 = 32518u32 ; pub const OIC_WINLOGO : u32 = 32517u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAMEA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } impl OPENFILENAMEA { } impl :: std :: default :: Default for OPENFILENAMEA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , pvReserved : :: std :: ptr :: null_mut ( ) , dwReserved : 0 , FlagsEx : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAMEA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAMEA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "pvReserved" , & self . pvReserved ) . field ( "dwReserved" , & self . dwReserved ) . field ( "FlagsEx" , & self . FlagsEx ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAMEA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . pvReserved == other . pvReserved && self . dwReserved == other . dwReserved && self . FlagsEx == other . FlagsEx } } impl :: std :: cmp :: Eq for OPENFILENAMEA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAMEA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } unsafe impl :: windows :: Abi for OPENFILENAMEA { type Abi = OPENFILENAMEA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAMEW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } impl OPENFILENAMEW { } impl :: std :: default :: Default for OPENFILENAMEW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) , pvReserved : :: std :: ptr :: null_mut ( ) , dwReserved : 0 , FlagsEx : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAMEW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAMEW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . field ( "pvReserved" , & self . pvReserved ) . field ( "dwReserved" , & self . dwReserved ) . field ( "FlagsEx" , & self . FlagsEx ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAMEW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName && self . pvReserved == other . pvReserved && self . dwReserved == other . dwReserved && self . FlagsEx == other . FlagsEx } } impl :: std :: cmp :: Eq for OPENFILENAMEW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAMEW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : OPEN_FILENAME_FLAGS , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR , pub pvReserved : * mut :: std :: ffi :: c_void , pub dwReserved : u32 , pub FlagsEx : OPEN_FILENAME_FLAGS_EX } unsafe impl :: windows :: Abi for OPENFILENAMEW { type Abi = OPENFILENAMEW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAME_NT4A { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PSTR } impl OPENFILENAME_NT4A { } impl :: std :: default :: Default for OPENFILENAME_NT4A { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : 0 , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAME_NT4A { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAME_NT4A" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAME_NT4A { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for OPENFILENAME_NT4A { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAME_NT4A_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PSTR , pub lpstrCustomFilter : super::super::Foundation:: PSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PSTR , pub lpstrTitle : super::super::Foundation:: PSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for OPENFILENAME_NT4A { type Abi = OPENFILENAME_NT4A_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct OPENFILENAME_NT4W { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: std :: option :: Option < LPOFNHOOKPROC > , pub lpTemplateName : super::super::Foundation:: PWSTR } impl OPENFILENAME_NT4W { } impl :: std :: default :: Default for OPENFILENAME_NT4W { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lpstrFilter : :: std :: default :: Default :: default ( ) , lpstrCustomFilter : :: std :: default :: Default :: default ( ) , nMaxCustFilter : 0 , nFilterIndex : 0 , lpstrFile : :: std :: default :: Default :: default ( ) , nMaxFile : 0 , lpstrFileTitle : :: std :: default :: Default :: default ( ) , nMaxFileTitle : 0 , lpstrInitialDir : :: std :: default :: Default :: default ( ) , lpstrTitle : :: std :: default :: Default :: default ( ) , Flags : 0 , nFileOffset : 0 , nFileExtension : 0 , lpstrDefExt : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnHook : :: std :: default :: Default :: default ( ) , lpTemplateName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for OPENFILENAME_NT4W { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "OPENFILENAME_NT4W" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hInstance" , & self . hInstance ) . field ( "lpstrFilter" , & self . lpstrFilter ) . field ( "lpstrCustomFilter" , & self . lpstrCustomFilter ) . field ( "nMaxCustFilter" , & self . nMaxCustFilter ) . field ( "nFilterIndex" , & self . nFilterIndex ) . field ( "lpstrFile" , & self . lpstrFile ) . field ( "nMaxFile" , & self . nMaxFile ) . field ( "lpstrFileTitle" , & self . lpstrFileTitle ) . field ( "nMaxFileTitle" , & self . nMaxFileTitle ) . field ( "lpstrInitialDir" , & self . lpstrInitialDir ) . field ( "lpstrTitle" , & self . lpstrTitle ) . field ( "Flags" , & self . Flags ) . field ( "nFileOffset" , & self . nFileOffset ) . field ( "nFileExtension" , & self . nFileExtension ) . field ( "lpstrDefExt" , & self . lpstrDefExt ) . field ( "lCustData" , & self . lCustData ) . field ( "lpTemplateName" , & self . lpTemplateName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for OPENFILENAME_NT4W { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hInstance == other . hInstance && self . lpstrFilter == other . lpstrFilter && self . lpstrCustomFilter == other . lpstrCustomFilter && self . nMaxCustFilter == other . nMaxCustFilter && self . nFilterIndex == other . nFilterIndex && self . lpstrFile == other . lpstrFile && self . nMaxFile == other . nMaxFile && self . lpstrFileTitle == other . lpstrFileTitle && self . nMaxFileTitle == other . nMaxFileTitle && self . lpstrInitialDir == other . lpstrInitialDir && self . lpstrTitle == other . lpstrTitle && self . Flags == other . Flags && self . nFileOffset == other . nFileOffset && self . nFileExtension == other . nFileExtension && self . lpstrDefExt == other . lpstrDefExt && self . lCustData == other . lCustData && self . lpfnHook . map ( | f | f as usize ) == other . lpfnHook . map ( | f | f as usize ) && self . lpTemplateName == other . lpTemplateName } } impl :: std :: cmp :: Eq for OPENFILENAME_NT4W { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct OPENFILENAME_NT4W_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpstrFilter : super::super::Foundation:: PWSTR , pub lpstrCustomFilter : super::super::Foundation:: PWSTR , pub nMaxCustFilter : u32 , pub nFilterIndex : u32 , pub lpstrFile : super::super::Foundation:: PWSTR , pub nMaxFile : u32 , pub lpstrFileTitle : super::super::Foundation:: PWSTR , pub nMaxFileTitle : u32 , pub lpstrInitialDir : super::super::Foundation:: PWSTR , pub lpstrTitle : super::super::Foundation:: PWSTR , pub Flags : u32 , pub nFileOffset : u16 , pub nFileExtension : u16 , pub lpstrDefExt : super::super::Foundation:: PWSTR , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnHook : :: windows :: RawPtr , pub lpTemplateName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for OPENFILENAME_NT4W { type Abi = OPENFILENAME_NT4W_abi ; 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 OPEN_FILENAME_FLAGS ( pub u32 ) ; pub const OFN_READONLY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1u32 ) ; pub const OFN_OVERWRITEPROMPT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2u32 ) ; pub const OFN_HIDEREADONLY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4u32 ) ; pub const OFN_NOCHANGEDIR : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8u32 ) ; pub const OFN_SHOWHELP : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 16u32 ) ; pub const OFN_ENABLEHOOK : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 32u32 ) ; pub const OFN_ENABLETEMPLATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 64u32 ) ; pub const OFN_ENABLETEMPLATEHANDLE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 128u32 ) ; pub const OFN_NOVALIDATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 256u32 ) ; pub const OFN_ALLOWMULTISELECT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 512u32 ) ; pub const OFN_EXTENSIONDIFFERENT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1024u32 ) ; pub const OFN_PATHMUSTEXIST : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2048u32 ) ; pub const OFN_FILEMUSTEXIST : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4096u32 ) ; pub const OFN_CREATEPROMPT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8192u32 ) ; pub const OFN_SHAREAWARE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 16384u32 ) ; pub const OFN_NOREADONLYRETURN : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 32768u32 ) ; pub const OFN_NOTESTFILECREATE : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 65536u32 ) ; pub const OFN_NONETWORKBUTTON : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 131072u32 ) ; pub const OFN_NOLONGNAMES : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 262144u32 ) ; pub const OFN_EXPLORER : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 524288u32 ) ; pub const OFN_NODEREFERENCELINKS : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 1048576u32 ) ; pub const OFN_LONGNAMES : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 2097152u32 ) ; pub const OFN_ENABLEINCLUDENOTIFY : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 4194304u32 ) ; pub const OFN_ENABLESIZING : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 8388608u32 ) ; pub const OFN_DONTADDTORECENT : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 33554432u32 ) ; pub const OFN_FORCESHOWHIDDEN : OPEN_FILENAME_FLAGS = OPEN_FILENAME_FLAGS ( 268435456u32 ) ; impl :: std :: convert :: From < u32 > for OPEN_FILENAME_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for OPEN_FILENAME_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for OPEN_FILENAME_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for OPEN_FILENAME_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for OPEN_FILENAME_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for OPEN_FILENAME_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct OPEN_FILENAME_FLAGS_EX ( pub u32 ) ; pub const OFN_EX_NONE : OPEN_FILENAME_FLAGS_EX = OPEN_FILENAME_FLAGS_EX ( 0u32 ) ; pub const OFN_EX_NOPLACESBAR : OPEN_FILENAME_FLAGS_EX = OPEN_FILENAME_FLAGS_EX ( 1u32 ) ; impl :: std :: convert :: From < u32 > for OPEN_FILENAME_FLAGS_EX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for OPEN_FILENAME_FLAGS_EX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for OPEN_FILENAME_FLAGS_EX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for OPEN_FILENAME_FLAGS_EX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for OPEN_FILENAME_FLAGS_EX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for OPEN_FILENAME_FLAGS_EX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const ORD_LANGDRIVER : u32 = 1u32 ; pub unsafe fn OemToCharA < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharA ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } OemToCharA ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharBuffA < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharBuffA ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } OemToCharBuffA ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharBuffW < 'a , > ( lpszsrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , lpszdst : super::super::Foundation:: PWSTR , cchdstlength : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharBuffW ( lpszsrc : super::super::Foundation:: PSTR , lpszdst : super::super::Foundation:: PWSTR , cchdstlength : u32 ) -> super::super::Foundation:: BOOL ; } OemToCharBuffW ( lpszsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpszdst ) , :: std :: mem :: transmute ( cchdstlength ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OemToCharW < 'a , > ( psrc : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , pdst : super::super::Foundation:: PWSTR , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OemToCharW ( psrc : super::super::Foundation:: PSTR , pdst : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } OemToCharW ( psrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pdst ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn OpenIcon < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn OpenIcon ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } OpenIcon ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PAGESETUPDLGA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: std :: option :: Option < LPPAGESETUPHOOK > , pub lpfnPagePaintHook : :: std :: option :: Option < LPPAGEPAINTHOOK > , pub lpPageSetupTemplateName : super::super::Foundation:: PSTR , pub hPageSetupTemplate : isize } impl PAGESETUPDLGA { } impl :: std :: default :: Default for PAGESETUPDLGA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , Flags : :: std :: default :: Default :: default ( ) , ptPaperSize : :: std :: default :: Default :: default ( ) , rtMinMargin : :: std :: default :: Default :: default ( ) , rtMargin : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPageSetupHook : :: std :: default :: Default :: default ( ) , lpfnPagePaintHook : :: std :: default :: Default :: default ( ) , lpPageSetupTemplateName : :: std :: default :: Default :: default ( ) , hPageSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PAGESETUPDLGA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PAGESETUPDLGA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "Flags" , & self . Flags ) . field ( "ptPaperSize" , & self . ptPaperSize ) . field ( "rtMinMargin" , & self . rtMinMargin ) . field ( "rtMargin" , & self . rtMargin ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPageSetupTemplateName" , & self . lpPageSetupTemplateName ) . field ( "hPageSetupTemplate" , & self . hPageSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PAGESETUPDLGA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . Flags == other . Flags && self . ptPaperSize == other . ptPaperSize && self . rtMinMargin == other . rtMinMargin && self . rtMargin == other . rtMargin && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPageSetupHook . map ( | f | f as usize ) == other . lpfnPageSetupHook . map ( | f | f as usize ) && self . lpfnPagePaintHook . map ( | f | f as usize ) == other . lpfnPagePaintHook . map ( | f | f as usize ) && self . lpPageSetupTemplateName == other . lpPageSetupTemplateName && self . hPageSetupTemplate == other . hPageSetupTemplate } } impl :: std :: cmp :: Eq for PAGESETUPDLGA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PAGESETUPDLGA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: windows :: RawPtr , pub lpfnPagePaintHook : :: windows :: RawPtr , pub lpPageSetupTemplateName : super::super::Foundation:: PSTR , pub hPageSetupTemplate : isize } unsafe impl :: windows :: Abi for PAGESETUPDLGA { type Abi = PAGESETUPDLGA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PAGESETUPDLGW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: std :: option :: Option < LPPAGESETUPHOOK > , pub lpfnPagePaintHook : :: std :: option :: Option < LPPAGEPAINTHOOK > , pub lpPageSetupTemplateName : super::super::Foundation:: PWSTR , pub hPageSetupTemplate : isize } impl PAGESETUPDLGW { } impl :: std :: default :: Default for PAGESETUPDLGW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , Flags : :: std :: default :: Default :: default ( ) , ptPaperSize : :: std :: default :: Default :: default ( ) , rtMinMargin : :: std :: default :: Default :: default ( ) , rtMargin : :: std :: default :: Default :: default ( ) , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPageSetupHook : :: std :: default :: Default :: default ( ) , lpfnPagePaintHook : :: std :: default :: Default :: default ( ) , lpPageSetupTemplateName : :: std :: default :: Default :: default ( ) , hPageSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PAGESETUPDLGW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PAGESETUPDLGW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "Flags" , & self . Flags ) . field ( "ptPaperSize" , & self . ptPaperSize ) . field ( "rtMinMargin" , & self . rtMinMargin ) . field ( "rtMargin" , & self . rtMargin ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPageSetupTemplateName" , & self . lpPageSetupTemplateName ) . field ( "hPageSetupTemplate" , & self . hPageSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PAGESETUPDLGW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . Flags == other . Flags && self . ptPaperSize == other . ptPaperSize && self . rtMinMargin == other . rtMinMargin && self . rtMargin == other . rtMargin && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPageSetupHook . map ( | f | f as usize ) == other . lpfnPageSetupHook . map ( | f | f as usize ) && self . lpfnPagePaintHook . map ( | f | f as usize ) == other . lpfnPagePaintHook . map ( | f | f as usize ) && self . lpPageSetupTemplateName == other . lpPageSetupTemplateName && self . hPageSetupTemplate == other . hPageSetupTemplate } } impl :: std :: cmp :: Eq for PAGESETUPDLGW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PAGESETUPDLGW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub Flags : PAGESETUPDLG_FLAGS , pub ptPaperSize : super::super::Foundation:: POINT , pub rtMinMargin : super::super::Foundation:: RECT , pub rtMargin : super::super::Foundation:: RECT , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPageSetupHook : :: windows :: RawPtr , pub lpfnPagePaintHook : :: windows :: RawPtr , pub lpPageSetupTemplateName : super::super::Foundation:: PWSTR , pub hPageSetupTemplate : isize } unsafe impl :: windows :: Abi for PAGESETUPDLGW { type Abi = PAGESETUPDLGW_abi ; 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 PAGESETUPDLG_FLAGS ( pub u32 ) ; pub const PSD_DEFAULTMINMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 0u32 ) ; pub const PSD_DISABLEMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 16u32 ) ; pub const PSD_DISABLEORIENTATION : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 256u32 ) ; pub const PSD_DISABLEPAGEPAINTING : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 524288u32 ) ; pub const PSD_DISABLEPAPER : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 512u32 ) ; pub const PSD_DISABLEPRINTER : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 32u32 ) ; pub const PSD_ENABLEPAGEPAINTHOOK : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 262144u32 ) ; pub const PSD_ENABLEPAGESETUPHOOK : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 8192u32 ) ; pub const PSD_ENABLEPAGESETUPTEMPLATE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 32768u32 ) ; pub const PSD_ENABLEPAGESETUPTEMPLATEHANDLE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 131072u32 ) ; pub const PSD_INHUNDREDTHSOFMILLIMETERS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 8u32 ) ; pub const PSD_INTHOUSANDTHSOFINCHES : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 4u32 ) ; pub const PSD_INWININIINTLMEASURE : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 0u32 ) ; pub const PSD_MARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2u32 ) ; pub const PSD_MINMARGINS : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 1u32 ) ; pub const PSD_NONETWORKBUTTON : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2097152u32 ) ; pub const PSD_NOWARNING : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 128u32 ) ; pub const PSD_RETURNDEFAULT : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 1024u32 ) ; pub const PSD_SHOWHELP : PAGESETUPDLG_FLAGS = PAGESETUPDLG_FLAGS ( 2048u32 ) ; impl :: std :: convert :: From < u32 > for PAGESETUPDLG_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PAGESETUPDLG_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PAGESETUPDLG_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PAGESETUPDLG_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PAGESETUPDLG_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PAGESETUPDLG_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const PBTF_APMRESUMEFROMFAILURE : u32 = 1u32 ; pub const PBT_APMBATTERYLOW : u32 = 9u32 ; pub const PBT_APMOEMEVENT : u32 = 11u32 ; pub const PBT_APMPOWERSTATUSCHANGE : u32 = 10u32 ; pub const PBT_APMQUERYSTANDBY : u32 = 1u32 ; pub const PBT_APMQUERYSTANDBYFAILED : u32 = 3u32 ; pub const PBT_APMQUERYSUSPEND : u32 = 0u32 ; pub const PBT_APMQUERYSUSPENDFAILED : u32 = 2u32 ; pub const PBT_APMRESUMEAUTOMATIC : u32 = 18u32 ; pub const PBT_APMRESUMECRITICAL : u32 = 6u32 ; pub const PBT_APMRESUMESTANDBY : u32 = 8u32 ; pub const PBT_APMRESUMESUSPEND : u32 = 7u32 ; pub const PBT_APMSTANDBY : u32 = 5u32 ; pub const PBT_APMSUSPEND : u32 = 4u32 ; pub const PBT_POWERSETTINGCHANGE : u32 = 32787u32 ; pub const PDC_ARRIVAL : u32 = 1u32 ; pub const PDC_MAPPING_CHANGE : u32 = 256u32 ; pub const PDC_MODE_ASPECTRATIOPRESERVED : u32 = 2048u32 ; pub const PDC_MODE_CENTERED : u32 = 128u32 ; pub const PDC_MODE_DEFAULT : u32 = 64u32 ; pub const PDC_ORIENTATION_0 : u32 = 4u32 ; pub const PDC_ORIENTATION_180 : u32 = 16u32 ; pub const PDC_ORIENTATION_270 : u32 = 32u32 ; pub const PDC_ORIENTATION_90 : u32 = 8u32 ; pub const PDC_ORIGIN : u32 = 1024u32 ; pub const PDC_REMOVAL : u32 = 2u32 ; pub const PDC_RESOLUTION : u32 = 512u32 ; pub const PD_RESULT_APPLY : u32 = 2u32 ; pub const PD_RESULT_CANCEL : u32 = 0u32 ; pub const PD_RESULT_PRINT : 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 PEEK_MESSAGE_REMOVE_TYPE ( pub u32 ) ; pub const PM_NOREMOVE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 0u32 ) ; pub const PM_REMOVE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 1u32 ) ; pub const PM_NOYIELD : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 2u32 ) ; pub const PM_QS_INPUT : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 67567616u32 ) ; pub const PM_QS_POSTMESSAGE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 9961472u32 ) ; pub const PM_QS_PAINT : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 2097152u32 ) ; pub const PM_QS_SENDMESSAGE : PEEK_MESSAGE_REMOVE_TYPE = PEEK_MESSAGE_REMOVE_TYPE ( 4194304u32 ) ; impl :: std :: convert :: From < u32 > for PEEK_MESSAGE_REMOVE_TYPE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PEEK_MESSAGE_REMOVE_TYPE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PEEK_MESSAGE_REMOVE_TYPE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PEEK_MESSAGE_REMOVE_TYPE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PEEK_MESSAGE_REMOVE_TYPE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PEEK_MESSAGE_REMOVE_TYPE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const PENARBITRATIONTYPE_FIS : u32 = 2u32 ; pub const PENARBITRATIONTYPE_MAX : u32 = 4u32 ; pub const PENARBITRATIONTYPE_NONE : u32 = 0u32 ; pub const PENARBITRATIONTYPE_SPT : u32 = 3u32 ; pub const PENARBITRATIONTYPE_WIN8 : u32 = 1u32 ; pub const PENVISUALIZATION_CURSOR : u32 = 32u32 ; pub const PENVISUALIZATION_DOUBLETAP : u32 = 2u32 ; pub const PENVISUALIZATION_OFF : u32 = 0u32 ; pub const PENVISUALIZATION_ON : u32 = 35u32 ; pub const PENVISUALIZATION_TAP : u32 = 1u32 ; pub const PEN_FLAG_BARREL : u32 = 1u32 ; pub const PEN_FLAG_ERASER : u32 = 4u32 ; pub const PEN_FLAG_INVERTED : u32 = 2u32 ; pub const PEN_FLAG_NONE : u32 = 0u32 ; pub const PEN_MASK_NONE : u32 = 0u32 ; pub const PEN_MASK_PRESSURE : u32 = 1u32 ; pub const PEN_MASK_ROTATION : u32 = 2u32 ; pub const PEN_MASK_TILT_X : u32 = 4u32 ; pub const PEN_MASK_TILT_Y : u32 = 8u32 ; pub const PMB_ACTIVE : u32 = 1u32 ; pub const POINTER_DEVICE_PRODUCT_STRING_MAX : u32 = 520u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct POINTER_INPUT_TYPE ( pub i32 ) ; pub const PT_POINTER : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 1i32 ) ; pub const PT_TOUCH : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 2i32 ) ; pub const PT_PEN : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 3i32 ) ; pub const PT_MOUSE : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 4i32 ) ; pub const PT_TOUCHPAD : POINTER_INPUT_TYPE = POINTER_INPUT_TYPE ( 5i32 ) ; impl :: std :: convert :: From < i32 > for POINTER_INPUT_TYPE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for POINTER_INPUT_TYPE { type Abi = Self ; type DefaultType = Self ; } pub const POINTER_MESSAGE_FLAG_CANCELED : u32 = 32768u32 ; pub const POINTER_MESSAGE_FLAG_CONFIDENCE : u32 = 16384u32 ; pub const POINTER_MESSAGE_FLAG_FIFTHBUTTON : u32 = 256u32 ; pub const POINTER_MESSAGE_FLAG_FIRSTBUTTON : u32 = 16u32 ; pub const POINTER_MESSAGE_FLAG_FOURTHBUTTON : u32 = 128u32 ; pub const POINTER_MESSAGE_FLAG_INCONTACT : u32 = 4u32 ; pub const POINTER_MESSAGE_FLAG_INRANGE : u32 = 2u32 ; pub const POINTER_MESSAGE_FLAG_NEW : u32 = 1u32 ; pub const POINTER_MESSAGE_FLAG_PRIMARY : u32 = 8192u32 ; pub const POINTER_MESSAGE_FLAG_SECONDBUTTON : u32 = 32u32 ; pub const POINTER_MESSAGE_FLAG_THIRDBUTTON : u32 = 64u32 ; pub const POINTER_MOD_CTRL : u32 = 8u32 ; pub const POINTER_MOD_SHIFT : u32 = 4u32 ; pub type PREGISTERCLASSNAMEW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR ) -> u8 ; pub const PRF_CHECKVISIBLE : i32 = 1i32 ; pub const PRF_CHILDREN : i32 = 16i32 ; pub const PRF_CLIENT : i32 = 4i32 ; pub const PRF_ERASEBKGND : i32 = 8i32 ; pub const PRF_NONCLIENT : i32 = 2i32 ; pub const PRF_OWNED : i32 = 32i32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: std :: option :: Option < LPPRINTHOOKPROC > , pub lpfnSetupHook : :: std :: option :: Option < LPSETUPHOOKPROC > , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpSetupTemplateName : super::super::Foundation:: PSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } impl PRINTDLGA { } impl :: std :: default :: Default for PRINTDLGA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFromPage : 0 , nToPage : 0 , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPrintHook : :: std :: default :: Default :: default ( ) , lpfnSetupHook : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpSetupTemplateName : :: std :: default :: Default :: default ( ) , hPrintTemplate : 0 , hSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpSetupTemplateName" , & self . lpSetupTemplateName ) . field ( "hPrintTemplate" , & self . hPrintTemplate ) . field ( "hSetupTemplate" , & self . hSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . nFromPage == other . nFromPage && self . nToPage == other . nToPage && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPrintHook . map ( | f | f as usize ) == other . lpfnPrintHook . map ( | f | f as usize ) && self . lpfnSetupHook . map ( | f | f as usize ) == other . lpfnSetupHook . map ( | f | f as usize ) && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpSetupTemplateName == other . lpSetupTemplateName && self . hPrintTemplate == other . hPrintTemplate && self . hSetupTemplate == other . hSetupTemplate } } impl :: std :: cmp :: Eq for PRINTDLGA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: windows :: RawPtr , pub lpfnSetupHook : :: windows :: RawPtr , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpSetupTemplateName : super::super::Foundation:: PSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } unsafe impl :: windows :: Abi for PRINTDLGA { type Abi = PRINTDLGA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGEXA { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpCallback : :: std :: option :: Option < :: windows :: IUnknown > , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } impl PRINTDLGEXA { } impl :: std :: default :: Default for PRINTDLGEXA { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , Flags2 : 0 , ExclusionFlags : 0 , nPageRanges : 0 , nMaxPageRanges : 0 , lpPageRanges : :: std :: ptr :: null_mut ( ) , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpCallback : :: std :: default :: Default :: default ( ) , nPropertyPages : 0 , lphPropertyPages : :: std :: ptr :: null_mut ( ) , nStartPage : 0 , dwResultAction : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGEXA" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "Flags2" , & self . Flags2 ) . field ( "ExclusionFlags" , & self . ExclusionFlags ) . field ( "nPageRanges" , & self . nPageRanges ) . field ( "nMaxPageRanges" , & self . nMaxPageRanges ) . field ( "lpPageRanges" , & self . lpPageRanges ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpCallback" , & self . lpCallback ) . field ( "nPropertyPages" , & self . nPropertyPages ) . field ( "lphPropertyPages" , & self . lphPropertyPages ) . field ( "nStartPage" , & self . nStartPage ) . field ( "dwResultAction" , & self . dwResultAction ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGEXA { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . Flags2 == other . Flags2 && self . ExclusionFlags == other . ExclusionFlags && self . nPageRanges == other . nPageRanges && self . nMaxPageRanges == other . nMaxPageRanges && self . lpPageRanges == other . lpPageRanges && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpCallback == other . lpCallback && self . nPropertyPages == other . nPropertyPages && self . lphPropertyPages == other . lphPropertyPages && self . nStartPage == other . nStartPage && self . dwResultAction == other . dwResultAction } } impl :: std :: cmp :: Eq for PRINTDLGEXA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGEXA_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PSTR , pub lpCallback : :: windows :: RawPtr , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } unsafe impl :: windows :: Abi for PRINTDLGEXA { type Abi = PRINTDLGEXA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGEXW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpCallback : :: std :: option :: Option < :: windows :: IUnknown > , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } impl PRINTDLGEXW { } impl :: std :: default :: Default for PRINTDLGEXW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , Flags2 : 0 , ExclusionFlags : 0 , nPageRanges : 0 , nMaxPageRanges : 0 , lpPageRanges : :: std :: ptr :: null_mut ( ) , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpCallback : :: std :: default :: Default :: default ( ) , nPropertyPages : 0 , lphPropertyPages : :: std :: ptr :: null_mut ( ) , nStartPage : 0 , dwResultAction : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGEXW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "Flags2" , & self . Flags2 ) . field ( "ExclusionFlags" , & self . ExclusionFlags ) . field ( "nPageRanges" , & self . nPageRanges ) . field ( "nMaxPageRanges" , & self . nMaxPageRanges ) . field ( "lpPageRanges" , & self . lpPageRanges ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpCallback" , & self . lpCallback ) . field ( "nPropertyPages" , & self . nPropertyPages ) . field ( "lphPropertyPages" , & self . lphPropertyPages ) . field ( "nStartPage" , & self . nStartPage ) . field ( "dwResultAction" , & self . dwResultAction ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGEXW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . Flags2 == other . Flags2 && self . ExclusionFlags == other . ExclusionFlags && self . nPageRanges == other . nPageRanges && self . nMaxPageRanges == other . nMaxPageRanges && self . lpPageRanges == other . lpPageRanges && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpCallback == other . lpCallback && self . nPropertyPages == other . nPropertyPages && self . lphPropertyPages == other . lphPropertyPages && self . nStartPage == other . nStartPage && self . dwResultAction == other . dwResultAction } } impl :: std :: cmp :: Eq for PRINTDLGEXW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGEXW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub Flags2 : u32 , pub ExclusionFlags : u32 , pub nPageRanges : u32 , pub nMaxPageRanges : u32 , pub lpPageRanges : * mut PRINTPAGERANGE , pub nMinPage : u32 , pub nMaxPage : u32 , pub nCopies : u32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpCallback : :: windows :: RawPtr , pub nPropertyPages : u32 , pub lphPropertyPages : * mut super::Controls:: HPROPSHEETPAGE , pub nStartPage : u32 , pub dwResultAction : u32 } unsafe impl :: windows :: Abi for PRINTDLGEXW { type Abi = PRINTDLGEXW_abi ; 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 PRINTDLGEX_FLAGS ( pub u32 ) ; pub const PD_ALLPAGES : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 0u32 ) ; pub const PD_COLLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16u32 ) ; pub const PD_CURRENTPAGE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4194304u32 ) ; pub const PD_DISABLEPRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 524288u32 ) ; pub const PD_ENABLEPRINTTEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16384u32 ) ; pub const PD_ENABLEPRINTTEMPLATEHANDLE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 65536u32 ) ; pub const PD_EXCLUSIONFLAGS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 16777216u32 ) ; pub const PD_HIDEPRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1048576u32 ) ; pub const PD_NOCURRENTPAGE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8388608u32 ) ; pub const PD_NOPAGENUMS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8u32 ) ; pub const PD_NOSELECTION : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4u32 ) ; pub const PD_NOWARNING : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 128u32 ) ; pub const PD_PAGENUMS : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2u32 ) ; pub const PD_PRINTTOFILE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 32u32 ) ; pub const PD_RETURNDC : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 256u32 ) ; pub const PD_RETURNDEFAULT : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1024u32 ) ; pub const PD_RETURNIC : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 512u32 ) ; pub const PD_SELECTION : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 1u32 ) ; pub const PD_USEDEVMODECOPIES : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 262144u32 ) ; pub const PD_USEDEVMODECOPIESANDCOLLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 262144u32 ) ; pub const PD_USELARGETEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 268435456u32 ) ; pub const PD_ENABLEPRINTHOOK : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 4096u32 ) ; pub const PD_ENABLESETUPHOOK : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 8192u32 ) ; pub const PD_ENABLESETUPTEMPLATE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 32768u32 ) ; pub const PD_ENABLESETUPTEMPLATEHANDLE : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 131072u32 ) ; pub const PD_NONETWORKBUTTON : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2097152u32 ) ; pub const PD_PRINTSETUP : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 64u32 ) ; pub const PD_SHOWHELP : PRINTDLGEX_FLAGS = PRINTDLGEX_FLAGS ( 2048u32 ) ; impl :: std :: convert :: From < u32 > for PRINTDLGEX_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PRINTDLGEX_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for PRINTDLGEX_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for PRINTDLGEX_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for PRINTDLGEX_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for PRINTDLGEX_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct PRINTDLGW { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: std :: option :: Option < LPPRINTHOOKPROC > , pub lpfnSetupHook : :: std :: option :: Option < LPSETUPHOOKPROC > , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpSetupTemplateName : super::super::Foundation:: PWSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } impl PRINTDLGW { } impl :: std :: default :: Default for PRINTDLGW { fn default ( ) -> Self { Self { lStructSize : 0 , hwndOwner : :: std :: default :: Default :: default ( ) , hDevMode : 0 , hDevNames : 0 , hDC : :: std :: default :: Default :: default ( ) , Flags : :: std :: default :: Default :: default ( ) , nFromPage : 0 , nToPage : 0 , nMinPage : 0 , nMaxPage : 0 , nCopies : 0 , hInstance : :: std :: default :: Default :: default ( ) , lCustData : :: std :: default :: Default :: default ( ) , lpfnPrintHook : :: std :: default :: Default :: default ( ) , lpfnSetupHook : :: std :: default :: Default :: default ( ) , lpPrintTemplateName : :: std :: default :: Default :: default ( ) , lpSetupTemplateName : :: std :: default :: Default :: default ( ) , hPrintTemplate : 0 , hSetupTemplate : 0 } } } impl :: std :: fmt :: Debug for PRINTDLGW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTDLGW" ) . field ( "lStructSize" , & self . lStructSize ) . field ( "hwndOwner" , & self . hwndOwner ) . field ( "hDevMode" , & self . hDevMode ) . field ( "hDevNames" , & self . hDevNames ) . field ( "hDC" , & self . hDC ) . field ( "Flags" , & self . Flags ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . field ( "nMinPage" , & self . nMinPage ) . field ( "nMaxPage" , & self . nMaxPage ) . field ( "nCopies" , & self . nCopies ) . field ( "hInstance" , & self . hInstance ) . field ( "lCustData" , & self . lCustData ) . field ( "lpPrintTemplateName" , & self . lpPrintTemplateName ) . field ( "lpSetupTemplateName" , & self . lpSetupTemplateName ) . field ( "hPrintTemplate" , & self . hPrintTemplate ) . field ( "hSetupTemplate" , & self . hSetupTemplate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTDLGW { fn eq ( & self , other : & Self ) -> bool { self . lStructSize == other . lStructSize && self . hwndOwner == other . hwndOwner && self . hDevMode == other . hDevMode && self . hDevNames == other . hDevNames && self . hDC == other . hDC && self . Flags == other . Flags && self . nFromPage == other . nFromPage && self . nToPage == other . nToPage && self . nMinPage == other . nMinPage && self . nMaxPage == other . nMaxPage && self . nCopies == other . nCopies && self . hInstance == other . hInstance && self . lCustData == other . lCustData && self . lpfnPrintHook . map ( | f | f as usize ) == other . lpfnPrintHook . map ( | f | f as usize ) && self . lpfnSetupHook . map ( | f | f as usize ) == other . lpfnSetupHook . map ( | f | f as usize ) && self . lpPrintTemplateName == other . lpPrintTemplateName && self . lpSetupTemplateName == other . lpSetupTemplateName && self . hPrintTemplate == other . hPrintTemplate && self . hSetupTemplate == other . hSetupTemplate } } impl :: std :: cmp :: Eq for PRINTDLGW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct PRINTDLGW_abi { pub lStructSize : u32 , pub hwndOwner : super::super::Foundation:: HWND , pub hDevMode : isize , pub hDevNames : isize , pub hDC : super::super::Graphics::Gdi:: HDC , pub Flags : PRINTDLGEX_FLAGS , pub nFromPage : u16 , pub nToPage : u16 , pub nMinPage : u16 , pub nMaxPage : u16 , pub nCopies : u16 , pub hInstance : super::super::Foundation:: HINSTANCE , pub lCustData : super::super::Foundation:: LPARAM , pub lpfnPrintHook : :: windows :: RawPtr , pub lpfnSetupHook : :: windows :: RawPtr , pub lpPrintTemplateName : super::super::Foundation:: PWSTR , pub lpSetupTemplateName : super::super::Foundation:: PWSTR , pub hPrintTemplate : isize , pub hSetupTemplate : isize } unsafe impl :: windows :: Abi for PRINTDLGW { type Abi = PRINTDLGW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct PRINTPAGERANGE { pub nFromPage : u32 , pub nToPage : u32 } impl PRINTPAGERANGE { } impl :: std :: default :: Default for PRINTPAGERANGE { fn default ( ) -> Self { Self { nFromPage : 0 , nToPage : 0 } } } impl :: std :: fmt :: Debug for PRINTPAGERANGE { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "PRINTPAGERANGE" ) . field ( "nFromPage" , & self . nFromPage ) . field ( "nToPage" , & self . nToPage ) . finish ( ) } } impl :: std :: cmp :: PartialEq for PRINTPAGERANGE { fn eq ( & self , other : & Self ) -> bool { self . nFromPage == other . nFromPage && self . nToPage == other . nToPage } } impl :: std :: cmp :: Eq for PRINTPAGERANGE { } unsafe impl :: windows :: Abi for PRINTPAGERANGE { type Abi = Self ; type DefaultType = Self ; } pub type PROPENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PSTR , param2 : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCEXA = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PSTR , param2 : super::super::Foundation:: HANDLE , param3 : usize ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCEXW = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PWSTR , param2 : super::super::Foundation:: HANDLE , param3 : usize ) -> super::super::Foundation:: BOOL ; pub type PROPENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: PWSTR , param2 : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; pub const PS_OPENTYPE_FONTTYPE : u32 = 65536u32 ; pub const PWR_CRITICALRESUME : u32 = 3u32 ; pub const PWR_FAIL : i32 = -1i32 ; pub const PWR_OK : u32 = 1u32 ; pub const PWR_SUSPENDREQUEST : u32 = 1u32 ; pub const PWR_SUSPENDRESUME : u32 = 2u32 ; pub const PW_RENDERFULLCONTENT : u32 = 2u32 ; pub unsafe fn PageSetupDlgA < > ( param0 : * mut PAGESETUPDLGA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PageSetupDlgA ( param0 : * mut PAGESETUPDLGA_abi ) -> super::super::Foundation:: BOOL ; } PageSetupDlgA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PageSetupDlgW < > ( param0 : * mut PAGESETUPDLGW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PageSetupDlgW ( param0 : * mut PAGESETUPDLGW_abi ) -> super::super::Foundation:: BOOL ; } PageSetupDlgW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PeekMessageA < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PeekMessageA ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE ) -> super::super::Foundation:: BOOL ; } PeekMessageA ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) , :: std :: mem :: transmute ( wremovemsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PeekMessageW < 'a , > ( lpmsg : * mut MSG , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PeekMessageW ( lpmsg : * mut MSG , hwnd : super::super::Foundation:: HWND , wmsgfiltermin : u32 , wmsgfiltermax : u32 , wremovemsg : PEEK_MESSAGE_REMOVE_TYPE ) -> super::super::Foundation:: BOOL ; } PeekMessageW ( :: std :: mem :: transmute ( lpmsg ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( wmsgfiltermin ) , :: std :: mem :: transmute ( wmsgfiltermax ) , :: std :: mem :: transmute ( wremovemsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PhysicalToLogicalPoint < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lppoint : * mut super::super::Foundation:: POINT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PhysicalToLogicalPoint ( hwnd : super::super::Foundation:: HWND , lppoint : * mut super::super::Foundation:: POINT ) -> super::super::Foundation:: BOOL ; } PhysicalToLogicalPoint ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lppoint ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostQuitMessage < > ( nexitcode : i32 , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostQuitMessage ( nexitcode : i32 ) ; } PostQuitMessage ( :: std :: mem :: transmute ( nexitcode ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostThreadMessageA < 'a , > ( idthread : u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostThreadMessageA ( idthread : u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostThreadMessageA ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PostThreadMessageW < 'a , > ( idthread : u32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PostThreadMessageW ( idthread : u32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } PostThreadMessageW ( :: std :: mem :: transmute ( idthread ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgA < > ( ppd : * mut PRINTDLGA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgA ( ppd : * mut PRINTDLGA_abi ) -> super::super::Foundation:: BOOL ; } PrintDlgA ( :: std :: mem :: transmute ( ppd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgExA < > ( ppd : * mut PRINTDLGEXA , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgExA ( ppd : * mut PRINTDLGEXA_abi ) -> :: windows :: HRESULT ; } PrintDlgExA ( :: std :: mem :: transmute ( ppd ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgExW < > ( ppd : * mut PRINTDLGEXW , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgExW ( ppd : * mut PRINTDLGEXW_abi ) -> :: windows :: HRESULT ; } PrintDlgExW ( :: std :: mem :: transmute ( ppd ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrintDlgW < > ( ppd : * mut PRINTDLGW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn PrintDlgW ( ppd : * mut PRINTDLGW_abi ) -> super::super::Foundation:: BOOL ; } PrintDlgW ( :: std :: mem :: transmute ( ppd ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrivateExtractIconsA < 'a , > ( szfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PrivateExtractIconsA ( szfilename : super::super::Foundation:: PSTR , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 ) -> u32 ; } PrivateExtractIconsA ( szfilename . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niconindex ) , :: std :: mem :: transmute ( cxicon ) , :: std :: mem :: transmute ( cyicon ) , :: std :: mem :: transmute ( phicon ) , :: std :: mem :: transmute ( piconid ) , :: std :: mem :: transmute ( nicons ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn PrivateExtractIconsW < 'a , > ( szfilename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn PrivateExtractIconsW ( szfilename : super::super::Foundation:: PWSTR , niconindex : i32 , cxicon : i32 , cyicon : i32 , phicon : * mut HICON , piconid : * mut u32 , nicons : u32 , flags : u32 ) -> u32 ; } PrivateExtractIconsW ( szfilename . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niconindex ) , :: std :: mem :: transmute ( cxicon ) , :: std :: mem :: transmute ( cyicon ) , :: std :: mem :: transmute ( phicon ) , :: std :: mem :: transmute ( piconid ) , :: std :: mem :: transmute ( nicons ) , :: std :: mem :: transmute ( flags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const QS_POINTER : u32 = 4096u32 ; pub const QS_TOUCH : u32 = 2048u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct QUEUE_STATUS_FLAGS ( pub u32 ) ; pub const QS_ALLEVENTS : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1215u32 ) ; pub const QS_ALLINPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1279u32 ) ; pub const QS_ALLPOSTMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 256u32 ) ; pub const QS_HOTKEY : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 128u32 ) ; pub const QS_INPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1031u32 ) ; pub const QS_KEY : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1u32 ) ; pub const QS_MOUSE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 6u32 ) ; pub const QS_MOUSEBUTTON : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 4u32 ) ; pub const QS_MOUSEMOVE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 2u32 ) ; pub const QS_PAINT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 32u32 ) ; pub const QS_POSTMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 8u32 ) ; pub const QS_RAWINPUT : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 1024u32 ) ; pub const QS_SENDMESSAGE : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 64u32 ) ; pub const QS_TIMER : QUEUE_STATUS_FLAGS = QUEUE_STATUS_FLAGS ( 16u32 ) ; impl :: std :: convert :: From < u32 > for QUEUE_STATUS_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for QUEUE_STATUS_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for QUEUE_STATUS_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for QUEUE_STATUS_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for QUEUE_STATUS_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for QUEUE_STATUS_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const RES_CURSOR : u32 = 2u32 ; pub const RES_ICON : u32 = 1u32 ; pub const RIDEV_EXMODEMASK : u32 = 240u32 ; pub const RIM_INPUT : u32 = 0u32 ; pub const RIM_INPUTSINK : u32 = 1u32 ; pub const RIM_TYPEMAX : u32 = 2u32 ; pub const RI_KEY_BREAK : u32 = 1u32 ; pub const RI_KEY_E0 : u32 = 2u32 ; pub const RI_KEY_E1 : u32 = 4u32 ; pub const RI_KEY_MAKE : u32 = 0u32 ; pub const RI_KEY_TERMSRV_SET_LED : u32 = 8u32 ; pub const RI_KEY_TERMSRV_SHADOW : u32 = 16u32 ; pub const RI_MOUSE_BUTTON_4_DOWN : u32 = 64u32 ; pub const RI_MOUSE_BUTTON_4_UP : u32 = 128u32 ; pub const RI_MOUSE_BUTTON_5_DOWN : u32 = 256u32 ; pub const RI_MOUSE_BUTTON_5_UP : u32 = 512u32 ; pub const RI_MOUSE_HWHEEL : u32 = 2048u32 ; pub const RI_MOUSE_LEFT_BUTTON_DOWN : u32 = 1u32 ; pub const RI_MOUSE_LEFT_BUTTON_UP : u32 = 2u32 ; pub const RI_MOUSE_MIDDLE_BUTTON_DOWN : u32 = 16u32 ; pub const RI_MOUSE_MIDDLE_BUTTON_UP : u32 = 32u32 ; pub const RI_MOUSE_RIGHT_BUTTON_DOWN : u32 = 4u32 ; pub const RI_MOUSE_RIGHT_BUTTON_UP : u32 = 8u32 ; pub const RI_MOUSE_WHEEL : u32 = 1024u32 ; pub const RT_ACCELERATOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 9i32 as _ ) ; pub const RT_ANICURSOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 21i32 as _ ) ; pub const RT_ANIICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 22i32 as _ ) ; pub const RT_BITMAP : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 2i32 as _ ) ; pub const RT_CURSOR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 1i32 as _ ) ; pub const RT_DIALOG : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 5i32 as _ ) ; pub const RT_DLGINCLUDE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 17i32 as _ ) ; pub const RT_FONT : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 8i32 as _ ) ; pub const RT_FONTDIR : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 7i32 as _ ) ; pub const RT_HTML : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 23i32 as _ ) ; pub const RT_ICON : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 3i32 as _ ) ; pub const RT_MANIFEST : u32 = 24u32 ; pub const RT_MENU : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 4i32 as _ ) ; pub const RT_MESSAGETABLE : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 11i32 as _ ) ; pub const RT_PLUGPLAY : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 19i32 as _ ) ; pub const RT_VERSION : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 16i32 as _ ) ; pub const RT_VXD : super::super::Foundation:: PWSTR = super::super::Foundation:: PWSTR ( 20i32 as _ ) ; pub unsafe fn RealChildWindowFromPoint < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptparentclientcoords : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealChildWindowFromPoint ( hwndparent : super::super::Foundation:: HWND , ptparentclientcoords : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } RealChildWindowFromPoint ( hwndparent . into_param ( ) . abi ( ) , ptparentclientcoords . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RealGetWindowClassA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptszclassname : super::super::Foundation:: PSTR , cchclassnamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealGetWindowClassA ( hwnd : super::super::Foundation:: HWND , ptszclassname : super::super::Foundation:: PSTR , cchclassnamemax : u32 ) -> u32 ; } RealGetWindowClassA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ptszclassname ) , :: std :: mem :: transmute ( cchclassnamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RealGetWindowClassW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ptszclassname : super::super::Foundation:: PWSTR , cchclassnamemax : u32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RealGetWindowClassW ( hwnd : super::super::Foundation:: HWND , ptszclassname : super::super::Foundation:: PWSTR , cchclassnamemax : u32 ) -> u32 ; } RealGetWindowClassW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ptszclassname ) , :: std :: mem :: transmute ( cchclassnamemax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassA < > ( lpwndclass : * const WNDCLASSA , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassA ( lpwndclass : * const WNDCLASSA_abi ) -> u16 ; } RegisterClassA ( :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassExA < > ( param0 : * const WNDCLASSEXA , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassExA ( param0 : * const WNDCLASSEXA_abi ) -> u16 ; } RegisterClassExA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassExW < > ( param0 : * const WNDCLASSEXW , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassExW ( param0 : * const WNDCLASSEXW_abi ) -> u16 ; } RegisterClassExW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterClassW < > ( lpwndclass : * const WNDCLASSW , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterClassW ( lpwndclass : * const WNDCLASSW_abi ) -> u16 ; } RegisterClassW ( :: std :: mem :: transmute ( lpwndclass ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterShellHookWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterShellHookWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } RegisterShellHookWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterWindowMessageA < 'a , > ( lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterWindowMessageA ( lpstring : super::super::Foundation:: PSTR ) -> u32 ; } RegisterWindowMessageA ( lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RegisterWindowMessageW < 'a , > ( lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RegisterWindowMessageW ( lpstring : super::super::Foundation:: PWSTR ) -> u32 ; } RegisterWindowMessageW ( lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemoveMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemoveMenu ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS ) -> super::super::Foundation:: BOOL ; } RemoveMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemovePropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemovePropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HANDLE ; } RemovePropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn RemovePropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: HANDLE { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn RemovePropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: HANDLE ; } RemovePropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplaceTextA < > ( param0 : * mut FINDREPLACEA , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ReplaceTextA ( param0 : * mut FINDREPLACEA_abi ) -> super::super::Foundation:: HWND ; } ReplaceTextA ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplaceTextW < > ( param0 : * mut FINDREPLACEW , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="COMDLG32" ) ] extern "system" { fn ReplaceTextW ( param0 : * mut FINDREPLACEW_abi ) -> super::super::Foundation:: HWND ; } ReplaceTextW ( :: std :: mem :: transmute ( param0 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ReplyMessage < 'a , > ( lresult : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LRESULT > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ReplyMessage ( lresult : super::super::Foundation:: LRESULT ) -> super::super::Foundation:: BOOL ; } ReplyMessage ( lresult . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const SBM_ENABLE_ARROWS : u32 = 228u32 ; pub const SBM_GETPOS : u32 = 225u32 ; pub const SBM_GETRANGE : u32 = 227u32 ; pub const SBM_GETSCROLLBARINFO : u32 = 235u32 ; pub const SBM_GETSCROLLINFO : u32 = 234u32 ; pub const SBM_SETPOS : u32 = 224u32 ; pub const SBM_SETRANGE : u32 = 226u32 ; pub const SBM_SETRANGEREDRAW : u32 = 230u32 ; pub const SBM_SETSCROLLINFO : u32 = 233u32 ; pub const SBS_BOTTOMALIGN : i32 = 4i32 ; pub const SBS_HORZ : i32 = 0i32 ; pub const SBS_LEFTALIGN : i32 = 2i32 ; pub const SBS_RIGHTALIGN : i32 = 4i32 ; pub const SBS_SIZEBOX : i32 = 8i32 ; pub const SBS_SIZEBOXBOTTOMRIGHTALIGN : i32 = 4i32 ; pub const SBS_SIZEBOXTOPLEFTALIGN : i32 = 2i32 ; pub const SBS_SIZEGRIP : i32 = 16i32 ; pub const SBS_TOPALIGN : i32 = 2i32 ; pub const SBS_VERT : i32 = 1i32 ; pub const SB_BOTTOM : u32 = 7u32 ; pub const SB_ENDSCROLL : u32 = 8u32 ; pub const SB_LEFT : u32 = 6u32 ; pub const SB_LINEDOWN : u32 = 1u32 ; pub const SB_LINELEFT : u32 = 0u32 ; pub const SB_LINERIGHT : u32 = 1u32 ; pub const SB_LINEUP : u32 = 0u32 ; pub const SB_PAGEDOWN : u32 = 3u32 ; pub const SB_PAGELEFT : u32 = 2u32 ; pub const SB_PAGERIGHT : u32 = 3u32 ; pub const SB_PAGEUP : u32 = 2u32 ; pub const SB_RIGHT : u32 = 7u32 ; pub const SB_THUMBPOSITION : u32 = 4u32 ; pub const SB_THUMBTRACK : u32 = 5u32 ; pub const SB_TOP : u32 = 6u32 ; pub const SCF_ISSECURE : u32 = 1u32 ; pub const SC_ARRANGE : u32 = 61712u32 ; pub const SC_CLOSE : u32 = 61536u32 ; pub const SC_CONTEXTHELP : u32 = 61824u32 ; pub const SC_DEFAULT : u32 = 61792u32 ; pub const SC_HOTKEY : u32 = 61776u32 ; pub const SC_HSCROLL : u32 = 61568u32 ; pub const SC_KEYMENU : u32 = 61696u32 ; pub const SC_MAXIMIZE : u32 = 61488u32 ; pub const SC_MINIMIZE : u32 = 61472u32 ; pub const SC_MONITORPOWER : u32 = 61808u32 ; pub const SC_MOUSEMENU : u32 = 61584u32 ; pub const SC_MOVE : u32 = 61456u32 ; pub const SC_NEXTWINDOW : u32 = 61504u32 ; pub const SC_PREVWINDOW : u32 = 61520u32 ; pub const SC_RESTORE : u32 = 61728u32 ; pub const SC_SCREENSAVE : u32 = 61760u32 ; pub const SC_SEPARATOR : u32 = 61455u32 ; pub const SC_SIZE : u32 = 61440u32 ; pub const SC_TASKLIST : u32 = 61744u32 ; pub const SC_VSCROLL : u32 = 61552u32 ; pub type SENDASYNCPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : usize , param3 : super::super::Foundation:: LRESULT ) ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SEND_MESSAGE_TIMEOUT_FLAGS ( pub u32 ) ; pub const SMTO_ABORTIFHUNG : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 2u32 ) ; pub const SMTO_BLOCK : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 1u32 ) ; pub const SMTO_NORMAL : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 0u32 ) ; pub const SMTO_NOTIMEOUTIFNOTHUNG : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 8u32 ) ; pub const SMTO_ERRORONEXIT : SEND_MESSAGE_TIMEOUT_FLAGS = SEND_MESSAGE_TIMEOUT_FLAGS ( 32u32 ) ; impl :: std :: convert :: From < u32 > for SEND_MESSAGE_TIMEOUT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SEND_MESSAGE_TIMEOUT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SEND_MESSAGE_TIMEOUT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SEND_MESSAGE_TIMEOUT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SEND_MESSAGE_TIMEOUT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SEND_MESSAGE_TIMEOUT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SET_WINDOW_POS_FLAGS ( pub u32 ) ; pub const SWP_ASYNCWINDOWPOS : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 16384u32 ) ; pub const SWP_DEFERERASE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 8192u32 ) ; pub const SWP_DRAWFRAME : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 32u32 ) ; pub const SWP_FRAMECHANGED : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 32u32 ) ; pub const SWP_HIDEWINDOW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 128u32 ) ; pub const SWP_NOACTIVATE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 16u32 ) ; pub const SWP_NOCOPYBITS : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 256u32 ) ; pub const SWP_NOMOVE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 2u32 ) ; pub const SWP_NOOWNERZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; pub const SWP_NOREDRAW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 8u32 ) ; pub const SWP_NOREPOSITION : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; pub const SWP_NOSENDCHANGING : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 1024u32 ) ; pub const SWP_NOSIZE : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 1u32 ) ; pub const SWP_NOZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 4u32 ) ; pub const SWP_SHOWWINDOW : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 64u32 ) ; pub const SWP__NOOWNERZORDER : SET_WINDOW_POS_FLAGS = SET_WINDOW_POS_FLAGS ( 512u32 ) ; impl :: std :: convert :: From < u32 > for SET_WINDOW_POS_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SET_WINDOW_POS_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SET_WINDOW_POS_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SET_WINDOW_POS_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SET_WINDOW_POS_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SET_WINDOW_POS_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SHELLHOOKINFO { pub hwnd : super::super::Foundation:: HWND , pub rc : super::super::Foundation:: RECT } impl SHELLHOOKINFO { } impl :: std :: default :: Default for SHELLHOOKINFO { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , rc : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for SHELLHOOKINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SHELLHOOKINFO" ) . field ( "hwnd" , & self . hwnd ) . field ( "rc" , & self . rc ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SHELLHOOKINFO { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . rc == other . rc } } impl :: std :: cmp :: Eq for SHELLHOOKINFO { } unsafe impl :: windows :: Abi for SHELLHOOKINFO { type Abi = Self ; type DefaultType = Self ; } pub const SHOW_FULLSCREEN : u32 = 3u32 ; pub const SHOW_ICONWINDOW : u32 = 2u32 ; pub const SHOW_OPENNOACTIVATE : u32 = 4u32 ; pub const SHOW_OPENWINDOW : 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 SHOW_WINDOW_CMD ( pub u32 ) ; pub const SW_FORCEMINIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 11u32 ) ; pub const SW_HIDE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 0u32 ) ; pub const SW_MAXIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_MINIMIZE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 6u32 ) ; pub const SW_RESTORE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 9u32 ) ; pub const SW_SHOW : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 5u32 ) ; pub const SW_SHOWDEFAULT : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 10u32 ) ; pub const SW_SHOWMAXIMIZED : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_SHOWMINIMIZED : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_SHOWMINNOACTIVE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 7u32 ) ; pub const SW_SHOWNA : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 8u32 ) ; pub const SW_SHOWNOACTIVATE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SHOWNORMAL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_NORMAL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_MAX : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 11u32 ) ; pub const SW_PARENTCLOSING : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_OTHERZOOM : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_PARENTOPENING : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 3u32 ) ; pub const SW_OTHERUNZOOM : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SCROLLCHILDREN : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 1u32 ) ; pub const SW_INVALIDATE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 2u32 ) ; pub const SW_ERASE : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 4u32 ) ; pub const SW_SMOOTHSCROLL : SHOW_WINDOW_CMD = SHOW_WINDOW_CMD ( 16u32 ) ; impl :: std :: convert :: From < u32 > for SHOW_WINDOW_CMD { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SHOW_WINDOW_CMD { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SHOW_WINDOW_CMD { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SHOW_WINDOW_CMD { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SHOW_WINDOW_CMD { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SHOW_WINDOW_CMD { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const SIZE_MAXHIDE : u32 = 4u32 ; pub const SIZE_MAXIMIZED : u32 = 2u32 ; pub const SIZE_MAXSHOW : u32 = 3u32 ; pub const SIZE_MINIMIZED : u32 = 1u32 ; pub const SIZE_RESTORED : u32 = 0u32 ; pub const SM_CARETBLINKINGENABLED : u32 = 8194u32 ; pub const SM_CMETRICS : u32 = 76u32 ; pub const SM_RESERVED1 : u32 = 24u32 ; pub const SM_RESERVED2 : u32 = 25u32 ; pub const SM_RESERVED3 : u32 = 26u32 ; pub const SM_RESERVED4 : u32 = 27u32 ; pub const SM_SYSTEMDOCKED : u32 = 8196u32 ; pub const SOUND_SYSTEM_APPEND : u32 = 14u32 ; pub const SOUND_SYSTEM_APPSTART : u32 = 12u32 ; pub const SOUND_SYSTEM_BEEP : u32 = 3u32 ; pub const SOUND_SYSTEM_ERROR : u32 = 4u32 ; pub const SOUND_SYSTEM_FAULT : u32 = 13u32 ; pub const SOUND_SYSTEM_INFORMATION : u32 = 7u32 ; pub const SOUND_SYSTEM_MAXIMIZE : u32 = 8u32 ; pub const SOUND_SYSTEM_MENUCOMMAND : u32 = 15u32 ; pub const SOUND_SYSTEM_MENUPOPUP : u32 = 16u32 ; pub const SOUND_SYSTEM_MINIMIZE : u32 = 9u32 ; pub const SOUND_SYSTEM_QUESTION : u32 = 5u32 ; pub const SOUND_SYSTEM_RESTOREDOWN : u32 = 11u32 ; pub const SOUND_SYSTEM_RESTOREUP : u32 = 10u32 ; pub const SOUND_SYSTEM_SHUTDOWN : u32 = 2u32 ; pub const SOUND_SYSTEM_STARTUP : u32 = 1u32 ; pub const SOUND_SYSTEM_WARNING : u32 = 6u32 ; pub const SS_BITMAP : i32 = 14i32 ; pub const SS_BLACKFRAME : i32 = 7i32 ; pub const SS_BLACKRECT : i32 = 4i32 ; pub const SS_CENTER : i32 = 1i32 ; pub const SS_CENTERIMAGE : i32 = 512i32 ; pub const SS_EDITCONTROL : i32 = 8192i32 ; pub const SS_ELLIPSISMASK : i32 = 49152i32 ; pub const SS_ENDELLIPSIS : i32 = 16384i32 ; pub const SS_ENHMETAFILE : i32 = 15i32 ; pub const SS_ETCHEDFRAME : i32 = 18i32 ; pub const SS_ETCHEDHORZ : i32 = 16i32 ; pub const SS_ETCHEDVERT : i32 = 17i32 ; pub const SS_GRAYFRAME : i32 = 8i32 ; pub const SS_GRAYRECT : i32 = 5i32 ; pub const SS_ICON : i32 = 3i32 ; pub const SS_LEFT : i32 = 0i32 ; pub const SS_LEFTNOWORDWRAP : i32 = 12i32 ; pub const SS_NOPREFIX : i32 = 128i32 ; pub const SS_NOTIFY : i32 = 256i32 ; pub const SS_OWNERDRAW : i32 = 13i32 ; pub const SS_PATHELLIPSIS : i32 = 32768i32 ; pub const SS_REALSIZECONTROL : i32 = 64i32 ; pub const SS_REALSIZEIMAGE : i32 = 2048i32 ; pub const SS_RIGHT : i32 = 2i32 ; pub const SS_RIGHTJUST : i32 = 1024i32 ; pub const SS_SIMPLE : i32 = 11i32 ; pub const SS_SUNKEN : i32 = 4096i32 ; pub const SS_TYPEMASK : i32 = 31i32 ; pub const SS_USERITEM : i32 = 10i32 ; pub const SS_WHITEFRAME : i32 = 9i32 ; pub const SS_WHITERECT : i32 = 6i32 ; pub const SS_WORDELLIPSIS : i32 = 49152i32 ; pub const START_PAGE_GENERAL : u32 = 4294967295u32 ; pub const STATE_SYSTEM_ALERT_HIGH : u32 = 268435456u32 ; pub const STATE_SYSTEM_ALERT_LOW : u32 = 67108864u32 ; pub const STATE_SYSTEM_ALERT_MEDIUM : u32 = 134217728u32 ; pub const STATE_SYSTEM_ANIMATED : u32 = 16384u32 ; pub const STATE_SYSTEM_BUSY : u32 = 2048u32 ; pub const STATE_SYSTEM_CHECKED : u32 = 16u32 ; pub const STATE_SYSTEM_COLLAPSED : u32 = 1024u32 ; pub const STATE_SYSTEM_DEFAULT : u32 = 256u32 ; pub const STATE_SYSTEM_EXPANDED : u32 = 512u32 ; pub const STATE_SYSTEM_EXTSELECTABLE : u32 = 33554432u32 ; pub const STATE_SYSTEM_FLOATING : u32 = 4096u32 ; pub const STATE_SYSTEM_FOCUSED : u32 = 4u32 ; pub const STATE_SYSTEM_HOTTRACKED : u32 = 128u32 ; pub const STATE_SYSTEM_LINKED : u32 = 4194304u32 ; pub const STATE_SYSTEM_MARQUEED : u32 = 8192u32 ; pub const STATE_SYSTEM_MIXED : u32 = 32u32 ; pub const STATE_SYSTEM_MOVEABLE : u32 = 262144u32 ; pub const STATE_SYSTEM_MULTISELECTABLE : u32 = 16777216u32 ; pub const STATE_SYSTEM_PROTECTED : u32 = 536870912u32 ; pub const STATE_SYSTEM_READONLY : u32 = 64u32 ; pub const STATE_SYSTEM_SELECTABLE : u32 = 2097152u32 ; pub const STATE_SYSTEM_SELECTED : u32 = 2u32 ; pub const STATE_SYSTEM_SELFVOICING : u32 = 524288u32 ; pub const STATE_SYSTEM_SIZEABLE : u32 = 131072u32 ; pub const STATE_SYSTEM_TRAVERSED : u32 = 8388608u32 ; pub const STATE_SYSTEM_VALID : u32 = 1073741823u32 ; pub const STM_GETICON : u32 = 369u32 ; pub const STM_GETIMAGE : u32 = 371u32 ; pub const STM_MSGMAX : u32 = 372u32 ; pub const STM_SETICON : u32 = 368u32 ; pub const STM_SETIMAGE : u32 = 370u32 ; pub const STN_CLICKED : u32 = 0u32 ; pub const STN_DBLCLK : u32 = 1u32 ; pub const STN_DISABLE : u32 = 3u32 ; pub const STN_ENABLE : u32 = 2u32 ; pub const STRSAFE_E_END_OF_FILE : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024858i32 as _ ) ; pub const STRSAFE_E_INSUFFICIENT_BUFFER : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024774i32 as _ ) ; pub const STRSAFE_E_INVALID_PARAMETER : :: windows :: HRESULT = :: windows :: HRESULT ( -2147024809i32 as _ ) ; pub const STRSAFE_FILL_BEHIND_NULL : u32 = 512u32 ; pub const STRSAFE_FILL_ON_FAILURE : u32 = 1024u32 ; pub const STRSAFE_IGNORE_NULLS : u32 = 256u32 ; pub const STRSAFE_MAX_CCH : u32 = 2147483647u32 ; pub const STRSAFE_NO_TRUNCATION : u32 = 4096u32 ; pub const STRSAFE_NULL_ON_FAILURE : u32 = 2048u32 ; pub const STRSAFE_USE_SECURE_CRT : u32 = 0u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct STYLESTRUCT { pub styleOld : u32 , pub styleNew : u32 } impl STYLESTRUCT { } impl :: std :: default :: Default for STYLESTRUCT { fn default ( ) -> Self { Self { styleOld : 0 , styleNew : 0 } } } impl :: std :: fmt :: Debug for STYLESTRUCT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "STYLESTRUCT" ) . field ( "styleOld" , & self . styleOld ) . field ( "styleNew" , & self . styleNew ) . finish ( ) } } impl :: std :: cmp :: PartialEq for STYLESTRUCT { fn eq ( & self , other : & Self ) -> bool { self . styleOld == other . styleOld && self . styleNew == other . styleNew } } impl :: std :: cmp :: Eq for STYLESTRUCT { } unsafe impl :: windows :: Abi for STYLESTRUCT { type Abi = Self ; type DefaultType = Self ; } pub const SYMBOL_FONTTYPE : u32 = 524288u32 ; # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_CURSOR_ID ( pub u32 ) ; pub const OCR_APPSTARTING : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32650u32 ) ; pub const OCR_NORMAL : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32512u32 ) ; pub const OCR_CROSS : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32515u32 ) ; pub const OCR_HAND : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32649u32 ) ; pub const OCR_HELP : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32651u32 ) ; pub const OCR_IBEAM : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32513u32 ) ; pub const OCR_NO : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32648u32 ) ; pub const OCR_SIZEALL : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32646u32 ) ; pub const OCR_SIZENESW : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32643u32 ) ; pub const OCR_SIZENS : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32645u32 ) ; pub const OCR_SIZENWSE : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32642u32 ) ; pub const OCR_SIZEWE : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32644u32 ) ; pub const OCR_UP : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32516u32 ) ; pub const OCR_WAIT : SYSTEM_CURSOR_ID = SYSTEM_CURSOR_ID ( 32514u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_CURSOR_ID { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_CURSOR_ID { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_CURSOR_ID { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_CURSOR_ID { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_CURSOR_ID { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_CURSOR_ID { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_METRICS_INDEX ( pub u32 ) ; pub const SM_ARRANGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 56u32 ) ; pub const SM_CLEANBOOT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 67u32 ) ; pub const SM_CMONITORS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 80u32 ) ; pub const SM_CMOUSEBUTTONS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 43u32 ) ; pub const SM_CONVERTIBLESLATEMODE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8195u32 ) ; pub const SM_CXBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 5u32 ) ; pub const SM_CXCURSOR : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 13u32 ) ; pub const SM_CXDLGFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 7u32 ) ; pub const SM_CXDOUBLECLK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 36u32 ) ; pub const SM_CXDRAG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 68u32 ) ; pub const SM_CXEDGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 45u32 ) ; pub const SM_CXFIXEDFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 7u32 ) ; pub const SM_CXFOCUSBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 83u32 ) ; pub const SM_CXFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 32u32 ) ; pub const SM_CXFULLSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 16u32 ) ; pub const SM_CXHSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 21u32 ) ; pub const SM_CXHTHUMB : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 10u32 ) ; pub const SM_CXICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 11u32 ) ; pub const SM_CXICONSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 38u32 ) ; pub const SM_CXMAXIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 61u32 ) ; pub const SM_CXMAXTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 59u32 ) ; pub const SM_CXMENUCHECK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 71u32 ) ; pub const SM_CXMENUSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 54u32 ) ; pub const SM_CXMIN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 28u32 ) ; pub const SM_CXMINIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 57u32 ) ; pub const SM_CXMINSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 47u32 ) ; pub const SM_CXMINTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 34u32 ) ; pub const SM_CXPADDEDBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 92u32 ) ; pub const SM_CXSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 0u32 ) ; pub const SM_CXSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 30u32 ) ; pub const SM_CXSIZEFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 32u32 ) ; pub const SM_CXSMICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 49u32 ) ; pub const SM_CXSMSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 52u32 ) ; pub const SM_CXVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 78u32 ) ; pub const SM_CXVSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 2u32 ) ; pub const SM_CYBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 6u32 ) ; pub const SM_CYCAPTION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 4u32 ) ; pub const SM_CYCURSOR : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 14u32 ) ; pub const SM_CYDLGFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8u32 ) ; pub const SM_CYDOUBLECLK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 37u32 ) ; pub const SM_CYDRAG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 69u32 ) ; pub const SM_CYEDGE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 46u32 ) ; pub const SM_CYFIXEDFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8u32 ) ; pub const SM_CYFOCUSBORDER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 84u32 ) ; pub const SM_CYFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 33u32 ) ; pub const SM_CYFULLSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 17u32 ) ; pub const SM_CYHSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 3u32 ) ; pub const SM_CYICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 12u32 ) ; pub const SM_CYICONSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 39u32 ) ; pub const SM_CYKANJIWINDOW : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 18u32 ) ; pub const SM_CYMAXIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 62u32 ) ; pub const SM_CYMAXTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 60u32 ) ; pub const SM_CYMENU : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 15u32 ) ; pub const SM_CYMENUCHECK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 72u32 ) ; pub const SM_CYMENUSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 55u32 ) ; pub const SM_CYMIN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 29u32 ) ; pub const SM_CYMINIMIZED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 58u32 ) ; pub const SM_CYMINSPACING : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 48u32 ) ; pub const SM_CYMINTRACK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 35u32 ) ; pub const SM_CYSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 1u32 ) ; pub const SM_CYSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 31u32 ) ; pub const SM_CYSIZEFRAME : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 33u32 ) ; pub const SM_CYSMCAPTION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 51u32 ) ; pub const SM_CYSMICON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 50u32 ) ; pub const SM_CYSMSIZE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 53u32 ) ; pub const SM_CYVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 79u32 ) ; pub const SM_CYVSCROLL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 20u32 ) ; pub const SM_CYVTHUMB : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 9u32 ) ; pub const SM_DBCSENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 42u32 ) ; pub const SM_DEBUG : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 22u32 ) ; pub const SM_DIGITIZER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 94u32 ) ; pub const SM_IMMENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 82u32 ) ; pub const SM_MAXIMUMTOUCHES : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 95u32 ) ; pub const SM_MEDIACENTER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 87u32 ) ; pub const SM_MENUDROPALIGNMENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 40u32 ) ; pub const SM_MIDEASTENABLED : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 74u32 ) ; pub const SM_MOUSEPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 19u32 ) ; pub const SM_MOUSEHORIZONTALWHEELPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 91u32 ) ; pub const SM_MOUSEWHEELPRESENT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 75u32 ) ; pub const SM_NETWORK : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 63u32 ) ; pub const SM_PENWINDOWS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 41u32 ) ; pub const SM_REMOTECONTROL : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8193u32 ) ; pub const SM_REMOTESESSION : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 4096u32 ) ; pub const SM_SAMEDISPLAYFORMAT : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 81u32 ) ; pub const SM_SECURE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 44u32 ) ; pub const SM_SERVERR2 : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 89u32 ) ; pub const SM_SHOWSOUNDS : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 70u32 ) ; pub const SM_SHUTTINGDOWN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8192u32 ) ; pub const SM_SLOWMACHINE : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 73u32 ) ; pub const SM_STARTER : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 88u32 ) ; pub const SM_SWAPBUTTON : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 23u32 ) ; pub const SM_SYSTEMDOCKED_ : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 8196u32 ) ; pub const SM_TABLETPC : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 86u32 ) ; pub const SM_XVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 76u32 ) ; pub const SM_YVIRTUALSCREEN : SYSTEM_METRICS_INDEX = SYSTEM_METRICS_INDEX ( 77u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_METRICS_INDEX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_METRICS_INDEX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_METRICS_INDEX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_METRICS_INDEX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_METRICS_INDEX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_METRICS_INDEX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_PARAMETERS_INFO_ACTION ( pub u32 ) ; pub const SPI_GETBEEP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 1u32 ) ; pub const SPI_SETBEEP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 2u32 ) ; pub const SPI_GETMOUSE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 3u32 ) ; pub const SPI_SETMOUSE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4u32 ) ; pub const SPI_GETBORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 5u32 ) ; pub const SPI_SETBORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 6u32 ) ; pub const SPI_GETKEYBOARDSPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 10u32 ) ; pub const SPI_SETKEYBOARDSPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 11u32 ) ; pub const SPI_LANGDRIVER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 12u32 ) ; pub const SPI_ICONHORIZONTALSPACING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 13u32 ) ; pub const SPI_GETSCREENSAVETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 14u32 ) ; pub const SPI_SETSCREENSAVETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 15u32 ) ; pub const SPI_GETSCREENSAVEACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 16u32 ) ; pub const SPI_SETSCREENSAVEACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 17u32 ) ; pub const SPI_GETGRIDGRANULARITY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 18u32 ) ; pub const SPI_SETGRIDGRANULARITY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 19u32 ) ; pub const SPI_SETDESKWALLPAPER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 20u32 ) ; pub const SPI_SETDESKPATTERN : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 21u32 ) ; pub const SPI_GETKEYBOARDDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 22u32 ) ; pub const SPI_SETKEYBOARDDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 23u32 ) ; pub const SPI_ICONVERTICALSPACING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 24u32 ) ; pub const SPI_GETICONTITLEWRAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 25u32 ) ; pub const SPI_SETICONTITLEWRAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 26u32 ) ; pub const SPI_GETMENUDROPALIGNMENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 27u32 ) ; pub const SPI_SETMENUDROPALIGNMENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 28u32 ) ; pub const SPI_SETDOUBLECLKWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 29u32 ) ; pub const SPI_SETDOUBLECLKHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 30u32 ) ; pub const SPI_GETICONTITLELOGFONT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 31u32 ) ; pub const SPI_SETDOUBLECLICKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 32u32 ) ; pub const SPI_SETMOUSEBUTTONSWAP : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 33u32 ) ; pub const SPI_SETICONTITLELOGFONT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 34u32 ) ; pub const SPI_GETFASTTASKSWITCH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 35u32 ) ; pub const SPI_SETFASTTASKSWITCH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 36u32 ) ; pub const SPI_SETDRAGFULLWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 37u32 ) ; pub const SPI_GETDRAGFULLWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 38u32 ) ; pub const SPI_GETNONCLIENTMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 41u32 ) ; pub const SPI_SETNONCLIENTMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 42u32 ) ; pub const SPI_GETMINIMIZEDMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 43u32 ) ; pub const SPI_SETMINIMIZEDMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 44u32 ) ; pub const SPI_GETICONMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 45u32 ) ; pub const SPI_SETICONMETRICS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 46u32 ) ; pub const SPI_SETWORKAREA : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 47u32 ) ; pub const SPI_GETWORKAREA : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 48u32 ) ; pub const SPI_SETPENWINDOWS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 49u32 ) ; pub const SPI_GETHIGHCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 66u32 ) ; pub const SPI_SETHIGHCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 67u32 ) ; pub const SPI_GETKEYBOARDPREF : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 68u32 ) ; pub const SPI_SETKEYBOARDPREF : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 69u32 ) ; pub const SPI_GETSCREENREADER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 70u32 ) ; pub const SPI_SETSCREENREADER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 71u32 ) ; pub const SPI_GETANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 72u32 ) ; pub const SPI_SETANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 73u32 ) ; pub const SPI_GETFONTSMOOTHING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 74u32 ) ; pub const SPI_SETFONTSMOOTHING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 75u32 ) ; pub const SPI_SETDRAGWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 76u32 ) ; pub const SPI_SETDRAGHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 77u32 ) ; pub const SPI_SETHANDHELD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 78u32 ) ; pub const SPI_GETLOWPOWERTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 79u32 ) ; pub const SPI_GETPOWEROFFTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 80u32 ) ; pub const SPI_SETLOWPOWERTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 81u32 ) ; pub const SPI_SETPOWEROFFTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 82u32 ) ; pub const SPI_GETLOWPOWERACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 83u32 ) ; pub const SPI_GETPOWEROFFACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 84u32 ) ; pub const SPI_SETLOWPOWERACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 85u32 ) ; pub const SPI_SETPOWEROFFACTIVE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 86u32 ) ; pub const SPI_SETCURSORS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 87u32 ) ; pub const SPI_SETICONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 88u32 ) ; pub const SPI_GETDEFAULTINPUTLANG : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 89u32 ) ; pub const SPI_SETDEFAULTINPUTLANG : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 90u32 ) ; pub const SPI_SETLANGTOGGLE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 91u32 ) ; pub const SPI_GETWINDOWSEXTENSION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 92u32 ) ; pub const SPI_SETMOUSETRAILS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 93u32 ) ; pub const SPI_GETMOUSETRAILS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 94u32 ) ; pub const SPI_SETSCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 97u32 ) ; pub const SPI_SCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 97u32 ) ; pub const SPI_GETFILTERKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 50u32 ) ; pub const SPI_SETFILTERKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 51u32 ) ; pub const SPI_GETTOGGLEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 52u32 ) ; pub const SPI_SETTOGGLEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 53u32 ) ; pub const SPI_GETMOUSEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 54u32 ) ; pub const SPI_SETMOUSEKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 55u32 ) ; pub const SPI_GETSHOWSOUNDS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 56u32 ) ; pub const SPI_SETSHOWSOUNDS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 57u32 ) ; pub const SPI_GETSTICKYKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 58u32 ) ; pub const SPI_SETSTICKYKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 59u32 ) ; pub const SPI_GETACCESSTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 60u32 ) ; pub const SPI_SETACCESSTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 61u32 ) ; pub const SPI_GETSERIALKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 62u32 ) ; pub const SPI_SETSERIALKEYS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 63u32 ) ; pub const SPI_GETSOUNDSENTRY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 64u32 ) ; pub const SPI_SETSOUNDSENTRY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 65u32 ) ; pub const SPI_GETSNAPTODEFBUTTON : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 95u32 ) ; pub const SPI_SETSNAPTODEFBUTTON : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 96u32 ) ; pub const SPI_GETMOUSEHOVERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 98u32 ) ; pub const SPI_SETMOUSEHOVERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 99u32 ) ; pub const SPI_GETMOUSEHOVERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 100u32 ) ; pub const SPI_SETMOUSEHOVERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 101u32 ) ; pub const SPI_GETMOUSEHOVERTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 102u32 ) ; pub const SPI_SETMOUSEHOVERTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 103u32 ) ; pub const SPI_GETWHEELSCROLLLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 104u32 ) ; pub const SPI_SETWHEELSCROLLLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 105u32 ) ; pub const SPI_GETMENUSHOWDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 106u32 ) ; pub const SPI_SETMENUSHOWDELAY : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 107u32 ) ; pub const SPI_GETWHEELSCROLLCHARS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 108u32 ) ; pub const SPI_SETWHEELSCROLLCHARS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 109u32 ) ; pub const SPI_GETSHOWIMEUI : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 110u32 ) ; pub const SPI_SETSHOWIMEUI : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 111u32 ) ; pub const SPI_GETMOUSESPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 112u32 ) ; pub const SPI_SETMOUSESPEED : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 113u32 ) ; pub const SPI_GETSCREENSAVERRUNNING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 114u32 ) ; pub const SPI_GETDESKWALLPAPER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 115u32 ) ; pub const SPI_GETAUDIODESCRIPTION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 116u32 ) ; pub const SPI_SETAUDIODESCRIPTION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 117u32 ) ; pub const SPI_GETSCREENSAVESECURE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 118u32 ) ; pub const SPI_SETSCREENSAVESECURE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 119u32 ) ; pub const SPI_GETHUNGAPPTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 120u32 ) ; pub const SPI_SETHUNGAPPTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 121u32 ) ; pub const SPI_GETWAITTOKILLTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 122u32 ) ; pub const SPI_SETWAITTOKILLTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 123u32 ) ; pub const SPI_GETWAITTOKILLSERVICETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 124u32 ) ; pub const SPI_SETWAITTOKILLSERVICETIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 125u32 ) ; pub const SPI_GETMOUSEDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 126u32 ) ; pub const SPI_SETMOUSEDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 127u32 ) ; pub const SPI_GETPENDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 128u32 ) ; pub const SPI_SETPENDOCKTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 129u32 ) ; pub const SPI_GETWINARRANGING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 130u32 ) ; pub const SPI_SETWINARRANGING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 131u32 ) ; pub const SPI_GETMOUSEDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 132u32 ) ; pub const SPI_SETMOUSEDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 133u32 ) ; pub const SPI_GETPENDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 134u32 ) ; pub const SPI_SETPENDRAGOUTTHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 135u32 ) ; pub const SPI_GETMOUSESIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 136u32 ) ; pub const SPI_SETMOUSESIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 137u32 ) ; pub const SPI_GETPENSIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 138u32 ) ; pub const SPI_SETPENSIDEMOVETHRESHOLD : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 139u32 ) ; pub const SPI_GETDRAGFROMMAXIMIZE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 140u32 ) ; pub const SPI_SETDRAGFROMMAXIMIZE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 141u32 ) ; pub const SPI_GETSNAPSIZING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 142u32 ) ; pub const SPI_SETSNAPSIZING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 143u32 ) ; pub const SPI_GETDOCKMOVING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 144u32 ) ; pub const SPI_SETDOCKMOVING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 145u32 ) ; pub const SPI_GETTOUCHPREDICTIONPARAMETERS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 156u32 ) ; pub const SPI_SETTOUCHPREDICTIONPARAMETERS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 157u32 ) ; pub const SPI_GETLOGICALDPIOVERRIDE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 158u32 ) ; pub const SPI_SETLOGICALDPIOVERRIDE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 159u32 ) ; pub const SPI_GETMENURECT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 162u32 ) ; pub const SPI_SETMENURECT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 163u32 ) ; pub const SPI_GETACTIVEWINDOWTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4096u32 ) ; pub const SPI_SETACTIVEWINDOWTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4097u32 ) ; pub const SPI_GETMENUANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4098u32 ) ; pub const SPI_SETMENUANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4099u32 ) ; pub const SPI_GETCOMBOBOXANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4100u32 ) ; pub const SPI_SETCOMBOBOXANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4101u32 ) ; pub const SPI_GETLISTBOXSMOOTHSCROLLING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4102u32 ) ; pub const SPI_SETLISTBOXSMOOTHSCROLLING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4103u32 ) ; pub const SPI_GETGRADIENTCAPTIONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4104u32 ) ; pub const SPI_SETGRADIENTCAPTIONS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4105u32 ) ; pub const SPI_GETKEYBOARDCUES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4106u32 ) ; pub const SPI_SETKEYBOARDCUES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4107u32 ) ; pub const SPI_GETMENUUNDERLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4106u32 ) ; pub const SPI_SETMENUUNDERLINES : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4107u32 ) ; pub const SPI_GETACTIVEWNDTRKZORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4108u32 ) ; pub const SPI_SETACTIVEWNDTRKZORDER : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4109u32 ) ; pub const SPI_GETHOTTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4110u32 ) ; pub const SPI_SETHOTTRACKING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4111u32 ) ; pub const SPI_GETMENUFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4114u32 ) ; pub const SPI_SETMENUFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4115u32 ) ; pub const SPI_GETSELECTIONFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4116u32 ) ; pub const SPI_SETSELECTIONFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4117u32 ) ; pub const SPI_GETTOOLTIPANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4118u32 ) ; pub const SPI_SETTOOLTIPANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4119u32 ) ; pub const SPI_GETTOOLTIPFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4120u32 ) ; pub const SPI_SETTOOLTIPFADE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4121u32 ) ; pub const SPI_GETCURSORSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4122u32 ) ; pub const SPI_SETCURSORSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4123u32 ) ; pub const SPI_GETMOUSESONAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4124u32 ) ; pub const SPI_SETMOUSESONAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4125u32 ) ; pub const SPI_GETMOUSECLICKLOCK : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4126u32 ) ; pub const SPI_SETMOUSECLICKLOCK : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4127u32 ) ; pub const SPI_GETMOUSEVANISH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4128u32 ) ; pub const SPI_SETMOUSEVANISH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4129u32 ) ; pub const SPI_GETFLATMENU : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4130u32 ) ; pub const SPI_SETFLATMENU : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4131u32 ) ; pub const SPI_GETDROPSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4132u32 ) ; pub const SPI_SETDROPSHADOW : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4133u32 ) ; pub const SPI_GETBLOCKSENDINPUTRESETS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4134u32 ) ; pub const SPI_SETBLOCKSENDINPUTRESETS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4135u32 ) ; pub const SPI_GETUIEFFECTS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4158u32 ) ; pub const SPI_SETUIEFFECTS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4159u32 ) ; pub const SPI_GETDISABLEOVERLAPPEDCONTENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4160u32 ) ; pub const SPI_SETDISABLEOVERLAPPEDCONTENT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4161u32 ) ; pub const SPI_GETCLIENTAREAANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4162u32 ) ; pub const SPI_SETCLIENTAREAANIMATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4163u32 ) ; pub const SPI_GETCLEARTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4168u32 ) ; pub const SPI_SETCLEARTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4169u32 ) ; pub const SPI_GETSPEECHRECOGNITION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4170u32 ) ; pub const SPI_SETSPEECHRECOGNITION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4171u32 ) ; pub const SPI_GETCARETBROWSING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4172u32 ) ; pub const SPI_SETCARETBROWSING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4173u32 ) ; pub const SPI_GETTHREADLOCALINPUTSETTINGS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4174u32 ) ; pub const SPI_SETTHREADLOCALINPUTSETTINGS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4175u32 ) ; pub const SPI_GETSYSTEMLANGUAGEBAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4176u32 ) ; pub const SPI_SETSYSTEMLANGUAGEBAR : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 4177u32 ) ; pub const SPI_GETFOREGROUNDLOCKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8192u32 ) ; pub const SPI_SETFOREGROUNDLOCKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8193u32 ) ; pub const SPI_GETACTIVEWNDTRKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8194u32 ) ; pub const SPI_SETACTIVEWNDTRKTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8195u32 ) ; pub const SPI_GETFOREGROUNDFLASHCOUNT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8196u32 ) ; pub const SPI_SETFOREGROUNDFLASHCOUNT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8197u32 ) ; pub const SPI_GETCARETWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8198u32 ) ; pub const SPI_SETCARETWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8199u32 ) ; pub const SPI_GETMOUSECLICKLOCKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8200u32 ) ; pub const SPI_SETMOUSECLICKLOCKTIME : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8201u32 ) ; pub const SPI_GETFONTSMOOTHINGTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8202u32 ) ; pub const SPI_SETFONTSMOOTHINGTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8203u32 ) ; pub const SPI_GETFONTSMOOTHINGCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8204u32 ) ; pub const SPI_SETFONTSMOOTHINGCONTRAST : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8205u32 ) ; pub const SPI_GETFOCUSBORDERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8206u32 ) ; pub const SPI_SETFOCUSBORDERWIDTH : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8207u32 ) ; pub const SPI_GETFOCUSBORDERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8208u32 ) ; pub const SPI_SETFOCUSBORDERHEIGHT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8209u32 ) ; pub const SPI_GETFONTSMOOTHINGORIENTATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8210u32 ) ; pub const SPI_SETFONTSMOOTHINGORIENTATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8211u32 ) ; pub const SPI_GETMINIMUMHITRADIUS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8212u32 ) ; pub const SPI_SETMINIMUMHITRADIUS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8213u32 ) ; pub const SPI_GETMESSAGEDURATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8214u32 ) ; pub const SPI_SETMESSAGEDURATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8215u32 ) ; pub const SPI_GETCONTACTVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8216u32 ) ; pub const SPI_SETCONTACTVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8217u32 ) ; pub const SPI_GETGESTUREVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8218u32 ) ; pub const SPI_SETGESTUREVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8219u32 ) ; pub const SPI_GETMOUSEWHEELROUTING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8220u32 ) ; pub const SPI_SETMOUSEWHEELROUTING : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8221u32 ) ; pub const SPI_GETPENVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8222u32 ) ; pub const SPI_SETPENVISUALIZATION : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8223u32 ) ; pub const SPI_GETPENARBITRATIONTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8224u32 ) ; pub const SPI_SETPENARBITRATIONTYPE : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8225u32 ) ; pub const SPI_GETCARETTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8226u32 ) ; pub const SPI_SETCARETTIMEOUT : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8227u32 ) ; pub const SPI_GETHANDEDNESS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8228u32 ) ; pub const SPI_SETHANDEDNESS : SYSTEM_PARAMETERS_INFO_ACTION = SYSTEM_PARAMETERS_INFO_ACTION ( 8229u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_PARAMETERS_INFO_ACTION { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_PARAMETERS_INFO_ACTION { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_PARAMETERS_INFO_ACTION { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_PARAMETERS_INFO_ACTION { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_PARAMETERS_INFO_ACTION { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_PARAMETERS_INFO_ACTION { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( pub u32 ) ; pub const SPIF_UPDATEINIFILE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 1u32 ) ; pub const SPIF_SENDCHANGE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 2u32 ) ; pub const SPIF_SENDWININICHANGE : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS = SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ( 2u32 ) ; impl :: std :: convert :: From < u32 > for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct SYS_COLOR_INDEX ( pub u32 ) ; pub const COLOR_3DDKSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 21u32 ) ; pub const COLOR_3DFACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 15u32 ) ; pub const COLOR_3DHIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_3DHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_3DLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 22u32 ) ; pub const COLOR_3DSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 16u32 ) ; pub const COLOR_ACTIVEBORDER : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 10u32 ) ; pub const COLOR_ACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 2u32 ) ; pub const COLOR_APPWORKSPACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 12u32 ) ; pub const COLOR_BACKGROUND : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 1u32 ) ; pub const COLOR_BTNFACE : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 15u32 ) ; pub const _COLOR_BTNHIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const _COLOR_BTNHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 20u32 ) ; pub const COLOR_BTNSHADOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 16u32 ) ; pub const COLOR_BTNTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 18u32 ) ; pub const COLOR_CAPTIONTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 9u32 ) ; pub const COLOR_DESKTOP : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 1u32 ) ; pub const COLOR_GRADIENTACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 27u32 ) ; pub const COLOR_GRADIENTINACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 28u32 ) ; pub const COLOR_GRAYTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 17u32 ) ; pub const COLOR_HIGHLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 13u32 ) ; pub const COLOR_HIGHLIGHTTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 14u32 ) ; pub const COLOR_HOTLIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 26u32 ) ; pub const COLOR_INACTIVEBORDER : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 11u32 ) ; pub const COLOR_INACTIVECAPTION : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 3u32 ) ; pub const COLOR_INACTIVECAPTIONTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 19u32 ) ; pub const COLOR_INFOBK : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 24u32 ) ; pub const COLOR_INFOTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 23u32 ) ; pub const COLOR_MENU : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 4u32 ) ; pub const COLOR_MENUHILIGHT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 29u32 ) ; pub const COLOR_MENUBAR : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 30u32 ) ; pub const COLOR_MENUTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 7u32 ) ; pub const COLOR_SCROLLBAR : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 0u32 ) ; pub const COLOR_WINDOW : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 5u32 ) ; pub const COLOR_WINDOWFRAME : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 6u32 ) ; pub const COLOR_WINDOWTEXT : SYS_COLOR_INDEX = SYS_COLOR_INDEX ( 8u32 ) ; impl :: std :: convert :: From < u32 > for SYS_COLOR_INDEX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for SYS_COLOR_INDEX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for SYS_COLOR_INDEX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for SYS_COLOR_INDEX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for SYS_COLOR_INDEX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for SYS_COLOR_INDEX { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub unsafe fn SendDlgItemMessageA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendDlgItemMessageA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendDlgItemMessageA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendDlgItemMessageW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendDlgItemMessageW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendDlgItemMessageW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , :: std :: mem :: transmute ( wparam ) , :: std :: mem :: transmute ( lparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageCallbackA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , lpresultcallback : :: std :: option :: Option < SENDASYNCPROC > , dwdata : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageCallbackA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , lpresultcallback : :: windows :: RawPtr , dwdata : usize ) -> super::super::Foundation:: BOOL ; } SendMessageCallbackA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpresultcallback ) , :: std :: mem :: transmute ( dwdata ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageCallbackW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , lpresultcallback : :: std :: option :: Option < SENDASYNCPROC > , dwdata : usize , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageCallbackW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , lpresultcallback : :: windows :: RawPtr , dwdata : usize ) -> super::super::Foundation:: BOOL ; } SendMessageCallbackW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpresultcallback ) , :: std :: mem :: transmute ( dwdata ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageTimeoutA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageTimeoutA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize ) -> super::super::Foundation:: LRESULT ; } SendMessageTimeoutA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fuflags ) , :: std :: mem :: transmute ( utimeout ) , :: std :: mem :: transmute ( lpdwresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageTimeoutW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageTimeoutW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , fuflags : SEND_MESSAGE_TIMEOUT_FLAGS , utimeout : u32 , lpdwresult : * mut usize ) -> super::super::Foundation:: LRESULT ; } SendMessageTimeoutW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( fuflags ) , :: std :: mem :: transmute ( utimeout ) , :: std :: mem :: transmute ( lpdwresult ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM , ) -> super::super::Foundation:: LRESULT { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; } SendMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , :: std :: mem :: transmute ( wparam ) , :: std :: mem :: transmute ( lparam ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendNotifyMessageA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendNotifyMessageA ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } SendNotifyMessageA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SendNotifyMessageW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , msg : u32 , wparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: WPARAM > , lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SendNotifyMessageW ( hwnd : super::super::Foundation:: HWND , msg : u32 , wparam : super::super::Foundation:: WPARAM , lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; } SendNotifyMessageW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( msg ) , wparam . into_param ( ) . abi ( ) , lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCaretBlinkTime < > ( umseconds : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCaretBlinkTime ( umseconds : u32 ) -> super::super::Foundation:: BOOL ; } SetCaretBlinkTime ( :: std :: mem :: transmute ( umseconds ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCaretPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCaretPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetCaretPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 ) -> u32 ; } SetClassLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize ) -> usize ; } SetClassLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : isize ) -> usize ; } SetClassLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassLongW ( hwnd : super::super::Foundation:: HWND , nindex : GET_CLASS_LONG_INDEX , dwnewlong : i32 ) -> u32 ; } SetClassLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetClassWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , wnewword : u16 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetClassWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 , wnewword : u16 ) -> u16 ; } SetClassWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( wnewword ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCoalescableTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nidevent : usize , uelapse : u32 , lptimerfunc : :: std :: option :: Option < TIMERPROC > , utolerancedelay : u32 , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCoalescableTimer ( hwnd : super::super::Foundation:: HWND , nidevent : usize , uelapse : u32 , lptimerfunc : :: windows :: RawPtr , utolerancedelay : u32 ) -> usize ; } SetCoalescableTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nidevent ) , :: std :: mem :: transmute ( uelapse ) , :: std :: mem :: transmute ( lptimerfunc ) , :: std :: mem :: transmute ( utolerancedelay ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCursor < 'a , > ( hcursor : impl :: windows :: IntoParam < 'a , HCURSOR > , ) -> HCURSOR { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCursor ( hcursor : HCURSOR ) -> HCURSOR ; } SetCursor ( hcursor . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetCursorPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetCursorPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetCursorPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDebugErrorLevel < > ( dwlevel : u32 , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDebugErrorLevel ( dwlevel : u32 ) ; } SetDebugErrorLevel ( :: std :: mem :: transmute ( dwlevel ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemInt < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , uvalue : u32 , bsigned : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemInt ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , uvalue : u32 , bsigned : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } SetDlgItemInt ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , :: std :: mem :: transmute ( uvalue ) , bsigned . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemTextA < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemTextA ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } SetDlgItemTextA ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetDlgItemTextW < 'a , > ( hdlg : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , niddlgitem : i32 , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetDlgItemTextW ( hdlg : super::super::Foundation:: HWND , niddlgitem : i32 , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } SetDlgItemTextW ( hdlg . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( niddlgitem ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetForegroundWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetForegroundWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } SetForegroundWindow ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetLayeredWindowAttributes < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , crkey : u32 , balpha : u8 , dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetLayeredWindowAttributes ( hwnd : super::super::Foundation:: HWND , crkey : u32 , balpha : u8 , dwflags : LAYERED_WINDOW_ATTRIBUTES_FLAGS ) -> super::super::Foundation:: BOOL ; } SetLayeredWindowAttributes ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( crkey ) , :: std :: mem :: transmute ( balpha ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenu < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hmenu : impl :: windows :: IntoParam < 'a , HMENU > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenu ( hwnd : super::super::Foundation:: HWND , hmenu : HMENU ) -> super::super::Foundation:: BOOL ; } SetMenu ( hwnd . into_param ( ) . abi ( ) , hmenu . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuDefaultItem < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uitem : u32 , fbypos : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuDefaultItem ( hmenu : HMENU , uitem : u32 , fbypos : u32 ) -> super::super::Foundation:: BOOL ; } SetMenuDefaultItem ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uitem ) , :: std :: mem :: transmute ( fbypos ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuInfo < 'a , > ( param0 : impl :: windows :: IntoParam < 'a , HMENU > , param1 : * mut MENUINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuInfo ( param0 : HMENU , param1 : * mut MENUINFO ) -> super::super::Foundation:: BOOL ; } SetMenuInfo ( param0 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( param1 ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemBitmaps < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uposition : u32 , uflags : MENU_ITEM_FLAGS , hbitmapunchecked : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , hbitmapchecked : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HBITMAP > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemBitmaps ( hmenu : HMENU , uposition : u32 , uflags : MENU_ITEM_FLAGS , hbitmapunchecked : super::super::Graphics::Gdi:: HBITMAP , hbitmapchecked : super::super::Graphics::Gdi:: HBITMAP ) -> super::super::Foundation:: BOOL ; } SetMenuItemBitmaps ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uposition ) , :: std :: mem :: transmute ( uflags ) , hbitmapunchecked . into_param ( ) . abi ( ) , hbitmapchecked . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemInfoA < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbypositon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOA , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemInfoA ( hmenu : HMENU , item : u32 , fbypositon : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOA ) -> super::super::Foundation:: BOOL ; } SetMenuItemInfoA ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbypositon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMenuItemInfoW < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , item : u32 , fbypositon : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , lpmii : * mut MENUITEMINFOW , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMenuItemInfoW ( hmenu : HMENU , item : u32 , fbypositon : super::super::Foundation:: BOOL , lpmii : * mut MENUITEMINFOW ) -> super::super::Foundation:: BOOL ; } SetMenuItemInfoW ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( item ) , fbypositon . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmii ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMessageExtraInfo < 'a , > ( lparam : impl :: windows :: IntoParam < 'a , super::super::Foundation:: LPARAM > , ) -> super::super::Foundation:: LPARAM { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMessageExtraInfo ( lparam : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LPARAM ; } SetMessageExtraInfo ( lparam . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetMessageQueue < > ( cmessagesmax : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetMessageQueue ( cmessagesmax : i32 ) -> super::super::Foundation:: BOOL ; } SetMessageQueue ( :: std :: mem :: transmute ( cmessagesmax ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetParent < 'a , > ( hwndchild : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndnewparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetParent ( hwndchild : super::super::Foundation:: HWND , hwndnewparent : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } SetParent ( hwndchild . into_param ( ) . abi ( ) , hwndnewparent . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPhysicalCursorPos < > ( x : i32 , y : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPhysicalCursorPos ( x : i32 , y : i32 ) -> super::super::Foundation:: BOOL ; } SetPhysicalCursorPos ( :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetProcessDPIAware < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetProcessDPIAware ( ) -> super::super::Foundation:: BOOL ; } SetProcessDPIAware ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetProcessDefaultLayout < > ( dwdefaultlayout : u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetProcessDefaultLayout ( dwdefaultlayout : u32 ) -> super::super::Foundation:: BOOL ; } SetProcessDefaultLayout ( :: std :: mem :: transmute ( dwdefaultlayout ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPropA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hdata : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPropA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR , hdata : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } SetPropA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) , hdata . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetPropW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hdata : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HANDLE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetPropW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR , hdata : super::super::Foundation:: HANDLE ) -> super::super::Foundation:: BOOL ; } SetPropW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) , hdata . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetSysColors < > ( celements : i32 , lpaelements : * const i32 , lpargbvalues : * const u32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetSysColors ( celements : i32 , lpaelements : * const i32 , lpargbvalues : * const u32 ) -> super::super::Foundation:: BOOL ; } SetSysColors ( :: std :: mem :: transmute ( celements ) , :: std :: mem :: transmute ( lpaelements ) , :: std :: mem :: transmute ( lpargbvalues ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetSystemCursor < 'a , > ( hcur : impl :: windows :: IntoParam < 'a , HCURSOR > , id : SYSTEM_CURSOR_ID , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetSystemCursor ( hcur : HCURSOR , id : SYSTEM_CURSOR_ID ) -> super::super::Foundation:: BOOL ; } SetSystemCursor ( hcur . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( id ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetTimer < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nidevent : usize , uelapse : u32 , lptimerfunc : :: std :: option :: Option < TIMERPROC > , ) -> usize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetTimer ( hwnd : super::super::Foundation:: HWND , nidevent : usize , uelapse : u32 , lptimerfunc : :: windows :: RawPtr ) -> usize ; } SetTimer ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nidevent ) , :: std :: mem :: transmute ( uelapse ) , :: std :: mem :: transmute ( lptimerfunc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowDisplayAffinity < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , dwaffinity : WINDOW_DISPLAY_AFFINITY , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowDisplayAffinity ( hwnd : super::super::Foundation:: HWND , dwaffinity : WINDOW_DISPLAY_AFFINITY ) -> super::super::Foundation:: BOOL ; } SetWindowDisplayAffinity ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwaffinity ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 ) -> i32 ; } SetWindowLongA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongPtrA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongPtrA ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize ) -> isize ; } SetWindowLongPtrA ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongPtrW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize , ) -> isize { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongPtrW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : isize ) -> isize ; } SetWindowLongPtrW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowLongW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowLongW ( hwnd : super::super::Foundation:: HWND , nindex : WINDOW_LONG_PTR_INDEX , dwnewlong : i32 ) -> i32 ; } SetWindowLongW ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( dwnewlong ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowPlacement < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpwndpl : * const WINDOWPLACEMENT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowPlacement ( hwnd : super::super::Foundation:: HWND , lpwndpl : * const WINDOWPLACEMENT ) -> super::super::Foundation:: BOOL ; } SetWindowPlacement ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpwndpl ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowPos < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hwndinsertafter : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowPos ( hwnd : super::super::Foundation:: HWND , hwndinsertafter : super::super::Foundation:: HWND , x : i32 , y : i32 , cx : i32 , cy : i32 , uflags : SET_WINDOW_POS_FLAGS ) -> super::super::Foundation:: BOOL ; } SetWindowPos ( hwnd . into_param ( ) . abi ( ) , hwndinsertafter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( cx ) , :: std :: mem :: transmute ( cy ) , :: std :: mem :: transmute ( uflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowTextA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowTextA ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PSTR ) -> super::super::Foundation:: BOOL ; } SetWindowTextA ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowTextW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpstring : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowTextW ( hwnd : super::super::Foundation:: HWND , lpstring : super::super::Foundation:: PWSTR ) -> super::super::Foundation:: BOOL ; } SetWindowTextW ( hwnd . into_param ( ) . abi ( ) , lpstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowWord < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , nindex : i32 , wnewword : u16 , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowWord ( hwnd : super::super::Foundation:: HWND , nindex : i32 , wnewword : u16 ) -> u16 ; } SetWindowWord ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( nindex ) , :: std :: mem :: transmute ( wnewword ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookA < > ( nfiltertype : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookA ( nfiltertype : i32 , pfnfilterproc : :: windows :: RawPtr ) -> HHOOK ; } SetWindowsHookA ( :: std :: mem :: transmute ( nfiltertype ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookExA < 'a , > ( idhook : WINDOWS_HOOK_ID , lpfn : :: std :: option :: Option < HOOKPROC > , hmod : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , dwthreadid : u32 , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookExA ( idhook : WINDOWS_HOOK_ID , lpfn : :: windows :: RawPtr , hmod : super::super::Foundation:: HINSTANCE , dwthreadid : u32 ) -> HHOOK ; } SetWindowsHookExA ( :: std :: mem :: transmute ( idhook ) , :: std :: mem :: transmute ( lpfn ) , hmod . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwthreadid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookExW < 'a , > ( idhook : WINDOWS_HOOK_ID , lpfn : :: std :: option :: Option < HOOKPROC > , hmod : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , dwthreadid : u32 , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookExW ( idhook : WINDOWS_HOOK_ID , lpfn : :: windows :: RawPtr , hmod : super::super::Foundation:: HINSTANCE , dwthreadid : u32 ) -> HHOOK ; } SetWindowsHookExW ( :: std :: mem :: transmute ( idhook ) , :: std :: mem :: transmute ( lpfn ) , hmod . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwthreadid ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SetWindowsHookW < > ( nfiltertype : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> HHOOK { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetWindowsHookW ( nfiltertype : i32 , pfnfilterproc : :: windows :: RawPtr ) -> HHOOK ; } SetWindowsHookW ( :: std :: mem :: transmute ( nfiltertype ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowCaret < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowCaret ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } ShowCaret ( hwnd . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowCursor < 'a , > ( bshow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowCursor ( bshow : super::super::Foundation:: BOOL ) -> i32 ; } ShowCursor ( bshow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowOwnedPopups < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , fshow : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowOwnedPopups ( hwnd : super::super::Foundation:: HWND , fshow : super::super::Foundation:: BOOL ) -> super::super::Foundation:: BOOL ; } ShowOwnedPopups ( hwnd . into_param ( ) . abi ( ) , fshow . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ncmdshow : SHOW_WINDOW_CMD , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowWindow ( hwnd : super::super::Foundation:: HWND , ncmdshow : SHOW_WINDOW_CMD ) -> super::super::Foundation:: BOOL ; } ShowWindow ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncmdshow ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn ShowWindowAsync < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ncmdshow : i32 , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn ShowWindowAsync ( hwnd : super::super::Foundation:: HWND , ncmdshow : i32 ) -> super::super::Foundation:: BOOL ; } ShowWindowAsync ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ncmdshow ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SoundSentry < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SoundSentry ( ) -> super::super::Foundation:: BOOL ; } SoundSentry ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SwitchToThisWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , funknown : impl :: windows :: IntoParam < 'a , super::super::Foundation:: BOOL > , ) { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SwitchToThisWindow ( hwnd : super::super::Foundation:: HWND , funknown : super::super::Foundation:: BOOL ) ; } SwitchToThisWindow ( hwnd . into_param ( ) . abi ( ) , funknown . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SystemParametersInfoA < > ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SystemParametersInfoA ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ) -> super::super::Foundation:: BOOL ; } SystemParametersInfoA ( :: std :: mem :: transmute ( uiaction ) , :: std :: mem :: transmute ( uiparam ) , :: std :: mem :: transmute ( pvparam ) , :: std :: mem :: transmute ( fwinini ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SystemParametersInfoW < > ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SystemParametersInfoW ( uiaction : SYSTEM_PARAMETERS_INFO_ACTION , uiparam : u32 , pvparam : * mut :: std :: ffi :: c_void , fwinini : SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS ) -> super::super::Foundation:: BOOL ; } SystemParametersInfoW ( :: std :: mem :: transmute ( uiaction ) , :: std :: mem :: transmute ( uiparam ) , :: std :: mem :: transmute ( pvparam ) , :: std :: mem :: transmute ( fwinini ) ) } # [ 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 TILE_WINDOWS_HOW ( pub u32 ) ; pub const MDITILE_HORIZONTAL : TILE_WINDOWS_HOW = TILE_WINDOWS_HOW ( 1u32 ) ; pub const MDITILE_VERTICAL : TILE_WINDOWS_HOW = TILE_WINDOWS_HOW ( 0u32 ) ; impl :: std :: convert :: From < u32 > for TILE_WINDOWS_HOW { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for TILE_WINDOWS_HOW { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for TILE_WINDOWS_HOW { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for TILE_WINDOWS_HOW { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for TILE_WINDOWS_HOW { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for TILE_WINDOWS_HOW { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub type TIMERPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : usize , param3 : u32 ) ; pub const TIMERV_COALESCING_MAX : u32 = 2147483637u32 ; pub const TIMERV_COALESCING_MIN : u32 = 1u32 ; pub const TIMERV_DEFAULT_COALESCING : u32 = 0u32 ; pub const TIMERV_NO_COALESCING : u32 = 4294967295u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TITLEBARINFO { pub cbSize : u32 , pub rcTitleBar : super::super::Foundation:: RECT , pub rgstate : [ u32 ;6 ] } impl TITLEBARINFO { } impl :: std :: default :: Default for TITLEBARINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcTitleBar : :: std :: default :: Default :: default ( ) , rgstate : [ 0 ;6 ] } } } impl :: std :: fmt :: Debug for TITLEBARINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TITLEBARINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcTitleBar" , & self . rcTitleBar ) . field ( "rgstate" , & self . rgstate ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TITLEBARINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcTitleBar == other . rcTitleBar && self . rgstate == other . rgstate } } impl :: std :: cmp :: Eq for TITLEBARINFO { } unsafe impl :: windows :: Abi for TITLEBARINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TITLEBARINFOEX { pub cbSize : u32 , pub rcTitleBar : super::super::Foundation:: RECT , pub rgstate : [ u32 ;6 ] , pub rgrect : [ super::super::Foundation:: RECT ;6 ] } impl TITLEBARINFOEX { } impl :: std :: default :: Default for TITLEBARINFOEX { fn default ( ) -> Self { Self { cbSize : 0 , rcTitleBar : :: std :: default :: Default :: default ( ) , rgstate : [ 0 ;6 ] , rgrect : [ :: std :: default :: Default :: default ( ) ;6 ] } } } impl :: std :: fmt :: Debug for TITLEBARINFOEX { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TITLEBARINFOEX" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcTitleBar" , & self . rcTitleBar ) . field ( "rgstate" , & self . rgstate ) . field ( "rgrect" , & self . rgrect ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TITLEBARINFOEX { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcTitleBar == other . rcTitleBar && self . rgstate == other . rgstate && self . rgrect == other . rgrect } } impl :: std :: cmp :: Eq for TITLEBARINFOEX { } unsafe impl :: windows :: Abi for TITLEBARINFOEX { type Abi = Self ; type DefaultType = Self ; } pub const TKF_AVAILABLE : u32 = 2u32 ; pub const TKF_CONFIRMHOTKEY : u32 = 8u32 ; pub const TKF_HOTKEYACTIVE : u32 = 4u32 ; pub const TKF_HOTKEYSOUND : u32 = 16u32 ; pub const TKF_INDICATOR : u32 = 32u32 ; pub const TKF_TOGGLEKEYSON : u32 = 1u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_LATENCY : u32 = 8u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_DELTA : f32 = 0.001f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_EXPO_SMOOTH_ALPHA : f32 = 0.99f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_LEARNING_RATE : f32 = 0.001f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MAX : f32 = 0.999f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_RLS_LAMBDA_MIN : f32 = 0.9f32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_SAMPLETIME : u32 = 8u32 ; pub const TOUCHPREDICTIONPARAMETERS_DEFAULT_USE_HW_TIMESTAMP : u32 = 1u32 ; pub const TOUCH_FLAG_NONE : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_CLIENT : u32 = 1u32 ; pub const TOUCH_HIT_TESTING_DEFAULT : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_NONE : u32 = 2u32 ; pub const TOUCH_HIT_TESTING_PROXIMITY_CLOSEST : u32 = 0u32 ; pub const TOUCH_HIT_TESTING_PROXIMITY_FARTHEST : u32 = 4095u32 ; pub const TOUCH_MASK_CONTACTAREA : u32 = 1u32 ; pub const TOUCH_MASK_NONE : u32 = 0u32 ; pub const TOUCH_MASK_ORIENTATION : u32 = 2u32 ; pub const TOUCH_MASK_PRESSURE : u32 = 4u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TPMPARAMS { pub cbSize : u32 , pub rcExclude : super::super::Foundation:: RECT } impl TPMPARAMS { } impl :: std :: default :: Default for TPMPARAMS { fn default ( ) -> Self { Self { cbSize : 0 , rcExclude : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for TPMPARAMS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TPMPARAMS" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcExclude" , & self . rcExclude ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TPMPARAMS { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcExclude == other . rcExclude } } impl :: std :: cmp :: Eq for TPMPARAMS { } unsafe impl :: windows :: Abi for TPMPARAMS { 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 TRACK_POPUP_MENU_FLAGS ( pub u32 ) ; pub const TPM_LEFTBUTTON : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_RIGHTBUTTON : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 2u32 ) ; pub const TPM_LEFTALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_CENTERALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 4u32 ) ; pub const TPM_RIGHTALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 8u32 ) ; pub const TPM_TOPALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_VCENTERALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 16u32 ) ; pub const TPM_BOTTOMALIGN : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 32u32 ) ; pub const TPM_HORIZONTAL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 0u32 ) ; pub const TPM_VERTICAL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 64u32 ) ; pub const TPM_NONOTIFY : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 128u32 ) ; pub const TPM_RETURNCMD : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 256u32 ) ; pub const TPM_RECURSE : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 1u32 ) ; pub const TPM_HORPOSANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 1024u32 ) ; pub const TPM_HORNEGANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 2048u32 ) ; pub const TPM_VERPOSANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 4096u32 ) ; pub const TPM_VERNEGANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 8192u32 ) ; pub const TPM_NOANIMATION : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 16384u32 ) ; pub const TPM_LAYOUTRTL : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 32768u32 ) ; pub const TPM_WORKAREA : TRACK_POPUP_MENU_FLAGS = TRACK_POPUP_MENU_FLAGS ( 65536u32 ) ; impl :: std :: convert :: From < u32 > for TRACK_POPUP_MENU_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for TRACK_POPUP_MENU_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for TRACK_POPUP_MENU_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for TRACK_POPUP_MENU_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for TRACK_POPUP_MENU_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for TRACK_POPUP_MENU_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const TT_OPENTYPE_FONTTYPE : u32 = 131072u32 ; pub const TYPE1_FONTTYPE : u32 = 262144u32 ; pub unsafe fn TileWindows < 'a , > ( hwndparent : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , whow : TILE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND , ) -> u16 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TileWindows ( hwndparent : super::super::Foundation:: HWND , whow : TILE_WINDOWS_HOW , lprect : * const super::super::Foundation:: RECT , ckids : u32 , lpkids : * const super::super::Foundation:: HWND ) -> u16 ; } TileWindows ( hwndparent . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( whow ) , :: std :: mem :: transmute ( lprect ) , :: std :: mem :: transmute ( ckids ) , :: std :: mem :: transmute ( lpkids ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct TouchPredictionParameters { pub cbSize : u32 , pub dwLatency : u32 , pub dwSampleTime : u32 , pub bUseHWTimeStamp : u32 } impl TouchPredictionParameters { } impl :: std :: default :: Default for TouchPredictionParameters { fn default ( ) -> Self { Self { cbSize : 0 , dwLatency : 0 , dwSampleTime : 0 , bUseHWTimeStamp : 0 } } } impl :: std :: fmt :: Debug for TouchPredictionParameters { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "TouchPredictionParameters" ) . field ( "cbSize" , & self . cbSize ) . field ( "dwLatency" , & self . dwLatency ) . field ( "dwSampleTime" , & self . dwSampleTime ) . field ( "bUseHWTimeStamp" , & self . bUseHWTimeStamp ) . finish ( ) } } impl :: std :: cmp :: PartialEq for TouchPredictionParameters { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . dwLatency == other . dwLatency && self . dwSampleTime == other . dwSampleTime && self . bUseHWTimeStamp == other . bUseHWTimeStamp } } impl :: std :: cmp :: Eq for TouchPredictionParameters { } unsafe impl :: windows :: Abi for TouchPredictionParameters { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn TrackPopupMenu < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : TRACK_POPUP_MENU_FLAGS , x : i32 , y : i32 , nreserved : i32 , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , prcrect : * const super::super::Foundation:: RECT , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TrackPopupMenu ( hmenu : HMENU , uflags : TRACK_POPUP_MENU_FLAGS , x : i32 , y : i32 , nreserved : i32 , hwnd : super::super::Foundation:: HWND , prcrect : * const super::super::Foundation:: RECT ) -> super::super::Foundation:: BOOL ; } TrackPopupMenu ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , :: std :: mem :: transmute ( nreserved ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( prcrect ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TrackPopupMenuEx < 'a , > ( hmenu : impl :: windows :: IntoParam < 'a , HMENU > , uflags : u32 , x : i32 , y : i32 , hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lptpm : * mut TPMPARAMS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TrackPopupMenuEx ( hmenu : HMENU , uflags : u32 , x : i32 , y : i32 , hwnd : super::super::Foundation:: HWND , lptpm : * mut TPMPARAMS ) -> super::super::Foundation:: BOOL ; } TrackPopupMenuEx ( hmenu . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( uflags ) , :: std :: mem :: transmute ( x ) , :: std :: mem :: transmute ( y ) , hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lptpm ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateAcceleratorA < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hacctable : impl :: windows :: IntoParam < 'a , HACCEL > , lpmsg : * mut MSG , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateAcceleratorA ( hwnd : super::super::Foundation:: HWND , hacctable : HACCEL , lpmsg : * mut MSG ) -> i32 ; } TranslateAcceleratorA ( hwnd . into_param ( ) . abi ( ) , hacctable . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateAcceleratorW < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hacctable : impl :: windows :: IntoParam < 'a , HACCEL > , lpmsg : * mut MSG , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateAcceleratorW ( hwnd : super::super::Foundation:: HWND , hacctable : HACCEL , lpmsg : * mut MSG ) -> i32 ; } TranslateAcceleratorW ( hwnd . into_param ( ) . abi ( ) , hacctable . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateMDISysAccel < 'a , > ( hwndclient : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , lpmsg : * mut MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateMDISysAccel ( hwndclient : super::super::Foundation:: HWND , lpmsg : * mut MSG ) -> super::super::Foundation:: BOOL ; } TranslateMDISysAccel ( hwndclient . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn TranslateMessage < > ( lpmsg : * const MSG , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn TranslateMessage ( lpmsg : * const MSG ) -> super::super::Foundation:: BOOL ; } TranslateMessage ( :: std :: mem :: transmute ( lpmsg ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const UISF_ACTIVE : u32 = 4u32 ; pub const UISF_HIDEACCEL : u32 = 2u32 ; pub const UISF_HIDEFOCUS : u32 = 1u32 ; pub const UIS_CLEAR : u32 = 2u32 ; pub const UIS_INITIALIZE : u32 = 3u32 ; pub const UIS_SET : u32 = 1u32 ; pub const UNICODE_NOCHAR : u32 = 65535u32 ; pub const UOI_TIMERPROC_EXCEPTION_SUPPRESSION : u32 = 7u32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct UPDATELAYEREDWINDOWINFO { pub cbSize : u32 , pub hdcDst : super::super::Graphics::Gdi:: HDC , pub pptDst : * mut super::super::Foundation:: POINT , pub psize : * mut super::super::Foundation:: SIZE , pub hdcSrc : super::super::Graphics::Gdi:: HDC , pub pptSrc : * mut super::super::Foundation:: POINT , pub crKey : u32 , pub pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , pub dwFlags : UPDATE_LAYERED_WINDOW_FLAGS , pub prcDirty : * mut super::super::Foundation:: RECT } impl UPDATELAYEREDWINDOWINFO { } impl :: std :: default :: Default for UPDATELAYEREDWINDOWINFO { fn default ( ) -> Self { Self { cbSize : 0 , hdcDst : :: std :: default :: Default :: default ( ) , pptDst : :: std :: ptr :: null_mut ( ) , psize : :: std :: ptr :: null_mut ( ) , hdcSrc : :: std :: default :: Default :: default ( ) , pptSrc : :: std :: ptr :: null_mut ( ) , crKey : 0 , pblend : :: std :: ptr :: null_mut ( ) , dwFlags : :: std :: default :: Default :: default ( ) , prcDirty : :: std :: ptr :: null_mut ( ) } } } impl :: std :: fmt :: Debug for UPDATELAYEREDWINDOWINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "UPDATELAYEREDWINDOWINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "hdcDst" , & self . hdcDst ) . field ( "pptDst" , & self . pptDst ) . field ( "psize" , & self . psize ) . field ( "hdcSrc" , & self . hdcSrc ) . field ( "pptSrc" , & self . pptSrc ) . field ( "crKey" , & self . crKey ) . field ( "pblend" , & self . pblend ) . field ( "dwFlags" , & self . dwFlags ) . field ( "prcDirty" , & self . prcDirty ) . finish ( ) } } impl :: std :: cmp :: PartialEq for UPDATELAYEREDWINDOWINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . hdcDst == other . hdcDst && self . pptDst == other . pptDst && self . psize == other . psize && self . hdcSrc == other . hdcSrc && self . pptSrc == other . pptSrc && self . crKey == other . crKey && self . pblend == other . pblend && self . dwFlags == other . dwFlags && self . prcDirty == other . prcDirty } } impl :: std :: cmp :: Eq for UPDATELAYEREDWINDOWINFO { } unsafe impl :: windows :: Abi for UPDATELAYEREDWINDOWINFO { 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 UPDATE_LAYERED_WINDOW_FLAGS ( pub u32 ) ; pub const ULW_ALPHA : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 2u32 ) ; pub const ULW_COLORKEY : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 1u32 ) ; pub const ULW_OPAQUE : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 4u32 ) ; pub const ULW_EX_NORESIZE : UPDATE_LAYERED_WINDOW_FLAGS = UPDATE_LAYERED_WINDOW_FLAGS ( 8u32 ) ; impl :: std :: convert :: From < u32 > for UPDATE_LAYERED_WINDOW_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for UPDATE_LAYERED_WINDOW_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for UPDATE_LAYERED_WINDOW_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for UPDATE_LAYERED_WINDOW_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for UPDATE_LAYERED_WINDOW_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for UPDATE_LAYERED_WINDOW_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const USER_DEFAULT_SCREEN_DPI : u32 = 96u32 ; pub const USER_TIMER_MAXIMUM : u32 = 2147483647u32 ; pub const USER_TIMER_MINIMUM : u32 = 10u32 ; pub unsafe fn UnhookWindowsHook < > ( ncode : i32 , pfnfilterproc : :: std :: option :: Option < HOOKPROC > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnhookWindowsHook ( ncode : i32 , pfnfilterproc : :: windows :: RawPtr ) -> super::super::Foundation:: BOOL ; } UnhookWindowsHook ( :: std :: mem :: transmute ( ncode ) , :: std :: mem :: transmute ( pfnfilterproc ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnhookWindowsHookEx < 'a , > ( hhk : impl :: windows :: IntoParam < 'a , HHOOK > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnhookWindowsHookEx ( hhk : HHOOK ) -> super::super::Foundation:: BOOL ; } UnhookWindowsHookEx ( hhk . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnregisterClassA < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnregisterClassA ( lpclassname : super::super::Foundation:: PSTR , hinstance : super::super::Foundation:: HINSTANCE ) -> super::super::Foundation:: BOOL ; } UnregisterClassA ( lpclassname . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UnregisterClassW < 'a , > ( lpclassname : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , hinstance : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HINSTANCE > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UnregisterClassW ( lpclassname : super::super::Foundation:: PWSTR , hinstance : super::super::Foundation:: HINSTANCE ) -> super::super::Foundation:: BOOL ; } UnregisterClassW ( lpclassname . into_param ( ) . abi ( ) , hinstance . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UpdateLayeredWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , hdcdst : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , pptdst : * mut super::super::Foundation:: POINT , psize : * mut super::super::Foundation:: SIZE , hdcsrc : impl :: windows :: IntoParam < 'a , super::super::Graphics::Gdi:: HDC > , pptsrc : * mut super::super::Foundation:: POINT , crkey : u32 , pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , dwflags : UPDATE_LAYERED_WINDOW_FLAGS , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UpdateLayeredWindow ( hwnd : super::super::Foundation:: HWND , hdcdst : super::super::Graphics::Gdi:: HDC , pptdst : * mut super::super::Foundation:: POINT , psize : * mut super::super::Foundation:: SIZE , hdcsrc : super::super::Graphics::Gdi:: HDC , pptsrc : * mut super::super::Foundation:: POINT , crkey : u32 , pblend : * mut super::super::Graphics::Gdi:: BLENDFUNCTION , dwflags : UPDATE_LAYERED_WINDOW_FLAGS ) -> super::super::Foundation:: BOOL ; } UpdateLayeredWindow ( hwnd . into_param ( ) . abi ( ) , hdcdst . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pptdst ) , :: std :: mem :: transmute ( psize ) , hdcsrc . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pptsrc ) , :: std :: mem :: transmute ( crkey ) , :: std :: mem :: transmute ( pblend ) , :: std :: mem :: transmute ( dwflags ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn UpdateLayeredWindowIndirect < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , pulwinfo : * const UPDATELAYEREDWINDOWINFO , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UpdateLayeredWindowIndirect ( hwnd : super::super::Foundation:: HWND , pulwinfo : * const UPDATELAYEREDWINDOWINFO ) -> super::super::Foundation:: BOOL ; } UpdateLayeredWindowIndirect ( hwnd . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( pulwinfo ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const VK_ACCEPT : u32 = 30u32 ; pub const VK_ADD : u32 = 107u32 ; pub const VK_APPS : u32 = 93u32 ; pub const VK_ATTN : u32 = 246u32 ; pub const VK_BACK : u32 = 8u32 ; pub const VK_BROWSER_BACK : u32 = 166u32 ; pub const VK_BROWSER_FAVORITES : u32 = 171u32 ; pub const VK_BROWSER_FORWARD : u32 = 167u32 ; pub const VK_BROWSER_HOME : u32 = 172u32 ; pub const VK_BROWSER_REFRESH : u32 = 168u32 ; pub const VK_BROWSER_SEARCH : u32 = 170u32 ; pub const VK_BROWSER_STOP : u32 = 169u32 ; pub const VK_CANCEL : u32 = 3u32 ; pub const VK_CAPITAL : u32 = 20u32 ; pub const VK_CLEAR : u32 = 12u32 ; pub const VK_CONTROL : u32 = 17u32 ; pub const VK_CONVERT : u32 = 28u32 ; pub const VK_CRSEL : u32 = 247u32 ; pub const VK_DECIMAL : u32 = 110u32 ; pub const VK_DELETE : u32 = 46u32 ; pub const VK_DIVIDE : u32 = 111u32 ; pub const VK_DOWN : u32 = 40u32 ; pub const VK_END : u32 = 35u32 ; pub const VK_EREOF : u32 = 249u32 ; pub const VK_ESCAPE : u32 = 27u32 ; pub const VK_EXECUTE : u32 = 43u32 ; pub const VK_EXSEL : u32 = 248u32 ; pub const VK_F1 : u32 = 112u32 ; pub const VK_F10 : u32 = 121u32 ; pub const VK_F11 : u32 = 122u32 ; pub const VK_F12 : u32 = 123u32 ; pub const VK_F13 : u32 = 124u32 ; pub const VK_F14 : u32 = 125u32 ; pub const VK_F15 : u32 = 126u32 ; pub const VK_F16 : u32 = 127u32 ; pub const VK_F17 : u32 = 128u32 ; pub const VK_F18 : u32 = 129u32 ; pub const VK_F19 : u32 = 130u32 ; pub const VK_F2 : u32 = 113u32 ; pub const VK_F20 : u32 = 131u32 ; pub const VK_F21 : u32 = 132u32 ; pub const VK_F22 : u32 = 133u32 ; pub const VK_F23 : u32 = 134u32 ; pub const VK_F24 : u32 = 135u32 ; pub const VK_F3 : u32 = 114u32 ; pub const VK_F4 : u32 = 115u32 ; pub const VK_F5 : u32 = 116u32 ; pub const VK_F6 : u32 = 117u32 ; pub const VK_F7 : u32 = 118u32 ; pub const VK_F8 : u32 = 119u32 ; pub const VK_F9 : u32 = 120u32 ; pub const VK_FINAL : u32 = 24u32 ; pub const VK_GAMEPAD_A : u32 = 195u32 ; pub const VK_GAMEPAD_B : u32 = 196u32 ; pub const VK_GAMEPAD_DPAD_DOWN : u32 = 204u32 ; pub const VK_GAMEPAD_DPAD_LEFT : u32 = 205u32 ; pub const VK_GAMEPAD_DPAD_RIGHT : u32 = 206u32 ; pub const VK_GAMEPAD_DPAD_UP : u32 = 203u32 ; pub const VK_GAMEPAD_LEFT_SHOULDER : u32 = 200u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_BUTTON : u32 = 209u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_DOWN : u32 = 212u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_LEFT : u32 = 214u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_RIGHT : u32 = 213u32 ; pub const VK_GAMEPAD_LEFT_THUMBSTICK_UP : u32 = 211u32 ; pub const VK_GAMEPAD_LEFT_TRIGGER : u32 = 201u32 ; pub const VK_GAMEPAD_MENU : u32 = 207u32 ; pub const VK_GAMEPAD_RIGHT_SHOULDER : u32 = 199u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_BUTTON : u32 = 210u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_DOWN : u32 = 216u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_LEFT : u32 = 218u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_RIGHT : u32 = 217u32 ; pub const VK_GAMEPAD_RIGHT_THUMBSTICK_UP : u32 = 215u32 ; pub const VK_GAMEPAD_RIGHT_TRIGGER : u32 = 202u32 ; pub const VK_GAMEPAD_VIEW : u32 = 208u32 ; pub const VK_GAMEPAD_X : u32 = 197u32 ; pub const VK_GAMEPAD_Y : u32 = 198u32 ; pub const VK_HANGEUL : u32 = 21u32 ; pub const VK_HANGUL : u32 = 21u32 ; pub const VK_HANJA : u32 = 25u32 ; pub const VK_HELP : u32 = 47u32 ; pub const VK_HOME : u32 = 36u32 ; pub const VK_ICO_00 : u32 = 228u32 ; pub const VK_ICO_CLEAR : u32 = 230u32 ; pub const VK_ICO_HELP : u32 = 227u32 ; pub const VK_INSERT : u32 = 45u32 ; pub const VK_JUNJA : u32 = 23u32 ; pub const VK_KANA : u32 = 21u32 ; pub const VK_KANJI : u32 = 25u32 ; pub const VK_LAUNCH_APP1 : u32 = 182u32 ; pub const VK_LAUNCH_APP2 : u32 = 183u32 ; pub const VK_LAUNCH_MAIL : u32 = 180u32 ; pub const VK_LAUNCH_MEDIA_SELECT : u32 = 181u32 ; pub const VK_LBUTTON : u32 = 1u32 ; pub const VK_LCONTROL : u32 = 162u32 ; pub const VK_LEFT : u32 = 37u32 ; pub const VK_LMENU : u32 = 164u32 ; pub const VK_LSHIFT : u32 = 160u32 ; pub const VK_LWIN : u32 = 91u32 ; pub const VK_MBUTTON : u32 = 4u32 ; pub const VK_MEDIA_NEXT_TRACK : u32 = 176u32 ; pub const VK_MEDIA_PLAY_PAUSE : u32 = 179u32 ; pub const VK_MEDIA_PREV_TRACK : u32 = 177u32 ; pub const VK_MEDIA_STOP : u32 = 178u32 ; pub const VK_MENU : u32 = 18u32 ; pub const VK_MODECHANGE : u32 = 31u32 ; pub const VK_MULTIPLY : u32 = 106u32 ; pub const VK_NAVIGATION_ACCEPT : u32 = 142u32 ; pub const VK_NAVIGATION_CANCEL : u32 = 143u32 ; pub const VK_NAVIGATION_DOWN : u32 = 139u32 ; pub const VK_NAVIGATION_LEFT : u32 = 140u32 ; pub const VK_NAVIGATION_MENU : u32 = 137u32 ; pub const VK_NAVIGATION_RIGHT : u32 = 141u32 ; pub const VK_NAVIGATION_UP : u32 = 138u32 ; pub const VK_NAVIGATION_VIEW : u32 = 136u32 ; pub const VK_NEXT : u32 = 34u32 ; pub const VK_NONAME : u32 = 252u32 ; pub const VK_NONCONVERT : u32 = 29u32 ; pub const VK_NUMLOCK : u32 = 144u32 ; pub const VK_NUMPAD0 : u32 = 96u32 ; pub const VK_NUMPAD1 : u32 = 97u32 ; pub const VK_NUMPAD2 : u32 = 98u32 ; pub const VK_NUMPAD3 : u32 = 99u32 ; pub const VK_NUMPAD4 : u32 = 100u32 ; pub const VK_NUMPAD5 : u32 = 101u32 ; pub const VK_NUMPAD6 : u32 = 102u32 ; pub const VK_NUMPAD7 : u32 = 103u32 ; pub const VK_NUMPAD8 : u32 = 104u32 ; pub const VK_NUMPAD9 : u32 = 105u32 ; pub const VK_OEM_1 : u32 = 186u32 ; pub const VK_OEM_102 : u32 = 226u32 ; pub const VK_OEM_2 : u32 = 191u32 ; pub const VK_OEM_3 : u32 = 192u32 ; pub const VK_OEM_4 : u32 = 219u32 ; pub const VK_OEM_5 : u32 = 220u32 ; pub const VK_OEM_6 : u32 = 221u32 ; pub const VK_OEM_7 : u32 = 222u32 ; pub const VK_OEM_8 : u32 = 223u32 ; pub const VK_OEM_ATTN : u32 = 240u32 ; pub const VK_OEM_AUTO : u32 = 243u32 ; pub const VK_OEM_AX : u32 = 225u32 ; pub const VK_OEM_BACKTAB : u32 = 245u32 ; pub const VK_OEM_CLEAR : u32 = 254u32 ; pub const VK_OEM_COMMA : u32 = 188u32 ; pub const VK_OEM_COPY : u32 = 242u32 ; pub const VK_OEM_CUSEL : u32 = 239u32 ; pub const VK_OEM_ENLW : u32 = 244u32 ; pub const VK_OEM_FINISH : u32 = 241u32 ; pub const VK_OEM_FJ_JISHO : u32 = 146u32 ; pub const VK_OEM_FJ_LOYA : u32 = 149u32 ; pub const VK_OEM_FJ_MASSHOU : u32 = 147u32 ; pub const VK_OEM_FJ_ROYA : u32 = 150u32 ; pub const VK_OEM_FJ_TOUROKU : u32 = 148u32 ; pub const VK_OEM_JUMP : u32 = 234u32 ; pub const VK_OEM_MINUS : u32 = 189u32 ; pub const VK_OEM_NEC_EQUAL : u32 = 146u32 ; pub const VK_OEM_PA1 : u32 = 235u32 ; pub const VK_OEM_PA2 : u32 = 236u32 ; pub const VK_OEM_PA3 : u32 = 237u32 ; pub const VK_OEM_PERIOD : u32 = 190u32 ; pub const VK_OEM_PLUS : u32 = 187u32 ; pub const VK_OEM_RESET : u32 = 233u32 ; pub const VK_OEM_WSCTRL : u32 = 238u32 ; pub const VK_PA1 : u32 = 253u32 ; pub const VK_PACKET : u32 = 231u32 ; pub const VK_PAUSE : u32 = 19u32 ; pub const VK_PLAY : u32 = 250u32 ; pub const VK_PRINT : u32 = 42u32 ; pub const VK_PRIOR : u32 = 33u32 ; pub const VK_PROCESSKEY : u32 = 229u32 ; pub const VK_RBUTTON : u32 = 2u32 ; pub const VK_RCONTROL : u32 = 163u32 ; pub const VK_RETURN : u32 = 13u32 ; pub const VK_RIGHT : u32 = 39u32 ; pub const VK_RMENU : u32 = 165u32 ; pub const VK_RSHIFT : u32 = 161u32 ; pub const VK_RWIN : u32 = 92u32 ; pub const VK_SCROLL : u32 = 145u32 ; pub const VK_SELECT : u32 = 41u32 ; pub const VK_SEPARATOR : u32 = 108u32 ; pub const VK_SHIFT : u32 = 16u32 ; pub const VK_SLEEP : u32 = 95u32 ; pub const VK_SNAPSHOT : u32 = 44u32 ; pub const VK_SPACE : u32 = 32u32 ; pub const VK_SUBTRACT : u32 = 109u32 ; pub const VK_TAB : u32 = 9u32 ; pub const VK_UP : u32 = 38u32 ; pub const VK_VOLUME_DOWN : u32 = 174u32 ; pub const VK_VOLUME_MUTE : u32 = 173u32 ; pub const VK_VOLUME_UP : u32 = 175u32 ; pub const VK_XBUTTON1 : u32 = 5u32 ; pub const VK_XBUTTON2 : u32 = 6u32 ; pub const VK_ZOOM : u32 = 251u32 ; pub const WA_ACTIVE : u32 = 1u32 ; pub const WA_CLICKACTIVE : u32 = 2u32 ; pub const WA_INACTIVE : u32 = 0u32 ; pub const WHEEL_DELTA : u32 = 120u32 ; pub const WH_HARDWARE : u32 = 8u32 ; pub const WH_MAX : u32 = 14u32 ; pub const WH_MIN : i32 = -1i32 ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWINFO { pub cbSize : u32 , pub rcWindow : super::super::Foundation:: RECT , pub rcClient : super::super::Foundation:: RECT , pub dwStyle : u32 , pub dwExStyle : u32 , pub dwWindowStatus : u32 , pub cxWindowBorders : u32 , pub cyWindowBorders : u32 , pub atomWindowType : u16 , pub wCreatorVersion : u16 } impl WINDOWINFO { } impl :: std :: default :: Default for WINDOWINFO { fn default ( ) -> Self { Self { cbSize : 0 , rcWindow : :: std :: default :: Default :: default ( ) , rcClient : :: std :: default :: Default :: default ( ) , dwStyle : 0 , dwExStyle : 0 , dwWindowStatus : 0 , cxWindowBorders : 0 , cyWindowBorders : 0 , atomWindowType : 0 , wCreatorVersion : 0 } } } impl :: std :: fmt :: Debug for WINDOWINFO { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWINFO" ) . field ( "cbSize" , & self . cbSize ) . field ( "rcWindow" , & self . rcWindow ) . field ( "rcClient" , & self . rcClient ) . field ( "dwStyle" , & self . dwStyle ) . field ( "dwExStyle" , & self . dwExStyle ) . field ( "dwWindowStatus" , & self . dwWindowStatus ) . field ( "cxWindowBorders" , & self . cxWindowBorders ) . field ( "cyWindowBorders" , & self . cyWindowBorders ) . field ( "atomWindowType" , & self . atomWindowType ) . field ( "wCreatorVersion" , & self . wCreatorVersion ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWINFO { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . rcWindow == other . rcWindow && self . rcClient == other . rcClient && self . dwStyle == other . dwStyle && self . dwExStyle == other . dwExStyle && self . dwWindowStatus == other . dwWindowStatus && self . cxWindowBorders == other . cxWindowBorders && self . cyWindowBorders == other . cyWindowBorders && self . atomWindowType == other . atomWindowType && self . wCreatorVersion == other . wCreatorVersion } } impl :: std :: cmp :: Eq for WINDOWINFO { } unsafe impl :: windows :: Abi for WINDOWINFO { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWPLACEMENT { pub length : u32 , pub flags : WINDOWPLACEMENT_FLAGS , pub showCmd : SHOW_WINDOW_CMD , pub ptMinPosition : super::super::Foundation:: POINT , pub ptMaxPosition : super::super::Foundation:: POINT , pub rcNormalPosition : super::super::Foundation:: RECT } impl WINDOWPLACEMENT { } impl :: std :: default :: Default for WINDOWPLACEMENT { fn default ( ) -> Self { Self { length : 0 , flags : :: std :: default :: Default :: default ( ) , showCmd : :: std :: default :: Default :: default ( ) , ptMinPosition : :: std :: default :: Default :: default ( ) , ptMaxPosition : :: std :: default :: Default :: default ( ) , rcNormalPosition : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WINDOWPLACEMENT { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWPLACEMENT" ) . field ( "length" , & self . length ) . field ( "flags" , & self . flags ) . field ( "showCmd" , & self . showCmd ) . field ( "ptMinPosition" , & self . ptMinPosition ) . field ( "ptMaxPosition" , & self . ptMaxPosition ) . field ( "rcNormalPosition" , & self . rcNormalPosition ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWPLACEMENT { fn eq ( & self , other : & Self ) -> bool { self . length == other . length && self . flags == other . flags && self . showCmd == other . showCmd && self . ptMinPosition == other . ptMinPosition && self . ptMaxPosition == other . ptMaxPosition && self . rcNormalPosition == other . rcNormalPosition } } impl :: std :: cmp :: Eq for WINDOWPLACEMENT { } unsafe impl :: windows :: Abi for WINDOWPLACEMENT { 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 WINDOWPLACEMENT_FLAGS ( pub u32 ) ; pub const WPF_ASYNCWINDOWPLACEMENT : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 4u32 ) ; pub const WPF_RESTORETOMAXIMIZED : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 2u32 ) ; pub const WPF_SETMINPOSITION : WINDOWPLACEMENT_FLAGS = WINDOWPLACEMENT_FLAGS ( 1u32 ) ; impl :: std :: convert :: From < u32 > for WINDOWPLACEMENT_FLAGS { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOWPLACEMENT_FLAGS { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOWPLACEMENT_FLAGS { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOWPLACEMENT_FLAGS { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOWPLACEMENT_FLAGS { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOWPLACEMENT_FLAGS { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct WINDOWPOS { pub hwnd : super::super::Foundation:: HWND , pub hwndInsertAfter : super::super::Foundation:: HWND , pub x : i32 , pub y : i32 , pub cx : i32 , pub cy : i32 , pub flags : SET_WINDOW_POS_FLAGS } impl WINDOWPOS { } impl :: std :: default :: Default for WINDOWPOS { fn default ( ) -> Self { Self { hwnd : :: std :: default :: Default :: default ( ) , hwndInsertAfter : :: std :: default :: Default :: default ( ) , x : 0 , y : 0 , cx : 0 , cy : 0 , flags : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WINDOWPOS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WINDOWPOS" ) . field ( "hwnd" , & self . hwnd ) . field ( "hwndInsertAfter" , & self . hwndInsertAfter ) . field ( "x" , & self . x ) . field ( "y" , & self . y ) . field ( "cx" , & self . cx ) . field ( "cy" , & self . cy ) . field ( "flags" , & self . flags ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WINDOWPOS { fn eq ( & self , other : & Self ) -> bool { self . hwnd == other . hwnd && self . hwndInsertAfter == other . hwndInsertAfter && self . x == other . x && self . y == other . y && self . cx == other . cx && self . cy == other . cy && self . flags == other . flags } } impl :: std :: cmp :: Eq for WINDOWPOS { } unsafe impl :: windows :: Abi for WINDOWPOS { 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 WINDOWS_HOOK_ID ( pub i32 ) ; pub const WH_CALLWNDPROC : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 4i32 ) ; pub const WH_CALLWNDPROCRET : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 12i32 ) ; pub const WH_CBT : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 5i32 ) ; pub const WH_DEBUG : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 9i32 ) ; pub const WH_FOREGROUNDIDLE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 11i32 ) ; pub const WH_GETMESSAGE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 3i32 ) ; pub const WH_JOURNALPLAYBACK : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 1i32 ) ; pub const WH_JOURNALRECORD : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 0i32 ) ; pub const WH_KEYBOARD : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 2i32 ) ; pub const WH_KEYBOARD_LL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 13i32 ) ; pub const WH_MOUSE : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 7i32 ) ; pub const WH_MOUSE_LL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 14i32 ) ; pub const WH_MSGFILTER : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( -1i32 ) ; pub const WH_SHELL : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 10i32 ) ; pub const WH_SYSMSGFILTER : WINDOWS_HOOK_ID = WINDOWS_HOOK_ID ( 6i32 ) ; impl :: std :: convert :: From < i32 > for WINDOWS_HOOK_ID { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOWS_HOOK_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 WINDOW_DISPLAY_AFFINITY ( pub u32 ) ; pub const WDA_NONE : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 0u32 ) ; pub const WDA_MONITOR : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 1u32 ) ; pub const WDA_EXCLUDEFROMCAPTURE : WINDOW_DISPLAY_AFFINITY = WINDOW_DISPLAY_AFFINITY ( 17u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_DISPLAY_AFFINITY { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_DISPLAY_AFFINITY { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_DISPLAY_AFFINITY { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_DISPLAY_AFFINITY { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_DISPLAY_AFFINITY { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_DISPLAY_AFFINITY { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_EX_STYLE ( pub u32 ) ; pub const WS_EX_DLGMODALFRAME : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1u32 ) ; pub const WS_EX_NOPARENTNOTIFY : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4u32 ) ; pub const WS_EX_TOPMOST : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 8u32 ) ; pub const WS_EX_ACCEPTFILES : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 16u32 ) ; pub const WS_EX_TRANSPARENT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 32u32 ) ; pub const WS_EX_MDICHILD : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 64u32 ) ; pub const WS_EX_TOOLWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 128u32 ) ; pub const WS_EX_WINDOWEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 256u32 ) ; pub const WS_EX_CLIENTEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 512u32 ) ; pub const WS_EX_CONTEXTHELP : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1024u32 ) ; pub const WS_EX_RIGHT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4096u32 ) ; pub const WS_EX_LEFT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_RTLREADING : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 8192u32 ) ; pub const WS_EX_LTRREADING : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_LEFTSCROLLBAR : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 16384u32 ) ; pub const WS_EX_RIGHTSCROLLBAR : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 0u32 ) ; pub const WS_EX_CONTROLPARENT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 65536u32 ) ; pub const WS_EX_STATICEDGE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 131072u32 ) ; pub const WS_EX_APPWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 262144u32 ) ; pub const WS_EX_OVERLAPPEDWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 768u32 ) ; pub const WS_EX_PALETTEWINDOW : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 392u32 ) ; pub const WS_EX_LAYERED : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 524288u32 ) ; pub const WS_EX_NOINHERITLAYOUT : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 1048576u32 ) ; pub const WS_EX_NOREDIRECTIONBITMAP : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 2097152u32 ) ; pub const WS_EX_LAYOUTRTL : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 4194304u32 ) ; pub const WS_EX_COMPOSITED : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 33554432u32 ) ; pub const WS_EX_NOACTIVATE : WINDOW_EX_STYLE = WINDOW_EX_STYLE ( 134217728u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_EX_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_EX_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_EX_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_EX_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_EX_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_EX_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_LONG_PTR_INDEX ( pub i32 ) ; pub const GWL_EXSTYLE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -20i32 ) ; pub const GWLP_HINSTANCE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -6i32 ) ; pub const GWLP_HWNDPARENT : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -8i32 ) ; pub const GWLP_ID : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -12i32 ) ; pub const GWL_STYLE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -16i32 ) ; pub const GWLP_USERDATA : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -21i32 ) ; pub const GWLP_WNDPROC : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -4i32 ) ; pub const GWL_HINSTANCE : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -6i32 ) ; pub const GWL_ID : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -12i32 ) ; pub const GWL_USERDATA : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -21i32 ) ; pub const GWL_WNDPROC : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -4i32 ) ; pub const GWL_HWNDPARENT : WINDOW_LONG_PTR_INDEX = WINDOW_LONG_PTR_INDEX ( -8i32 ) ; impl :: std :: convert :: From < i32 > for WINDOW_LONG_PTR_INDEX { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_LONG_PTR_INDEX { 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 WINDOW_MESSAGE_FILTER_ACTION ( pub u32 ) ; pub const MSGFLT_ALLOW : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 1u32 ) ; pub const MSGFLT_DISALLOW : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 2u32 ) ; pub const MSGFLT_RESET : WINDOW_MESSAGE_FILTER_ACTION = WINDOW_MESSAGE_FILTER_ACTION ( 0u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_MESSAGE_FILTER_ACTION { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_MESSAGE_FILTER_ACTION { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_MESSAGE_FILTER_ACTION { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_MESSAGE_FILTER_ACTION { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_MESSAGE_FILTER_ACTION { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_MESSAGE_FILTER_ACTION { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct WINDOW_STYLE ( pub u32 ) ; pub const WS_OVERLAPPED : WINDOW_STYLE = WINDOW_STYLE ( 0u32 ) ; pub const WS_POPUP : WINDOW_STYLE = WINDOW_STYLE ( 2147483648u32 ) ; pub const WS_CHILD : WINDOW_STYLE = WINDOW_STYLE ( 1073741824u32 ) ; pub const WS_MINIMIZE : WINDOW_STYLE = WINDOW_STYLE ( 536870912u32 ) ; pub const WS_VISIBLE : WINDOW_STYLE = WINDOW_STYLE ( 268435456u32 ) ; pub const WS_DISABLED : WINDOW_STYLE = WINDOW_STYLE ( 134217728u32 ) ; pub const WS_CLIPSIBLINGS : WINDOW_STYLE = WINDOW_STYLE ( 67108864u32 ) ; pub const WS_CLIPCHILDREN : WINDOW_STYLE = WINDOW_STYLE ( 33554432u32 ) ; pub const WS_MAXIMIZE : WINDOW_STYLE = WINDOW_STYLE ( 16777216u32 ) ; pub const WS_CAPTION : WINDOW_STYLE = WINDOW_STYLE ( 12582912u32 ) ; pub const WS_BORDER : WINDOW_STYLE = WINDOW_STYLE ( 8388608u32 ) ; pub const WS_DLGFRAME : WINDOW_STYLE = WINDOW_STYLE ( 4194304u32 ) ; pub const WS_VSCROLL : WINDOW_STYLE = WINDOW_STYLE ( 2097152u32 ) ; pub const WS_HSCROLL : WINDOW_STYLE = WINDOW_STYLE ( 1048576u32 ) ; pub const WS_SYSMENU : WINDOW_STYLE = WINDOW_STYLE ( 524288u32 ) ; pub const WS_THICKFRAME : WINDOW_STYLE = WINDOW_STYLE ( 262144u32 ) ; pub const WS_GROUP : WINDOW_STYLE = WINDOW_STYLE ( 131072u32 ) ; pub const WS_TABSTOP : WINDOW_STYLE = WINDOW_STYLE ( 65536u32 ) ; pub const WS_MINIMIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 131072u32 ) ; pub const WS_MAXIMIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 65536u32 ) ; pub const WS_TILED : WINDOW_STYLE = WINDOW_STYLE ( 0u32 ) ; pub const WS_ICONIC : WINDOW_STYLE = WINDOW_STYLE ( 536870912u32 ) ; pub const WS_SIZEBOX : WINDOW_STYLE = WINDOW_STYLE ( 262144u32 ) ; pub const WS_TILEDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 13565952u32 ) ; pub const WS_OVERLAPPEDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 13565952u32 ) ; pub const WS_POPUPWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 2156396544u32 ) ; pub const WS_CHILDWINDOW : WINDOW_STYLE = WINDOW_STYLE ( 1073741824u32 ) ; pub const WS_ACTIVECAPTION : WINDOW_STYLE = WINDOW_STYLE ( 1u32 ) ; impl :: std :: convert :: From < u32 > for WINDOW_STYLE { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WINDOW_STYLE { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WINDOW_STYLE { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WINDOW_STYLE { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WINDOW_STYLE { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WINDOW_STYLE { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub const WINEVENT_INCONTEXT : u32 = 4u32 ; pub const WINEVENT_OUTOFCONTEXT : u32 = 0u32 ; pub const WINEVENT_SKIPOWNPROCESS : u32 = 2u32 ; pub const WINEVENT_SKIPOWNTHREAD : u32 = 1u32 ; pub type WINSTAENUMPROCA = unsafe extern "system" fn ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type WINSTAENUMPROCW = unsafe extern "system" fn ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub const WINSTA_ACCESSCLIPBOARD : i32 = 4i32 ; pub const WINSTA_ACCESSGLOBALATOMS : i32 = 32i32 ; pub const WINSTA_CREATEDESKTOP : i32 = 8i32 ; pub const WINSTA_ENUMDESKTOPS : i32 = 1i32 ; pub const WINSTA_ENUMERATE : i32 = 256i32 ; pub const WINSTA_EXITWINDOWS : i32 = 64i32 ; pub const WINSTA_READATTRIBUTES : i32 = 2i32 ; pub const WINSTA_READSCREEN : i32 = 512i32 ; pub const WINSTA_WRITEATTRIBUTES : i32 = 16i32 ; pub const WMSZ_BOTTOM : u32 = 6u32 ; pub const WMSZ_BOTTOMLEFT : u32 = 7u32 ; pub const WMSZ_BOTTOMRIGHT : u32 = 8u32 ; pub const WMSZ_LEFT : u32 = 1u32 ; pub const WMSZ_RIGHT : u32 = 2u32 ; pub const WMSZ_TOP : u32 = 3u32 ; pub const WMSZ_TOPLEFT : u32 = 4u32 ; pub const WMSZ_TOPRIGHT : u32 = 5u32 ; pub const WM_ACTIVATE : u32 = 6u32 ; pub const WM_ACTIVATEAPP : u32 = 28u32 ; pub const WM_AFXFIRST : u32 = 864u32 ; pub const WM_AFXLAST : u32 = 895u32 ; pub const WM_APP : u32 = 32768u32 ; pub const WM_APPCOMMAND : u32 = 793u32 ; pub const WM_ASKCBFORMATNAME : u32 = 780u32 ; pub const WM_CANCELJOURNAL : u32 = 75u32 ; pub const WM_CANCELMODE : u32 = 31u32 ; pub const WM_CAPTURECHANGED : u32 = 533u32 ; pub const WM_CHANGECBCHAIN : u32 = 781u32 ; pub const WM_CHANGEUISTATE : u32 = 295u32 ; pub const WM_CHAR : u32 = 258u32 ; pub const WM_CHARTOITEM : u32 = 47u32 ; pub const WM_CHILDACTIVATE : u32 = 34u32 ; pub const WM_CHOOSEFONT_GETLOGFONT : u32 = 1025u32 ; pub const WM_CHOOSEFONT_SETFLAGS : u32 = 1126u32 ; pub const WM_CHOOSEFONT_SETLOGFONT : u32 = 1125u32 ; pub const WM_CLEAR : u32 = 771u32 ; pub const WM_CLIPBOARDUPDATE : u32 = 797u32 ; pub const WM_CLOSE : u32 = 16u32 ; pub const WM_COMMAND : u32 = 273u32 ; pub const WM_COMMNOTIFY : u32 = 68u32 ; pub const WM_COMPACTING : u32 = 65u32 ; pub const WM_COMPAREITEM : u32 = 57u32 ; pub const WM_COPY : u32 = 769u32 ; pub const WM_COPYDATA : u32 = 74u32 ; pub const WM_CREATE : u32 = 1u32 ; pub const WM_CTLCOLORBTN : u32 = 309u32 ; pub const WM_CTLCOLORDLG : u32 = 310u32 ; pub const WM_CTLCOLOREDIT : u32 = 307u32 ; pub const WM_CTLCOLORLISTBOX : u32 = 308u32 ; pub const WM_CTLCOLORMSGBOX : u32 = 306u32 ; pub const WM_CTLCOLORSCROLLBAR : u32 = 311u32 ; pub const WM_CTLCOLORSTATIC : u32 = 312u32 ; pub const WM_CUT : u32 = 768u32 ; pub const WM_DEADCHAR : u32 = 259u32 ; pub const WM_DELETEITEM : u32 = 45u32 ; pub const WM_DESTROY : u32 = 2u32 ; pub const WM_DESTROYCLIPBOARD : u32 = 775u32 ; pub const WM_DEVICECHANGE : u32 = 537u32 ; pub const WM_DEVMODECHANGE : u32 = 27u32 ; pub const WM_DISPLAYCHANGE : u32 = 126u32 ; pub const WM_DPICHANGED : u32 = 736u32 ; pub const WM_DPICHANGED_AFTERPARENT : u32 = 739u32 ; pub const WM_DPICHANGED_BEFOREPARENT : u32 = 738u32 ; pub const WM_DRAWCLIPBOARD : u32 = 776u32 ; pub const WM_DRAWITEM : u32 = 43u32 ; pub const WM_DROPFILES : u32 = 563u32 ; pub const WM_DWMCOLORIZATIONCOLORCHANGED : u32 = 800u32 ; pub const WM_DWMCOMPOSITIONCHANGED : u32 = 798u32 ; pub const WM_DWMNCRENDERINGCHANGED : u32 = 799u32 ; pub const WM_DWMSENDICONICLIVEPREVIEWBITMAP : u32 = 806u32 ; pub const WM_DWMSENDICONICTHUMBNAIL : u32 = 803u32 ; pub const WM_DWMWINDOWMAXIMIZEDCHANGE : u32 = 801u32 ; pub const WM_ENABLE : u32 = 10u32 ; pub const WM_ENDSESSION : u32 = 22u32 ; pub const WM_ENTERIDLE : u32 = 289u32 ; pub const WM_ENTERMENULOOP : u32 = 529u32 ; pub const WM_ENTERSIZEMOVE : u32 = 561u32 ; pub const WM_ERASEBKGND : u32 = 20u32 ; pub const WM_EXITMENULOOP : u32 = 530u32 ; pub const WM_EXITSIZEMOVE : u32 = 562u32 ; pub const WM_FONTCHANGE : u32 = 29u32 ; pub const WM_GESTURE : u32 = 281u32 ; pub const WM_GESTURENOTIFY : u32 = 282u32 ; pub const WM_GETDLGCODE : u32 = 135u32 ; pub const WM_GETDPISCALEDSIZE : u32 = 740u32 ; pub const WM_GETFONT : u32 = 49u32 ; pub const WM_GETHOTKEY : u32 = 51u32 ; pub const WM_GETICON : u32 = 127u32 ; pub const WM_GETMINMAXINFO : u32 = 36u32 ; pub const WM_GETOBJECT : u32 = 61u32 ; pub const WM_GETTEXT : u32 = 13u32 ; pub const WM_GETTEXTLENGTH : u32 = 14u32 ; pub const WM_GETTITLEBARINFOEX : u32 = 831u32 ; pub const WM_HANDHELDFIRST : u32 = 856u32 ; pub const WM_HANDHELDLAST : u32 = 863u32 ; pub const WM_HELP : u32 = 83u32 ; pub const WM_HOTKEY : u32 = 786u32 ; pub const WM_HSCROLL : u32 = 276u32 ; pub const WM_HSCROLLCLIPBOARD : u32 = 782u32 ; pub const WM_ICONERASEBKGND : u32 = 39u32 ; pub const WM_IME_CHAR : u32 = 646u32 ; pub const WM_IME_COMPOSITION : u32 = 271u32 ; pub const WM_IME_COMPOSITIONFULL : u32 = 644u32 ; pub const WM_IME_CONTROL : u32 = 643u32 ; pub const WM_IME_ENDCOMPOSITION : u32 = 270u32 ; pub const WM_IME_KEYDOWN : u32 = 656u32 ; pub const WM_IME_KEYLAST : u32 = 271u32 ; pub const WM_IME_KEYUP : u32 = 657u32 ; pub const WM_IME_NOTIFY : u32 = 642u32 ; pub const WM_IME_REQUEST : u32 = 648u32 ; pub const WM_IME_SELECT : u32 = 645u32 ; pub const WM_IME_SETCONTEXT : u32 = 641u32 ; pub const WM_IME_STARTCOMPOSITION : u32 = 269u32 ; pub const WM_INITDIALOG : u32 = 272u32 ; pub const WM_INITMENU : u32 = 278u32 ; pub const WM_INITMENUPOPUP : u32 = 279u32 ; pub const WM_INPUT : u32 = 255u32 ; pub const WM_INPUTLANGCHANGE : u32 = 81u32 ; pub const WM_INPUTLANGCHANGEREQUEST : u32 = 80u32 ; pub const WM_INPUT_DEVICE_CHANGE : u32 = 254u32 ; pub const WM_KEYDOWN : u32 = 256u32 ; pub const WM_KEYFIRST : u32 = 256u32 ; pub const WM_KEYLAST : u32 = 265u32 ; pub const WM_KEYUP : u32 = 257u32 ; pub const WM_KILLFOCUS : u32 = 8u32 ; pub const WM_LBUTTONDBLCLK : u32 = 515u32 ; pub const WM_LBUTTONDOWN : u32 = 513u32 ; pub const WM_LBUTTONUP : u32 = 514u32 ; pub const WM_MBUTTONDBLCLK : u32 = 521u32 ; pub const WM_MBUTTONDOWN : u32 = 519u32 ; pub const WM_MBUTTONUP : u32 = 520u32 ; pub const WM_MDIACTIVATE : u32 = 546u32 ; pub const WM_MDICASCADE : u32 = 551u32 ; pub const WM_MDICREATE : u32 = 544u32 ; pub const WM_MDIDESTROY : u32 = 545u32 ; pub const WM_MDIGETACTIVE : u32 = 553u32 ; pub const WM_MDIICONARRANGE : u32 = 552u32 ; pub const WM_MDIMAXIMIZE : u32 = 549u32 ; pub const WM_MDINEXT : u32 = 548u32 ; pub const WM_MDIREFRESHMENU : u32 = 564u32 ; pub const WM_MDIRESTORE : u32 = 547u32 ; pub const WM_MDISETMENU : u32 = 560u32 ; pub const WM_MDITILE : u32 = 550u32 ; pub const WM_MEASUREITEM : u32 = 44u32 ; pub const WM_MENUCHAR : u32 = 288u32 ; pub const WM_MENUCOMMAND : u32 = 294u32 ; pub const WM_MENUDRAG : u32 = 291u32 ; pub const WM_MENUGETOBJECT : u32 = 292u32 ; pub const WM_MENURBUTTONUP : u32 = 290u32 ; pub const WM_MENUSELECT : u32 = 287u32 ; pub const WM_MOUSEACTIVATE : u32 = 33u32 ; pub const WM_MOUSEFIRST : u32 = 512u32 ; pub const WM_MOUSEHWHEEL : u32 = 526u32 ; pub const WM_MOUSELAST : u32 = 526u32 ; pub const WM_MOUSEMOVE : u32 = 512u32 ; pub const WM_MOUSEWHEEL : u32 = 522u32 ; pub const WM_MOVE : u32 = 3u32 ; pub const WM_MOVING : u32 = 534u32 ; pub const WM_NCACTIVATE : u32 = 134u32 ; pub const WM_NCCALCSIZE : u32 = 131u32 ; pub const WM_NCCREATE : u32 = 129u32 ; pub const WM_NCDESTROY : u32 = 130u32 ; pub const WM_NCHITTEST : u32 = 132u32 ; pub const WM_NCLBUTTONDBLCLK : u32 = 163u32 ; pub const WM_NCLBUTTONDOWN : u32 = 161u32 ; pub const WM_NCLBUTTONUP : u32 = 162u32 ; pub const WM_NCMBUTTONDBLCLK : u32 = 169u32 ; pub const WM_NCMBUTTONDOWN : u32 = 167u32 ; pub const WM_NCMBUTTONUP : u32 = 168u32 ; pub const WM_NCMOUSEHOVER : u32 = 672u32 ; pub const WM_NCMOUSELEAVE : u32 = 674u32 ; pub const WM_NCMOUSEMOVE : u32 = 160u32 ; pub const WM_NCPAINT : u32 = 133u32 ; pub const WM_NCPOINTERDOWN : u32 = 578u32 ; pub const WM_NCPOINTERUP : u32 = 579u32 ; pub const WM_NCPOINTERUPDATE : u32 = 577u32 ; pub const WM_NCRBUTTONDBLCLK : u32 = 166u32 ; pub const WM_NCRBUTTONDOWN : u32 = 164u32 ; pub const WM_NCRBUTTONUP : u32 = 165u32 ; pub const WM_NCXBUTTONDBLCLK : u32 = 173u32 ; pub const WM_NCXBUTTONDOWN : u32 = 171u32 ; pub const WM_NCXBUTTONUP : u32 = 172u32 ; pub const WM_NEXTDLGCTL : u32 = 40u32 ; pub const WM_NEXTMENU : u32 = 531u32 ; pub const WM_NOTIFYFORMAT : u32 = 85u32 ; pub const WM_NULL : u32 = 0u32 ; pub const WM_PAINT : u32 = 15u32 ; pub const WM_PAINTCLIPBOARD : u32 = 777u32 ; pub const WM_PAINTICON : u32 = 38u32 ; pub const WM_PALETTECHANGED : u32 = 785u32 ; pub const WM_PALETTEISCHANGING : u32 = 784u32 ; pub const WM_PARENTNOTIFY : u32 = 528u32 ; pub const WM_PASTE : u32 = 770u32 ; pub const WM_PENWINFIRST : u32 = 896u32 ; pub const WM_PENWINLAST : u32 = 911u32 ; pub const WM_POINTERACTIVATE : u32 = 587u32 ; pub const WM_POINTERCAPTURECHANGED : u32 = 588u32 ; pub const WM_POINTERDEVICECHANGE : u32 = 568u32 ; pub const WM_POINTERDEVICEINRANGE : u32 = 569u32 ; pub const WM_POINTERDEVICEOUTOFRANGE : u32 = 570u32 ; pub const WM_POINTERDOWN : u32 = 582u32 ; pub const WM_POINTERENTER : u32 = 585u32 ; pub const WM_POINTERHWHEEL : u32 = 591u32 ; pub const WM_POINTERLEAVE : u32 = 586u32 ; pub const WM_POINTERROUTEDAWAY : u32 = 594u32 ; pub const WM_POINTERROUTEDRELEASED : u32 = 595u32 ; pub const WM_POINTERROUTEDTO : u32 = 593u32 ; pub const WM_POINTERUP : u32 = 583u32 ; pub const WM_POINTERUPDATE : u32 = 581u32 ; pub const WM_POINTERWHEEL : u32 = 590u32 ; pub const WM_POWER : u32 = 72u32 ; pub const WM_POWERBROADCAST : u32 = 536u32 ; pub const WM_PRINT : u32 = 791u32 ; pub const WM_PSD_ENVSTAMPRECT : u32 = 1029u32 ; pub const WM_PSD_FULLPAGERECT : u32 = 1025u32 ; pub const WM_PSD_GREEKTEXTRECT : u32 = 1028u32 ; pub const WM_PSD_MARGINRECT : u32 = 1027u32 ; pub const WM_PSD_MINMARGINRECT : u32 = 1026u32 ; pub const WM_PSD_YAFULLPAGERECT : u32 = 1030u32 ; pub const WM_QUERYDRAGICON : u32 = 55u32 ; pub const WM_QUERYENDSESSION : u32 = 17u32 ; pub const WM_QUERYNEWPALETTE : u32 = 783u32 ; pub const WM_QUERYOPEN : u32 = 19u32 ; pub const WM_QUERYUISTATE : u32 = 297u32 ; pub const WM_QUEUESYNC : u32 = 35u32 ; pub const WM_QUIT : u32 = 18u32 ; pub const WM_RBUTTONDBLCLK : u32 = 518u32 ; pub const WM_RBUTTONDOWN : u32 = 516u32 ; pub const WM_RBUTTONUP : u32 = 517u32 ; pub const WM_RENDERALLFORMATS : u32 = 774u32 ; pub const WM_RENDERFORMAT : u32 = 773u32 ; pub const WM_SETCURSOR : u32 = 32u32 ; pub const WM_SETFOCUS : u32 = 7u32 ; pub const WM_SETFONT : u32 = 48u32 ; pub const WM_SETHOTKEY : u32 = 50u32 ; pub const WM_SETICON : u32 = 128u32 ; pub const WM_SETREDRAW : u32 = 11u32 ; pub const WM_SETTEXT : u32 = 12u32 ; pub const WM_SHOWWINDOW : u32 = 24u32 ; pub const WM_SIZE : u32 = 5u32 ; pub const WM_SIZECLIPBOARD : u32 = 779u32 ; pub const WM_SIZING : u32 = 532u32 ; pub const WM_SPOOLERSTATUS : u32 = 42u32 ; pub const WM_STYLECHANGED : u32 = 125u32 ; pub const WM_STYLECHANGING : u32 = 124u32 ; pub const WM_SYNCPAINT : u32 = 136u32 ; pub const WM_SYSCHAR : u32 = 262u32 ; pub const WM_SYSCOLORCHANGE : u32 = 21u32 ; pub const WM_SYSCOMMAND : u32 = 274u32 ; pub const WM_SYSDEADCHAR : u32 = 263u32 ; pub const WM_SYSKEYDOWN : u32 = 260u32 ; pub const WM_SYSKEYUP : u32 = 261u32 ; pub const WM_TABLET_FIRST : u32 = 704u32 ; pub const WM_TABLET_LAST : u32 = 735u32 ; pub const WM_TCARD : u32 = 82u32 ; pub const WM_THEMECHANGED : u32 = 794u32 ; pub const WM_TIMECHANGE : u32 = 30u32 ; pub const WM_TIMER : u32 = 275u32 ; pub const WM_TOUCH : u32 = 576u32 ; pub const WM_TOUCHHITTESTING : u32 = 589u32 ; pub const WM_UNDO : u32 = 772u32 ; pub const WM_UNINITMENUPOPUP : u32 = 293u32 ; pub const WM_UPDATEUISTATE : u32 = 296u32 ; pub const WM_USER : u32 = 1024u32 ; pub const WM_USERCHANGED : u32 = 84u32 ; pub const WM_VKEYTOITEM : u32 = 46u32 ; pub const WM_VSCROLL : u32 = 277u32 ; pub const WM_VSCROLLCLIPBOARD : u32 = 778u32 ; pub const WM_WINDOWPOSCHANGED : u32 = 71u32 ; pub const WM_WINDOWPOSCHANGING : u32 = 70u32 ; pub const WM_WININICHANGE : u32 = 26u32 ; pub const WM_WTSSESSION_CHANGE : u32 = 689u32 ; pub const WM_XBUTTONDBLCLK : u32 = 525u32 ; pub const WM_XBUTTONDOWN : u32 = 523u32 ; pub const WM_XBUTTONUP : u32 = 524u32 ; # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSA { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR } impl WNDCLASSA { } impl :: std :: default :: Default for WNDCLASSA { fn default ( ) -> Self { Self { style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSA" ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSA { fn eq ( & self , other : & Self ) -> bool { self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName } } impl :: std :: cmp :: Eq for WNDCLASSA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSA_abi { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR } unsafe impl :: windows :: Abi for WNDCLASSA { type Abi = WNDCLASSA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSEXA { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR , pub hIconSm : HICON } impl WNDCLASSEXA { } impl :: std :: default :: Default for WNDCLASSEXA { fn default ( ) -> Self { Self { cbSize : 0 , style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) , hIconSm : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSEXA { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSEXA" ) . field ( "cbSize" , & self . cbSize ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . field ( "hIconSm" , & self . hIconSm ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSEXA { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName && self . hIconSm == other . hIconSm } } impl :: std :: cmp :: Eq for WNDCLASSEXA { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSEXA_abi { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PSTR , pub lpszClassName : super::super::Foundation:: PSTR , pub hIconSm : HICON } unsafe impl :: windows :: Abi for WNDCLASSEXA { type Abi = WNDCLASSEXA_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSEXW { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR , pub hIconSm : HICON } impl WNDCLASSEXW { } impl :: std :: default :: Default for WNDCLASSEXW { fn default ( ) -> Self { Self { cbSize : 0 , style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) , hIconSm : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSEXW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSEXW" ) . field ( "cbSize" , & self . cbSize ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . field ( "hIconSm" , & self . hIconSm ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSEXW { fn eq ( & self , other : & Self ) -> bool { self . cbSize == other . cbSize && self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName && self . hIconSm == other . hIconSm } } impl :: std :: cmp :: Eq for WNDCLASSEXW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSEXW_abi { pub cbSize : u32 , pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR , pub hIconSm : HICON } unsafe impl :: windows :: Abi for WNDCLASSEXW { type Abi = WNDCLASSEXW_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct WNDCLASSW { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: std :: option :: Option < WNDPROC > , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR } impl WNDCLASSW { } impl :: std :: default :: Default for WNDCLASSW { fn default ( ) -> Self { Self { style : :: std :: default :: Default :: default ( ) , lpfnWndProc : :: std :: default :: Default :: default ( ) , cbClsExtra : 0 , cbWndExtra : 0 , hInstance : :: std :: default :: Default :: default ( ) , hIcon : :: std :: default :: Default :: default ( ) , hCursor : :: std :: default :: Default :: default ( ) , hbrBackground : :: std :: default :: Default :: default ( ) , lpszMenuName : :: std :: default :: Default :: default ( ) , lpszClassName : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for WNDCLASSW { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "WNDCLASSW" ) . field ( "style" , & self . style ) . field ( "cbClsExtra" , & self . cbClsExtra ) . field ( "cbWndExtra" , & self . cbWndExtra ) . field ( "hInstance" , & self . hInstance ) . field ( "hIcon" , & self . hIcon ) . field ( "hCursor" , & self . hCursor ) . field ( "hbrBackground" , & self . hbrBackground ) . field ( "lpszMenuName" , & self . lpszMenuName ) . field ( "lpszClassName" , & self . lpszClassName ) . finish ( ) } } impl :: std :: cmp :: PartialEq for WNDCLASSW { fn eq ( & self , other : & Self ) -> bool { self . style == other . style && self . lpfnWndProc . map ( | f | f as usize ) == other . lpfnWndProc . map ( | f | f as usize ) && self . cbClsExtra == other . cbClsExtra && self . cbWndExtra == other . cbWndExtra && self . hInstance == other . hInstance && self . hIcon == other . hIcon && self . hCursor == other . hCursor && self . hbrBackground == other . hbrBackground && self . lpszMenuName == other . lpszMenuName && self . lpszClassName == other . lpszClassName } } impl :: std :: cmp :: Eq for WNDCLASSW { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct WNDCLASSW_abi { pub style : WNDCLASS_STYLES , pub lpfnWndProc : :: windows :: RawPtr , pub cbClsExtra : i32 , pub cbWndExtra : i32 , pub hInstance : super::super::Foundation:: HINSTANCE , pub hIcon : HICON , pub hCursor : HCURSOR , pub hbrBackground : super::super::Graphics::Gdi:: HBRUSH , pub lpszMenuName : super::super::Foundation:: PWSTR , pub lpszClassName : super::super::Foundation:: PWSTR } unsafe impl :: windows :: Abi for WNDCLASSW { type Abi = WNDCLASSW_abi ; 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 WNDCLASS_STYLES ( pub u32 ) ; pub const CS_VREDRAW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 1u32 ) ; pub const CS_HREDRAW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 2u32 ) ; pub const CS_DBLCLKS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 8u32 ) ; pub const CS_OWNDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 32u32 ) ; pub const CS_CLASSDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 64u32 ) ; pub const CS_PARENTDC : WNDCLASS_STYLES = WNDCLASS_STYLES ( 128u32 ) ; pub const CS_NOCLOSE : WNDCLASS_STYLES = WNDCLASS_STYLES ( 512u32 ) ; pub const CS_SAVEBITS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 2048u32 ) ; pub const CS_BYTEALIGNCLIENT : WNDCLASS_STYLES = WNDCLASS_STYLES ( 4096u32 ) ; pub const CS_BYTEALIGNWINDOW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 8192u32 ) ; pub const CS_GLOBALCLASS : WNDCLASS_STYLES = WNDCLASS_STYLES ( 16384u32 ) ; pub const CS_IME : WNDCLASS_STYLES = WNDCLASS_STYLES ( 65536u32 ) ; pub const CS_DROPSHADOW : WNDCLASS_STYLES = WNDCLASS_STYLES ( 131072u32 ) ; impl :: std :: convert :: From < u32 > for WNDCLASS_STYLES { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for WNDCLASS_STYLES { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for WNDCLASS_STYLES { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for WNDCLASS_STYLES { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for WNDCLASS_STYLES { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for WNDCLASS_STYLES { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub type WNDENUMPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: BOOL ; pub type WNDPROC = unsafe extern "system" fn ( param0 : super::super::Foundation:: HWND , param1 : u32 , param2 : super::super::Foundation:: WPARAM , param3 : super::super::Foundation:: LPARAM ) -> super::super::Foundation:: LRESULT ; pub const WSF_VISIBLE : i32 = 1i32 ; pub const WTS_CONSOLE_CONNECT : u32 = 1u32 ; pub const WTS_CONSOLE_DISCONNECT : u32 = 2u32 ; pub const WTS_REMOTE_CONNECT : u32 = 3u32 ; pub const WTS_REMOTE_DISCONNECT : u32 = 4u32 ; pub const WTS_SESSION_CREATE : u32 = 10u32 ; pub const WTS_SESSION_LOCK : u32 = 7u32 ; pub const WTS_SESSION_LOGOFF : u32 = 6u32 ; pub const WTS_SESSION_LOGON : u32 = 5u32 ; pub const WTS_SESSION_REMOTE_CONTROL : u32 = 9u32 ; pub const WTS_SESSION_TERMINATE : u32 = 11u32 ; pub const WTS_SESSION_UNLOCK : u32 = 8u32 ; pub const WVR_ALIGNBOTTOM : u32 = 64u32 ; pub const WVR_ALIGNLEFT : u32 = 32u32 ; pub const WVR_ALIGNRIGHT : u32 = 128u32 ; pub const WVR_ALIGNTOP : u32 = 16u32 ; pub const WVR_HREDRAW : u32 = 256u32 ; pub const WVR_VALIDRECTS : u32 = 1024u32 ; pub const WVR_VREDRAW : u32 = 512u32 ; pub unsafe fn WaitMessage < > ( ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WaitMessage ( ) -> super::super::Foundation:: BOOL ; } WaitMessage ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn WindowFromPhysicalPoint < 'a , > ( point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WindowFromPhysicalPoint ( point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } WindowFromPhysicalPoint ( point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn WindowFromPoint < 'a , > ( point : impl :: windows :: IntoParam < 'a , super::super::Foundation:: POINT > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn WindowFromPoint ( point : super::super::Foundation:: POINT ) -> super::super::Foundation:: HWND ; } WindowFromPoint ( point . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub const __WARNING_BANNED_API_USAGE : u32 = 28719u32 ; pub const __WARNING_CYCLOMATIC_COMPLEXITY : u32 = 28734u32 ; pub const __WARNING_DEREF_NULL_PTR : u32 = 6011u32 ; pub const __WARNING_HIGH_PRIORITY_OVERFLOW_POSTCONDITION : u32 = 26045u32 ; pub const __WARNING_INCORRECT_ANNOTATION : u32 = 26007u32 ; pub const __WARNING_INVALID_PARAM_VALUE_1 : u32 = 6387u32 ; pub const __WARNING_INVALID_PARAM_VALUE_3 : u32 = 28183u32 ; pub const __WARNING_MISSING_ZERO_TERMINATION2 : u32 = 6054u32 ; pub const __WARNING_POSTCONDITION_NULLTERMINATION_VIOLATION : u32 = 26036u32 ; pub const __WARNING_POST_EXPECTED : u32 = 28210u32 ; pub const __WARNING_POTENTIAL_BUFFER_OVERFLOW_HIGH_PRIORITY : u32 = 26015u32 ; pub const __WARNING_POTENTIAL_RANGE_POSTCONDITION_VIOLATION : u32 = 26071u32 ; pub const __WARNING_PRECONDITION_NULLTERMINATION_VIOLATION : u32 = 26035u32 ; pub const __WARNING_RANGE_POSTCONDITION_VIOLATION : u32 = 26061u32 ; pub const __WARNING_RETURNING_BAD_RESULT : u32 = 28196u32 ; pub const __WARNING_RETURN_UNINIT_VAR : u32 = 6101u32 ; pub const __WARNING_USING_UNINIT_VAR : u32 = 6001u32 ; pub unsafe fn wsprintfA < 'a , > ( param0 : super::super::Foundation:: PSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wsprintfA ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: PSTR ) -> i32 ; } wsprintfA ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wsprintfW < 'a , > ( param0 : super::super::Foundation:: PWSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wsprintfW ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: PWSTR ) -> i32 ; } wsprintfW ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wvsprintfA < 'a , > ( param0 : super::super::Foundation:: PSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , arglist : * mut i8 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wvsprintfA ( param0 : super::super::Foundation:: PSTR , param1 : super::super::Foundation:: PSTR , arglist : * mut i8 ) -> i32 ; } wvsprintfA ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( arglist ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn wvsprintfW < 'a , > ( param0 : super::super::Foundation:: PWSTR , param1 : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PWSTR > , arglist : * mut i8 , ) -> i32 { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn wvsprintfW ( param0 : super::super::Foundation:: PWSTR , param1 : super::super::Foundation:: PWSTR , arglist : * mut i8 ) -> i32 ; } wvsprintfW ( :: std :: mem :: transmute ( param0 ) , param1 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( arglist ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } } } } } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.19s [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "df5c670241c65d2a8d64ced70faf39fc6468a8312932032dffd8a8533e0bd24a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df5c670241c65d2a8d64ced70faf39fc6468a8312932032dffd8a8533e0bd24a", kill_on_drop: false }` [INFO] [stdout] df5c670241c65d2a8d64ced70faf39fc6468a8312932032dffd8a8533e0bd24a