[INFO] fetching crate webview2-com-bindings 0.1.1... [INFO] checking webview2-com-bindings-0.1.1 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate webview2-com-bindings 0.1.1 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate webview2-com-bindings 0.1.1 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 crates.io crate webview2-com-bindings 0.1.1 [INFO] finished tweaking crates.io crate webview2-com-bindings 0.1.1 [INFO] tweaked toml for crates.io crate webview2-com-bindings 0.1.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 24 packages to latest compatible versions [INFO] [stderr] Adding const-sha1 v0.2.0 (latest: v0.3.0) [INFO] [stderr] Adding syn v1.0.109 (latest: v2.0.77) [INFO] [stderr] Adding windows v0.19.0 (latest: v0.58.0) [INFO] [stderr] Adding windows_gen v0.19.0 (latest: v0.31.0) [INFO] [stderr] Adding windows_macros v0.19.0 (latest: v0.31.0) [INFO] [stderr] Adding windows_quote v0.19.0 (latest: v0.30.0) [INFO] [stderr] Adding windows_reader v0.19.0 (latest: v0.31.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows_gen v0.19.0 [INFO] [stderr] Downloaded const-sha1 v0.2.0 [INFO] [stderr] Downloaded windows_quote v0.19.0 [INFO] [stderr] Downloaded windows_macros 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-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0599e7231aea848de333ef4b65c4d58266c136061ee843e1e248427e065e08d1 [INFO] running `Command { std: "docker" "start" "-a" "0599e7231aea848de333ef4b65c4d58266c136061ee843e1e248427e065e08d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0599e7231aea848de333ef4b65c4d58266c136061ee843e1e248427e065e08d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0599e7231aea848de333ef4b65c4d58266c136061ee843e1e248427e065e08d1", kill_on_drop: false }` [INFO] [stdout] 0599e7231aea848de333ef4b65c4d58266c136061ee843e1e248427e065e08d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23d2112386e4a07de62cbba0b7c94907acc03d2cf84c3583deaeee8bccd07a55 [INFO] running `Command { std: "docker" "start" "-a" "23d2112386e4a07de62cbba0b7c94907acc03d2cf84c3583deaeee8bccd07a55", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling windows_quote v0.19.0 [INFO] [stderr] Compiling windows_reader v0.19.0 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling const-sha1 v0.2.0 [INFO] [stderr] Checking windows_gen v0.19.0 [INFO] [stderr] Compiling windows_macros v0.19.0 [INFO] [stderr] Compiling windows v0.19.0 [INFO] [stderr] Compiling webview2-com-bindings v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Read`, `Write`, and `fs` [INFO] [stdout] --> build.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | env, fs, [INFO] [stdout] | ^^ [INFO] [stdout] 40 | io::{self, Read, Write}, [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> build.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CORE_WEBVIEW_TARGET_PRODUCT_VERSION` is never used [INFO] [stdout] --> ./src/browser_version.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const CORE_WEBVIEW_TARGET_PRODUCT_VERSION: &str = "92.0.902.49"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `all_declared` is never used [INFO] [stdout] --> ./src/callback_interfaces.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn all_declared() -> BTreeSet<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WEBVIEW2_NAME` is never used [INFO] [stdout] --> build.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 50 | const WEBVIEW2_NAME: &str = "Microsoft.Web.WebView2"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WEBVIEW2_VERSION` is never used [INFO] [stdout] --> build.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | const WEBVIEW2_VERSION: &str = "1.0.902.49"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_out_dir` is never used [INFO] [stdout] --> build.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn get_out_dir() -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_workspace_dir` is never used [INFO] [stdout] --> build.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | fn get_workspace_dir() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `workspace_root` is never read [INFO] [stdout] --> build.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 159 | struct CargoMetadata { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 160 | workspace_root: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MissingVersion`, `MissingTypedef`, and `MissingPath` are never constructed [INFO] [stdout] --> build.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 282 | pub enum Error { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 292 | MissingVersion, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 293 | #[error("Missing Typedef")] [INFO] [stdout] 294 | MissingTypedef, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 295 | #[error("Missing Path")] [INFO] [stdout] 296 | MissingPath(PathBuf), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [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/webview2-com-bindings-81af9830701e2a45/out/windows.rs:1:710065 [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] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1 | # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Microsoft { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Web { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod WebView2 { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Win32 { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct COREWEBVIEW2_BOUNDS_MODE ( pub i32 ) ; pub const COREWEBVIEW2_BOUNDS_MODE_USE_RAW_PIXELS : COREWEBVIEW2_BOUNDS_MODE = COREWEBVIEW2_BOUNDS_MODE ( 0i32 ) ; pub const COREWEBVIEW2_BOUNDS_MODE_USE_RASTERIZATION_SCALE : COREWEBVIEW2_BOUNDS_MODE = COREWEBVIEW2_BOUNDS_MODE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_BOUNDS_MODE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_BOUNDS_MODE { 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 COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT ( pub i32 ) ; pub const COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT_PNG : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT = COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT ( 0i32 ) ; pub const COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT_JPEG : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT = COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT ( 1i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct COREWEBVIEW2_COLOR { pub A : u8 , pub R : u8 , pub G : u8 , pub B : u8 } impl COREWEBVIEW2_COLOR { } impl :: std :: default :: Default for COREWEBVIEW2_COLOR { fn default ( ) -> Self { Self { A : 0 , R : 0 , G : 0 , B : 0 } } } impl :: std :: fmt :: Debug for COREWEBVIEW2_COLOR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "COREWEBVIEW2_COLOR" ) . field ( "A" , & self . A ) . field ( "R" , & self . R ) . field ( "G" , & self . G ) . field ( "B" , & self . B ) . finish ( ) } } impl :: std :: cmp :: PartialEq for COREWEBVIEW2_COLOR { fn eq ( & self , other : & Self ) -> bool { self . A == other . A && self . R == other . R && self . G == other . G && self . B == other . B } } impl :: std :: cmp :: Eq for COREWEBVIEW2_COLOR { } unsafe impl :: windows :: Abi for COREWEBVIEW2_COLOR { 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 COREWEBVIEW2_COOKIE_SAME_SITE_KIND ( pub i32 ) ; pub const COREWEBVIEW2_COOKIE_SAME_SITE_KIND_NONE : COREWEBVIEW2_COOKIE_SAME_SITE_KIND = COREWEBVIEW2_COOKIE_SAME_SITE_KIND ( 0i32 ) ; pub const COREWEBVIEW2_COOKIE_SAME_SITE_KIND_LAX : COREWEBVIEW2_COOKIE_SAME_SITE_KIND = COREWEBVIEW2_COOKIE_SAME_SITE_KIND ( 1i32 ) ; pub const COREWEBVIEW2_COOKIE_SAME_SITE_KIND_STRICT : COREWEBVIEW2_COOKIE_SAME_SITE_KIND = COREWEBVIEW2_COOKIE_SAME_SITE_KIND ( 2i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_COOKIE_SAME_SITE_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_COOKIE_SAME_SITE_KIND { 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 COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( pub i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NONE : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 0i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_FAILED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 1i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 2i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 3i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_NAME_TOO_LONG : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 4i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 5i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_MALICIOUS : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 6i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 7i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED_BY_POLICY : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 8i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 9i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 10i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 11i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 12i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 13i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_DISCONNECTED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 14i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_SERVER_DOWN : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 15i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 16i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 17i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 18i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 19i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 20i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CERTIFICATE_PROBLEM : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 21i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 22i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_UNEXPECTED_RESPONSE : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 23i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CONTENT_LENGTH_MISMATCH : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 24i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CROSS_ORIGIN_REDIRECT : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 25i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 26i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 27i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_PAUSED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 28i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_DOWNLOAD_PROCESS_CRASHED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 29i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON { 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 COREWEBVIEW2_DOWNLOAD_STATE ( pub i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_STATE_IN_PROGRESS : COREWEBVIEW2_DOWNLOAD_STATE = COREWEBVIEW2_DOWNLOAD_STATE ( 0i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_STATE_INTERRUPTED : COREWEBVIEW2_DOWNLOAD_STATE = COREWEBVIEW2_DOWNLOAD_STATE ( 1i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_STATE_COMPLETED : COREWEBVIEW2_DOWNLOAD_STATE = COREWEBVIEW2_DOWNLOAD_STATE ( 2i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_DOWNLOAD_STATE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_DOWNLOAD_STATE { 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 COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND ( pub i32 ) ; pub const COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND = COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND ( 0i32 ) ; pub const COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_ALLOW : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND = COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND ( 1i32 ) ; pub const COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY_CORS : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND = COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND ( 2i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND { 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 COREWEBVIEW2_KEY_EVENT_KIND ( pub i32 ) ; pub const COREWEBVIEW2_KEY_EVENT_KIND_KEY_DOWN : COREWEBVIEW2_KEY_EVENT_KIND = COREWEBVIEW2_KEY_EVENT_KIND ( 0i32 ) ; pub const COREWEBVIEW2_KEY_EVENT_KIND_KEY_UP : COREWEBVIEW2_KEY_EVENT_KIND = COREWEBVIEW2_KEY_EVENT_KIND ( 1i32 ) ; pub const COREWEBVIEW2_KEY_EVENT_KIND_SYSTEM_KEY_DOWN : COREWEBVIEW2_KEY_EVENT_KIND = COREWEBVIEW2_KEY_EVENT_KIND ( 2i32 ) ; pub const COREWEBVIEW2_KEY_EVENT_KIND_SYSTEM_KEY_UP : COREWEBVIEW2_KEY_EVENT_KIND = COREWEBVIEW2_KEY_EVENT_KIND ( 3i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_KEY_EVENT_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_KEY_EVENT_KIND { 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 COREWEBVIEW2_MOUSE_EVENT_KIND ( pub i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_HORIZONTAL_WHEEL : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 526i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_DOUBLE_CLICK : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 515i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_DOWN : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 513i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_UP : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 514i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 675i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_DOUBLE_CLICK : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 521i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_DOWN : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 519i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_UP : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 520i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_MOVE : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 512i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_DOUBLE_CLICK : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 518i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_DOWN : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 516i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_UP : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 517i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_WHEEL : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 522i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOUBLE_CLICK : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 525i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOWN : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 523i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_UP : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 524i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_MOUSE_EVENT_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_MOUSE_EVENT_KIND { 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 COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( pub i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_NONE : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 0i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_LEFT_BUTTON : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 1i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_RIGHT_BUTTON : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 2i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_SHIFT : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 4i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_CONTROL : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 8i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_MIDDLE_BUTTON : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 16i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_X_BUTTON1 : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 32i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_X_BUTTON2 : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 64i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS { 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 COREWEBVIEW2_MOVE_FOCUS_REASON ( pub i32 ) ; pub const COREWEBVIEW2_MOVE_FOCUS_REASON_PROGRAMMATIC : COREWEBVIEW2_MOVE_FOCUS_REASON = COREWEBVIEW2_MOVE_FOCUS_REASON ( 0i32 ) ; pub const COREWEBVIEW2_MOVE_FOCUS_REASON_NEXT : COREWEBVIEW2_MOVE_FOCUS_REASON = COREWEBVIEW2_MOVE_FOCUS_REASON ( 1i32 ) ; pub const COREWEBVIEW2_MOVE_FOCUS_REASON_PREVIOUS : COREWEBVIEW2_MOVE_FOCUS_REASON = COREWEBVIEW2_MOVE_FOCUS_REASON ( 2i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_MOVE_FOCUS_REASON { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_MOVE_FOCUS_REASON { 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 COREWEBVIEW2_PERMISSION_KIND ( pub i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_UNKNOWN_PERMISSION : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 0i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_MICROPHONE : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 1i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_CAMERA : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 2i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_GEOLOCATION : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 3i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_NOTIFICATIONS : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 4i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_OTHER_SENSORS : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 5i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_CLIPBOARD_READ : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 6i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_PERMISSION_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_PERMISSION_KIND { 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 COREWEBVIEW2_PERMISSION_STATE ( pub i32 ) ; pub const COREWEBVIEW2_PERMISSION_STATE_DEFAULT : COREWEBVIEW2_PERMISSION_STATE = COREWEBVIEW2_PERMISSION_STATE ( 0i32 ) ; pub const COREWEBVIEW2_PERMISSION_STATE_ALLOW : COREWEBVIEW2_PERMISSION_STATE = COREWEBVIEW2_PERMISSION_STATE ( 1i32 ) ; pub const COREWEBVIEW2_PERMISSION_STATE_DENY : COREWEBVIEW2_PERMISSION_STATE = COREWEBVIEW2_PERMISSION_STATE ( 2i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_PERMISSION_STATE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_PERMISSION_STATE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct COREWEBVIEW2_PHYSICAL_KEY_STATUS { pub RepeatCount : u32 , pub ScanCode : u32 , pub IsExtendedKey : super::super::super::super::Windows::Win32::Foundation:: BOOL , pub IsMenuKeyDown : super::super::super::super::Windows::Win32::Foundation:: BOOL , pub WasKeyDown : super::super::super::super::Windows::Win32::Foundation:: BOOL , pub IsKeyReleased : super::super::super::super::Windows::Win32::Foundation:: BOOL } impl COREWEBVIEW2_PHYSICAL_KEY_STATUS { } impl :: std :: default :: Default for COREWEBVIEW2_PHYSICAL_KEY_STATUS { fn default ( ) -> Self { Self { RepeatCount : 0 , ScanCode : 0 , IsExtendedKey : :: std :: default :: Default :: default ( ) , IsMenuKeyDown : :: std :: default :: Default :: default ( ) , WasKeyDown : :: std :: default :: Default :: default ( ) , IsKeyReleased : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for COREWEBVIEW2_PHYSICAL_KEY_STATUS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "COREWEBVIEW2_PHYSICAL_KEY_STATUS" ) . field ( "RepeatCount" , & self . RepeatCount ) . field ( "ScanCode" , & self . ScanCode ) . field ( "IsExtendedKey" , & self . IsExtendedKey ) . field ( "IsMenuKeyDown" , & self . IsMenuKeyDown ) . field ( "WasKeyDown" , & self . WasKeyDown ) . field ( "IsKeyReleased" , & self . IsKeyReleased ) . finish ( ) } } impl :: std :: cmp :: PartialEq for COREWEBVIEW2_PHYSICAL_KEY_STATUS { fn eq ( & self , other : & Self ) -> bool { self . RepeatCount == other . RepeatCount && self . ScanCode == other . ScanCode && self . IsExtendedKey == other . IsExtendedKey && self . IsMenuKeyDown == other . IsMenuKeyDown && self . WasKeyDown == other . WasKeyDown && self . IsKeyReleased == other . IsKeyReleased } } impl :: std :: cmp :: Eq for COREWEBVIEW2_PHYSICAL_KEY_STATUS { } unsafe impl :: windows :: Abi for COREWEBVIEW2_PHYSICAL_KEY_STATUS { 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 COREWEBVIEW2_POINTER_EVENT_KIND ( pub i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_ACTIVATE : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 587i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_DOWN : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 582i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_ENTER : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 585i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_LEAVE : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 586i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_UP : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 583i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_UPDATE : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 581i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_POINTER_EVENT_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_POINTER_EVENT_KIND { 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 COREWEBVIEW2_PROCESS_FAILED_KIND ( pub i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_BROWSER_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 0i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 1i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 2i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_FRAME_RENDER_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 3i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_UTILITY_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 4i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_SANDBOX_HELPER_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 5i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_GPU_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 6i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_PPAPI_PLUGIN_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 7i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_PPAPI_BROKER_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 8i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_UNKNOWN_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 9i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_PROCESS_FAILED_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_PROCESS_FAILED_KIND { 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 COREWEBVIEW2_PROCESS_FAILED_REASON ( pub i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_UNEXPECTED : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 0i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_UNRESPONSIVE : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 1i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_TERMINATED : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 2i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_CRASHED : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 3i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_LAUNCH_FAILED : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 4i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_OUT_OF_MEMORY : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 5i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_PROCESS_FAILED_REASON { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_PROCESS_FAILED_REASON { 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 COREWEBVIEW2_SCRIPT_DIALOG_KIND ( pub i32 ) ; pub const COREWEBVIEW2_SCRIPT_DIALOG_KIND_ALERT : COREWEBVIEW2_SCRIPT_DIALOG_KIND = COREWEBVIEW2_SCRIPT_DIALOG_KIND ( 0i32 ) ; pub const COREWEBVIEW2_SCRIPT_DIALOG_KIND_CONFIRM : COREWEBVIEW2_SCRIPT_DIALOG_KIND = COREWEBVIEW2_SCRIPT_DIALOG_KIND ( 1i32 ) ; pub const COREWEBVIEW2_SCRIPT_DIALOG_KIND_PROMPT : COREWEBVIEW2_SCRIPT_DIALOG_KIND = COREWEBVIEW2_SCRIPT_DIALOG_KIND ( 2i32 ) ; pub const COREWEBVIEW2_SCRIPT_DIALOG_KIND_BEFOREUNLOAD : COREWEBVIEW2_SCRIPT_DIALOG_KIND = COREWEBVIEW2_SCRIPT_DIALOG_KIND ( 3i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_SCRIPT_DIALOG_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_SCRIPT_DIALOG_KIND { 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 COREWEBVIEW2_WEB_ERROR_STATUS ( pub i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_UNKNOWN : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 0i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_COMMON_NAME_IS_INCORRECT : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 1i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_EXPIRED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 2i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CLIENT_CERTIFICATE_CONTAINS_ERRORS : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 3i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_REVOKED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 4i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_IS_INVALID : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 5i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_SERVER_UNREACHABLE : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 6i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_TIMEOUT : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 7i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_ERROR_HTTP_INVALID_SERVER_RESPONSE : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 8i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CONNECTION_ABORTED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 9i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CONNECTION_RESET : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 10i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_DISCONNECTED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 11i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CANNOT_CONNECT : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 12i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_HOST_NAME_NOT_RESOLVED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 13i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_OPERATION_CANCELED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 14i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_REDIRECT_FAILED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 15i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_UNEXPECTED_ERROR : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 16i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_WEB_ERROR_STATUS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_WEB_ERROR_STATUS { 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 COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( pub i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_ALL : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 0i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 1i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_STYLESHEET : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 2i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_IMAGE : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 3i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MEDIA : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 4i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_FONT : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 5i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_SCRIPT : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 6i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_XML_HTTP_REQUEST : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 7i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_FETCH : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 8i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_TEXT_TRACK : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 9i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_EVENT_SOURCE : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 10i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_WEBSOCKET : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 11i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MANIFEST : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 12i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_SIGNED_EXCHANGE : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 13i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_PING : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 14i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_CSP_VIOLATION_REPORT : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 15i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_OTHER : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 16i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_WEB_RESOURCE_CONTEXT { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_WEB_RESOURCE_CONTEXT { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn CompareBrowserVersions < 'a , > ( version1 : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , version2 : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , result : * mut i32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="WebView2LoaderStatic" , kind = "static" ) ] extern "system" { fn CompareBrowserVersions ( version1 : super::super::super::super::Windows::Win32::Foundation:: PWSTR , version2 : super::super::super::super::Windows::Win32::Foundation:: PWSTR , result : * mut i32 ) -> :: windows :: HRESULT ; } CompareBrowserVersions ( version1 . into_param ( ) . abi ( ) , version2 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( result ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCoreWebView2Environment < 'a , > ( environmentcreatedhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="WebView2LoaderStatic" , kind = "static" ) ] extern "system" { fn CreateCoreWebView2Environment ( environmentcreatedhandler : :: windows :: RawPtr ) -> :: windows :: HRESULT ; } CreateCoreWebView2Environment ( environmentcreatedhandler . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCoreWebView2EnvironmentWithOptions < 'a , > ( browserexecutablefolder : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , userdatafolder : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , environmentoptions : impl :: windows :: IntoParam < 'a , ICoreWebView2EnvironmentOptions > , environmentcreatedhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="WebView2LoaderStatic" , kind = "static" ) ] extern "system" { fn CreateCoreWebView2EnvironmentWithOptions ( browserexecutablefolder : super::super::super::super::Windows::Win32::Foundation:: PWSTR , userdatafolder : super::super::super::super::Windows::Win32::Foundation:: PWSTR , environmentoptions : :: windows :: RawPtr , environmentcreatedhandler : :: windows :: RawPtr ) -> :: windows :: HRESULT ; } CreateCoreWebView2EnvironmentWithOptions ( browserexecutablefolder . into_param ( ) . abi ( ) , userdatafolder . into_param ( ) . abi ( ) , environmentoptions . into_param ( ) . abi ( ) , environmentcreatedhandler . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetAvailableCoreWebView2BrowserVersionString < 'a , > ( browserexecutablefolder : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="WebView2LoaderStatic" , kind = "static" ) ] extern "system" { fn GetAvailableCoreWebView2BrowserVersionString ( browserexecutablefolder : super::super::super::super::Windows::Win32::Foundation:: PWSTR , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } GetAvailableCoreWebView2BrowserVersionString ( browserexecutablefolder . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( versioninfo ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2 ( :: windows :: IUnknown ) ; impl ICoreWebView2 { pub unsafe fn get_Settings < > ( & self , ) -> :: windows :: Result < ICoreWebView2Settings > { let mut result__ : < ICoreWebView2Settings as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Settings > ( result__ ) } pub unsafe fn get_Source < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn Navigate < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateToString < 'a , > ( & self , htmlcontent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , htmlcontent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ContentLoading < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContentLoadingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContentLoading < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_SourceChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2SourceChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_SourceChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_HistoryChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2HistoryChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_HistoryChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ScriptDialogOpening < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ScriptDialogOpeningEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ScriptDialogOpening < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_PermissionRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2PermissionRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_PermissionRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ProcessFailed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ProcessFailed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddScriptToExecuteOnDocumentCreated < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn RemoveScriptToExecuteOnDocumentCreated < 'a , > ( & self , id : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , id . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn ExecuteScript < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2ExecuteScriptCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CapturePreview < 'a , > ( & self , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CapturePreviewCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( imageformat ) , imagestream . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Reload < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsJson < 'a , > ( & self , webmessageasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , webmessageasjson . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsString < 'a , > ( & self , webmessageasstring : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , webmessageasstring . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebMessageReceived < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebMessageReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebMessageReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CallDevToolsProtocolMethod < 'a , > ( & self , methodname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , parametersasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , methodname . into_param ( ) . abi ( ) , parametersasjson . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_BrowserProcessId < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_CanGoBack < > ( & self , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoback ) , ) . ok ( ) } pub unsafe fn get_CanGoForward < > ( & self , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoforward ) , ) . ok ( ) } pub unsafe fn GoBack < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GoForward < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDevToolsProtocolEventReceiver < 'a , > ( & self , eventname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2DevToolsProtocolEventReceiver > { let mut result__ : < ICoreWebView2DevToolsProtocolEventReceiver as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , eventname . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2DevToolsProtocolEventReceiver > ( result__ ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_NewWindowRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewWindowRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewWindowRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DocumentTitleChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DocumentTitleChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DocumentTitleChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_DocumentTitle < > ( & self , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( title ) , ) . ok ( ) } pub unsafe fn AddHostObjectToScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , ) . ok ( ) } pub unsafe fn RemoveHostObjectFromScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn OpenDevToolsWindow < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_ContainsFullScreenElementChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContainsFullScreenElementChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContainsFullScreenElementChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ContainsFullScreenElement < > ( & self , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( containsfullscreenelement ) , ) . ok ( ) } pub unsafe fn add_WebResourceRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn RemoveWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn add_WindowCloseRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WindowCloseRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WindowCloseRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .60 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2 { type Vtable = ICoreWebView2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1995238091 ,1122 ,19860 , [ 172 ,131 ,66 ,58 ,103 ,147 ,119 ,94 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2 { 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 ICoreWebView2 { 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 ICoreWebView2_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 , settings : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , htmlcontent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , id : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasstring : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , methodname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , parametersasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , 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 , eventname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , receiver : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2AcceleratorKeyPressedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2AcceleratorKeyPressedEventArgs { pub unsafe fn get_KeyEventKind < > ( & self , keyeventkind : * mut COREWEBVIEW2_KEY_EVENT_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( keyeventkind ) , ) . ok ( ) } pub unsafe fn get_VirtualKey < > ( & self , virtualkey : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( virtualkey ) , ) . ok ( ) } pub unsafe fn get_KeyEventLParam < > ( & self , lparam : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( lparam ) , ) . ok ( ) } pub unsafe fn get_PhysicalKeyStatus < > ( & self , physicalkeystatus : * mut COREWEBVIEW2_PHYSICAL_KEY_STATUS , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( physicalkeystatus ) , ) . ok ( ) } pub unsafe fn get_Handled < > ( & self , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( handled ) , ) . ok ( ) } pub unsafe fn put_Handled < 'a , > ( & self , handled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , handled . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2AcceleratorKeyPressedEventArgs { type Vtable = ICoreWebView2AcceleratorKeyPressedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2675314570 ,64377 ,17086 , [ 153 ,144 ,123 ,86 ,144 ,15 ,169 ,199 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2AcceleratorKeyPressedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2AcceleratorKeyPressedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2AcceleratorKeyPressedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2AcceleratorKeyPressedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2AcceleratorKeyPressedEventArgs { 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 ICoreWebView2AcceleratorKeyPressedEventArgs { 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 ICoreWebView2AcceleratorKeyPressedEventArgs_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 , keyeventkind : * mut COREWEBVIEW2_KEY_EVENT_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , virtualkey : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , lparam : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , physicalkeystatus : * mut COREWEBVIEW2_PHYSICAL_KEY_STATUS , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2AcceleratorKeyPressedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2AcceleratorKeyPressedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2AcceleratorKeyPressedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2AcceleratorKeyPressedEventHandler { type Vtable = ICoreWebView2AcceleratorKeyPressedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2996600360 ,64121 ,16808 , [ 142 ,68 ,101 ,129 ,28 ,118 ,220 ,178 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2AcceleratorKeyPressedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2AcceleratorKeyPressedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2AcceleratorKeyPressedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2AcceleratorKeyPressedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2AcceleratorKeyPressedEventHandler { 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 ICoreWebView2AcceleratorKeyPressedEventHandler { 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 ICoreWebView2AcceleratorKeyPressedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , id : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , id . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler { type Vtable = ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3113445875 ,39697 ,18357 , [ 188 ,111 ,142 ,120 ,149 ,252 ,234 ,23 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler { 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 ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler { 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 ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_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 , errorcode : :: windows :: HRESULT , id : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2BytesReceivedChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2BytesReceivedChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2DownloadOperation > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2BytesReceivedChangedEventHandler { type Vtable = ICoreWebView2BytesReceivedChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2190379702 ,55628 ,16996 , [ 156 ,239 ,82 ,23 ,23 ,13 ,98 ,81 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2BytesReceivedChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2BytesReceivedChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2BytesReceivedChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2BytesReceivedChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2BytesReceivedChangedEventHandler { 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 ICoreWebView2BytesReceivedChangedEventHandler { 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 ICoreWebView2BytesReceivedChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CallDevToolsProtocolMethodCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CallDevToolsProtocolMethodCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , returnobjectasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , returnobjectasjson . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CallDevToolsProtocolMethodCompletedHandler { type Vtable = ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1548257776 ,24310 ,19546 , [ 149 ,44 ,216 ,241 ,185 ,45 ,5 ,116 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CallDevToolsProtocolMethodCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CallDevToolsProtocolMethodCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CallDevToolsProtocolMethodCompletedHandler { 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 ICoreWebView2CallDevToolsProtocolMethodCompletedHandler { 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 ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_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 , errorcode : :: windows :: HRESULT , returnobjectasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CapturePreviewCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CapturePreviewCompletedHandler { pub unsafe fn Invoke < > ( & self , errorcode : :: windows :: HRESULT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CapturePreviewCompletedHandler { type Vtable = ICoreWebView2CapturePreviewCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1769866729 ,15759 ,17914 , [ 150 ,244 ,143 ,254 ,30 ,222 ,218 ,245 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CapturePreviewCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CapturePreviewCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CapturePreviewCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CapturePreviewCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CapturePreviewCompletedHandler { 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 ICoreWebView2CapturePreviewCompletedHandler { 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 ICoreWebView2CapturePreviewCompletedHandler_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 , errorcode : :: windows :: HRESULT , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CompositionController ( :: windows :: IUnknown ) ; impl ICoreWebView2CompositionController { pub unsafe fn get_RootVisualTarget < > ( & self , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } pub unsafe fn put_RootVisualTarget < 'a , > ( & self , target : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , target . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SendMouseInput < 'a , > ( & self , eventkind : COREWEBVIEW2_MOUSE_EVENT_KIND , virtualkeys : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS , mousedata : u32 , point : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( eventkind ) , :: std :: mem :: transmute ( virtualkeys ) , :: std :: mem :: transmute ( mousedata ) , point . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SendPointerInput < 'a , > ( & self , eventkind : COREWEBVIEW2_POINTER_EVENT_KIND , pointerinfo : impl :: windows :: IntoParam < 'a , ICoreWebView2PointerInfo > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( eventkind ) , pointerinfo . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Cursor < > ( & self , cursor : * mut super::super::super::super::Windows::Win32::UI::WindowsAndMessaging:: HCURSOR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cursor ) , ) . ok ( ) } pub unsafe fn get_SystemCursorId < > ( & self , systemcursorid : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( systemcursorid ) , ) . ok ( ) } pub unsafe fn add_CursorChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2CursorChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_CursorChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CompositionController { type Vtable = ICoreWebView2CompositionController_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1039775539 ,47534 ,18965 , [ 134 ,180 ,235 ,158 ,233 ,130 ,100 ,105 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CompositionController > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CompositionController ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CompositionController > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CompositionController ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CompositionController { 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 ICoreWebView2CompositionController { 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 ICoreWebView2CompositionController_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 , target : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventkind : COREWEBVIEW2_MOUSE_EVENT_KIND , virtualkeys : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS , mousedata : u32 , point : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventkind : COREWEBVIEW2_POINTER_EVENT_KIND , pointerinfo : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cursor : * mut super::super::super::super::Windows::Win32::UI::WindowsAndMessaging:: HCURSOR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , systemcursorid : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CompositionController2 ( :: windows :: IUnknown ) ; impl ICoreWebView2CompositionController2 { pub unsafe fn get_RootVisualTarget < > ( & self , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } pub unsafe fn put_RootVisualTarget < 'a , > ( & self , target : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , target . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SendMouseInput < 'a , > ( & self , eventkind : COREWEBVIEW2_MOUSE_EVENT_KIND , virtualkeys : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS , mousedata : u32 , point : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( eventkind ) , :: std :: mem :: transmute ( virtualkeys ) , :: std :: mem :: transmute ( mousedata ) , point . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SendPointerInput < 'a , > ( & self , eventkind : COREWEBVIEW2_POINTER_EVENT_KIND , pointerinfo : impl :: windows :: IntoParam < 'a , ICoreWebView2PointerInfo > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( eventkind ) , pointerinfo . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Cursor < > ( & self , cursor : * mut super::super::super::super::Windows::Win32::UI::WindowsAndMessaging:: HCURSOR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cursor ) , ) . ok ( ) } pub unsafe fn get_SystemCursorId < > ( & self , systemcursorid : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( systemcursorid ) , ) . ok ( ) } pub unsafe fn add_CursorChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2CursorChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_CursorChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_UIAProvider < > ( & self , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2CompositionController2 { type Vtable = ICoreWebView2CompositionController2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 191511844 ,18891 ,18438 , [ 186 ,32 ,181 ,224 ,115 ,74 ,123 ,38 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CompositionController2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CompositionController2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CompositionController2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CompositionController2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CompositionController2 { 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 ICoreWebView2CompositionController2 { 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 < ICoreWebView2CompositionController2 > for ICoreWebView2CompositionController { fn from ( value : ICoreWebView2CompositionController2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CompositionController2 > for ICoreWebView2CompositionController { fn from ( value : & ICoreWebView2CompositionController2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2CompositionController > for ICoreWebView2CompositionController2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2CompositionController > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2CompositionController > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2CompositionController > for & 'a ICoreWebView2CompositionController2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2CompositionController > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2CompositionController > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2CompositionController2_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 , target : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventkind : COREWEBVIEW2_MOUSE_EVENT_KIND , virtualkeys : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS , mousedata : u32 , point : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventkind : COREWEBVIEW2_POINTER_EVENT_KIND , pointerinfo : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cursor : * mut super::super::super::super::Windows::Win32::UI::WindowsAndMessaging:: HCURSOR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , systemcursorid : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , provider : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CompositionControllerInterop ( :: windows :: IUnknown ) ; impl ICoreWebView2CompositionControllerInterop { pub unsafe fn get_UIAProvider < > ( & self , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } pub unsafe fn get_RootVisualTarget < > ( & self , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } pub unsafe fn put_RootVisualTarget < 'a , > ( & self , target : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , target . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CompositionControllerInterop { type Vtable = ICoreWebView2CompositionControllerInterop_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2392400590 ,40064 ,17126 , [ 186 ,215 ,252 ,235 ,242 ,145 ,164 ,149 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CompositionControllerInterop > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CompositionControllerInterop ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CompositionControllerInterop > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CompositionControllerInterop ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CompositionControllerInterop { 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 ICoreWebView2CompositionControllerInterop { 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 ICoreWebView2CompositionControllerInterop_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 , provider : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ContainsFullScreenElementChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ContainsFullScreenElementChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ContainsFullScreenElementChangedEventHandler { type Vtable = ICoreWebView2ContainsFullScreenElementChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3831339185 ,45039 ,17854 , [ 139 ,175 ,108 ,119 ,40 ,134 ,127 ,115 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ContainsFullScreenElementChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ContainsFullScreenElementChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ContainsFullScreenElementChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ContainsFullScreenElementChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ContainsFullScreenElementChangedEventHandler { 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 ICoreWebView2ContainsFullScreenElementChangedEventHandler { 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 ICoreWebView2ContainsFullScreenElementChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ContentLoadingEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2ContentLoadingEventArgs { pub unsafe fn get_IsErrorPage < > ( & self , iserrorpage : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iserrorpage ) , ) . ok ( ) } pub unsafe fn get_NavigationId < > ( & self , navigationid : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( navigationid ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ContentLoadingEventArgs { type Vtable = ICoreWebView2ContentLoadingEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 210375285 ,39787 ,18689 , [ 135 ,173 ,112 ,223 ,37 ,186 ,250 ,110 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ContentLoadingEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ContentLoadingEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ContentLoadingEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ContentLoadingEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ContentLoadingEventArgs { 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 ICoreWebView2ContentLoadingEventArgs { 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 ICoreWebView2ContentLoadingEventArgs_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 , iserrorpage : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , navigationid : * mut u64 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ContentLoadingEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ContentLoadingEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2ContentLoadingEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ContentLoadingEventHandler { type Vtable = ICoreWebView2ContentLoadingEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 910455271 ,62142 ,18704 , [ 189 ,186 ,215 ,32 ,119 ,213 ,28 ,75 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ContentLoadingEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ContentLoadingEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ContentLoadingEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ContentLoadingEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ContentLoadingEventHandler { 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 ICoreWebView2ContentLoadingEventHandler { 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 ICoreWebView2ContentLoadingEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Controller ( :: windows :: IUnknown ) ; impl ICoreWebView2Controller { pub unsafe fn get_IsVisible < > ( & self , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isvisible ) , ) . ok ( ) } pub unsafe fn put_IsVisible < 'a , > ( & self , isvisible : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isvisible . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Bounds < > ( & self , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( bounds ) , ) . ok ( ) } pub unsafe fn put_Bounds < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ZoomFactor < > ( & self , zoomfactor : * mut f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn put_ZoomFactor < > ( & self , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn add_ZoomFactorChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ZoomFactorChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ZoomFactorChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SetBoundsAndZoomFactor < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn MoveFocus < > ( & self , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reason ) , ) . ok ( ) } pub unsafe fn add_MoveFocusRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2MoveFocusRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_MoveFocusRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_GotFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_GotFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_LostFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_LostFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_AcceleratorKeyPressed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2AcceleratorKeyPressedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_AcceleratorKeyPressed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ParentWindow < > ( & self , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( parentwindow ) , ) . ok ( ) } pub unsafe fn put_ParentWindow < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NotifyParentWindowPositionChanged < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn Close < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_CoreWebView2 < > ( & self , ) -> :: windows :: Result < ICoreWebView2 > { let mut result__ : < ICoreWebView2 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2 > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2Controller { type Vtable = ICoreWebView2Controller_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1291894993 ,37940 ,20150 , [ 128 ,120 ,134 ,151 ,165 ,96 ,51 ,79 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Controller > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Controller ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Controller ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Controller { 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 ICoreWebView2Controller { 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 ICoreWebView2Controller_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 , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isvisible : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : * mut f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , 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 , corewebview2 : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Controller2 ( :: windows :: IUnknown ) ; impl ICoreWebView2Controller2 { pub unsafe fn get_IsVisible < > ( & self , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isvisible ) , ) . ok ( ) } pub unsafe fn put_IsVisible < 'a , > ( & self , isvisible : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isvisible . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Bounds < > ( & self , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( bounds ) , ) . ok ( ) } pub unsafe fn put_Bounds < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ZoomFactor < > ( & self , zoomfactor : * mut f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn put_ZoomFactor < > ( & self , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn add_ZoomFactorChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ZoomFactorChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ZoomFactorChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SetBoundsAndZoomFactor < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn MoveFocus < > ( & self , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reason ) , ) . ok ( ) } pub unsafe fn add_MoveFocusRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2MoveFocusRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_MoveFocusRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_GotFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_GotFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_LostFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_LostFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_AcceleratorKeyPressed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2AcceleratorKeyPressedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_AcceleratorKeyPressed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ParentWindow < > ( & self , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( parentwindow ) , ) . ok ( ) } pub unsafe fn put_ParentWindow < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NotifyParentWindowPositionChanged < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn Close < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_CoreWebView2 < > ( & self , ) -> :: windows :: Result < ICoreWebView2 > { let mut result__ : < ICoreWebView2 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2 > ( result__ ) } pub unsafe fn get_DefaultBackgroundColor < > ( & self , backgroundcolor : * mut COREWEBVIEW2_COLOR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( backgroundcolor ) , ) . ok ( ) } pub unsafe fn put_DefaultBackgroundColor < 'a , > ( & self , backgroundcolor : impl :: windows :: IntoParam < 'a , COREWEBVIEW2_COLOR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , backgroundcolor . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Controller2 { type Vtable = ICoreWebView2Controller2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3380187198 ,54474 ,16936 , [ 146 ,235 ,71 ,238 ,63 ,169 ,110 ,171 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Controller2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Controller2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Controller2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Controller2 { 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 ICoreWebView2Controller2 { 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 < ICoreWebView2Controller2 > for ICoreWebView2Controller { fn from ( value : ICoreWebView2Controller2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller2 > for ICoreWebView2Controller { fn from ( value : & ICoreWebView2Controller2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller > for ICoreWebView2Controller2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller > for & 'a ICoreWebView2Controller2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Controller2_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 , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isvisible : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : * mut f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , 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 , corewebview2 : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , backgroundcolor : * mut COREWEBVIEW2_COLOR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , backgroundcolor : COREWEBVIEW2_COLOR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Controller3 ( :: windows :: IUnknown ) ; impl ICoreWebView2Controller3 { pub unsafe fn get_IsVisible < > ( & self , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isvisible ) , ) . ok ( ) } pub unsafe fn put_IsVisible < 'a , > ( & self , isvisible : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isvisible . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Bounds < > ( & self , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( bounds ) , ) . ok ( ) } pub unsafe fn put_Bounds < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ZoomFactor < > ( & self , zoomfactor : * mut f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn put_ZoomFactor < > ( & self , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn add_ZoomFactorChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ZoomFactorChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ZoomFactorChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SetBoundsAndZoomFactor < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn MoveFocus < > ( & self , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reason ) , ) . ok ( ) } pub unsafe fn add_MoveFocusRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2MoveFocusRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_MoveFocusRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_GotFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_GotFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_LostFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_LostFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_AcceleratorKeyPressed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2AcceleratorKeyPressedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_AcceleratorKeyPressed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ParentWindow < > ( & self , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( parentwindow ) , ) . ok ( ) } pub unsafe fn put_ParentWindow < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NotifyParentWindowPositionChanged < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn Close < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_CoreWebView2 < > ( & self , ) -> :: windows :: Result < ICoreWebView2 > { let mut result__ : < ICoreWebView2 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2 > ( result__ ) } pub unsafe fn get_DefaultBackgroundColor < > ( & self , backgroundcolor : * mut COREWEBVIEW2_COLOR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( backgroundcolor ) , ) . ok ( ) } pub unsafe fn put_DefaultBackgroundColor < 'a , > ( & self , backgroundcolor : impl :: windows :: IntoParam < 'a , COREWEBVIEW2_COLOR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , backgroundcolor . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_RasterizationScale < > ( & self , scale : * mut f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( scale ) , ) . ok ( ) } pub unsafe fn put_RasterizationScale < > ( & self , scale : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( scale ) , ) . ok ( ) } pub unsafe fn get_ShouldDetectMonitorScaleChanges < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_ShouldDetectMonitorScaleChanges < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_RasterizationScaleChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2RasterizationScaleChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_RasterizationScaleChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_BoundsMode < > ( & self , boundsmode : * mut COREWEBVIEW2_BOUNDS_MODE , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( boundsmode ) , ) . ok ( ) } pub unsafe fn put_BoundsMode < > ( & self , boundsmode : COREWEBVIEW2_BOUNDS_MODE , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( boundsmode ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Controller3 { type Vtable = ICoreWebView2Controller3_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4183901988 ,23851 ,16860 , [ 174 ,247 ,115 ,214 ,43 ,81 ,84 ,59 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Controller3 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Controller3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller3 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Controller3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Controller3 { 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 ICoreWebView2Controller3 { 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 < ICoreWebView2Controller3 > for ICoreWebView2Controller2 { fn from ( value : ICoreWebView2Controller3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller3 > for ICoreWebView2Controller2 { fn from ( value : & ICoreWebView2Controller3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller2 > for ICoreWebView2Controller3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller2 > for & 'a ICoreWebView2Controller3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Controller3 > for ICoreWebView2Controller { fn from ( value : ICoreWebView2Controller3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller3 > for ICoreWebView2Controller { fn from ( value : & ICoreWebView2Controller3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller > for ICoreWebView2Controller3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller > for & 'a ICoreWebView2Controller3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Controller3_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 , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isvisible : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : * mut f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , 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 , corewebview2 : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , backgroundcolor : * mut COREWEBVIEW2_COLOR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , backgroundcolor : COREWEBVIEW2_COLOR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , scale : * mut f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , scale : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , boundsmode : * mut COREWEBVIEW2_BOUNDS_MODE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , boundsmode : COREWEBVIEW2_BOUNDS_MODE , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Cookie ( :: windows :: IUnknown ) ; impl ICoreWebView2Cookie { pub unsafe fn get_Name < > ( & self , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( name ) , ) . ok ( ) } pub unsafe fn get_Value < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_Value < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Domain < > ( & self , domain : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( domain ) , ) . ok ( ) } pub unsafe fn get_Path < > ( & self , path : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( path ) , ) . ok ( ) } pub unsafe fn get_Expires < > ( & self , expires : * mut f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( expires ) , ) . ok ( ) } pub unsafe fn put_Expires < > ( & self , expires : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( expires ) , ) . ok ( ) } pub unsafe fn get_IsHttpOnly < > ( & self , ishttponly : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ishttponly ) , ) . ok ( ) } pub unsafe fn put_IsHttpOnly < 'a , > ( & self , ishttponly : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , ishttponly . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_SameSite < > ( & self , samesite : * mut COREWEBVIEW2_COOKIE_SAME_SITE_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( samesite ) , ) . ok ( ) } pub unsafe fn put_SameSite < > ( & self , samesite : COREWEBVIEW2_COOKIE_SAME_SITE_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( samesite ) , ) . ok ( ) } pub unsafe fn get_IsSecure < > ( & self , issecure : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( issecure ) , ) . ok ( ) } pub unsafe fn put_IsSecure < 'a , > ( & self , issecure : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , issecure . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsSession < > ( & self , issession : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( issession ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Cookie { type Vtable = ICoreWebView2Cookie_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2905003710 ,5254 ,17382 , [ 191 ,135 ,162 ,3 ,64 ,6 ,202 ,33 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Cookie > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Cookie ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Cookie > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Cookie ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Cookie { 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 ICoreWebView2Cookie { 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 ICoreWebView2Cookie_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 , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , domain : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , path : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , expires : * mut f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , expires : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ishttponly : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ishttponly : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , samesite : * mut COREWEBVIEW2_COOKIE_SAME_SITE_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , samesite : COREWEBVIEW2_COOKIE_SAME_SITE_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , issecure : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , issecure : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , issession : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CookieList ( :: windows :: IUnknown ) ; impl ICoreWebView2CookieList { pub unsafe fn get_Count < > ( & self , count : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( count ) , ) . ok ( ) } pub unsafe fn GetValueAtIndex < > ( & self , index : u32 , ) -> :: windows :: Result < ICoreWebView2Cookie > { let mut result__ : < ICoreWebView2Cookie as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( index ) , & mut result__ ) . from_abi :: < ICoreWebView2Cookie > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2CookieList { type Vtable = ICoreWebView2CookieList_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4160157460 ,23850 ,17350 , [ 149 ,3 ,52 ,110 ,206 ,2 ,209 ,134 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CookieList > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CookieList ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CookieList > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CookieList ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CookieList { 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 ICoreWebView2CookieList { 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 ICoreWebView2CookieList_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 , count : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , index : u32 , cookie : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CookieManager ( :: windows :: IUnknown ) ; impl ICoreWebView2CookieManager { pub unsafe fn CreateCookie < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , domain : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , path : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2Cookie > { let mut result__ : < ICoreWebView2Cookie as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , value . into_param ( ) . abi ( ) , domain . into_param ( ) . abi ( ) , path . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2Cookie > ( result__ ) } pub unsafe fn CopyCookie < 'a , > ( & self , cookieparam : impl :: windows :: IntoParam < 'a , ICoreWebView2Cookie > , ) -> :: windows :: Result < ICoreWebView2Cookie > { let mut result__ : < ICoreWebView2Cookie as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , cookieparam . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2Cookie > ( result__ ) } pub unsafe fn GetCookies < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2GetCookiesCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddOrUpdateCookie < 'a , > ( & self , cookie : impl :: windows :: IntoParam < 'a , ICoreWebView2Cookie > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , cookie . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn DeleteCookie < 'a , > ( & self , cookie : impl :: windows :: IntoParam < 'a , ICoreWebView2Cookie > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , cookie . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn DeleteCookies < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn DeleteCookiesWithDomainAndPath < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , domain : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , path : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , domain . into_param ( ) . abi ( ) , path . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn DeleteAllCookies < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CookieManager { type Vtable = ICoreWebView2CookieManager_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 394058215 ,46837 ,17690 , [ 148 ,160 ,93 ,122 ,58 ,76 ,65 ,65 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CookieManager > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CookieManager ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CookieManager > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CookieManager ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CookieManager { 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 ICoreWebView2CookieManager { 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 ICoreWebView2CookieManager_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 , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , domain : super::super::super::super::Windows::Win32::Foundation:: PWSTR , path : super::super::super::super::Windows::Win32::Foundation:: PWSTR , cookie : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookieparam : :: windows :: RawPtr , cookie : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookie : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookie : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , domain : super::super::super::super::Windows::Win32::Foundation:: PWSTR , path : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , webview : impl :: windows :: IntoParam < 'a , ICoreWebView2CompositionController > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , webview . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler { type Vtable = ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 49985611 ,5160 ,20407 , [ 173 ,69 ,27 ,46 ,100 ,115 ,97 ,132 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler { 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 ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler { 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 ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_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 , errorcode : :: windows :: HRESULT , webview : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CreateCoreWebView2ControllerCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CreateCoreWebView2ControllerCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , createdcontroller : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , createdcontroller . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CreateCoreWebView2ControllerCompletedHandler { type Vtable = ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1816664563 ,51639 ,16992 , [ 129 ,39 ,201 ,245 ,189 ,231 ,246 ,140 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CreateCoreWebView2ControllerCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CreateCoreWebView2ControllerCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CreateCoreWebView2ControllerCompletedHandler { 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 ICoreWebView2CreateCoreWebView2ControllerCompletedHandler { 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 ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_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 , errorcode : :: windows :: HRESULT , createdcontroller : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , createdenvironment : impl :: windows :: IntoParam < 'a , ICoreWebView2Environment > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , createdenvironment . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler { type Vtable = ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1317680009 ,51672 ,19410 , [ 182 ,181 ,18 ,79 ,238 ,108 ,193 ,77 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler { 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 ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler { 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 ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_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 , errorcode : :: windows :: HRESULT , createdenvironment : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CursorChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CursorChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2CompositionController > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CursorChangedEventHandler { type Vtable = ICoreWebView2CursorChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2644786380 ,9953 ,19885 , [ 181 ,108 ,216 ,150 ,28 ,148 ,197 ,113 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CursorChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CursorChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CursorChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CursorChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CursorChangedEventHandler { 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 ICoreWebView2CursorChangedEventHandler { 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 ICoreWebView2CursorChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DOMContentLoadedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2DOMContentLoadedEventArgs { pub unsafe fn get_NavigationId < > ( & self , navigationid : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( navigationid ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DOMContentLoadedEventArgs { type Vtable = ICoreWebView2DOMContentLoadedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 380756506 ,50435 ,17650 , [ 132 ,201 ,112 ,171 ,165 ,3 ,18 ,131 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DOMContentLoadedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DOMContentLoadedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DOMContentLoadedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DOMContentLoadedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DOMContentLoadedEventArgs { 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 ICoreWebView2DOMContentLoadedEventArgs { 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 ICoreWebView2DOMContentLoadedEventArgs_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 , navigationid : * mut u64 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DOMContentLoadedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2DOMContentLoadedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2DOMContentLoadedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DOMContentLoadedEventHandler { type Vtable = ICoreWebView2DOMContentLoadedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1269595804 ,6558 ,18925 , [ 135 ,237 ,36 ,147 ,3 ,172 ,240 ,25 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DOMContentLoadedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DOMContentLoadedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DOMContentLoadedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DOMContentLoadedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DOMContentLoadedEventHandler { 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 ICoreWebView2DOMContentLoadedEventHandler { 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 ICoreWebView2DOMContentLoadedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Deferral ( :: windows :: IUnknown ) ; impl ICoreWebView2Deferral { pub unsafe fn Complete < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Deferral { type Vtable = ICoreWebView2Deferral_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3238952827 ,46469 ,18160 , [ 166 ,35 ,139 ,239 ,191 ,62 ,78 ,224 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Deferral > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Deferral ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Deferral > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Deferral ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Deferral { 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 ICoreWebView2Deferral { 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 ICoreWebView2Deferral_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 , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DevToolsProtocolEventReceivedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2DevToolsProtocolEventReceivedEventArgs { pub unsafe fn get_ParameterObjectAsJson < > ( & self , parameterobjectasjson : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( parameterobjectasjson ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DevToolsProtocolEventReceivedEventArgs { type Vtable = ICoreWebView2DevToolsProtocolEventReceivedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1698441561 ,47930 ,17271 , [ 134 ,50 ,181 ,138 ,218 ,78 ,102 ,196 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DevToolsProtocolEventReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DevToolsProtocolEventReceivedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DevToolsProtocolEventReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DevToolsProtocolEventReceivedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DevToolsProtocolEventReceivedEventArgs { 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 ICoreWebView2DevToolsProtocolEventReceivedEventArgs { 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 ICoreWebView2DevToolsProtocolEventReceivedEventArgs_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 , parameterobjectasjson : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DevToolsProtocolEventReceivedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2DevToolsProtocolEventReceivedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2DevToolsProtocolEventReceivedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DevToolsProtocolEventReceivedEventHandler { type Vtable = ICoreWebView2DevToolsProtocolEventReceivedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3808273598 ,21590 ,16492 , [ 162 ,97 ,61 ,69 ,33 ,56 ,54 ,44 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DevToolsProtocolEventReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DevToolsProtocolEventReceivedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DevToolsProtocolEventReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DevToolsProtocolEventReceivedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DevToolsProtocolEventReceivedEventHandler { 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 ICoreWebView2DevToolsProtocolEventReceivedEventHandler { 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 ICoreWebView2DevToolsProtocolEventReceivedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DevToolsProtocolEventReceiver ( :: windows :: IUnknown ) ; impl ICoreWebView2DevToolsProtocolEventReceiver { pub unsafe fn add_DevToolsProtocolEventReceived < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2DevToolsProtocolEventReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DevToolsProtocolEventReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DevToolsProtocolEventReceiver { type Vtable = ICoreWebView2DevToolsProtocolEventReceiver_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3006047514 ,33649 ,17897 , [ 147 ,23 ,175 ,2 ,29 ,8 ,3 ,103 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DevToolsProtocolEventReceiver > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DevToolsProtocolEventReceiver ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DevToolsProtocolEventReceiver > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DevToolsProtocolEventReceiver ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DevToolsProtocolEventReceiver { 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 ICoreWebView2DevToolsProtocolEventReceiver { 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 ICoreWebView2DevToolsProtocolEventReceiver_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 , handler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DocumentTitleChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2DocumentTitleChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DocumentTitleChangedEventHandler { type Vtable = ICoreWebView2DocumentTitleChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4126325027 ,38206 ,16450 , [ 159 ,149 ,243 ,161 ,24 ,225 ,175 ,212 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DocumentTitleChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DocumentTitleChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DocumentTitleChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DocumentTitleChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DocumentTitleChangedEventHandler { 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 ICoreWebView2DocumentTitleChangedEventHandler { 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 ICoreWebView2DocumentTitleChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DownloadOperation ( :: windows :: IUnknown ) ; impl ICoreWebView2DownloadOperation { pub unsafe fn add_BytesReceivedChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2BytesReceivedChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_BytesReceivedChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_EstimatedEndTimeChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2EstimatedEndTimeChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_EstimatedEndTimeChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_StateChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2StateChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_StateChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn get_ContentDisposition < > ( & self , contentdisposition : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( contentdisposition ) , ) . ok ( ) } pub unsafe fn get_MimeType < > ( & self , mimetype : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( mimetype ) , ) . ok ( ) } pub unsafe fn get_TotalBytesToReceive < > ( & self , totalbytestoreceive : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( totalbytestoreceive ) , ) . ok ( ) } pub unsafe fn get_BytesReceived < > ( & self , bytesreceived : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( bytesreceived ) , ) . ok ( ) } pub unsafe fn get_EstimatedEndTime < > ( & self , estimatedendtime : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( estimatedendtime ) , ) . ok ( ) } pub unsafe fn get_ResultFilePath < > ( & self , resultfilepath : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( resultfilepath ) , ) . ok ( ) } pub unsafe fn get_State < > ( & self , downloadstate : * mut COREWEBVIEW2_DOWNLOAD_STATE , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( downloadstate ) , ) . ok ( ) } pub unsafe fn get_InterruptReason < > ( & self , interruptreason : * mut COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( interruptreason ) , ) . ok ( ) } pub unsafe fn Cancel < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn Pause < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn Resume < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_CanResume < > ( & self , canresume : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( canresume ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DownloadOperation { type Vtable = ICoreWebView2DownloadOperation_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1030450418 ,45025 ,17607 , [ 169 ,149 ,198 ,81 ,23 ,113 ,67 ,54 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DownloadOperation > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DownloadOperation ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DownloadOperation > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DownloadOperation ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DownloadOperation { 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 ICoreWebView2DownloadOperation { 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 ICoreWebView2DownloadOperation_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 , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , contentdisposition : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mimetype : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , totalbytestoreceive : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bytesreceived : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , estimatedendtime : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , resultfilepath : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , downloadstate : * mut COREWEBVIEW2_DOWNLOAD_STATE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , interruptreason : * mut COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON , ) -> :: windows :: HRESULT , 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 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , canresume : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DownloadStartingEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2DownloadStartingEventArgs { pub unsafe fn get_DownloadOperation < > ( & self , ) -> :: windows :: Result < ICoreWebView2DownloadOperation > { let mut result__ : < ICoreWebView2DownloadOperation as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2DownloadOperation > ( result__ ) } pub unsafe fn get_Cancel < > ( & self , cancel : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cancel ) , ) . ok ( ) } pub unsafe fn put_Cancel < 'a , > ( & self , cancel : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , cancel . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ResultFilePath < > ( & self , resultfilepath : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( resultfilepath ) , ) . ok ( ) } pub unsafe fn put_ResultFilePath < 'a , > ( & self , resultfilepath : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , resultfilepath . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Handled < > ( & self , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( handled ) , ) . ok ( ) } pub unsafe fn put_Handled < 'a , > ( & self , handled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , handled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetDeferral < > ( & self , ) -> :: windows :: Result < ICoreWebView2Deferral > { let mut result__ : < ICoreWebView2Deferral as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Deferral > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2DownloadStartingEventArgs { type Vtable = ICoreWebView2DownloadStartingEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3919298081 ,17385 ,17732 , [ 167 ,50 ,40 ,39 ,100 ,234 ,250 ,96 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DownloadStartingEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DownloadStartingEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DownloadStartingEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DownloadStartingEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DownloadStartingEventArgs { 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 ICoreWebView2DownloadStartingEventArgs { 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 ICoreWebView2DownloadStartingEventArgs_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 , downloadoperation : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cancel : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cancel : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , resultfilepath : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , resultfilepath : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , deferral : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DownloadStartingEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2DownloadStartingEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2DownloadStartingEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DownloadStartingEventHandler { type Vtable = ICoreWebView2DownloadStartingEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4025338249 ,50070 ,16842 , [ 131 ,247 ,7 ,248 ,69 ,165 ,87 ,36 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DownloadStartingEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DownloadStartingEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DownloadStartingEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DownloadStartingEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DownloadStartingEventHandler { 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 ICoreWebView2DownloadStartingEventHandler { 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 ICoreWebView2DownloadStartingEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Environment ( :: windows :: IUnknown ) ; impl ICoreWebView2Environment { pub unsafe fn CreateCoreWebView2Controller < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceResponse < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , statuscode : i32 , reasonphrase : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceResponse > { let mut result__ : < ICoreWebView2WebResourceResponse as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( statuscode ) , reasonphrase . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponse > ( result__ ) } pub unsafe fn get_BrowserVersionString < > ( & self , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( versioninfo ) , ) . ok ( ) } pub unsafe fn add_NewBrowserVersionAvailable < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewBrowserVersionAvailableEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewBrowserVersionAvailable < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Environment { type Vtable = ICoreWebView2Environment_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3110958430 ,793 ,20114 , [ 162 ,150 ,35 ,67 ,111 ,70 ,161 ,252 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Environment > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Environment ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Environment ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Environment { 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 ICoreWebView2Environment { 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 ICoreWebView2Environment_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 , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , statuscode : i32 , reasonphrase : super::super::super::super::Windows::Win32::Foundation:: PWSTR , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Environment2 ( :: windows :: IUnknown ) ; impl ICoreWebView2Environment2 { pub unsafe fn CreateCoreWebView2Controller < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceResponse < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , statuscode : i32 , reasonphrase : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceResponse > { let mut result__ : < ICoreWebView2WebResourceResponse as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( statuscode ) , reasonphrase . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponse > ( result__ ) } pub unsafe fn get_BrowserVersionString < > ( & self , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( versioninfo ) , ) . ok ( ) } pub unsafe fn add_NewBrowserVersionAvailable < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewBrowserVersionAvailableEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewBrowserVersionAvailable < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceRequest < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , method : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , postdata : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceRequest > { let mut result__ : < ICoreWebView2WebResourceRequest as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , method . into_param ( ) . abi ( ) , postdata . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceRequest > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2Environment2 { type Vtable = ICoreWebView2Environment2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1106469675 ,24308 ,16463 , [ 173 ,130 ,45 ,96 ,108 ,90 ,154 ,33 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Environment2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Environment2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Environment2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Environment2 { 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 ICoreWebView2Environment2 { 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 < ICoreWebView2Environment2 > for ICoreWebView2Environment { fn from ( value : ICoreWebView2Environment2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment2 > for ICoreWebView2Environment { fn from ( value : & ICoreWebView2Environment2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for ICoreWebView2Environment2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for & 'a ICoreWebView2Environment2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Environment2_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 , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , statuscode : i32 , reasonphrase : super::super::super::super::Windows::Win32::Foundation:: PWSTR , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , method : super::super::super::super::Windows::Win32::Foundation:: PWSTR , postdata : :: windows :: RawPtr , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , request : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Environment3 ( :: windows :: IUnknown ) ; impl ICoreWebView2Environment3 { pub unsafe fn CreateCoreWebView2Controller < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceResponse < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , statuscode : i32 , reasonphrase : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceResponse > { let mut result__ : < ICoreWebView2WebResourceResponse as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( statuscode ) , reasonphrase . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponse > ( result__ ) } pub unsafe fn get_BrowserVersionString < > ( & self , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( versioninfo ) , ) . ok ( ) } pub unsafe fn add_NewBrowserVersionAvailable < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewBrowserVersionAvailableEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewBrowserVersionAvailable < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceRequest < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , method : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , postdata : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceRequest > { let mut result__ : < ICoreWebView2WebResourceRequest as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , method . into_param ( ) . abi ( ) , postdata . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceRequest > ( result__ ) } pub unsafe fn CreateCoreWebView2CompositionController < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateCoreWebView2PointerInfo < > ( & self , ) -> :: windows :: Result < ICoreWebView2PointerInfo > { let mut result__ : < ICoreWebView2PointerInfo as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2PointerInfo > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2Environment3 { type Vtable = ICoreWebView2Environment3_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2158111459 ,48764 ,19682 , [ 175 ,225 ,90 ,80 ,5 ,108 ,222 ,235 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Environment3 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Environment3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment3 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Environment3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Environment3 { 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 ICoreWebView2Environment3 { 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 < ICoreWebView2Environment3 > for ICoreWebView2Environment2 { fn from ( value : ICoreWebView2Environment3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment3 > for ICoreWebView2Environment2 { fn from ( value : & ICoreWebView2Environment3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment2 > for ICoreWebView2Environment3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment2 > for & 'a ICoreWebView2Environment3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Environment3 > for ICoreWebView2Environment { fn from ( value : ICoreWebView2Environment3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment3 > for ICoreWebView2Environment { fn from ( value : & ICoreWebView2Environment3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for ICoreWebView2Environment3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for & 'a ICoreWebView2Environment3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Environment3_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 , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , statuscode : i32 , reasonphrase : super::super::super::super::Windows::Win32::Foundation:: PWSTR , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , method : super::super::super::super::Windows::Win32::Foundation:: PWSTR , postdata : :: windows :: RawPtr , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , request : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerinfo : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Environment4 ( :: windows :: IUnknown ) ; impl ICoreWebView2Environment4 { pub unsafe fn CreateCoreWebView2Controller < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceResponse < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , statuscode : i32 , reasonphrase : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceResponse > { let mut result__ : < ICoreWebView2WebResourceResponse as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( statuscode ) , reasonphrase . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponse > ( result__ ) } pub unsafe fn get_BrowserVersionString < > ( & self , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( versioninfo ) , ) . ok ( ) } pub unsafe fn add_NewBrowserVersionAvailable < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewBrowserVersionAvailableEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewBrowserVersionAvailable < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceRequest < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , method : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , postdata : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceRequest > { let mut result__ : < ICoreWebView2WebResourceRequest as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , method . into_param ( ) . abi ( ) , postdata . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceRequest > ( result__ ) } pub unsafe fn CreateCoreWebView2CompositionController < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateCoreWebView2PointerInfo < > ( & self , ) -> :: windows :: Result < ICoreWebView2PointerInfo > { let mut result__ : < ICoreWebView2PointerInfo as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2PointerInfo > ( result__ ) } pub unsafe fn GetProviderForHwnd < 'a , > ( & self , hwnd : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , hwnd . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2Environment4 { type Vtable = ICoreWebView2Environment4_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 546587513 ,28111 ,16854 , [ 160 ,160 ,171 ,192 ,252 ,80 ,222 ,13 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Environment4 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Environment4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment4 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Environment4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Environment4 { 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 ICoreWebView2Environment4 { 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 < ICoreWebView2Environment4 > for ICoreWebView2Environment3 { fn from ( value : ICoreWebView2Environment4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment4 > for ICoreWebView2Environment3 { fn from ( value : & ICoreWebView2Environment4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment3 > for ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment3 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment3 > for & 'a ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment3 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Environment4 > for ICoreWebView2Environment2 { fn from ( value : ICoreWebView2Environment4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment4 > for ICoreWebView2Environment2 { fn from ( value : & ICoreWebView2Environment4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment2 > for ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment2 > for & 'a ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Environment4 > for ICoreWebView2Environment { fn from ( value : ICoreWebView2Environment4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment4 > for ICoreWebView2Environment { fn from ( value : & ICoreWebView2Environment4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for & 'a ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Environment4_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 , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , statuscode : i32 , reasonphrase : super::super::super::super::Windows::Win32::Foundation:: PWSTR , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , method : super::super::super::super::Windows::Win32::Foundation:: PWSTR , postdata : :: windows :: RawPtr , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , request : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerinfo : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hwnd : super::super::super::super::Windows::Win32::Foundation:: HWND , provider : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2EnvironmentInterop ( :: windows :: IUnknown ) ; impl ICoreWebView2EnvironmentInterop { pub unsafe fn GetProviderForHwnd < 'a , > ( & self , hwnd : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , hwnd . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2EnvironmentInterop { type Vtable = ICoreWebView2EnvironmentInterop_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3998235235 ,49634 ,20415 , [ 138 ,77 ,130 ,78 ,149 ,248 ,187 ,19 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2EnvironmentInterop > for :: windows :: IUnknown { fn from ( value : ICoreWebView2EnvironmentInterop ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2EnvironmentInterop > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2EnvironmentInterop ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2EnvironmentInterop { 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 ICoreWebView2EnvironmentInterop { 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 ICoreWebView2EnvironmentInterop_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 , hwnd : super::super::super::super::Windows::Win32::Foundation:: HWND , provider : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2EnvironmentOptions ( :: windows :: IUnknown ) ; impl ICoreWebView2EnvironmentOptions { pub unsafe fn get_AdditionalBrowserArguments < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_AdditionalBrowserArguments < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Language < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_Language < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_TargetCompatibleBrowserVersion < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_TargetCompatibleBrowserVersion < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AllowSingleSignOnUsingOSPrimaryAccount < > ( & self , allow : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allow ) , ) . ok ( ) } pub unsafe fn put_AllowSingleSignOnUsingOSPrimaryAccount < 'a , > ( & self , allow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , allow . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2EnvironmentOptions { type Vtable = ICoreWebView2EnvironmentOptions_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 803080360 ,7834 ,18278 , [ 140 ,5 ,149 ,169 ,206 ,185 ,209 ,197 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2EnvironmentOptions > for :: windows :: IUnknown { fn from ( value : ICoreWebView2EnvironmentOptions ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2EnvironmentOptions > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2EnvironmentOptions ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2EnvironmentOptions { 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 ICoreWebView2EnvironmentOptions { 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 ICoreWebView2EnvironmentOptions_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 , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allow : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allow : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2EstimatedEndTimeChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2EstimatedEndTimeChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2DownloadOperation > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2EstimatedEndTimeChangedEventHandler { type Vtable = ICoreWebView2EstimatedEndTimeChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 686871589 ,37886 ,20067 , [ 159 ,141 ,42 ,238 ,198 ,211 ,186 ,30 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2EstimatedEndTimeChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2EstimatedEndTimeChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2EstimatedEndTimeChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2EstimatedEndTimeChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2EstimatedEndTimeChangedEventHandler { 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 ICoreWebView2EstimatedEndTimeChangedEventHandler { 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 ICoreWebView2EstimatedEndTimeChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ExecuteScriptCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ExecuteScriptCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , resultobjectasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , resultobjectasjson . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ExecuteScriptCompletedHandler { type Vtable = ICoreWebView2ExecuteScriptCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1230049650 ,52327 ,19402 , [ 153 ,35 ,19 ,113 ,18 ,244 ,196 ,204 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ExecuteScriptCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ExecuteScriptCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ExecuteScriptCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ExecuteScriptCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ExecuteScriptCompletedHandler { 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 ICoreWebView2ExecuteScriptCompletedHandler { 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 ICoreWebView2ExecuteScriptCompletedHandler_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 , errorcode : :: windows :: HRESULT , resultobjectasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FocusChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2FocusChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FocusChangedEventHandler { type Vtable = ICoreWebView2FocusChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 99230909 ,25682 ,18726 , [ 144 ,20 ,75 ,130 ,180 ,152 ,19 ,93 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FocusChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FocusChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FocusChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FocusChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FocusChangedEventHandler { 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 ICoreWebView2FocusChangedEventHandler { 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 ICoreWebView2FocusChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Frame ( :: windows :: IUnknown ) ; impl ICoreWebView2Frame { pub unsafe fn get_Name < > ( & self , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( name ) , ) . ok ( ) } pub unsafe fn add_NameChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FrameNameChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NameChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddHostObjectToScriptWithOrigins < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , originscount : u32 , origins : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , :: std :: mem :: transmute ( originscount ) , :: std :: mem :: transmute ( origins ) , ) . ok ( ) } pub unsafe fn RemoveHostObjectFromScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_Destroyed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FrameDestroyedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_Destroyed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn IsDestroyed < > ( & self , destroyed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( destroyed ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Frame { type Vtable = ICoreWebView2Frame_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4044560990 ,39849 ,4587 , [ 168 ,179 ,2 ,66 ,172 ,19 ,0 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Frame > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Frame ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Frame > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Frame ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Frame { 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 ICoreWebView2Frame { 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 ICoreWebView2Frame_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 , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , originscount : u32 , origins : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , destroyed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameCreatedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameCreatedEventArgs { pub unsafe fn get_Frame < > ( & self , ) -> :: windows :: Result < ICoreWebView2Frame > { let mut result__ : < ICoreWebView2Frame as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Frame > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameCreatedEventArgs { type Vtable = ICoreWebView2FrameCreatedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1299086174 ,39850 ,4587 , [ 168 ,179 ,2 ,66 ,172 ,19 ,0 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameCreatedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameCreatedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameCreatedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameCreatedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameCreatedEventArgs { 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 ICoreWebView2FrameCreatedEventArgs { 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 ICoreWebView2FrameCreatedEventArgs_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 , frame : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameCreatedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameCreatedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2FrameCreatedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameCreatedEventHandler { type Vtable = ICoreWebView2FrameCreatedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 939890544 ,39850 ,4587 , [ 168 ,179 ,2 ,66 ,172 ,19 ,0 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameCreatedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameCreatedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameCreatedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameCreatedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameCreatedEventHandler { 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 ICoreWebView2FrameCreatedEventHandler { 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 ICoreWebView2FrameCreatedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameDestroyedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameDestroyedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Frame > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameDestroyedEventHandler { type Vtable = ICoreWebView2FrameDestroyedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1507687244 ,39850 ,4587 , [ 168 ,179 ,2 ,66 ,172 ,19 ,0 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameDestroyedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameDestroyedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameDestroyedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameDestroyedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameDestroyedEventHandler { 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 ICoreWebView2FrameDestroyedEventHandler { 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 ICoreWebView2FrameDestroyedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameInfo ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameInfo { pub unsafe fn get_Name < > ( & self , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( name ) , ) . ok ( ) } pub unsafe fn get_Source < > ( & self , source : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( source ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameInfo { type Vtable = ICoreWebView2FrameInfo_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3666262177 ,48627 ,20241 , [ 153 ,85 ,82 ,140 ,239 ,165 ,151 ,39 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameInfo > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameInfo ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameInfo > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameInfo ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameInfo { 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 ICoreWebView2FrameInfo { 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 ICoreWebView2FrameInfo_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 , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , source : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameInfoCollection ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameInfoCollection { pub unsafe fn GetIterator < > ( & self , ) -> :: windows :: Result < ICoreWebView2FrameInfoCollectionIterator > { let mut result__ : < ICoreWebView2FrameInfoCollectionIterator as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2FrameInfoCollectionIterator > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameInfoCollection { type Vtable = ICoreWebView2FrameInfoCollection_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2407743828 ,54158 ,19856 , [ 175 ,251 ,104 ,0 ,167 ,39 ,40 ,57 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameInfoCollection > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameInfoCollection ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameInfoCollection > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameInfoCollection ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameInfoCollection { 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 ICoreWebView2FrameInfoCollection { 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 ICoreWebView2FrameInfoCollection_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 , iterator : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameInfoCollectionIterator ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameInfoCollectionIterator { pub unsafe fn get_HasCurrent < > ( & self , hascurrent : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( hascurrent ) , ) . ok ( ) } pub unsafe fn GetCurrent < > ( & self , ) -> :: windows :: Result < ICoreWebView2FrameInfo > { let mut result__ : < ICoreWebView2FrameInfo as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2FrameInfo > ( result__ ) } pub unsafe fn MoveNext < > ( & self , hasnext : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( hasnext ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameInfoCollectionIterator { type Vtable = ICoreWebView2FrameInfoCollectionIterator_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 469278253 ,6955 ,17961 , [ 178 ,143 ,5 ,9 ,155 ,65 ,187 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameInfoCollectionIterator > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameInfoCollectionIterator ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameInfoCollectionIterator > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameInfoCollectionIterator ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameInfoCollectionIterator { 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 ICoreWebView2FrameInfoCollectionIterator { 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 ICoreWebView2FrameInfoCollectionIterator_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 , hascurrent : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , frameinfo : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hasnext : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameNameChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameNameChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Frame > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameNameChangedEventHandler { type Vtable = ICoreWebView2FrameNameChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1130134984 ,39850 ,4587 , [ 168 ,179 ,2 ,66 ,172 ,19 ,0 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameNameChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameNameChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameNameChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameNameChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameNameChangedEventHandler { 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 ICoreWebView2FrameNameChangedEventHandler { 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 ICoreWebView2FrameNameChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2GetCookiesCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2GetCookiesCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , result : :: windows :: HRESULT , cookielist : impl :: windows :: IntoParam < 'a , ICoreWebView2CookieList > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( result ) , cookielist . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2GetCookiesCompletedHandler { type Vtable = ICoreWebView2GetCookiesCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1515147369 ,23573 ,18371 , [ 134 ,70 ,244 ,222 ,28 ,17 ,102 ,112 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2GetCookiesCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2GetCookiesCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2GetCookiesCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2GetCookiesCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2GetCookiesCompletedHandler { 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 ICoreWebView2GetCookiesCompletedHandler { 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 ICoreWebView2GetCookiesCompletedHandler_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 , result : :: windows :: HRESULT , cookielist : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2HistoryChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2HistoryChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2HistoryChangedEventHandler { type Vtable = ICoreWebView2HistoryChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3348775436 ,61401 ,16472 , [ 146 ,149 ,62 ,139 ,75 ,202 ,182 ,69 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2HistoryChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2HistoryChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2HistoryChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2HistoryChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2HistoryChangedEventHandler { 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 ICoreWebView2HistoryChangedEventHandler { 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 ICoreWebView2HistoryChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2HttpHeadersCollectionIterator ( :: windows :: IUnknown ) ; impl ICoreWebView2HttpHeadersCollectionIterator { pub unsafe fn GetCurrentHeader < > ( & self , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( name ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_HasCurrentHeader < > ( & self , hascurrent : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( hascurrent ) , ) . ok ( ) } pub unsafe fn MoveNext < > ( & self , hasnext : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( hasnext ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2HttpHeadersCollectionIterator { type Vtable = ICoreWebView2HttpHeadersCollectionIterator_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 117636144 ,62523 ,18363 , [ 171 ,82 ,164 ,44 ,181 ,82 ,173 ,159 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2HttpHeadersCollectionIterator > for :: windows :: IUnknown { fn from ( value : ICoreWebView2HttpHeadersCollectionIterator ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2HttpHeadersCollectionIterator > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2HttpHeadersCollectionIterator ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2HttpHeadersCollectionIterator { 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 ICoreWebView2HttpHeadersCollectionIterator { 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 ICoreWebView2HttpHeadersCollectionIterator_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 , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hascurrent : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hasnext : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2HttpRequestHeaders ( :: windows :: IUnknown ) ; impl ICoreWebView2HttpRequestHeaders { pub unsafe fn GetHeader < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn GetHeaders < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2HttpHeadersCollectionIterator > { let mut result__ : < ICoreWebView2HttpHeadersCollectionIterator as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpHeadersCollectionIterator > ( result__ ) } pub unsafe fn Contains < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , contains : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( contains ) , ) . ok ( ) } pub unsafe fn SetHeader < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn RemoveHeader < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetIterator < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpHeadersCollectionIterator > { let mut result__ : < ICoreWebView2HttpHeadersCollectionIterator as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpHeadersCollectionIterator > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2HttpRequestHeaders { type Vtable = ICoreWebView2HttpRequestHeaders_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3899436046 ,21795 ,18012 , [ 181 ,54 ,143 ,185 ,252 ,140 ,140 ,96 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2HttpRequestHeaders > for :: windows :: IUnknown { fn from ( value : ICoreWebView2HttpRequestHeaders ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2HttpRequestHeaders > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2HttpRequestHeaders ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2HttpRequestHeaders { 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 ICoreWebView2HttpRequestHeaders { 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 ICoreWebView2HttpRequestHeaders_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 , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , iterator : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , contains : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iterator : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2HttpResponseHeaders ( :: windows :: IUnknown ) ; impl ICoreWebView2HttpResponseHeaders { pub unsafe fn AppendHeader < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Contains < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , contains : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( contains ) , ) . ok ( ) } pub unsafe fn GetHeader < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn GetHeaders < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2HttpHeadersCollectionIterator > { let mut result__ : < ICoreWebView2HttpHeadersCollectionIterator as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpHeadersCollectionIterator > ( result__ ) } pub unsafe fn GetIterator < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpHeadersCollectionIterator > { let mut result__ : < ICoreWebView2HttpHeadersCollectionIterator as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpHeadersCollectionIterator > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2HttpResponseHeaders { type Vtable = ICoreWebView2HttpResponseHeaders_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 63307610 ,39749 ,19080 , [ 136 ,28 ,137 ,169 ,243 ,40 ,97 ,156 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2HttpResponseHeaders > for :: windows :: IUnknown { fn from ( value : ICoreWebView2HttpResponseHeaders ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2HttpResponseHeaders > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2HttpResponseHeaders ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2HttpResponseHeaders { 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 ICoreWebView2HttpResponseHeaders { 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 ICoreWebView2HttpResponseHeaders_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 , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , contains : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , iterator : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iterator : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Interop ( :: windows :: IUnknown ) ; impl ICoreWebView2Interop { pub unsafe fn AddHostObjectToScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Interop { type Vtable = ICoreWebView2Interop_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2435527847 ,53515 ,18884 , [ 175 ,24 ,124 ,183 ,230 ,4 ,224 ,26 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Interop > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Interop ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Interop > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Interop ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Interop { 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 ICoreWebView2Interop { 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 ICoreWebView2Interop_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 , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2MoveFocusRequestedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2MoveFocusRequestedEventArgs { pub unsafe fn get_Reason < > ( & self , reason : * mut COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reason ) , ) . ok ( ) } pub unsafe fn get_Handled < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_Handled < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2MoveFocusRequestedEventArgs { type Vtable = ICoreWebView2MoveFocusRequestedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 761962811 ,14393 ,18965 , [ 146 ,252 ,216 ,139 ,60 ,13 ,156 ,157 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2MoveFocusRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2MoveFocusRequestedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2MoveFocusRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2MoveFocusRequestedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2MoveFocusRequestedEventArgs { 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 ICoreWebView2MoveFocusRequestedEventArgs { 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 ICoreWebView2MoveFocusRequestedEventArgs_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 , reason : * mut COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2MoveFocusRequestedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2MoveFocusRequestedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2MoveFocusRequestedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2MoveFocusRequestedEventHandler { type Vtable = ICoreWebView2MoveFocusRequestedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1761825873 ,28103 ,19640 , [ 155 ,206 ,178 ,189 ,112 ,173 ,40 ,159 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2MoveFocusRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2MoveFocusRequestedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2MoveFocusRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2MoveFocusRequestedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2MoveFocusRequestedEventHandler { 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 ICoreWebView2MoveFocusRequestedEventHandler { 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 ICoreWebView2MoveFocusRequestedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NavigationCompletedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2NavigationCompletedEventArgs { pub unsafe fn get_IsSuccess < > ( & self , issuccess : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( issuccess ) , ) . ok ( ) } pub unsafe fn get_WebErrorStatus < > ( & self , weberrorstatus : * mut COREWEBVIEW2_WEB_ERROR_STATUS , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( weberrorstatus ) , ) . ok ( ) } pub unsafe fn get_NavigationId < > ( & self , navigationid : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( navigationid ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NavigationCompletedEventArgs { type Vtable = ICoreWebView2NavigationCompletedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 819366781 ,8409 ,18258 , [ 169 ,202 ,236 ,132 ,72 ,251 ,181 ,193 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NavigationCompletedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NavigationCompletedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NavigationCompletedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NavigationCompletedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NavigationCompletedEventArgs { 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 ICoreWebView2NavigationCompletedEventArgs { 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 ICoreWebView2NavigationCompletedEventArgs_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 , issuccess : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , weberrorstatus : * mut COREWEBVIEW2_WEB_ERROR_STATUS , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , navigationid : * mut u64 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NavigationCompletedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2NavigationCompletedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NavigationCompletedEventHandler { type Vtable = ICoreWebView2NavigationCompletedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3543807423 ,7241 ,20376 , [ 147 ,171 ,0 ,110 ,5 ,51 ,254 ,28 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NavigationCompletedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NavigationCompletedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NavigationCompletedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NavigationCompletedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NavigationCompletedEventHandler { 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 ICoreWebView2NavigationCompletedEventHandler { 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 ICoreWebView2NavigationCompletedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NavigationStartingEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2NavigationStartingEventArgs { pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn get_IsUserInitiated < > ( & self , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isuserinitiated ) , ) . ok ( ) } pub unsafe fn get_IsRedirected < > ( & self , isredirected : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isredirected ) , ) . ok ( ) } pub unsafe fn get_RequestHeaders < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpRequestHeaders > { let mut result__ : < ICoreWebView2HttpRequestHeaders as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpRequestHeaders > ( result__ ) } pub unsafe fn get_Cancel < > ( & self , cancel : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cancel ) , ) . ok ( ) } pub unsafe fn put_Cancel < 'a , > ( & self , cancel : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , cancel . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_NavigationId < > ( & self , navigationid : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( navigationid ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NavigationStartingEventArgs { type Vtable = ICoreWebView2NavigationStartingEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1531532393 ,57625 ,17290 , [ 155 ,24 ,118 ,4 ,242 ,95 ,46 ,73 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NavigationStartingEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NavigationStartingEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NavigationStartingEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NavigationStartingEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NavigationStartingEventArgs { 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 ICoreWebView2NavigationStartingEventArgs { 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 ICoreWebView2NavigationStartingEventArgs_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 , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isredirected : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , requestheaders : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cancel : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cancel : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , navigationid : * mut u64 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NavigationStartingEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2NavigationStartingEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NavigationStartingEventHandler { type Vtable = ICoreWebView2NavigationStartingEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2598102057 ,62317 ,17195 , [ 157 ,220 ,248 ,136 ,31 ,189 ,118 ,227 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NavigationStartingEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NavigationStartingEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NavigationStartingEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NavigationStartingEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NavigationStartingEventHandler { 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 ICoreWebView2NavigationStartingEventHandler { 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 ICoreWebView2NavigationStartingEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NewBrowserVersionAvailableEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2NewBrowserVersionAvailableEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Environment > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NewBrowserVersionAvailableEventHandler { type Vtable = ICoreWebView2NewBrowserVersionAvailableEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4188182382 ,54094 ,17660 , [ 173 ,238 ,129 ,182 ,181 ,124 ,169 ,20 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NewBrowserVersionAvailableEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NewBrowserVersionAvailableEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NewBrowserVersionAvailableEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NewBrowserVersionAvailableEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NewBrowserVersionAvailableEventHandler { 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 ICoreWebView2NewBrowserVersionAvailableEventHandler { 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 ICoreWebView2NewBrowserVersionAvailableEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NewWindowRequestedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2NewWindowRequestedEventArgs { pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn put_NewWindow < 'a , > ( & self , newwindow : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , newwindow . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_NewWindow < > ( & self , ) -> :: windows :: Result < ICoreWebView2 > { let mut result__ : < ICoreWebView2 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2 > ( result__ ) } pub unsafe fn put_Handled < 'a , > ( & self , handled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , handled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Handled < > ( & self , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( handled ) , ) . ok ( ) } pub unsafe fn get_IsUserInitiated < > ( & self , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isuserinitiated ) , ) . ok ( ) } pub unsafe fn GetDeferral < > ( & self , ) -> :: windows :: Result < ICoreWebView2Deferral > { let mut result__ : < ICoreWebView2Deferral as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Deferral > ( result__ ) } pub unsafe fn get_WindowFeatures < > ( & self , ) -> :: windows :: Result < ICoreWebView2WindowFeatures > { let mut result__ : < ICoreWebView2WindowFeatures as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2WindowFeatures > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2NewWindowRequestedEventArgs { type Vtable = ICoreWebView2NewWindowRequestedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 883732764 ,64567 ,17432 , [ 145 ,50 ,249 ,194 ,29 ,30 ,175 ,185 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NewWindowRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NewWindowRequestedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NewWindowRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NewWindowRequestedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NewWindowRequestedEventArgs { 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 ICoreWebView2NewWindowRequestedEventArgs { 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 ICoreWebView2NewWindowRequestedEventArgs_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 , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , newwindow : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , newwindow : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , deferral : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NewWindowRequestedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2NewWindowRequestedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2NewWindowRequestedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NewWindowRequestedEventHandler { type Vtable = ICoreWebView2NewWindowRequestedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3569452542 ,51228 ,18825 , [ 151 ,175 ,45 ,63 ,167 ,171 ,86 ,81 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NewWindowRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NewWindowRequestedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NewWindowRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NewWindowRequestedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NewWindowRequestedEventHandler { 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 ICoreWebView2NewWindowRequestedEventHandler { 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 ICoreWebView2NewWindowRequestedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2PermissionRequestedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2PermissionRequestedEventArgs { pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn get_PermissionKind < > ( & self , permissionkind : * mut COREWEBVIEW2_PERMISSION_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( permissionkind ) , ) . ok ( ) } pub unsafe fn get_IsUserInitiated < > ( & self , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isuserinitiated ) , ) . ok ( ) } pub unsafe fn get_State < > ( & self , state : * mut COREWEBVIEW2_PERMISSION_STATE , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( state ) , ) . ok ( ) } pub unsafe fn put_State < > ( & self , state : COREWEBVIEW2_PERMISSION_STATE , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( state ) , ) . ok ( ) } pub unsafe fn GetDeferral < > ( & self , ) -> :: windows :: Result < ICoreWebView2Deferral > { let mut result__ : < ICoreWebView2Deferral as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Deferral > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2PermissionRequestedEventArgs { type Vtable = ICoreWebView2PermissionRequestedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2537218799 ,65304 ,18580 , [ 143 ,178 ,60 ,117 ,143 ,4 ,104 ,16 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2PermissionRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2PermissionRequestedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2PermissionRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2PermissionRequestedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2PermissionRequestedEventArgs { 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 ICoreWebView2PermissionRequestedEventArgs { 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 ICoreWebView2PermissionRequestedEventArgs_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 , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , permissionkind : * mut COREWEBVIEW2_PERMISSION_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , state : * mut COREWEBVIEW2_PERMISSION_STATE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , state : COREWEBVIEW2_PERMISSION_STATE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , deferral : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2PermissionRequestedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2PermissionRequestedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2PermissionRequestedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2PermissionRequestedEventHandler { type Vtable = ICoreWebView2PermissionRequestedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 367117987 ,50986 ,19955 , [ 145 ,215 ,208 ,151 ,251 ,236 ,107 ,253 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2PermissionRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2PermissionRequestedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2PermissionRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2PermissionRequestedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2PermissionRequestedEventHandler { 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 ICoreWebView2PermissionRequestedEventHandler { 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 ICoreWebView2PermissionRequestedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2PointerInfo ( :: windows :: IUnknown ) ; impl ICoreWebView2PointerInfo { pub unsafe fn get_PointerKind < > ( & self , pointerkind : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerkind ) , ) . ok ( ) } pub unsafe fn put_PointerKind < > ( & self , pointerkind : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerkind ) , ) . ok ( ) } pub unsafe fn get_PointerId < > ( & self , pointerid : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerid ) , ) . ok ( ) } pub unsafe fn put_PointerId < > ( & self , pointerid : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerid ) , ) . ok ( ) } pub unsafe fn get_FrameId < > ( & self , frameid : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( frameid ) , ) . ok ( ) } pub unsafe fn put_FrameId < > ( & self , frameid : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( frameid ) , ) . ok ( ) } pub unsafe fn get_PointerFlags < > ( & self , pointerflags : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerflags ) , ) . ok ( ) } pub unsafe fn put_PointerFlags < > ( & self , pointerflags : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerflags ) , ) . ok ( ) } pub unsafe fn get_PointerDeviceRect < > ( & self , pointerdevicerect : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerdevicerect ) , ) . ok ( ) } pub unsafe fn put_PointerDeviceRect < 'a , > ( & self , pointerdevicerect : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , pointerdevicerect . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_DisplayRect < > ( & self , displayrect : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( displayrect ) , ) . ok ( ) } pub unsafe fn put_DisplayRect < 'a , > ( & self , displayrect : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , displayrect . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_PixelLocation < > ( & self , pixellocation : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pixellocation ) , ) . ok ( ) } pub unsafe fn put_PixelLocation < 'a , > ( & self , pixellocation : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , pixellocation . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_HimetricLocation < > ( & self , himetriclocation : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( himetriclocation ) , ) . ok ( ) } pub unsafe fn put_HimetricLocation < 'a , > ( & self , himetriclocation : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , himetriclocation . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_PixelLocationRaw < > ( & self , pixellocationraw : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pixellocationraw ) , ) . ok ( ) } pub unsafe fn put_PixelLocationRaw < 'a , > ( & self , pixellocationraw : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , pixellocationraw . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_HimetricLocationRaw < > ( & self , himetriclocationraw : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( himetriclocationraw ) , ) . ok ( ) } pub unsafe fn put_HimetricLocationRaw < 'a , > ( & self , himetriclocationraw : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , himetriclocationraw . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Time < > ( & self , time : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( time ) , ) . ok ( ) } pub unsafe fn put_Time < > ( & self , time : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( time ) , ) . ok ( ) } pub unsafe fn get_HistoryCount < > ( & self , historycount : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( historycount ) , ) . ok ( ) } pub unsafe fn put_HistoryCount < > ( & self , historycount : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( historycount ) , ) . ok ( ) } pub unsafe fn get_InputData < > ( & self , inputdata : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( inputdata ) , ) . ok ( ) } pub unsafe fn put_InputData < > ( & self , inputdata : i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( inputdata ) , ) . ok ( ) } pub unsafe fn get_KeyStates < > ( & self , keystates : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( keystates ) , ) . ok ( ) } pub unsafe fn put_KeyStates < > ( & self , keystates : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( keystates ) , ) . ok ( ) } pub unsafe fn get_PerformanceCount < > ( & self , performancecount : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( performancecount ) , ) . ok ( ) } pub unsafe fn put_PerformanceCount < > ( & self , performancecount : u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( performancecount ) , ) . ok ( ) } pub unsafe fn get_ButtonChangeKind < > ( & self , buttonchangekind : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( buttonchangekind ) , ) . ok ( ) } pub unsafe fn put_ButtonChangeKind < > ( & self , buttonchangekind : i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( buttonchangekind ) , ) . ok ( ) } pub unsafe fn get_PenFlags < > ( & self , penflags : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penflags ) , ) . ok ( ) } pub unsafe fn put_PenFlags < > ( & self , penflags : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penflags ) , ) . ok ( ) } pub unsafe fn get_PenMask < > ( & self , penmask : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penmask ) , ) . ok ( ) } pub unsafe fn put_PenMask < > ( & self , penmask : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penmask ) , ) . ok ( ) } pub unsafe fn get_PenPressure < > ( & self , penpressure : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penpressure ) , ) . ok ( ) } pub unsafe fn put_PenPressure < > ( & self , penpressure : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penpressure ) , ) . ok ( ) } pub unsafe fn get_PenRotation < > ( & self , penrotation : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penrotation ) , ) . ok ( ) } pub unsafe fn put_PenRotation < > ( & self , penrotation : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penrotation ) , ) . ok ( ) } pub unsafe fn get_PenTiltX < > ( & self , pentiltx : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pentiltx ) , ) . ok ( ) } pub unsafe fn put_PenTiltX < > ( & self , pentiltx : i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pentiltx ) , ) . ok ( ) } pub unsafe fn get_PenTiltY < > ( & self , pentilty : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pentilty ) , ) . ok ( ) } pub unsafe fn put_PenTiltY < > ( & self , pentilty : i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pentilty ) , ) . ok ( ) } pub unsafe fn get_TouchFlags < > ( & self , touchflags : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchflags ) , ) . ok ( ) } pub unsafe fn put_TouchFlags < > ( & self , touchflags : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchflags ) , ) . ok ( ) } pub unsafe fn get_TouchMask < > ( & self , touchmask : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchmask ) , ) . ok ( ) } pub unsafe fn put_TouchMask < > ( & self , touchmask : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchmask ) , ) . ok ( ) } pub unsafe fn get_TouchContact < > ( & self , touchcontact : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchcontact ) , ) . ok ( ) } pub unsafe fn put_TouchContact < 'a , > ( & self , touchcontact : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , touchcontact . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_TouchContactRaw < > ( & self , touchcontactraw : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchcontactraw ) , ) . ok ( ) } pub unsafe fn put_TouchContactRaw < 'a , > ( & self , touchcontactraw : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , touchcontactraw . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_TouchOrientation < > ( & self , touchorientation : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchorientation ) , ) . ok ( ) } pub unsafe fn put_TouchOrientation < > ( & self , touchorientation : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchorientation ) , ) . ok ( ) } pub unsafe fn get_TouchPressure < > ( & self , touchpressure : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchpressure ) , ) . ok ( ) } pub unsafe fn put_TouchPressure < > ( & self , touchpressure : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchpressure ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2PointerInfo { type Vtable = ICoreWebView2PointerInfo_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3868809351 ,53517 ,20317 , [ 147 ,89 ,76 ,228 ,110 ,79 ,150 ,185 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2PointerInfo > for :: windows :: IUnknown { fn from ( value : ICoreWebView2PointerInfo ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2PointerInfo > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2PointerInfo ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2PointerInfo { 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 ICoreWebView2PointerInfo { 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 ICoreWebView2PointerInfo_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 , pointerkind : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerkind : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerid : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerid : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , frameid : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , frameid : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerflags : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerflags : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerdevicerect : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerdevicerect : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , displayrect : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , displayrect : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixellocation : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixellocation : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , himetriclocation : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , himetriclocation : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixellocationraw : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixellocationraw : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , himetriclocationraw : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , himetriclocationraw : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , time : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , time : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , historycount : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , historycount : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , inputdata : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , inputdata : i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , keystates : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , keystates : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , performancecount : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , performancecount : u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , buttonchangekind : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , buttonchangekind : i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penflags : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penflags : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penmask : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penmask : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penpressure : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penpressure : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penrotation : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penrotation : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pentiltx : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pentiltx : i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pentilty : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pentilty : i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchflags : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchflags : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchmask : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchmask : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchcontact : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchcontact : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchcontactraw : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchcontactraw : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchorientation : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchorientation : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchpressure : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchpressure : u32 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ProcessFailedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2ProcessFailedEventArgs { pub unsafe fn get_ProcessFailedKind < > ( & self , processfailedkind : * mut COREWEBVIEW2_PROCESS_FAILED_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( processfailedkind ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ProcessFailedEventArgs { type Vtable = ICoreWebView2ProcessFailedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2169874852 ,5236 ,19078 , [ 140 ,174 ,21 ,27 ,15 ,166 ,184 ,202 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ProcessFailedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ProcessFailedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ProcessFailedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ProcessFailedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ProcessFailedEventArgs { 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 ICoreWebView2ProcessFailedEventArgs { 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 ICoreWebView2ProcessFailedEventArgs_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 , processfailedkind : * mut COREWEBVIEW2_PROCESS_FAILED_KIND , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ProcessFailedEventArgs2 ( :: windows :: IUnknown ) ; impl ICoreWebView2ProcessFailedEventArgs2 { pub unsafe fn get_ProcessFailedKind < > ( & self , processfailedkind : * mut COREWEBVIEW2_PROCESS_FAILED_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( processfailedkind ) , ) . ok ( ) } pub unsafe fn get_Reason < > ( & self , reason : * mut COREWEBVIEW2_PROCESS_FAILED_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reason ) , ) . ok ( ) } pub unsafe fn get_ExitCode < > ( & self , exitcode : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( exitcode ) , ) . ok ( ) } pub unsafe fn get_ProcessDescription < > ( & self , processdescription : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( processdescription ) , ) . ok ( ) } pub unsafe fn get_FrameInfosForFailedProcess < > ( & self , ) -> :: windows :: Result < ICoreWebView2FrameInfoCollection > { let mut result__ : < ICoreWebView2FrameInfoCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2FrameInfoCollection > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2ProcessFailedEventArgs2 { type Vtable = ICoreWebView2ProcessFailedEventArgs2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1303090210 ,18170 ,19518 , [ 165 ,210 ,65 ,210 ,7 ,29 ,54 ,128 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ProcessFailedEventArgs2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ProcessFailedEventArgs2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ProcessFailedEventArgs2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ProcessFailedEventArgs2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ProcessFailedEventArgs2 { 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 ICoreWebView2ProcessFailedEventArgs2 { 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 < ICoreWebView2ProcessFailedEventArgs2 > for ICoreWebView2ProcessFailedEventArgs { fn from ( value : ICoreWebView2ProcessFailedEventArgs2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ProcessFailedEventArgs2 > for ICoreWebView2ProcessFailedEventArgs { fn from ( value : & ICoreWebView2ProcessFailedEventArgs2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventArgs > for ICoreWebView2ProcessFailedEventArgs2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2ProcessFailedEventArgs > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2ProcessFailedEventArgs > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventArgs > for & 'a ICoreWebView2ProcessFailedEventArgs2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2ProcessFailedEventArgs > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2ProcessFailedEventArgs > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2ProcessFailedEventArgs2_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 , processfailedkind : * mut COREWEBVIEW2_PROCESS_FAILED_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reason : * mut COREWEBVIEW2_PROCESS_FAILED_REASON , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , exitcode : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , processdescription : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , frames : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ProcessFailedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ProcessFailedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ProcessFailedEventHandler { type Vtable = ICoreWebView2ProcessFailedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2044767908 ,39179 ,17113 , [ 170 ,29 ,15 ,204 ,46 ,91 ,199 ,241 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ProcessFailedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ProcessFailedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ProcessFailedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ProcessFailedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ProcessFailedEventHandler { 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 ICoreWebView2ProcessFailedEventHandler { 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 ICoreWebView2ProcessFailedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2RasterizationScaleChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2RasterizationScaleChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2RasterizationScaleChangedEventHandler { type Vtable = ICoreWebView2RasterizationScaleChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2627258545 ,44115 ,17022 , [ 163 ,69 ,48 ,73 ,181 ,82 ,75 ,190 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2RasterizationScaleChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2RasterizationScaleChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2RasterizationScaleChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2RasterizationScaleChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2RasterizationScaleChangedEventHandler { 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 ICoreWebView2RasterizationScaleChangedEventHandler { 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 ICoreWebView2RasterizationScaleChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ScriptDialogOpeningEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2ScriptDialogOpeningEventArgs { pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn get_Kind < > ( & self , kind : * mut COREWEBVIEW2_SCRIPT_DIALOG_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( kind ) , ) . ok ( ) } pub unsafe fn get_Message < > ( & self , message : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( message ) , ) . ok ( ) } pub unsafe fn Accept < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_DefaultText < > ( & self , defaulttext : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( defaulttext ) , ) . ok ( ) } pub unsafe fn get_ResultText < > ( & self , resulttext : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( resulttext ) , ) . ok ( ) } pub unsafe fn put_ResultText < 'a , > ( & self , resulttext : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , resulttext . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetDeferral < > ( & self , ) -> :: windows :: Result < ICoreWebView2Deferral > { let mut result__ : < ICoreWebView2Deferral as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Deferral > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2ScriptDialogOpeningEventArgs { type Vtable = ICoreWebView2ScriptDialogOpeningEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1938865008 ,44000 ,18499 , [ 149 ,41 ,241 ,67 ,179 ,27 ,3 ,214 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ScriptDialogOpeningEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ScriptDialogOpeningEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ScriptDialogOpeningEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ScriptDialogOpeningEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ScriptDialogOpeningEventArgs { 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 ICoreWebView2ScriptDialogOpeningEventArgs { 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 ICoreWebView2ScriptDialogOpeningEventArgs_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 , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , kind : * mut COREWEBVIEW2_SCRIPT_DIALOG_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , message : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , defaulttext : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , resulttext : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , resulttext : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , deferral : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ScriptDialogOpeningEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ScriptDialogOpeningEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2ScriptDialogOpeningEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ScriptDialogOpeningEventHandler { type Vtable = ICoreWebView2ScriptDialogOpeningEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4013431801 ,44968 ,20023 , [ 145 ,196 ,138 ,196 ,133 ,36 ,189 ,251 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ScriptDialogOpeningEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ScriptDialogOpeningEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ScriptDialogOpeningEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ScriptDialogOpeningEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ScriptDialogOpeningEventHandler { 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 ICoreWebView2ScriptDialogOpeningEventHandler { 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 ICoreWebView2ScriptDialogOpeningEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Settings ( :: windows :: IUnknown ) ; impl ICoreWebView2Settings { pub unsafe fn get_IsScriptEnabled < > ( & self , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isscriptenabled ) , ) . ok ( ) } pub unsafe fn put_IsScriptEnabled < 'a , > ( & self , isscriptenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isscriptenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsWebMessageEnabled < > ( & self , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iswebmessageenabled ) , ) . ok ( ) } pub unsafe fn put_IsWebMessageEnabled < 'a , > ( & self , iswebmessageenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , iswebmessageenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultScriptDialogsEnabled < > ( & self , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredefaultscriptdialogsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultScriptDialogsEnabled < 'a , > ( & self , aredefaultscriptdialogsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , aredefaultscriptdialogsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsStatusBarEnabled < > ( & self , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isstatusbarenabled ) , ) . ok ( ) } pub unsafe fn put_IsStatusBarEnabled < 'a , > ( & self , isstatusbarenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , isstatusbarenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDevToolsEnabled < > ( & self , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredevtoolsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDevToolsEnabled < 'a , > ( & self , aredevtoolsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , aredevtoolsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultContextMenusEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultContextMenusEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreHostObjectsAllowed < > ( & self , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allowed ) , ) . ok ( ) } pub unsafe fn put_AreHostObjectsAllowed < 'a , > ( & self , allowed : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , allowed . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsZoomControlEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsZoomControlEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsBuiltInErrorPageEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsBuiltInErrorPageEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Settings { type Vtable = ICoreWebView2Settings_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3848463600 ,55290 ,17324 , [ 141 ,113 ,192 ,81 ,80 ,73 ,159 ,0 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Settings > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Settings ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Settings ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Settings { 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 ICoreWebView2Settings { 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 ICoreWebView2Settings_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 , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isscriptenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Settings2 ( :: windows :: IUnknown ) ; impl ICoreWebView2Settings2 { pub unsafe fn get_IsScriptEnabled < > ( & self , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isscriptenabled ) , ) . ok ( ) } pub unsafe fn put_IsScriptEnabled < 'a , > ( & self , isscriptenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isscriptenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsWebMessageEnabled < > ( & self , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iswebmessageenabled ) , ) . ok ( ) } pub unsafe fn put_IsWebMessageEnabled < 'a , > ( & self , iswebmessageenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , iswebmessageenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultScriptDialogsEnabled < > ( & self , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredefaultscriptdialogsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultScriptDialogsEnabled < 'a , > ( & self , aredefaultscriptdialogsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , aredefaultscriptdialogsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsStatusBarEnabled < > ( & self , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isstatusbarenabled ) , ) . ok ( ) } pub unsafe fn put_IsStatusBarEnabled < 'a , > ( & self , isstatusbarenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , isstatusbarenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDevToolsEnabled < > ( & self , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredevtoolsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDevToolsEnabled < 'a , > ( & self , aredevtoolsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , aredevtoolsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultContextMenusEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultContextMenusEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreHostObjectsAllowed < > ( & self , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allowed ) , ) . ok ( ) } pub unsafe fn put_AreHostObjectsAllowed < 'a , > ( & self , allowed : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , allowed . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsZoomControlEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsZoomControlEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsBuiltInErrorPageEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsBuiltInErrorPageEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_UserAgent < > ( & self , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( useragent ) , ) . ok ( ) } pub unsafe fn put_UserAgent < 'a , > ( & self , useragent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , useragent . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Settings2 { type Vtable = ICoreWebView2Settings2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4003073896 ,62572 ,20018 , [ 172 ,35 ,239 ,140 ,172 ,34 ,77 ,42 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Settings2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Settings2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Settings2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Settings2 { 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 ICoreWebView2Settings2 { 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 < ICoreWebView2Settings2 > for ICoreWebView2Settings { fn from ( value : ICoreWebView2Settings2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings2 > for ICoreWebView2Settings { fn from ( value : & ICoreWebView2Settings2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for ICoreWebView2Settings2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for & 'a ICoreWebView2Settings2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Settings2_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 , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isscriptenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Settings3 ( :: windows :: IUnknown ) ; impl ICoreWebView2Settings3 { pub unsafe fn get_IsScriptEnabled < > ( & self , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isscriptenabled ) , ) . ok ( ) } pub unsafe fn put_IsScriptEnabled < 'a , > ( & self , isscriptenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isscriptenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsWebMessageEnabled < > ( & self , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iswebmessageenabled ) , ) . ok ( ) } pub unsafe fn put_IsWebMessageEnabled < 'a , > ( & self , iswebmessageenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , iswebmessageenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultScriptDialogsEnabled < > ( & self , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredefaultscriptdialogsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultScriptDialogsEnabled < 'a , > ( & self , aredefaultscriptdialogsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , aredefaultscriptdialogsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsStatusBarEnabled < > ( & self , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isstatusbarenabled ) , ) . ok ( ) } pub unsafe fn put_IsStatusBarEnabled < 'a , > ( & self , isstatusbarenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , isstatusbarenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDevToolsEnabled < > ( & self , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredevtoolsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDevToolsEnabled < 'a , > ( & self , aredevtoolsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , aredevtoolsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultContextMenusEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultContextMenusEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreHostObjectsAllowed < > ( & self , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allowed ) , ) . ok ( ) } pub unsafe fn put_AreHostObjectsAllowed < 'a , > ( & self , allowed : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , allowed . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsZoomControlEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsZoomControlEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsBuiltInErrorPageEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsBuiltInErrorPageEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_UserAgent < > ( & self , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( useragent ) , ) . ok ( ) } pub unsafe fn put_UserAgent < 'a , > ( & self , useragent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , useragent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreBrowserAcceleratorKeysEnabled < > ( & self , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( arebrowseracceleratorkeysenabled ) , ) . ok ( ) } pub unsafe fn put_AreBrowserAcceleratorKeysEnabled < 'a , > ( & self , arebrowseracceleratorkeysenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , arebrowseracceleratorkeysenabled . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Settings3 { type Vtable = ICoreWebView2Settings3_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4256541556 ,44851 ,18516 , [ 132 ,240 ,10 ,99 ,29 ,235 ,94 ,186 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Settings3 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Settings3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings3 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Settings3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Settings3 { 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 ICoreWebView2Settings3 { 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 < ICoreWebView2Settings3 > for ICoreWebView2Settings2 { fn from ( value : ICoreWebView2Settings3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings3 > for ICoreWebView2Settings2 { fn from ( value : & ICoreWebView2Settings3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for ICoreWebView2Settings3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for & 'a ICoreWebView2Settings3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings3 > for ICoreWebView2Settings { fn from ( value : ICoreWebView2Settings3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings3 > for ICoreWebView2Settings { fn from ( value : & ICoreWebView2Settings3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for ICoreWebView2Settings3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for & 'a ICoreWebView2Settings3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Settings3_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 , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isscriptenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Settings4 ( :: windows :: IUnknown ) ; impl ICoreWebView2Settings4 { pub unsafe fn get_IsScriptEnabled < > ( & self , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isscriptenabled ) , ) . ok ( ) } pub unsafe fn put_IsScriptEnabled < 'a , > ( & self , isscriptenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isscriptenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsWebMessageEnabled < > ( & self , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iswebmessageenabled ) , ) . ok ( ) } pub unsafe fn put_IsWebMessageEnabled < 'a , > ( & self , iswebmessageenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , iswebmessageenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultScriptDialogsEnabled < > ( & self , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredefaultscriptdialogsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultScriptDialogsEnabled < 'a , > ( & self , aredefaultscriptdialogsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , aredefaultscriptdialogsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsStatusBarEnabled < > ( & self , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isstatusbarenabled ) , ) . ok ( ) } pub unsafe fn put_IsStatusBarEnabled < 'a , > ( & self , isstatusbarenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , isstatusbarenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDevToolsEnabled < > ( & self , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredevtoolsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDevToolsEnabled < 'a , > ( & self , aredevtoolsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , aredevtoolsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultContextMenusEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultContextMenusEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreHostObjectsAllowed < > ( & self , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allowed ) , ) . ok ( ) } pub unsafe fn put_AreHostObjectsAllowed < 'a , > ( & self , allowed : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , allowed . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsZoomControlEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsZoomControlEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsBuiltInErrorPageEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsBuiltInErrorPageEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_UserAgent < > ( & self , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( useragent ) , ) . ok ( ) } pub unsafe fn put_UserAgent < 'a , > ( & self , useragent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , useragent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreBrowserAcceleratorKeysEnabled < > ( & self , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( arebrowseracceleratorkeysenabled ) , ) . ok ( ) } pub unsafe fn put_AreBrowserAcceleratorKeysEnabled < 'a , > ( & self , arebrowseracceleratorkeysenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , arebrowseracceleratorkeysenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsPasswordAutosaveEnabled < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_IsPasswordAutosaveEnabled < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsGeneralAutofillEnabled < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_IsGeneralAutofillEnabled < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Settings4 { type Vtable = ICoreWebView2Settings4_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3411444844 ,16744 ,19795 , [ 176 ,79 ,3 ,182 ,214 ,121 ,111 ,242 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Settings4 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Settings4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings4 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Settings4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Settings4 { 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 ICoreWebView2Settings4 { 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 < ICoreWebView2Settings4 > for ICoreWebView2Settings3 { fn from ( value : ICoreWebView2Settings4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings4 > for ICoreWebView2Settings3 { fn from ( value : & ICoreWebView2Settings4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings3 > for ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings3 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings3 > for & 'a ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings3 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings4 > for ICoreWebView2Settings2 { fn from ( value : ICoreWebView2Settings4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings4 > for ICoreWebView2Settings2 { fn from ( value : & ICoreWebView2Settings4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for & 'a ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings4 > for ICoreWebView2Settings { fn from ( value : ICoreWebView2Settings4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings4 > for ICoreWebView2Settings { fn from ( value : & ICoreWebView2Settings4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for & 'a ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Settings4_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 , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isscriptenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Settings5 ( :: windows :: IUnknown ) ; impl ICoreWebView2Settings5 { pub unsafe fn get_IsScriptEnabled < > ( & self , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isscriptenabled ) , ) . ok ( ) } pub unsafe fn put_IsScriptEnabled < 'a , > ( & self , isscriptenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isscriptenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsWebMessageEnabled < > ( & self , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iswebmessageenabled ) , ) . ok ( ) } pub unsafe fn put_IsWebMessageEnabled < 'a , > ( & self , iswebmessageenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , iswebmessageenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultScriptDialogsEnabled < > ( & self , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredefaultscriptdialogsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultScriptDialogsEnabled < 'a , > ( & self , aredefaultscriptdialogsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , aredefaultscriptdialogsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsStatusBarEnabled < > ( & self , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isstatusbarenabled ) , ) . ok ( ) } pub unsafe fn put_IsStatusBarEnabled < 'a , > ( & self , isstatusbarenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , isstatusbarenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDevToolsEnabled < > ( & self , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredevtoolsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDevToolsEnabled < 'a , > ( & self , aredevtoolsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , aredevtoolsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultContextMenusEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultContextMenusEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreHostObjectsAllowed < > ( & self , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allowed ) , ) . ok ( ) } pub unsafe fn put_AreHostObjectsAllowed < 'a , > ( & self , allowed : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , allowed . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsZoomControlEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsZoomControlEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsBuiltInErrorPageEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsBuiltInErrorPageEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_UserAgent < > ( & self , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( useragent ) , ) . ok ( ) } pub unsafe fn put_UserAgent < 'a , > ( & self , useragent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , useragent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreBrowserAcceleratorKeysEnabled < > ( & self , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( arebrowseracceleratorkeysenabled ) , ) . ok ( ) } pub unsafe fn put_AreBrowserAcceleratorKeysEnabled < 'a , > ( & self , arebrowseracceleratorkeysenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , arebrowseracceleratorkeysenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsPasswordAutosaveEnabled < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_IsPasswordAutosaveEnabled < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsGeneralAutofillEnabled < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_IsGeneralAutofillEnabled < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsPinchZoomEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsPinchZoomEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Settings5 { type Vtable = ICoreWebView2Settings5_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 406745170 ,7427 ,17312 , [ 171 ,153 ,152 ,224 ,67 ,182 ,107 ,57 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Settings5 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Settings5 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings5 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Settings5 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Settings5 { 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 ICoreWebView2Settings5 { 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 < ICoreWebView2Settings5 > for ICoreWebView2Settings4 { fn from ( value : ICoreWebView2Settings5 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings5 > for ICoreWebView2Settings4 { fn from ( value : & ICoreWebView2Settings5 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings4 > for ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings4 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings4 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings4 > for & 'a ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings4 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings4 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings5 > for ICoreWebView2Settings3 { fn from ( value : ICoreWebView2Settings5 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings5 > for ICoreWebView2Settings3 { fn from ( value : & ICoreWebView2Settings5 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings3 > for ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings3 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings3 > for & 'a ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings3 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings5 > for ICoreWebView2Settings2 { fn from ( value : ICoreWebView2Settings5 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings5 > for ICoreWebView2Settings2 { fn from ( value : & ICoreWebView2Settings5 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for & 'a ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings5 > for ICoreWebView2Settings { fn from ( value : ICoreWebView2Settings5 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings5 > for ICoreWebView2Settings { fn from ( value : & ICoreWebView2Settings5 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for & 'a ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Settings5_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 , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isscriptenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2SourceChangedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2SourceChangedEventArgs { pub unsafe fn get_IsNewDocument < > ( & self , isnewdocument : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isnewdocument ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2SourceChangedEventArgs { type Vtable = ICoreWebView2SourceChangedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 836822341 ,7610 ,16998 , [ 137 ,20 ,246 ,56 ,72 ,161 ,247 ,215 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2SourceChangedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2SourceChangedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2SourceChangedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2SourceChangedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2SourceChangedEventArgs { 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 ICoreWebView2SourceChangedEventArgs { 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 ICoreWebView2SourceChangedEventArgs_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 , isnewdocument : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2SourceChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2SourceChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2SourceChangedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2SourceChangedEventHandler { type Vtable = ICoreWebView2SourceChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1007058847 ,21384 ,18290 , [ 139 ,72 ,121 ,247 ,239 ,26 ,179 ,124 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2SourceChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2SourceChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2SourceChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2SourceChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2SourceChangedEventHandler { 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 ICoreWebView2SourceChangedEventHandler { 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 ICoreWebView2SourceChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2StateChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2StateChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2DownloadOperation > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2StateChangedEventHandler { type Vtable = ICoreWebView2StateChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2167629204 ,32478 ,19369 , [ 191 ,113 ,172 ,240 ,169 ,91 ,88 ,221 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2StateChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2StateChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2StateChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2StateChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2StateChangedEventHandler { 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 ICoreWebView2StateChangedEventHandler { 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 ICoreWebView2StateChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2TrySuspendCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2TrySuspendCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , issuccessful : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , issuccessful . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2TrySuspendCompletedHandler { type Vtable = ICoreWebView2TrySuspendCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 15861415 ,40215 ,17925 , [ 145 ,246 ,78 ,142 ,77 ,225 ,146 ,227 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2TrySuspendCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2TrySuspendCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2TrySuspendCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2TrySuspendCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2TrySuspendCompletedHandler { 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 ICoreWebView2TrySuspendCompletedHandler { 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 ICoreWebView2TrySuspendCompletedHandler_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 , errorcode : :: windows :: HRESULT , issuccessful : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebMessageReceivedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2WebMessageReceivedEventArgs { pub unsafe fn get_Source < > ( & self , source : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( source ) , ) . ok ( ) } pub unsafe fn get_WebMessageAsJson < > ( & self , webmessageasjson : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( webmessageasjson ) , ) . ok ( ) } pub unsafe fn TryGetWebMessageAsString < > ( & self , webmessageasstring : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( webmessageasstring ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebMessageReceivedEventArgs { type Vtable = ICoreWebView2WebMessageReceivedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 261727244 ,59746 ,16903 , [ 158 ,146 ,227 ,213 ,66 ,239 ,248 ,73 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebMessageReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebMessageReceivedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebMessageReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebMessageReceivedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebMessageReceivedEventArgs { 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 ICoreWebView2WebMessageReceivedEventArgs { 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 ICoreWebView2WebMessageReceivedEventArgs_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 , source : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasjson : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasstring : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebMessageReceivedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2WebMessageReceivedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2WebMessageReceivedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebMessageReceivedEventHandler { type Vtable = ICoreWebView2WebMessageReceivedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1461796633 ,230 ,18938 , [ 142 ,7 ,137 ,142 ,160 ,30 ,203 ,210 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebMessageReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebMessageReceivedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebMessageReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebMessageReceivedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebMessageReceivedEventHandler { 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 ICoreWebView2WebMessageReceivedEventHandler { 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 ICoreWebView2WebMessageReceivedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceRequest ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceRequest { pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn put_Uri < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Method < > ( & self , method : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( method ) , ) . ok ( ) } pub unsafe fn put_Method < 'a , > ( & self , method : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , method . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Content < > ( & self , ) -> :: windows :: Result < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > { let mut result__ : < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > ( result__ ) } pub unsafe fn put_Content < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Headers < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpRequestHeaders > { let mut result__ : < ICoreWebView2HttpRequestHeaders as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpRequestHeaders > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceRequest { type Vtable = ICoreWebView2WebResourceRequest_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2533711060 ,20780 ,16996 , [ 139 ,95 ,227 ,244 ,70 ,206 ,166 ,165 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceRequest > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceRequest ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceRequest > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceRequest ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceRequest { 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 ICoreWebView2WebResourceRequest { 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 ICoreWebView2WebResourceRequest_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 , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , method : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , method : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , headers : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceRequestedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceRequestedEventArgs { pub unsafe fn get_Request < > ( & self , ) -> :: windows :: Result < ICoreWebView2WebResourceRequest > { let mut result__ : < ICoreWebView2WebResourceRequest as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceRequest > ( result__ ) } pub unsafe fn get_Response < > ( & self , ) -> :: windows :: Result < ICoreWebView2WebResourceResponse > { let mut result__ : < ICoreWebView2WebResourceResponse as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponse > ( result__ ) } pub unsafe fn put_Response < 'a , > ( & self , response : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponse > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , response . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetDeferral < > ( & self , ) -> :: windows :: Result < ICoreWebView2Deferral > { let mut result__ : < ICoreWebView2Deferral as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Deferral > ( result__ ) } pub unsafe fn get_ResourceContext < > ( & self , context : * mut COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( context ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceRequestedEventArgs { type Vtable = ICoreWebView2WebResourceRequestedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1161717375 ,4807 ,18900 , [ 190 ,109 ,221 ,190 ,121 ,86 ,245 ,122 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceRequestedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceRequestedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceRequestedEventArgs { 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 ICoreWebView2WebResourceRequestedEventArgs { 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 ICoreWebView2WebResourceRequestedEventArgs_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 , request : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , response : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , deferral : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , context : * mut COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceRequestedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceRequestedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequestedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceRequestedEventHandler { type Vtable = ICoreWebView2WebResourceRequestedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2868950860 ,5617 ,17990 , [ 128 ,232 ,231 ,99 ,65 ,210 ,93 ,113 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceRequestedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceRequestedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceRequestedEventHandler { 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 ICoreWebView2WebResourceRequestedEventHandler { 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 ICoreWebView2WebResourceRequestedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceResponse ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceResponse { pub unsafe fn get_Content < > ( & self , ) -> :: windows :: Result < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > { let mut result__ : < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > ( result__ ) } pub unsafe fn put_Content < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Headers < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpResponseHeaders > { let mut result__ : < ICoreWebView2HttpResponseHeaders as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpResponseHeaders > ( result__ ) } pub unsafe fn get_StatusCode < > ( & self , statuscode : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( statuscode ) , ) . ok ( ) } pub unsafe fn put_StatusCode < > ( & self , statuscode : i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( statuscode ) , ) . ok ( ) } pub unsafe fn get_ReasonPhrase < > ( & self , reasonphrase : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reasonphrase ) , ) . ok ( ) } pub unsafe fn put_ReasonPhrase < 'a , > ( & self , reasonphrase : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , reasonphrase . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceResponse { type Vtable = ICoreWebView2WebResourceResponse_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2868693327 ,64039 ,18685 , [ 151 ,223 ,131 ,14 ,247 ,90 ,174 ,201 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceResponse > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceResponse ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceResponse > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceResponse ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceResponse { 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 ICoreWebView2WebResourceResponse { 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 ICoreWebView2WebResourceResponse_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 , content : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , headers : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , statuscode : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , statuscode : i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reasonphrase : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reasonphrase : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceResponseReceivedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceResponseReceivedEventArgs { pub unsafe fn get_Request < > ( & self , ) -> :: windows :: Result < ICoreWebView2WebResourceRequest > { let mut result__ : < ICoreWebView2WebResourceRequest as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceRequest > ( result__ ) } pub unsafe fn get_Response < > ( & self , ) -> :: windows :: Result < ICoreWebView2WebResourceResponseView > { let mut result__ : < ICoreWebView2WebResourceResponseView as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponseView > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceResponseReceivedEventArgs { type Vtable = ICoreWebView2WebResourceResponseReceivedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3520809021 ,26518 ,19339 , [ 128 ,252 ,19 ,113 ,43 ,183 ,22 ,244 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceResponseReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceResponseReceivedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceResponseReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceResponseReceivedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceResponseReceivedEventArgs { 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 ICoreWebView2WebResourceResponseReceivedEventArgs { 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 ICoreWebView2WebResourceResponseReceivedEventArgs_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 , request : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceResponseReceivedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceResponseReceivedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponseReceivedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceResponseReceivedEventHandler { type Vtable = ICoreWebView2WebResourceResponseReceivedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2112457098 ,9461 ,16579 , [ 162 ,222 ,212 ,244 ,88 ,230 ,152 ,40 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceResponseReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceResponseReceivedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceResponseReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceResponseReceivedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceResponseReceivedEventHandler { 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 ICoreWebView2WebResourceResponseReceivedEventHandler { 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 ICoreWebView2WebResourceResponseReceivedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceResponseView ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceResponseView { pub unsafe fn get_Headers < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpResponseHeaders > { let mut result__ : < ICoreWebView2HttpResponseHeaders as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpResponseHeaders > ( result__ ) } pub unsafe fn get_StatusCode < > ( & self , statuscode : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( statuscode ) , ) . ok ( ) } pub unsafe fn get_ReasonPhrase < > ( & self , reasonphrase : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reasonphrase ) , ) . ok ( ) } pub unsafe fn GetContent < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponseViewGetContentCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceResponseView { type Vtable = ICoreWebView2WebResourceResponseView_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2037387347 ,30553 ,16738 , [ 143 ,125 ,241 ,179 ,240 ,132 ,146 ,141 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceResponseView > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceResponseView ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceResponseView > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceResponseView ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceResponseView { 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 ICoreWebView2WebResourceResponseView { 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 ICoreWebView2WebResourceResponseView_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 , headers : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , statuscode : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reasonphrase : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceResponseViewGetContentCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceResponseViewGetContentCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , content . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceResponseViewGetContentCompletedHandler { type Vtable = ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2270640353 ,40866 ,16611 , [ 139 ,116 ,46 ,137 ,114 ,221 ,111 ,231 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceResponseViewGetContentCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceResponseViewGetContentCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceResponseViewGetContentCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceResponseViewGetContentCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceResponseViewGetContentCompletedHandler { 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 ICoreWebView2WebResourceResponseViewGetContentCompletedHandler { 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 ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_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 , errorcode : :: windows :: HRESULT , content : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WindowCloseRequestedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2WindowCloseRequestedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WindowCloseRequestedEventHandler { type Vtable = ICoreWebView2WindowCloseRequestedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1545202144 ,2351 ,18539 , [ 175 ,250 ,202 ,130 ,49 ,145 ,48 ,57 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WindowCloseRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WindowCloseRequestedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WindowCloseRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WindowCloseRequestedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WindowCloseRequestedEventHandler { 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 ICoreWebView2WindowCloseRequestedEventHandler { 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 ICoreWebView2WindowCloseRequestedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WindowFeatures ( :: windows :: IUnknown ) ; impl ICoreWebView2WindowFeatures { pub unsafe fn get_HasPosition < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_HasSize < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_Left < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_Top < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_Height < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_Width < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_ShouldDisplayMenuBar < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_ShouldDisplayStatus < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_ShouldDisplayToolbar < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_ShouldDisplayScrollBars < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WindowFeatures { type Vtable = ICoreWebView2WindowFeatures_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1588549023 ,46190 ,17303 , [ 136 ,96 ,228 ,34 ,242 ,135 ,255 ,30 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WindowFeatures > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WindowFeatures ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WindowFeatures > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WindowFeatures ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WindowFeatures { 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 ICoreWebView2WindowFeatures { 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 ICoreWebView2WindowFeatures_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 , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ZoomFactorChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ZoomFactorChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ZoomFactorChangedEventHandler { type Vtable = ICoreWebView2ZoomFactorChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3039654358 ,50399 ,17731 , [ 169 ,12 ,100 ,163 ,230 ,15 ,56 ,203 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ZoomFactorChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ZoomFactorChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ZoomFactorChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ZoomFactorChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ZoomFactorChangedEventHandler { 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 ICoreWebView2ZoomFactorChangedEventHandler { 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 ICoreWebView2ZoomFactorChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2_2 ( :: windows :: IUnknown ) ; impl ICoreWebView2_2 { pub unsafe fn get_Settings < > ( & self , ) -> :: windows :: Result < ICoreWebView2Settings > { let mut result__ : < ICoreWebView2Settings as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Settings > ( result__ ) } pub unsafe fn get_Source < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn Navigate < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateToString < 'a , > ( & self , htmlcontent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , htmlcontent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ContentLoading < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContentLoadingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContentLoading < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_SourceChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2SourceChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_SourceChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_HistoryChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2HistoryChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_HistoryChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ScriptDialogOpening < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ScriptDialogOpeningEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ScriptDialogOpening < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_PermissionRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2PermissionRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_PermissionRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ProcessFailed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ProcessFailed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddScriptToExecuteOnDocumentCreated < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn RemoveScriptToExecuteOnDocumentCreated < 'a , > ( & self , id : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , id . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn ExecuteScript < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2ExecuteScriptCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CapturePreview < 'a , > ( & self , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CapturePreviewCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( imageformat ) , imagestream . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Reload < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsJson < 'a , > ( & self , webmessageasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , webmessageasjson . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsString < 'a , > ( & self , webmessageasstring : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , webmessageasstring . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebMessageReceived < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebMessageReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebMessageReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CallDevToolsProtocolMethod < 'a , > ( & self , methodname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , parametersasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , methodname . into_param ( ) . abi ( ) , parametersasjson . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_BrowserProcessId < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_CanGoBack < > ( & self , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoback ) , ) . ok ( ) } pub unsafe fn get_CanGoForward < > ( & self , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoforward ) , ) . ok ( ) } pub unsafe fn GoBack < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GoForward < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDevToolsProtocolEventReceiver < 'a , > ( & self , eventname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2DevToolsProtocolEventReceiver > { let mut result__ : < ICoreWebView2DevToolsProtocolEventReceiver as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , eventname . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2DevToolsProtocolEventReceiver > ( result__ ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_NewWindowRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewWindowRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewWindowRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DocumentTitleChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DocumentTitleChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DocumentTitleChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_DocumentTitle < > ( & self , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( title ) , ) . ok ( ) } pub unsafe fn AddHostObjectToScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , ) . ok ( ) } pub unsafe fn RemoveHostObjectFromScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn OpenDevToolsWindow < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_ContainsFullScreenElementChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContainsFullScreenElementChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContainsFullScreenElementChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ContainsFullScreenElement < > ( & self , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( containsfullscreenelement ) , ) . ok ( ) } pub unsafe fn add_WebResourceRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn RemoveWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn add_WindowCloseRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WindowCloseRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WindowCloseRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .60 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebResourceResponseReceived < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponseReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .61 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceResponseReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .62 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateWithWebResourceRequest < 'a , > ( & self , request : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequest > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .63 ) ( :: windows :: Abi :: abi ( self ) , request . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DOMContentLoaded < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DOMContentLoadedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .64 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DOMContentLoaded < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .65 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_CookieManager < > ( & self , ) -> :: windows :: Result < ICoreWebView2CookieManager > { let mut result__ : < ICoreWebView2CookieManager as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .66 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2CookieManager > ( result__ ) } pub unsafe fn get_Environment < > ( & self , ) -> :: windows :: Result < ICoreWebView2Environment > { let mut result__ : < ICoreWebView2Environment as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .67 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Environment > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2_2 { type Vtable = ICoreWebView2_2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2660175096 ,58992 ,19294 , [ 178 ,188 ,115 ,224 ,97 ,227 ,24 ,76 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2_2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2_2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2_2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2_2 { 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 ICoreWebView2_2 { 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 < ICoreWebView2_2 > for ICoreWebView2 { fn from ( value : ICoreWebView2_2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_2 > for ICoreWebView2 { fn from ( value : & ICoreWebView2_2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for ICoreWebView2_2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for & 'a ICoreWebView2_2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2_2_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 , settings : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , htmlcontent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , id : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasstring : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , methodname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , parametersasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , 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 , eventname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , receiver : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , request : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookiemanager : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , environment : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2_3 ( :: windows :: IUnknown ) ; impl ICoreWebView2_3 { pub unsafe fn get_Settings < > ( & self , ) -> :: windows :: Result < ICoreWebView2Settings > { let mut result__ : < ICoreWebView2Settings as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Settings > ( result__ ) } pub unsafe fn get_Source < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn Navigate < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateToString < 'a , > ( & self , htmlcontent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , htmlcontent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ContentLoading < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContentLoadingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContentLoading < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_SourceChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2SourceChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_SourceChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_HistoryChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2HistoryChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_HistoryChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ScriptDialogOpening < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ScriptDialogOpeningEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ScriptDialogOpening < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_PermissionRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2PermissionRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_PermissionRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ProcessFailed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ProcessFailed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddScriptToExecuteOnDocumentCreated < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn RemoveScriptToExecuteOnDocumentCreated < 'a , > ( & self , id : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , id . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn ExecuteScript < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2ExecuteScriptCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CapturePreview < 'a , > ( & self , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CapturePreviewCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( imageformat ) , imagestream . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Reload < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsJson < 'a , > ( & self , webmessageasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , webmessageasjson . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsString < 'a , > ( & self , webmessageasstring : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , webmessageasstring . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebMessageReceived < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebMessageReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebMessageReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CallDevToolsProtocolMethod < 'a , > ( & self , methodname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , parametersasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , methodname . into_param ( ) . abi ( ) , parametersasjson . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_BrowserProcessId < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_CanGoBack < > ( & self , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoback ) , ) . ok ( ) } pub unsafe fn get_CanGoForward < > ( & self , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoforward ) , ) . ok ( ) } pub unsafe fn GoBack < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GoForward < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDevToolsProtocolEventReceiver < 'a , > ( & self , eventname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2DevToolsProtocolEventReceiver > { let mut result__ : < ICoreWebView2DevToolsProtocolEventReceiver as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , eventname . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2DevToolsProtocolEventReceiver > ( result__ ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_NewWindowRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewWindowRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewWindowRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DocumentTitleChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DocumentTitleChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DocumentTitleChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_DocumentTitle < > ( & self , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( title ) , ) . ok ( ) } pub unsafe fn AddHostObjectToScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , ) . ok ( ) } pub unsafe fn RemoveHostObjectFromScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn OpenDevToolsWindow < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_ContainsFullScreenElementChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContainsFullScreenElementChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContainsFullScreenElementChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ContainsFullScreenElement < > ( & self , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( containsfullscreenelement ) , ) . ok ( ) } pub unsafe fn add_WebResourceRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn RemoveWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn add_WindowCloseRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WindowCloseRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WindowCloseRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .60 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebResourceResponseReceived < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponseReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .61 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceResponseReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .62 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateWithWebResourceRequest < 'a , > ( & self , request : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequest > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .63 ) ( :: windows :: Abi :: abi ( self ) , request . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DOMContentLoaded < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DOMContentLoadedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .64 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DOMContentLoaded < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .65 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_CookieManager < > ( & self , ) -> :: windows :: Result < ICoreWebView2CookieManager > { let mut result__ : < ICoreWebView2CookieManager as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .66 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2CookieManager > ( result__ ) } pub unsafe fn get_Environment < > ( & self , ) -> :: windows :: Result < ICoreWebView2Environment > { let mut result__ : < ICoreWebView2Environment as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .67 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Environment > ( result__ ) } pub unsafe fn TrySuspend < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2TrySuspendCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .68 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Resume < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .69 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_IsSuspended < > ( & self , issuspended : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .70 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( issuspended ) , ) . ok ( ) } pub unsafe fn SetVirtualHostNameToFolderMapping < 'a , > ( & self , hostname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , folderpath : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , accesskind : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .71 ) ( :: windows :: Abi :: abi ( self ) , hostname . into_param ( ) . abi ( ) , folderpath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( accesskind ) , ) . ok ( ) } pub unsafe fn ClearVirtualHostNameToFolderMapping < 'a , > ( & self , hostname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .72 ) ( :: windows :: Abi :: abi ( self ) , hostname . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2_3 { type Vtable = ICoreWebView2_3_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2698436384 ,15250 ,16749 , [ 170 ,12 ,67 ,122 ,156 ,114 ,120 ,87 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2_3 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2_3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_3 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2_3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2_3 { 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 ICoreWebView2_3 { 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 < ICoreWebView2_3 > for ICoreWebView2_2 { fn from ( value : ICoreWebView2_3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_3 > for ICoreWebView2_2 { fn from ( value : & ICoreWebView2_3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_2 > for ICoreWebView2_3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_2 > for & 'a ICoreWebView2_3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2_3 > for ICoreWebView2 { fn from ( value : ICoreWebView2_3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_3 > for ICoreWebView2 { fn from ( value : & ICoreWebView2_3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for ICoreWebView2_3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for & 'a ICoreWebView2_3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2_3_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 , settings : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , htmlcontent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , id : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasstring : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , methodname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , parametersasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , 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 , eventname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , receiver : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , request : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookiemanager : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , environment : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , issuspended : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hostname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , folderpath : super::super::super::super::Windows::Win32::Foundation:: PWSTR , accesskind : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hostname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2_4 ( :: windows :: IUnknown ) ; impl ICoreWebView2_4 { pub unsafe fn get_Settings < > ( & self , ) -> :: windows :: Result < ICoreWebView2Settings > { let mut result__ : < ICoreWebView2Settings as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Settings > ( result__ ) } pub unsafe fn get_Source < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn Navigate < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateToString < 'a , > ( & self , htmlcontent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , htmlcontent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ContentLoading < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContentLoadingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContentLoading < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_SourceChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2SourceChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_SourceChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_HistoryChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2HistoryChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_HistoryChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ScriptDialogOpening < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ScriptDialogOpeningEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ScriptDialogOpening < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_PermissionRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2PermissionRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_PermissionRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ProcessFailed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ProcessFailed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddScriptToExecuteOnDocumentCreated < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn RemoveScriptToExecuteOnDocumentCreated < 'a , > ( & self , id : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , id . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn ExecuteScript < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2ExecuteScriptCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CapturePreview < 'a , > ( & self , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CapturePreviewCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( imageformat ) , imagestream . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Reload < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsJson < 'a , > ( & self , webmessageasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , webmessageasjson . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsString < 'a , > ( & self , webmessageasstring : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , webmessageasstring . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebMessageReceived < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebMessageReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebMessageReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CallDevToolsProtocolMethod < 'a , > ( & self , methodname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , parametersasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , methodname . into_param ( ) . abi ( ) , parametersasjson . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_BrowserProcessId < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_CanGoBack < > ( & self , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoback ) , ) . ok ( ) } pub unsafe fn get_CanGoForward < > ( & self , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoforward ) , ) . ok ( ) } pub unsafe fn GoBack < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GoForward < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDevToolsProtocolEventReceiver < 'a , > ( & self , eventname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2DevToolsProtocolEventReceiver > { let mut result__ : < ICoreWebView2DevToolsProtocolEventReceiver as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , eventname . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2DevToolsProtocolEventReceiver > ( result__ ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_NewWindowRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewWindowRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewWindowRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DocumentTitleChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DocumentTitleChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DocumentTitleChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_DocumentTitle < > ( & self , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( title ) , ) . ok ( ) } pub unsafe fn AddHostObjectToScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , ) . ok ( ) } pub unsafe fn RemoveHostObjectFromScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn OpenDevToolsWindow < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_ContainsFullScreenElementChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContainsFullScreenElementChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContainsFullScreenElementChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ContainsFullScreenElement < > ( & self , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( containsfullscreenelement ) , ) . ok ( ) } pub unsafe fn add_WebResourceRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn RemoveWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn add_WindowCloseRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WindowCloseRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WindowCloseRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .60 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebResourceResponseReceived < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponseReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .61 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceResponseReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .62 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateWithWebResourceRequest < 'a , > ( & self , request : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequest > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .63 ) ( :: windows :: Abi :: abi ( self ) , request . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DOMContentLoaded < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DOMContentLoadedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .64 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DOMContentLoaded < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .65 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_CookieManager < > ( & self , ) -> :: windows :: Result < ICoreWebView2CookieManager > { let mut result__ : < ICoreWebView2CookieManager as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .66 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2CookieManager > ( result__ ) } pub unsafe fn get_Environment < > ( & self , ) -> :: windows :: Result < ICoreWebView2Environment > { let mut result__ : < ICoreWebView2Environment as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .67 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Environment > ( result__ ) } pub unsafe fn TrySuspend < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2TrySuspendCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .68 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Resume < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .69 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_IsSuspended < > ( & self , issuspended : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .70 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( issuspended ) , ) . ok ( ) } pub unsafe fn SetVirtualHostNameToFolderMapping < 'a , > ( & self , hostname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , folderpath : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , accesskind : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .71 ) ( :: windows :: Abi :: abi ( self ) , hostname . into_param ( ) . abi ( ) , folderpath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( accesskind ) , ) . ok ( ) } pub unsafe fn ClearVirtualHostNameToFolderMapping < 'a , > ( & self , hostname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .72 ) ( :: windows :: Abi :: abi ( self ) , hostname . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameCreated < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FrameCreatedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .73 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameCreated < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .74 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DownloadStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DownloadStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .75 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DownloadStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .76 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2_4 { type Vtable = ICoreWebView2_4_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 550514009 ,28146 ,17116 , [ 189 ,6 ,249 ,138 ,105 ,75 ,19 ,2 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2_4 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2_4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_4 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2_4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2_4 { 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 ICoreWebView2_4 { 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 < ICoreWebView2_4 > for ICoreWebView2_3 { fn from ( value : ICoreWebView2_4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_4 > for ICoreWebView2_3 { fn from ( value : & ICoreWebView2_4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_3 > for ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_3 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_3 > for & 'a ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_3 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2_4 > for ICoreWebView2_2 { fn from ( value : ICoreWebView2_4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_4 > for ICoreWebView2_2 { fn from ( value : & ICoreWebView2_4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_2 > for ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_2 > for & 'a ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2_4 > for ICoreWebView2 { fn from ( value : ICoreWebView2_4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_4 > for ICoreWebView2 { fn from ( value : & ICoreWebView2_4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for & 'a ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2_4_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 , settings : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , htmlcontent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , id : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasstring : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , methodname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , parametersasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , 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 , eventname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , receiver : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , request : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookiemanager : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , environment : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , issuspended : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hostname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , folderpath : super::super::super::super::Windows::Win32::Foundation:: PWSTR , accesskind : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hostname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , ) ; pub const __REQUIRED_RPCNDR_H_VERSION__ : u32 = 475u32 ; } } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Windows { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Win32 { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Foundation { # [ repr ( transparent ) ] # [ derive ( :: std :: default :: Default , :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct BOOL ( pub i32 ) ; unsafe impl :: windows :: Abi for BOOL { type Abi = Self ; type DefaultType = Self ; } impl BOOL { # [ inline ] pub fn as_bool ( self ) -> bool { ! ( self . 0 == 0 ) } # [ inline ] pub fn ok ( self ) -> :: windows :: Result < ( ) > { if self . as_bool ( ) { Ok ( ( ) ) } else { Err ( :: windows :: 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 ( ) ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: Eq ) ] pub struct BSTR ( * mut u16 ) ; impl BSTR { # [ doc = r" Create an empty `BSTR`." ] # [ doc = r"" ] # [ doc = r" This function does not allocate memory." ] pub fn new ( ) -> Self { Self ( std :: ptr :: null_mut ( ) ) } # [ doc = r" Returns `true` if the string is empty." ] pub fn is_empty ( & self ) -> bool { self . 0 . is_null ( ) } # [ doc = r" Returns the length of the string." ] pub fn len ( & self ) -> usize { if self . is_empty ( ) { return 0 ; } unsafe { SysStringLen ( self ) as usize } } # [ doc = r" Create a `BSTR` from a slice of 16-bit characters." ] pub fn from_wide ( value : & [ u16 ] ) -> Self { if value . len ( ) == 0 { return Self ( :: std :: ptr :: null_mut ( ) ) ; } unsafe { SysAllocStringLen ( PWSTR ( value . as_ptr ( ) as _ ) , value . len ( ) as u32 , ) } } # [ doc = r" Get the string as 16-bit characters." ] pub fn as_wide ( & self ) -> & [ u16 ] { if self . 0 . is_null ( ) { return & [ ] ; } unsafe { :: std :: slice :: from_raw_parts ( self . 0 as * const u16 , self . len ( ) ) } } } impl :: std :: clone :: Clone for BSTR { fn clone ( & self ) -> Self { Self :: from_wide ( self . as_wide ( ) ) } } impl :: std :: convert :: From < & str > for BSTR { fn from ( value : & str ) -> Self { let value : :: std :: vec :: Vec < u16 > = value . encode_utf16 ( ) . collect ( ) ; Self :: from_wide ( & value ) } } impl :: std :: convert :: From < :: std :: string :: String > for BSTR { fn from ( value : :: std :: string :: String ) -> Self { value . as_str ( ) . into ( ) } } impl :: std :: convert :: From < & :: std :: string :: String > for BSTR { fn from ( value : & :: std :: string :: String ) -> Self { value . as_str ( ) . into ( ) } } impl < 'a > :: std :: convert :: TryFrom < & 'a BSTR > for :: std :: string :: String { type Error = :: std :: string :: FromUtf16Error ; fn try_from ( value : & BSTR ) -> :: std :: result :: Result < Self , Self :: Error > { :: std :: string :: String :: from_utf16 ( value . as_wide ( ) ) } } impl :: std :: convert :: TryFrom < BSTR > for :: std :: string :: String { type Error = :: std :: string :: FromUtf16Error ; fn try_from ( value : BSTR ) -> :: std :: result :: Result < Self , Self :: Error > { :: std :: string :: String :: try_from ( & value ) } } impl :: std :: default :: Default for BSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: fmt :: Display for BSTR { fn fmt ( & self , f : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { use :: std :: fmt :: Write ; for c in :: std :: char :: decode_utf16 ( self . as_wide ( ) . iter ( ) . cloned ( ) ) { f . write_char ( c . map_err ( | _ | :: std :: fmt :: Error ) ? ) ? } Ok ( ( ) ) } } impl :: std :: fmt :: Debug for BSTR { fn fmt ( & self , f : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { :: std :: write ! ( f , "{}" , self ) } } impl :: std :: cmp :: PartialEq for BSTR { fn eq ( & self , other : & Self ) -> bool { self . as_wide ( ) == other . as_wide ( ) } } impl :: std :: cmp :: PartialEq < :: std :: string :: String > for BSTR { fn eq ( & self , other : & :: std :: string :: String ) -> bool { self == other . as_str ( ) } } impl :: std :: cmp :: PartialEq < str > for BSTR { fn eq ( & self , other : & str ) -> bool { self == other } } impl :: std :: cmp :: PartialEq < & str > for BSTR { fn eq ( & self , other : && str ) -> bool { self . as_wide ( ) . iter ( ) . copied ( ) . eq ( other . encode_utf16 ( ) ) } } impl :: std :: cmp :: PartialEq < BSTR > for & str { fn eq ( & self , other : & BSTR ) -> bool { other == self } } impl :: std :: ops :: Drop for BSTR { fn drop ( & mut self ) { if ! self . 0 . is_null ( ) { unsafe { SysFreeString ( self as & Self ) } } } } unsafe impl :: windows :: Abi for BSTR { type Abi = * mut u16 ; type DefaultType = Self ; fn set_abi ( & mut self ) -> * mut * mut u16 { debug_assert ! ( self . 0 . is_null ( ) ) ; & mut self . 0 as * mut _ as _ } } pub type BSTR_abi = * mut u16 ; pub const E_NOINTERFACE : :: windows :: HRESULT = :: windows :: HRESULT ( -2147467262i32 as _ ) ; pub const E_POINTER : :: windows :: HRESULT = :: windows :: HRESULT ( -2147467261i32 as _ ) ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct FILETIME { pub dwLowDateTime : u32 , pub dwHighDateTime : u32 } impl FILETIME { } impl :: std :: default :: Default for FILETIME { fn default ( ) -> Self { Self { dwLowDateTime : 0 , dwHighDateTime : 0 } } } impl :: std :: fmt :: Debug for FILETIME { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FILETIME" ) . field ( "dwLowDateTime" , & self . dwLowDateTime ) . field ( "dwHighDateTime" , & self . dwHighDateTime ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FILETIME { fn eq ( & self , other : & Self ) -> bool { self . dwLowDateTime == other . dwLowDateTime && self . dwHighDateTime == other . dwHighDateTime } } impl :: std :: cmp :: Eq for FILETIME { } unsafe impl :: windows :: Abi for FILETIME { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ 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 ; } pub const S_OK : :: windows :: HRESULT = :: windows :: HRESULT ( 0i32 as _ ) ; pub unsafe fn SysAllocStringLen < 'a , > ( strin : impl :: windows :: IntoParam < 'a , PWSTR > , ui : u32 , ) -> BSTR { # [ cfg ( windows ) ] { # [ link ( name ="OLEAUT32" ) ] extern "system" { fn SysAllocStringLen ( strin : PWSTR , ui : u32 ) -> BSTR ; } SysAllocStringLen ( strin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ui ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SysFreeString < 'a , > ( bstrstring : impl :: windows :: IntoParam < 'a , BSTR > , ) { # [ cfg ( windows ) ] { # [ link ( name ="OLEAUT32" ) ] extern "system" { fn SysFreeString ( bstrstring : BSTR_abi ) ; } SysFreeString ( bstrstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SysStringLen < 'a , > ( pbstr : impl :: windows :: IntoParam < 'a , BSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="OLEAUT32" ) ] extern "system" { fn SysStringLen ( pbstr : BSTR_abi ) -> u32 ; } SysStringLen ( pbstr . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ 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 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 ; } pub unsafe fn UpdateWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UpdateWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } UpdateWindow ( hwnd . 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 Storage { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod StructuredStorage { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ISequentialStream ( :: windows :: IUnknown ) ; impl ISequentialStream { pub unsafe fn Read < > ( & self , pv : * mut :: std :: ffi :: c_void , cb : u32 , pcbread : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pv ) , :: std :: mem :: transmute ( cb ) , :: std :: mem :: transmute ( pcbread ) , ) . ok ( ) } pub unsafe fn Write < > ( & self , pv : * const :: std :: ffi :: c_void , cb : u32 , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pv ) , :: std :: mem :: transmute ( cb ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } } unsafe impl :: windows :: Interface for ISequentialStream { type Vtable = ISequentialStream_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 208878128 ,10780 ,4558 , [ 173 ,229 ,0 ,170 ,0 ,68 ,119 ,61 ] , ) ; } impl :: std :: convert :: From < ISequentialStream > for :: windows :: IUnknown { fn from ( value : ISequentialStream ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ISequentialStream > for :: windows :: IUnknown { fn from ( value : & ISequentialStream ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ISequentialStream { 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 ISequentialStream { 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 ISequentialStream_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 , pv : * mut :: std :: ffi :: c_void , cb : u32 , pcbread : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pv : * const :: std :: ffi :: c_void , cb : u32 , pcbwritten : * mut u32 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IStream ( :: windows :: IUnknown ) ; impl IStream { pub unsafe fn Read < > ( & self , pv : * mut :: std :: ffi :: c_void , cb : u32 , pcbread : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pv ) , :: std :: mem :: transmute ( cb ) , :: std :: mem :: transmute ( pcbread ) , ) . ok ( ) } pub unsafe fn Write < > ( & self , pv : * const :: std :: ffi :: c_void , cb : u32 , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pv ) , :: std :: mem :: transmute ( cb ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn Seek < > ( & self , dlibmove : i64 , dworigin : STREAM_SEEK , ) -> :: windows :: Result < u64 > { let mut result__ : < u64 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dlibmove ) , :: std :: mem :: transmute ( dworigin ) , & mut result__ ) . from_abi :: < u64 > ( result__ ) } pub unsafe fn SetSize < > ( & self , libnewsize : u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( libnewsize ) , ) . ok ( ) } pub unsafe fn CopyTo < 'a , > ( & self , pstm : impl :: windows :: IntoParam < 'a , IStream > , cb : u64 , pcbread : * mut u64 , pcbwritten : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , pstm . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cb ) , :: std :: mem :: transmute ( pcbread ) , :: std :: mem :: transmute ( pcbwritten ) , ) . ok ( ) } pub unsafe fn Commit < > ( & self , grfcommitflags : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( grfcommitflags ) , ) . ok ( ) } pub unsafe fn Revert < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn LockRegion < > ( & self , liboffset : u64 , cb : u64 , dwlocktype : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( liboffset ) , :: std :: mem :: transmute ( cb ) , :: std :: mem :: transmute ( dwlocktype ) , ) . ok ( ) } pub unsafe fn UnlockRegion < > ( & self , liboffset : u64 , cb : u64 , dwlocktype : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( liboffset ) , :: std :: mem :: transmute ( cb ) , :: std :: mem :: transmute ( dwlocktype ) , ) . ok ( ) } pub unsafe fn Stat < > ( & self , pstatstg : * mut STATSTG , grfstatflag : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pstatstg ) , :: std :: mem :: transmute ( grfstatflag ) , ) . ok ( ) } pub unsafe fn Clone < > ( & self , ) -> :: windows :: Result < IStream > { let mut result__ : < IStream as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < IStream > ( result__ ) } } unsafe impl :: windows :: Interface for IStream { type Vtable = IStream_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 12 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } impl :: std :: convert :: From < IStream > for :: windows :: IUnknown { fn from ( value : IStream ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IStream > for :: windows :: IUnknown { fn from ( value : & IStream ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IStream { 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 IStream { 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 < IStream > for ISequentialStream { fn from ( value : IStream ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IStream > for ISequentialStream { fn from ( value : & IStream ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ISequentialStream > for IStream { fn into_param ( self ) -> :: windows :: Param < 'a , ISequentialStream > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ISequentialStream > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ISequentialStream > for & 'a IStream { fn into_param ( self ) -> :: windows :: Param < 'a , ISequentialStream > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ISequentialStream > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IStream_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 , pv : * mut :: std :: ffi :: c_void , cb : u32 , pcbread : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pv : * const :: std :: ffi :: c_void , cb : u32 , pcbwritten : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dlibmove : i64 , dworigin : STREAM_SEEK , plibnewposition : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , libnewsize : u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pstm : :: windows :: RawPtr , cb : u64 , pcbread : * mut u64 , pcbwritten : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , grfcommitflags : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , liboffset : u64 , cb : u64 , dwlocktype : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , liboffset : u64 , cb : u64 , dwlocktype : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pstatstg : * mut STATSTG , grfstatflag : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppstm : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct STATSTG { pub pwcsName : super::super::Foundation:: PWSTR , pub r#type : u32 , pub cbSize : u64 , pub mtime : super::super::Foundation:: FILETIME , pub ctime : super::super::Foundation:: FILETIME , pub atime : super::super::Foundation:: FILETIME , pub grfMode : u32 , pub grfLocksSupported : u32 , pub clsid : :: windows :: Guid , pub grfStateBits : u32 , pub reserved : u32 } impl STATSTG { } impl :: std :: default :: Default for STATSTG { fn default ( ) -> Self { Self { pwcsName : :: std :: default :: Default :: default ( ) , r#type : 0 , cbSize : 0 , mtime : :: std :: default :: Default :: default ( ) , ctime : :: std :: default :: Default :: default ( ) , atime : :: std :: default :: Default :: default ( ) , grfMode : 0 , grfLocksSupported : 0 , clsid : :: std :: default :: Default :: default ( ) , grfStateBits : 0 , reserved : 0 } } } impl :: std :: fmt :: Debug for STATSTG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "STATSTG" ) . field ( "pwcsName" , & self . pwcsName ) . field ( "r#type" , & self . r#type ) . field ( "cbSize" , & self . cbSize ) . field ( "mtime" , & self . mtime ) . field ( "ctime" , & self . ctime ) . field ( "atime" , & self . atime ) . field ( "grfMode" , & self . grfMode ) . field ( "grfLocksSupported" , & self . grfLocksSupported ) . field ( "clsid" , & self . clsid ) . field ( "grfStateBits" , & self . grfStateBits ) . field ( "reserved" , & self . reserved ) . finish ( ) } } impl :: std :: cmp :: PartialEq for STATSTG { fn eq ( & self , other : & Self ) -> bool { self . pwcsName == other . pwcsName && self . r#type == other . r#type && self . cbSize == other . cbSize && self . mtime == other . mtime && self . ctime == other . ctime && self . atime == other . atime && self . grfMode == other . grfMode && self . grfLocksSupported == other . grfLocksSupported && self . clsid == other . clsid && self . grfStateBits == other . grfStateBits && self . reserved == other . reserved } } impl :: std :: cmp :: Eq for STATSTG { } unsafe impl :: windows :: Abi for STATSTG { 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 STREAM_SEEK ( pub u32 ) ; pub const STREAM_SEEK_SET : STREAM_SEEK = STREAM_SEEK ( 0u32 ) ; pub const STREAM_SEEK_CUR : STREAM_SEEK = STREAM_SEEK ( 1u32 ) ; pub const STREAM_SEEK_END : STREAM_SEEK = STREAM_SEEK ( 2u32 ) ; impl :: std :: convert :: From < u32 > for STREAM_SEEK { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for STREAM_SEEK { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for STREAM_SEEK { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for STREAM_SEEK { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for STREAM_SEEK { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for STREAM_SEEK { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } } } # [ 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 Com { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CLSCTX ( pub u32 ) ; pub const CLSCTX_INPROC_SERVER : CLSCTX = CLSCTX ( 1u32 ) ; pub const CLSCTX_INPROC_HANDLER : CLSCTX = CLSCTX ( 2u32 ) ; pub const CLSCTX_LOCAL_SERVER : CLSCTX = CLSCTX ( 4u32 ) ; pub const CLSCTX_INPROC_SERVER16 : CLSCTX = CLSCTX ( 8u32 ) ; pub const CLSCTX_REMOTE_SERVER : CLSCTX = CLSCTX ( 16u32 ) ; pub const CLSCTX_INPROC_HANDLER16 : CLSCTX = CLSCTX ( 32u32 ) ; pub const CLSCTX_RESERVED1 : CLSCTX = CLSCTX ( 64u32 ) ; pub const CLSCTX_RESERVED2 : CLSCTX = CLSCTX ( 128u32 ) ; pub const CLSCTX_RESERVED3 : CLSCTX = CLSCTX ( 256u32 ) ; pub const CLSCTX_RESERVED4 : CLSCTX = CLSCTX ( 512u32 ) ; pub const CLSCTX_NO_CODE_DOWNLOAD : CLSCTX = CLSCTX ( 1024u32 ) ; pub const CLSCTX_RESERVED5 : CLSCTX = CLSCTX ( 2048u32 ) ; pub const CLSCTX_NO_CUSTOM_MARSHAL : CLSCTX = CLSCTX ( 4096u32 ) ; pub const CLSCTX_ENABLE_CODE_DOWNLOAD : CLSCTX = CLSCTX ( 8192u32 ) ; pub const CLSCTX_NO_FAILURE_LOG : CLSCTX = CLSCTX ( 16384u32 ) ; pub const CLSCTX_DISABLE_AAA : CLSCTX = CLSCTX ( 32768u32 ) ; pub const CLSCTX_ENABLE_AAA : CLSCTX = CLSCTX ( 65536u32 ) ; pub const CLSCTX_FROM_DEFAULT_CONTEXT : CLSCTX = CLSCTX ( 131072u32 ) ; pub const CLSCTX_ACTIVATE_X86_SERVER : CLSCTX = CLSCTX ( 262144u32 ) ; pub const CLSCTX_ACTIVATE_32_BIT_SERVER : CLSCTX = CLSCTX ( 262144u32 ) ; pub const CLSCTX_ACTIVATE_64_BIT_SERVER : CLSCTX = CLSCTX ( 524288u32 ) ; pub const CLSCTX_ENABLE_CLOAKING : CLSCTX = CLSCTX ( 1048576u32 ) ; pub const CLSCTX_APPCONTAINER : CLSCTX = CLSCTX ( 4194304u32 ) ; pub const CLSCTX_ACTIVATE_AAA_AS_IU : CLSCTX = CLSCTX ( 8388608u32 ) ; pub const CLSCTX_RESERVED6 : CLSCTX = CLSCTX ( 16777216u32 ) ; pub const CLSCTX_ACTIVATE_ARM32_SERVER : CLSCTX = CLSCTX ( 33554432u32 ) ; pub const CLSCTX_PS_DLL : CLSCTX = CLSCTX ( 2147483648u32 ) ; pub const CLSCTX_ALL : CLSCTX = CLSCTX ( 23u32 ) ; pub const CLSCTX_SERVER : CLSCTX = CLSCTX ( 21u32 ) ; impl :: std :: convert :: From < u32 > for CLSCTX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CLSCTX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CLSCTX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CLSCTX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CLSCTX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CLSCTX { 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 COINIT ( pub u32 ) ; pub const COINIT_APARTMENTTHREADED : COINIT = COINIT ( 2u32 ) ; pub const COINIT_MULTITHREADED : COINIT = COINIT ( 0u32 ) ; pub const COINIT_DISABLE_OLE1DDE : COINIT = COINIT ( 4u32 ) ; pub const COINIT_SPEED_OVER_MEMORY : COINIT = COINIT ( 8u32 ) ; impl :: std :: convert :: From < u32 > for COINIT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COINIT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for COINIT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for COINIT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for COINIT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for COINIT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub unsafe fn CoCreateInstance < 'a , T : :: windows :: Interface > ( rclsid : * const :: windows :: Guid , punkouter : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , dwclscontext : CLSCTX , ) -> :: windows :: Result < T > { # [ cfg ( windows ) ] { # [ link ( name ="OLE32" ) ] extern "system" { fn CoCreateInstance ( rclsid : * const :: windows :: Guid , punkouter : :: windows :: RawPtr , dwclscontext : CLSCTX , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } let mut result__ = :: std :: option :: Option :: None ; CoCreateInstance ( :: std :: mem :: transmute ( rclsid ) , punkouter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwclscontext ) , & < T as :: windows :: Interface > :: IID , :: windows :: Abi :: set_abi ( & mut result__ ) ) . and_some ( result__ ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CoInitializeEx < > ( pvreserved : * mut :: std :: ffi :: c_void , dwcoinit : COINIT , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="OLE32" ) ] extern "system" { fn CoInitializeEx ( pvreserved : * mut :: std :: ffi :: c_void , dwcoinit : COINIT ) -> :: windows :: HRESULT ; } CoInitializeEx ( :: std :: mem :: transmute ( pvreserved ) , :: std :: mem :: transmute ( dwcoinit ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CoTaskMemAlloc < > ( cb : usize , ) -> * mut :: std :: ffi :: c_void { # [ cfg ( windows ) ] { # [ link ( name ="OLE32" ) ] extern "system" { fn CoTaskMemAlloc ( cb : usize ) -> * mut :: std :: ffi :: c_void ; } CoTaskMemAlloc ( :: std :: mem :: transmute ( cb ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CoTaskMemFree < > ( pv : * mut :: std :: ffi :: c_void , ) { # [ cfg ( windows ) ] { # [ link ( name ="OLE32" ) ] extern "system" { fn CoTaskMemFree ( pv : * mut :: std :: ffi :: c_void ) ; } CoTaskMemFree ( :: std :: mem :: transmute ( pv ) ) } # [ 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 LibraryLoader { pub unsafe fn GetModuleHandleA < 'a , > ( lpmodulename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HINSTANCE { # [ cfg ( windows ) ] { # [ link ( name ="KERNEL32" ) ] extern "system" { fn GetModuleHandleA ( lpmodulename : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HINSTANCE ; } GetModuleHandleA ( 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 OleAutomation { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDispatch ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDispatch { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 132096 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IRecordInfo ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IRecordInfo { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 47 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SAFEARRAY { pub cDims : u16 , pub fFeatures : u16 , pub cbElements : u32 , pub cLocks : u32 , pub pvData : * mut :: std :: ffi :: c_void , pub rgsabound : [ SAFEARRAYBOUND ;1 ] } impl SAFEARRAY { } impl :: std :: default :: Default for SAFEARRAY { fn default ( ) -> Self { Self { cDims : 0 , fFeatures : 0 , cbElements : 0 , cLocks : 0 , pvData : :: std :: ptr :: null_mut ( ) , rgsabound : [ :: std :: default :: Default :: default ( ) ;1 ] } } } impl :: std :: fmt :: Debug for SAFEARRAY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SAFEARRAY" ) . field ( "cDims" , & self . cDims ) . field ( "fFeatures" , & self . fFeatures ) . field ( "cbElements" , & self . cbElements ) . field ( "cLocks" , & self . cLocks ) . field ( "pvData" , & self . pvData ) . field ( "rgsabound" , & self . rgsabound ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SAFEARRAY { fn eq ( & self , other : & Self ) -> bool { self . cDims == other . cDims && self . fFeatures == other . fFeatures && self . cbElements == other . cbElements && self . cLocks == other . cLocks && self . pvData == other . pvData && self . rgsabound == other . rgsabound } } impl :: std :: cmp :: Eq for SAFEARRAY { } unsafe impl :: windows :: Abi for SAFEARRAY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SAFEARRAYBOUND { pub cElements : u32 , pub lLbound : i32 } impl SAFEARRAYBOUND { } impl :: std :: default :: Default for SAFEARRAYBOUND { fn default ( ) -> Self { Self { cElements : 0 , lLbound : 0 } } } impl :: std :: fmt :: Debug for SAFEARRAYBOUND { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SAFEARRAYBOUND" ) . field ( "cElements" , & self . cElements ) . field ( "lLbound" , & self . lLbound ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SAFEARRAYBOUND { fn eq ( & self , other : & Self ) -> bool { self . cElements == other . cElements && self . lLbound == other . lLbound } } impl :: std :: cmp :: Eq for SAFEARRAYBOUND { } unsafe impl :: windows :: Abi for SAFEARRAYBOUND { type Abi = Self ; type DefaultType = Self ; } impl :: std :: clone :: Clone for VARIANT { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub struct VARIANT { pub Anonymous : VARIANT_0 } impl VARIANT { } impl :: std :: cmp :: PartialEq for VARIANT { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for VARIANT { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct VARIANT_abi { pub Anonymous : VARIANT_0_abi } unsafe impl :: windows :: Abi for VARIANT { type Abi = VARIANT_abi ; type DefaultType = Self ; } impl :: std :: clone :: Clone for VARIANT_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub union VARIANT_0 { pub Anonymous : VARIANT_0_0_abi , pub decVal : super::SystemServices:: DECIMAL } impl VARIANT_0 { } impl :: std :: cmp :: PartialEq for VARIANT_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for VARIANT_0 { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub union VARIANT_0_abi { pub Anonymous : VARIANT_0_0_abi , pub decVal : super::SystemServices:: DECIMAL } unsafe impl :: windows :: Abi for VARIANT_0 { type Abi = VARIANT_0_abi ; type DefaultType = Self ; } impl :: std :: clone :: Clone for VARIANT_0_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub struct VARIANT_0_0 { pub vt : u16 , pub wReserved1 : u16 , pub wReserved2 : u16 , pub wReserved3 : u16 , pub Anonymous : VARIANT_0_0_0 } impl VARIANT_0_0 { } impl :: std :: cmp :: PartialEq for VARIANT_0_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for VARIANT_0_0 { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct VARIANT_0_0_abi { pub vt : u16 , pub wReserved1 : u16 , pub wReserved2 : u16 , pub wReserved3 : u16 , pub Anonymous : VARIANT_0_0_0_abi } unsafe impl :: windows :: Abi for VARIANT_0_0 { type Abi = VARIANT_0_0_abi ; type DefaultType = Self ; } impl :: std :: clone :: Clone for VARIANT_0_0_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub union VARIANT_0_0_0 { pub llVal : i64 , pub lVal : i32 , pub bVal : u8 , pub iVal : i16 , pub fltVal : f32 , pub dblVal : f64 , pub boolVal : i16 , pub __OBSOLETE__VARIANT_BOOL : i16 , pub scode : i32 , pub cyVal : super::SystemServices:: CY , pub date : f64 , pub bstrVal : super::super::Foundation:: BSTR_abi , pub punkVal : :: windows :: RawPtr , pub pdispVal : :: windows :: RawPtr , pub parray : * mut SAFEARRAY , pub pbVal : * mut u8 , pub piVal : * mut i16 , pub plVal : * mut i32 , pub pllVal : * mut i64 , pub pfltVal : * mut f32 , pub pdblVal : * mut f64 , pub pboolVal : * mut i16 , pub __OBSOLETE__VARIANT_PBOOL : * mut i16 , pub pscode : * mut i32 , pub pcyVal : * mut super::SystemServices:: CY , pub pdate : * mut f64 , pub pbstrVal : * mut super::super::Foundation:: BSTR_abi , pub ppunkVal : * mut :: windows :: RawPtr , pub ppdispVal : * mut :: windows :: RawPtr , pub pparray : * mut * mut SAFEARRAY , pub pvarVal : * mut VARIANT_abi , pub byref : * mut :: std :: ffi :: c_void , pub cVal : super::SystemServices:: CHAR , pub uiVal : u16 , pub ulVal : u32 , pub ullVal : u64 , pub intVal : i32 , pub uintVal : u32 , pub pdecVal : * mut super::SystemServices:: DECIMAL , pub pcVal : super::super::Foundation:: PSTR , pub puiVal : * mut u16 , pub pulVal : * mut u32 , pub pullVal : * mut u64 , pub pintVal : * mut i32 , pub puintVal : * mut u32 , pub Anonymous : VARIANT_0_0_0_0_abi } impl VARIANT_0_0_0 { } impl :: std :: cmp :: PartialEq for VARIANT_0_0_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for VARIANT_0_0_0 { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub union VARIANT_0_0_0_abi { pub llVal : i64 , pub lVal : i32 , pub bVal : u8 , pub iVal : i16 , pub fltVal : f32 , pub dblVal : f64 , pub boolVal : i16 , pub __OBSOLETE__VARIANT_BOOL : i16 , pub scode : i32 , pub cyVal : super::SystemServices:: CY , pub date : f64 , pub bstrVal : super::super::Foundation:: BSTR_abi , pub punkVal : :: windows :: RawPtr , pub pdispVal : :: windows :: RawPtr , pub parray : * mut SAFEARRAY , pub pbVal : * mut u8 , pub piVal : * mut i16 , pub plVal : * mut i32 , pub pllVal : * mut i64 , pub pfltVal : * mut f32 , pub pdblVal : * mut f64 , pub pboolVal : * mut i16 , pub __OBSOLETE__VARIANT_PBOOL : * mut i16 , pub pscode : * mut i32 , pub pcyVal : * mut super::SystemServices:: CY , pub pdate : * mut f64 , pub pbstrVal : * mut super::super::Foundation:: BSTR_abi , pub ppunkVal : * mut :: windows :: RawPtr , pub ppdispVal : * mut :: windows :: RawPtr , pub pparray : * mut * mut SAFEARRAY , pub pvarVal : * mut VARIANT_abi , pub byref : * mut :: std :: ffi :: c_void , pub cVal : super::SystemServices:: CHAR , pub uiVal : u16 , pub ulVal : u32 , pub ullVal : u64 , pub intVal : i32 , pub uintVal : u32 , pub pdecVal : * mut super::SystemServices:: DECIMAL , pub pcVal : super::super::Foundation:: PSTR , pub puiVal : * mut u16 , pub pulVal : * mut u32 , pub pullVal : * mut u64 , pub pintVal : * mut i32 , pub puintVal : * mut u32 , pub Anonymous : VARIANT_0_0_0_0_abi } unsafe impl :: windows :: Abi for VARIANT_0_0_0 { type Abi = VARIANT_0_0_0_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct VARIANT_0_0_0_0 { pub pvRecord : * mut :: std :: ffi :: c_void , pub pRecInfo : :: std :: option :: Option < IRecordInfo > } impl VARIANT_0_0_0_0 { } impl :: std :: default :: Default for VARIANT_0_0_0_0 { fn default ( ) -> Self { Self { pvRecord : :: std :: ptr :: null_mut ( ) , pRecInfo : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for VARIANT_0_0_0_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "pvRecord" , & self . pvRecord ) . field ( "pRecInfo" , & self . pRecInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for VARIANT_0_0_0_0 { fn eq ( & self , other : & Self ) -> bool { self . pvRecord == other . pvRecord && self . pRecInfo == other . pRecInfo } } impl :: std :: cmp :: Eq for VARIANT_0_0_0_0 { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct VARIANT_0_0_0_0_abi { pub pvRecord : * mut :: std :: ffi :: c_void , pub pRecInfo : :: windows :: RawPtr } unsafe impl :: windows :: Abi for VARIANT_0_0_0_0 { type Abi = VARIANT_0_0_0_0_abi ; 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 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 ( C ) ] pub union CY { pub Anonymous : CY_0 , pub int64 : i64 } impl CY { } impl :: std :: cmp :: PartialEq for CY { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for CY { } unsafe impl :: windows :: Abi for CY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CY_0 { pub Lo : u32 , pub Hi : i32 } impl CY_0 { } impl :: std :: default :: Default for CY_0 { fn default ( ) -> Self { Self { Lo : 0 , Hi : 0 } } } impl :: std :: fmt :: Debug for CY_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "Lo" , & self . Lo ) . field ( "Hi" , & self . Hi ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CY_0 { fn eq ( & self , other : & Self ) -> bool { self . Lo == other . Lo && self . Hi == other . Hi } } impl :: std :: cmp :: Eq for CY_0 { } unsafe impl :: windows :: Abi for CY_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL { pub wReserved : u16 , pub Anonymous1 : DECIMAL_0 , pub Hi32 : u32 , pub Anonymous2 : DECIMAL_1 } impl DECIMAL { } impl :: std :: cmp :: PartialEq for DECIMAL { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL { } unsafe impl :: windows :: Abi for DECIMAL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DECIMAL_0 { pub Anonymous : DECIMAL_0_0 , pub signscale : u16 } impl DECIMAL_0 { } impl :: std :: cmp :: PartialEq for DECIMAL_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL_0 { } unsafe impl :: windows :: Abi for DECIMAL_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL_0_0 { pub scale : u8 , pub sign : u8 } impl DECIMAL_0_0 { } impl :: std :: default :: Default for DECIMAL_0_0 { fn default ( ) -> Self { Self { scale : 0 , sign : 0 } } } impl :: std :: fmt :: Debug for DECIMAL_0_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "scale" , & self . scale ) . field ( "sign" , & self . sign ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DECIMAL_0_0 { fn eq ( & self , other : & Self ) -> bool { self . scale == other . scale && self . sign == other . sign } } impl :: std :: cmp :: Eq for DECIMAL_0_0 { } unsafe impl :: windows :: Abi for DECIMAL_0_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DECIMAL_1 { pub Anonymous : DECIMAL_1_0 , pub Lo64 : u64 } impl DECIMAL_1 { } impl :: std :: cmp :: PartialEq for DECIMAL_1 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL_1 { } unsafe impl :: windows :: Abi for DECIMAL_1 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL_1_0 { pub Lo32 : u32 , pub Mid32 : u32 } impl DECIMAL_1_0 { } impl :: std :: default :: Default for DECIMAL_1_0 { fn default ( ) -> Self { Self { Lo32 : 0 , Mid32 : 0 } } } impl :: std :: fmt :: Debug for DECIMAL_1_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "Lo32" , & self . Lo32 ) . field ( "Mid32" , & self . Mid32 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DECIMAL_1_0 { fn eq ( & self , other : & Self ) -> bool { self . Lo32 == other . Lo32 && self . Mid32 == other . Mid32 } } impl :: std :: cmp :: Eq for DECIMAL_1_0 { } unsafe impl :: windows :: Abi for DECIMAL_1_0 { 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 Threading { pub unsafe fn GetCurrentThreadId < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="KERNEL32" ) ] extern "system" { fn GetCurrentThreadId ( ) -> u32 ; } GetCurrentThreadId ( ) } # [ 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 WinRT { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EventRegistrationToken { pub value : i64 } impl EventRegistrationToken { } impl :: std :: default :: Default for EventRegistrationToken { fn default ( ) -> Self { Self { value : 0 } } } impl :: std :: fmt :: Debug for EventRegistrationToken { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "EventRegistrationToken" ) . field ( "value" , & self . value ) . finish ( ) } } impl :: std :: cmp :: PartialEq for EventRegistrationToken { fn eq ( & self , other : & Self ) -> bool { self . value == other . value } } impl :: std :: cmp :: Eq for EventRegistrationToken { } unsafe impl :: windows :: Abi for EventRegistrationToken { 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 HiDpi { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct PROCESS_DPI_AWARENESS ( pub i32 ) ; pub const PROCESS_DPI_UNAWARE : PROCESS_DPI_AWARENESS = PROCESS_DPI_AWARENESS ( 0i32 ) ; pub const PROCESS_SYSTEM_DPI_AWARE : PROCESS_DPI_AWARENESS = PROCESS_DPI_AWARENESS ( 1i32 ) ; pub const PROCESS_PER_MONITOR_DPI_AWARE : PROCESS_DPI_AWARENESS = PROCESS_DPI_AWARENESS ( 2i32 ) ; impl :: std :: convert :: From < i32 > for PROCESS_DPI_AWARENESS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PROCESS_DPI_AWARENESS { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn SetProcessDpiAwareness < > ( value : PROCESS_DPI_AWARENESS , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="onecoreuap" ) ] extern "system" { fn SetProcessDpiAwareness ( value : PROCESS_DPI_AWARENESS ) -> :: windows :: HRESULT ; } SetProcessDpiAwareness ( :: std :: mem :: transmute ( value ) ) . ok ( ) } # [ 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 KeyboardAndMouseInput { pub unsafe fn SetFocus < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetFocus ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } SetFocus ( hwnd . 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 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/webview2-com-bindings-81af9830701e2a45/out/windows.rs:1:710065 [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] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1 | # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Microsoft { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Web { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod WebView2 { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Win32 { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct COREWEBVIEW2_BOUNDS_MODE ( pub i32 ) ; pub const COREWEBVIEW2_BOUNDS_MODE_USE_RAW_PIXELS : COREWEBVIEW2_BOUNDS_MODE = COREWEBVIEW2_BOUNDS_MODE ( 0i32 ) ; pub const COREWEBVIEW2_BOUNDS_MODE_USE_RASTERIZATION_SCALE : COREWEBVIEW2_BOUNDS_MODE = COREWEBVIEW2_BOUNDS_MODE ( 1i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_BOUNDS_MODE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_BOUNDS_MODE { 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 COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT ( pub i32 ) ; pub const COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT_PNG : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT = COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT ( 0i32 ) ; pub const COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT_JPEG : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT = COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT ( 1i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct COREWEBVIEW2_COLOR { pub A : u8 , pub R : u8 , pub G : u8 , pub B : u8 } impl COREWEBVIEW2_COLOR { } impl :: std :: default :: Default for COREWEBVIEW2_COLOR { fn default ( ) -> Self { Self { A : 0 , R : 0 , G : 0 , B : 0 } } } impl :: std :: fmt :: Debug for COREWEBVIEW2_COLOR { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "COREWEBVIEW2_COLOR" ) . field ( "A" , & self . A ) . field ( "R" , & self . R ) . field ( "G" , & self . G ) . field ( "B" , & self . B ) . finish ( ) } } impl :: std :: cmp :: PartialEq for COREWEBVIEW2_COLOR { fn eq ( & self , other : & Self ) -> bool { self . A == other . A && self . R == other . R && self . G == other . G && self . B == other . B } } impl :: std :: cmp :: Eq for COREWEBVIEW2_COLOR { } unsafe impl :: windows :: Abi for COREWEBVIEW2_COLOR { 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 COREWEBVIEW2_COOKIE_SAME_SITE_KIND ( pub i32 ) ; pub const COREWEBVIEW2_COOKIE_SAME_SITE_KIND_NONE : COREWEBVIEW2_COOKIE_SAME_SITE_KIND = COREWEBVIEW2_COOKIE_SAME_SITE_KIND ( 0i32 ) ; pub const COREWEBVIEW2_COOKIE_SAME_SITE_KIND_LAX : COREWEBVIEW2_COOKIE_SAME_SITE_KIND = COREWEBVIEW2_COOKIE_SAME_SITE_KIND ( 1i32 ) ; pub const COREWEBVIEW2_COOKIE_SAME_SITE_KIND_STRICT : COREWEBVIEW2_COOKIE_SAME_SITE_KIND = COREWEBVIEW2_COOKIE_SAME_SITE_KIND ( 2i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_COOKIE_SAME_SITE_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_COOKIE_SAME_SITE_KIND { 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 COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( pub i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NONE : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 0i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_FAILED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 1i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 2i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 3i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_NAME_TOO_LONG : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 4i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 5i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_MALICIOUS : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 6i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 7i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED_BY_POLICY : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 8i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 9i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 10i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 11i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 12i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 13i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_DISCONNECTED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 14i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_SERVER_DOWN : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 15i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 16i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 17i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 18i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 19i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 20i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CERTIFICATE_PROBLEM : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 21i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 22i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_UNEXPECTED_RESPONSE : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 23i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CONTENT_LENGTH_MISMATCH : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 24i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_SERVER_CROSS_ORIGIN_REDIRECT : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 25i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 26i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 27i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_USER_PAUSED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 28i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON_DOWNLOAD_PROCESS_CRASHED : COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON = COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON ( 29i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON { 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 COREWEBVIEW2_DOWNLOAD_STATE ( pub i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_STATE_IN_PROGRESS : COREWEBVIEW2_DOWNLOAD_STATE = COREWEBVIEW2_DOWNLOAD_STATE ( 0i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_STATE_INTERRUPTED : COREWEBVIEW2_DOWNLOAD_STATE = COREWEBVIEW2_DOWNLOAD_STATE ( 1i32 ) ; pub const COREWEBVIEW2_DOWNLOAD_STATE_COMPLETED : COREWEBVIEW2_DOWNLOAD_STATE = COREWEBVIEW2_DOWNLOAD_STATE ( 2i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_DOWNLOAD_STATE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_DOWNLOAD_STATE { 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 COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND ( pub i32 ) ; pub const COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND = COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND ( 0i32 ) ; pub const COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_ALLOW : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND = COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND ( 1i32 ) ; pub const COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND_DENY_CORS : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND = COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND ( 2i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND { 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 COREWEBVIEW2_KEY_EVENT_KIND ( pub i32 ) ; pub const COREWEBVIEW2_KEY_EVENT_KIND_KEY_DOWN : COREWEBVIEW2_KEY_EVENT_KIND = COREWEBVIEW2_KEY_EVENT_KIND ( 0i32 ) ; pub const COREWEBVIEW2_KEY_EVENT_KIND_KEY_UP : COREWEBVIEW2_KEY_EVENT_KIND = COREWEBVIEW2_KEY_EVENT_KIND ( 1i32 ) ; pub const COREWEBVIEW2_KEY_EVENT_KIND_SYSTEM_KEY_DOWN : COREWEBVIEW2_KEY_EVENT_KIND = COREWEBVIEW2_KEY_EVENT_KIND ( 2i32 ) ; pub const COREWEBVIEW2_KEY_EVENT_KIND_SYSTEM_KEY_UP : COREWEBVIEW2_KEY_EVENT_KIND = COREWEBVIEW2_KEY_EVENT_KIND ( 3i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_KEY_EVENT_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_KEY_EVENT_KIND { 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 COREWEBVIEW2_MOUSE_EVENT_KIND ( pub i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_HORIZONTAL_WHEEL : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 526i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_DOUBLE_CLICK : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 515i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_DOWN : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 513i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_LEFT_BUTTON_UP : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 514i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_LEAVE : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 675i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_DOUBLE_CLICK : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 521i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_DOWN : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 519i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_MIDDLE_BUTTON_UP : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 520i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_MOVE : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 512i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_DOUBLE_CLICK : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 518i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_DOWN : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 516i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_RIGHT_BUTTON_UP : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 517i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_WHEEL : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 522i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOUBLE_CLICK : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 525i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_DOWN : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 523i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_KIND_X_BUTTON_UP : COREWEBVIEW2_MOUSE_EVENT_KIND = COREWEBVIEW2_MOUSE_EVENT_KIND ( 524i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_MOUSE_EVENT_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_MOUSE_EVENT_KIND { 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 COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( pub i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_NONE : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 0i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_LEFT_BUTTON : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 1i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_RIGHT_BUTTON : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 2i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_SHIFT : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 4i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_CONTROL : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 8i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_MIDDLE_BUTTON : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 16i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_X_BUTTON1 : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 32i32 ) ; pub const COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS_X_BUTTON2 : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS = COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS ( 64i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS { 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 COREWEBVIEW2_MOVE_FOCUS_REASON ( pub i32 ) ; pub const COREWEBVIEW2_MOVE_FOCUS_REASON_PROGRAMMATIC : COREWEBVIEW2_MOVE_FOCUS_REASON = COREWEBVIEW2_MOVE_FOCUS_REASON ( 0i32 ) ; pub const COREWEBVIEW2_MOVE_FOCUS_REASON_NEXT : COREWEBVIEW2_MOVE_FOCUS_REASON = COREWEBVIEW2_MOVE_FOCUS_REASON ( 1i32 ) ; pub const COREWEBVIEW2_MOVE_FOCUS_REASON_PREVIOUS : COREWEBVIEW2_MOVE_FOCUS_REASON = COREWEBVIEW2_MOVE_FOCUS_REASON ( 2i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_MOVE_FOCUS_REASON { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_MOVE_FOCUS_REASON { 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 COREWEBVIEW2_PERMISSION_KIND ( pub i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_UNKNOWN_PERMISSION : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 0i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_MICROPHONE : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 1i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_CAMERA : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 2i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_GEOLOCATION : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 3i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_NOTIFICATIONS : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 4i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_OTHER_SENSORS : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 5i32 ) ; pub const COREWEBVIEW2_PERMISSION_KIND_CLIPBOARD_READ : COREWEBVIEW2_PERMISSION_KIND = COREWEBVIEW2_PERMISSION_KIND ( 6i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_PERMISSION_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_PERMISSION_KIND { 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 COREWEBVIEW2_PERMISSION_STATE ( pub i32 ) ; pub const COREWEBVIEW2_PERMISSION_STATE_DEFAULT : COREWEBVIEW2_PERMISSION_STATE = COREWEBVIEW2_PERMISSION_STATE ( 0i32 ) ; pub const COREWEBVIEW2_PERMISSION_STATE_ALLOW : COREWEBVIEW2_PERMISSION_STATE = COREWEBVIEW2_PERMISSION_STATE ( 1i32 ) ; pub const COREWEBVIEW2_PERMISSION_STATE_DENY : COREWEBVIEW2_PERMISSION_STATE = COREWEBVIEW2_PERMISSION_STATE ( 2i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_PERMISSION_STATE { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_PERMISSION_STATE { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct COREWEBVIEW2_PHYSICAL_KEY_STATUS { pub RepeatCount : u32 , pub ScanCode : u32 , pub IsExtendedKey : super::super::super::super::Windows::Win32::Foundation:: BOOL , pub IsMenuKeyDown : super::super::super::super::Windows::Win32::Foundation:: BOOL , pub WasKeyDown : super::super::super::super::Windows::Win32::Foundation:: BOOL , pub IsKeyReleased : super::super::super::super::Windows::Win32::Foundation:: BOOL } impl COREWEBVIEW2_PHYSICAL_KEY_STATUS { } impl :: std :: default :: Default for COREWEBVIEW2_PHYSICAL_KEY_STATUS { fn default ( ) -> Self { Self { RepeatCount : 0 , ScanCode : 0 , IsExtendedKey : :: std :: default :: Default :: default ( ) , IsMenuKeyDown : :: std :: default :: Default :: default ( ) , WasKeyDown : :: std :: default :: Default :: default ( ) , IsKeyReleased : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for COREWEBVIEW2_PHYSICAL_KEY_STATUS { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "COREWEBVIEW2_PHYSICAL_KEY_STATUS" ) . field ( "RepeatCount" , & self . RepeatCount ) . field ( "ScanCode" , & self . ScanCode ) . field ( "IsExtendedKey" , & self . IsExtendedKey ) . field ( "IsMenuKeyDown" , & self . IsMenuKeyDown ) . field ( "WasKeyDown" , & self . WasKeyDown ) . field ( "IsKeyReleased" , & self . IsKeyReleased ) . finish ( ) } } impl :: std :: cmp :: PartialEq for COREWEBVIEW2_PHYSICAL_KEY_STATUS { fn eq ( & self , other : & Self ) -> bool { self . RepeatCount == other . RepeatCount && self . ScanCode == other . ScanCode && self . IsExtendedKey == other . IsExtendedKey && self . IsMenuKeyDown == other . IsMenuKeyDown && self . WasKeyDown == other . WasKeyDown && self . IsKeyReleased == other . IsKeyReleased } } impl :: std :: cmp :: Eq for COREWEBVIEW2_PHYSICAL_KEY_STATUS { } unsafe impl :: windows :: Abi for COREWEBVIEW2_PHYSICAL_KEY_STATUS { 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 COREWEBVIEW2_POINTER_EVENT_KIND ( pub i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_ACTIVATE : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 587i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_DOWN : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 582i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_ENTER : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 585i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_LEAVE : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 586i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_UP : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 583i32 ) ; pub const COREWEBVIEW2_POINTER_EVENT_KIND_UPDATE : COREWEBVIEW2_POINTER_EVENT_KIND = COREWEBVIEW2_POINTER_EVENT_KIND ( 581i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_POINTER_EVENT_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_POINTER_EVENT_KIND { 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 COREWEBVIEW2_PROCESS_FAILED_KIND ( pub i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_BROWSER_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 0i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 1i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 2i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_FRAME_RENDER_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 3i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_UTILITY_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 4i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_SANDBOX_HELPER_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 5i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_GPU_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 6i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_PPAPI_PLUGIN_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 7i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_PPAPI_BROKER_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 8i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_KIND_UNKNOWN_PROCESS_EXITED : COREWEBVIEW2_PROCESS_FAILED_KIND = COREWEBVIEW2_PROCESS_FAILED_KIND ( 9i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_PROCESS_FAILED_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_PROCESS_FAILED_KIND { 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 COREWEBVIEW2_PROCESS_FAILED_REASON ( pub i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_UNEXPECTED : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 0i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_UNRESPONSIVE : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 1i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_TERMINATED : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 2i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_CRASHED : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 3i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_LAUNCH_FAILED : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 4i32 ) ; pub const COREWEBVIEW2_PROCESS_FAILED_REASON_OUT_OF_MEMORY : COREWEBVIEW2_PROCESS_FAILED_REASON = COREWEBVIEW2_PROCESS_FAILED_REASON ( 5i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_PROCESS_FAILED_REASON { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_PROCESS_FAILED_REASON { 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 COREWEBVIEW2_SCRIPT_DIALOG_KIND ( pub i32 ) ; pub const COREWEBVIEW2_SCRIPT_DIALOG_KIND_ALERT : COREWEBVIEW2_SCRIPT_DIALOG_KIND = COREWEBVIEW2_SCRIPT_DIALOG_KIND ( 0i32 ) ; pub const COREWEBVIEW2_SCRIPT_DIALOG_KIND_CONFIRM : COREWEBVIEW2_SCRIPT_DIALOG_KIND = COREWEBVIEW2_SCRIPT_DIALOG_KIND ( 1i32 ) ; pub const COREWEBVIEW2_SCRIPT_DIALOG_KIND_PROMPT : COREWEBVIEW2_SCRIPT_DIALOG_KIND = COREWEBVIEW2_SCRIPT_DIALOG_KIND ( 2i32 ) ; pub const COREWEBVIEW2_SCRIPT_DIALOG_KIND_BEFOREUNLOAD : COREWEBVIEW2_SCRIPT_DIALOG_KIND = COREWEBVIEW2_SCRIPT_DIALOG_KIND ( 3i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_SCRIPT_DIALOG_KIND { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_SCRIPT_DIALOG_KIND { 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 COREWEBVIEW2_WEB_ERROR_STATUS ( pub i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_UNKNOWN : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 0i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_COMMON_NAME_IS_INCORRECT : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 1i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_EXPIRED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 2i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CLIENT_CERTIFICATE_CONTAINS_ERRORS : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 3i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_REVOKED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 4i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CERTIFICATE_IS_INVALID : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 5i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_SERVER_UNREACHABLE : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 6i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_TIMEOUT : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 7i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_ERROR_HTTP_INVALID_SERVER_RESPONSE : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 8i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CONNECTION_ABORTED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 9i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CONNECTION_RESET : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 10i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_DISCONNECTED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 11i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_CANNOT_CONNECT : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 12i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_HOST_NAME_NOT_RESOLVED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 13i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_OPERATION_CANCELED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 14i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_REDIRECT_FAILED : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 15i32 ) ; pub const COREWEBVIEW2_WEB_ERROR_STATUS_UNEXPECTED_ERROR : COREWEBVIEW2_WEB_ERROR_STATUS = COREWEBVIEW2_WEB_ERROR_STATUS ( 16i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_WEB_ERROR_STATUS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_WEB_ERROR_STATUS { 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 COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( pub i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_ALL : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 0i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 1i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_STYLESHEET : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 2i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_IMAGE : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 3i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MEDIA : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 4i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_FONT : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 5i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_SCRIPT : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 6i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_XML_HTTP_REQUEST : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 7i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_FETCH : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 8i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_TEXT_TRACK : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 9i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_EVENT_SOURCE : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 10i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_WEBSOCKET : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 11i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MANIFEST : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 12i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_SIGNED_EXCHANGE : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 13i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_PING : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 14i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_CSP_VIOLATION_REPORT : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 15i32 ) ; pub const COREWEBVIEW2_WEB_RESOURCE_CONTEXT_OTHER : COREWEBVIEW2_WEB_RESOURCE_CONTEXT = COREWEBVIEW2_WEB_RESOURCE_CONTEXT ( 16i32 ) ; impl :: std :: convert :: From < i32 > for COREWEBVIEW2_WEB_RESOURCE_CONTEXT { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COREWEBVIEW2_WEB_RESOURCE_CONTEXT { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn CompareBrowserVersions < 'a , > ( version1 : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , version2 : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , result : * mut i32 , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="WebView2LoaderStatic" , kind = "static" ) ] extern "system" { fn CompareBrowserVersions ( version1 : super::super::super::super::Windows::Win32::Foundation:: PWSTR , version2 : super::super::super::super::Windows::Win32::Foundation:: PWSTR , result : * mut i32 ) -> :: windows :: HRESULT ; } CompareBrowserVersions ( version1 . into_param ( ) . abi ( ) , version2 . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( result ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCoreWebView2Environment < 'a , > ( environmentcreatedhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="WebView2LoaderStatic" , kind = "static" ) ] extern "system" { fn CreateCoreWebView2Environment ( environmentcreatedhandler : :: windows :: RawPtr ) -> :: windows :: HRESULT ; } CreateCoreWebView2Environment ( environmentcreatedhandler . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CreateCoreWebView2EnvironmentWithOptions < 'a , > ( browserexecutablefolder : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , userdatafolder : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , environmentoptions : impl :: windows :: IntoParam < 'a , ICoreWebView2EnvironmentOptions > , environmentcreatedhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler > , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="WebView2LoaderStatic" , kind = "static" ) ] extern "system" { fn CreateCoreWebView2EnvironmentWithOptions ( browserexecutablefolder : super::super::super::super::Windows::Win32::Foundation:: PWSTR , userdatafolder : super::super::super::super::Windows::Win32::Foundation:: PWSTR , environmentoptions : :: windows :: RawPtr , environmentcreatedhandler : :: windows :: RawPtr ) -> :: windows :: HRESULT ; } CreateCoreWebView2EnvironmentWithOptions ( browserexecutablefolder . into_param ( ) . abi ( ) , userdatafolder . into_param ( ) . abi ( ) , environmentoptions . into_param ( ) . abi ( ) , environmentcreatedhandler . into_param ( ) . abi ( ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn GetAvailableCoreWebView2BrowserVersionString < 'a , > ( browserexecutablefolder : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="WebView2LoaderStatic" , kind = "static" ) ] extern "system" { fn GetAvailableCoreWebView2BrowserVersionString ( browserexecutablefolder : super::super::super::super::Windows::Win32::Foundation:: PWSTR , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR ) -> :: windows :: HRESULT ; } GetAvailableCoreWebView2BrowserVersionString ( browserexecutablefolder . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( versioninfo ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2 ( :: windows :: IUnknown ) ; impl ICoreWebView2 { pub unsafe fn get_Settings < > ( & self , ) -> :: windows :: Result < ICoreWebView2Settings > { let mut result__ : < ICoreWebView2Settings as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Settings > ( result__ ) } pub unsafe fn get_Source < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn Navigate < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateToString < 'a , > ( & self , htmlcontent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , htmlcontent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ContentLoading < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContentLoadingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContentLoading < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_SourceChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2SourceChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_SourceChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_HistoryChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2HistoryChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_HistoryChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ScriptDialogOpening < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ScriptDialogOpeningEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ScriptDialogOpening < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_PermissionRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2PermissionRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_PermissionRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ProcessFailed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ProcessFailed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddScriptToExecuteOnDocumentCreated < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn RemoveScriptToExecuteOnDocumentCreated < 'a , > ( & self , id : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , id . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn ExecuteScript < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2ExecuteScriptCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CapturePreview < 'a , > ( & self , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CapturePreviewCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( imageformat ) , imagestream . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Reload < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsJson < 'a , > ( & self , webmessageasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , webmessageasjson . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsString < 'a , > ( & self , webmessageasstring : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , webmessageasstring . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebMessageReceived < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebMessageReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebMessageReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CallDevToolsProtocolMethod < 'a , > ( & self , methodname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , parametersasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , methodname . into_param ( ) . abi ( ) , parametersasjson . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_BrowserProcessId < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_CanGoBack < > ( & self , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoback ) , ) . ok ( ) } pub unsafe fn get_CanGoForward < > ( & self , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoforward ) , ) . ok ( ) } pub unsafe fn GoBack < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GoForward < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDevToolsProtocolEventReceiver < 'a , > ( & self , eventname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2DevToolsProtocolEventReceiver > { let mut result__ : < ICoreWebView2DevToolsProtocolEventReceiver as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , eventname . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2DevToolsProtocolEventReceiver > ( result__ ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_NewWindowRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewWindowRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewWindowRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DocumentTitleChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DocumentTitleChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DocumentTitleChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_DocumentTitle < > ( & self , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( title ) , ) . ok ( ) } pub unsafe fn AddHostObjectToScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , ) . ok ( ) } pub unsafe fn RemoveHostObjectFromScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn OpenDevToolsWindow < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_ContainsFullScreenElementChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContainsFullScreenElementChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContainsFullScreenElementChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ContainsFullScreenElement < > ( & self , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( containsfullscreenelement ) , ) . ok ( ) } pub unsafe fn add_WebResourceRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn RemoveWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn add_WindowCloseRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WindowCloseRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WindowCloseRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .60 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2 { type Vtable = ICoreWebView2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1995238091 ,1122 ,19860 , [ 172 ,131 ,66 ,58 ,103 ,147 ,119 ,94 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2 { 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 ICoreWebView2 { 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 ICoreWebView2_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 , settings : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , htmlcontent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , id : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasstring : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , methodname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , parametersasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , 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 , eventname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , receiver : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2AcceleratorKeyPressedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2AcceleratorKeyPressedEventArgs { pub unsafe fn get_KeyEventKind < > ( & self , keyeventkind : * mut COREWEBVIEW2_KEY_EVENT_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( keyeventkind ) , ) . ok ( ) } pub unsafe fn get_VirtualKey < > ( & self , virtualkey : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( virtualkey ) , ) . ok ( ) } pub unsafe fn get_KeyEventLParam < > ( & self , lparam : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( lparam ) , ) . ok ( ) } pub unsafe fn get_PhysicalKeyStatus < > ( & self , physicalkeystatus : * mut COREWEBVIEW2_PHYSICAL_KEY_STATUS , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( physicalkeystatus ) , ) . ok ( ) } pub unsafe fn get_Handled < > ( & self , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( handled ) , ) . ok ( ) } pub unsafe fn put_Handled < 'a , > ( & self , handled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , handled . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2AcceleratorKeyPressedEventArgs { type Vtable = ICoreWebView2AcceleratorKeyPressedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2675314570 ,64377 ,17086 , [ 153 ,144 ,123 ,86 ,144 ,15 ,169 ,199 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2AcceleratorKeyPressedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2AcceleratorKeyPressedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2AcceleratorKeyPressedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2AcceleratorKeyPressedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2AcceleratorKeyPressedEventArgs { 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 ICoreWebView2AcceleratorKeyPressedEventArgs { 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 ICoreWebView2AcceleratorKeyPressedEventArgs_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 , keyeventkind : * mut COREWEBVIEW2_KEY_EVENT_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , virtualkey : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , lparam : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , physicalkeystatus : * mut COREWEBVIEW2_PHYSICAL_KEY_STATUS , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2AcceleratorKeyPressedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2AcceleratorKeyPressedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2AcceleratorKeyPressedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2AcceleratorKeyPressedEventHandler { type Vtable = ICoreWebView2AcceleratorKeyPressedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2996600360 ,64121 ,16808 , [ 142 ,68 ,101 ,129 ,28 ,118 ,220 ,178 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2AcceleratorKeyPressedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2AcceleratorKeyPressedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2AcceleratorKeyPressedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2AcceleratorKeyPressedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2AcceleratorKeyPressedEventHandler { 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 ICoreWebView2AcceleratorKeyPressedEventHandler { 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 ICoreWebView2AcceleratorKeyPressedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , id : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , id . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler { type Vtable = ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3113445875 ,39697 ,18357 , [ 188 ,111 ,142 ,120 ,149 ,252 ,234 ,23 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler { 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 ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler { 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 ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_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 , errorcode : :: windows :: HRESULT , id : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2BytesReceivedChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2BytesReceivedChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2DownloadOperation > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2BytesReceivedChangedEventHandler { type Vtable = ICoreWebView2BytesReceivedChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2190379702 ,55628 ,16996 , [ 156 ,239 ,82 ,23 ,23 ,13 ,98 ,81 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2BytesReceivedChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2BytesReceivedChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2BytesReceivedChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2BytesReceivedChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2BytesReceivedChangedEventHandler { 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 ICoreWebView2BytesReceivedChangedEventHandler { 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 ICoreWebView2BytesReceivedChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CallDevToolsProtocolMethodCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CallDevToolsProtocolMethodCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , returnobjectasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , returnobjectasjson . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CallDevToolsProtocolMethodCompletedHandler { type Vtable = ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1548257776 ,24310 ,19546 , [ 149 ,44 ,216 ,241 ,185 ,45 ,5 ,116 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CallDevToolsProtocolMethodCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CallDevToolsProtocolMethodCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CallDevToolsProtocolMethodCompletedHandler { 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 ICoreWebView2CallDevToolsProtocolMethodCompletedHandler { 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 ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_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 , errorcode : :: windows :: HRESULT , returnobjectasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CapturePreviewCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CapturePreviewCompletedHandler { pub unsafe fn Invoke < > ( & self , errorcode : :: windows :: HRESULT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CapturePreviewCompletedHandler { type Vtable = ICoreWebView2CapturePreviewCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1769866729 ,15759 ,17914 , [ 150 ,244 ,143 ,254 ,30 ,222 ,218 ,245 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CapturePreviewCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CapturePreviewCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CapturePreviewCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CapturePreviewCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CapturePreviewCompletedHandler { 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 ICoreWebView2CapturePreviewCompletedHandler { 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 ICoreWebView2CapturePreviewCompletedHandler_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 , errorcode : :: windows :: HRESULT , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CompositionController ( :: windows :: IUnknown ) ; impl ICoreWebView2CompositionController { pub unsafe fn get_RootVisualTarget < > ( & self , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } pub unsafe fn put_RootVisualTarget < 'a , > ( & self , target : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , target . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SendMouseInput < 'a , > ( & self , eventkind : COREWEBVIEW2_MOUSE_EVENT_KIND , virtualkeys : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS , mousedata : u32 , point : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( eventkind ) , :: std :: mem :: transmute ( virtualkeys ) , :: std :: mem :: transmute ( mousedata ) , point . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SendPointerInput < 'a , > ( & self , eventkind : COREWEBVIEW2_POINTER_EVENT_KIND , pointerinfo : impl :: windows :: IntoParam < 'a , ICoreWebView2PointerInfo > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( eventkind ) , pointerinfo . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Cursor < > ( & self , cursor : * mut super::super::super::super::Windows::Win32::UI::WindowsAndMessaging:: HCURSOR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cursor ) , ) . ok ( ) } pub unsafe fn get_SystemCursorId < > ( & self , systemcursorid : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( systemcursorid ) , ) . ok ( ) } pub unsafe fn add_CursorChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2CursorChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_CursorChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CompositionController { type Vtable = ICoreWebView2CompositionController_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1039775539 ,47534 ,18965 , [ 134 ,180 ,235 ,158 ,233 ,130 ,100 ,105 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CompositionController > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CompositionController ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CompositionController > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CompositionController ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CompositionController { 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 ICoreWebView2CompositionController { 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 ICoreWebView2CompositionController_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 , target : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventkind : COREWEBVIEW2_MOUSE_EVENT_KIND , virtualkeys : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS , mousedata : u32 , point : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventkind : COREWEBVIEW2_POINTER_EVENT_KIND , pointerinfo : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cursor : * mut super::super::super::super::Windows::Win32::UI::WindowsAndMessaging:: HCURSOR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , systemcursorid : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CompositionController2 ( :: windows :: IUnknown ) ; impl ICoreWebView2CompositionController2 { pub unsafe fn get_RootVisualTarget < > ( & self , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } pub unsafe fn put_RootVisualTarget < 'a , > ( & self , target : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , target . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SendMouseInput < 'a , > ( & self , eventkind : COREWEBVIEW2_MOUSE_EVENT_KIND , virtualkeys : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS , mousedata : u32 , point : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( eventkind ) , :: std :: mem :: transmute ( virtualkeys ) , :: std :: mem :: transmute ( mousedata ) , point . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SendPointerInput < 'a , > ( & self , eventkind : COREWEBVIEW2_POINTER_EVENT_KIND , pointerinfo : impl :: windows :: IntoParam < 'a , ICoreWebView2PointerInfo > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( eventkind ) , pointerinfo . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Cursor < > ( & self , cursor : * mut super::super::super::super::Windows::Win32::UI::WindowsAndMessaging:: HCURSOR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cursor ) , ) . ok ( ) } pub unsafe fn get_SystemCursorId < > ( & self , systemcursorid : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( systemcursorid ) , ) . ok ( ) } pub unsafe fn add_CursorChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2CursorChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_CursorChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_UIAProvider < > ( & self , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2CompositionController2 { type Vtable = ICoreWebView2CompositionController2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 191511844 ,18891 ,18438 , [ 186 ,32 ,181 ,224 ,115 ,74 ,123 ,38 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CompositionController2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CompositionController2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CompositionController2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CompositionController2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CompositionController2 { 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 ICoreWebView2CompositionController2 { 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 < ICoreWebView2CompositionController2 > for ICoreWebView2CompositionController { fn from ( value : ICoreWebView2CompositionController2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CompositionController2 > for ICoreWebView2CompositionController { fn from ( value : & ICoreWebView2CompositionController2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2CompositionController > for ICoreWebView2CompositionController2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2CompositionController > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2CompositionController > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2CompositionController > for & 'a ICoreWebView2CompositionController2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2CompositionController > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2CompositionController > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2CompositionController2_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 , target : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventkind : COREWEBVIEW2_MOUSE_EVENT_KIND , virtualkeys : COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS , mousedata : u32 , point : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventkind : COREWEBVIEW2_POINTER_EVENT_KIND , pointerinfo : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cursor : * mut super::super::super::super::Windows::Win32::UI::WindowsAndMessaging:: HCURSOR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , systemcursorid : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , provider : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CompositionControllerInterop ( :: windows :: IUnknown ) ; impl ICoreWebView2CompositionControllerInterop { pub unsafe fn get_UIAProvider < > ( & self , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } pub unsafe fn get_RootVisualTarget < > ( & self , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } pub unsafe fn put_RootVisualTarget < 'a , > ( & self , target : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , target . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CompositionControllerInterop { type Vtable = ICoreWebView2CompositionControllerInterop_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2392400590 ,40064 ,17126 , [ 186 ,215 ,252 ,235 ,242 ,145 ,164 ,149 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CompositionControllerInterop > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CompositionControllerInterop ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CompositionControllerInterop > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CompositionControllerInterop ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CompositionControllerInterop { 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 ICoreWebView2CompositionControllerInterop { 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 ICoreWebView2CompositionControllerInterop_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 , provider : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , target : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ContainsFullScreenElementChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ContainsFullScreenElementChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ContainsFullScreenElementChangedEventHandler { type Vtable = ICoreWebView2ContainsFullScreenElementChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3831339185 ,45039 ,17854 , [ 139 ,175 ,108 ,119 ,40 ,134 ,127 ,115 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ContainsFullScreenElementChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ContainsFullScreenElementChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ContainsFullScreenElementChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ContainsFullScreenElementChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ContainsFullScreenElementChangedEventHandler { 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 ICoreWebView2ContainsFullScreenElementChangedEventHandler { 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 ICoreWebView2ContainsFullScreenElementChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ContentLoadingEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2ContentLoadingEventArgs { pub unsafe fn get_IsErrorPage < > ( & self , iserrorpage : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iserrorpage ) , ) . ok ( ) } pub unsafe fn get_NavigationId < > ( & self , navigationid : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( navigationid ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ContentLoadingEventArgs { type Vtable = ICoreWebView2ContentLoadingEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 210375285 ,39787 ,18689 , [ 135 ,173 ,112 ,223 ,37 ,186 ,250 ,110 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ContentLoadingEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ContentLoadingEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ContentLoadingEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ContentLoadingEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ContentLoadingEventArgs { 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 ICoreWebView2ContentLoadingEventArgs { 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 ICoreWebView2ContentLoadingEventArgs_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 , iserrorpage : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , navigationid : * mut u64 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ContentLoadingEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ContentLoadingEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2ContentLoadingEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ContentLoadingEventHandler { type Vtable = ICoreWebView2ContentLoadingEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 910455271 ,62142 ,18704 , [ 189 ,186 ,215 ,32 ,119 ,213 ,28 ,75 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ContentLoadingEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ContentLoadingEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ContentLoadingEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ContentLoadingEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ContentLoadingEventHandler { 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 ICoreWebView2ContentLoadingEventHandler { 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 ICoreWebView2ContentLoadingEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Controller ( :: windows :: IUnknown ) ; impl ICoreWebView2Controller { pub unsafe fn get_IsVisible < > ( & self , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isvisible ) , ) . ok ( ) } pub unsafe fn put_IsVisible < 'a , > ( & self , isvisible : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isvisible . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Bounds < > ( & self , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( bounds ) , ) . ok ( ) } pub unsafe fn put_Bounds < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ZoomFactor < > ( & self , zoomfactor : * mut f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn put_ZoomFactor < > ( & self , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn add_ZoomFactorChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ZoomFactorChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ZoomFactorChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SetBoundsAndZoomFactor < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn MoveFocus < > ( & self , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reason ) , ) . ok ( ) } pub unsafe fn add_MoveFocusRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2MoveFocusRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_MoveFocusRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_GotFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_GotFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_LostFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_LostFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_AcceleratorKeyPressed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2AcceleratorKeyPressedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_AcceleratorKeyPressed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ParentWindow < > ( & self , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( parentwindow ) , ) . ok ( ) } pub unsafe fn put_ParentWindow < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NotifyParentWindowPositionChanged < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn Close < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_CoreWebView2 < > ( & self , ) -> :: windows :: Result < ICoreWebView2 > { let mut result__ : < ICoreWebView2 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2 > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2Controller { type Vtable = ICoreWebView2Controller_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1291894993 ,37940 ,20150 , [ 128 ,120 ,134 ,151 ,165 ,96 ,51 ,79 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Controller > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Controller ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Controller ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Controller { 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 ICoreWebView2Controller { 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 ICoreWebView2Controller_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 , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isvisible : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : * mut f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , 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 , corewebview2 : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Controller2 ( :: windows :: IUnknown ) ; impl ICoreWebView2Controller2 { pub unsafe fn get_IsVisible < > ( & self , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isvisible ) , ) . ok ( ) } pub unsafe fn put_IsVisible < 'a , > ( & self , isvisible : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isvisible . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Bounds < > ( & self , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( bounds ) , ) . ok ( ) } pub unsafe fn put_Bounds < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ZoomFactor < > ( & self , zoomfactor : * mut f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn put_ZoomFactor < > ( & self , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn add_ZoomFactorChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ZoomFactorChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ZoomFactorChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SetBoundsAndZoomFactor < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn MoveFocus < > ( & self , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reason ) , ) . ok ( ) } pub unsafe fn add_MoveFocusRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2MoveFocusRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_MoveFocusRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_GotFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_GotFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_LostFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_LostFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_AcceleratorKeyPressed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2AcceleratorKeyPressedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_AcceleratorKeyPressed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ParentWindow < > ( & self , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( parentwindow ) , ) . ok ( ) } pub unsafe fn put_ParentWindow < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NotifyParentWindowPositionChanged < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn Close < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_CoreWebView2 < > ( & self , ) -> :: windows :: Result < ICoreWebView2 > { let mut result__ : < ICoreWebView2 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2 > ( result__ ) } pub unsafe fn get_DefaultBackgroundColor < > ( & self , backgroundcolor : * mut COREWEBVIEW2_COLOR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( backgroundcolor ) , ) . ok ( ) } pub unsafe fn put_DefaultBackgroundColor < 'a , > ( & self , backgroundcolor : impl :: windows :: IntoParam < 'a , COREWEBVIEW2_COLOR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , backgroundcolor . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Controller2 { type Vtable = ICoreWebView2Controller2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3380187198 ,54474 ,16936 , [ 146 ,235 ,71 ,238 ,63 ,169 ,110 ,171 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Controller2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Controller2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Controller2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Controller2 { 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 ICoreWebView2Controller2 { 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 < ICoreWebView2Controller2 > for ICoreWebView2Controller { fn from ( value : ICoreWebView2Controller2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller2 > for ICoreWebView2Controller { fn from ( value : & ICoreWebView2Controller2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller > for ICoreWebView2Controller2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller > for & 'a ICoreWebView2Controller2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Controller2_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 , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isvisible : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : * mut f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , 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 , corewebview2 : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , backgroundcolor : * mut COREWEBVIEW2_COLOR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , backgroundcolor : COREWEBVIEW2_COLOR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Controller3 ( :: windows :: IUnknown ) ; impl ICoreWebView2Controller3 { pub unsafe fn get_IsVisible < > ( & self , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isvisible ) , ) . ok ( ) } pub unsafe fn put_IsVisible < 'a , > ( & self , isvisible : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isvisible . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Bounds < > ( & self , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( bounds ) , ) . ok ( ) } pub unsafe fn put_Bounds < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ZoomFactor < > ( & self , zoomfactor : * mut f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn put_ZoomFactor < > ( & self , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn add_ZoomFactorChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ZoomFactorChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ZoomFactorChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn SetBoundsAndZoomFactor < 'a , > ( & self , bounds : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , zoomfactor : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , bounds . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( zoomfactor ) , ) . ok ( ) } pub unsafe fn MoveFocus < > ( & self , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reason ) , ) . ok ( ) } pub unsafe fn add_MoveFocusRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2MoveFocusRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_MoveFocusRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_GotFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_GotFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_LostFocus < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FocusChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_LostFocus < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_AcceleratorKeyPressed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2AcceleratorKeyPressedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_AcceleratorKeyPressed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ParentWindow < > ( & self , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( parentwindow ) , ) . ok ( ) } pub unsafe fn put_ParentWindow < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NotifyParentWindowPositionChanged < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn Close < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_CoreWebView2 < > ( & self , ) -> :: windows :: Result < ICoreWebView2 > { let mut result__ : < ICoreWebView2 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2 > ( result__ ) } pub unsafe fn get_DefaultBackgroundColor < > ( & self , backgroundcolor : * mut COREWEBVIEW2_COLOR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( backgroundcolor ) , ) . ok ( ) } pub unsafe fn put_DefaultBackgroundColor < 'a , > ( & self , backgroundcolor : impl :: windows :: IntoParam < 'a , COREWEBVIEW2_COLOR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , backgroundcolor . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_RasterizationScale < > ( & self , scale : * mut f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( scale ) , ) . ok ( ) } pub unsafe fn put_RasterizationScale < > ( & self , scale : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( scale ) , ) . ok ( ) } pub unsafe fn get_ShouldDetectMonitorScaleChanges < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_ShouldDetectMonitorScaleChanges < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_RasterizationScaleChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2RasterizationScaleChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_RasterizationScaleChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_BoundsMode < > ( & self , boundsmode : * mut COREWEBVIEW2_BOUNDS_MODE , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( boundsmode ) , ) . ok ( ) } pub unsafe fn put_BoundsMode < > ( & self , boundsmode : COREWEBVIEW2_BOUNDS_MODE , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( boundsmode ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Controller3 { type Vtable = ICoreWebView2Controller3_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4183901988 ,23851 ,16860 , [ 174 ,247 ,115 ,214 ,43 ,81 ,84 ,59 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Controller3 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Controller3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller3 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Controller3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Controller3 { 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 ICoreWebView2Controller3 { 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 < ICoreWebView2Controller3 > for ICoreWebView2Controller2 { fn from ( value : ICoreWebView2Controller3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller3 > for ICoreWebView2Controller2 { fn from ( value : & ICoreWebView2Controller3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller2 > for ICoreWebView2Controller3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller2 > for & 'a ICoreWebView2Controller3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Controller3 > for ICoreWebView2Controller { fn from ( value : ICoreWebView2Controller3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Controller3 > for ICoreWebView2Controller { fn from ( value : & ICoreWebView2Controller3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller > for ICoreWebView2Controller3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Controller > for & 'a ICoreWebView2Controller3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Controller > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Controller > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Controller3_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 , isvisible : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isvisible : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : * mut f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bounds : super::super::super::super::Windows::Win32::Foundation:: RECT , zoomfactor : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reason : COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : * mut super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , ) -> :: windows :: HRESULT , 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 , corewebview2 : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , backgroundcolor : * mut COREWEBVIEW2_COLOR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , backgroundcolor : COREWEBVIEW2_COLOR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , scale : * mut f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , scale : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , boundsmode : * mut COREWEBVIEW2_BOUNDS_MODE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , boundsmode : COREWEBVIEW2_BOUNDS_MODE , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Cookie ( :: windows :: IUnknown ) ; impl ICoreWebView2Cookie { pub unsafe fn get_Name < > ( & self , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( name ) , ) . ok ( ) } pub unsafe fn get_Value < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_Value < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Domain < > ( & self , domain : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( domain ) , ) . ok ( ) } pub unsafe fn get_Path < > ( & self , path : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( path ) , ) . ok ( ) } pub unsafe fn get_Expires < > ( & self , expires : * mut f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( expires ) , ) . ok ( ) } pub unsafe fn put_Expires < > ( & self , expires : f64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( expires ) , ) . ok ( ) } pub unsafe fn get_IsHttpOnly < > ( & self , ishttponly : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( ishttponly ) , ) . ok ( ) } pub unsafe fn put_IsHttpOnly < 'a , > ( & self , ishttponly : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , ishttponly . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_SameSite < > ( & self , samesite : * mut COREWEBVIEW2_COOKIE_SAME_SITE_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( samesite ) , ) . ok ( ) } pub unsafe fn put_SameSite < > ( & self , samesite : COREWEBVIEW2_COOKIE_SAME_SITE_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( samesite ) , ) . ok ( ) } pub unsafe fn get_IsSecure < > ( & self , issecure : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( issecure ) , ) . ok ( ) } pub unsafe fn put_IsSecure < 'a , > ( & self , issecure : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , issecure . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsSession < > ( & self , issession : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( issession ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Cookie { type Vtable = ICoreWebView2Cookie_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2905003710 ,5254 ,17382 , [ 191 ,135 ,162 ,3 ,64 ,6 ,202 ,33 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Cookie > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Cookie ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Cookie > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Cookie ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Cookie { 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 ICoreWebView2Cookie { 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 ICoreWebView2Cookie_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 , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , domain : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , path : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , expires : * mut f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , expires : f64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ishttponly : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ishttponly : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , samesite : * mut COREWEBVIEW2_COOKIE_SAME_SITE_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , samesite : COREWEBVIEW2_COOKIE_SAME_SITE_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , issecure : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , issecure : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , issession : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CookieList ( :: windows :: IUnknown ) ; impl ICoreWebView2CookieList { pub unsafe fn get_Count < > ( & self , count : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( count ) , ) . ok ( ) } pub unsafe fn GetValueAtIndex < > ( & self , index : u32 , ) -> :: windows :: Result < ICoreWebView2Cookie > { let mut result__ : < ICoreWebView2Cookie as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( index ) , & mut result__ ) . from_abi :: < ICoreWebView2Cookie > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2CookieList { type Vtable = ICoreWebView2CookieList_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4160157460 ,23850 ,17350 , [ 149 ,3 ,52 ,110 ,206 ,2 ,209 ,134 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CookieList > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CookieList ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CookieList > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CookieList ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CookieList { 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 ICoreWebView2CookieList { 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 ICoreWebView2CookieList_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 , count : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , index : u32 , cookie : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CookieManager ( :: windows :: IUnknown ) ; impl ICoreWebView2CookieManager { pub unsafe fn CreateCookie < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , domain : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , path : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2Cookie > { let mut result__ : < ICoreWebView2Cookie as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , value . into_param ( ) . abi ( ) , domain . into_param ( ) . abi ( ) , path . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2Cookie > ( result__ ) } pub unsafe fn CopyCookie < 'a , > ( & self , cookieparam : impl :: windows :: IntoParam < 'a , ICoreWebView2Cookie > , ) -> :: windows :: Result < ICoreWebView2Cookie > { let mut result__ : < ICoreWebView2Cookie as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , cookieparam . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2Cookie > ( result__ ) } pub unsafe fn GetCookies < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2GetCookiesCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddOrUpdateCookie < 'a , > ( & self , cookie : impl :: windows :: IntoParam < 'a , ICoreWebView2Cookie > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , cookie . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn DeleteCookie < 'a , > ( & self , cookie : impl :: windows :: IntoParam < 'a , ICoreWebView2Cookie > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , cookie . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn DeleteCookies < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn DeleteCookiesWithDomainAndPath < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , domain : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , path : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , domain . into_param ( ) . abi ( ) , path . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn DeleteAllCookies < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CookieManager { type Vtable = ICoreWebView2CookieManager_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 394058215 ,46837 ,17690 , [ 148 ,160 ,93 ,122 ,58 ,76 ,65 ,65 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CookieManager > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CookieManager ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CookieManager > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CookieManager ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CookieManager { 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 ICoreWebView2CookieManager { 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 ICoreWebView2CookieManager_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 , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , domain : super::super::super::super::Windows::Win32::Foundation:: PWSTR , path : super::super::super::super::Windows::Win32::Foundation:: PWSTR , cookie : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookieparam : :: windows :: RawPtr , cookie : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookie : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookie : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , domain : super::super::super::super::Windows::Win32::Foundation:: PWSTR , path : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , webview : impl :: windows :: IntoParam < 'a , ICoreWebView2CompositionController > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , webview . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler { type Vtable = ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 49985611 ,5160 ,20407 , [ 173 ,69 ,27 ,46 ,100 ,115 ,97 ,132 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler { 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 ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler { 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 ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_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 , errorcode : :: windows :: HRESULT , webview : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CreateCoreWebView2ControllerCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CreateCoreWebView2ControllerCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , createdcontroller : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , createdcontroller . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CreateCoreWebView2ControllerCompletedHandler { type Vtable = ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1816664563 ,51639 ,16992 , [ 129 ,39 ,201 ,245 ,189 ,231 ,246 ,140 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CreateCoreWebView2ControllerCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CreateCoreWebView2ControllerCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CreateCoreWebView2ControllerCompletedHandler { 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 ICoreWebView2CreateCoreWebView2ControllerCompletedHandler { 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 ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_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 , errorcode : :: windows :: HRESULT , createdcontroller : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , createdenvironment : impl :: windows :: IntoParam < 'a , ICoreWebView2Environment > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , createdenvironment . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler { type Vtable = ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1317680009 ,51672 ,19410 , [ 182 ,181 ,18 ,79 ,238 ,108 ,193 ,77 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler { 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 ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler { 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 ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_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 , errorcode : :: windows :: HRESULT , createdenvironment : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2CursorChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2CursorChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2CompositionController > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2CursorChangedEventHandler { type Vtable = ICoreWebView2CursorChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2644786380 ,9953 ,19885 , [ 181 ,108 ,216 ,150 ,28 ,148 ,197 ,113 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2CursorChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2CursorChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2CursorChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2CursorChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2CursorChangedEventHandler { 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 ICoreWebView2CursorChangedEventHandler { 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 ICoreWebView2CursorChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DOMContentLoadedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2DOMContentLoadedEventArgs { pub unsafe fn get_NavigationId < > ( & self , navigationid : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( navigationid ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DOMContentLoadedEventArgs { type Vtable = ICoreWebView2DOMContentLoadedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 380756506 ,50435 ,17650 , [ 132 ,201 ,112 ,171 ,165 ,3 ,18 ,131 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DOMContentLoadedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DOMContentLoadedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DOMContentLoadedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DOMContentLoadedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DOMContentLoadedEventArgs { 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 ICoreWebView2DOMContentLoadedEventArgs { 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 ICoreWebView2DOMContentLoadedEventArgs_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 , navigationid : * mut u64 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DOMContentLoadedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2DOMContentLoadedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2DOMContentLoadedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DOMContentLoadedEventHandler { type Vtable = ICoreWebView2DOMContentLoadedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1269595804 ,6558 ,18925 , [ 135 ,237 ,36 ,147 ,3 ,172 ,240 ,25 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DOMContentLoadedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DOMContentLoadedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DOMContentLoadedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DOMContentLoadedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DOMContentLoadedEventHandler { 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 ICoreWebView2DOMContentLoadedEventHandler { 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 ICoreWebView2DOMContentLoadedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Deferral ( :: windows :: IUnknown ) ; impl ICoreWebView2Deferral { pub unsafe fn Complete < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Deferral { type Vtable = ICoreWebView2Deferral_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3238952827 ,46469 ,18160 , [ 166 ,35 ,139 ,239 ,191 ,62 ,78 ,224 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Deferral > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Deferral ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Deferral > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Deferral ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Deferral { 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 ICoreWebView2Deferral { 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 ICoreWebView2Deferral_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 , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DevToolsProtocolEventReceivedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2DevToolsProtocolEventReceivedEventArgs { pub unsafe fn get_ParameterObjectAsJson < > ( & self , parameterobjectasjson : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( parameterobjectasjson ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DevToolsProtocolEventReceivedEventArgs { type Vtable = ICoreWebView2DevToolsProtocolEventReceivedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1698441561 ,47930 ,17271 , [ 134 ,50 ,181 ,138 ,218 ,78 ,102 ,196 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DevToolsProtocolEventReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DevToolsProtocolEventReceivedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DevToolsProtocolEventReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DevToolsProtocolEventReceivedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DevToolsProtocolEventReceivedEventArgs { 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 ICoreWebView2DevToolsProtocolEventReceivedEventArgs { 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 ICoreWebView2DevToolsProtocolEventReceivedEventArgs_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 , parameterobjectasjson : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DevToolsProtocolEventReceivedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2DevToolsProtocolEventReceivedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2DevToolsProtocolEventReceivedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DevToolsProtocolEventReceivedEventHandler { type Vtable = ICoreWebView2DevToolsProtocolEventReceivedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3808273598 ,21590 ,16492 , [ 162 ,97 ,61 ,69 ,33 ,56 ,54 ,44 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DevToolsProtocolEventReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DevToolsProtocolEventReceivedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DevToolsProtocolEventReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DevToolsProtocolEventReceivedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DevToolsProtocolEventReceivedEventHandler { 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 ICoreWebView2DevToolsProtocolEventReceivedEventHandler { 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 ICoreWebView2DevToolsProtocolEventReceivedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DevToolsProtocolEventReceiver ( :: windows :: IUnknown ) ; impl ICoreWebView2DevToolsProtocolEventReceiver { pub unsafe fn add_DevToolsProtocolEventReceived < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2DevToolsProtocolEventReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DevToolsProtocolEventReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DevToolsProtocolEventReceiver { type Vtable = ICoreWebView2DevToolsProtocolEventReceiver_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3006047514 ,33649 ,17897 , [ 147 ,23 ,175 ,2 ,29 ,8 ,3 ,103 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DevToolsProtocolEventReceiver > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DevToolsProtocolEventReceiver ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DevToolsProtocolEventReceiver > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DevToolsProtocolEventReceiver ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DevToolsProtocolEventReceiver { 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 ICoreWebView2DevToolsProtocolEventReceiver { 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 ICoreWebView2DevToolsProtocolEventReceiver_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 , handler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DocumentTitleChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2DocumentTitleChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DocumentTitleChangedEventHandler { type Vtable = ICoreWebView2DocumentTitleChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4126325027 ,38206 ,16450 , [ 159 ,149 ,243 ,161 ,24 ,225 ,175 ,212 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DocumentTitleChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DocumentTitleChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DocumentTitleChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DocumentTitleChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DocumentTitleChangedEventHandler { 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 ICoreWebView2DocumentTitleChangedEventHandler { 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 ICoreWebView2DocumentTitleChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DownloadOperation ( :: windows :: IUnknown ) ; impl ICoreWebView2DownloadOperation { pub unsafe fn add_BytesReceivedChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2BytesReceivedChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_BytesReceivedChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_EstimatedEndTimeChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2EstimatedEndTimeChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_EstimatedEndTimeChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_StateChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2StateChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_StateChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn get_ContentDisposition < > ( & self , contentdisposition : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( contentdisposition ) , ) . ok ( ) } pub unsafe fn get_MimeType < > ( & self , mimetype : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( mimetype ) , ) . ok ( ) } pub unsafe fn get_TotalBytesToReceive < > ( & self , totalbytestoreceive : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( totalbytestoreceive ) , ) . ok ( ) } pub unsafe fn get_BytesReceived < > ( & self , bytesreceived : * mut i64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( bytesreceived ) , ) . ok ( ) } pub unsafe fn get_EstimatedEndTime < > ( & self , estimatedendtime : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( estimatedendtime ) , ) . ok ( ) } pub unsafe fn get_ResultFilePath < > ( & self , resultfilepath : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( resultfilepath ) , ) . ok ( ) } pub unsafe fn get_State < > ( & self , downloadstate : * mut COREWEBVIEW2_DOWNLOAD_STATE , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( downloadstate ) , ) . ok ( ) } pub unsafe fn get_InterruptReason < > ( & self , interruptreason : * mut COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( interruptreason ) , ) . ok ( ) } pub unsafe fn Cancel < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn Pause < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn Resume < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_CanResume < > ( & self , canresume : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( canresume ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DownloadOperation { type Vtable = ICoreWebView2DownloadOperation_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1030450418 ,45025 ,17607 , [ 169 ,149 ,198 ,81 ,23 ,113 ,67 ,54 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DownloadOperation > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DownloadOperation ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DownloadOperation > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DownloadOperation ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DownloadOperation { 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 ICoreWebView2DownloadOperation { 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 ICoreWebView2DownloadOperation_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 , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , contentdisposition : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , mimetype : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , totalbytestoreceive : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , bytesreceived : * mut i64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , estimatedendtime : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , resultfilepath : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , downloadstate : * mut COREWEBVIEW2_DOWNLOAD_STATE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , interruptreason : * mut COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON , ) -> :: windows :: HRESULT , 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 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , canresume : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DownloadStartingEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2DownloadStartingEventArgs { pub unsafe fn get_DownloadOperation < > ( & self , ) -> :: windows :: Result < ICoreWebView2DownloadOperation > { let mut result__ : < ICoreWebView2DownloadOperation as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2DownloadOperation > ( result__ ) } pub unsafe fn get_Cancel < > ( & self , cancel : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cancel ) , ) . ok ( ) } pub unsafe fn put_Cancel < 'a , > ( & self , cancel : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , cancel . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ResultFilePath < > ( & self , resultfilepath : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( resultfilepath ) , ) . ok ( ) } pub unsafe fn put_ResultFilePath < 'a , > ( & self , resultfilepath : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , resultfilepath . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Handled < > ( & self , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( handled ) , ) . ok ( ) } pub unsafe fn put_Handled < 'a , > ( & self , handled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , handled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetDeferral < > ( & self , ) -> :: windows :: Result < ICoreWebView2Deferral > { let mut result__ : < ICoreWebView2Deferral as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Deferral > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2DownloadStartingEventArgs { type Vtable = ICoreWebView2DownloadStartingEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3919298081 ,17385 ,17732 , [ 167 ,50 ,40 ,39 ,100 ,234 ,250 ,96 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DownloadStartingEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DownloadStartingEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DownloadStartingEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DownloadStartingEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DownloadStartingEventArgs { 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 ICoreWebView2DownloadStartingEventArgs { 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 ICoreWebView2DownloadStartingEventArgs_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 , downloadoperation : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cancel : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cancel : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , resultfilepath : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , resultfilepath : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , deferral : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2DownloadStartingEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2DownloadStartingEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2DownloadStartingEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2DownloadStartingEventHandler { type Vtable = ICoreWebView2DownloadStartingEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4025338249 ,50070 ,16842 , [ 131 ,247 ,7 ,248 ,69 ,165 ,87 ,36 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2DownloadStartingEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2DownloadStartingEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2DownloadStartingEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2DownloadStartingEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2DownloadStartingEventHandler { 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 ICoreWebView2DownloadStartingEventHandler { 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 ICoreWebView2DownloadStartingEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Environment ( :: windows :: IUnknown ) ; impl ICoreWebView2Environment { pub unsafe fn CreateCoreWebView2Controller < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceResponse < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , statuscode : i32 , reasonphrase : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceResponse > { let mut result__ : < ICoreWebView2WebResourceResponse as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( statuscode ) , reasonphrase . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponse > ( result__ ) } pub unsafe fn get_BrowserVersionString < > ( & self , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( versioninfo ) , ) . ok ( ) } pub unsafe fn add_NewBrowserVersionAvailable < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewBrowserVersionAvailableEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewBrowserVersionAvailable < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Environment { type Vtable = ICoreWebView2Environment_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3110958430 ,793 ,20114 , [ 162 ,150 ,35 ,67 ,111 ,70 ,161 ,252 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Environment > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Environment ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Environment ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Environment { 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 ICoreWebView2Environment { 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 ICoreWebView2Environment_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 , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , statuscode : i32 , reasonphrase : super::super::super::super::Windows::Win32::Foundation:: PWSTR , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Environment2 ( :: windows :: IUnknown ) ; impl ICoreWebView2Environment2 { pub unsafe fn CreateCoreWebView2Controller < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceResponse < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , statuscode : i32 , reasonphrase : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceResponse > { let mut result__ : < ICoreWebView2WebResourceResponse as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( statuscode ) , reasonphrase . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponse > ( result__ ) } pub unsafe fn get_BrowserVersionString < > ( & self , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( versioninfo ) , ) . ok ( ) } pub unsafe fn add_NewBrowserVersionAvailable < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewBrowserVersionAvailableEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewBrowserVersionAvailable < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceRequest < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , method : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , postdata : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceRequest > { let mut result__ : < ICoreWebView2WebResourceRequest as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , method . into_param ( ) . abi ( ) , postdata . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceRequest > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2Environment2 { type Vtable = ICoreWebView2Environment2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1106469675 ,24308 ,16463 , [ 173 ,130 ,45 ,96 ,108 ,90 ,154 ,33 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Environment2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Environment2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Environment2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Environment2 { 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 ICoreWebView2Environment2 { 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 < ICoreWebView2Environment2 > for ICoreWebView2Environment { fn from ( value : ICoreWebView2Environment2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment2 > for ICoreWebView2Environment { fn from ( value : & ICoreWebView2Environment2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for ICoreWebView2Environment2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for & 'a ICoreWebView2Environment2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Environment2_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 , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , statuscode : i32 , reasonphrase : super::super::super::super::Windows::Win32::Foundation:: PWSTR , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , method : super::super::super::super::Windows::Win32::Foundation:: PWSTR , postdata : :: windows :: RawPtr , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , request : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Environment3 ( :: windows :: IUnknown ) ; impl ICoreWebView2Environment3 { pub unsafe fn CreateCoreWebView2Controller < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceResponse < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , statuscode : i32 , reasonphrase : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceResponse > { let mut result__ : < ICoreWebView2WebResourceResponse as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( statuscode ) , reasonphrase . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponse > ( result__ ) } pub unsafe fn get_BrowserVersionString < > ( & self , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( versioninfo ) , ) . ok ( ) } pub unsafe fn add_NewBrowserVersionAvailable < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewBrowserVersionAvailableEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewBrowserVersionAvailable < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceRequest < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , method : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , postdata : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceRequest > { let mut result__ : < ICoreWebView2WebResourceRequest as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , method . into_param ( ) . abi ( ) , postdata . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceRequest > ( result__ ) } pub unsafe fn CreateCoreWebView2CompositionController < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateCoreWebView2PointerInfo < > ( & self , ) -> :: windows :: Result < ICoreWebView2PointerInfo > { let mut result__ : < ICoreWebView2PointerInfo as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2PointerInfo > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2Environment3 { type Vtable = ICoreWebView2Environment3_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2158111459 ,48764 ,19682 , [ 175 ,225 ,90 ,80 ,5 ,108 ,222 ,235 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Environment3 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Environment3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment3 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Environment3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Environment3 { 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 ICoreWebView2Environment3 { 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 < ICoreWebView2Environment3 > for ICoreWebView2Environment2 { fn from ( value : ICoreWebView2Environment3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment3 > for ICoreWebView2Environment2 { fn from ( value : & ICoreWebView2Environment3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment2 > for ICoreWebView2Environment3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment2 > for & 'a ICoreWebView2Environment3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Environment3 > for ICoreWebView2Environment { fn from ( value : ICoreWebView2Environment3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment3 > for ICoreWebView2Environment { fn from ( value : & ICoreWebView2Environment3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for ICoreWebView2Environment3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for & 'a ICoreWebView2Environment3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Environment3_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 , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , statuscode : i32 , reasonphrase : super::super::super::super::Windows::Win32::Foundation:: PWSTR , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , method : super::super::super::super::Windows::Win32::Foundation:: PWSTR , postdata : :: windows :: RawPtr , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , request : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerinfo : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Environment4 ( :: windows :: IUnknown ) ; impl ICoreWebView2Environment4 { pub unsafe fn CreateCoreWebView2Controller < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2ControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceResponse < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , statuscode : i32 , reasonphrase : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceResponse > { let mut result__ : < ICoreWebView2WebResourceResponse as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( statuscode ) , reasonphrase . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponse > ( result__ ) } pub unsafe fn get_BrowserVersionString < > ( & self , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( versioninfo ) , ) . ok ( ) } pub unsafe fn add_NewBrowserVersionAvailable < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewBrowserVersionAvailableEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewBrowserVersionAvailable < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateWebResourceRequest < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , method : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , postdata : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , headers : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2WebResourceRequest > { let mut result__ : < ICoreWebView2WebResourceRequest as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , method . into_param ( ) . abi ( ) , postdata . into_param ( ) . abi ( ) , headers . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceRequest > ( result__ ) } pub unsafe fn CreateCoreWebView2CompositionController < 'a , > ( & self , parentwindow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , parentwindow . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CreateCoreWebView2PointerInfo < > ( & self , ) -> :: windows :: Result < ICoreWebView2PointerInfo > { let mut result__ : < ICoreWebView2PointerInfo as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2PointerInfo > ( result__ ) } pub unsafe fn GetProviderForHwnd < 'a , > ( & self , hwnd : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , hwnd . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2Environment4 { type Vtable = ICoreWebView2Environment4_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 546587513 ,28111 ,16854 , [ 160 ,160 ,171 ,192 ,252 ,80 ,222 ,13 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Environment4 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Environment4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment4 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Environment4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Environment4 { 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 ICoreWebView2Environment4 { 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 < ICoreWebView2Environment4 > for ICoreWebView2Environment3 { fn from ( value : ICoreWebView2Environment4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment4 > for ICoreWebView2Environment3 { fn from ( value : & ICoreWebView2Environment4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment3 > for ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment3 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment3 > for & 'a ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment3 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Environment4 > for ICoreWebView2Environment2 { fn from ( value : ICoreWebView2Environment4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment4 > for ICoreWebView2Environment2 { fn from ( value : & ICoreWebView2Environment4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment2 > for ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment2 > for & 'a ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Environment4 > for ICoreWebView2Environment { fn from ( value : ICoreWebView2Environment4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Environment4 > for ICoreWebView2Environment { fn from ( value : & ICoreWebView2Environment4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Environment > for & 'a ICoreWebView2Environment4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Environment > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Environment > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Environment4_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 , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , statuscode : i32 , reasonphrase : super::super::super::super::Windows::Win32::Foundation:: PWSTR , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , versioninfo : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , method : super::super::super::super::Windows::Win32::Foundation:: PWSTR , postdata : :: windows :: RawPtr , headers : super::super::super::super::Windows::Win32::Foundation:: PWSTR , request : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , parentwindow : super::super::super::super::Windows::Win32::Foundation:: HWND , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerinfo : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hwnd : super::super::super::super::Windows::Win32::Foundation:: HWND , provider : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2EnvironmentInterop ( :: windows :: IUnknown ) ; impl ICoreWebView2EnvironmentInterop { pub unsafe fn GetProviderForHwnd < 'a , > ( & self , hwnd : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: HWND > , ) -> :: windows :: Result < :: windows :: IUnknown > { let mut result__ : < :: windows :: IUnknown as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , hwnd . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < :: windows :: IUnknown > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2EnvironmentInterop { type Vtable = ICoreWebView2EnvironmentInterop_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3998235235 ,49634 ,20415 , [ 138 ,77 ,130 ,78 ,149 ,248 ,187 ,19 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2EnvironmentInterop > for :: windows :: IUnknown { fn from ( value : ICoreWebView2EnvironmentInterop ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2EnvironmentInterop > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2EnvironmentInterop ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2EnvironmentInterop { 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 ICoreWebView2EnvironmentInterop { 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 ICoreWebView2EnvironmentInterop_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 , hwnd : super::super::super::super::Windows::Win32::Foundation:: HWND , provider : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2EnvironmentOptions ( :: windows :: IUnknown ) ; impl ICoreWebView2EnvironmentOptions { pub unsafe fn get_AdditionalBrowserArguments < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_AdditionalBrowserArguments < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Language < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_Language < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_TargetCompatibleBrowserVersion < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_TargetCompatibleBrowserVersion < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AllowSingleSignOnUsingOSPrimaryAccount < > ( & self , allow : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allow ) , ) . ok ( ) } pub unsafe fn put_AllowSingleSignOnUsingOSPrimaryAccount < 'a , > ( & self , allow : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , allow . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2EnvironmentOptions { type Vtable = ICoreWebView2EnvironmentOptions_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 803080360 ,7834 ,18278 , [ 140 ,5 ,149 ,169 ,206 ,185 ,209 ,197 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2EnvironmentOptions > for :: windows :: IUnknown { fn from ( value : ICoreWebView2EnvironmentOptions ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2EnvironmentOptions > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2EnvironmentOptions ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2EnvironmentOptions { 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 ICoreWebView2EnvironmentOptions { 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 ICoreWebView2EnvironmentOptions_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 , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allow : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allow : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2EstimatedEndTimeChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2EstimatedEndTimeChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2DownloadOperation > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2EstimatedEndTimeChangedEventHandler { type Vtable = ICoreWebView2EstimatedEndTimeChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 686871589 ,37886 ,20067 , [ 159 ,141 ,42 ,238 ,198 ,211 ,186 ,30 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2EstimatedEndTimeChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2EstimatedEndTimeChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2EstimatedEndTimeChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2EstimatedEndTimeChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2EstimatedEndTimeChangedEventHandler { 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 ICoreWebView2EstimatedEndTimeChangedEventHandler { 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 ICoreWebView2EstimatedEndTimeChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ExecuteScriptCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ExecuteScriptCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , resultobjectasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , resultobjectasjson . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ExecuteScriptCompletedHandler { type Vtable = ICoreWebView2ExecuteScriptCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1230049650 ,52327 ,19402 , [ 153 ,35 ,19 ,113 ,18 ,244 ,196 ,204 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ExecuteScriptCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ExecuteScriptCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ExecuteScriptCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ExecuteScriptCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ExecuteScriptCompletedHandler { 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 ICoreWebView2ExecuteScriptCompletedHandler { 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 ICoreWebView2ExecuteScriptCompletedHandler_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 , errorcode : :: windows :: HRESULT , resultobjectasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FocusChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2FocusChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FocusChangedEventHandler { type Vtable = ICoreWebView2FocusChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 99230909 ,25682 ,18726 , [ 144 ,20 ,75 ,130 ,180 ,152 ,19 ,93 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FocusChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FocusChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FocusChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FocusChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FocusChangedEventHandler { 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 ICoreWebView2FocusChangedEventHandler { 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 ICoreWebView2FocusChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Frame ( :: windows :: IUnknown ) ; impl ICoreWebView2Frame { pub unsafe fn get_Name < > ( & self , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( name ) , ) . ok ( ) } pub unsafe fn add_NameChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FrameNameChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NameChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddHostObjectToScriptWithOrigins < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , originscount : u32 , origins : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , :: std :: mem :: transmute ( originscount ) , :: std :: mem :: transmute ( origins ) , ) . ok ( ) } pub unsafe fn RemoveHostObjectFromScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_Destroyed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FrameDestroyedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_Destroyed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn IsDestroyed < > ( & self , destroyed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( destroyed ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Frame { type Vtable = ICoreWebView2Frame_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4044560990 ,39849 ,4587 , [ 168 ,179 ,2 ,66 ,172 ,19 ,0 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Frame > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Frame ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Frame > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Frame ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Frame { 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 ICoreWebView2Frame { 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 ICoreWebView2Frame_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 , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , originscount : u32 , origins : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , destroyed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameCreatedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameCreatedEventArgs { pub unsafe fn get_Frame < > ( & self , ) -> :: windows :: Result < ICoreWebView2Frame > { let mut result__ : < ICoreWebView2Frame as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Frame > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameCreatedEventArgs { type Vtable = ICoreWebView2FrameCreatedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1299086174 ,39850 ,4587 , [ 168 ,179 ,2 ,66 ,172 ,19 ,0 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameCreatedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameCreatedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameCreatedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameCreatedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameCreatedEventArgs { 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 ICoreWebView2FrameCreatedEventArgs { 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 ICoreWebView2FrameCreatedEventArgs_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 , frame : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameCreatedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameCreatedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2FrameCreatedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameCreatedEventHandler { type Vtable = ICoreWebView2FrameCreatedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 939890544 ,39850 ,4587 , [ 168 ,179 ,2 ,66 ,172 ,19 ,0 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameCreatedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameCreatedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameCreatedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameCreatedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameCreatedEventHandler { 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 ICoreWebView2FrameCreatedEventHandler { 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 ICoreWebView2FrameCreatedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameDestroyedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameDestroyedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Frame > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameDestroyedEventHandler { type Vtable = ICoreWebView2FrameDestroyedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1507687244 ,39850 ,4587 , [ 168 ,179 ,2 ,66 ,172 ,19 ,0 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameDestroyedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameDestroyedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameDestroyedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameDestroyedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameDestroyedEventHandler { 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 ICoreWebView2FrameDestroyedEventHandler { 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 ICoreWebView2FrameDestroyedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameInfo ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameInfo { pub unsafe fn get_Name < > ( & self , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( name ) , ) . ok ( ) } pub unsafe fn get_Source < > ( & self , source : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( source ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameInfo { type Vtable = ICoreWebView2FrameInfo_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3666262177 ,48627 ,20241 , [ 153 ,85 ,82 ,140 ,239 ,165 ,151 ,39 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameInfo > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameInfo ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameInfo > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameInfo ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameInfo { 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 ICoreWebView2FrameInfo { 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 ICoreWebView2FrameInfo_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 , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , source : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameInfoCollection ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameInfoCollection { pub unsafe fn GetIterator < > ( & self , ) -> :: windows :: Result < ICoreWebView2FrameInfoCollectionIterator > { let mut result__ : < ICoreWebView2FrameInfoCollectionIterator as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2FrameInfoCollectionIterator > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameInfoCollection { type Vtable = ICoreWebView2FrameInfoCollection_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2407743828 ,54158 ,19856 , [ 175 ,251 ,104 ,0 ,167 ,39 ,40 ,57 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameInfoCollection > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameInfoCollection ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameInfoCollection > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameInfoCollection ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameInfoCollection { 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 ICoreWebView2FrameInfoCollection { 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 ICoreWebView2FrameInfoCollection_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 , iterator : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameInfoCollectionIterator ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameInfoCollectionIterator { pub unsafe fn get_HasCurrent < > ( & self , hascurrent : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( hascurrent ) , ) . ok ( ) } pub unsafe fn GetCurrent < > ( & self , ) -> :: windows :: Result < ICoreWebView2FrameInfo > { let mut result__ : < ICoreWebView2FrameInfo as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2FrameInfo > ( result__ ) } pub unsafe fn MoveNext < > ( & self , hasnext : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( hasnext ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameInfoCollectionIterator { type Vtable = ICoreWebView2FrameInfoCollectionIterator_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 469278253 ,6955 ,17961 , [ 178 ,143 ,5 ,9 ,155 ,65 ,187 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameInfoCollectionIterator > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameInfoCollectionIterator ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameInfoCollectionIterator > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameInfoCollectionIterator ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameInfoCollectionIterator { 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 ICoreWebView2FrameInfoCollectionIterator { 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 ICoreWebView2FrameInfoCollectionIterator_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 , hascurrent : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , frameinfo : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hasnext : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2FrameNameChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2FrameNameChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Frame > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2FrameNameChangedEventHandler { type Vtable = ICoreWebView2FrameNameChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1130134984 ,39850 ,4587 , [ 168 ,179 ,2 ,66 ,172 ,19 ,0 ,3 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2FrameNameChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2FrameNameChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2FrameNameChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2FrameNameChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2FrameNameChangedEventHandler { 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 ICoreWebView2FrameNameChangedEventHandler { 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 ICoreWebView2FrameNameChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2GetCookiesCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2GetCookiesCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , result : :: windows :: HRESULT , cookielist : impl :: windows :: IntoParam < 'a , ICoreWebView2CookieList > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( result ) , cookielist . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2GetCookiesCompletedHandler { type Vtable = ICoreWebView2GetCookiesCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1515147369 ,23573 ,18371 , [ 134 ,70 ,244 ,222 ,28 ,17 ,102 ,112 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2GetCookiesCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2GetCookiesCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2GetCookiesCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2GetCookiesCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2GetCookiesCompletedHandler { 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 ICoreWebView2GetCookiesCompletedHandler { 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 ICoreWebView2GetCookiesCompletedHandler_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 , result : :: windows :: HRESULT , cookielist : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2HistoryChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2HistoryChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2HistoryChangedEventHandler { type Vtable = ICoreWebView2HistoryChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3348775436 ,61401 ,16472 , [ 146 ,149 ,62 ,139 ,75 ,202 ,182 ,69 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2HistoryChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2HistoryChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2HistoryChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2HistoryChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2HistoryChangedEventHandler { 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 ICoreWebView2HistoryChangedEventHandler { 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 ICoreWebView2HistoryChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2HttpHeadersCollectionIterator ( :: windows :: IUnknown ) ; impl ICoreWebView2HttpHeadersCollectionIterator { pub unsafe fn GetCurrentHeader < > ( & self , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( name ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_HasCurrentHeader < > ( & self , hascurrent : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( hascurrent ) , ) . ok ( ) } pub unsafe fn MoveNext < > ( & self , hasnext : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( hasnext ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2HttpHeadersCollectionIterator { type Vtable = ICoreWebView2HttpHeadersCollectionIterator_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 117636144 ,62523 ,18363 , [ 171 ,82 ,164 ,44 ,181 ,82 ,173 ,159 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2HttpHeadersCollectionIterator > for :: windows :: IUnknown { fn from ( value : ICoreWebView2HttpHeadersCollectionIterator ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2HttpHeadersCollectionIterator > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2HttpHeadersCollectionIterator ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2HttpHeadersCollectionIterator { 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 ICoreWebView2HttpHeadersCollectionIterator { 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 ICoreWebView2HttpHeadersCollectionIterator_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 , name : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hascurrent : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hasnext : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2HttpRequestHeaders ( :: windows :: IUnknown ) ; impl ICoreWebView2HttpRequestHeaders { pub unsafe fn GetHeader < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn GetHeaders < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2HttpHeadersCollectionIterator > { let mut result__ : < ICoreWebView2HttpHeadersCollectionIterator as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpHeadersCollectionIterator > ( result__ ) } pub unsafe fn Contains < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , contains : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( contains ) , ) . ok ( ) } pub unsafe fn SetHeader < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn RemoveHeader < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetIterator < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpHeadersCollectionIterator > { let mut result__ : < ICoreWebView2HttpHeadersCollectionIterator as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpHeadersCollectionIterator > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2HttpRequestHeaders { type Vtable = ICoreWebView2HttpRequestHeaders_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3899436046 ,21795 ,18012 , [ 181 ,54 ,143 ,185 ,252 ,140 ,140 ,96 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2HttpRequestHeaders > for :: windows :: IUnknown { fn from ( value : ICoreWebView2HttpRequestHeaders ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2HttpRequestHeaders > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2HttpRequestHeaders ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2HttpRequestHeaders { 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 ICoreWebView2HttpRequestHeaders { 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 ICoreWebView2HttpRequestHeaders_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 , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , iterator : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , contains : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iterator : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2HttpResponseHeaders ( :: windows :: IUnknown ) ; impl ICoreWebView2HttpResponseHeaders { pub unsafe fn AppendHeader < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Contains < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , contains : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( contains ) , ) . ok ( ) } pub unsafe fn GetHeader < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn GetHeaders < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2HttpHeadersCollectionIterator > { let mut result__ : < ICoreWebView2HttpHeadersCollectionIterator as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpHeadersCollectionIterator > ( result__ ) } pub unsafe fn GetIterator < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpHeadersCollectionIterator > { let mut result__ : < ICoreWebView2HttpHeadersCollectionIterator as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpHeadersCollectionIterator > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2HttpResponseHeaders { type Vtable = ICoreWebView2HttpResponseHeaders_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 63307610 ,39749 ,19080 , [ 136 ,28 ,137 ,169 ,243 ,40 ,97 ,156 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2HttpResponseHeaders > for :: windows :: IUnknown { fn from ( value : ICoreWebView2HttpResponseHeaders ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2HttpResponseHeaders > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2HttpResponseHeaders ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2HttpResponseHeaders { 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 ICoreWebView2HttpResponseHeaders { 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 ICoreWebView2HttpResponseHeaders_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 , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , contains : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , value : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , iterator : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iterator : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Interop ( :: windows :: IUnknown ) ; impl ICoreWebView2Interop { pub unsafe fn AddHostObjectToScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Interop { type Vtable = ICoreWebView2Interop_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2435527847 ,53515 ,18884 , [ 175 ,24 ,124 ,183 ,230 ,4 ,224 ,26 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Interop > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Interop ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Interop > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Interop ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Interop { 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 ICoreWebView2Interop { 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 ICoreWebView2Interop_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 , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2MoveFocusRequestedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2MoveFocusRequestedEventArgs { pub unsafe fn get_Reason < > ( & self , reason : * mut COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reason ) , ) . ok ( ) } pub unsafe fn get_Handled < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_Handled < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2MoveFocusRequestedEventArgs { type Vtable = ICoreWebView2MoveFocusRequestedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 761962811 ,14393 ,18965 , [ 146 ,252 ,216 ,139 ,60 ,13 ,156 ,157 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2MoveFocusRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2MoveFocusRequestedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2MoveFocusRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2MoveFocusRequestedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2MoveFocusRequestedEventArgs { 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 ICoreWebView2MoveFocusRequestedEventArgs { 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 ICoreWebView2MoveFocusRequestedEventArgs_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 , reason : * mut COREWEBVIEW2_MOVE_FOCUS_REASON , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2MoveFocusRequestedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2MoveFocusRequestedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2MoveFocusRequestedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2MoveFocusRequestedEventHandler { type Vtable = ICoreWebView2MoveFocusRequestedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1761825873 ,28103 ,19640 , [ 155 ,206 ,178 ,189 ,112 ,173 ,40 ,159 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2MoveFocusRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2MoveFocusRequestedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2MoveFocusRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2MoveFocusRequestedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2MoveFocusRequestedEventHandler { 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 ICoreWebView2MoveFocusRequestedEventHandler { 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 ICoreWebView2MoveFocusRequestedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NavigationCompletedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2NavigationCompletedEventArgs { pub unsafe fn get_IsSuccess < > ( & self , issuccess : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( issuccess ) , ) . ok ( ) } pub unsafe fn get_WebErrorStatus < > ( & self , weberrorstatus : * mut COREWEBVIEW2_WEB_ERROR_STATUS , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( weberrorstatus ) , ) . ok ( ) } pub unsafe fn get_NavigationId < > ( & self , navigationid : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( navigationid ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NavigationCompletedEventArgs { type Vtable = ICoreWebView2NavigationCompletedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 819366781 ,8409 ,18258 , [ 169 ,202 ,236 ,132 ,72 ,251 ,181 ,193 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NavigationCompletedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NavigationCompletedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NavigationCompletedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NavigationCompletedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NavigationCompletedEventArgs { 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 ICoreWebView2NavigationCompletedEventArgs { 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 ICoreWebView2NavigationCompletedEventArgs_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 , issuccess : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , weberrorstatus : * mut COREWEBVIEW2_WEB_ERROR_STATUS , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , navigationid : * mut u64 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NavigationCompletedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2NavigationCompletedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NavigationCompletedEventHandler { type Vtable = ICoreWebView2NavigationCompletedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3543807423 ,7241 ,20376 , [ 147 ,171 ,0 ,110 ,5 ,51 ,254 ,28 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NavigationCompletedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NavigationCompletedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NavigationCompletedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NavigationCompletedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NavigationCompletedEventHandler { 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 ICoreWebView2NavigationCompletedEventHandler { 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 ICoreWebView2NavigationCompletedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NavigationStartingEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2NavigationStartingEventArgs { pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn get_IsUserInitiated < > ( & self , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isuserinitiated ) , ) . ok ( ) } pub unsafe fn get_IsRedirected < > ( & self , isredirected : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isredirected ) , ) . ok ( ) } pub unsafe fn get_RequestHeaders < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpRequestHeaders > { let mut result__ : < ICoreWebView2HttpRequestHeaders as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpRequestHeaders > ( result__ ) } pub unsafe fn get_Cancel < > ( & self , cancel : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cancel ) , ) . ok ( ) } pub unsafe fn put_Cancel < 'a , > ( & self , cancel : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , cancel . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_NavigationId < > ( & self , navigationid : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( navigationid ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NavigationStartingEventArgs { type Vtable = ICoreWebView2NavigationStartingEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1531532393 ,57625 ,17290 , [ 155 ,24 ,118 ,4 ,242 ,95 ,46 ,73 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NavigationStartingEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NavigationStartingEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NavigationStartingEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NavigationStartingEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NavigationStartingEventArgs { 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 ICoreWebView2NavigationStartingEventArgs { 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 ICoreWebView2NavigationStartingEventArgs_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 , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isredirected : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , requestheaders : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cancel : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cancel : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , navigationid : * mut u64 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NavigationStartingEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2NavigationStartingEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NavigationStartingEventHandler { type Vtable = ICoreWebView2NavigationStartingEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2598102057 ,62317 ,17195 , [ 157 ,220 ,248 ,136 ,31 ,189 ,118 ,227 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NavigationStartingEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NavigationStartingEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NavigationStartingEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NavigationStartingEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NavigationStartingEventHandler { 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 ICoreWebView2NavigationStartingEventHandler { 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 ICoreWebView2NavigationStartingEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NewBrowserVersionAvailableEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2NewBrowserVersionAvailableEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Environment > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NewBrowserVersionAvailableEventHandler { type Vtable = ICoreWebView2NewBrowserVersionAvailableEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4188182382 ,54094 ,17660 , [ 173 ,238 ,129 ,182 ,181 ,124 ,169 ,20 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NewBrowserVersionAvailableEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NewBrowserVersionAvailableEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NewBrowserVersionAvailableEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NewBrowserVersionAvailableEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NewBrowserVersionAvailableEventHandler { 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 ICoreWebView2NewBrowserVersionAvailableEventHandler { 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 ICoreWebView2NewBrowserVersionAvailableEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NewWindowRequestedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2NewWindowRequestedEventArgs { pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn put_NewWindow < 'a , > ( & self , newwindow : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , newwindow . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_NewWindow < > ( & self , ) -> :: windows :: Result < ICoreWebView2 > { let mut result__ : < ICoreWebView2 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2 > ( result__ ) } pub unsafe fn put_Handled < 'a , > ( & self , handled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , handled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Handled < > ( & self , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( handled ) , ) . ok ( ) } pub unsafe fn get_IsUserInitiated < > ( & self , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isuserinitiated ) , ) . ok ( ) } pub unsafe fn GetDeferral < > ( & self , ) -> :: windows :: Result < ICoreWebView2Deferral > { let mut result__ : < ICoreWebView2Deferral as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Deferral > ( result__ ) } pub unsafe fn get_WindowFeatures < > ( & self , ) -> :: windows :: Result < ICoreWebView2WindowFeatures > { let mut result__ : < ICoreWebView2WindowFeatures as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2WindowFeatures > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2NewWindowRequestedEventArgs { type Vtable = ICoreWebView2NewWindowRequestedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 883732764 ,64567 ,17432 , [ 145 ,50 ,249 ,194 ,29 ,30 ,175 ,185 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NewWindowRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NewWindowRequestedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NewWindowRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NewWindowRequestedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NewWindowRequestedEventArgs { 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 ICoreWebView2NewWindowRequestedEventArgs { 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 ICoreWebView2NewWindowRequestedEventArgs_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 , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , newwindow : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , newwindow : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , deferral : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2NewWindowRequestedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2NewWindowRequestedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2NewWindowRequestedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2NewWindowRequestedEventHandler { type Vtable = ICoreWebView2NewWindowRequestedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3569452542 ,51228 ,18825 , [ 151 ,175 ,45 ,63 ,167 ,171 ,86 ,81 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2NewWindowRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2NewWindowRequestedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2NewWindowRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2NewWindowRequestedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2NewWindowRequestedEventHandler { 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 ICoreWebView2NewWindowRequestedEventHandler { 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 ICoreWebView2NewWindowRequestedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2PermissionRequestedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2PermissionRequestedEventArgs { pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn get_PermissionKind < > ( & self , permissionkind : * mut COREWEBVIEW2_PERMISSION_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( permissionkind ) , ) . ok ( ) } pub unsafe fn get_IsUserInitiated < > ( & self , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isuserinitiated ) , ) . ok ( ) } pub unsafe fn get_State < > ( & self , state : * mut COREWEBVIEW2_PERMISSION_STATE , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( state ) , ) . ok ( ) } pub unsafe fn put_State < > ( & self , state : COREWEBVIEW2_PERMISSION_STATE , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( state ) , ) . ok ( ) } pub unsafe fn GetDeferral < > ( & self , ) -> :: windows :: Result < ICoreWebView2Deferral > { let mut result__ : < ICoreWebView2Deferral as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Deferral > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2PermissionRequestedEventArgs { type Vtable = ICoreWebView2PermissionRequestedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2537218799 ,65304 ,18580 , [ 143 ,178 ,60 ,117 ,143 ,4 ,104 ,16 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2PermissionRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2PermissionRequestedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2PermissionRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2PermissionRequestedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2PermissionRequestedEventArgs { 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 ICoreWebView2PermissionRequestedEventArgs { 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 ICoreWebView2PermissionRequestedEventArgs_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 , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , permissionkind : * mut COREWEBVIEW2_PERMISSION_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isuserinitiated : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , state : * mut COREWEBVIEW2_PERMISSION_STATE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , state : COREWEBVIEW2_PERMISSION_STATE , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , deferral : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2PermissionRequestedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2PermissionRequestedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2PermissionRequestedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2PermissionRequestedEventHandler { type Vtable = ICoreWebView2PermissionRequestedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 367117987 ,50986 ,19955 , [ 145 ,215 ,208 ,151 ,251 ,236 ,107 ,253 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2PermissionRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2PermissionRequestedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2PermissionRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2PermissionRequestedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2PermissionRequestedEventHandler { 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 ICoreWebView2PermissionRequestedEventHandler { 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 ICoreWebView2PermissionRequestedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2PointerInfo ( :: windows :: IUnknown ) ; impl ICoreWebView2PointerInfo { pub unsafe fn get_PointerKind < > ( & self , pointerkind : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerkind ) , ) . ok ( ) } pub unsafe fn put_PointerKind < > ( & self , pointerkind : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerkind ) , ) . ok ( ) } pub unsafe fn get_PointerId < > ( & self , pointerid : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerid ) , ) . ok ( ) } pub unsafe fn put_PointerId < > ( & self , pointerid : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerid ) , ) . ok ( ) } pub unsafe fn get_FrameId < > ( & self , frameid : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( frameid ) , ) . ok ( ) } pub unsafe fn put_FrameId < > ( & self , frameid : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( frameid ) , ) . ok ( ) } pub unsafe fn get_PointerFlags < > ( & self , pointerflags : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerflags ) , ) . ok ( ) } pub unsafe fn put_PointerFlags < > ( & self , pointerflags : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerflags ) , ) . ok ( ) } pub unsafe fn get_PointerDeviceRect < > ( & self , pointerdevicerect : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pointerdevicerect ) , ) . ok ( ) } pub unsafe fn put_PointerDeviceRect < 'a , > ( & self , pointerdevicerect : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , pointerdevicerect . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_DisplayRect < > ( & self , displayrect : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( displayrect ) , ) . ok ( ) } pub unsafe fn put_DisplayRect < 'a , > ( & self , displayrect : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , displayrect . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_PixelLocation < > ( & self , pixellocation : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pixellocation ) , ) . ok ( ) } pub unsafe fn put_PixelLocation < 'a , > ( & self , pixellocation : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , pixellocation . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_HimetricLocation < > ( & self , himetriclocation : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( himetriclocation ) , ) . ok ( ) } pub unsafe fn put_HimetricLocation < 'a , > ( & self , himetriclocation : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , himetriclocation . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_PixelLocationRaw < > ( & self , pixellocationraw : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pixellocationraw ) , ) . ok ( ) } pub unsafe fn put_PixelLocationRaw < 'a , > ( & self , pixellocationraw : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , pixellocationraw . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_HimetricLocationRaw < > ( & self , himetriclocationraw : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( himetriclocationraw ) , ) . ok ( ) } pub unsafe fn put_HimetricLocationRaw < 'a , > ( & self , himetriclocationraw : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: POINT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , himetriclocationraw . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Time < > ( & self , time : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( time ) , ) . ok ( ) } pub unsafe fn put_Time < > ( & self , time : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( time ) , ) . ok ( ) } pub unsafe fn get_HistoryCount < > ( & self , historycount : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( historycount ) , ) . ok ( ) } pub unsafe fn put_HistoryCount < > ( & self , historycount : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( historycount ) , ) . ok ( ) } pub unsafe fn get_InputData < > ( & self , inputdata : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( inputdata ) , ) . ok ( ) } pub unsafe fn put_InputData < > ( & self , inputdata : i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( inputdata ) , ) . ok ( ) } pub unsafe fn get_KeyStates < > ( & self , keystates : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( keystates ) , ) . ok ( ) } pub unsafe fn put_KeyStates < > ( & self , keystates : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( keystates ) , ) . ok ( ) } pub unsafe fn get_PerformanceCount < > ( & self , performancecount : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( performancecount ) , ) . ok ( ) } pub unsafe fn put_PerformanceCount < > ( & self , performancecount : u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( performancecount ) , ) . ok ( ) } pub unsafe fn get_ButtonChangeKind < > ( & self , buttonchangekind : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( buttonchangekind ) , ) . ok ( ) } pub unsafe fn put_ButtonChangeKind < > ( & self , buttonchangekind : i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( buttonchangekind ) , ) . ok ( ) } pub unsafe fn get_PenFlags < > ( & self , penflags : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penflags ) , ) . ok ( ) } pub unsafe fn put_PenFlags < > ( & self , penflags : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penflags ) , ) . ok ( ) } pub unsafe fn get_PenMask < > ( & self , penmask : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penmask ) , ) . ok ( ) } pub unsafe fn put_PenMask < > ( & self , penmask : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penmask ) , ) . ok ( ) } pub unsafe fn get_PenPressure < > ( & self , penpressure : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penpressure ) , ) . ok ( ) } pub unsafe fn put_PenPressure < > ( & self , penpressure : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penpressure ) , ) . ok ( ) } pub unsafe fn get_PenRotation < > ( & self , penrotation : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penrotation ) , ) . ok ( ) } pub unsafe fn put_PenRotation < > ( & self , penrotation : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( penrotation ) , ) . ok ( ) } pub unsafe fn get_PenTiltX < > ( & self , pentiltx : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pentiltx ) , ) . ok ( ) } pub unsafe fn put_PenTiltX < > ( & self , pentiltx : i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pentiltx ) , ) . ok ( ) } pub unsafe fn get_PenTiltY < > ( & self , pentilty : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pentilty ) , ) . ok ( ) } pub unsafe fn put_PenTiltY < > ( & self , pentilty : i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pentilty ) , ) . ok ( ) } pub unsafe fn get_TouchFlags < > ( & self , touchflags : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchflags ) , ) . ok ( ) } pub unsafe fn put_TouchFlags < > ( & self , touchflags : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchflags ) , ) . ok ( ) } pub unsafe fn get_TouchMask < > ( & self , touchmask : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchmask ) , ) . ok ( ) } pub unsafe fn put_TouchMask < > ( & self , touchmask : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchmask ) , ) . ok ( ) } pub unsafe fn get_TouchContact < > ( & self , touchcontact : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchcontact ) , ) . ok ( ) } pub unsafe fn put_TouchContact < 'a , > ( & self , touchcontact : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , touchcontact . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_TouchContactRaw < > ( & self , touchcontactraw : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchcontactraw ) , ) . ok ( ) } pub unsafe fn put_TouchContactRaw < 'a , > ( & self , touchcontactraw : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: RECT > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , touchcontactraw . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_TouchOrientation < > ( & self , touchorientation : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchorientation ) , ) . ok ( ) } pub unsafe fn put_TouchOrientation < > ( & self , touchorientation : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchorientation ) , ) . ok ( ) } pub unsafe fn get_TouchPressure < > ( & self , touchpressure : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchpressure ) , ) . ok ( ) } pub unsafe fn put_TouchPressure < > ( & self , touchpressure : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( touchpressure ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2PointerInfo { type Vtable = ICoreWebView2PointerInfo_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3868809351 ,53517 ,20317 , [ 147 ,89 ,76 ,228 ,110 ,79 ,150 ,185 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2PointerInfo > for :: windows :: IUnknown { fn from ( value : ICoreWebView2PointerInfo ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2PointerInfo > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2PointerInfo ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2PointerInfo { 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 ICoreWebView2PointerInfo { 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 ICoreWebView2PointerInfo_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 , pointerkind : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerkind : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerid : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerid : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , frameid : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , frameid : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerflags : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerflags : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerdevicerect : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pointerdevicerect : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , displayrect : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , displayrect : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixellocation : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixellocation : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , himetriclocation : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , himetriclocation : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixellocationraw : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pixellocationraw : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , himetriclocationraw : * mut super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , himetriclocationraw : super::super::super::super::Windows::Win32::Foundation:: POINT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , time : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , time : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , historycount : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , historycount : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , inputdata : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , inputdata : i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , keystates : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , keystates : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , performancecount : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , performancecount : u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , buttonchangekind : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , buttonchangekind : i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penflags : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penflags : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penmask : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penmask : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penpressure : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penpressure : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penrotation : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , penrotation : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pentiltx : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pentiltx : i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pentilty : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pentilty : i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchflags : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchflags : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchmask : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchmask : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchcontact : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchcontact : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchcontactraw : * mut super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchcontactraw : super::super::super::super::Windows::Win32::Foundation:: RECT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchorientation : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchorientation : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchpressure : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , touchpressure : u32 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ProcessFailedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2ProcessFailedEventArgs { pub unsafe fn get_ProcessFailedKind < > ( & self , processfailedkind : * mut COREWEBVIEW2_PROCESS_FAILED_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( processfailedkind ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ProcessFailedEventArgs { type Vtable = ICoreWebView2ProcessFailedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2169874852 ,5236 ,19078 , [ 140 ,174 ,21 ,27 ,15 ,166 ,184 ,202 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ProcessFailedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ProcessFailedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ProcessFailedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ProcessFailedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ProcessFailedEventArgs { 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 ICoreWebView2ProcessFailedEventArgs { 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 ICoreWebView2ProcessFailedEventArgs_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 , processfailedkind : * mut COREWEBVIEW2_PROCESS_FAILED_KIND , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ProcessFailedEventArgs2 ( :: windows :: IUnknown ) ; impl ICoreWebView2ProcessFailedEventArgs2 { pub unsafe fn get_ProcessFailedKind < > ( & self , processfailedkind : * mut COREWEBVIEW2_PROCESS_FAILED_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( processfailedkind ) , ) . ok ( ) } pub unsafe fn get_Reason < > ( & self , reason : * mut COREWEBVIEW2_PROCESS_FAILED_REASON , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reason ) , ) . ok ( ) } pub unsafe fn get_ExitCode < > ( & self , exitcode : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( exitcode ) , ) . ok ( ) } pub unsafe fn get_ProcessDescription < > ( & self , processdescription : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( processdescription ) , ) . ok ( ) } pub unsafe fn get_FrameInfosForFailedProcess < > ( & self , ) -> :: windows :: Result < ICoreWebView2FrameInfoCollection > { let mut result__ : < ICoreWebView2FrameInfoCollection as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2FrameInfoCollection > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2ProcessFailedEventArgs2 { type Vtable = ICoreWebView2ProcessFailedEventArgs2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1303090210 ,18170 ,19518 , [ 165 ,210 ,65 ,210 ,7 ,29 ,54 ,128 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ProcessFailedEventArgs2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ProcessFailedEventArgs2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ProcessFailedEventArgs2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ProcessFailedEventArgs2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ProcessFailedEventArgs2 { 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 ICoreWebView2ProcessFailedEventArgs2 { 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 < ICoreWebView2ProcessFailedEventArgs2 > for ICoreWebView2ProcessFailedEventArgs { fn from ( value : ICoreWebView2ProcessFailedEventArgs2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ProcessFailedEventArgs2 > for ICoreWebView2ProcessFailedEventArgs { fn from ( value : & ICoreWebView2ProcessFailedEventArgs2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventArgs > for ICoreWebView2ProcessFailedEventArgs2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2ProcessFailedEventArgs > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2ProcessFailedEventArgs > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventArgs > for & 'a ICoreWebView2ProcessFailedEventArgs2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2ProcessFailedEventArgs > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2ProcessFailedEventArgs > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2ProcessFailedEventArgs2_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 , processfailedkind : * mut COREWEBVIEW2_PROCESS_FAILED_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reason : * mut COREWEBVIEW2_PROCESS_FAILED_REASON , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , exitcode : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , processdescription : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , frames : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ProcessFailedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ProcessFailedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ProcessFailedEventHandler { type Vtable = ICoreWebView2ProcessFailedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2044767908 ,39179 ,17113 , [ 170 ,29 ,15 ,204 ,46 ,91 ,199 ,241 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ProcessFailedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ProcessFailedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ProcessFailedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ProcessFailedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ProcessFailedEventHandler { 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 ICoreWebView2ProcessFailedEventHandler { 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 ICoreWebView2ProcessFailedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2RasterizationScaleChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2RasterizationScaleChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2RasterizationScaleChangedEventHandler { type Vtable = ICoreWebView2RasterizationScaleChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2627258545 ,44115 ,17022 , [ 163 ,69 ,48 ,73 ,181 ,82 ,75 ,190 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2RasterizationScaleChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2RasterizationScaleChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2RasterizationScaleChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2RasterizationScaleChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2RasterizationScaleChangedEventHandler { 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 ICoreWebView2RasterizationScaleChangedEventHandler { 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 ICoreWebView2RasterizationScaleChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ScriptDialogOpeningEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2ScriptDialogOpeningEventArgs { pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn get_Kind < > ( & self , kind : * mut COREWEBVIEW2_SCRIPT_DIALOG_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( kind ) , ) . ok ( ) } pub unsafe fn get_Message < > ( & self , message : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( message ) , ) . ok ( ) } pub unsafe fn Accept < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_DefaultText < > ( & self , defaulttext : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( defaulttext ) , ) . ok ( ) } pub unsafe fn get_ResultText < > ( & self , resulttext : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( resulttext ) , ) . ok ( ) } pub unsafe fn put_ResultText < 'a , > ( & self , resulttext : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , resulttext . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetDeferral < > ( & self , ) -> :: windows :: Result < ICoreWebView2Deferral > { let mut result__ : < ICoreWebView2Deferral as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Deferral > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2ScriptDialogOpeningEventArgs { type Vtable = ICoreWebView2ScriptDialogOpeningEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1938865008 ,44000 ,18499 , [ 149 ,41 ,241 ,67 ,179 ,27 ,3 ,214 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ScriptDialogOpeningEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ScriptDialogOpeningEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ScriptDialogOpeningEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ScriptDialogOpeningEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ScriptDialogOpeningEventArgs { 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 ICoreWebView2ScriptDialogOpeningEventArgs { 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 ICoreWebView2ScriptDialogOpeningEventArgs_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 , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , kind : * mut COREWEBVIEW2_SCRIPT_DIALOG_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , message : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , defaulttext : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , resulttext : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , resulttext : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , deferral : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ScriptDialogOpeningEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ScriptDialogOpeningEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2ScriptDialogOpeningEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ScriptDialogOpeningEventHandler { type Vtable = ICoreWebView2ScriptDialogOpeningEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4013431801 ,44968 ,20023 , [ 145 ,196 ,138 ,196 ,133 ,36 ,189 ,251 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ScriptDialogOpeningEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ScriptDialogOpeningEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ScriptDialogOpeningEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ScriptDialogOpeningEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ScriptDialogOpeningEventHandler { 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 ICoreWebView2ScriptDialogOpeningEventHandler { 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 ICoreWebView2ScriptDialogOpeningEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Settings ( :: windows :: IUnknown ) ; impl ICoreWebView2Settings { pub unsafe fn get_IsScriptEnabled < > ( & self , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isscriptenabled ) , ) . ok ( ) } pub unsafe fn put_IsScriptEnabled < 'a , > ( & self , isscriptenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isscriptenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsWebMessageEnabled < > ( & self , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iswebmessageenabled ) , ) . ok ( ) } pub unsafe fn put_IsWebMessageEnabled < 'a , > ( & self , iswebmessageenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , iswebmessageenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultScriptDialogsEnabled < > ( & self , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredefaultscriptdialogsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultScriptDialogsEnabled < 'a , > ( & self , aredefaultscriptdialogsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , aredefaultscriptdialogsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsStatusBarEnabled < > ( & self , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isstatusbarenabled ) , ) . ok ( ) } pub unsafe fn put_IsStatusBarEnabled < 'a , > ( & self , isstatusbarenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , isstatusbarenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDevToolsEnabled < > ( & self , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredevtoolsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDevToolsEnabled < 'a , > ( & self , aredevtoolsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , aredevtoolsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultContextMenusEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultContextMenusEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreHostObjectsAllowed < > ( & self , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allowed ) , ) . ok ( ) } pub unsafe fn put_AreHostObjectsAllowed < 'a , > ( & self , allowed : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , allowed . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsZoomControlEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsZoomControlEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsBuiltInErrorPageEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsBuiltInErrorPageEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Settings { type Vtable = ICoreWebView2Settings_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3848463600 ,55290 ,17324 , [ 141 ,113 ,192 ,81 ,80 ,73 ,159 ,0 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Settings > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Settings ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Settings ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Settings { 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 ICoreWebView2Settings { 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 ICoreWebView2Settings_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 , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isscriptenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Settings2 ( :: windows :: IUnknown ) ; impl ICoreWebView2Settings2 { pub unsafe fn get_IsScriptEnabled < > ( & self , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isscriptenabled ) , ) . ok ( ) } pub unsafe fn put_IsScriptEnabled < 'a , > ( & self , isscriptenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isscriptenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsWebMessageEnabled < > ( & self , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iswebmessageenabled ) , ) . ok ( ) } pub unsafe fn put_IsWebMessageEnabled < 'a , > ( & self , iswebmessageenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , iswebmessageenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultScriptDialogsEnabled < > ( & self , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredefaultscriptdialogsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultScriptDialogsEnabled < 'a , > ( & self , aredefaultscriptdialogsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , aredefaultscriptdialogsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsStatusBarEnabled < > ( & self , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isstatusbarenabled ) , ) . ok ( ) } pub unsafe fn put_IsStatusBarEnabled < 'a , > ( & self , isstatusbarenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , isstatusbarenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDevToolsEnabled < > ( & self , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredevtoolsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDevToolsEnabled < 'a , > ( & self , aredevtoolsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , aredevtoolsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultContextMenusEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultContextMenusEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreHostObjectsAllowed < > ( & self , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allowed ) , ) . ok ( ) } pub unsafe fn put_AreHostObjectsAllowed < 'a , > ( & self , allowed : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , allowed . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsZoomControlEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsZoomControlEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsBuiltInErrorPageEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsBuiltInErrorPageEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_UserAgent < > ( & self , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( useragent ) , ) . ok ( ) } pub unsafe fn put_UserAgent < 'a , > ( & self , useragent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , useragent . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Settings2 { type Vtable = ICoreWebView2Settings2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4003073896 ,62572 ,20018 , [ 172 ,35 ,239 ,140 ,172 ,34 ,77 ,42 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Settings2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Settings2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Settings2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Settings2 { 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 ICoreWebView2Settings2 { 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 < ICoreWebView2Settings2 > for ICoreWebView2Settings { fn from ( value : ICoreWebView2Settings2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings2 > for ICoreWebView2Settings { fn from ( value : & ICoreWebView2Settings2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for ICoreWebView2Settings2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for & 'a ICoreWebView2Settings2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Settings2_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 , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isscriptenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Settings3 ( :: windows :: IUnknown ) ; impl ICoreWebView2Settings3 { pub unsafe fn get_IsScriptEnabled < > ( & self , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isscriptenabled ) , ) . ok ( ) } pub unsafe fn put_IsScriptEnabled < 'a , > ( & self , isscriptenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isscriptenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsWebMessageEnabled < > ( & self , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iswebmessageenabled ) , ) . ok ( ) } pub unsafe fn put_IsWebMessageEnabled < 'a , > ( & self , iswebmessageenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , iswebmessageenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultScriptDialogsEnabled < > ( & self , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredefaultscriptdialogsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultScriptDialogsEnabled < 'a , > ( & self , aredefaultscriptdialogsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , aredefaultscriptdialogsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsStatusBarEnabled < > ( & self , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isstatusbarenabled ) , ) . ok ( ) } pub unsafe fn put_IsStatusBarEnabled < 'a , > ( & self , isstatusbarenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , isstatusbarenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDevToolsEnabled < > ( & self , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredevtoolsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDevToolsEnabled < 'a , > ( & self , aredevtoolsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , aredevtoolsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultContextMenusEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultContextMenusEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreHostObjectsAllowed < > ( & self , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allowed ) , ) . ok ( ) } pub unsafe fn put_AreHostObjectsAllowed < 'a , > ( & self , allowed : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , allowed . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsZoomControlEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsZoomControlEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsBuiltInErrorPageEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsBuiltInErrorPageEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_UserAgent < > ( & self , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( useragent ) , ) . ok ( ) } pub unsafe fn put_UserAgent < 'a , > ( & self , useragent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , useragent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreBrowserAcceleratorKeysEnabled < > ( & self , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( arebrowseracceleratorkeysenabled ) , ) . ok ( ) } pub unsafe fn put_AreBrowserAcceleratorKeysEnabled < 'a , > ( & self , arebrowseracceleratorkeysenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , arebrowseracceleratorkeysenabled . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Settings3 { type Vtable = ICoreWebView2Settings3_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 4256541556 ,44851 ,18516 , [ 132 ,240 ,10 ,99 ,29 ,235 ,94 ,186 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Settings3 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Settings3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings3 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Settings3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Settings3 { 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 ICoreWebView2Settings3 { 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 < ICoreWebView2Settings3 > for ICoreWebView2Settings2 { fn from ( value : ICoreWebView2Settings3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings3 > for ICoreWebView2Settings2 { fn from ( value : & ICoreWebView2Settings3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for ICoreWebView2Settings3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for & 'a ICoreWebView2Settings3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings3 > for ICoreWebView2Settings { fn from ( value : ICoreWebView2Settings3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings3 > for ICoreWebView2Settings { fn from ( value : & ICoreWebView2Settings3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for ICoreWebView2Settings3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for & 'a ICoreWebView2Settings3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Settings3_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 , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isscriptenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Settings4 ( :: windows :: IUnknown ) ; impl ICoreWebView2Settings4 { pub unsafe fn get_IsScriptEnabled < > ( & self , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isscriptenabled ) , ) . ok ( ) } pub unsafe fn put_IsScriptEnabled < 'a , > ( & self , isscriptenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isscriptenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsWebMessageEnabled < > ( & self , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iswebmessageenabled ) , ) . ok ( ) } pub unsafe fn put_IsWebMessageEnabled < 'a , > ( & self , iswebmessageenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , iswebmessageenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultScriptDialogsEnabled < > ( & self , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredefaultscriptdialogsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultScriptDialogsEnabled < 'a , > ( & self , aredefaultscriptdialogsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , aredefaultscriptdialogsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsStatusBarEnabled < > ( & self , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isstatusbarenabled ) , ) . ok ( ) } pub unsafe fn put_IsStatusBarEnabled < 'a , > ( & self , isstatusbarenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , isstatusbarenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDevToolsEnabled < > ( & self , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredevtoolsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDevToolsEnabled < 'a , > ( & self , aredevtoolsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , aredevtoolsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultContextMenusEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultContextMenusEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreHostObjectsAllowed < > ( & self , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allowed ) , ) . ok ( ) } pub unsafe fn put_AreHostObjectsAllowed < 'a , > ( & self , allowed : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , allowed . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsZoomControlEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsZoomControlEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsBuiltInErrorPageEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsBuiltInErrorPageEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_UserAgent < > ( & self , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( useragent ) , ) . ok ( ) } pub unsafe fn put_UserAgent < 'a , > ( & self , useragent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , useragent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreBrowserAcceleratorKeysEnabled < > ( & self , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( arebrowseracceleratorkeysenabled ) , ) . ok ( ) } pub unsafe fn put_AreBrowserAcceleratorKeysEnabled < 'a , > ( & self , arebrowseracceleratorkeysenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , arebrowseracceleratorkeysenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsPasswordAutosaveEnabled < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_IsPasswordAutosaveEnabled < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsGeneralAutofillEnabled < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_IsGeneralAutofillEnabled < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Settings4 { type Vtable = ICoreWebView2Settings4_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3411444844 ,16744 ,19795 , [ 176 ,79 ,3 ,182 ,214 ,121 ,111 ,242 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Settings4 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Settings4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings4 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Settings4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Settings4 { 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 ICoreWebView2Settings4 { 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 < ICoreWebView2Settings4 > for ICoreWebView2Settings3 { fn from ( value : ICoreWebView2Settings4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings4 > for ICoreWebView2Settings3 { fn from ( value : & ICoreWebView2Settings4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings3 > for ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings3 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings3 > for & 'a ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings3 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings4 > for ICoreWebView2Settings2 { fn from ( value : ICoreWebView2Settings4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings4 > for ICoreWebView2Settings2 { fn from ( value : & ICoreWebView2Settings4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for & 'a ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings4 > for ICoreWebView2Settings { fn from ( value : ICoreWebView2Settings4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings4 > for ICoreWebView2Settings { fn from ( value : & ICoreWebView2Settings4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for & 'a ICoreWebView2Settings4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Settings4_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 , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isscriptenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2Settings5 ( :: windows :: IUnknown ) ; impl ICoreWebView2Settings5 { pub unsafe fn get_IsScriptEnabled < > ( & self , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isscriptenabled ) , ) . ok ( ) } pub unsafe fn put_IsScriptEnabled < 'a , > ( & self , isscriptenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , isscriptenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsWebMessageEnabled < > ( & self , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( iswebmessageenabled ) , ) . ok ( ) } pub unsafe fn put_IsWebMessageEnabled < 'a , > ( & self , iswebmessageenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , iswebmessageenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultScriptDialogsEnabled < > ( & self , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredefaultscriptdialogsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultScriptDialogsEnabled < 'a , > ( & self , aredefaultscriptdialogsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , aredefaultscriptdialogsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsStatusBarEnabled < > ( & self , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isstatusbarenabled ) , ) . ok ( ) } pub unsafe fn put_IsStatusBarEnabled < 'a , > ( & self , isstatusbarenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , isstatusbarenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDevToolsEnabled < > ( & self , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( aredevtoolsenabled ) , ) . ok ( ) } pub unsafe fn put_AreDevToolsEnabled < 'a , > ( & self , aredevtoolsenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , aredevtoolsenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreDefaultContextMenusEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_AreDefaultContextMenusEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreHostObjectsAllowed < > ( & self , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( allowed ) , ) . ok ( ) } pub unsafe fn put_AreHostObjectsAllowed < 'a , > ( & self , allowed : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , allowed . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsZoomControlEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsZoomControlEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsBuiltInErrorPageEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsBuiltInErrorPageEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_UserAgent < > ( & self , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( useragent ) , ) . ok ( ) } pub unsafe fn put_UserAgent < 'a , > ( & self , useragent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , useragent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_AreBrowserAcceleratorKeysEnabled < > ( & self , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( arebrowseracceleratorkeysenabled ) , ) . ok ( ) } pub unsafe fn put_AreBrowserAcceleratorKeysEnabled < 'a , > ( & self , arebrowseracceleratorkeysenabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , arebrowseracceleratorkeysenabled . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsPasswordAutosaveEnabled < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_IsPasswordAutosaveEnabled < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsGeneralAutofillEnabled < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn put_IsGeneralAutofillEnabled < 'a , > ( & self , value : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , value . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_IsPinchZoomEnabled < > ( & self , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( enabled ) , ) . ok ( ) } pub unsafe fn put_IsPinchZoomEnabled < 'a , > ( & self , enabled : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , enabled . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2Settings5 { type Vtable = ICoreWebView2Settings5_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 406745170 ,7427 ,17312 , [ 171 ,153 ,152 ,224 ,67 ,182 ,107 ,57 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2Settings5 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2Settings5 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings5 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2Settings5 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2Settings5 { 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 ICoreWebView2Settings5 { 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 < ICoreWebView2Settings5 > for ICoreWebView2Settings4 { fn from ( value : ICoreWebView2Settings5 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings5 > for ICoreWebView2Settings4 { fn from ( value : & ICoreWebView2Settings5 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings4 > for ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings4 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings4 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings4 > for & 'a ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings4 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings4 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings5 > for ICoreWebView2Settings3 { fn from ( value : ICoreWebView2Settings5 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings5 > for ICoreWebView2Settings3 { fn from ( value : & ICoreWebView2Settings5 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings3 > for ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings3 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings3 > for & 'a ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings3 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings5 > for ICoreWebView2Settings2 { fn from ( value : ICoreWebView2Settings5 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings5 > for ICoreWebView2Settings2 { fn from ( value : & ICoreWebView2Settings5 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings2 > for & 'a ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2Settings5 > for ICoreWebView2Settings { fn from ( value : ICoreWebView2Settings5 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2Settings5 > for ICoreWebView2Settings { fn from ( value : & ICoreWebView2Settings5 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2Settings > for & 'a ICoreWebView2Settings5 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2Settings > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2Settings > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2Settings5_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 , isscriptenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isscriptenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , iswebmessageenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredefaultscriptdialogsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , isstatusbarenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , aredevtoolsenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , allowed : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , useragent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , arebrowseracceleratorkeysenabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , enabled : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2SourceChangedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2SourceChangedEventArgs { pub unsafe fn get_IsNewDocument < > ( & self , isnewdocument : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( isnewdocument ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2SourceChangedEventArgs { type Vtable = ICoreWebView2SourceChangedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 836822341 ,7610 ,16998 , [ 137 ,20 ,246 ,56 ,72 ,161 ,247 ,215 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2SourceChangedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2SourceChangedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2SourceChangedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2SourceChangedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2SourceChangedEventArgs { 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 ICoreWebView2SourceChangedEventArgs { 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 ICoreWebView2SourceChangedEventArgs_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 , isnewdocument : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2SourceChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2SourceChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2SourceChangedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2SourceChangedEventHandler { type Vtable = ICoreWebView2SourceChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1007058847 ,21384 ,18290 , [ 139 ,72 ,121 ,247 ,239 ,26 ,179 ,124 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2SourceChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2SourceChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2SourceChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2SourceChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2SourceChangedEventHandler { 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 ICoreWebView2SourceChangedEventHandler { 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 ICoreWebView2SourceChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2StateChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2StateChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2DownloadOperation > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2StateChangedEventHandler { type Vtable = ICoreWebView2StateChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2167629204 ,32478 ,19369 , [ 191 ,113 ,172 ,240 ,169 ,91 ,88 ,221 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2StateChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2StateChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2StateChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2StateChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2StateChangedEventHandler { 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 ICoreWebView2StateChangedEventHandler { 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 ICoreWebView2StateChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2TrySuspendCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2TrySuspendCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , issuccessful : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: BOOL > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , issuccessful . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2TrySuspendCompletedHandler { type Vtable = ICoreWebView2TrySuspendCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 15861415 ,40215 ,17925 , [ 145 ,246 ,78 ,142 ,77 ,225 ,146 ,227 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2TrySuspendCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2TrySuspendCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2TrySuspendCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2TrySuspendCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2TrySuspendCompletedHandler { 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 ICoreWebView2TrySuspendCompletedHandler { 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 ICoreWebView2TrySuspendCompletedHandler_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 , errorcode : :: windows :: HRESULT , issuccessful : super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebMessageReceivedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2WebMessageReceivedEventArgs { pub unsafe fn get_Source < > ( & self , source : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( source ) , ) . ok ( ) } pub unsafe fn get_WebMessageAsJson < > ( & self , webmessageasjson : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( webmessageasjson ) , ) . ok ( ) } pub unsafe fn TryGetWebMessageAsString < > ( & self , webmessageasstring : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( webmessageasstring ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebMessageReceivedEventArgs { type Vtable = ICoreWebView2WebMessageReceivedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 261727244 ,59746 ,16903 , [ 158 ,146 ,227 ,213 ,66 ,239 ,248 ,73 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebMessageReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebMessageReceivedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebMessageReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebMessageReceivedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebMessageReceivedEventArgs { 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 ICoreWebView2WebMessageReceivedEventArgs { 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 ICoreWebView2WebMessageReceivedEventArgs_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 , source : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasjson : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasstring : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebMessageReceivedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2WebMessageReceivedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2WebMessageReceivedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebMessageReceivedEventHandler { type Vtable = ICoreWebView2WebMessageReceivedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1461796633 ,230 ,18938 , [ 142 ,7 ,137 ,142 ,160 ,30 ,203 ,210 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebMessageReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebMessageReceivedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebMessageReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebMessageReceivedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebMessageReceivedEventHandler { 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 ICoreWebView2WebMessageReceivedEventHandler { 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 ICoreWebView2WebMessageReceivedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceRequest ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceRequest { pub unsafe fn get_Uri < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn put_Uri < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Method < > ( & self , method : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( method ) , ) . ok ( ) } pub unsafe fn put_Method < 'a , > ( & self , method : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , method . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Content < > ( & self , ) -> :: windows :: Result < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > { let mut result__ : < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > ( result__ ) } pub unsafe fn put_Content < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Headers < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpRequestHeaders > { let mut result__ : < ICoreWebView2HttpRequestHeaders as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpRequestHeaders > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceRequest { type Vtable = ICoreWebView2WebResourceRequest_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2533711060 ,20780 ,16996 , [ 139 ,95 ,227 ,244 ,70 ,206 ,166 ,165 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceRequest > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceRequest ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceRequest > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceRequest ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceRequest { 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 ICoreWebView2WebResourceRequest { 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 ICoreWebView2WebResourceRequest_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 , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , method : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , method : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , headers : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceRequestedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceRequestedEventArgs { pub unsafe fn get_Request < > ( & self , ) -> :: windows :: Result < ICoreWebView2WebResourceRequest > { let mut result__ : < ICoreWebView2WebResourceRequest as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceRequest > ( result__ ) } pub unsafe fn get_Response < > ( & self , ) -> :: windows :: Result < ICoreWebView2WebResourceResponse > { let mut result__ : < ICoreWebView2WebResourceResponse as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponse > ( result__ ) } pub unsafe fn put_Response < 'a , > ( & self , response : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponse > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , response . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn GetDeferral < > ( & self , ) -> :: windows :: Result < ICoreWebView2Deferral > { let mut result__ : < ICoreWebView2Deferral as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Deferral > ( result__ ) } pub unsafe fn get_ResourceContext < > ( & self , context : * mut COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( context ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceRequestedEventArgs { type Vtable = ICoreWebView2WebResourceRequestedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1161717375 ,4807 ,18900 , [ 190 ,109 ,221 ,190 ,121 ,86 ,245 ,122 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceRequestedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceRequestedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceRequestedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceRequestedEventArgs { 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 ICoreWebView2WebResourceRequestedEventArgs { 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 ICoreWebView2WebResourceRequestedEventArgs_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 , request : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , response : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , deferral : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , context : * mut COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceRequestedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceRequestedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequestedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceRequestedEventHandler { type Vtable = ICoreWebView2WebResourceRequestedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2868950860 ,5617 ,17990 , [ 128 ,232 ,231 ,99 ,65 ,210 ,93 ,113 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceRequestedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceRequestedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceRequestedEventHandler { 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 ICoreWebView2WebResourceRequestedEventHandler { 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 ICoreWebView2WebResourceRequestedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceResponse ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceResponse { pub unsafe fn get_Content < > ( & self , ) -> :: windows :: Result < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > { let mut result__ : < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > ( result__ ) } pub unsafe fn put_Content < 'a , > ( & self , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , content . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_Headers < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpResponseHeaders > { let mut result__ : < ICoreWebView2HttpResponseHeaders as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpResponseHeaders > ( result__ ) } pub unsafe fn get_StatusCode < > ( & self , statuscode : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( statuscode ) , ) . ok ( ) } pub unsafe fn put_StatusCode < > ( & self , statuscode : i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( statuscode ) , ) . ok ( ) } pub unsafe fn get_ReasonPhrase < > ( & self , reasonphrase : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reasonphrase ) , ) . ok ( ) } pub unsafe fn put_ReasonPhrase < 'a , > ( & self , reasonphrase : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , reasonphrase . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceResponse { type Vtable = ICoreWebView2WebResourceResponse_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2868693327 ,64039 ,18685 , [ 151 ,223 ,131 ,14 ,247 ,90 ,174 ,201 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceResponse > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceResponse ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceResponse > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceResponse ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceResponse { 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 ICoreWebView2WebResourceResponse { 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 ICoreWebView2WebResourceResponse_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 , content : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , content : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , headers : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , statuscode : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , statuscode : i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reasonphrase : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reasonphrase : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceResponseReceivedEventArgs ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceResponseReceivedEventArgs { pub unsafe fn get_Request < > ( & self , ) -> :: windows :: Result < ICoreWebView2WebResourceRequest > { let mut result__ : < ICoreWebView2WebResourceRequest as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceRequest > ( result__ ) } pub unsafe fn get_Response < > ( & self , ) -> :: windows :: Result < ICoreWebView2WebResourceResponseView > { let mut result__ : < ICoreWebView2WebResourceResponseView as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2WebResourceResponseView > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceResponseReceivedEventArgs { type Vtable = ICoreWebView2WebResourceResponseReceivedEventArgs_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3520809021 ,26518 ,19339 , [ 128 ,252 ,19 ,113 ,43 ,183 ,22 ,244 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceResponseReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceResponseReceivedEventArgs ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceResponseReceivedEventArgs > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceResponseReceivedEventArgs ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceResponseReceivedEventArgs { 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 ICoreWebView2WebResourceResponseReceivedEventArgs { 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 ICoreWebView2WebResourceResponseReceivedEventArgs_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 , request : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , response : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceResponseReceivedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceResponseReceivedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponseReceivedEventArgs > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceResponseReceivedEventHandler { type Vtable = ICoreWebView2WebResourceResponseReceivedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2112457098 ,9461 ,16579 , [ 162 ,222 ,212 ,244 ,88 ,230 ,152 ,40 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceResponseReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceResponseReceivedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceResponseReceivedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceResponseReceivedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceResponseReceivedEventHandler { 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 ICoreWebView2WebResourceResponseReceivedEventHandler { 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 ICoreWebView2WebResourceResponseReceivedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceResponseView ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceResponseView { pub unsafe fn get_Headers < > ( & self , ) -> :: windows :: Result < ICoreWebView2HttpResponseHeaders > { let mut result__ : < ICoreWebView2HttpResponseHeaders as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2HttpResponseHeaders > ( result__ ) } pub unsafe fn get_StatusCode < > ( & self , statuscode : * mut i32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( statuscode ) , ) . ok ( ) } pub unsafe fn get_ReasonPhrase < > ( & self , reasonphrase : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( reasonphrase ) , ) . ok ( ) } pub unsafe fn GetContent < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponseViewGetContentCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceResponseView { type Vtable = ICoreWebView2WebResourceResponseView_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2037387347 ,30553 ,16738 , [ 143 ,125 ,241 ,179 ,240 ,132 ,146 ,141 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceResponseView > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceResponseView ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceResponseView > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceResponseView ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceResponseView { 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 ICoreWebView2WebResourceResponseView { 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 ICoreWebView2WebResourceResponseView_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 , headers : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , statuscode : * mut i32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , reasonphrase : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WebResourceResponseViewGetContentCompletedHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2WebResourceResponseViewGetContentCompletedHandler { pub unsafe fn Invoke < 'a , > ( & self , errorcode : :: windows :: HRESULT , content : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( errorcode ) , content . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WebResourceResponseViewGetContentCompletedHandler { type Vtable = ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2270640353 ,40866 ,16611 , [ 139 ,116 ,46 ,137 ,114 ,221 ,111 ,231 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WebResourceResponseViewGetContentCompletedHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WebResourceResponseViewGetContentCompletedHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WebResourceResponseViewGetContentCompletedHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WebResourceResponseViewGetContentCompletedHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WebResourceResponseViewGetContentCompletedHandler { 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 ICoreWebView2WebResourceResponseViewGetContentCompletedHandler { 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 ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_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 , errorcode : :: windows :: HRESULT , content : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WindowCloseRequestedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2WindowCloseRequestedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2 > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WindowCloseRequestedEventHandler { type Vtable = ICoreWebView2WindowCloseRequestedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1545202144 ,2351 ,18539 , [ 175 ,250 ,202 ,130 ,49 ,145 ,48 ,57 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WindowCloseRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WindowCloseRequestedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WindowCloseRequestedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WindowCloseRequestedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WindowCloseRequestedEventHandler { 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 ICoreWebView2WindowCloseRequestedEventHandler { 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 ICoreWebView2WindowCloseRequestedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2WindowFeatures ( :: windows :: IUnknown ) ; impl ICoreWebView2WindowFeatures { pub unsafe fn get_HasPosition < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_HasSize < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_Left < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_Top < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_Height < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_Width < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_ShouldDisplayMenuBar < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_ShouldDisplayStatus < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_ShouldDisplayToolbar < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_ShouldDisplayScrollBars < > ( & self , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2WindowFeatures { type Vtable = ICoreWebView2WindowFeatures_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 1588549023 ,46190 ,17303 , [ 136 ,96 ,228 ,34 ,242 ,135 ,255 ,30 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2WindowFeatures > for :: windows :: IUnknown { fn from ( value : ICoreWebView2WindowFeatures ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2WindowFeatures > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2WindowFeatures ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2WindowFeatures { 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 ICoreWebView2WindowFeatures { 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 ICoreWebView2WindowFeatures_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 , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2ZoomFactorChangedEventHandler ( :: windows :: IUnknown ) ; impl ICoreWebView2ZoomFactorChangedEventHandler { pub unsafe fn Invoke < 'a , > ( & self , sender : impl :: windows :: IntoParam < 'a , ICoreWebView2Controller > , args : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , sender . into_param ( ) . abi ( ) , args . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2ZoomFactorChangedEventHandler { type Vtable = ICoreWebView2ZoomFactorChangedEventHandler_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 3039654358 ,50399 ,17731 , [ 169 ,12 ,100 ,163 ,230 ,15 ,56 ,203 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2ZoomFactorChangedEventHandler > for :: windows :: IUnknown { fn from ( value : ICoreWebView2ZoomFactorChangedEventHandler ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2ZoomFactorChangedEventHandler > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2ZoomFactorChangedEventHandler ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2ZoomFactorChangedEventHandler { 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 ICoreWebView2ZoomFactorChangedEventHandler { 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 ICoreWebView2ZoomFactorChangedEventHandler_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 , sender : :: windows :: RawPtr , args : :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2_2 ( :: windows :: IUnknown ) ; impl ICoreWebView2_2 { pub unsafe fn get_Settings < > ( & self , ) -> :: windows :: Result < ICoreWebView2Settings > { let mut result__ : < ICoreWebView2Settings as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Settings > ( result__ ) } pub unsafe fn get_Source < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn Navigate < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateToString < 'a , > ( & self , htmlcontent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , htmlcontent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ContentLoading < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContentLoadingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContentLoading < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_SourceChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2SourceChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_SourceChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_HistoryChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2HistoryChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_HistoryChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ScriptDialogOpening < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ScriptDialogOpeningEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ScriptDialogOpening < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_PermissionRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2PermissionRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_PermissionRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ProcessFailed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ProcessFailed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddScriptToExecuteOnDocumentCreated < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn RemoveScriptToExecuteOnDocumentCreated < 'a , > ( & self , id : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , id . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn ExecuteScript < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2ExecuteScriptCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CapturePreview < 'a , > ( & self , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CapturePreviewCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( imageformat ) , imagestream . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Reload < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsJson < 'a , > ( & self , webmessageasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , webmessageasjson . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsString < 'a , > ( & self , webmessageasstring : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , webmessageasstring . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebMessageReceived < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebMessageReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebMessageReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CallDevToolsProtocolMethod < 'a , > ( & self , methodname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , parametersasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , methodname . into_param ( ) . abi ( ) , parametersasjson . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_BrowserProcessId < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_CanGoBack < > ( & self , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoback ) , ) . ok ( ) } pub unsafe fn get_CanGoForward < > ( & self , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoforward ) , ) . ok ( ) } pub unsafe fn GoBack < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GoForward < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDevToolsProtocolEventReceiver < 'a , > ( & self , eventname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2DevToolsProtocolEventReceiver > { let mut result__ : < ICoreWebView2DevToolsProtocolEventReceiver as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , eventname . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2DevToolsProtocolEventReceiver > ( result__ ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_NewWindowRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewWindowRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewWindowRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DocumentTitleChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DocumentTitleChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DocumentTitleChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_DocumentTitle < > ( & self , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( title ) , ) . ok ( ) } pub unsafe fn AddHostObjectToScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , ) . ok ( ) } pub unsafe fn RemoveHostObjectFromScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn OpenDevToolsWindow < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_ContainsFullScreenElementChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContainsFullScreenElementChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContainsFullScreenElementChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ContainsFullScreenElement < > ( & self , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( containsfullscreenelement ) , ) . ok ( ) } pub unsafe fn add_WebResourceRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn RemoveWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn add_WindowCloseRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WindowCloseRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WindowCloseRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .60 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebResourceResponseReceived < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponseReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .61 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceResponseReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .62 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateWithWebResourceRequest < 'a , > ( & self , request : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequest > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .63 ) ( :: windows :: Abi :: abi ( self ) , request . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DOMContentLoaded < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DOMContentLoadedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .64 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DOMContentLoaded < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .65 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_CookieManager < > ( & self , ) -> :: windows :: Result < ICoreWebView2CookieManager > { let mut result__ : < ICoreWebView2CookieManager as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .66 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2CookieManager > ( result__ ) } pub unsafe fn get_Environment < > ( & self , ) -> :: windows :: Result < ICoreWebView2Environment > { let mut result__ : < ICoreWebView2Environment as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .67 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Environment > ( result__ ) } } unsafe impl :: windows :: Interface for ICoreWebView2_2 { type Vtable = ICoreWebView2_2_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2660175096 ,58992 ,19294 , [ 178 ,188 ,115 ,224 ,97 ,227 ,24 ,76 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2_2 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2_2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_2 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2_2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2_2 { 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 ICoreWebView2_2 { 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 < ICoreWebView2_2 > for ICoreWebView2 { fn from ( value : ICoreWebView2_2 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_2 > for ICoreWebView2 { fn from ( value : & ICoreWebView2_2 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for ICoreWebView2_2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for & 'a ICoreWebView2_2 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2_2_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 , settings : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , htmlcontent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , id : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasstring : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , methodname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , parametersasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , 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 , eventname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , receiver : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , request : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookiemanager : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , environment : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2_3 ( :: windows :: IUnknown ) ; impl ICoreWebView2_3 { pub unsafe fn get_Settings < > ( & self , ) -> :: windows :: Result < ICoreWebView2Settings > { let mut result__ : < ICoreWebView2Settings as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Settings > ( result__ ) } pub unsafe fn get_Source < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn Navigate < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateToString < 'a , > ( & self , htmlcontent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , htmlcontent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ContentLoading < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContentLoadingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContentLoading < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_SourceChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2SourceChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_SourceChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_HistoryChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2HistoryChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_HistoryChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ScriptDialogOpening < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ScriptDialogOpeningEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ScriptDialogOpening < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_PermissionRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2PermissionRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_PermissionRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ProcessFailed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ProcessFailed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddScriptToExecuteOnDocumentCreated < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn RemoveScriptToExecuteOnDocumentCreated < 'a , > ( & self , id : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , id . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn ExecuteScript < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2ExecuteScriptCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CapturePreview < 'a , > ( & self , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CapturePreviewCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( imageformat ) , imagestream . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Reload < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsJson < 'a , > ( & self , webmessageasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , webmessageasjson . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsString < 'a , > ( & self , webmessageasstring : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , webmessageasstring . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebMessageReceived < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebMessageReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebMessageReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CallDevToolsProtocolMethod < 'a , > ( & self , methodname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , parametersasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , methodname . into_param ( ) . abi ( ) , parametersasjson . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_BrowserProcessId < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_CanGoBack < > ( & self , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoback ) , ) . ok ( ) } pub unsafe fn get_CanGoForward < > ( & self , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoforward ) , ) . ok ( ) } pub unsafe fn GoBack < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GoForward < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDevToolsProtocolEventReceiver < 'a , > ( & self , eventname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2DevToolsProtocolEventReceiver > { let mut result__ : < ICoreWebView2DevToolsProtocolEventReceiver as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , eventname . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2DevToolsProtocolEventReceiver > ( result__ ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_NewWindowRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewWindowRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewWindowRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DocumentTitleChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DocumentTitleChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DocumentTitleChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_DocumentTitle < > ( & self , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( title ) , ) . ok ( ) } pub unsafe fn AddHostObjectToScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , ) . ok ( ) } pub unsafe fn RemoveHostObjectFromScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn OpenDevToolsWindow < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_ContainsFullScreenElementChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContainsFullScreenElementChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContainsFullScreenElementChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ContainsFullScreenElement < > ( & self , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( containsfullscreenelement ) , ) . ok ( ) } pub unsafe fn add_WebResourceRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn RemoveWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn add_WindowCloseRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WindowCloseRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WindowCloseRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .60 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebResourceResponseReceived < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponseReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .61 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceResponseReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .62 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateWithWebResourceRequest < 'a , > ( & self , request : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequest > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .63 ) ( :: windows :: Abi :: abi ( self ) , request . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DOMContentLoaded < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DOMContentLoadedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .64 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DOMContentLoaded < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .65 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_CookieManager < > ( & self , ) -> :: windows :: Result < ICoreWebView2CookieManager > { let mut result__ : < ICoreWebView2CookieManager as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .66 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2CookieManager > ( result__ ) } pub unsafe fn get_Environment < > ( & self , ) -> :: windows :: Result < ICoreWebView2Environment > { let mut result__ : < ICoreWebView2Environment as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .67 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Environment > ( result__ ) } pub unsafe fn TrySuspend < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2TrySuspendCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .68 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Resume < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .69 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_IsSuspended < > ( & self , issuspended : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .70 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( issuspended ) , ) . ok ( ) } pub unsafe fn SetVirtualHostNameToFolderMapping < 'a , > ( & self , hostname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , folderpath : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , accesskind : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .71 ) ( :: windows :: Abi :: abi ( self ) , hostname . into_param ( ) . abi ( ) , folderpath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( accesskind ) , ) . ok ( ) } pub unsafe fn ClearVirtualHostNameToFolderMapping < 'a , > ( & self , hostname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .72 ) ( :: windows :: Abi :: abi ( self ) , hostname . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2_3 { type Vtable = ICoreWebView2_3_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 2698436384 ,15250 ,16749 , [ 170 ,12 ,67 ,122 ,156 ,114 ,120 ,87 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2_3 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2_3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_3 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2_3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2_3 { 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 ICoreWebView2_3 { 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 < ICoreWebView2_3 > for ICoreWebView2_2 { fn from ( value : ICoreWebView2_3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_3 > for ICoreWebView2_2 { fn from ( value : & ICoreWebView2_3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_2 > for ICoreWebView2_3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_2 > for & 'a ICoreWebView2_3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2_3 > for ICoreWebView2 { fn from ( value : ICoreWebView2_3 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_3 > for ICoreWebView2 { fn from ( value : & ICoreWebView2_3 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for ICoreWebView2_3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for & 'a ICoreWebView2_3 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2_3_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 , settings : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , htmlcontent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , id : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasstring : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , methodname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , parametersasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , 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 , eventname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , receiver : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , request : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookiemanager : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , environment : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , issuspended : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hostname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , folderpath : super::super::super::super::Windows::Win32::Foundation:: PWSTR , accesskind : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hostname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ICoreWebView2_4 ( :: windows :: IUnknown ) ; impl ICoreWebView2_4 { pub unsafe fn get_Settings < > ( & self , ) -> :: windows :: Result < ICoreWebView2Settings > { let mut result__ : < ICoreWebView2Settings as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Settings > ( result__ ) } pub unsafe fn get_Source < > ( & self , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( uri ) , ) . ok ( ) } pub unsafe fn Navigate < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateToString < 'a , > ( & self , htmlcontent : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , htmlcontent . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ContentLoading < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContentLoadingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContentLoading < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_SourceChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2SourceChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_SourceChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_HistoryChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2HistoryChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_HistoryChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .14 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_NavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .15 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .16 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .17 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .18 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameNavigationCompleted < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NavigationCompletedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .19 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameNavigationCompleted < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .20 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ScriptDialogOpening < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ScriptDialogOpeningEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .21 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ScriptDialogOpening < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .22 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_PermissionRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2PermissionRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .23 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_PermissionRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .24 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_ProcessFailed < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ProcessFailedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .25 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ProcessFailed < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .26 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddScriptToExecuteOnDocumentCreated < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .27 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn RemoveScriptToExecuteOnDocumentCreated < 'a , > ( & self , id : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .28 ) ( :: windows :: Abi :: abi ( self ) , id . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn ExecuteScript < 'a , > ( & self , javascript : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2ExecuteScriptCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .29 ) ( :: windows :: Abi :: abi ( self ) , javascript . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CapturePreview < 'a , > ( & self , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Storage::StructuredStorage:: IStream > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CapturePreviewCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .30 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( imageformat ) , imagestream . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Reload < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .31 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsJson < 'a , > ( & self , webmessageasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .32 ) ( :: windows :: Abi :: abi ( self ) , webmessageasjson . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn PostWebMessageAsString < 'a , > ( & self , webmessageasstring : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .33 ) ( :: windows :: Abi :: abi ( self ) , webmessageasstring . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebMessageReceived < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebMessageReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .34 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebMessageReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .35 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn CallDevToolsProtocolMethod < 'a , > ( & self , methodname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , parametersasjson : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2CallDevToolsProtocolMethodCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .36 ) ( :: windows :: Abi :: abi ( self ) , methodname . into_param ( ) . abi ( ) , parametersasjson . into_param ( ) . abi ( ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_BrowserProcessId < > ( & self , value : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .37 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( value ) , ) . ok ( ) } pub unsafe fn get_CanGoBack < > ( & self , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .38 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoback ) , ) . ok ( ) } pub unsafe fn get_CanGoForward < > ( & self , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .39 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( cangoforward ) , ) . ok ( ) } pub unsafe fn GoBack < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .40 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GoForward < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .41 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn GetDevToolsProtocolEventReceiver < 'a , > ( & self , eventname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ICoreWebView2DevToolsProtocolEventReceiver > { let mut result__ : < ICoreWebView2DevToolsProtocolEventReceiver as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .42 ) ( :: windows :: Abi :: abi ( self ) , eventname . into_param ( ) . abi ( ) , & mut result__ ) . from_abi :: < ICoreWebView2DevToolsProtocolEventReceiver > ( result__ ) } pub unsafe fn Stop < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .43 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_NewWindowRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2NewWindowRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .44 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_NewWindowRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .45 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DocumentTitleChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DocumentTitleChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .46 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DocumentTitleChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .47 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_DocumentTitle < > ( & self , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .48 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( title ) , ) . ok ( ) } pub unsafe fn AddHostObjectToScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .49 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( object ) , ) . ok ( ) } pub unsafe fn RemoveHostObjectFromScript < 'a , > ( & self , name : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .50 ) ( :: windows :: Abi :: abi ( self ) , name . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn OpenDevToolsWindow < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .51 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn add_ContainsFullScreenElementChanged < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2ContainsFullScreenElementChangedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .52 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_ContainsFullScreenElementChanged < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .53 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_ContainsFullScreenElement < > ( & self , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .54 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( containsfullscreenelement ) , ) . ok ( ) } pub unsafe fn add_WebResourceRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .55 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .56 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn AddWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .57 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn RemoveWebResourceRequestedFilter < 'a , > ( & self , uri : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .58 ) ( :: windows :: Abi :: abi ( self ) , uri . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( resourcecontext ) , ) . ok ( ) } pub unsafe fn add_WindowCloseRequested < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WindowCloseRequestedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .59 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WindowCloseRequested < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .60 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_WebResourceResponseReceived < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceResponseReceivedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .61 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_WebResourceResponseReceived < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .62 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn NavigateWithWebResourceRequest < 'a , > ( & self , request : impl :: windows :: IntoParam < 'a , ICoreWebView2WebResourceRequest > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .63 ) ( :: windows :: Abi :: abi ( self ) , request . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DOMContentLoaded < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DOMContentLoadedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .64 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DOMContentLoaded < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .65 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn get_CookieManager < > ( & self , ) -> :: windows :: Result < ICoreWebView2CookieManager > { let mut result__ : < ICoreWebView2CookieManager as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .66 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2CookieManager > ( result__ ) } pub unsafe fn get_Environment < > ( & self , ) -> :: windows :: Result < ICoreWebView2Environment > { let mut result__ : < ICoreWebView2Environment as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .67 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < ICoreWebView2Environment > ( result__ ) } pub unsafe fn TrySuspend < 'a , > ( & self , handler : impl :: windows :: IntoParam < 'a , ICoreWebView2TrySuspendCompletedHandler > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .68 ) ( :: windows :: Abi :: abi ( self ) , handler . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn Resume < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .69 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn get_IsSuspended < > ( & self , issuspended : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .70 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( issuspended ) , ) . ok ( ) } pub unsafe fn SetVirtualHostNameToFolderMapping < 'a , > ( & self , hostname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , folderpath : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , accesskind : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .71 ) ( :: windows :: Abi :: abi ( self ) , hostname . into_param ( ) . abi ( ) , folderpath . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( accesskind ) , ) . ok ( ) } pub unsafe fn ClearVirtualHostNameToFolderMapping < 'a , > ( & self , hostname : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::Foundation:: PWSTR > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .72 ) ( :: windows :: Abi :: abi ( self ) , hostname . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_FrameCreated < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2FrameCreatedEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .73 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_FrameCreated < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .74 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } pub unsafe fn add_DownloadStarting < 'a , > ( & self , eventhandler : impl :: windows :: IntoParam < 'a , ICoreWebView2DownloadStartingEventHandler > , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .75 ) ( :: windows :: Abi :: abi ( self ) , eventhandler . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( token ) , ) . ok ( ) } pub unsafe fn remove_DownloadStarting < 'a , > ( & self , token : impl :: windows :: IntoParam < 'a , super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken > , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .76 ) ( :: windows :: Abi :: abi ( self ) , token . into_param ( ) . abi ( ) , ) . ok ( ) } } unsafe impl :: windows :: Interface for ICoreWebView2_4 { type Vtable = ICoreWebView2_4_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 550514009 ,28146 ,17116 , [ 189 ,6 ,249 ,138 ,105 ,75 ,19 ,2 ] , ) ; } impl :: std :: convert :: From < ICoreWebView2_4 > for :: windows :: IUnknown { fn from ( value : ICoreWebView2_4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_4 > for :: windows :: IUnknown { fn from ( value : & ICoreWebView2_4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ICoreWebView2_4 { 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 ICoreWebView2_4 { 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 < ICoreWebView2_4 > for ICoreWebView2_3 { fn from ( value : ICoreWebView2_4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_4 > for ICoreWebView2_3 { fn from ( value : & ICoreWebView2_4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_3 > for ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_3 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_3 > for & 'a ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_3 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_3 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2_4 > for ICoreWebView2_2 { fn from ( value : ICoreWebView2_4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_4 > for ICoreWebView2_2 { fn from ( value : & ICoreWebView2_4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_2 > for ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2_2 > for & 'a ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2_2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2_2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } impl :: std :: convert :: From < ICoreWebView2_4 > for ICoreWebView2 { fn from ( value : ICoreWebView2_4 ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ICoreWebView2_4 > for ICoreWebView2 { fn from ( value : & ICoreWebView2_4 ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ICoreWebView2 > for & 'a ICoreWebView2_4 { fn into_param ( self ) -> :: windows :: Param < 'a , ICoreWebView2 > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ICoreWebView2 > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct ICoreWebView2_4_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 , settings : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , htmlcontent : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , id : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , javascript : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , imageformat : COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT , imagestream : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , webmessageasstring : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , methodname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , parametersasjson : super::super::super::super::Windows::Win32::Foundation:: PWSTR , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , value : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoback : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cangoforward : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , 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 , eventname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , receiver : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , title : * mut super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , object : * mut super::super::super::super::Windows::Win32::System::OleAutomation:: VARIANT_abi , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , name : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , containsfullscreenelement : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , uri : super::super::super::super::Windows::Win32::Foundation:: PWSTR , resourcecontext : COREWEBVIEW2_WEB_RESOURCE_CONTEXT , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , request : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , cookiemanager : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , environment : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , handler : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , issuspended : * mut super::super::super::super::Windows::Win32::Foundation:: BOOL , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hostname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , folderpath : super::super::super::super::Windows::Win32::Foundation:: PWSTR , accesskind : COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , hostname : super::super::super::super::Windows::Win32::Foundation:: PWSTR , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , eventhandler : :: windows :: RawPtr , token : * mut super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , token : super::super::super::super::Windows::Win32::System::WinRT:: EventRegistrationToken , ) -> :: windows :: HRESULT , ) ; pub const __REQUIRED_RPCNDR_H_VERSION__ : u32 = 475u32 ; } } } } # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Windows { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Win32 { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod Foundation { # [ repr ( transparent ) ] # [ derive ( :: std :: default :: Default , :: std :: clone :: Clone , :: std :: marker :: Copy , :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: fmt :: Debug ) ] pub struct BOOL ( pub i32 ) ; unsafe impl :: windows :: Abi for BOOL { type Abi = Self ; type DefaultType = Self ; } impl BOOL { # [ inline ] pub fn as_bool ( self ) -> bool { ! ( self . 0 == 0 ) } # [ inline ] pub fn ok ( self ) -> :: windows :: Result < ( ) > { if self . as_bool ( ) { Ok ( ( ) ) } else { Err ( :: windows :: 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 ( ) ) } } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: Eq ) ] pub struct BSTR ( * mut u16 ) ; impl BSTR { # [ doc = r" Create an empty `BSTR`." ] # [ doc = r"" ] # [ doc = r" This function does not allocate memory." ] pub fn new ( ) -> Self { Self ( std :: ptr :: null_mut ( ) ) } # [ doc = r" Returns `true` if the string is empty." ] pub fn is_empty ( & self ) -> bool { self . 0 . is_null ( ) } # [ doc = r" Returns the length of the string." ] pub fn len ( & self ) -> usize { if self . is_empty ( ) { return 0 ; } unsafe { SysStringLen ( self ) as usize } } # [ doc = r" Create a `BSTR` from a slice of 16-bit characters." ] pub fn from_wide ( value : & [ u16 ] ) -> Self { if value . len ( ) == 0 { return Self ( :: std :: ptr :: null_mut ( ) ) ; } unsafe { SysAllocStringLen ( PWSTR ( value . as_ptr ( ) as _ ) , value . len ( ) as u32 , ) } } # [ doc = r" Get the string as 16-bit characters." ] pub fn as_wide ( & self ) -> & [ u16 ] { if self . 0 . is_null ( ) { return & [ ] ; } unsafe { :: std :: slice :: from_raw_parts ( self . 0 as * const u16 , self . len ( ) ) } } } impl :: std :: clone :: Clone for BSTR { fn clone ( & self ) -> Self { Self :: from_wide ( self . as_wide ( ) ) } } impl :: std :: convert :: From < & str > for BSTR { fn from ( value : & str ) -> Self { let value : :: std :: vec :: Vec < u16 > = value . encode_utf16 ( ) . collect ( ) ; Self :: from_wide ( & value ) } } impl :: std :: convert :: From < :: std :: string :: String > for BSTR { fn from ( value : :: std :: string :: String ) -> Self { value . as_str ( ) . into ( ) } } impl :: std :: convert :: From < & :: std :: string :: String > for BSTR { fn from ( value : & :: std :: string :: String ) -> Self { value . as_str ( ) . into ( ) } } impl < 'a > :: std :: convert :: TryFrom < & 'a BSTR > for :: std :: string :: String { type Error = :: std :: string :: FromUtf16Error ; fn try_from ( value : & BSTR ) -> :: std :: result :: Result < Self , Self :: Error > { :: std :: string :: String :: from_utf16 ( value . as_wide ( ) ) } } impl :: std :: convert :: TryFrom < BSTR > for :: std :: string :: String { type Error = :: std :: string :: FromUtf16Error ; fn try_from ( value : BSTR ) -> :: std :: result :: Result < Self , Self :: Error > { :: std :: string :: String :: try_from ( & value ) } } impl :: std :: default :: Default for BSTR { fn default ( ) -> Self { Self ( :: std :: ptr :: null_mut ( ) ) } } impl :: std :: fmt :: Display for BSTR { fn fmt ( & self , f : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { use :: std :: fmt :: Write ; for c in :: std :: char :: decode_utf16 ( self . as_wide ( ) . iter ( ) . cloned ( ) ) { f . write_char ( c . map_err ( | _ | :: std :: fmt :: Error ) ? ) ? } Ok ( ( ) ) } } impl :: std :: fmt :: Debug for BSTR { fn fmt ( & self , f : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { :: std :: write ! ( f , "{}" , self ) } } impl :: std :: cmp :: PartialEq for BSTR { fn eq ( & self , other : & Self ) -> bool { self . as_wide ( ) == other . as_wide ( ) } } impl :: std :: cmp :: PartialEq < :: std :: string :: String > for BSTR { fn eq ( & self , other : & :: std :: string :: String ) -> bool { self == other . as_str ( ) } } impl :: std :: cmp :: PartialEq < str > for BSTR { fn eq ( & self , other : & str ) -> bool { self == other } } impl :: std :: cmp :: PartialEq < & str > for BSTR { fn eq ( & self , other : && str ) -> bool { self . as_wide ( ) . iter ( ) . copied ( ) . eq ( other . encode_utf16 ( ) ) } } impl :: std :: cmp :: PartialEq < BSTR > for & str { fn eq ( & self , other : & BSTR ) -> bool { other == self } } impl :: std :: ops :: Drop for BSTR { fn drop ( & mut self ) { if ! self . 0 . is_null ( ) { unsafe { SysFreeString ( self as & Self ) } } } } unsafe impl :: windows :: Abi for BSTR { type Abi = * mut u16 ; type DefaultType = Self ; fn set_abi ( & mut self ) -> * mut * mut u16 { debug_assert ! ( self . 0 . is_null ( ) ) ; & mut self . 0 as * mut _ as _ } } pub type BSTR_abi = * mut u16 ; pub const E_NOINTERFACE : :: windows :: HRESULT = :: windows :: HRESULT ( -2147467262i32 as _ ) ; pub const E_POINTER : :: windows :: HRESULT = :: windows :: HRESULT ( -2147467261i32 as _ ) ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct FILETIME { pub dwLowDateTime : u32 , pub dwHighDateTime : u32 } impl FILETIME { } impl :: std :: default :: Default for FILETIME { fn default ( ) -> Self { Self { dwLowDateTime : 0 , dwHighDateTime : 0 } } } impl :: std :: fmt :: Debug for FILETIME { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "FILETIME" ) . field ( "dwLowDateTime" , & self . dwLowDateTime ) . field ( "dwHighDateTime" , & self . dwHighDateTime ) . finish ( ) } } impl :: std :: cmp :: PartialEq for FILETIME { fn eq ( & self , other : & Self ) -> bool { self . dwLowDateTime == other . dwLowDateTime && self . dwHighDateTime == other . dwHighDateTime } } impl :: std :: cmp :: Eq for FILETIME { } unsafe impl :: windows :: Abi for FILETIME { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ 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 ; } pub const S_OK : :: windows :: HRESULT = :: windows :: HRESULT ( 0i32 as _ ) ; pub unsafe fn SysAllocStringLen < 'a , > ( strin : impl :: windows :: IntoParam < 'a , PWSTR > , ui : u32 , ) -> BSTR { # [ cfg ( windows ) ] { # [ link ( name ="OLEAUT32" ) ] extern "system" { fn SysAllocStringLen ( strin : PWSTR , ui : u32 ) -> BSTR ; } SysAllocStringLen ( strin . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( ui ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SysFreeString < 'a , > ( bstrstring : impl :: windows :: IntoParam < 'a , BSTR > , ) { # [ cfg ( windows ) ] { # [ link ( name ="OLEAUT32" ) ] extern "system" { fn SysFreeString ( bstrstring : BSTR_abi ) ; } SysFreeString ( bstrstring . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn SysStringLen < 'a , > ( pbstr : impl :: windows :: IntoParam < 'a , BSTR > , ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="OLEAUT32" ) ] extern "system" { fn SysStringLen ( pbstr : BSTR_abi ) -> u32 ; } SysStringLen ( pbstr . into_param ( ) . abi ( ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } # [ 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 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 ; } pub unsafe fn UpdateWindow < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: BOOL { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn UpdateWindow ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: BOOL ; } UpdateWindow ( hwnd . 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 Storage { # [ allow ( unused_variables , non_upper_case_globals , non_snake_case , unused_unsafe , non_camel_case_types , dead_code , clippy :: all ) ] pub mod StructuredStorage { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct ISequentialStream ( :: windows :: IUnknown ) ; impl ISequentialStream { pub unsafe fn Read < > ( & self , pv : * mut :: std :: ffi :: c_void , cb : u32 , pcbread : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pv ) , :: std :: mem :: transmute ( cb ) , :: std :: mem :: transmute ( pcbread ) , ) . ok ( ) } pub unsafe fn Write < > ( & self , pv : * const :: std :: ffi :: c_void , cb : u32 , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pv ) , :: std :: mem :: transmute ( cb ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } } unsafe impl :: windows :: Interface for ISequentialStream { type Vtable = ISequentialStream_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 208878128 ,10780 ,4558 , [ 173 ,229 ,0 ,170 ,0 ,68 ,119 ,61 ] , ) ; } impl :: std :: convert :: From < ISequentialStream > for :: windows :: IUnknown { fn from ( value : ISequentialStream ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & ISequentialStream > for :: windows :: IUnknown { fn from ( value : & ISequentialStream ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for ISequentialStream { 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 ISequentialStream { 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 ISequentialStream_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 , pv : * mut :: std :: ffi :: c_void , cb : u32 , pcbread : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pv : * const :: std :: ffi :: c_void , cb : u32 , pcbwritten : * mut u32 , ) -> :: windows :: HRESULT , ) ; # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] pub struct IStream ( :: windows :: IUnknown ) ; impl IStream { pub unsafe fn Read < > ( & self , pv : * mut :: std :: ffi :: c_void , cb : u32 , pcbread : * mut u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .3 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pv ) , :: std :: mem :: transmute ( cb ) , :: std :: mem :: transmute ( pcbread ) , ) . ok ( ) } pub unsafe fn Write < > ( & self , pv : * const :: std :: ffi :: c_void , cb : u32 , ) -> :: windows :: Result < u32 > { let mut result__ : < u32 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .4 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pv ) , :: std :: mem :: transmute ( cb ) , & mut result__ ) . from_abi :: < u32 > ( result__ ) } pub unsafe fn Seek < > ( & self , dlibmove : i64 , dworigin : STREAM_SEEK , ) -> :: windows :: Result < u64 > { let mut result__ : < u64 as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .5 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( dlibmove ) , :: std :: mem :: transmute ( dworigin ) , & mut result__ ) . from_abi :: < u64 > ( result__ ) } pub unsafe fn SetSize < > ( & self , libnewsize : u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .6 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( libnewsize ) , ) . ok ( ) } pub unsafe fn CopyTo < 'a , > ( & self , pstm : impl :: windows :: IntoParam < 'a , IStream > , cb : u64 , pcbread : * mut u64 , pcbwritten : * mut u64 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .7 ) ( :: windows :: Abi :: abi ( self ) , pstm . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( cb ) , :: std :: mem :: transmute ( pcbread ) , :: std :: mem :: transmute ( pcbwritten ) , ) . ok ( ) } pub unsafe fn Commit < > ( & self , grfcommitflags : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .8 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( grfcommitflags ) , ) . ok ( ) } pub unsafe fn Revert < > ( & self , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .9 ) ( :: windows :: Abi :: abi ( self ) , ) . ok ( ) } pub unsafe fn LockRegion < > ( & self , liboffset : u64 , cb : u64 , dwlocktype : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .10 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( liboffset ) , :: std :: mem :: transmute ( cb ) , :: std :: mem :: transmute ( dwlocktype ) , ) . ok ( ) } pub unsafe fn UnlockRegion < > ( & self , liboffset : u64 , cb : u64 , dwlocktype : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .11 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( liboffset ) , :: std :: mem :: transmute ( cb ) , :: std :: mem :: transmute ( dwlocktype ) , ) . ok ( ) } pub unsafe fn Stat < > ( & self , pstatstg : * mut STATSTG , grfstatflag : u32 , ) -> :: windows :: Result < ( ) > { ( :: windows :: Interface :: vtable ( self ) .12 ) ( :: windows :: Abi :: abi ( self ) , :: std :: mem :: transmute ( pstatstg ) , :: std :: mem :: transmute ( grfstatflag ) , ) . ok ( ) } pub unsafe fn Clone < > ( & self , ) -> :: windows :: Result < IStream > { let mut result__ : < IStream as :: windows :: Abi > :: Abi = :: std :: mem :: zeroed ( ) ; ( :: windows :: Interface :: vtable ( self ) .13 ) ( :: windows :: Abi :: abi ( self ) , & mut result__ ) . from_abi :: < IStream > ( result__ ) } } unsafe impl :: windows :: Interface for IStream { type Vtable = IStream_abi ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 12 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } impl :: std :: convert :: From < IStream > for :: windows :: IUnknown { fn from ( value : IStream ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IStream > for :: windows :: IUnknown { fn from ( value : & IStream ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , :: windows :: IUnknown > for IStream { 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 IStream { 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 < IStream > for ISequentialStream { fn from ( value : IStream ) -> Self { unsafe { :: std :: mem :: transmute ( value ) } } } impl :: std :: convert :: From < & IStream > for ISequentialStream { fn from ( value : & IStream ) -> Self { :: std :: convert :: From :: from ( :: std :: clone :: Clone :: clone ( value ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ISequentialStream > for IStream { fn into_param ( self ) -> :: windows :: Param < 'a , ISequentialStream > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ISequentialStream > :: into ( self ) ) } } impl < 'a > :: windows :: IntoParam < 'a , ISequentialStream > for & 'a IStream { fn into_param ( self ) -> :: windows :: Param < 'a , ISequentialStream > { :: windows :: Param :: Owned ( :: std :: convert :: Into :: < ISequentialStream > :: into ( :: std :: clone :: Clone :: clone ( self ) ) ) } } # [ repr ( C ) ] # [ doc ( hidden ) ] pub struct IStream_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 , pv : * mut :: std :: ffi :: c_void , cb : u32 , pcbread : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pv : * const :: std :: ffi :: c_void , cb : u32 , pcbwritten : * mut u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , dlibmove : i64 , dworigin : STREAM_SEEK , plibnewposition : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , libnewsize : u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pstm : :: windows :: RawPtr , cb : u64 , pcbread : * mut u64 , pcbwritten : * mut u64 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , grfcommitflags : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , liboffset : u64 , cb : u64 , dwlocktype : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , liboffset : u64 , cb : u64 , dwlocktype : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , pstatstg : * mut STATSTG , grfstatflag : u32 , ) -> :: windows :: HRESULT , pub unsafe extern "system" fn ( this : :: windows :: RawPtr , ppstm : * mut :: windows :: RawPtr , ) -> :: windows :: HRESULT , ) ; # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct STATSTG { pub pwcsName : super::super::Foundation:: PWSTR , pub r#type : u32 , pub cbSize : u64 , pub mtime : super::super::Foundation:: FILETIME , pub ctime : super::super::Foundation:: FILETIME , pub atime : super::super::Foundation:: FILETIME , pub grfMode : u32 , pub grfLocksSupported : u32 , pub clsid : :: windows :: Guid , pub grfStateBits : u32 , pub reserved : u32 } impl STATSTG { } impl :: std :: default :: Default for STATSTG { fn default ( ) -> Self { Self { pwcsName : :: std :: default :: Default :: default ( ) , r#type : 0 , cbSize : 0 , mtime : :: std :: default :: Default :: default ( ) , ctime : :: std :: default :: Default :: default ( ) , atime : :: std :: default :: Default :: default ( ) , grfMode : 0 , grfLocksSupported : 0 , clsid : :: std :: default :: Default :: default ( ) , grfStateBits : 0 , reserved : 0 } } } impl :: std :: fmt :: Debug for STATSTG { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "STATSTG" ) . field ( "pwcsName" , & self . pwcsName ) . field ( "r#type" , & self . r#type ) . field ( "cbSize" , & self . cbSize ) . field ( "mtime" , & self . mtime ) . field ( "ctime" , & self . ctime ) . field ( "atime" , & self . atime ) . field ( "grfMode" , & self . grfMode ) . field ( "grfLocksSupported" , & self . grfLocksSupported ) . field ( "clsid" , & self . clsid ) . field ( "grfStateBits" , & self . grfStateBits ) . field ( "reserved" , & self . reserved ) . finish ( ) } } impl :: std :: cmp :: PartialEq for STATSTG { fn eq ( & self , other : & Self ) -> bool { self . pwcsName == other . pwcsName && self . r#type == other . r#type && self . cbSize == other . cbSize && self . mtime == other . mtime && self . ctime == other . ctime && self . atime == other . atime && self . grfMode == other . grfMode && self . grfLocksSupported == other . grfLocksSupported && self . clsid == other . clsid && self . grfStateBits == other . grfStateBits && self . reserved == other . reserved } } impl :: std :: cmp :: Eq for STATSTG { } unsafe impl :: windows :: Abi for STATSTG { 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 STREAM_SEEK ( pub u32 ) ; pub const STREAM_SEEK_SET : STREAM_SEEK = STREAM_SEEK ( 0u32 ) ; pub const STREAM_SEEK_CUR : STREAM_SEEK = STREAM_SEEK ( 1u32 ) ; pub const STREAM_SEEK_END : STREAM_SEEK = STREAM_SEEK ( 2u32 ) ; impl :: std :: convert :: From < u32 > for STREAM_SEEK { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for STREAM_SEEK { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for STREAM_SEEK { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for STREAM_SEEK { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for STREAM_SEEK { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for STREAM_SEEK { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } } } # [ 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 Com { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct CLSCTX ( pub u32 ) ; pub const CLSCTX_INPROC_SERVER : CLSCTX = CLSCTX ( 1u32 ) ; pub const CLSCTX_INPROC_HANDLER : CLSCTX = CLSCTX ( 2u32 ) ; pub const CLSCTX_LOCAL_SERVER : CLSCTX = CLSCTX ( 4u32 ) ; pub const CLSCTX_INPROC_SERVER16 : CLSCTX = CLSCTX ( 8u32 ) ; pub const CLSCTX_REMOTE_SERVER : CLSCTX = CLSCTX ( 16u32 ) ; pub const CLSCTX_INPROC_HANDLER16 : CLSCTX = CLSCTX ( 32u32 ) ; pub const CLSCTX_RESERVED1 : CLSCTX = CLSCTX ( 64u32 ) ; pub const CLSCTX_RESERVED2 : CLSCTX = CLSCTX ( 128u32 ) ; pub const CLSCTX_RESERVED3 : CLSCTX = CLSCTX ( 256u32 ) ; pub const CLSCTX_RESERVED4 : CLSCTX = CLSCTX ( 512u32 ) ; pub const CLSCTX_NO_CODE_DOWNLOAD : CLSCTX = CLSCTX ( 1024u32 ) ; pub const CLSCTX_RESERVED5 : CLSCTX = CLSCTX ( 2048u32 ) ; pub const CLSCTX_NO_CUSTOM_MARSHAL : CLSCTX = CLSCTX ( 4096u32 ) ; pub const CLSCTX_ENABLE_CODE_DOWNLOAD : CLSCTX = CLSCTX ( 8192u32 ) ; pub const CLSCTX_NO_FAILURE_LOG : CLSCTX = CLSCTX ( 16384u32 ) ; pub const CLSCTX_DISABLE_AAA : CLSCTX = CLSCTX ( 32768u32 ) ; pub const CLSCTX_ENABLE_AAA : CLSCTX = CLSCTX ( 65536u32 ) ; pub const CLSCTX_FROM_DEFAULT_CONTEXT : CLSCTX = CLSCTX ( 131072u32 ) ; pub const CLSCTX_ACTIVATE_X86_SERVER : CLSCTX = CLSCTX ( 262144u32 ) ; pub const CLSCTX_ACTIVATE_32_BIT_SERVER : CLSCTX = CLSCTX ( 262144u32 ) ; pub const CLSCTX_ACTIVATE_64_BIT_SERVER : CLSCTX = CLSCTX ( 524288u32 ) ; pub const CLSCTX_ENABLE_CLOAKING : CLSCTX = CLSCTX ( 1048576u32 ) ; pub const CLSCTX_APPCONTAINER : CLSCTX = CLSCTX ( 4194304u32 ) ; pub const CLSCTX_ACTIVATE_AAA_AS_IU : CLSCTX = CLSCTX ( 8388608u32 ) ; pub const CLSCTX_RESERVED6 : CLSCTX = CLSCTX ( 16777216u32 ) ; pub const CLSCTX_ACTIVATE_ARM32_SERVER : CLSCTX = CLSCTX ( 33554432u32 ) ; pub const CLSCTX_PS_DLL : CLSCTX = CLSCTX ( 2147483648u32 ) ; pub const CLSCTX_ALL : CLSCTX = CLSCTX ( 23u32 ) ; pub const CLSCTX_SERVER : CLSCTX = CLSCTX ( 21u32 ) ; impl :: std :: convert :: From < u32 > for CLSCTX { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for CLSCTX { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for CLSCTX { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for CLSCTX { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for CLSCTX { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for CLSCTX { 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 COINIT ( pub u32 ) ; pub const COINIT_APARTMENTTHREADED : COINIT = COINIT ( 2u32 ) ; pub const COINIT_MULTITHREADED : COINIT = COINIT ( 0u32 ) ; pub const COINIT_DISABLE_OLE1DDE : COINIT = COINIT ( 4u32 ) ; pub const COINIT_SPEED_OVER_MEMORY : COINIT = COINIT ( 8u32 ) ; impl :: std :: convert :: From < u32 > for COINIT { fn from ( value : u32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for COINIT { type Abi = Self ; type DefaultType = Self ; } impl :: std :: ops :: BitOr for COINIT { type Output = Self ; fn bitor ( self , rhs : Self ) -> Self { Self ( self . 0 | rhs . 0 ) } } impl :: std :: ops :: BitAnd for COINIT { type Output = Self ; fn bitand ( self , rhs : Self ) -> Self { Self ( self . 0 & rhs . 0 ) } } impl :: std :: ops :: BitOrAssign for COINIT { fn bitor_assign ( & mut self , rhs : Self ) { self . 0 . bitor_assign ( rhs . 0 ) } } impl :: std :: ops :: BitAndAssign for COINIT { fn bitand_assign ( & mut self , rhs : Self ) { self . 0 . bitand_assign ( rhs . 0 ) } } pub unsafe fn CoCreateInstance < 'a , T : :: windows :: Interface > ( rclsid : * const :: windows :: Guid , punkouter : impl :: windows :: IntoParam < 'a , :: windows :: IUnknown > , dwclscontext : CLSCTX , ) -> :: windows :: Result < T > { # [ cfg ( windows ) ] { # [ link ( name ="OLE32" ) ] extern "system" { fn CoCreateInstance ( rclsid : * const :: windows :: Guid , punkouter : :: windows :: RawPtr , dwclscontext : CLSCTX , riid : * const :: windows :: Guid , ppv : * mut * mut :: std :: ffi :: c_void ) -> :: windows :: HRESULT ; } let mut result__ = :: std :: option :: Option :: None ; CoCreateInstance ( :: std :: mem :: transmute ( rclsid ) , punkouter . into_param ( ) . abi ( ) , :: std :: mem :: transmute ( dwclscontext ) , & < T as :: windows :: Interface > :: IID , :: windows :: Abi :: set_abi ( & mut result__ ) ) . and_some ( result__ ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CoInitializeEx < > ( pvreserved : * mut :: std :: ffi :: c_void , dwcoinit : COINIT , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="OLE32" ) ] extern "system" { fn CoInitializeEx ( pvreserved : * mut :: std :: ffi :: c_void , dwcoinit : COINIT ) -> :: windows :: HRESULT ; } CoInitializeEx ( :: std :: mem :: transmute ( pvreserved ) , :: std :: mem :: transmute ( dwcoinit ) ) . ok ( ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CoTaskMemAlloc < > ( cb : usize , ) -> * mut :: std :: ffi :: c_void { # [ cfg ( windows ) ] { # [ link ( name ="OLE32" ) ] extern "system" { fn CoTaskMemAlloc ( cb : usize ) -> * mut :: std :: ffi :: c_void ; } CoTaskMemAlloc ( :: std :: mem :: transmute ( cb ) ) } # [ cfg ( not ( windows ) ) ] unimplemented ! ( "Unsupported target OS" ) ; } pub unsafe fn CoTaskMemFree < > ( pv : * mut :: std :: ffi :: c_void , ) { # [ cfg ( windows ) ] { # [ link ( name ="OLE32" ) ] extern "system" { fn CoTaskMemFree ( pv : * mut :: std :: ffi :: c_void ) ; } CoTaskMemFree ( :: std :: mem :: transmute ( pv ) ) } # [ 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 LibraryLoader { pub unsafe fn GetModuleHandleA < 'a , > ( lpmodulename : impl :: windows :: IntoParam < 'a , super::super::Foundation:: PSTR > , ) -> super::super::Foundation:: HINSTANCE { # [ cfg ( windows ) ] { # [ link ( name ="KERNEL32" ) ] extern "system" { fn GetModuleHandleA ( lpmodulename : super::super::Foundation:: PSTR ) -> super::super::Foundation:: HINSTANCE ; } GetModuleHandleA ( 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 OleAutomation { # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IDispatch ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IDispatch { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 132096 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } # [ repr ( transparent ) ] # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: clone :: Clone , :: std :: fmt :: Debug ) ] # [ doc ( hidden ) ] pub struct IRecordInfo ( :: windows :: IUnknown ) ; unsafe impl :: windows :: Interface for IRecordInfo { type Vtable = < :: windows :: IUnknown as :: windows :: Interface > :: Vtable ; const IID : :: windows :: Guid = :: windows :: Guid :: from_values ( 47 ,0 ,0 , [ 192 ,0 ,0 ,0 ,0 ,0 ,0 ,70 ] , ) ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SAFEARRAY { pub cDims : u16 , pub fFeatures : u16 , pub cbElements : u32 , pub cLocks : u32 , pub pvData : * mut :: std :: ffi :: c_void , pub rgsabound : [ SAFEARRAYBOUND ;1 ] } impl SAFEARRAY { } impl :: std :: default :: Default for SAFEARRAY { fn default ( ) -> Self { Self { cDims : 0 , fFeatures : 0 , cbElements : 0 , cLocks : 0 , pvData : :: std :: ptr :: null_mut ( ) , rgsabound : [ :: std :: default :: Default :: default ( ) ;1 ] } } } impl :: std :: fmt :: Debug for SAFEARRAY { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SAFEARRAY" ) . field ( "cDims" , & self . cDims ) . field ( "fFeatures" , & self . fFeatures ) . field ( "cbElements" , & self . cbElements ) . field ( "cLocks" , & self . cLocks ) . field ( "pvData" , & self . pvData ) . field ( "rgsabound" , & self . rgsabound ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SAFEARRAY { fn eq ( & self , other : & Self ) -> bool { self . cDims == other . cDims && self . fFeatures == other . fFeatures && self . cbElements == other . cbElements && self . cLocks == other . cLocks && self . pvData == other . pvData && self . rgsabound == other . rgsabound } } impl :: std :: cmp :: Eq for SAFEARRAY { } unsafe impl :: windows :: Abi for SAFEARRAY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct SAFEARRAYBOUND { pub cElements : u32 , pub lLbound : i32 } impl SAFEARRAYBOUND { } impl :: std :: default :: Default for SAFEARRAYBOUND { fn default ( ) -> Self { Self { cElements : 0 , lLbound : 0 } } } impl :: std :: fmt :: Debug for SAFEARRAYBOUND { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "SAFEARRAYBOUND" ) . field ( "cElements" , & self . cElements ) . field ( "lLbound" , & self . lLbound ) . finish ( ) } } impl :: std :: cmp :: PartialEq for SAFEARRAYBOUND { fn eq ( & self , other : & Self ) -> bool { self . cElements == other . cElements && self . lLbound == other . lLbound } } impl :: std :: cmp :: Eq for SAFEARRAYBOUND { } unsafe impl :: windows :: Abi for SAFEARRAYBOUND { type Abi = Self ; type DefaultType = Self ; } impl :: std :: clone :: Clone for VARIANT { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub struct VARIANT { pub Anonymous : VARIANT_0 } impl VARIANT { } impl :: std :: cmp :: PartialEq for VARIANT { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for VARIANT { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct VARIANT_abi { pub Anonymous : VARIANT_0_abi } unsafe impl :: windows :: Abi for VARIANT { type Abi = VARIANT_abi ; type DefaultType = Self ; } impl :: std :: clone :: Clone for VARIANT_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub union VARIANT_0 { pub Anonymous : VARIANT_0_0_abi , pub decVal : super::SystemServices:: DECIMAL } impl VARIANT_0 { } impl :: std :: cmp :: PartialEq for VARIANT_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for VARIANT_0 { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub union VARIANT_0_abi { pub Anonymous : VARIANT_0_0_abi , pub decVal : super::SystemServices:: DECIMAL } unsafe impl :: windows :: Abi for VARIANT_0 { type Abi = VARIANT_0_abi ; type DefaultType = Self ; } impl :: std :: clone :: Clone for VARIANT_0_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub struct VARIANT_0_0 { pub vt : u16 , pub wReserved1 : u16 , pub wReserved2 : u16 , pub wReserved3 : u16 , pub Anonymous : VARIANT_0_0_0 } impl VARIANT_0_0 { } impl :: std :: cmp :: PartialEq for VARIANT_0_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for VARIANT_0_0 { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct VARIANT_0_0_abi { pub vt : u16 , pub wReserved1 : u16 , pub wReserved2 : u16 , pub wReserved3 : u16 , pub Anonymous : VARIANT_0_0_0_abi } unsafe impl :: windows :: Abi for VARIANT_0_0 { type Abi = VARIANT_0_0_abi ; type DefaultType = Self ; } impl :: std :: clone :: Clone for VARIANT_0_0_0 { fn clone ( & self ) -> Self { unimplemented ! ( ) } } # [ repr ( C ) ] pub union VARIANT_0_0_0 { pub llVal : i64 , pub lVal : i32 , pub bVal : u8 , pub iVal : i16 , pub fltVal : f32 , pub dblVal : f64 , pub boolVal : i16 , pub __OBSOLETE__VARIANT_BOOL : i16 , pub scode : i32 , pub cyVal : super::SystemServices:: CY , pub date : f64 , pub bstrVal : super::super::Foundation:: BSTR_abi , pub punkVal : :: windows :: RawPtr , pub pdispVal : :: windows :: RawPtr , pub parray : * mut SAFEARRAY , pub pbVal : * mut u8 , pub piVal : * mut i16 , pub plVal : * mut i32 , pub pllVal : * mut i64 , pub pfltVal : * mut f32 , pub pdblVal : * mut f64 , pub pboolVal : * mut i16 , pub __OBSOLETE__VARIANT_PBOOL : * mut i16 , pub pscode : * mut i32 , pub pcyVal : * mut super::SystemServices:: CY , pub pdate : * mut f64 , pub pbstrVal : * mut super::super::Foundation:: BSTR_abi , pub ppunkVal : * mut :: windows :: RawPtr , pub ppdispVal : * mut :: windows :: RawPtr , pub pparray : * mut * mut SAFEARRAY , pub pvarVal : * mut VARIANT_abi , pub byref : * mut :: std :: ffi :: c_void , pub cVal : super::SystemServices:: CHAR , pub uiVal : u16 , pub ulVal : u32 , pub ullVal : u64 , pub intVal : i32 , pub uintVal : u32 , pub pdecVal : * mut super::SystemServices:: DECIMAL , pub pcVal : super::super::Foundation:: PSTR , pub puiVal : * mut u16 , pub pulVal : * mut u32 , pub pullVal : * mut u64 , pub pintVal : * mut i32 , pub puintVal : * mut u32 , pub Anonymous : VARIANT_0_0_0_0_abi } impl VARIANT_0_0_0 { } impl :: std :: cmp :: PartialEq for VARIANT_0_0_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for VARIANT_0_0_0 { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub union VARIANT_0_0_0_abi { pub llVal : i64 , pub lVal : i32 , pub bVal : u8 , pub iVal : i16 , pub fltVal : f32 , pub dblVal : f64 , pub boolVal : i16 , pub __OBSOLETE__VARIANT_BOOL : i16 , pub scode : i32 , pub cyVal : super::SystemServices:: CY , pub date : f64 , pub bstrVal : super::super::Foundation:: BSTR_abi , pub punkVal : :: windows :: RawPtr , pub pdispVal : :: windows :: RawPtr , pub parray : * mut SAFEARRAY , pub pbVal : * mut u8 , pub piVal : * mut i16 , pub plVal : * mut i32 , pub pllVal : * mut i64 , pub pfltVal : * mut f32 , pub pdblVal : * mut f64 , pub pboolVal : * mut i16 , pub __OBSOLETE__VARIANT_PBOOL : * mut i16 , pub pscode : * mut i32 , pub pcyVal : * mut super::SystemServices:: CY , pub pdate : * mut f64 , pub pbstrVal : * mut super::super::Foundation:: BSTR_abi , pub ppunkVal : * mut :: windows :: RawPtr , pub ppdispVal : * mut :: windows :: RawPtr , pub pparray : * mut * mut SAFEARRAY , pub pvarVal : * mut VARIANT_abi , pub byref : * mut :: std :: ffi :: c_void , pub cVal : super::SystemServices:: CHAR , pub uiVal : u16 , pub ulVal : u32 , pub ullVal : u64 , pub intVal : i32 , pub uintVal : u32 , pub pdecVal : * mut super::SystemServices:: DECIMAL , pub pcVal : super::super::Foundation:: PSTR , pub puiVal : * mut u16 , pub pulVal : * mut u32 , pub pullVal : * mut u64 , pub pintVal : * mut i32 , pub puintVal : * mut u32 , pub Anonymous : VARIANT_0_0_0_0_abi } unsafe impl :: windows :: Abi for VARIANT_0_0_0 { type Abi = VARIANT_0_0_0_abi ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone ) ] # [ repr ( C ) ] pub struct VARIANT_0_0_0_0 { pub pvRecord : * mut :: std :: ffi :: c_void , pub pRecInfo : :: std :: option :: Option < IRecordInfo > } impl VARIANT_0_0_0_0 { } impl :: std :: default :: Default for VARIANT_0_0_0_0 { fn default ( ) -> Self { Self { pvRecord : :: std :: ptr :: null_mut ( ) , pRecInfo : :: std :: default :: Default :: default ( ) } } } impl :: std :: fmt :: Debug for VARIANT_0_0_0_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "pvRecord" , & self . pvRecord ) . field ( "pRecInfo" , & self . pRecInfo ) . finish ( ) } } impl :: std :: cmp :: PartialEq for VARIANT_0_0_0_0 { fn eq ( & self , other : & Self ) -> bool { self . pvRecord == other . pvRecord && self . pRecInfo == other . pRecInfo } } impl :: std :: cmp :: Eq for VARIANT_0_0_0_0 { } # [ repr ( C ) ] # [ doc ( hidden ) ] # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] pub struct VARIANT_0_0_0_0_abi { pub pvRecord : * mut :: std :: ffi :: c_void , pub pRecInfo : :: windows :: RawPtr } unsafe impl :: windows :: Abi for VARIANT_0_0_0_0 { type Abi = VARIANT_0_0_0_0_abi ; 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 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 ( C ) ] pub union CY { pub Anonymous : CY_0 , pub int64 : i64 } impl CY { } impl :: std :: cmp :: PartialEq for CY { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for CY { } unsafe impl :: windows :: Abi for CY { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct CY_0 { pub Lo : u32 , pub Hi : i32 } impl CY_0 { } impl :: std :: default :: Default for CY_0 { fn default ( ) -> Self { Self { Lo : 0 , Hi : 0 } } } impl :: std :: fmt :: Debug for CY_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "Lo" , & self . Lo ) . field ( "Hi" , & self . Hi ) . finish ( ) } } impl :: std :: cmp :: PartialEq for CY_0 { fn eq ( & self , other : & Self ) -> bool { self . Lo == other . Lo && self . Hi == other . Hi } } impl :: std :: cmp :: Eq for CY_0 { } unsafe impl :: windows :: Abi for CY_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL { pub wReserved : u16 , pub Anonymous1 : DECIMAL_0 , pub Hi32 : u32 , pub Anonymous2 : DECIMAL_1 } impl DECIMAL { } impl :: std :: cmp :: PartialEq for DECIMAL { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL { } unsafe impl :: windows :: Abi for DECIMAL { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DECIMAL_0 { pub Anonymous : DECIMAL_0_0 , pub signscale : u16 } impl DECIMAL_0 { } impl :: std :: cmp :: PartialEq for DECIMAL_0 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL_0 { } unsafe impl :: windows :: Abi for DECIMAL_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL_0_0 { pub scale : u8 , pub sign : u8 } impl DECIMAL_0_0 { } impl :: std :: default :: Default for DECIMAL_0_0 { fn default ( ) -> Self { Self { scale : 0 , sign : 0 } } } impl :: std :: fmt :: Debug for DECIMAL_0_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "scale" , & self . scale ) . field ( "sign" , & self . sign ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DECIMAL_0_0 { fn eq ( & self , other : & Self ) -> bool { self . scale == other . scale && self . sign == other . sign } } impl :: std :: cmp :: Eq for DECIMAL_0_0 { } unsafe impl :: windows :: Abi for DECIMAL_0_0 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub union DECIMAL_1 { pub Anonymous : DECIMAL_1_0 , pub Lo64 : u64 } impl DECIMAL_1 { } impl :: std :: cmp :: PartialEq for DECIMAL_1 { fn eq ( & self , _other : & Self ) -> bool { unimplemented ! ( ) } } impl :: std :: cmp :: Eq for DECIMAL_1 { } unsafe impl :: windows :: Abi for DECIMAL_1 { type Abi = Self ; type DefaultType = Self ; } # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct DECIMAL_1_0 { pub Lo32 : u32 , pub Mid32 : u32 } impl DECIMAL_1_0 { } impl :: std :: default :: Default for DECIMAL_1_0 { fn default ( ) -> Self { Self { Lo32 : 0 , Mid32 : 0 } } } impl :: std :: fmt :: Debug for DECIMAL_1_0 { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "_Anonymous_e__Struct" ) . field ( "Lo32" , & self . Lo32 ) . field ( "Mid32" , & self . Mid32 ) . finish ( ) } } impl :: std :: cmp :: PartialEq for DECIMAL_1_0 { fn eq ( & self , other : & Self ) -> bool { self . Lo32 == other . Lo32 && self . Mid32 == other . Mid32 } } impl :: std :: cmp :: Eq for DECIMAL_1_0 { } unsafe impl :: windows :: Abi for DECIMAL_1_0 { 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 Threading { pub unsafe fn GetCurrentThreadId < > ( ) -> u32 { # [ cfg ( windows ) ] { # [ link ( name ="KERNEL32" ) ] extern "system" { fn GetCurrentThreadId ( ) -> u32 ; } GetCurrentThreadId ( ) } # [ 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 WinRT { # [ derive ( :: std :: clone :: Clone , :: std :: marker :: Copy ) ] # [ repr ( C ) ] pub struct EventRegistrationToken { pub value : i64 } impl EventRegistrationToken { } impl :: std :: default :: Default for EventRegistrationToken { fn default ( ) -> Self { Self { value : 0 } } } impl :: std :: fmt :: Debug for EventRegistrationToken { fn fmt ( & self , fmt : & mut :: std :: fmt :: Formatter < '_ > ) -> :: std :: fmt :: Result { fmt . debug_struct ( "EventRegistrationToken" ) . field ( "value" , & self . value ) . finish ( ) } } impl :: std :: cmp :: PartialEq for EventRegistrationToken { fn eq ( & self , other : & Self ) -> bool { self . value == other . value } } impl :: std :: cmp :: Eq for EventRegistrationToken { } unsafe impl :: windows :: Abi for EventRegistrationToken { 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 HiDpi { # [ derive ( :: std :: cmp :: PartialEq , :: std :: cmp :: Eq , :: std :: marker :: Copy , :: std :: clone :: Clone , :: std :: default :: Default , :: std :: fmt :: Debug ) ] # [ repr ( transparent ) ] pub struct PROCESS_DPI_AWARENESS ( pub i32 ) ; pub const PROCESS_DPI_UNAWARE : PROCESS_DPI_AWARENESS = PROCESS_DPI_AWARENESS ( 0i32 ) ; pub const PROCESS_SYSTEM_DPI_AWARE : PROCESS_DPI_AWARENESS = PROCESS_DPI_AWARENESS ( 1i32 ) ; pub const PROCESS_PER_MONITOR_DPI_AWARE : PROCESS_DPI_AWARENESS = PROCESS_DPI_AWARENESS ( 2i32 ) ; impl :: std :: convert :: From < i32 > for PROCESS_DPI_AWARENESS { fn from ( value : i32 ) -> Self { Self ( value ) } } unsafe impl :: windows :: Abi for PROCESS_DPI_AWARENESS { type Abi = Self ; type DefaultType = Self ; } pub unsafe fn SetProcessDpiAwareness < > ( value : PROCESS_DPI_AWARENESS , ) -> :: windows :: Result < ( ) > { # [ cfg ( windows ) ] { # [ link ( name ="onecoreuap" ) ] extern "system" { fn SetProcessDpiAwareness ( value : PROCESS_DPI_AWARENESS ) -> :: windows :: HRESULT ; } SetProcessDpiAwareness ( :: std :: mem :: transmute ( value ) ) . ok ( ) } # [ 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 KeyboardAndMouseInput { pub unsafe fn SetFocus < 'a , > ( hwnd : impl :: windows :: IntoParam < 'a , super::super::Foundation:: HWND > , ) -> super::super::Foundation:: HWND { # [ cfg ( windows ) ] { # [ link ( name ="USER32" ) ] extern "system" { fn SetFocus ( hwnd : super::super::Foundation:: HWND ) -> super::super::Foundation:: HWND ; } SetFocus ( hwnd . 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 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/webview2-com-bindings-81af9830701e2a45/out/windows.rs:1:711637 [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] | [WARN] too much data in the log, truncating it