[INFO] cloning repository https://github.com/coekfung/WinCaps
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/coekfung/WinCaps" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcoekfung%2FWinCaps", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcoekfung%2FWinCaps'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b8b5a9470557afe34d99da3bd8a02722d48ad465
[INFO] checking coekfung/WinCaps against 3154cc1a3e6424e44f438a95007d043ed5ceaaf6 for pr-133502-30
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcoekfung%2FWinCaps" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-1-tc2/source/rust-toolchain.toml
[INFO] started tweaking git repo https://github.com/coekfung/WinCaps
[INFO] finished tweaking git repo https://github.com/coekfung/WinCaps
[INFO] tweaked toml for git repo https://github.com/coekfung/WinCaps written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/coekfung/WinCaps on toolchain 3154cc1a3e6424e44f438a95007d043ed5ceaaf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/coekfung/WinCaps already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] be6edde5beb95d33d0fd7bb66148b8ad9ad1f43823a302aa9ac9ccae7a118225
[INFO] running `Command { std: "docker" "start" "be6edde5beb95d33d0fd7bb66148b8ad9ad1f43823a302aa9ac9ccae7a118225", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "be6edde5beb95d33d0fd7bb66148b8ad9ad1f43823a302aa9ac9ccae7a118225", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "be6edde5beb95d33d0fd7bb66148b8ad9ad1f43823a302aa9ac9ccae7a118225" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "be6edde5beb95d33d0fd7bb66148b8ad9ad1f43823a302aa9ac9ccae7a118225", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "be6edde5beb95d33d0fd7bb66148b8ad9ad1f43823a302aa9ac9ccae7a118225" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde_core v1.0.229
[INFO] [stderr]    Compiling toml_datetime v1.1.1+spec-1.1.0
[INFO] [stderr]    Compiling serde_spanned v1.1.1
[INFO] [stderr]    Compiling toml v1.1.5+spec-1.1.0
[INFO] [stderr]    Compiling winresource v0.1.31
[INFO] [stderr]    Compiling wincaps v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: cannot find `windows` in `os`
[INFO] [stdout]  --> src/settings.rs:1:29
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{mem::size_of, os::windows::ffi::OsStrExt};
[INFO] [stdout]   |                             ^^^^^^^ could not find `windows` in `os`
[INFO] [stdout]   |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]  --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/std/src/os/mod.rs:62:4
[INFO] [stdout]   |
[INFO] [stdout]   = note: the item is gated behind the `windows` feature
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]   --> src/app.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use windows::{
[INFO] [stdout]    |     ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]  --> src/keyboard.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use windows::{
[INFO] [stdout]   |     ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]  --> src/osd.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use windows::{
[INFO] [stdout]   |     ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]  --> src/settings.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use windows::{
[INFO] [stdout]   |     ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `windows::Win32::Foundation::*`, `windows::Win32::System::LibraryLoader::GetModuleHandleW`, `windows::Win32::System::RemoteDesktop::*`, `windows::Win32::System::Rpc::RPC_S_INVALID_BINDING`, `windows::Win32::System::Threading::CreateMutexW`, `windows::Win32::UI::Shell::*`, `windows::Win32::UI::WindowsAndMessaging::*`, `windows::core::*`, `windows::Win32::Foundation::*`, `windows::Win32::System::LibraryLoader::GetModuleHandleW`, `windows::Win32::System::SystemInformation::GetTickCount`, `windows::Win32::UI::Input::KeyboardAndMouse::*`, `windows::Win32::UI::WindowsAndMessaging::*`, `windows::core::*`, `windows::Win32::Foundation::*`, `windows::Win32::Graphics::Direct2D::Common::*`, `windows::Win32::Graphics::Direct2D::*`, `windows::Win32::Graphics::DirectWrite::*`, `windows::Win32::Graphics::Dwm::*`, `windows::Win32::Graphics::Dxgi::Common::*`, `windows::Win32::Graphics::Gdi::*`, `windows::Win32::System::LibraryLoader::GetModuleHandleW`, `windows::Win32::System::Registry::*`, `windows::Win32::System::SystemInformation::GetTickCount`, `windows::Win32::UI::Accessibility::*`, `windows::Win32::UI::Controls::MARGINS`, `windows::Win32::UI::HiDpi::GetDpiForWindow`, `windows::Win32::UI::WindowsAndMessaging::*`, `windows::core::*`, `windows::Win32::Foundation::*`, `windows::Win32::System::Registry::*`, `windows::core::*`
[INFO] [stdout]   --> src/app.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |         Foundation::*,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 13 |         System::{
[INFO] [stdout] 14 |             LibraryLoader::GetModuleHandleW, RemoteDesktop::*, Rpc::RPC_S_INVALID_BINDING,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |             Threading::CreateMutexW,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |         },
[INFO] [stdout] 17 |         UI::{Shell::*, WindowsAndMessaging::*},
[INFO] [stdout]    |              ^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |     },
[INFO] [stdout] 19 |     core::*,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/keyboard.rs:5:9
[INFO] [stdout]    |
[INFO] [stdout]  5 |         Foundation::*,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout]  6 |         System::{LibraryLoader::GetModuleHandleW, SystemInformation::GetTickCount},
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  7 |         UI::{Input::KeyboardAndMouse::*, WindowsAndMessaging::*},
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |     },
[INFO] [stdout]  9 |     core::*,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/osd.rs:4:9
[INFO] [stdout]    |
[INFO] [stdout]  4 |         Foundation::*,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout]  5 |         Graphics::{
[INFO] [stdout]  6 |             Direct2D::{Common::*, *},
[INFO] [stdout]    |                        ^^^^^^^^^  ^
[INFO] [stdout]  7 |             DirectWrite::*,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^
[INFO] [stdout]  8 |             Dwm::*,
[INFO] [stdout]    |             ^^^^^^
[INFO] [stdout]  9 |             Dxgi::Common::*,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^
[INFO] [stdout] 10 |             Gdi::*,
[INFO] [stdout]    |             ^^^^^^
[INFO] [stdout] 11 |         },
[INFO] [stdout] 12 |         System::{LibraryLoader::GetModuleHandleW, Registry::*, SystemInformation::GetTickCount},
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |         UI::{Accessibility::*, Controls::MARGINS, HiDpi::GetDpiForWindow, WindowsAndMessaging::*},
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     },
[INFO] [stdout] 15 |     core::*,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/settings.rs:3:13
[INFO] [stdout]    |
[INFO] [stdout]  3 |     Win32::{Foundation::*, System::Registry::*},
[INFO] [stdout]    |             ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  4 |     core::*,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]   --> src/main.rs:19:17
[INFO] [stdout]    |
[INFO] [stdout] 19 |                 windows::core::w!("WinCaps"),
[INFO] [stdout]    |                 ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find `windows` in `os`
[INFO] [stdout]  --> src/settings.rs:1:29
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{mem::size_of, os::windows::ffi::OsStrExt};
[INFO] [stdout]   |                             ^^^^^^^ could not find `windows` in `os`
[INFO] [stdout]   |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]  --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/std/src/os/mod.rs:62:4
[INFO] [stdout]   |
[INFO] [stdout]   = note: the item is gated behind the `windows` feature
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]   --> src/app.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use windows::{
[INFO] [stdout]    |     ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]  --> src/keyboard.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use windows::{
[INFO] [stdout]   |     ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]  --> src/osd.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use windows::{
[INFO] [stdout]   |     ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]  --> src/settings.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use windows::{
[INFO] [stdout]   |     ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]   |
[INFO] [stdout]   = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/app.rs:47:62
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let _instance = Owned::new(CreateMutexW(None, false, w!("Local\\WinCaps"))?);
[INFO] [stdout]    |                                                              ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/app.rs:52:52
[INFO] [stdout]    |
[INFO] [stdout] 52 |         TASKBAR_CREATED.set(RegisterWindowMessageW(w!("TaskbarCreated")));
[INFO] [stdout]    |                                                    ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/app.rs:56:28
[INFO] [stdout]    |
[INFO] [stdout] 56 |             lpszClassName: w!("WinCaps"),
[INFO] [stdout]    |                            ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/app.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |             w!("WinCaps"),
[INFO] [stdout]    |             ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:161:46
[INFO] [stdout]     |
[INFO] [stdout] 161 |             MessageBoxW(Some(window), &text, w!("WinCaps"), MB_OK | MB_ICONERROR);
[INFO] [stdout]     |                                              ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `windows::Win32::Foundation::*`, `windows::Win32::System::LibraryLoader::GetModuleHandleW`, `windows::Win32::System::RemoteDesktop::*`, `windows::Win32::System::Rpc::RPC_S_INVALID_BINDING`, `windows::Win32::System::Threading::CreateMutexW`, `windows::Win32::UI::Shell::*`, `windows::Win32::UI::WindowsAndMessaging::*`, `windows::core::*`, `windows::Win32::Foundation::*`, `windows::Win32::System::LibraryLoader::GetModuleHandleW`, `windows::Win32::System::SystemInformation::GetTickCount`, `windows::Win32::UI::Input::KeyboardAndMouse::*`, `windows::Win32::UI::WindowsAndMessaging::*`, `windows::core::*`, `windows::Win32::Foundation::*`, `windows::Win32::Graphics::Direct2D::Common::*`, `windows::Win32::Graphics::Direct2D::*`, `windows::Win32::Graphics::DirectWrite::*`, `windows::Win32::Graphics::Dwm::*`, `windows::Win32::Graphics::Dxgi::Common::*`, `windows::Win32::Graphics::Gdi::*`, `windows::Win32::System::LibraryLoader::GetModuleHandleW`, `windows::Win32::System::Registry::*`, `windows::Win32::System::SystemInformation::GetTickCount`, `windows::Win32::UI::Accessibility::*`, `windows::Win32::UI::Controls::MARGINS`, `windows::Win32::UI::HiDpi::GetDpiForWindow`, `windows::Win32::UI::WindowsAndMessaging::*`, `windows::core::*`, `windows::Win32::Foundation::*`, `windows::Win32::System::Registry::*`, `windows::core::*`
[INFO] [stdout]   --> src/app.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 12 |         Foundation::*,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout] 13 |         System::{
[INFO] [stdout] 14 |             LibraryLoader::GetModuleHandleW, RemoteDesktop::*, Rpc::RPC_S_INVALID_BINDING,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |             Threading::CreateMutexW,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |         },
[INFO] [stdout] 17 |         UI::{Shell::*, WindowsAndMessaging::*},
[INFO] [stdout]    |              ^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |     },
[INFO] [stdout] 19 |     core::*,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/keyboard.rs:5:9
[INFO] [stdout]    |
[INFO] [stdout]  5 |         Foundation::*,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout]  6 |         System::{LibraryLoader::GetModuleHandleW, SystemInformation::GetTickCount},
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  7 |         UI::{Input::KeyboardAndMouse::*, WindowsAndMessaging::*},
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |     },
[INFO] [stdout]  9 |     core::*,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/osd.rs:4:9
[INFO] [stdout]    |
[INFO] [stdout]  4 |         Foundation::*,
[INFO] [stdout]    |         ^^^^^^^^^^^^^
[INFO] [stdout]  5 |         Graphics::{
[INFO] [stdout]  6 |             Direct2D::{Common::*, *},
[INFO] [stdout]    |                        ^^^^^^^^^  ^
[INFO] [stdout]  7 |             DirectWrite::*,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^
[INFO] [stdout]  8 |             Dwm::*,
[INFO] [stdout]    |             ^^^^^^
[INFO] [stdout]  9 |             Dxgi::Common::*,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^
[INFO] [stdout] 10 |             Gdi::*,
[INFO] [stdout]    |             ^^^^^^
[INFO] [stdout] 11 |         },
[INFO] [stdout] 12 |         System::{LibraryLoader::GetModuleHandleW, Registry::*, SystemInformation::GetTickCount},
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 13 |         UI::{Accessibility::*, Controls::MARGINS, HiDpi::GetDpiForWindow, WindowsAndMessaging::*},
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 14 |     },
[INFO] [stdout] 15 |     core::*,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/settings.rs:3:13
[INFO] [stdout]    |
[INFO] [stdout]  3 |     Win32::{Foundation::*, System::Registry::*},
[INFO] [stdout]    |             ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  4 |     core::*,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]   --> src/main.rs:19:17
[INFO] [stdout]    |
[INFO] [stdout] 19 |                 windows::core::w!("WinCaps"),
[INFO] [stdout]    |                 ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:220:37
[INFO] [stdout]     |
[INFO] [stdout] 220 |                         if paused { w!("Resume") } else { w!("Pause") },
[INFO] [stdout]     |                                     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:220:59
[INFO] [stdout]     |
[INFO] [stdout] 220 |                         if paused { w!("Resume") } else { w!("Pause") },
[INFO] [stdout]     |                                                           ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:232:79
[INFO] [stdout]     |
[INFO] [stdout] 232 |                         let _ = AppendMenuW(menu, MF_POPUP, holds.0 as usize, w!("Hold threshold"));
[INFO] [stdout]     |                                                                               ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:238:25
[INFO] [stdout]     |
[INFO] [stdout] 238 |                         w!("Show notifications"),
[INFO] [stdout]     |                         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:245:63
[INFO] [stdout]     |
[INFO] [stdout] 245 |                     let _ = AppendMenuW(menu, flags, STARTUP, w!("Start at login"));
[INFO] [stdout]     |                                                               ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:247:64
[INFO] [stdout]     |
[INFO] [stdout] 247 |                     let _ = AppendMenuW(menu, MF_STRING, EXIT, w!("Exit"));
[INFO] [stdout]     |                                                                ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:365:32
[INFO] [stdout]     |
[INFO] [stdout] 365 |                 lpszClassName: w!("WinCaps.ReentryTest"),
[INFO] [stdout]     |                                ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:373:21
[INFO] [stdout]     |
[INFO] [stdout] 373 |                     w!(""),
[INFO] [stdout]     |                     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/keyboard.rs:51:40
[INFO] [stdout]    |
[INFO] [stdout] 51 |                         lpszClassName: w!("WinCaps.Keyboard"),
[INFO] [stdout]    |                                        ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/keyboard.rs:60:25
[INFO] [stdout]    |
[INFO] [stdout] 60 |                         w!(""),
[INFO] [stdout]    |                         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/osd.rs:37:32
[INFO] [stdout]    |
[INFO] [stdout] 37 |                 lpszClassName: w!("WinCaps.OSD"),
[INFO] [stdout]    |                                ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/osd.rs:50:17
[INFO] [stdout]    |
[INFO] [stdout] 50 |                 w!("WinCaps status"),
[INFO] [stdout]    |                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/osd.rs:87:25
[INFO] [stdout]    |
[INFO] [stdout] 87 |                         w!("Segoe UI"),
[INFO] [stdout]    |                         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/app.rs:47:62
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let _instance = Owned::new(CreateMutexW(None, false, w!("Local\\WinCaps"))?);
[INFO] [stdout]    |                                                              ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/osd.rs:93:25
[INFO] [stdout]    |
[INFO] [stdout] 93 |                         w!("en-US"),
[INFO] [stdout]    |                         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/app.rs:52:52
[INFO] [stdout]    |
[INFO] [stdout] 52 |         TASKBAR_CREATED.set(RegisterWindowMessageW(w!("TaskbarCreated")));
[INFO] [stdout]    |                                                    ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:219:17
[INFO] [stdout]     |
[INFO] [stdout] 219 |                 w!("Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"),
[INFO] [stdout]     |                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/app.rs:56:28
[INFO] [stdout]    |
[INFO] [stdout] 56 |             lpszClassName: w!("WinCaps"),
[INFO] [stdout]    |                            ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:220:17
[INFO] [stdout]     |
[INFO] [stdout] 220 |                 w!("AppsUseLightTheme"),
[INFO] [stdout]     |                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/app.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |             w!("WinCaps"),
[INFO] [stdout]    |             ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:265:33
[INFO] [stdout]     |
[INFO] [stdout] 265 |                 (if self.caps { w!("A") } else { w!("a") }, 8.0, 64.0),
[INFO] [stdout]     |                                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:161:46
[INFO] [stdout]     |
[INFO] [stdout] 161 |             MessageBoxW(Some(window), &text, w!("WinCaps"), MB_OK | MB_ICONERROR);
[INFO] [stdout]     |                                              ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:265:50
[INFO] [stdout]     |
[INFO] [stdout] 265 |                 (if self.caps { w!("A") } else { w!("a") }, 8.0, 64.0),
[INFO] [stdout]     |                                                  ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:220:37
[INFO] [stdout]     |
[INFO] [stdout] 220 |                         if paused { w!("Resume") } else { w!("Pause") },
[INFO] [stdout]     |                                     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:220:59
[INFO] [stdout]     |
[INFO] [stdout] 220 |                         if paused { w!("Resume") } else { w!("Pause") },
[INFO] [stdout]     |                                                           ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:266:18
[INFO] [stdout]     |
[INFO] [stdout] 266 |                 (w!("Caps Lock"), 66.0, 85.0),
[INFO] [stdout]     |                  ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:232:79
[INFO] [stdout]     |
[INFO] [stdout] 232 |                         let _ = AppendMenuW(menu, MF_POPUP, holds.0 as usize, w!("Hold threshold"));
[INFO] [stdout]     |                                                                               ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:267:33
[INFO] [stdout]     |
[INFO] [stdout] 267 |                 (if self.caps { w!("On") } else { w!("Off") }, 85.0, 103.0),
[INFO] [stdout]     |                                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:238:25
[INFO] [stdout]     |
[INFO] [stdout] 238 |                         w!("Show notifications"),
[INFO] [stdout]     |                         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:267:51
[INFO] [stdout]     |
[INFO] [stdout] 267 |                 (if self.caps { w!("On") } else { w!("Off") }, 85.0, 103.0),
[INFO] [stdout]     |                                                   ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:245:63
[INFO] [stdout]     |
[INFO] [stdout] 245 |                     let _ = AppendMenuW(menu, flags, STARTUP, w!("Start at login"));
[INFO] [stdout]     |                                                               ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]  --> src/settings.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | const KEY: PCWSTR = w!("Software\\WinCaps");
[INFO] [stdout]   |                     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/app.rs:247:64
[INFO] [stdout]     |
[INFO] [stdout] 247 |                     let _ = AppendMenuW(menu, MF_STRING, EXIT, w!("Exit"));
[INFO] [stdout]     |                                                                ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/keyboard.rs:51:40
[INFO] [stdout]    |
[INFO] [stdout] 51 |                         lpszClassName: w!("WinCaps.Keyboard"),
[INFO] [stdout]    |                                        ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]  --> src/settings.rs:8:21
[INFO] [stdout]   |
[INFO] [stdout] 8 | const RUN: PCWSTR = w!("Software\\Microsoft\\Windows\\CurrentVersion\\Run");
[INFO] [stdout]   |                     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/keyboard.rs:60:25
[INFO] [stdout]    |
[INFO] [stdout] 60 |                         w!(""),
[INFO] [stdout]    |                         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:18:28
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let hold_ms = read(w!("HoldMs"))
[INFO] [stdout]    |                            ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/osd.rs:37:32
[INFO] [stdout]    |
[INFO] [stdout] 37 |                 lpszClassName: w!("WinCaps.OSD"),
[INFO] [stdout]    |                                ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:23:33
[INFO] [stdout]    |
[INFO] [stdout] 23 |             notifications: read(w!("Notifications")).unwrap_or(1) != 0,
[INFO] [stdout]    |                                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/osd.rs:50:17
[INFO] [stdout]    |
[INFO] [stdout] 50 |                 w!("WinCaps status"),
[INFO] [stdout]    |                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:28:15
[INFO] [stdout]    |
[INFO] [stdout] 28 |         write(w!("HoldMs"), value)?;
[INFO] [stdout]    |               ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/osd.rs:87:25
[INFO] [stdout]    |
[INFO] [stdout] 87 |                         w!("Segoe UI"),
[INFO] [stdout]    |                         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/osd.rs:93:25
[INFO] [stdout]    |
[INFO] [stdout] 93 |                         w!("en-US"),
[INFO] [stdout]    |                         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:34:15
[INFO] [stdout]    |
[INFO] [stdout] 34 |         write(w!("Notifications"), value as u32)?;
[INFO] [stdout]    |               ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:219:17
[INFO] [stdout]     |
[INFO] [stdout] 219 |                 w!("Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"),
[INFO] [stdout]     |                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             w!("WinCaps"),
[INFO] [stdout]    |             ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:220:17
[INFO] [stdout]     |
[INFO] [stdout] 220 |                 w!("AppsUseLightTheme"),
[INFO] [stdout]     |                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:99:69
[INFO] [stdout]    |
[INFO] [stdout] 99 |             let status = RegDeleteKeyValueW(HKEY_CURRENT_USER, RUN, w!("WinCaps"));
[INFO] [stdout]    |                                                                     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:265:33
[INFO] [stdout]     |
[INFO] [stdout] 265 |                 (if self.caps { w!("A") } else { w!("a") }, 8.0, 64.0),
[INFO] [stdout]     |                                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:265:50
[INFO] [stdout]     |
[INFO] [stdout] 265 |                 (if self.caps { w!("A") } else { w!("a") }, 8.0, 64.0),
[INFO] [stdout]     |                                                  ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/settings.rs:121:13
[INFO] [stdout]     |
[INFO] [stdout] 121 |             w!("WinCaps"),
[INFO] [stdout]     |             ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:266:18
[INFO] [stdout]     |
[INFO] [stdout] 266 |                 (w!("Caps Lock"), 66.0, 85.0),
[INFO] [stdout]     |                  ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:267:33
[INFO] [stdout]     |
[INFO] [stdout] 267 |                 (if self.caps { w!("On") } else { w!("Off") }, 85.0, 103.0),
[INFO] [stdout]     |                                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/osd.rs:267:51
[INFO] [stdout]     |
[INFO] [stdout] 267 |                 (if self.caps { w!("On") } else { w!("Off") }, 85.0, 103.0),
[INFO] [stdout]     |                                                   ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]  --> src/settings.rs:7:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | const KEY: PCWSTR = w!("Software\\WinCaps");
[INFO] [stdout]   |                     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]  --> src/settings.rs:8:21
[INFO] [stdout]   |
[INFO] [stdout] 8 | const RUN: PCWSTR = w!("Software\\Microsoft\\Windows\\CurrentVersion\\Run");
[INFO] [stdout]   |                     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:18:28
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let hold_ms = read(w!("HoldMs"))
[INFO] [stdout]    |                            ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:23:33
[INFO] [stdout]    |
[INFO] [stdout] 23 |             notifications: read(w!("Notifications")).unwrap_or(1) != 0,
[INFO] [stdout]    |                                 ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:28:15
[INFO] [stdout]    |
[INFO] [stdout] 28 |         write(w!("HoldMs"), value)?;
[INFO] [stdout]    |               ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:34:15
[INFO] [stdout]    |
[INFO] [stdout] 34 |         write(w!("Notifications"), value as u32)?;
[INFO] [stdout]    |               ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             w!("WinCaps"),
[INFO] [stdout]    |             ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]   --> src/settings.rs:99:69
[INFO] [stdout]    |
[INFO] [stdout] 99 |             let status = RegDeleteKeyValueW(HKEY_CURRENT_USER, RUN, w!("WinCaps"));
[INFO] [stdout]    |                                                                     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `w` in this scope
[INFO] [stdout]    --> src/settings.rs:121:13
[INFO] [stdout]     |
[INFO] [stdout] 121 |             w!("WinCaps"),
[INFO] [stdout]     |             ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_POWERBROADCAST` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:305:13
[INFO] [stdout]     |
[INFO] [stdout] 305 |             WM_WTSSESSION_CHANGE | WM_POWERBROADCAST
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^   ----------------- variable not in all patterns
[INFO] [stdout]     |             |
[INFO] [stdout]     |             pattern doesn't bind `WM_POWERBROADCAST`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_POWERBROADCAST`
[INFO] [stdout]    --> src/app.rs:305:36
[INFO] [stdout]     |
[INFO] [stdout] 305 |             WM_WTSSESSION_CHANGE | WM_POWERBROADCAST
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_WTSSESSION_CHANGE` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:305:36
[INFO] [stdout]     |
[INFO] [stdout] 305 |             WM_WTSSESSION_CHANGE | WM_POWERBROADCAST
[INFO] [stdout]     |             --------------------   ^^^^^^^^^^^^^^^^^ pattern doesn't bind `WM_WTSSESSION_CHANGE`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             variable not in all patterns
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_WTSSESSION_CHANGE`
[INFO] [stdout]    --> src/app.rs:305:13
[INFO] [stdout]     |
[INFO] [stdout] 305 |             WM_WTSSESSION_CHANGE | WM_POWERBROADCAST
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `PBT_APMRESUMEAUTOMATIC` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:309:25
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^   ----------------------   ^^^^^^^^^^^^^^^^^^^^ pattern doesn't bind `PBT_APMRESUMEAUTOMATIC`
[INFO] [stdout]     |                         |                |
[INFO] [stdout]     |                         |                variable not in all patterns
[INFO] [stdout]     |                         pattern doesn't bind `PBT_APMRESUMEAUTOMATIC`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::PBT_APMRESUMEAUTOMATIC`
[INFO] [stdout]    --> src/app.rs:309:42
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `PBT_APMRESUMESUSPEND` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:309:25
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^   ^^^^^^^^^^^^^^^^^^^^^^   -------------------- variable not in all patterns
[INFO] [stdout]     |                         |                |
[INFO] [stdout]     |                         |                pattern doesn't bind `PBT_APMRESUMESUSPEND`
[INFO] [stdout]     |                         pattern doesn't bind `PBT_APMRESUMESUSPEND`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::PBT_APMRESUMESUSPEND`
[INFO] [stdout]    --> src/app.rs:309:67
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                                                                   ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `PBT_APMSUSPEND` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:309:42
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                         --------------   ^^^^^^^^^^^^^^^^^^^^^^   ^^^^^^^^^^^^^^^^^^^^ pattern doesn't bind `PBT_APMSUSPEND`
[INFO] [stdout]     |                         |                |
[INFO] [stdout]     |                         |                pattern doesn't bind `PBT_APMSUSPEND`
[INFO] [stdout]     |                         variable not in all patterns
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::PBT_APMSUSPEND`
[INFO] [stdout]    --> src/app.rs:309:25
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_SETTINGCHANGE` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:334:13
[INFO] [stdout]     |
[INFO] [stdout] 334 |             osd::REDRAW | WM_SETTINGCHANGE => APP.with_borrow_mut(|app| {
[INFO] [stdout]     |             ^^^^^^^^^^^   ---------------- variable not in all patterns
[INFO] [stdout]     |             |
[INFO] [stdout]     |             pattern doesn't bind `WM_SETTINGCHANGE`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_SETTINGCHANGE`
[INFO] [stdout]    --> src/app.rs:334:27
[INFO] [stdout]     |
[INFO] [stdout] 334 |             osd::REDRAW | WM_SETTINGCHANGE => APP.with_borrow_mut(|app| {
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_POWERBROADCAST` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:305:13
[INFO] [stdout]     |
[INFO] [stdout] 305 |             WM_WTSSESSION_CHANGE | WM_POWERBROADCAST
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^   ----------------- variable not in all patterns
[INFO] [stdout]     |             |
[INFO] [stdout]     |             pattern doesn't bind `WM_POWERBROADCAST`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_POWERBROADCAST`
[INFO] [stdout]    --> src/app.rs:305:36
[INFO] [stdout]     |
[INFO] [stdout] 305 |             WM_WTSSESSION_CHANGE | WM_POWERBROADCAST
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_WTSSESSION_CHANGE` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:305:36
[INFO] [stdout]     |
[INFO] [stdout] 305 |             WM_WTSSESSION_CHANGE | WM_POWERBROADCAST
[INFO] [stdout]     |             --------------------   ^^^^^^^^^^^^^^^^^ pattern doesn't bind `WM_WTSSESSION_CHANGE`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             variable not in all patterns
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_WTSSESSION_CHANGE`
[INFO] [stdout]    --> src/app.rs:305:13
[INFO] [stdout]     |
[INFO] [stdout] 305 |             WM_WTSSESSION_CHANGE | WM_POWERBROADCAST
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `PBT_APMRESUMEAUTOMATIC` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:309:25
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^   ----------------------   ^^^^^^^^^^^^^^^^^^^^ pattern doesn't bind `PBT_APMRESUMEAUTOMATIC`
[INFO] [stdout]     |                         |                |
[INFO] [stdout]     |                         |                variable not in all patterns
[INFO] [stdout]     |                         pattern doesn't bind `PBT_APMRESUMEAUTOMATIC`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::PBT_APMRESUMEAUTOMATIC`
[INFO] [stdout]    --> src/app.rs:309:42
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `PBT_APMRESUMESUSPEND` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:309:25
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^   ^^^^^^^^^^^^^^^^^^^^^^   -------------------- variable not in all patterns
[INFO] [stdout]     |                         |                |
[INFO] [stdout]     |                         |                pattern doesn't bind `PBT_APMRESUMESUSPEND`
[INFO] [stdout]     |                         pattern doesn't bind `PBT_APMRESUMESUSPEND`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::PBT_APMRESUMESUSPEND`
[INFO] [stdout]    --> src/app.rs:309:67
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                                                                   ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `PBT_APMSUSPEND` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:309:42
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                         --------------   ^^^^^^^^^^^^^^^^^^^^^^   ^^^^^^^^^^^^^^^^^^^^ pattern doesn't bind `PBT_APMSUSPEND`
[INFO] [stdout]     |                         |                |
[INFO] [stdout]     |                         |                pattern doesn't bind `PBT_APMSUSPEND`
[INFO] [stdout]     |                         variable not in all patterns
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::PBT_APMSUSPEND`
[INFO] [stdout]    --> src/app.rs:309:25
[INFO] [stdout]     |
[INFO] [stdout] 309 |                         PBT_APMSUSPEND | PBT_APMRESUMEAUTOMATIC | PBT_APMRESUMESUSPEND
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_SETTINGCHANGE` is not bound in all patterns
[INFO] [stdout]    --> src/app.rs:334:13
[INFO] [stdout]     |
[INFO] [stdout] 334 |             osd::REDRAW | WM_SETTINGCHANGE => APP.with_borrow_mut(|app| {
[INFO] [stdout]     |             ^^^^^^^^^^^   ---------------- variable not in all patterns
[INFO] [stdout]     |             |
[INFO] [stdout]     |             pattern doesn't bind `WM_SETTINGCHANGE`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_SETTINGCHANGE`
[INFO] [stdout]    --> src/app.rs:334:27
[INFO] [stdout]     |
[INFO] [stdout] 334 |             osd::REDRAW | WM_SETTINGCHANGE => APP.with_borrow_mut(|app| {
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_DPICHANGED` is not bound in all patterns
[INFO] [stdout]    --> src/osd.rs:353:13
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |             ^^^^^^^^   -------------   ^^^^^^^^^^^^^^^^ pattern doesn't bind `WM_DPICHANGED`
[INFO] [stdout]     |             |          |
[INFO] [stdout]     |             |          variable not in all patterns
[INFO] [stdout]     |             pattern doesn't bind `WM_DPICHANGED`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_DPICHANGED`
[INFO] [stdout]    --> src/osd.rs:353:24
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_DISPLAYCHANGE` is not bound in all patterns
[INFO] [stdout]    --> src/osd.rs:353:13
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |             ^^^^^^^^   ^^^^^^^^^^^^^   ---------------- variable not in all patterns
[INFO] [stdout]     |             |          |
[INFO] [stdout]     |             |          pattern doesn't bind `WM_DISPLAYCHANGE`
[INFO] [stdout]     |             pattern doesn't bind `WM_DISPLAYCHANGE`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_DISPLAYCHANGE`
[INFO] [stdout]    --> src/osd.rs:353:40
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_TIMER` is not bound in all patterns
[INFO] [stdout]    --> src/osd.rs:353:24
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |             --------   ^^^^^^^^^^^^^   ^^^^^^^^^^^^^^^^ pattern doesn't bind `WM_TIMER`
[INFO] [stdout]     |             |          |
[INFO] [stdout]     |             |          pattern doesn't bind `WM_TIMER`
[INFO] [stdout]     |             variable not in all patterns
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_TIMER`
[INFO] [stdout]    --> src/osd.rs:353:13
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]   --> src/main.rs:16:13
[INFO] [stdout]    |
[INFO] [stdout] 16 |             windows::Win32::UI::WindowsAndMessaging::MessageBoxW(
[INFO] [stdout]    |             ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]   --> src/main.rs:18:17
[INFO] [stdout]    |
[INFO] [stdout] 18 |                 windows::core::PCWSTR(message.as_ptr()),
[INFO] [stdout]    |                 ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]   --> src/main.rs:20:17
[INFO] [stdout]    |
[INFO] [stdout] 20 |                 windows::Win32::UI::WindowsAndMessaging::MB_ICONERROR,
[INFO] [stdout]    |                 ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/app.rs:22:19
[INFO] [stdout]    |
[INFO] [stdout] 22 | const TRAY: u32 = WM_APP + 10;
[INFO] [stdout]    |                   ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `NOTIFYICONDATAW` in this scope
[INFO] [stdout]   --> src/app.rs:38:11
[INFO] [stdout]    |
[INFO] [stdout] 38 |     tray: NOTIFYICONDATAW,
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ERROR_ALREADY_EXISTS` in this scope
[INFO] [stdout]   --> src/app.rs:48:30
[INFO] [stdout]    |
[INFO] [stdout] 48 |         if GetLastError() == ERROR_ALREADY_EXISTS {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stdout]   --> src/app.rs:53:21
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let class = WNDCLASSW {
[INFO] [stdout]    |                     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/app.rs:60:24
[INFO] [stdout]    |
[INFO] [stdout] 60 |             return Err(Error::from_thread());
[INFO] [stdout]    |                        ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOOLWINDOW` in this scope
[INFO] [stdout]   --> src/app.rs:63:13
[INFO] [stdout]    |
[INFO] [stdout] 63 |             WS_EX_TOOLWINDOW,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_OVERLAPPED` in this scope
[INFO] [stdout]   --> src/app.rs:66:13
[INFO] [stdout]    |
[INFO] [stdout] 66 |             WS_OVERLAPPED,
[INFO] [stdout]    |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NOTIFYICONDATAW` in this scope
[INFO] [stdout]   --> src/app.rs:80:28
[INFO] [stdout]    |
[INFO] [stdout] 80 |             let mut tray = NOTIFYICONDATAW {
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `NOTIFYICONDATAW` in this scope
[INFO] [stdout]   --> src/app.rs:81:35
[INFO] [stdout]    |
[INFO] [stdout] 81 |                 cbSize: size_of::<NOTIFYICONDATAW>() as u32,
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub fn run<NOTIFYICONDATAW>() -> Result<()> {
[INFO] [stdout]    |           +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIF_ICON` in this scope
[INFO] [stdout]   --> src/app.rs:84:25
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 uFlags: NIF_ICON | NIF_MESSAGE | NIF_TIP,
[INFO] [stdout]    |                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIF_MESSAGE` in this scope
[INFO] [stdout]   --> src/app.rs:84:36
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 uFlags: NIF_ICON | NIF_MESSAGE | NIF_TIP,
[INFO] [stdout]    |                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIF_TIP` in this scope
[INFO] [stdout]   --> src/app.rs:84:50
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 uFlags: NIF_ICON | NIF_MESSAGE | NIF_TIP,
[INFO] [stdout]    |                                                  ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIM_ADD` in this scope
[INFO] [stdout]   --> src/app.rs:90:35
[INFO] [stdout]    |
[INFO] [stdout] 90 |             if !Shell_NotifyIconW(NIM_ADD, &tray).as_bool() {
[INFO] [stdout]    |                                   ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/app.rs:92:28
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 return Err(Error::new(E_FAIL, "Could not add the tray icon"));
[INFO] [stdout]    |                            ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `E_FAIL` in this scope
[INFO] [stdout]   --> src/app.rs:92:39
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 return Err(Error::new(E_FAIL, "Could not add the tray icon"));
[INFO] [stdout]    |                                       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]    --> src/app.rs:107:38
[INFO] [stdout]     |
[INFO] [stdout] 107 |                     -1 => return Err(Error::from_thread()),
[INFO] [stdout]     |                                      ^^^^^ use of undeclared type `Error`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::error::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::fmt::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::io::Error;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIM_DELETE` in this scope
[INFO] [stdout]    --> src/app.rs:123:43
[INFO] [stdout]     |
[INFO] [stdout] 123 |                 let _ = Shell_NotifyIconW(NIM_DELETE, &app.tray);
[INFO] [stdout]     |                                           ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `MENU_ITEM_FLAGS` in this scope
[INFO] [stdout]    --> src/app.rs:133:28
[INFO] [stdout]     |
[INFO] [stdout] 133 | fn checked(value: bool) -> MENU_ITEM_FLAGS {
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_CHECKED` in this scope
[INFO] [stdout]    --> src/app.rs:134:16
[INFO] [stdout]     |
[INFO] [stdout] 134 |     if value { MF_CHECKED } else { MF_UNCHECKED }
[INFO] [stdout]     |                ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_UNCHECKED` in this scope
[INFO] [stdout]    --> src/app.rs:134:36
[INFO] [stdout]     |
[INFO] [stdout] 134 |     if value { MF_CHECKED } else { MF_UNCHECKED }
[INFO] [stdout]     |                                    ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/app.rs:137:29
[INFO] [stdout]     |
[INFO] [stdout] 137 | fn register_session(window: HWND) -> bool {
[INFO] [stdout]     |                             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NOTIFY_FOR_THIS_SESSION` in this scope
[INFO] [stdout]    --> src/app.rs:141:54
[INFO] [stdout]     |
[INFO] [stdout] 141 |         match WTSRegisterSessionNotification(window, NOTIFY_FOR_THIS_SESSION) {
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/app.rs:156:33
[INFO] [stdout]     |
[INFO] [stdout] 156 | fn report_setting_error(window: HWND, result: Result<()>) {
[INFO] [stdout]     |                                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MB_OK` in this scope
[INFO] [stdout]    --> src/app.rs:161:61
[INFO] [stdout]     |
[INFO] [stdout] 161 |             MessageBoxW(Some(window), &text, w!("WinCaps"), MB_OK | MB_ICONERROR);
[INFO] [stdout]     |                                                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MB_ICONERROR` in this scope
[INFO] [stdout]    --> src/app.rs:161:69
[INFO] [stdout]     |
[INFO] [stdout] 161 |             MessageBoxW(Some(window), &text, w!("WinCaps"), MB_OK | MB_ICONERROR);
[INFO] [stdout]     |                                                                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `NOTIFYICONDATAW` in this scope
[INFO] [stdout]    --> src/app.rs:166:23
[INFO] [stdout]     |
[INFO] [stdout] 166 | fn tooltip(tray: &mut NOTIFYICONDATAW, paused: bool) {
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HICON` in this scope
[INFO] [stdout]    --> src/app.rs:178:26
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn tray_icon() -> Result<HICON> {
[INFO] [stdout]     |                          ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn tray_icon<HICON>() -> Result<HICON> {
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `IMAGE_ICON` in this scope
[INFO] [stdout]    --> src/app.rs:185:13
[INFO] [stdout]     |
[INFO] [stdout] 185 |             IMAGE_ICON,
[INFO] [stdout]     |             ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SM_CXSMICON` in this scope
[INFO] [stdout]    --> src/app.rs:186:30
[INFO] [stdout]     |
[INFO] [stdout] 186 |             GetSystemMetrics(SM_CXSMICON),
[INFO] [stdout]     |                              ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SM_CYSMICON` in this scope
[INFO] [stdout]    --> src/app.rs:187:30
[INFO] [stdout]     |
[INFO] [stdout] 187 |             GetSystemMetrics(SM_CYSMICON),
[INFO] [stdout]     |                              ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `LR_DEFAULTCOLOR` in this scope
[INFO] [stdout]    --> src/app.rs:188:13
[INFO] [stdout]     |
[INFO] [stdout] 188 |             LR_DEFAULTCOLOR,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/app.rs:195:13
[INFO] [stdout]     |
[INFO] [stdout] 195 |     window: HWND,
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `WPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:197:13
[INFO] [stdout]     |
[INFO] [stdout] 197 |     wparam: WPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:198:13
[INFO] [stdout]     |
[INFO] [stdout] 198 |     lparam: LPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LRESULT` in this scope
[INFO] [stdout]    --> src/app.rs:199:6
[INFO] [stdout]     |
[INFO] [stdout] 199 | ) -> LRESULT {
[INFO] [stdout]     |      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_RBUTTONUP` in this scope
[INFO] [stdout]    --> src/app.rs:210:40
[INFO] [stdout]     |
[INFO] [stdout] 210 |             TRAY if lparam.0 as u32 == WM_RBUTTONUP || lparam.0 as u32 == WM_CONTEXTMENU => {
[INFO] [stdout]     |                                        ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_CONTEXTMENU` in this scope
[INFO] [stdout]    --> src/app.rs:210:75
[INFO] [stdout]     |
[INFO] [stdout] 210 |             TRAY if lparam.0 as u32 == WM_RBUTTONUP || lparam.0 as u32 == WM_CONTEXTMENU => {
[INFO] [stdout]     |                                                                           ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:218:25
[INFO] [stdout]     |
[INFO] [stdout] 218 |                         MF_STRING,
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:227:33
[INFO] [stdout]     |
[INFO] [stdout] 227 | ...                   MF_STRING | checked(value == hold_ms),
[INFO] [stdout]     |                       ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_POPUP` in this scope
[INFO] [stdout]    --> src/app.rs:232:51
[INFO] [stdout]     |
[INFO] [stdout] 232 |                         let _ = AppendMenuW(menu, MF_POPUP, holds.0 as usize, w!("Hold threshold"));
[INFO] [stdout]     |                                                   ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:236:25
[INFO] [stdout]     |
[INFO] [stdout] 236 |                         MF_STRING | checked(notifications),
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:242:40
[INFO] [stdout]     |
[INFO] [stdout] 242 |                         Ok(enabled) => MF_STRING | checked(enabled),
[INFO] [stdout]     |                                        ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:243:35
[INFO] [stdout]     |
[INFO] [stdout] 243 |                         Err(_) => MF_STRING | MF_GRAYED,
[INFO] [stdout]     |                                   ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_GRAYED` in this scope
[INFO] [stdout]    --> src/app.rs:243:47
[INFO] [stdout]     |
[INFO] [stdout] 243 |                         Err(_) => MF_STRING | MF_GRAYED,
[INFO] [stdout]     |                                               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_SEPARATOR` in this scope
[INFO] [stdout]    --> src/app.rs:246:47
[INFO] [stdout]     |
[INFO] [stdout] 246 |                     let _ = AppendMenuW(menu, MF_SEPARATOR, 0, None);
[INFO] [stdout]     |                                               ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:247:47
[INFO] [stdout]     |
[INFO] [stdout] 247 |                     let _ = AppendMenuW(menu, MF_STRING, EXIT, w!("Exit"));
[INFO] [stdout]     |                                               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TPM_RETURNCMD` in this scope
[INFO] [stdout]    --> src/app.rs:253:25
[INFO] [stdout]     |
[INFO] [stdout] 253 |                         TPM_RETURNCMD | TPM_NONOTIFY | TPM_RIGHTBUTTON,
[INFO] [stdout]     |                         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TPM_NONOTIFY` in this scope
[INFO] [stdout]    --> src/app.rs:253:41
[INFO] [stdout]     |
[INFO] [stdout] 253 |                         TPM_RETURNCMD | TPM_NONOTIFY | TPM_RIGHTBUTTON,
[INFO] [stdout]     |                                         ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TPM_RIGHTBUTTON` in this scope
[INFO] [stdout]    --> src/app.rs:253:56
[INFO] [stdout]     |
[INFO] [stdout] 253 |                         TPM_RETURNCMD | TPM_NONOTIFY | TPM_RIGHTBUTTON,
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_COMMAND` in this scope
[INFO] [stdout]    --> src/app.rs:263:25
[INFO] [stdout]     |
[INFO] [stdout] 263 |                         WM_COMMAND,
[INFO] [stdout]     |                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_NULL` in this scope
[INFO] [stdout]    --> src/app.rs:267:56
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                        ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIM_MODIFY` in this scope
[INFO] [stdout]    --> src/app.rs:276:47
[INFO] [stdout]     |
[INFO] [stdout] 276 |                     let _ = Shell_NotifyIconW(NIM_MODIFY, &app.tray);
[INFO] [stdout]     |                                               ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIM_ADD` in this scope
[INFO] [stdout]    --> src/app.rs:342:51
[INFO] [stdout]     |
[INFO] [stdout] 342 |                         let _ = Shell_NotifyIconW(NIM_ADD, &app.tray);
[INFO] [stdout]     |                                                   ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stdout]    --> src/app.rs:362:25
[INFO] [stdout]     |
[INFO] [stdout] 362 |             let class = WNDCLASSW {
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOOLWINDOW` in this scope
[INFO] [stdout]    --> src/app.rs:371:21
[INFO] [stdout]     |
[INFO] [stdout] 371 |                     WS_EX_TOOLWINDOW,
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_POPUP` in this scope
[INFO] [stdout]    --> src/app.rs:374:21
[INFO] [stdout]     |
[INFO] [stdout] 374 |                     WS_POPUP,
[INFO] [stdout]     |                     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HWND_TOPMOST` in this scope
[INFO] [stdout]    --> src/app.rs:385:43
[INFO] [stdout]     |
[INFO] [stdout] 385 |                 SetWindowPos(window, Some(HWND_TOPMOST), 10, 10, 100, 50, SWP_NOACTIVATE).unwrap();
[INFO] [stdout]     |                                           ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SWP_NOACTIVATE` in this scope
[INFO] [stdout]    --> src/app.rs:385:75
[INFO] [stdout]     |
[INFO] [stdout] 385 |                 SetWindowPos(window, Some(HWND_TOPMOST), 10, 10, 100, 50, SWP_NOACTIVATE).unwrap();
[INFO] [stdout]     |                                                                           ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/keyboard.rs:12:31
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const CAPS_CHANGED: u32 = WM_APP + 1;
[INFO] [stdout]    |                               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/keyboard.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | const PAUSE: u32 = WM_APP + 2;
[INFO] [stdout]    |                    ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/keyboard.rs:14:22
[INFO] [stdout]    |
[INFO] [stdout] 14 | const EXECUTE: u32 = WM_APP + 3;
[INFO] [stdout]    |                      ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/keyboard.rs:15:23
[INFO] [stdout]    |
[INFO] [stdout] 15 | const SET_HOLD: u32 = WM_APP + 5;
[INFO] [stdout]    |                       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/keyboard.rs:16:20
[INFO] [stdout]    |
[INFO] [stdout] 16 | const RESET: u32 = WM_APP + 6;
[INFO] [stdout]    |                    ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |     window: HWND,
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     ui: HWND,
[INFO] [stdout]    |         ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:27:17
[INFO] [stdout]    |
[INFO] [stdout] 27 |     foreground: HWND,
[INFO] [stdout]    |                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:35:13
[INFO] [stdout]    |
[INFO] [stdout] 35 |     window: HWND,
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:40:22
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fn start(ui: HWND, hold_ms: u32) -> Result<Self> {
[INFO] [stdout]    |                      ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:46:44
[INFO] [stdout]    |
[INFO] [stdout] 46 |                 let setup = (|| -> Result<(HWND, HHOOK)> {
[INFO] [stdout]    |                                            ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 39 | impl<HWND> Worker {
[INFO] [stdout]    |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HHOOK` in this scope
[INFO] [stdout]   --> src/keyboard.rs:46:50
[INFO] [stdout]    |
[INFO] [stdout] 46 |                 let setup = (|| -> Result<(HWND, HHOOK)> {
[INFO] [stdout]    |                                                  ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 39 | impl<HHOOK> Worker {
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:48:33
[INFO] [stdout]    |
[INFO] [stdout] 48 |                     let class = WNDCLASSW {
[INFO] [stdout]    |                                 ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/keyboard.rs:55:36
[INFO] [stdout]    |
[INFO] [stdout] 55 |                         return Err(Error::from_thread());
[INFO] [stdout]    |                                    ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HWND_MESSAGE` in this scope
[INFO] [stdout]   --> src/keyboard.rs:66:30
[INFO] [stdout]    |
[INFO] [stdout] 66 |                         Some(HWND_MESSAGE),
[INFO] [stdout]    |                              ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WH_KEYBOARD_LL` in this scope
[INFO] [stdout]   --> src/keyboard.rs:83:45
[INFO] [stdout]    |
[INFO] [stdout] 83 |                     match SetWindowsHookExW(WH_KEYBOARD_LL, Some(hook), Some(instance.into()), 0) {
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]    --> src/keyboard.rs:110:26
[INFO] [stdout]     |
[INFO] [stdout] 110 |             .map_err(|_| Error::new(E_FAIL, "Keyboard thread did not start"))??;
[INFO] [stdout]     |                          ^^^^^ use of undeclared type `Error`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::error::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::fmt::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::io::Error;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `E_FAIL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:110:37
[INFO] [stdout]     |
[INFO] [stdout] 110 |             .map_err(|_| Error::new(E_FAIL, "Keyboard thread did not start"))??;
[INFO] [stdout]     |                                     ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_CLOSE` in this scope
[INFO] [stdout]    --> src/keyboard.rs:148:53
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let _ = PostMessageW(Some(self.window), WM_CLOSE, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:159:10
[INFO] [stdout]     |
[INFO] [stdout] 159 |         [VK_CONTROL, VK_SHIFT, VK_MENU, VK_LWIN, VK_RWIN]
[INFO] [stdout]     |          ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_SHIFT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:159:22
[INFO] [stdout]     |
[INFO] [stdout] 159 |         [VK_CONTROL, VK_SHIFT, VK_MENU, VK_LWIN, VK_RWIN]
[INFO] [stdout]     |                      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_MENU` in this scope
[INFO] [stdout]    --> src/keyboard.rs:159:32
[INFO] [stdout]     |
[INFO] [stdout] 159 |         [VK_CONTROL, VK_SHIFT, VK_MENU, VK_LWIN, VK_RWIN]
[INFO] [stdout]     |                                ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_LWIN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:159:41
[INFO] [stdout]     |
[INFO] [stdout] 159 |         [VK_CONTROL, VK_SHIFT, VK_MENU, VK_LWIN, VK_RWIN]
[INFO] [stdout]     |                                         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_RWIN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:159:50
[INFO] [stdout]     |
[INFO] [stdout] 159 |         [VK_CONTROL, VK_SHIFT, VK_MENU, VK_LWIN, VK_RWIN]
[INFO] [stdout]     |                                                  ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CAPITAL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:167:26
[INFO] [stdout]     |
[INFO] [stdout] 167 |     unsafe { GetKeyState(VK_CAPITAL.0 as i32) & 1 != 0 }
[INFO] [stdout]     |                          ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:170:26
[INFO] [stdout]     |
[INFO] [stdout] 170 | fn chinese_input(window: HWND) -> bool {
[INFO] [stdout]     |                          ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HKL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:178:30
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn is_chinese_layout(layout: HKL) -> bool {
[INFO] [stdout]     |                              ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:183:51
[INFO] [stdout]     |
[INFO] [stdout] 183 | unsafe extern "system" fn hook(code: i32, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]     |                                                   ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:183:67
[INFO] [stdout]     |
[INFO] [stdout] 183 | unsafe extern "system" fn hook(code: i32, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]     |                                                                   ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LRESULT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:183:78
[INFO] [stdout]     |
[INFO] [stdout] 183 | unsafe extern "system" fn hook(code: i32, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]     |                                                                              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HC_ACTION` in this scope
[INFO] [stdout]    --> src/keyboard.rs:186:20
[INFO] [stdout]     |
[INFO] [stdout] 186 |         if code != HC_ACTION as i32 {
[INFO] [stdout]     |                    ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `KBDLLHOOKSTRUCT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:189:43
[INFO] [stdout]     |
[INFO] [stdout] 189 |         let event = &*(lparam.0 as *const KBDLLHOOKSTRUCT);
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_KEYDOWN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:193:39
[INFO] [stdout]     |
[INFO] [stdout] 193 |         let down = wparam.0 as u32 == WM_KEYDOWN || wparam.0 as u32 == WM_SYSKEYDOWN;
[INFO] [stdout]     |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_SYSKEYDOWN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:193:72
[INFO] [stdout]     |
[INFO] [stdout] 193 |         let down = wparam.0 as u32 == WM_KEYDOWN || wparam.0 as u32 == WM_SYSKEYDOWN;
[INFO] [stdout]     |                                                                        ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CAPITAL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:196:32
[INFO] [stdout]     |
[INFO] [stdout] 196 |             if event.vkCode != VK_CAPITAL.0 as u32 {
[INFO] [stdout]     |                                ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_LCONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:199:25
[INFO] [stdout]     |
[INFO] [stdout] 199 |                         VK_LCONTROL,
[INFO] [stdout]     |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_RCONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:200:25
[INFO] [stdout]     |
[INFO] [stdout] 200 |                         VK_RCONTROL,
[INFO] [stdout]     |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_LSHIFT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:201:25
[INFO] [stdout]     |
[INFO] [stdout] 201 |                         VK_LSHIFT,
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_RSHIFT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:202:25
[INFO] [stdout]     |
[INFO] [stdout] 202 |                         VK_RSHIFT,
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_LMENU` in this scope
[INFO] [stdout]    --> src/keyboard.rs:203:25
[INFO] [stdout]     |
[INFO] [stdout] 203 |                         VK_LMENU,
[INFO] [stdout]     |                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_RMENU` in this scope
[INFO] [stdout]    --> src/keyboard.rs:204:25
[INFO] [stdout]     |
[INFO] [stdout] 204 |                         VK_RMENU,
[INFO] [stdout]     |                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_LWIN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:205:25
[INFO] [stdout]     |
[INFO] [stdout] 205 |                         VK_LWIN,
[INFO] [stdout]     |                         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_RWIN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:206:25
[INFO] [stdout]     |
[INFO] [stdout] 206 |                         VK_RWIN,
[INFO] [stdout]     |                         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:261:18
[INFO] [stdout]     |
[INFO] [stdout] 261 | fn queue(window: HWND, foreground: HWND, action: Action) {
[INFO] [stdout]     |                  ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:261:36
[INFO] [stdout]     |
[INFO] [stdout] 261 | fn queue(window: HWND, foreground: HWND, action: Action) {
[INFO] [stdout]     |                                    ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `VIRTUAL_KEY` in this scope
[INFO] [stdout]    --> src/keyboard.rs:278:18
[INFO] [stdout]     |
[INFO] [stdout] 278 | fn send(keys: &[(VIRTUAL_KEY, bool)]) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `INPUT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:279:21
[INFO] [stdout]     |
[INFO] [stdout] 279 |     let inputs: Vec<INPUT> = keys
[INFO] [stdout]     |                     ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 278 | fn send<INPUT>(keys: &[(VIRTUAL_KEY, bool)]) -> bool {
[INFO] [stdout]     |        +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `INPUT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:281:27
[INFO] [stdout]     |
[INFO] [stdout] 281 |         .map(|&(key, up)| INPUT {
[INFO] [stdout]     |                           ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `INPUT_KEYBOARD` in this scope
[INFO] [stdout]    --> src/keyboard.rs:282:21
[INFO] [stdout]     |
[INFO] [stdout] 282 |             r#type: INPUT_KEYBOARD,
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `INPUT_0` in this scope
[INFO] [stdout]    --> src/keyboard.rs:283:24
[INFO] [stdout]     |
[INFO] [stdout] 283 |             Anonymous: INPUT_0 {
[INFO] [stdout]     |                        ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `KEYBDINPUT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:284:21
[INFO] [stdout]     |
[INFO] [stdout] 284 |                 ki: KEYBDINPUT {
[INFO] [stdout]     |                     ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `KEYEVENTF_KEYUP` in this scope
[INFO] [stdout]    --> src/keyboard.rs:287:25
[INFO] [stdout]     |
[INFO] [stdout] 287 |                         KEYEVENTF_KEYUP
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `INPUT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:299:49
[INFO] [stdout]     |
[INFO] [stdout] 299 |         let sent = SendInput(&inputs, size_of::<INPUT>() as i32) as usize;
[INFO] [stdout]     |                                                 ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 278 | fn send<INPUT>(keys: &[(VIRTUAL_KEY, bool)]) -> bool {
[INFO] [stdout]     |        +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:305:13
[INFO] [stdout]     |
[INFO] [stdout] 305 |     window: HWND,
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:307:13
[INFO] [stdout]     |
[INFO] [stdout] 307 |     wparam: WPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:308:13
[INFO] [stdout]     |
[INFO] [stdout] 308 |     lparam: LPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LRESULT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:309:6
[INFO] [stdout]     |
[INFO] [stdout] 309 | ) -> LRESULT {
[INFO] [stdout]     |      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:343:30
[INFO] [stdout]     |
[INFO] [stdout] 343 | ...                   (VK_CONTROL, false),
[INFO] [stdout]     |                        ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_SPACE` in this scope
[INFO] [stdout]    --> src/keyboard.rs:344:30
[INFO] [stdout]     |
[INFO] [stdout] 344 | ...                   (VK_SPACE, false),
[INFO] [stdout]     |                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_SPACE` in this scope
[INFO] [stdout]    --> src/keyboard.rs:345:30
[INFO] [stdout]     |
[INFO] [stdout] 345 | ...                   (VK_SPACE, true),
[INFO] [stdout]     |                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:346:30
[INFO] [stdout]     |
[INFO] [stdout] 346 | ...                   (VK_CONTROL, true),
[INFO] [stdout]     |                        ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_SPACE` in this scope
[INFO] [stdout]    --> src/keyboard.rs:349:37
[INFO] [stdout]     |
[INFO] [stdout] 349 | ...                   send(&[(VK_SPACE, true), (VK_CONTROL, true)]);
[INFO] [stdout]     |                               ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:349:55
[INFO] [stdout]     |
[INFO] [stdout] 349 | ...                   send(&[(VK_SPACE, true), (VK_CONTROL, true)]);
[INFO] [stdout]     |                                                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CAPITAL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:353:60
[INFO] [stdout]     |
[INFO] [stdout] 353 |                         if caps_on() != desired && send(&[(VK_CAPITAL, false), (VK_CAPITAL, true)])
[INFO] [stdout]     |                                                            ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CAPITAL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:353:81
[INFO] [stdout]     |
[INFO] [stdout] 353 |                         if caps_on() != desired && send(&[(VK_CAPITAL, false), (VK_CAPITAL, true)])
[INFO] [stdout]     |                                                                                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/osd.rs:18:25
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub const REDRAW: u32 = WM_APP + 4;
[INFO] [stdout]    |                         ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/osd.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |     window: HWND,
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ID2D1HwndRenderTarget` in this scope
[INFO] [stdout]   --> src/osd.rs:24:20
[INFO] [stdout]    |
[INFO] [stdout] 24 |     target: Option<ID2D1HwndRenderTarget>,
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct Osd<ID2D1HwndRenderTarget> {
[INFO] [stdout]    |               +++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `IDWriteTextFormat` in this scope
[INFO] [stdout]   --> src/osd.rs:25:15
[INFO] [stdout]    |
[INFO] [stdout] 25 |     formats: [IDWriteTextFormat; 3],
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/osd.rs:30:23
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub fn new(owner: HWND) -> Result<Self> {
[INFO] [stdout]    |                       ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stdout]   --> src/osd.rs:34:25
[INFO] [stdout]    |
[INFO] [stdout] 34 |             let class = WNDCLASSW {
[INFO] [stdout]    |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/osd.rs:41:28
[INFO] [stdout]    |
[INFO] [stdout] 41 |                 return Err(Error::from_thread());
[INFO] [stdout]    |                            ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOOLWINDOW` in this scope
[INFO] [stdout]   --> src/osd.rs:44:17
[INFO] [stdout]    |
[INFO] [stdout] 44 |                 WS_EX_TOOLWINDOW
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_NOACTIVATE` in this scope
[INFO] [stdout]   --> src/osd.rs:45:23
[INFO] [stdout]    |
[INFO] [stdout] 45 |                     | WS_EX_NOACTIVATE
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOPMOST` in this scope
[INFO] [stdout]   --> src/osd.rs:46:23
[INFO] [stdout]    |
[INFO] [stdout] 46 |                     | WS_EX_TOPMOST
[INFO] [stdout]    |                       ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_LAYERED` in this scope
[INFO] [stdout]   --> src/osd.rs:47:23
[INFO] [stdout]    |
[INFO] [stdout] 47 |                     | WS_EX_LAYERED
[INFO] [stdout]    |                       ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_TRANSPARENT` in this scope
[INFO] [stdout]   --> src/osd.rs:48:23
[INFO] [stdout]    |
[INFO] [stdout] 48 |                     | WS_EX_TRANSPARENT,
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_POPUP` in this scope
[INFO] [stdout]   --> src/osd.rs:51:17
[INFO] [stdout]    |
[INFO] [stdout] 51 |                 WS_POPUP,
[INFO] [stdout]    |                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `LWA_ALPHA` in this scope
[INFO] [stdout]   --> src/osd.rs:62:70
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 SetLayeredWindowAttributes(window, COLORREF(0), 255, LWA_ALPHA)?;
[INFO] [stdout]    |                                                                      ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMWA_SYSTEMBACKDROP_TYPE` in this scope
[INFO] [stdout]   --> src/osd.rs:65:21
[INFO] [stdout]    |
[INFO] [stdout] 65 |                     DWMWA_SYSTEMBACKDROP_TYPE,
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMSBT_TRANSIENTWINDOW` in this scope
[INFO] [stdout]   --> src/osd.rs:66:22
[INFO] [stdout]    |
[INFO] [stdout] 66 |                     &DWMSBT_TRANSIENTWINDOW as *const _ as _,
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `DWM_SYSTEMBACKDROP_TYPE` in this scope
[INFO] [stdout]   --> src/osd.rs:67:31
[INFO] [stdout]    |
[INFO] [stdout] 67 |                     size_of::<DWM_SYSTEMBACKDROP_TYPE>() as u32,
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl<DWM_SYSTEMBACKDROP_TYPE> Osd {
[INFO] [stdout]    |     +++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMWA_WINDOW_CORNER_PREFERENCE` in this scope
[INFO] [stdout]   --> src/osd.rs:71:21
[INFO] [stdout]    |
[INFO] [stdout] 71 |                     DWMWA_WINDOW_CORNER_PREFERENCE,
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMWCP_ROUND` in this scope
[INFO] [stdout]   --> src/osd.rs:72:22
[INFO] [stdout]    |
[INFO] [stdout] 72 |                     &DWMWCP_ROUND as *const _ as _,
[INFO] [stdout]    |                      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `DWM_WINDOW_CORNER_PREFERENCE` in this scope
[INFO] [stdout]   --> src/osd.rs:73:31
[INFO] [stdout]    |
[INFO] [stdout] 73 |                     size_of::<DWM_WINDOW_CORNER_PREFERENCE>() as u32,
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl<DWM_WINDOW_CORNER_PREFERENCE> Osd {
[INFO] [stdout]    |     ++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `IDWriteFactory` in this scope
[INFO] [stdout]   --> src/osd.rs:84:28
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 let write: IDWriteFactory = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED)?;
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FACTORY_TYPE_SHARED` in this scope
[INFO] [stdout]   --> src/osd.rs:84:65
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 let write: IDWriteFactory = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED)?;
[INFO] [stdout]    |                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `IDWriteTextFormat` in this scope
[INFO] [stdout]   --> src/osd.rs:85:60
[INFO] [stdout]    |
[INFO] [stdout] 85 |                 let text_format = |size, weight| -> Result<IDWriteTextFormat> {
[INFO] [stdout]    |                                                            ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl<IDWriteTextFormat> Osd {
[INFO] [stdout]    |     +++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_STYLE_NORMAL` in this scope
[INFO] [stdout]   --> src/osd.rs:90:25
[INFO] [stdout]    |
[INFO] [stdout] 90 |                         DWRITE_FONT_STYLE_NORMAL,
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_STRETCH_NORMAL` in this scope
[INFO] [stdout]   --> src/osd.rs:91:25
[INFO] [stdout]    |
[INFO] [stdout] 91 |                         DWRITE_FONT_STRETCH_NORMAL,
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_PARAGRAPH_ALIGNMENT_CENTER` in this scope
[INFO] [stdout]   --> src/osd.rs:95:50
[INFO] [stdout]    |
[INFO] [stdout] 95 |                     format.SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT_CENTER)?;
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_TEXT_ALIGNMENT_CENTER` in this scope
[INFO] [stdout]   --> src/osd.rs:96:45
[INFO] [stdout]    |
[INFO] [stdout] 96 |                     format.SetTextAlignment(DWRITE_TEXT_ALIGNMENT_CENTER)?;
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_WEIGHT_MEDIUM` in this scope
[INFO] [stdout]    --> src/osd.rs:103:43
[INFO] [stdout]     |
[INFO] [stdout] 103 |                         text_format(40.0, DWRITE_FONT_WEIGHT_MEDIUM)?,
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_WEIGHT_SEMI_BOLD` in this scope
[INFO] [stdout]    --> src/osd.rs:104:43
[INFO] [stdout]     |
[INFO] [stdout] 104 |                         text_format(12.0, DWRITE_FONT_WEIGHT_SEMI_BOLD)?,
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_WEIGHT_NORMAL` in this scope
[INFO] [stdout]    --> src/osd.rs:105:43
[INFO] [stdout]     |
[INFO] [stdout] 105 |                         text_format(11.0, DWRITE_FONT_WEIGHT_NORMAL)?,
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MONITORINFO` in this scope
[INFO] [stdout]    --> src/osd.rs:121:31
[INFO] [stdout]     |
[INFO] [stdout] 121 |             let mut monitor = MONITORINFO {
[INFO] [stdout]     |                               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `MONITORINFO` in this scope
[INFO] [stdout]    --> src/osd.rs:122:35
[INFO] [stdout]     |
[INFO] [stdout] 122 |                 cbSize: size_of::<MONITORINFO>() as u32,
[INFO] [stdout]     |                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout]  29 | impl<MONITORINFO> Osd {
[INFO] [stdout]     |     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MONITOR_DEFAULTTOPRIMARY` in this scope
[INFO] [stdout]    --> src/osd.rs:126:52
[INFO] [stdout]     |
[INFO] [stdout] 126 |                 MonitorFromPoint(POINT::default(), MONITOR_DEFAULTTOPRIMARY),
[INFO] [stdout]     |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SWP_NOSIZE` in this scope
[INFO] [stdout]    --> src/osd.rs:140:17
[INFO] [stdout]     |
[INFO] [stdout] 140 |                 SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER,
[INFO] [stdout]     |                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SWP_NOACTIVATE` in this scope
[INFO] [stdout]    --> src/osd.rs:140:30
[INFO] [stdout]     |
[INFO] [stdout] 140 |                 SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER,
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SWP_NOZORDER` in this scope
[INFO] [stdout]    --> src/osd.rs:140:47
[INFO] [stdout]     |
[INFO] [stdout] 140 |                 SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER,
[INFO] [stdout]     |                                               ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HWND_TOPMOST` in this scope
[INFO] [stdout]    --> src/osd.rs:146:22
[INFO] [stdout]     |
[INFO] [stdout] 146 |                 Some(HWND_TOPMOST),
[INFO] [stdout]     |                      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SWP_NOACTIVATE` in this scope
[INFO] [stdout]    --> src/osd.rs:151:17
[INFO] [stdout]     |
[INFO] [stdout] 151 |                 SWP_NOACTIVATE,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNOACTIVATE` in this scope
[INFO] [stdout]    --> src/osd.rs:153:45
[INFO] [stdout]     |
[INFO] [stdout] 153 |             let _ = ShowWindow(self.window, SW_SHOWNOACTIVATE);
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_NCACTIVATE` in this scope
[INFO] [stdout]    --> src/osd.rs:156:17
[INFO] [stdout]     |
[INFO] [stdout] 156 |                 WM_NCACTIVATE,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `GWLP_USERDATA` in this scope
[INFO] [stdout]    --> src/osd.rs:166:44
[INFO] [stdout]     |
[INFO] [stdout] 166 |             SetWindowLongPtrW(self.window, GWLP_USERDATA, GetTickCount() as isize);
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `D2DERR_RECREATE_TARGET` in this scope
[INFO] [stdout]    --> src/osd.rs:184:53
[INFO] [stdout]     |
[INFO] [stdout] 184 |                 .is_err_and(|error| error.code() == D2DERR_RECREATE_TARGET)
[INFO] [stdout]     |                                                     ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope
[INFO] [stdout]    --> src/osd.rs:205:24
[INFO] [stdout]     |
[INFO] [stdout] 205 |             let size = D2D_SIZE_U {
[INFO] [stdout]     |                        ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]    --> src/osd.rs:218:17
[INFO] [stdout]     |
[INFO] [stdout] 218 |                 HKEY_CURRENT_USER,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `RRF_RT_REG_DWORD` in this scope
[INFO] [stdout]    --> src/osd.rs:221:17
[INFO] [stdout]     |
[INFO] [stdout] 221 |                 RRF_RT_REG_DWORD,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMWA_USE_IMMERSIVE_DARK_MODE` in this scope
[INFO] [stdout]    --> src/osd.rs:229:17
[INFO] [stdout]     |
[INFO] [stdout] 229 |                 DWMWA_USE_IMMERSIVE_DARK_MODE,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `BOOL` in this scope
[INFO] [stdout]    --> src/osd.rs:231:27
[INFO] [stdout]     |
[INFO] [stdout] 231 |                 size_of::<BOOL>() as u32,
[INFO] [stdout]     |                           ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 231 -                 size_of::<BOOL>() as u32,
[INFO] [stdout] 231 +                 size_of::<bool>() as u32,
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout]  29 | impl<BOOL> Osd {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `HIGHCONTRASTW` in this scope
[INFO] [stdout]    --> src/osd.rs:234:32
[INFO] [stdout]     |
[INFO] [stdout] 234 |             let mut contrast = HIGHCONTRASTW {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HIGHCONTRASTW` in this scope
[INFO] [stdout]    --> src/osd.rs:235:35
[INFO] [stdout]     |
[INFO] [stdout] 235 |                 cbSize: size_of::<HIGHCONTRASTW>() as u32,
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout]  29 | impl<HIGHCONTRASTW> Osd {
[INFO] [stdout]     |     +++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SPI_GETHIGHCONTRAST` in this scope
[INFO] [stdout]    --> src/osd.rs:239:17
[INFO] [stdout]     |
[INFO] [stdout] 239 |                 SPI_GETHIGHCONTRAST,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HCF_HIGHCONTRASTON` in this scope
[INFO] [stdout]    --> src/osd.rs:244:59
[INFO] [stdout]     |
[INFO] [stdout] 244 |             let high_contrast = contrast.dwFlags.contains(HCF_HIGHCONTRASTON);
[INFO] [stdout]     |                                                           ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOWTEXT` in this scope
[INFO] [stdout]    --> src/osd.rs:247:34
[INFO] [stdout]     |
[INFO] [stdout] 247 |                     system_color(COLOR_WINDOWTEXT)
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope
[INFO] [stdout]    --> src/osd.rs:249:21
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     D2D1_COLOR_F {
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in this scope
[INFO] [stdout]    --> src/osd.rs:260:30
[INFO] [stdout]     |
[INFO] [stdout] 260 |                 system_color(COLOR_WINDOW)
[INFO] [stdout]     |                              ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D_RECT_F` in this scope
[INFO] [stdout]    --> src/osd.rs:278:22
[INFO] [stdout]     |
[INFO] [stdout] 278 |                     &D2D_RECT_F {
[INFO] [stdout]     |                      ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `D2D1_DRAW_TEXT_OPTIONS_NONE` in this scope
[INFO] [stdout]    --> src/osd.rs:285:21
[INFO] [stdout]     |
[INFO] [stdout] 285 |                     D2D1_DRAW_TEXT_OPTIONS_NONE,
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_MEASURING_MODE_NATURAL` in this scope
[INFO] [stdout]    --> src/osd.rs:286:21
[INFO] [stdout]     |
[INFO] [stdout] 286 |                     DWRITE_MEASURING_MODE_NATURAL,
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMWA_CLOAK` in this scope
[INFO] [stdout]    --> src/osd.rs:299:17
[INFO] [stdout]     |
[INFO] [stdout] 299 |                 DWMWA_CLOAK,
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `BOOL` in this scope
[INFO] [stdout]    --> src/osd.rs:301:27
[INFO] [stdout]     |
[INFO] [stdout] 301 |                 size_of::<BOOL>() as u32,
[INFO] [stdout]     |                           ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 301 -                 size_of::<BOOL>() as u32,
[INFO] [stdout] 301 +                 size_of::<bool>() as u32,
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout]  29 | impl<BOOL> Osd {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SW_HIDE` in this scope
[INFO] [stdout]    --> src/osd.rs:310:45
[INFO] [stdout]     |
[INFO] [stdout] 310 |             let _ = ShowWindow(self.window, SW_HIDE);
[INFO] [stdout]     |                                             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `SYS_COLOR_INDEX` in this scope
[INFO] [stdout]    --> src/osd.rs:324:24
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn system_color(index: SYS_COLOR_INDEX) -> D2D1_COLOR_F {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `D2D1_COLOR_F` in this scope
[INFO] [stdout]    --> src/osd.rs:324:44
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn system_color(index: SYS_COLOR_INDEX) -> D2D1_COLOR_F {
[INFO] [stdout]     |                                            ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope
[INFO] [stdout]    --> src/osd.rs:327:5
[INFO] [stdout]     |
[INFO] [stdout] 327 |     D2D1_COLOR_F {
[INFO] [stdout]     |     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/osd.rs:336:13
[INFO] [stdout]     |
[INFO] [stdout] 336 |     window: HWND,
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `WPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:338:13
[INFO] [stdout]     |
[INFO] [stdout] 338 |     wparam: WPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:339:13
[INFO] [stdout]     |
[INFO] [stdout] 339 |     lparam: LPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:340:6
[INFO] [stdout]     |
[INFO] [stdout] 340 | ) -> LRESULT {
[INFO] [stdout]     |      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `GW_OWNER` in this scope
[INFO] [stdout]    --> src/osd.rs:348:54
[INFO] [stdout]     |
[INFO] [stdout] 348 |                 if let Ok(owner) = GetWindow(window, GW_OWNER) {
[INFO] [stdout]     |                                                      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `GWLP_USERDATA` in this scope
[INFO] [stdout]    --> src/osd.rs:355:78
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     && GetTickCount().wrapping_sub(GetWindowLongPtrW(window, GWLP_USERDATA) as u32)
[INFO] [stdout]     |                                                                              ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SW_HIDE` in this scope
[INFO] [stdout]    --> src/osd.rs:361:44
[INFO] [stdout]     |
[INFO] [stdout] 361 |                 let _ = ShowWindow(window, SW_HIDE);
[INFO] [stdout]     |                                            ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MA_NOACTIVATE` in this scope
[INFO] [stdout]    --> src/osd.rs:364:41
[INFO] [stdout]     |
[INFO] [stdout] 364 |             WM_MOUSEACTIVATE => LRESULT(MA_NOACTIVATE as isize),
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HTTRANSPARENT` in this scope
[INFO] [stdout]    --> src/osd.rs:367:37
[INFO] [stdout]     |
[INFO] [stdout] 367 |             WM_NCHITTEST => LRESULT(HTTRANSPARENT as isize),
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/osd.rs:373:26
[INFO] [stdout]     |
[INFO] [stdout] 373 | fn create_target(window: HWND) -> Result<ID2D1HwndRenderTarget> {
[INFO] [stdout]     |                          ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ID2D1HwndRenderTarget` in this scope
[INFO] [stdout]    --> src/osd.rs:373:42
[INFO] [stdout]     |
[INFO] [stdout] 373 | fn create_target(window: HWND) -> Result<ID2D1HwndRenderTarget> {
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 373 | fn create_target<ID2D1HwndRenderTarget>(window: HWND) -> Result<ID2D1HwndRenderTarget> {
[INFO] [stdout]     |                 +++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ID2D1Factory` in this scope
[INFO] [stdout]    --> src/osd.rs:376:22
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let factory: ID2D1Factory = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, None)?;
[INFO] [stdout]     |                      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_SINGLE_THREADED` in this scope
[INFO] [stdout]    --> src/osd.rs:376:55
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let factory: ID2D1Factory = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, None)?;
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_RENDER_TARGET_PROPERTIES` in this scope
[INFO] [stdout]    --> src/osd.rs:378:14
[INFO] [stdout]     |
[INFO] [stdout] 378 |             &D2D1_RENDER_TARGET_PROPERTIES {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_PIXEL_FORMAT` in this scope
[INFO] [stdout]    --> src/osd.rs:379:30
[INFO] [stdout]     |
[INFO] [stdout] 379 |                 pixelFormat: D2D1_PIXEL_FORMAT {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DXGI_FORMAT_B8G8R8A8_UNORM` in this scope
[INFO] [stdout]    --> src/osd.rs:380:29
[INFO] [stdout]     |
[INFO] [stdout] 380 |                     format: DXGI_FORMAT_B8G8R8A8_UNORM,
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `D2D1_ALPHA_MODE_PREMULTIPLIED` in this scope
[INFO] [stdout]    --> src/osd.rs:381:32
[INFO] [stdout]     |
[INFO] [stdout] 381 |                     alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED,
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_HWND_RENDER_TARGET_PROPERTIES` in this scope
[INFO] [stdout]    --> src/osd.rs:385:14
[INFO] [stdout]     |
[INFO] [stdout] 385 |             &D2D1_HWND_RENDER_TARGET_PROPERTIES {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope
[INFO] [stdout]    --> src/osd.rs:387:28
[INFO] [stdout]     |
[INFO] [stdout] 387 |                 pixelSize: D2D_SIZE_U {
[INFO] [stdout]     |                            ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `PCWSTR` in this scope
[INFO] [stdout]  --> src/settings.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | const KEY: PCWSTR = w!("Software\\WinCaps");
[INFO] [stdout]   |            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `PCWSTR` in this scope
[INFO] [stdout]  --> src/settings.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | const RUN: PCWSTR = w!("Software\\Microsoft\\Windows\\CurrentVersion\\Run");
[INFO] [stdout]   |            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `PCWSTR` in this scope
[INFO] [stdout]   --> src/settings.rs:40:15
[INFO] [stdout]    |
[INFO] [stdout] 40 | fn read(name: PCWSTR) -> Option<u32> {
[INFO] [stdout]    |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]   --> src/settings.rs:46:13
[INFO] [stdout]    |
[INFO] [stdout] 46 |             HKEY_CURRENT_USER,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `RRF_RT_REG_DWORD` in this scope
[INFO] [stdout]   --> src/settings.rs:49:13
[INFO] [stdout]    |
[INFO] [stdout] 49 |             RRF_RT_REG_DWORD,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `PCWSTR` in this scope
[INFO] [stdout]   --> src/settings.rs:60:16
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn write(name: PCWSTR, value: u32) -> Result<()> {
[INFO] [stdout]    |                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]   --> src/settings.rs:64:13
[INFO] [stdout]    |
[INFO] [stdout] 64 |             HKEY_CURRENT_USER,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `REG_DWORD` in this scope
[INFO] [stdout]   --> src/settings.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 |             REG_DWORD.0,
[INFO] [stdout]    |             ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]   --> src/settings.rs:79:13
[INFO] [stdout]    |
[INFO] [stdout] 79 |             HKEY_CURRENT_USER,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `RRF_RT_REG_SZ` in this scope
[INFO] [stdout]   --> src/settings.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             RRF_RT_REG_SZ,
[INFO] [stdout]    |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ERROR_FILE_NOT_FOUND` in this scope
[INFO] [stdout]   --> src/settings.rs:88:18
[INFO] [stdout]    |
[INFO] [stdout] 88 |     if status == ERROR_FILE_NOT_FOUND {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]   --> src/settings.rs:99:45
[INFO] [stdout]    |
[INFO] [stdout] 99 |             let status = RegDeleteKeyValueW(HKEY_CURRENT_USER, RUN, w!("WinCaps"));
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ERROR_FILE_NOT_FOUND` in this scope
[INFO] [stdout]    --> src/settings.rs:100:33
[INFO] [stdout]     |
[INFO] [stdout] 100 |             return if status == ERROR_FILE_NOT_FOUND {
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]    --> src/settings.rs:107:53
[INFO] [stdout]     |
[INFO] [stdout] 107 |             std::env::current_exe().map_err(|error| Error::new(E_FAIL, error.to_string()))?;
[INFO] [stdout]     |                                                     ^^^^^ use of undeclared type `Error`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::error::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::fmt::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::io::Error;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `E_FAIL` in this scope
[INFO] [stdout]    --> src/settings.rs:107:64
[INFO] [stdout]     |
[INFO] [stdout] 107 |             std::env::current_exe().map_err(|error| Error::new(E_FAIL, error.to_string()))?;
[INFO] [stdout]     |                                                                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]    --> src/settings.rs:113:24
[INFO] [stdout]     |
[INFO] [stdout] 113 |             return Err(Error::new(
[INFO] [stdout]     |                        ^^^^^ use of undeclared type `Error`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::error::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::fmt::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::io::Error;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `E_INVALIDARG` in this scope
[INFO] [stdout]    --> src/settings.rs:114:17
[INFO] [stdout]     |
[INFO] [stdout] 114 |                 E_INVALIDARG,
[INFO] [stdout]     |                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]    --> src/settings.rs:119:13
[INFO] [stdout]     |
[INFO] [stdout] 119 |             HKEY_CURRENT_USER,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_DPICHANGED` is not bound in all patterns
[INFO] [stdout]    --> src/osd.rs:353:13
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |             ^^^^^^^^   -------------   ^^^^^^^^^^^^^^^^ pattern doesn't bind `WM_DPICHANGED`
[INFO] [stdout]     |             |          |
[INFO] [stdout]     |             |          variable not in all patterns
[INFO] [stdout]     |             pattern doesn't bind `WM_DPICHANGED`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_DPICHANGED`
[INFO] [stdout]    --> src/osd.rs:353:24
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `REG_SZ` in this scope
[INFO] [stdout]    --> src/settings.rs:122:13
[INFO] [stdout]     |
[INFO] [stdout] 122 |             REG_SZ.0,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_DISPLAYCHANGE` is not bound in all patterns
[INFO] [stdout]    --> src/osd.rs:353:13
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |             ^^^^^^^^   ^^^^^^^^^^^^^   ---------------- variable not in all patterns
[INFO] [stdout]     |             |          |
[INFO] [stdout]     |             |          pattern doesn't bind `WM_DISPLAYCHANGE`
[INFO] [stdout]     |             pattern doesn't bind `WM_DISPLAYCHANGE`
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_DISPLAYCHANGE`
[INFO] [stdout]    --> src/osd.rs:353:40
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/app.rs:44:17
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub fn run() -> Result<()> {
[INFO] [stdout]    |                 ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub fn run() -> Result<(), E> {
[INFO] [stdout]    |                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0408]: variable `WM_TIMER` is not bound in all patterns
[INFO] [stdout]    --> src/osd.rs:353:24
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |             --------   ^^^^^^^^^^^^^   ^^^^^^^^^^^^^^^^ pattern doesn't bind `WM_TIMER`
[INFO] [stdout]     |             |          |
[INFO] [stdout]     |             |          pattern doesn't bind `WM_TIMER`
[INFO] [stdout]     |             variable not in all patterns
[INFO] [stdout]     |
[INFO] [stdout] help: if you meant to match on a unit struct, unit variant or a `const` item, consider making the path in the pattern qualified: `path::to::ModOrType::WM_TIMER`
[INFO] [stdout]    --> src/osd.rs:353:13
[INFO] [stdout]     |
[INFO] [stdout] 353 |             WM_TIMER | WM_DPICHANGED | WM_DISPLAYCHANGE => {
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/app.rs:156:47
[INFO] [stdout]     |
[INFO] [stdout] 156 | fn report_setting_error(window: HWND, result: Result<()>) {
[INFO] [stdout]     |                                               ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                                               |
[INFO] [stdout]     |                                               expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 156 | fn report_setting_error(window: HWND, result: Result<(), E>) {
[INFO] [stdout]     |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/app.rs:178:19
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn tray_icon() -> Result<HICON> {
[INFO] [stdout]     |                   ^^^^^^ ----- supplied 1 generic argument
[INFO] [stdout]     |                   |
[INFO] [stdout]     |                   expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn tray_icon() -> Result<HICON, E> {
[INFO] [stdout]     |                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/osd.rs:373:35
[INFO] [stdout]     |
[INFO] [stdout] 373 | fn create_target(window: HWND) -> Result<ID2D1HwndRenderTarget> {
[INFO] [stdout]     |                                   ^^^^^^ --------------------- supplied 1 generic argument
[INFO] [stdout]     |                                   |
[INFO] [stdout]     |                                   expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 373 | fn create_target(window: HWND) -> Result<ID2D1HwndRenderTarget, E> {
[INFO] [stdout]     |                                                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/settings.rs:60:39
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn write(name: PCWSTR, value: u32) -> Result<()> {
[INFO] [stdout]    |                                       ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                       |
[INFO] [stdout]    |                                       expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn write(name: PCWSTR, value: u32) -> Result<(), E> {
[INFO] [stdout]    |                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/settings.rs:75:29
[INFO] [stdout]    |
[INFO] [stdout] 75 | pub fn startup_enabled() -> Result<bool> {
[INFO] [stdout]    |                             ^^^^^^ ---- supplied 1 generic argument
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 75 | pub fn startup_enabled() -> Result<bool, E> {
[INFO] [stdout]    |                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/settings.rs:95:38
[INFO] [stdout]    |
[INFO] [stdout] 95 | pub fn set_startup(enabled: bool) -> Result<()> {
[INFO] [stdout]    |                                      ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 95 | pub fn set_startup(enabled: bool) -> Result<(), E> {
[INFO] [stdout]    |                                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/keyboard.rs:40:45
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fn start(ui: HWND, hold_ms: u32) -> Result<Self> {
[INFO] [stdout]    |                                             ^^^^^^ ---- supplied 1 generic argument
[INFO] [stdout]    |                                             |
[INFO] [stdout]    |                                             expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fn start(ui: HWND, hold_ms: u32) -> Result<Self, E> {
[INFO] [stdout]    |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/osd.rs:30:32
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub fn new(owner: HWND) -> Result<Self> {
[INFO] [stdout]    |                                ^^^^^^ ---- supplied 1 generic argument
[INFO] [stdout]    |                                |
[INFO] [stdout]    |                                expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub fn new(owner: HWND) -> Result<Self, E> {
[INFO] [stdout]    |                                           +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/osd.rs:117:43
[INFO] [stdout]     |
[INFO] [stdout] 117 |     pub fn show(&mut self, caps: bool) -> Result<()> {
[INFO] [stdout]     |                                           ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                                           |
[INFO] [stdout]     |                                           expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 117 |     pub fn show(&mut self, caps: bool) -> Result<(), E> {
[INFO] [stdout]     |                                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/osd.rs:174:31
[INFO] [stdout]     |
[INFO] [stdout] 174 |     pub fn draw(&mut self) -> Result<()> {
[INFO] [stdout]     |                               ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 174 |     pub fn draw(&mut self) -> Result<(), E> {
[INFO] [stdout]     |                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/osd.rs:196:32
[INFO] [stdout]     |
[INFO] [stdout] 196 |     fn draw_once(&mut self) -> Result<()> {
[INFO] [stdout]     |                                ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                                |
[INFO] [stdout]     |                                expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 196 |     fn draw_once(&mut self) -> Result<(), E> {
[INFO] [stdout]     |                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/osd.rs:293:39
[INFO] [stdout]     |
[INFO] [stdout] 293 |     fn cloak(&self, enabled: bool) -> Result<()> {
[INFO] [stdout]     |                                       ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                                       |
[INFO] [stdout]     |                                       expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 293 |     fn cloak(&self, enabled: bool) -> Result<(), E> {
[INFO] [stdout]     |                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/settings.rs:27:47
[INFO] [stdout]    |
[INFO] [stdout] 27 |     pub fn set_hold(&mut self, value: u32) -> Result<()> {
[INFO] [stdout]    |                                               ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                               |
[INFO] [stdout]    |                                               expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 27 |     pub fn set_hold(&mut self, value: u32) -> Result<(), E> {
[INFO] [stdout]    |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/settings.rs:33:57
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub fn set_notifications(&mut self, value: bool) -> Result<()> {
[INFO] [stdout]    |                                                         ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                                         |
[INFO] [stdout]    |                                                         expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub fn set_notifications(&mut self, value: bool) -> Result<(), E> {
[INFO] [stdout]    |                                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Owned` in this scope
[INFO] [stdout]   --> src/app.rs:47:25
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let _instance = Owned::new(CreateMutexW(None, false, w!("Local\\WinCaps"))?);
[INFO] [stdout]    |                         ^^^^^ use of undeclared type `Owned`
[INFO] [stdout]    |
[INFO] [stdout] help: there is an enum variant `std::borrow::Cow::Owned`; try using the variant's enum
[INFO] [stdout]    |
[INFO] [stdout] 47 -         let _instance = Owned::new(CreateMutexW(None, false, w!("Local\\WinCaps"))?);
[INFO] [stdout] 47 +         let _instance = std::borrow::Cow::new(CreateMutexW(None, false, w!("Local\\WinCaps"))?);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope
[INFO] [stdout]   --> src/app.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 48 |         if GetLastError() == ERROR_ALREADY_EXISTS {
[INFO] [stdout]    |            ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterWindowMessageW` in this scope
[INFO] [stdout]   --> src/app.rs:52:29
[INFO] [stdout]    |
[INFO] [stdout] 52 |         TASKBAR_CREATED.set(RegisterWindowMessageW(w!("TaskbarCreated")));
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stdout]   --> src/app.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 |         if RegisterClassW(&class) == 0 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stdout]   --> src/app.rs:62:22
[INFO] [stdout]    |
[INFO] [stdout] 62 |         let window = CreateWindowExW(
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/app.rs:76:29
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let result = (|| -> Result<()> {
[INFO] [stdout]    |                             ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let result = (|| -> Result<(), E> {
[INFO] [stdout]    |                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Shell_NotifyIconW` in this scope
[INFO] [stdout]   --> src/app.rs:90:17
[INFO] [stdout]    |
[INFO] [stdout] 90 |             if !Shell_NotifyIconW(NIM_ADD, &tray).as_bool() {
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyIcon` in this scope
[INFO] [stdout]   --> src/app.rs:91:25
[INFO] [stdout]    |
[INFO] [stdout] 91 |                 let _ = DestroyIcon(tray.hIcon);
[INFO] [stdout]    |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `MSG` in this scope
[INFO] [stdout]    --> src/app.rs:104:31
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let mut message = MSG::default();
[INFO] [stdout]     |                               ^^^ use of undeclared type `MSG`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope
[INFO] [stdout]    --> src/app.rs:106:23
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 match GetMessageW(&mut message, None, 0, 0).0 {
[INFO] [stdout]     |                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope
[INFO] [stdout]    --> src/app.rs:110:33
[INFO] [stdout]     |
[INFO] [stdout] 110 |                         let _ = TranslateMessage(&message);
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope
[INFO] [stdout]    --> src/app.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                         DispatchMessageW(&message);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/app.rs:119:25
[INFO] [stdout]     |
[INFO] [stdout] 119 |                 let _ = KillTimer(Some(window), SESSION_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WTSUnRegisterSessionNotification` in this scope
[INFO] [stdout]    --> src/app.rs:121:29
[INFO] [stdout]     |
[INFO] [stdout] 121 |                     let _ = WTSUnRegisterSessionNotification(window);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Shell_NotifyIconW` in this scope
[INFO] [stdout]    --> src/app.rs:123:25
[INFO] [stdout]     |
[INFO] [stdout] 123 |                 let _ = Shell_NotifyIconW(NIM_DELETE, &app.tray);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyIcon` in this scope
[INFO] [stdout]    --> src/app.rs:124:25
[INFO] [stdout]     |
[INFO] [stdout] 124 |                 let _ = DestroyIcon(app.tray.hIcon);
[INFO] [stdout]     |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]    --> src/app.rs:128:17
[INFO] [stdout]     |
[INFO] [stdout] 128 |         let _ = DestroyWindow(window);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/app.rs:140:17
[INFO] [stdout]     |
[INFO] [stdout] 140 |         let _ = KillTimer(Some(window), SESSION_TIMER);
[INFO] [stdout]     |                 ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WTSRegisterSessionNotification` in this scope
[INFO] [stdout]    --> src/app.rs:141:15
[INFO] [stdout]     |
[INFO] [stdout] 141 |         match WTSRegisterSessionNotification(window, NOTIFY_FOR_THIS_SESSION) {
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `HRESULT` in this scope
[INFO] [stdout]    --> src/app.rs:144:36
[INFO] [stdout]     |
[INFO] [stdout] 144 |                 if error.code() == HRESULT::from_win32(RPC_S_INVALID_BINDING.0 as u32) {
[INFO] [stdout]     |                                    ^^^^^^^ use of undeclared type `HRESULT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetTimer` in this scope
[INFO] [stdout]    --> src/app.rs:146:21
[INFO] [stdout]     |
[INFO] [stdout] 146 |                     SetTimer(Some(window), SESSION_TIMER, 1000, None);
[INFO] [stdout]     |                     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `HSTRING` in this scope
[INFO] [stdout]    --> src/app.rs:158:20
[INFO] [stdout]     |
[INFO] [stdout] 158 |         let text = HSTRING::from(format!("Could not save the setting: {error}"));
[INFO] [stdout]     |                    ^^^^^^^ use of undeclared type `HSTRING`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MessageBoxW` in this scope
[INFO] [stdout]    --> src/app.rs:161:13
[INFO] [stdout]     |
[INFO] [stdout] 161 |             MessageBoxW(Some(window), &text, w!("WinCaps"), MB_OK | MB_ICONERROR);
[INFO] [stdout]     |             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PCWSTR` in this scope
[INFO] [stdout]    --> src/app.rs:184:13
[INFO] [stdout]     |
[INFO] [stdout] 184 |             PCWSTR(std::ptr::without_provenance(1)),
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in this scope
[INFO] [stdout]    --> src/app.rs:186:13
[INFO] [stdout]     |
[INFO] [stdout] 186 |             GetSystemMetrics(SM_CXSMICON),
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in this scope
[INFO] [stdout]    --> src/app.rs:187:13
[INFO] [stdout]     |
[INFO] [stdout] 187 |             GetSystemMetrics(SM_CYSMICON),
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadImageW` in this scope
[INFO] [stdout]    --> src/app.rs:182:20
[INFO] [stdout]     |
[INFO] [stdout] 182 |         let icon = LoadImageW(
[INFO] [stdout]     |                    ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HICON` in this scope
[INFO] [stdout]    --> src/app.rs:190:12
[INFO] [stdout]     |
[INFO] [stdout] 190 |         Ok(HICON(icon.0))
[INFO] [stdout]     |            ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreatePopupMenu` in this scope
[INFO] [stdout]    --> src/app.rs:215:35
[INFO] [stdout]     |
[INFO] [stdout] 215 |                 if let Ok(menu) = CreatePopupMenu() {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:216:29
[INFO] [stdout]     |
[INFO] [stdout] 216 |                     let _ = AppendMenuW(
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreatePopupMenu` in this scope
[INFO] [stdout]    --> src/app.rs:222:40
[INFO] [stdout]     |
[INFO] [stdout] 222 |                     if let Ok(holds) = CreatePopupMenu() {
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `HSTRING` in this scope
[INFO] [stdout]    --> src/app.rs:224:41
[INFO] [stdout]     |
[INFO] [stdout] 224 | ...                   let label = HSTRING::from(format!("{value} ms"));
[INFO] [stdout]     |                                   ^^^^^^^ use of undeclared type `HSTRING`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:225:37
[INFO] [stdout]     |
[INFO] [stdout] 225 | ...                   let _ = AppendMenuW(
[INFO] [stdout]     |                               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:232:33
[INFO] [stdout]     |
[INFO] [stdout] 232 |                         let _ = AppendMenuW(menu, MF_POPUP, holds.0 as usize, w!("Hold threshold"));
[INFO] [stdout]     |                                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:234:29
[INFO] [stdout]     |
[INFO] [stdout] 234 |                     let _ = AppendMenuW(
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:245:29
[INFO] [stdout]     |
[INFO] [stdout] 245 |                     let _ = AppendMenuW(menu, flags, STARTUP, w!("Start at login"));
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:246:29
[INFO] [stdout]     |
[INFO] [stdout] 246 |                     let _ = AppendMenuW(menu, MF_SEPARATOR, 0, None);
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:247:29
[INFO] [stdout]     |
[INFO] [stdout] 247 |                     let _ = AppendMenuW(menu, MF_STRING, EXIT, w!("Exit"));
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `POINT` in this scope
[INFO] [stdout]    --> src/app.rs:248:37
[INFO] [stdout]     |
[INFO] [stdout] 248 |                     let mut point = POINT::default();
[INFO] [stdout]     |                                     ^^^^^ use of undeclared type `POINT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope
[INFO] [stdout]    --> src/app.rs:249:29
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     let _ = GetCursorPos(&mut point);
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetForegroundWindow` in this scope
[INFO] [stdout]    --> src/app.rs:250:29
[INFO] [stdout]     |
[INFO] [stdout] 250 |                     let _ = SetForegroundWindow(window);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TrackPopupMenu` in this scope
[INFO] [stdout]    --> src/app.rs:251:34
[INFO] [stdout]     |
[INFO] [stdout] 251 |                     let choice = TrackPopupMenu(
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyMenu` in this scope
[INFO] [stdout]    --> src/app.rs:260:29
[INFO] [stdout]     |
[INFO] [stdout] 260 |                     let _ = DestroyMenu(menu);
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:264:25
[INFO] [stdout]     |
[INFO] [stdout] 264 |                         WPARAM(choice.0 as usize),
[INFO] [stdout]     |                         ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 264 -                         WPARAM(choice.0 as usize),
[INFO] [stdout] 264 +                         wparam(choice.0 as usize),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:265:25
[INFO] [stdout]     |
[INFO] [stdout] 265 |                         LPARAM(0),
[INFO] [stdout]     |                         ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 265 -                         LPARAM(0),
[INFO] [stdout] 265 +                         lparam(0),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/app.rs:261:29
[INFO] [stdout]     |
[INFO] [stdout] 261 |                     let _ = PostMessageW(
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:267:65
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                                 ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 267 -                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout] 267 +                     let _ = PostMessageW(Some(window), WM_NULL, wparam(0), LPARAM(0));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:267:76
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                                            ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 267 -                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout] 267 +                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), lparam(0));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/app.rs:267:29
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Shell_NotifyIconW` in this scope
[INFO] [stdout]    --> src/app.rs:276:29
[INFO] [stdout]     |
[INFO] [stdout] 276 |                     let _ = Shell_NotifyIconW(NIM_MODIFY, &app.tray);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/app.rs:288:59
[INFO] [stdout]     |
[INFO] [stdout] 288 |                 let result = APP.with_borrow_mut(|app| -> Result<()> {
[INFO] [stdout]     |                                                           ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                                                           |
[INFO] [stdout]     |                                                           expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 288 |                 let result = APP.with_borrow_mut(|app| -> Result<(), E> {
[INFO] [stdout]     |                                                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stdout]    --> src/app.rs:302:47
[INFO] [stdout]     |
[INFO] [stdout] 302 |             WM_COMMAND if wparam.0 == EXIT => PostQuitMessage(0),
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stdout]    --> src/app.rs:303:25
[INFO] [stdout]     |
[INFO] [stdout] 303 |             WM_CLOSE => PostQuitMessage(0),
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stdout]    --> src/app.rs:304:47
[INFO] [stdout]     |
[INFO] [stdout] 304 |             WM_ENDSESSION if wparam.0 != 0 => PostQuitMessage(0),
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/app.rs:318:24
[INFO] [stdout]     |
[INFO] [stdout] 318 |                 return LRESULT(1);
[INFO] [stdout]     |                        ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Shell_NotifyIconW` in this scope
[INFO] [stdout]    --> src/app.rs:342:33
[INFO] [stdout]     |
[INFO] [stdout] 342 |                         let _ = Shell_NotifyIconW(NIM_ADD, &app.tray);
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]    --> src/app.rs:345:24
[INFO] [stdout]     |
[INFO] [stdout] 345 |                 return DefWindowProcW(window, message, wparam, lparam);
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]    --> src/app.rs:348:25
[INFO] [stdout]     |
[INFO] [stdout] 348 |             _ => return DefWindowProcW(window, message, wparam, lparam),
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/app.rs:350:9
[INFO] [stdout]     |
[INFO] [stdout] 350 |         LRESULT(0)
[INFO] [stdout]     |         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stdout]    --> src/app.rs:368:24
[INFO] [stdout]     |
[INFO] [stdout] 368 |             assert_ne!(RegisterClassW(&class), 0);
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stdout]    --> src/app.rs:370:30
[INFO] [stdout]     |
[INFO] [stdout] 370 |                 let window = CreateWindowExW(
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope
[INFO] [stdout]    --> src/app.rs:385:17
[INFO] [stdout]     |
[INFO] [stdout] 385 |                 SetWindowPos(window, Some(HWND_TOPMOST), 10, 10, 100, 50, SWP_NOACTIVATE).unwrap();
[INFO] [stdout]     |                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]    --> src/app.rs:386:17
[INFO] [stdout]     |
[INFO] [stdout] 386 |                 DestroyWindow(window).unwrap();
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnregisterClassW` in this scope
[INFO] [stdout]    --> src/app.rs:388:13
[INFO] [stdout]     |
[INFO] [stdout] 388 |             UnregisterClassW(class.lpszClassName, Some(class.hInstance)).unwrap();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/keyboard.rs:46:36
[INFO] [stdout]    |
[INFO] [stdout] 46 |                 let setup = (|| -> Result<(HWND, HHOOK)> {
[INFO] [stdout]    |                                    ^^^^^^ ------------- supplied 1 generic argument
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 46 |                 let setup = (|| -> Result<(HWND, HHOOK), E> {
[INFO] [stdout]    |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:54:24
[INFO] [stdout]    |
[INFO] [stdout] 54 |                     if RegisterClassW(&class) == 0 {
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `WINDOW_EX_STYLE` in this scope
[INFO] [stdout]   --> src/keyboard.rs:58:25
[INFO] [stdout]    |
[INFO] [stdout] 58 |                         WINDOW_EX_STYLE::default(),
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^ use of undeclared type `WINDOW_EX_STYLE`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `WINDOW_STYLE` in this scope
[INFO] [stdout]   --> src/keyboard.rs:61:25
[INFO] [stdout]    |
[INFO] [stdout] 61 |                         WINDOW_STYLE::default(),
[INFO] [stdout]    |                         ^^^^^^^^^^^^ use of undeclared type `WINDOW_STYLE`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:57:34
[INFO] [stdout]    |
[INFO] [stdout] 57 |                     let window = CreateWindowExW(
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:74:33
[INFO] [stdout]    |
[INFO] [stdout] 74 | ...                   ui: HWND(ui as _),
[INFO] [stdout]    |                           ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:76:41
[INFO] [stdout]    |
[INFO] [stdout] 76 | ...                   foreground: HWND::default(),
[INFO] [stdout]    |                                   ^^^^ use of undeclared type `HWND`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:83:27
[INFO] [stdout]    |
[INFO] [stdout] 83 |                     match SetWindowsHookExW(WH_KEYBOARD_LL, Some(hook), Some(instance.into()), 0) {
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]   --> src/keyboard.rs:86:37
[INFO] [stdout]    |
[INFO] [stdout] 86 | ...                   let _ = DestroyWindow(window);
[INFO] [stdout]    |                               ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `MSG` in this scope
[INFO] [stdout]   --> src/keyboard.rs:94:39
[INFO] [stdout]    |
[INFO] [stdout] 94 |                         let mut msg = MSG::default();
[INFO] [stdout]    |                                       ^^^ use of undeclared type `MSG`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:95:31
[INFO] [stdout]    |
[INFO] [stdout] 95 |                         while GetMessageW(&mut msg, None, 0, 0).0 > 0 {
[INFO] [stdout]    |                               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:96:29
[INFO] [stdout]    |
[INFO] [stdout] 96 | ...                   DispatchMessageW(&msg);
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope
[INFO] [stdout]   --> src/keyboard.rs:98:33
[INFO] [stdout]    |
[INFO] [stdout] 98 |                         let _ = UnhookWindowsHookEx(hook);
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]   --> src/keyboard.rs:99:33
[INFO] [stdout]    |
[INFO] [stdout] 99 |                         let _ = DestroyWindow(window);
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:112:21
[INFO] [stdout]     |
[INFO] [stdout] 112 |             window: HWND(window as _),
[INFO] [stdout]     |                     ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:120:60
[INFO] [stdout]     |
[INFO] [stdout] 120 |             let _ = PostMessageW(Some(self.window), PAUSE, WPARAM(paused as usize), LPARAM(0));
[INFO] [stdout]     |                                                            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:120:85
[INFO] [stdout]     |
[INFO] [stdout] 120 |             let _ = PostMessageW(Some(self.window), PAUSE, WPARAM(paused as usize), LPARAM(0));
[INFO] [stdout]     |                                                                                     ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:120:21
[INFO] [stdout]     |
[INFO] [stdout] 120 |             let _ = PostMessageW(Some(self.window), PAUSE, WPARAM(paused as usize), LPARAM(0));
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:130:17
[INFO] [stdout]     |
[INFO] [stdout] 130 |                 WPARAM(hold_ms as usize),
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:131:17
[INFO] [stdout]     |
[INFO] [stdout] 131 |                 LPARAM(0),
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:127:21
[INFO] [stdout]     |
[INFO] [stdout] 127 |             let _ = PostMessageW(
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:139:60
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let _ = PostMessageW(Some(self.window), RESET, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:139:71
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let _ = PostMessageW(Some(self.window), RESET, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                                       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:139:21
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let _ = PostMessageW(Some(self.window), RESET, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:148:63
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let _ = PostMessageW(Some(self.window), WM_CLOSE, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:148:74
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let _ = PostMessageW(Some(self.window), WM_CLOSE, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                                          ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:148:21
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let _ = PostMessageW(Some(self.window), WM_CLOSE, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAsyncKeyState` in this scope
[INFO] [stdout]    --> src/keyboard.rs:161:24
[INFO] [stdout]     |
[INFO] [stdout] 161 |             .any(|key| GetAsyncKeyState(key.0 as i32) < 0)
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope
[INFO] [stdout]    --> src/keyboard.rs:167:14
[INFO] [stdout]     |
[INFO] [stdout] 167 |     unsafe { GetKeyState(VK_CAPITAL.0 as i32) & 1 != 0 }
[INFO] [stdout]     |              ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowThreadProcessId` in this scope
[INFO] [stdout]    --> src/keyboard.rs:173:22
[INFO] [stdout]     |
[INFO] [stdout] 173 |         let thread = GetWindowThreadProcessId(window, None);
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyboardLayout` in this scope
[INFO] [stdout]    --> src/keyboard.rs:174:42
[INFO] [stdout]     |
[INFO] [stdout] 174 |         thread != 0 && is_chinese_layout(GetKeyboardLayout(thread))
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope
[INFO] [stdout]    --> src/keyboard.rs:187:20
[INFO] [stdout]     |
[INFO] [stdout] 187 |             return CallNextHookEx(None, code, wparam, lparam);
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope
[INFO] [stdout]    --> src/keyboard.rs:191:20
[INFO] [stdout]     |
[INFO] [stdout] 191 |             return CallNextHookEx(None, code, wparam, lparam);
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetForegroundWindow` in this scope
[INFO] [stdout]    --> src/keyboard.rs:223:34
[INFO] [stdout]     |
[INFO] [stdout] 223 |                 let foreground = GetForegroundWindow();
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:230:20
[INFO] [stdout]     |
[INFO] [stdout] 230 |                 if SetTimer(Some(state.window), HOLD_TIMER, state.hold_ms, None) == 0 {
[INFO] [stdout]     |                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:240:25
[INFO] [stdout]     |
[INFO] [stdout] 240 |                 let _ = KillTimer(Some(state.window), HOLD_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetForegroundWindow` in this scope
[INFO] [stdout]    --> src/keyboard.rs:241:20
[INFO] [stdout]     |
[INFO] [stdout] 241 |                 if GetForegroundWindow() != state.foreground
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:254:13
[INFO] [stdout]     |
[INFO] [stdout] 254 |             LRESULT(1)
[INFO] [stdout]     |             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope
[INFO] [stdout]    --> src/keyboard.rs:256:13
[INFO] [stdout]     |
[INFO] [stdout] 256 |             CallNextHookEx(None, code, wparam, lparam)
[INFO] [stdout]     |             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:272:13
[INFO] [stdout]     |
[INFO] [stdout] 272 |             WPARAM(value),
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:273:13
[INFO] [stdout]     |
[INFO] [stdout] 273 |             LPARAM(foreground.0 as isize),
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:269:17
[INFO] [stdout]     |
[INFO] [stdout] 269 |         let _ = PostMessageW(
[INFO] [stdout]     |                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `KEYBD_EVENT_FLAGS` in this scope
[INFO] [stdout]    --> src/keyboard.rs:289:25
[INFO] [stdout]     |
[INFO] [stdout] 289 |                         KEYBD_EVENT_FLAGS::default()
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^ use of undeclared type `KEYBD_EVENT_FLAGS`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendInput` in this scope
[INFO] [stdout]    --> src/keyboard.rs:299:20
[INFO] [stdout]     |
[INFO] [stdout] 299 |         let sent = SendInput(&inputs, size_of::<INPUT>() as i32) as usize;
[INFO] [stdout]     |                    ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetForegroundWindow` in this scope
[INFO] [stdout]    --> src/keyboard.rs:317:28
[INFO] [stdout]     |
[INFO] [stdout] 317 |                         if GetForegroundWindow() != state.foreground
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:327:37
[INFO] [stdout]     |
[INFO] [stdout] 327 | ...                   let _ = KillTimer(Some(window), HOLD_TIMER);
[INFO] [stdout]     |                               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:335:38
[INFO] [stdout]     |
[INFO] [stdout] 335 |                     let foreground = HWND(lparam.0 as _);
[INFO] [stdout]     |                                      ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetForegroundWindow` in this scope
[INFO] [stdout]    --> src/keyboard.rs:337:42
[INFO] [stdout]     |
[INFO] [stdout] 337 |                         && foreground == GetForegroundWindow()
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]   --> src/main.rs:16:13
[INFO] [stdout]    |
[INFO] [stdout] 16 |             windows::Win32::UI::WindowsAndMessaging::MessageBoxW(
[INFO] [stdout]    |             ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:358:29
[INFO] [stdout]     |
[INFO] [stdout] 358 | ...                   SetTimer(Some(window), CONFIRM_TIMER, 20, None);
[INFO] [stdout]     |                       ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:364:25
[INFO] [stdout]     |
[INFO] [stdout] 364 |                 let _ = KillTimer(Some(window), CONFIRM_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:375:29
[INFO] [stdout]     |
[INFO] [stdout] 375 | ...                   WPARAM(caps_on() as usize),
[INFO] [stdout]     |                       ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 375 -                             WPARAM(caps_on() as usize),
[INFO] [stdout] 375 +                             wparam(caps_on() as usize),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:376:29
[INFO] [stdout]     |
[INFO] [stdout] 376 | ...                   LPARAM(0),
[INFO] [stdout]     |                       ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 376 -                             LPARAM(0),
[INFO] [stdout] 376 +                             lparam(0),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:372:33
[INFO] [stdout]     |
[INFO] [stdout] 372 |                         let _ = PostMessageW(
[INFO] [stdout]     |                                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:387:25
[INFO] [stdout]     |
[INFO] [stdout] 387 |                 let _ = KillTimer(Some(window), HOLD_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:397:25
[INFO] [stdout]     |
[INFO] [stdout] 397 |                 let _ = KillTimer(Some(window), HOLD_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:398:25
[INFO] [stdout]     |
[INFO] [stdout] 398 |                 let _ = KillTimer(Some(window), CONFIRM_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]   --> src/main.rs:18:17
[INFO] [stdout]    |
[INFO] [stdout] 18 |                 windows::core::PCWSTR(message.as_ptr()),
[INFO] [stdout]    |                 ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stdout]    --> src/keyboard.rs:400:25
[INFO] [stdout]     |
[INFO] [stdout] 400 |             WM_CLOSE => PostQuitMessage(0),
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:401:25
[INFO] [stdout]     |
[INFO] [stdout] 401 |             _ => return DefWindowProcW(window, message, wparam, lparam),
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:403:9
[INFO] [stdout]     |
[INFO] [stdout] 403 |         LRESULT(0)
[INFO] [stdout]     |         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HKL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:414:39
[INFO] [stdout]     |
[INFO] [stdout] 414 |             assert!(is_chinese_layout(HKL(layout as _)));
[INFO] [stdout]     |                                       ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HKL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:417:40
[INFO] [stdout]     |
[INFO] [stdout] 417 |             assert!(!is_chinese_layout(HKL(layout as _)));
[INFO] [stdout]     |                                        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `windows` in this scope
[INFO] [stdout]   --> src/main.rs:20:17
[INFO] [stdout]    |
[INFO] [stdout] 20 |                 windows::Win32::UI::WindowsAndMessaging::MB_ICONERROR,
[INFO] [stdout]    |                 ^^^^^^^ use of unresolved module or unlinked crate `windows`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `windows`, use `cargo add windows` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stdout]   --> src/osd.rs:40:16
[INFO] [stdout]    |
[INFO] [stdout] 40 |             if RegisterClassW(&class) == 0 {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stdout]   --> src/osd.rs:43:26
[INFO] [stdout]    |
[INFO] [stdout] 43 |             let window = CreateWindowExW(
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/app.rs:22:19
[INFO] [stdout]    |
[INFO] [stdout] 22 | const TRAY: u32 = WM_APP + 10;
[INFO] [stdout]    |                   ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `NOTIFYICONDATAW` in this scope
[INFO] [stdout]   --> src/app.rs:38:11
[INFO] [stdout]    |
[INFO] [stdout] 38 |     tray: NOTIFYICONDATAW,
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/osd.rs:61:33
[INFO] [stdout]    |
[INFO] [stdout] 61 |             let result = (|| -> Result<Self> {
[INFO] [stdout]    |                                 ^^^^^^ ---- supplied 1 generic argument
[INFO] [stdout]    |                                 |
[INFO] [stdout]    |                                 expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 61 |             let result = (|| -> Result<Self, E> {
[INFO] [stdout]    |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ERROR_ALREADY_EXISTS` in this scope
[INFO] [stdout]   --> src/app.rs:48:30
[INFO] [stdout]    |
[INFO] [stdout] 48 |         if GetLastError() == ERROR_ALREADY_EXISTS {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stdout]   --> src/app.rs:53:21
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let class = WNDCLASSW {
[INFO] [stdout]    |                     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/app.rs:60:24
[INFO] [stdout]    |
[INFO] [stdout] 60 |             return Err(Error::from_thread());
[INFO] [stdout]    |                        ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `COLORREF` in this scope
[INFO] [stdout]   --> src/osd.rs:62:52
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 SetLayeredWindowAttributes(window, COLORREF(0), 255, LWA_ALPHA)?;
[INFO] [stdout]    |                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOOLWINDOW` in this scope
[INFO] [stdout]   --> src/app.rs:63:13
[INFO] [stdout]    |
[INFO] [stdout] 63 |             WS_EX_TOOLWINDOW,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLayeredWindowAttributes` in this scope
[INFO] [stdout]   --> src/osd.rs:62:17
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 SetLayeredWindowAttributes(window, COLORREF(0), 255, LWA_ALPHA)?;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_OVERLAPPED` in this scope
[INFO] [stdout]   --> src/app.rs:66:13
[INFO] [stdout]    |
[INFO] [stdout] 66 |             WS_OVERLAPPED,
[INFO] [stdout]    |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `NOTIFYICONDATAW` in this scope
[INFO] [stdout]   --> src/app.rs:80:28
[INFO] [stdout]    |
[INFO] [stdout] 80 |             let mut tray = NOTIFYICONDATAW {
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmSetWindowAttribute` in this scope
[INFO] [stdout]   --> src/osd.rs:63:17
[INFO] [stdout]    |
[INFO] [stdout] 63 |                 DwmSetWindowAttribute(
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `NOTIFYICONDATAW` in this scope
[INFO] [stdout]   --> src/app.rs:81:35
[INFO] [stdout]    |
[INFO] [stdout] 81 |                 cbSize: size_of::<NOTIFYICONDATAW>() as u32,
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub fn run<NOTIFYICONDATAW>() -> Result<()> {
[INFO] [stdout]    |           +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmSetWindowAttribute` in this scope
[INFO] [stdout]   --> src/osd.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 DwmSetWindowAttribute(
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmExtendFrameIntoClientArea` in this scope
[INFO] [stdout]   --> src/osd.rs:75:17
[INFO] [stdout]    |
[INFO] [stdout] 75 |                 DwmExtendFrameIntoClientArea(
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DWriteCreateFactory` in this scope
[INFO] [stdout]   --> src/osd.rs:84:45
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 let write: IDWriteFactory = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED)?;
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIF_ICON` in this scope
[INFO] [stdout]   --> src/app.rs:84:25
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 uFlags: NIF_ICON | NIF_MESSAGE | NIF_TIP,
[INFO] [stdout]    |                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/osd.rs:85:53
[INFO] [stdout]    |
[INFO] [stdout] 85 |                 let text_format = |size, weight| -> Result<IDWriteTextFormat> {
[INFO] [stdout]    |                                                     ^^^^^^ ----------------- supplied 1 generic argument
[INFO] [stdout]    |                                                     |
[INFO] [stdout]    |                                                     expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 85 |                 let text_format = |size, weight| -> Result<IDWriteTextFormat, E> {
[INFO] [stdout]    |                                                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIF_MESSAGE` in this scope
[INFO] [stdout]   --> src/app.rs:84:36
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 uFlags: NIF_ICON | NIF_MESSAGE | NIF_TIP,
[INFO] [stdout]    |                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIF_TIP` in this scope
[INFO] [stdout]   --> src/app.rs:84:50
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 uFlags: NIF_ICON | NIF_MESSAGE | NIF_TIP,
[INFO] [stdout]    |                                                  ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIM_ADD` in this scope
[INFO] [stdout]   --> src/app.rs:90:35
[INFO] [stdout]    |
[INFO] [stdout] 90 |             if !Shell_NotifyIconW(NIM_ADD, &tray).as_bool() {
[INFO] [stdout]    |                                   ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/app.rs:92:28
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 return Err(Error::new(E_FAIL, "Could not add the tray icon"));
[INFO] [stdout]    |                            ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `E_FAIL` in this scope
[INFO] [stdout]   --> src/app.rs:92:39
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 return Err(Error::new(E_FAIL, "Could not add the tray icon"));
[INFO] [stdout]    |                                       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]    --> src/app.rs:107:38
[INFO] [stdout]     |
[INFO] [stdout] 107 |                     -1 => return Err(Error::from_thread()),
[INFO] [stdout]     |                                      ^^^^^ use of undeclared type `Error`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::error::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::fmt::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::io::Error;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIM_DELETE` in this scope
[INFO] [stdout]    --> src/app.rs:123:43
[INFO] [stdout]     |
[INFO] [stdout] 123 |                 let _ = Shell_NotifyIconW(NIM_DELETE, &app.tray);
[INFO] [stdout]     |                                           ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `MENU_ITEM_FLAGS` in this scope
[INFO] [stdout]    --> src/app.rs:133:28
[INFO] [stdout]     |
[INFO] [stdout] 133 | fn checked(value: bool) -> MENU_ITEM_FLAGS {
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_CHECKED` in this scope
[INFO] [stdout]    --> src/app.rs:134:16
[INFO] [stdout]     |
[INFO] [stdout] 134 |     if value { MF_CHECKED } else { MF_UNCHECKED }
[INFO] [stdout]     |                ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_UNCHECKED` in this scope
[INFO] [stdout]    --> src/app.rs:134:36
[INFO] [stdout]     |
[INFO] [stdout] 134 |     if value { MF_CHECKED } else { MF_UNCHECKED }
[INFO] [stdout]     |                                    ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                 let _ = DestroyWindow(window);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/app.rs:137:29
[INFO] [stdout]     |
[INFO] [stdout] 137 | fn register_session(window: HWND) -> bool {
[INFO] [stdout]     |                             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NOTIFY_FOR_THIS_SESSION` in this scope
[INFO] [stdout]    --> src/app.rs:141:54
[INFO] [stdout]     |
[INFO] [stdout] 141 |         match WTSRegisterSessionNotification(window, NOTIFY_FOR_THIS_SESSION) {
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/app.rs:156:33
[INFO] [stdout]     |
[INFO] [stdout] 156 | fn report_setting_error(window: HWND, result: Result<()>) {
[INFO] [stdout]     |                                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `POINT` in this scope
[INFO] [stdout]    --> src/osd.rs:126:34
[INFO] [stdout]     |
[INFO] [stdout] 126 |                 MonitorFromPoint(POINT::default(), MONITOR_DEFAULTTOPRIMARY),
[INFO] [stdout]     |                                  ^^^^^ use of undeclared type `POINT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MonitorFromPoint` in this scope
[INFO] [stdout]    --> src/osd.rs:126:17
[INFO] [stdout]     |
[INFO] [stdout] 126 |                 MonitorFromPoint(POINT::default(), MONITOR_DEFAULTTOPRIMARY),
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MB_OK` in this scope
[INFO] [stdout]    --> src/app.rs:161:61
[INFO] [stdout]     |
[INFO] [stdout] 161 |             MessageBoxW(Some(window), &text, w!("WinCaps"), MB_OK | MB_ICONERROR);
[INFO] [stdout]     |                                                             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMonitorInfoW` in this scope
[INFO] [stdout]    --> src/osd.rs:125:13
[INFO] [stdout]     |
[INFO] [stdout] 125 |             GetMonitorInfoW(
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MB_ICONERROR` in this scope
[INFO] [stdout]    --> src/app.rs:161:69
[INFO] [stdout]     |
[INFO] [stdout] 161 |             MessageBoxW(Some(window), &text, w!("WinCaps"), MB_OK | MB_ICONERROR);
[INFO] [stdout]     |                                                                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `NOTIFYICONDATAW` in this scope
[INFO] [stdout]    --> src/app.rs:166:23
[INFO] [stdout]     |
[INFO] [stdout] 166 | fn tooltip(tray: &mut NOTIFYICONDATAW, paused: bool) {
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope
[INFO] [stdout]    --> src/osd.rs:133:13
[INFO] [stdout]     |
[INFO] [stdout] 133 |             SetWindowPos(
[INFO] [stdout]     |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HICON` in this scope
[INFO] [stdout]    --> src/app.rs:178:26
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn tray_icon() -> Result<HICON> {
[INFO] [stdout]     |                          ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn tray_icon<HICON>() -> Result<HICON> {
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `IMAGE_ICON` in this scope
[INFO] [stdout]    --> src/app.rs:185:13
[INFO] [stdout]     |
[INFO] [stdout] 185 |             IMAGE_ICON,
[INFO] [stdout]     |             ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SM_CXSMICON` in this scope
[INFO] [stdout]    --> src/app.rs:186:30
[INFO] [stdout]     |
[INFO] [stdout] 186 |             GetSystemMetrics(SM_CXSMICON),
[INFO] [stdout]     |                              ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SM_CYSMICON` in this scope
[INFO] [stdout]    --> src/app.rs:187:30
[INFO] [stdout]     |
[INFO] [stdout] 187 |             GetSystemMetrics(SM_CYSMICON),
[INFO] [stdout]     |                              ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `LR_DEFAULTCOLOR` in this scope
[INFO] [stdout]    --> src/app.rs:188:13
[INFO] [stdout]     |
[INFO] [stdout] 188 |             LR_DEFAULTCOLOR,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/app.rs:195:13
[INFO] [stdout]     |
[INFO] [stdout] 195 |     window: HWND,
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `WPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:197:13
[INFO] [stdout]     |
[INFO] [stdout] 197 |     wparam: WPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope
[INFO] [stdout]    --> src/osd.rs:144:13
[INFO] [stdout]     |
[INFO] [stdout] 144 |             SetWindowPos(
[INFO] [stdout]     |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:198:13
[INFO] [stdout]     |
[INFO] [stdout] 198 |     lparam: LPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:153:21
[INFO] [stdout]     |
[INFO] [stdout] 153 |             let _ = ShowWindow(self.window, SW_SHOWNOACTIVATE);
[INFO] [stdout]     |                     ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LRESULT` in this scope
[INFO] [stdout]    --> src/app.rs:199:6
[INFO] [stdout]     |
[INFO] [stdout] 199 | ) -> LRESULT {
[INFO] [stdout]     |      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_RBUTTONUP` in this scope
[INFO] [stdout]    --> src/app.rs:210:40
[INFO] [stdout]     |
[INFO] [stdout] 210 |             TRAY if lparam.0 as u32 == WM_RBUTTONUP || lparam.0 as u32 == WM_CONTEXTMENU => {
[INFO] [stdout]     |                                        ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_CONTEXTMENU` in this scope
[INFO] [stdout]    --> src/app.rs:210:75
[INFO] [stdout]     |
[INFO] [stdout] 210 |             TRAY if lparam.0 as u32 == WM_RBUTTONUP || lparam.0 as u32 == WM_CONTEXTMENU => {
[INFO] [stdout]     |                                                                           ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:218:25
[INFO] [stdout]     |
[INFO] [stdout] 218 |                         MF_STRING,
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:157:22
[INFO] [stdout]     |
[INFO] [stdout] 157 |                 Some(WPARAM(1)),
[INFO] [stdout]     |                      ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:227:33
[INFO] [stdout]     |
[INFO] [stdout] 227 | ...                   MF_STRING | checked(value == hold_ms),
[INFO] [stdout]     |                       ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_POPUP` in this scope
[INFO] [stdout]    --> src/app.rs:232:51
[INFO] [stdout]     |
[INFO] [stdout] 232 |                         let _ = AppendMenuW(menu, MF_POPUP, holds.0 as usize, w!("Hold threshold"));
[INFO] [stdout]     |                                                   ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:158:22
[INFO] [stdout]     |
[INFO] [stdout] 158 |                 Some(LPARAM(-1)),
[INFO] [stdout]     |                      ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:236:25
[INFO] [stdout]     |
[INFO] [stdout] 236 |                         MF_STRING | checked(notifications),
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendMessageW` in this scope
[INFO] [stdout]    --> src/osd.rs:154:21
[INFO] [stdout]     |
[INFO] [stdout] 154 |             let _ = SendMessageW(
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:242:40
[INFO] [stdout]     |
[INFO] [stdout] 242 |                         Ok(enabled) => MF_STRING | checked(enabled),
[INFO] [stdout]     |                                        ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:243:35
[INFO] [stdout]     |
[INFO] [stdout] 243 |                         Err(_) => MF_STRING | MF_GRAYED,
[INFO] [stdout]     |                                   ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_GRAYED` in this scope
[INFO] [stdout]    --> src/app.rs:243:47
[INFO] [stdout]     |
[INFO] [stdout] 243 |                         Err(_) => MF_STRING | MF_GRAYED,
[INFO] [stdout]     |                                               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_SEPARATOR` in this scope
[INFO] [stdout]    --> src/app.rs:246:47
[INFO] [stdout]     |
[INFO] [stdout] 246 |                     let _ = AppendMenuW(menu, MF_SEPARATOR, 0, None);
[INFO] [stdout]     |                                               ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MF_STRING` in this scope
[INFO] [stdout]    --> src/app.rs:247:47
[INFO] [stdout]     |
[INFO] [stdout] 247 |                     let _ = AppendMenuW(menu, MF_STRING, EXIT, w!("Exit"));
[INFO] [stdout]     |                                               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TPM_RETURNCMD` in this scope
[INFO] [stdout]    --> src/app.rs:253:25
[INFO] [stdout]     |
[INFO] [stdout] 253 |                         TPM_RETURNCMD | TPM_NONOTIFY | TPM_RIGHTBUTTON,
[INFO] [stdout]     |                         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TPM_NONOTIFY` in this scope
[INFO] [stdout]    --> src/app.rs:253:41
[INFO] [stdout]     |
[INFO] [stdout] 253 |                         TPM_RETURNCMD | TPM_NONOTIFY | TPM_RIGHTBUTTON,
[INFO] [stdout]     |                                         ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TPM_RIGHTBUTTON` in this scope
[INFO] [stdout]    --> src/app.rs:253:56
[INFO] [stdout]     |
[INFO] [stdout] 253 |                         TPM_RETURNCMD | TPM_NONOTIFY | TPM_RIGHTBUTTON,
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_COMMAND` in this scope
[INFO] [stdout]    --> src/app.rs:263:25
[INFO] [stdout]     |
[INFO] [stdout] 263 |                         WM_COMMAND,
[INFO] [stdout]     |                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_NULL` in this scope
[INFO] [stdout]    --> src/app.rs:267:56
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                        ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmFlush` in this scope
[INFO] [stdout]    --> src/osd.rs:161:58
[INFO] [stdout]     |
[INFO] [stdout] 161 |             if let Err(error) = self.draw().and_then(|_| DwmFlush()) {
[INFO] [stdout]     |                                                          ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIM_MODIFY` in this scope
[INFO] [stdout]    --> src/app.rs:276:47
[INFO] [stdout]     |
[INFO] [stdout] 276 |                     let _ = Shell_NotifyIconW(NIM_MODIFY, &app.tray);
[INFO] [stdout]     |                                               ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope
[INFO] [stdout]    --> src/osd.rs:166:13
[INFO] [stdout]     |
[INFO] [stdout] 166 |             SetWindowLongPtrW(self.window, GWLP_USERDATA, GetTickCount() as isize);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIM_ADD` in this scope
[INFO] [stdout]    --> src/app.rs:342:51
[INFO] [stdout]     |
[INFO] [stdout] 342 |                         let _ = Shell_NotifyIconW(NIM_ADD, &app.tray);
[INFO] [stdout]     |                                                   ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetTimer` in this scope
[INFO] [stdout]    --> src/osd.rs:167:16
[INFO] [stdout]     |
[INFO] [stdout] 167 |             if SetTimer(Some(self.window), 1, DISPLAY_MS, None) == 0 {
[INFO] [stdout]     |                ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/keyboard.rs:12:31
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const CAPS_CHANGED: u32 = WM_APP + 1;
[INFO] [stdout]    |                               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/keyboard.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | const PAUSE: u32 = WM_APP + 2;
[INFO] [stdout]    |                    ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/keyboard.rs:14:22
[INFO] [stdout]    |
[INFO] [stdout] 14 | const EXECUTE: u32 = WM_APP + 3;
[INFO] [stdout]    |                      ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/keyboard.rs:15:23
[INFO] [stdout]    |
[INFO] [stdout] 15 | const SET_HOLD: u32 = WM_APP + 5;
[INFO] [stdout]    |                       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindowVisible` in this scope
[INFO] [stdout]    --> src/osd.rs:176:22
[INFO] [stdout]     |
[INFO] [stdout] 176 |         if !unsafe { IsWindowVisible(self.window) }.as_bool() {
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/keyboard.rs:16:20
[INFO] [stdout]    |
[INFO] [stdout] 16 | const RESET: u32 = WM_APP + 6;
[INFO] [stdout]    |                    ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `RECT` in this scope
[INFO] [stdout]    --> src/osd.rs:203:30
[INFO] [stdout]     |
[INFO] [stdout] 203 |             let mut client = RECT::default();
[INFO] [stdout]     |                              ^^^^ use of undeclared type `RECT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope
[INFO] [stdout]    --> src/osd.rs:204:13
[INFO] [stdout]     |
[INFO] [stdout] 204 |             GetClientRect(self.window, &mut client)?;
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegGetValueW` in this scope
[INFO] [stdout]    --> src/osd.rs:217:21
[INFO] [stdout]     |
[INFO] [stdout] 217 |             let _ = RegGetValueW(
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `BOOL` in this scope
[INFO] [stdout]    --> src/osd.rs:226:24
[INFO] [stdout]     |
[INFO] [stdout] 226 |             let dark = BOOL::from(light == 0);
[INFO] [stdout]     |                        ^^^^ use of undeclared type `BOOL`
[INFO] [stdout]     |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 226 -             let dark = BOOL::from(light == 0);
[INFO] [stdout] 226 +             let dark = bool::from(light == 0);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmSetWindowAttribute` in this scope
[INFO] [stdout]    --> src/osd.rs:227:21
[INFO] [stdout]     |
[INFO] [stdout] 227 |             let _ = DwmSetWindowAttribute(
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:24:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |     window: HWND,
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS` in this scope
[INFO] [stdout]    --> src/osd.rs:242:17
[INFO] [stdout]     |
[INFO] [stdout] 242 |                 SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS::default(),
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SystemParametersInfoW` in this scope
[INFO] [stdout]    --> src/osd.rs:238:21
[INFO] [stdout]     |
[INFO] [stdout] 238 |             let _ = SystemParametersInfoW(
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `D2D1_COLOR_F` in this scope
[INFO] [stdout]    --> src/osd.rs:262:17
[INFO] [stdout]     |
[INFO] [stdout] 262 |                 D2D1_COLOR_F::default()
[INFO] [stdout]     |                 ^^^^^^^^^^^^ use of undeclared type `D2D1_COLOR_F`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `BOOL` in this scope
[INFO] [stdout]    --> src/osd.rs:294:23
[INFO] [stdout]     |
[INFO] [stdout] 294 |         let enabled = BOOL::from(enabled);
[INFO] [stdout]     |                       ^^^^ use of undeclared type `BOOL`
[INFO] [stdout]     |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 294 -         let enabled = BOOL::from(enabled);
[INFO] [stdout] 294 +         let enabled = bool::from(enabled);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmSetWindowAttribute` in this scope
[INFO] [stdout]    --> src/osd.rs:297:13
[INFO] [stdout]     |
[INFO] [stdout] 297 |             DwmSetWindowAttribute(
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     ui: HWND,
[INFO] [stdout]    |         ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/osd.rs:309:21
[INFO] [stdout]     |
[INFO] [stdout] 309 |             let _ = KillTimer(Some(self.window), 1);
[INFO] [stdout]     |                     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:310:21
[INFO] [stdout]     |
[INFO] [stdout] 310 |             let _ = ShowWindow(self.window, SW_HIDE);
[INFO] [stdout]     |                     ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:27:17
[INFO] [stdout]    |
[INFO] [stdout] 27 |     foreground: HWND,
[INFO] [stdout]    |                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:319:21
[INFO] [stdout]     |
[INFO] [stdout] 319 |             let _ = DestroyWindow(self.window);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:35:13
[INFO] [stdout]    |
[INFO] [stdout] 35 |     window: HWND,
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSysColor` in this scope
[INFO] [stdout]    --> src/osd.rs:326:26
[INFO] [stdout]     |
[INFO] [stdout] 326 |     let color = unsafe { GetSysColor(index) };
[INFO] [stdout]     |                          ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:40:22
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fn start(ui: HWND, hold_ms: u32) -> Result<Self> {
[INFO] [stdout]    |                      ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `PAINTSTRUCT` in this scope
[INFO] [stdout]    --> src/osd.rs:345:33
[INFO] [stdout]     |
[INFO] [stdout] 345 |                 let mut paint = PAINTSTRUCT::default();
[INFO] [stdout]     |                                 ^^^^^^^^^^^ use of undeclared type `PAINTSTRUCT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BeginPaint` in this scope
[INFO] [stdout]    --> src/osd.rs:346:17
[INFO] [stdout]     |
[INFO] [stdout] 346 |                 BeginPaint(window, &mut paint);
[INFO] [stdout]     |                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:46:44
[INFO] [stdout]    |
[INFO] [stdout] 46 |                 let setup = (|| -> Result<(HWND, HHOOK)> {
[INFO] [stdout]    |                                            ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 39 | impl<HWND> Worker {
[INFO] [stdout]    |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EndPaint` in this scope
[INFO] [stdout]    --> src/osd.rs:347:25
[INFO] [stdout]     |
[INFO] [stdout] 347 |                 let _ = EndPaint(window, &paint);
[INFO] [stdout]     |                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:348:36
[INFO] [stdout]     |
[INFO] [stdout] 348 |                 if let Ok(owner) = GetWindow(window, GW_OWNER) {
[INFO] [stdout]     |                                    ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HHOOK` in this scope
[INFO] [stdout]   --> src/keyboard.rs:46:50
[INFO] [stdout]    |
[INFO] [stdout] 46 |                 let setup = (|| -> Result<(HWND, HHOOK)> {
[INFO] [stdout]    |                                                  ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 39 | impl<HHOOK> Worker {
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:48:33
[INFO] [stdout]    |
[INFO] [stdout] 48 |                     let class = WNDCLASSW {
[INFO] [stdout]    |                                 ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:349:63
[INFO] [stdout]     |
[INFO] [stdout] 349 |                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                               ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 349 -                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), LPARAM(0));
[INFO] [stdout] 349 +                     let _ = PostMessageW(Some(owner), REDRAW, wparam(0), LPARAM(0));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/keyboard.rs:55:36
[INFO] [stdout]    |
[INFO] [stdout] 55 |                         return Err(Error::from_thread());
[INFO] [stdout]    |                                    ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HWND_MESSAGE` in this scope
[INFO] [stdout]   --> src/keyboard.rs:66:30
[INFO] [stdout]    |
[INFO] [stdout] 66 |                         Some(HWND_MESSAGE),
[INFO] [stdout]    |                              ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WH_KEYBOARD_LL` in this scope
[INFO] [stdout]   --> src/keyboard.rs:83:45
[INFO] [stdout]    |
[INFO] [stdout] 83 |                     match SetWindowsHookExW(WH_KEYBOARD_LL, Some(hook), Some(instance.into()), 0) {
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]    --> src/keyboard.rs:110:26
[INFO] [stdout]     |
[INFO] [stdout] 110 |             .map_err(|_| Error::new(E_FAIL, "Keyboard thread did not start"))??;
[INFO] [stdout]     |                          ^^^^^ use of undeclared type `Error`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::error::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::fmt::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::io::Error;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `E_FAIL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:110:37
[INFO] [stdout]     |
[INFO] [stdout] 110 |             .map_err(|_| Error::new(E_FAIL, "Keyboard thread did not start"))??;
[INFO] [stdout]     |                                     ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_CLOSE` in this scope
[INFO] [stdout]    --> src/keyboard.rs:148:53
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let _ = PostMessageW(Some(self.window), WM_CLOSE, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:159:10
[INFO] [stdout]     |
[INFO] [stdout] 159 |         [VK_CONTROL, VK_SHIFT, VK_MENU, VK_LWIN, VK_RWIN]
[INFO] [stdout]     |          ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_SHIFT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:159:22
[INFO] [stdout]     |
[INFO] [stdout] 159 |         [VK_CONTROL, VK_SHIFT, VK_MENU, VK_LWIN, VK_RWIN]
[INFO] [stdout]     |                      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_MENU` in this scope
[INFO] [stdout]    --> src/keyboard.rs:159:32
[INFO] [stdout]     |
[INFO] [stdout] 159 |         [VK_CONTROL, VK_SHIFT, VK_MENU, VK_LWIN, VK_RWIN]
[INFO] [stdout]     |                                ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_LWIN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:159:41
[INFO] [stdout]     |
[INFO] [stdout] 159 |         [VK_CONTROL, VK_SHIFT, VK_MENU, VK_LWIN, VK_RWIN]
[INFO] [stdout]     |                                         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_RWIN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:159:50
[INFO] [stdout]     |
[INFO] [stdout] 159 |         [VK_CONTROL, VK_SHIFT, VK_MENU, VK_LWIN, VK_RWIN]
[INFO] [stdout]     |                                                  ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:349:74
[INFO] [stdout]     |
[INFO] [stdout] 349 |                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                                          ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 349 -                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), LPARAM(0));
[INFO] [stdout] 349 +                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), lparam(0));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/osd.rs:349:29
[INFO] [stdout]     |
[INFO] [stdout] 349 |                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CAPITAL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:167:26
[INFO] [stdout]     |
[INFO] [stdout] 167 |     unsafe { GetKeyState(VK_CAPITAL.0 as i32) & 1 != 0 }
[INFO] [stdout]     |                          ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:351:17
[INFO] [stdout]     |
[INFO] [stdout] 351 |                 LRESULT(0)
[INFO] [stdout]     |                 ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:170:26
[INFO] [stdout]     |
[INFO] [stdout] 170 | fn chinese_input(window: HWND) -> bool {
[INFO] [stdout]     |                          ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope
[INFO] [stdout]    --> src/osd.rs:355:52
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     && GetTickCount().wrapping_sub(GetWindowLongPtrW(window, GWLP_USERDATA) as u32)
[INFO] [stdout]     |                                                    ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HKL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:178:30
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn is_chinese_layout(layout: HKL) -> bool {
[INFO] [stdout]     |                              ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:358:28
[INFO] [stdout]     |
[INFO] [stdout] 358 |                     return LRESULT(0);
[INFO] [stdout]     |                            ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/osd.rs:360:25
[INFO] [stdout]     |
[INFO] [stdout] 360 |                 let _ = KillTimer(Some(window), 1);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:183:51
[INFO] [stdout]     |
[INFO] [stdout] 183 | unsafe extern "system" fn hook(code: i32, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]     |                                                   ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:361:25
[INFO] [stdout]     |
[INFO] [stdout] 361 |                 let _ = ShowWindow(window, SW_HIDE);
[INFO] [stdout]     |                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:183:67
[INFO] [stdout]     |
[INFO] [stdout] 183 | unsafe extern "system" fn hook(code: i32, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]     |                                                                   ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:362:17
[INFO] [stdout]     |
[INFO] [stdout] 362 |                 LRESULT(0)
[INFO] [stdout]     |                 ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LRESULT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:183:78
[INFO] [stdout]     |
[INFO] [stdout] 183 | unsafe extern "system" fn hook(code: i32, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
[INFO] [stdout]     |                                                                              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HC_ACTION` in this scope
[INFO] [stdout]    --> src/keyboard.rs:186:20
[INFO] [stdout]     |
[INFO] [stdout] 186 |         if code != HC_ACTION as i32 {
[INFO] [stdout]     |                    ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `KBDLLHOOKSTRUCT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:189:43
[INFO] [stdout]     |
[INFO] [stdout] 189 |         let event = &*(lparam.0 as *const KBDLLHOOKSTRUCT);
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:364:33
[INFO] [stdout]     |
[INFO] [stdout] 364 |             WM_MOUSEACTIVATE => LRESULT(MA_NOACTIVATE as isize),
[INFO] [stdout]     |                                 ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_KEYDOWN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:193:39
[INFO] [stdout]     |
[INFO] [stdout] 193 |         let down = wparam.0 as u32 == WM_KEYDOWN || wparam.0 as u32 == WM_SYSKEYDOWN;
[INFO] [stdout]     |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_SYSKEYDOWN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:193:72
[INFO] [stdout]     |
[INFO] [stdout] 193 |         let down = wparam.0 as u32 == WM_KEYDOWN || wparam.0 as u32 == WM_SYSKEYDOWN;
[INFO] [stdout]     |                                                                        ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CAPITAL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:196:32
[INFO] [stdout]     |
[INFO] [stdout] 196 |             if event.vkCode != VK_CAPITAL.0 as u32 {
[INFO] [stdout]     |                                ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_LCONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:199:25
[INFO] [stdout]     |
[INFO] [stdout] 199 |                         VK_LCONTROL,
[INFO] [stdout]     |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_RCONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:200:25
[INFO] [stdout]     |
[INFO] [stdout] 200 |                         VK_RCONTROL,
[INFO] [stdout]     |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:366:62
[INFO] [stdout]     |
[INFO] [stdout] 366 |             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), LPARAM(-1)),
[INFO] [stdout]     |                                                              ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 366 -             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), LPARAM(-1)),
[INFO] [stdout] 366 +             WM_NCACTIVATE => DefWindowProcW(window, message, wparam(1), LPARAM(-1)),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:366:73
[INFO] [stdout]     |
[INFO] [stdout] 366 |             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), LPARAM(-1)),
[INFO] [stdout]     |                                                                         ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 366 -             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), LPARAM(-1)),
[INFO] [stdout] 366 +             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), lparam(-1)),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]    --> src/osd.rs:366:30
[INFO] [stdout]     |
[INFO] [stdout] 366 |             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), LPARAM(-1)),
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:367:29
[INFO] [stdout]     |
[INFO] [stdout] 367 |             WM_NCHITTEST => LRESULT(HTTRANSPARENT as isize),
[INFO] [stdout]     |                             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]    --> src/osd.rs:368:18
[INFO] [stdout]     |
[INFO] [stdout] 368 |             _ => DefWindowProcW(window, message, wparam, lparam),
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_LSHIFT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:201:25
[INFO] [stdout]     |
[INFO] [stdout] 201 |                         VK_LSHIFT,
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_RSHIFT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:202:25
[INFO] [stdout]     |
[INFO] [stdout] 202 |                         VK_RSHIFT,
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_LMENU` in this scope
[INFO] [stdout]    --> src/keyboard.rs:203:25
[INFO] [stdout]     |
[INFO] [stdout] 203 |                         VK_LMENU,
[INFO] [stdout]     |                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `D2D1CreateFactory` in this scope
[INFO] [stdout]    --> src/osd.rs:376:37
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let factory: ID2D1Factory = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, None)?;
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_RMENU` in this scope
[INFO] [stdout]    --> src/keyboard.rs:204:25
[INFO] [stdout]     |
[INFO] [stdout] 204 |                         VK_RMENU,
[INFO] [stdout]     |                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_LWIN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:205:25
[INFO] [stdout]     |
[INFO] [stdout] 205 |                         VK_LWIN,
[INFO] [stdout]     |                         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_RWIN` in this scope
[INFO] [stdout]    --> src/keyboard.rs:206:25
[INFO] [stdout]     |
[INFO] [stdout] 206 |                         VK_RWIN,
[INFO] [stdout]     |                         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:261:18
[INFO] [stdout]     |
[INFO] [stdout] 261 | fn queue(window: HWND, foreground: HWND, action: Action) {
[INFO] [stdout]     |                  ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:261:36
[INFO] [stdout]     |
[INFO] [stdout] 261 | fn queue(window: HWND, foreground: HWND, action: Action) {
[INFO] [stdout]     |                                    ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `VIRTUAL_KEY` in this scope
[INFO] [stdout]    --> src/keyboard.rs:278:18
[INFO] [stdout]     |
[INFO] [stdout] 278 | fn send(keys: &[(VIRTUAL_KEY, bool)]) -> bool {
[INFO] [stdout]     |                  ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `INPUT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:279:21
[INFO] [stdout]     |
[INFO] [stdout] 279 |     let inputs: Vec<INPUT> = keys
[INFO] [stdout]     |                     ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 278 | fn send<INPUT>(keys: &[(VIRTUAL_KEY, bool)]) -> bool {
[INFO] [stdout]     |        +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `INPUT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:281:27
[INFO] [stdout]     |
[INFO] [stdout] 281 |         .map(|&(key, up)| INPUT {
[INFO] [stdout]     |                           ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `INPUT_KEYBOARD` in this scope
[INFO] [stdout]    --> src/keyboard.rs:282:21
[INFO] [stdout]     |
[INFO] [stdout] 282 |             r#type: INPUT_KEYBOARD,
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `INPUT_0` in this scope
[INFO] [stdout]    --> src/keyboard.rs:283:24
[INFO] [stdout]     |
[INFO] [stdout] 283 |             Anonymous: INPUT_0 {
[INFO] [stdout]     |                        ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `KEYBDINPUT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:284:21
[INFO] [stdout]     |
[INFO] [stdout] 284 |                 ki: KEYBDINPUT {
[INFO] [stdout]     |                     ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `KEYEVENTF_KEYUP` in this scope
[INFO] [stdout]    --> src/keyboard.rs:287:25
[INFO] [stdout]     |
[INFO] [stdout] 287 |                         KEYEVENTF_KEYUP
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegGetValueW` in this scope
[INFO] [stdout]   --> src/settings.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |         RegGetValueW(
[INFO] [stdout]    |         ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `INPUT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:299:49
[INFO] [stdout]     |
[INFO] [stdout] 299 |         let sent = SendInput(&inputs, size_of::<INPUT>() as i32) as usize;
[INFO] [stdout]     |                                                 ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 278 | fn send<INPUT>(keys: &[(VIRTUAL_KEY, bool)]) -> bool {
[INFO] [stdout]     |        +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:305:13
[INFO] [stdout]     |
[INFO] [stdout] 305 |     window: HWND,
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegSetKeyValueW` in this scope
[INFO] [stdout]   --> src/settings.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |         RegSetKeyValueW(
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:307:13
[INFO] [stdout]     |
[INFO] [stdout] 307 |     wparam: WPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegGetValueW` in this scope
[INFO] [stdout]   --> src/settings.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |         RegGetValueW(
[INFO] [stdout]    |         ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:308:13
[INFO] [stdout]     |
[INFO] [stdout] 308 |     lparam: LPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LRESULT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:309:6
[INFO] [stdout]     |
[INFO] [stdout] 309 | ) -> LRESULT {
[INFO] [stdout]     |      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegDeleteKeyValueW` in this scope
[INFO] [stdout]   --> src/settings.rs:99:26
[INFO] [stdout]    |
[INFO] [stdout] 99 |             let status = RegDeleteKeyValueW(HKEY_CURRENT_USER, RUN, w!("WinCaps"));
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:343:30
[INFO] [stdout]     |
[INFO] [stdout] 343 | ...                   (VK_CONTROL, false),
[INFO] [stdout]     |                        ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_SPACE` in this scope
[INFO] [stdout]    --> src/keyboard.rs:344:30
[INFO] [stdout]     |
[INFO] [stdout] 344 | ...                   (VK_SPACE, false),
[INFO] [stdout]     |                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_SPACE` in this scope
[INFO] [stdout]    --> src/keyboard.rs:345:30
[INFO] [stdout]     |
[INFO] [stdout] 345 | ...                   (VK_SPACE, true),
[INFO] [stdout]     |                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:346:30
[INFO] [stdout]     |
[INFO] [stdout] 346 | ...                   (VK_CONTROL, true),
[INFO] [stdout]     |                        ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_SPACE` in this scope
[INFO] [stdout]    --> src/keyboard.rs:349:37
[INFO] [stdout]     |
[INFO] [stdout] 349 | ...                   send(&[(VK_SPACE, true), (VK_CONTROL, true)]);
[INFO] [stdout]     |                               ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CONTROL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:349:55
[INFO] [stdout]     |
[INFO] [stdout] 349 | ...                   send(&[(VK_SPACE, true), (VK_CONTROL, true)]);
[INFO] [stdout]     |                                                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CAPITAL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:353:60
[INFO] [stdout]     |
[INFO] [stdout] 353 |                         if caps_on() != desired && send(&[(VK_CAPITAL, false), (VK_CAPITAL, true)])
[INFO] [stdout]     |                                                            ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `VK_CAPITAL` in this scope
[INFO] [stdout]    --> src/keyboard.rs:353:81
[INFO] [stdout]     |
[INFO] [stdout] 353 |                         if caps_on() != desired && send(&[(VK_CAPITAL, false), (VK_CAPITAL, true)])
[INFO] [stdout]     |                                                                                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_APP` in this scope
[INFO] [stdout]   --> src/osd.rs:18:25
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub const REDRAW: u32 = WM_APP + 4;
[INFO] [stdout]    |                         ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/osd.rs:23:13
[INFO] [stdout]    |
[INFO] [stdout] 23 |     window: HWND,
[INFO] [stdout]    |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ID2D1HwndRenderTarget` in this scope
[INFO] [stdout]   --> src/osd.rs:24:20
[INFO] [stdout]    |
[INFO] [stdout] 24 |     target: Option<ID2D1HwndRenderTarget>,
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub struct Osd<ID2D1HwndRenderTarget> {
[INFO] [stdout]    |               +++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `IDWriteTextFormat` in this scope
[INFO] [stdout]   --> src/osd.rs:25:15
[INFO] [stdout]    |
[INFO] [stdout] 25 |     formats: [IDWriteTextFormat; 3],
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/osd.rs:30:23
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub fn new(owner: HWND) -> Result<Self> {
[INFO] [stdout]    |                       ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope
[INFO] [stdout]   --> src/osd.rs:34:25
[INFO] [stdout]    |
[INFO] [stdout] 34 |             let class = WNDCLASSW {
[INFO] [stdout]    |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/osd.rs:41:28
[INFO] [stdout]    |
[INFO] [stdout] 41 |                 return Err(Error::from_thread());
[INFO] [stdout]    |                            ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOOLWINDOW` in this scope
[INFO] [stdout]   --> src/osd.rs:44:17
[INFO] [stdout]    |
[INFO] [stdout] 44 |                 WS_EX_TOOLWINDOW
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_NOACTIVATE` in this scope
[INFO] [stdout]   --> src/osd.rs:45:23
[INFO] [stdout]    |
[INFO] [stdout] 45 |                     | WS_EX_NOACTIVATE
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_TOPMOST` in this scope
[INFO] [stdout]   --> src/osd.rs:46:23
[INFO] [stdout]    |
[INFO] [stdout] 46 |                     | WS_EX_TOPMOST
[INFO] [stdout]    |                       ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_LAYERED` in this scope
[INFO] [stdout]   --> src/osd.rs:47:23
[INFO] [stdout]    |
[INFO] [stdout] 47 |                     | WS_EX_LAYERED
[INFO] [stdout]    |                       ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_EX_TRANSPARENT` in this scope
[INFO] [stdout]   --> src/osd.rs:48:23
[INFO] [stdout]    |
[INFO] [stdout] 48 |                     | WS_EX_TRANSPARENT,
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WS_POPUP` in this scope
[INFO] [stdout]   --> src/osd.rs:51:17
[INFO] [stdout]    |
[INFO] [stdout] 51 |                 WS_POPUP,
[INFO] [stdout]    |                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `LWA_ALPHA` in this scope
[INFO] [stdout]   --> src/osd.rs:62:70
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 SetLayeredWindowAttributes(window, COLORREF(0), 255, LWA_ALPHA)?;
[INFO] [stdout]    |                                                                      ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMWA_SYSTEMBACKDROP_TYPE` in this scope
[INFO] [stdout]   --> src/osd.rs:65:21
[INFO] [stdout]    |
[INFO] [stdout] 65 |                     DWMWA_SYSTEMBACKDROP_TYPE,
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMSBT_TRANSIENTWINDOW` in this scope
[INFO] [stdout]   --> src/osd.rs:66:22
[INFO] [stdout]    |
[INFO] [stdout] 66 |                     &DWMSBT_TRANSIENTWINDOW as *const _ as _,
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `DWM_SYSTEMBACKDROP_TYPE` in this scope
[INFO] [stdout]   --> src/osd.rs:67:31
[INFO] [stdout]    |
[INFO] [stdout] 67 |                     size_of::<DWM_SYSTEMBACKDROP_TYPE>() as u32,
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl<DWM_SYSTEMBACKDROP_TYPE> Osd {
[INFO] [stdout]    |     +++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMWA_WINDOW_CORNER_PREFERENCE` in this scope
[INFO] [stdout]   --> src/osd.rs:71:21
[INFO] [stdout]    |
[INFO] [stdout] 71 |                     DWMWA_WINDOW_CORNER_PREFERENCE,
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMWCP_ROUND` in this scope
[INFO] [stdout]   --> src/osd.rs:72:22
[INFO] [stdout]    |
[INFO] [stdout] 72 |                     &DWMWCP_ROUND as *const _ as _,
[INFO] [stdout]    |                      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `DWM_WINDOW_CORNER_PREFERENCE` in this scope
[INFO] [stdout]   --> src/osd.rs:73:31
[INFO] [stdout]    |
[INFO] [stdout] 73 |                     size_of::<DWM_WINDOW_CORNER_PREFERENCE>() as u32,
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl<DWM_WINDOW_CORNER_PREFERENCE> Osd {
[INFO] [stdout]    |     ++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `IDWriteFactory` in this scope
[INFO] [stdout]   --> src/osd.rs:84:28
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 let write: IDWriteFactory = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED)?;
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FACTORY_TYPE_SHARED` in this scope
[INFO] [stdout]   --> src/osd.rs:84:65
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 let write: IDWriteFactory = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED)?;
[INFO] [stdout]    |                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `IDWriteTextFormat` in this scope
[INFO] [stdout]   --> src/osd.rs:85:60
[INFO] [stdout]    |
[INFO] [stdout] 85 |                 let text_format = |size, weight| -> Result<IDWriteTextFormat> {
[INFO] [stdout]    |                                                            ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 29 | impl<IDWriteTextFormat> Osd {
[INFO] [stdout]    |     +++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_STYLE_NORMAL` in this scope
[INFO] [stdout]   --> src/osd.rs:90:25
[INFO] [stdout]    |
[INFO] [stdout] 90 |                         DWRITE_FONT_STYLE_NORMAL,
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_STRETCH_NORMAL` in this scope
[INFO] [stdout]   --> src/osd.rs:91:25
[INFO] [stdout]    |
[INFO] [stdout] 91 |                         DWRITE_FONT_STRETCH_NORMAL,
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_PARAGRAPH_ALIGNMENT_CENTER` in this scope
[INFO] [stdout]   --> src/osd.rs:95:50
[INFO] [stdout]    |
[INFO] [stdout] 95 |                     format.SetParagraphAlignment(DWRITE_PARAGRAPH_ALIGNMENT_CENTER)?;
[INFO] [stdout]    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_TEXT_ALIGNMENT_CENTER` in this scope
[INFO] [stdout]   --> src/osd.rs:96:45
[INFO] [stdout]    |
[INFO] [stdout] 96 |                     format.SetTextAlignment(DWRITE_TEXT_ALIGNMENT_CENTER)?;
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_WEIGHT_MEDIUM` in this scope
[INFO] [stdout]    --> src/osd.rs:103:43
[INFO] [stdout]     |
[INFO] [stdout] 103 |                         text_format(40.0, DWRITE_FONT_WEIGHT_MEDIUM)?,
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_WEIGHT_SEMI_BOLD` in this scope
[INFO] [stdout]    --> src/osd.rs:104:43
[INFO] [stdout]     |
[INFO] [stdout] 104 |                         text_format(12.0, DWRITE_FONT_WEIGHT_SEMI_BOLD)?,
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_FONT_WEIGHT_NORMAL` in this scope
[INFO] [stdout]    --> src/osd.rs:105:43
[INFO] [stdout]     |
[INFO] [stdout] 105 |                         text_format(11.0, DWRITE_FONT_WEIGHT_NORMAL)?,
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MONITORINFO` in this scope
[INFO] [stdout]    --> src/osd.rs:121:31
[INFO] [stdout]     |
[INFO] [stdout] 121 |             let mut monitor = MONITORINFO {
[INFO] [stdout]     |                               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `MONITORINFO` in this scope
[INFO] [stdout]    --> src/osd.rs:122:35
[INFO] [stdout]     |
[INFO] [stdout] 122 |                 cbSize: size_of::<MONITORINFO>() as u32,
[INFO] [stdout]     |                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout]  29 | impl<MONITORINFO> Osd {
[INFO] [stdout]     |     +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MONITOR_DEFAULTTOPRIMARY` in this scope
[INFO] [stdout]    --> src/osd.rs:126:52
[INFO] [stdout]     |
[INFO] [stdout] 126 |                 MonitorFromPoint(POINT::default(), MONITOR_DEFAULTTOPRIMARY),
[INFO] [stdout]     |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SWP_NOSIZE` in this scope
[INFO] [stdout]    --> src/osd.rs:140:17
[INFO] [stdout]     |
[INFO] [stdout] 140 |                 SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER,
[INFO] [stdout]     |                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SWP_NOACTIVATE` in this scope
[INFO] [stdout]    --> src/osd.rs:140:30
[INFO] [stdout]     |
[INFO] [stdout] 140 |                 SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER,
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SWP_NOZORDER` in this scope
[INFO] [stdout]    --> src/osd.rs:140:47
[INFO] [stdout]     |
[INFO] [stdout] 140 |                 SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER,
[INFO] [stdout]     |                                               ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HWND_TOPMOST` in this scope
[INFO] [stdout]    --> src/osd.rs:146:22
[INFO] [stdout]     |
[INFO] [stdout] 146 |                 Some(HWND_TOPMOST),
[INFO] [stdout]     |                      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SWP_NOACTIVATE` in this scope
[INFO] [stdout]    --> src/osd.rs:151:17
[INFO] [stdout]     |
[INFO] [stdout] 151 |                 SWP_NOACTIVATE,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNOACTIVATE` in this scope
[INFO] [stdout]    --> src/osd.rs:153:45
[INFO] [stdout]     |
[INFO] [stdout] 153 |             let _ = ShowWindow(self.window, SW_SHOWNOACTIVATE);
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_NCACTIVATE` in this scope
[INFO] [stdout]    --> src/osd.rs:156:17
[INFO] [stdout]     |
[INFO] [stdout] 156 |                 WM_NCACTIVATE,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `GWLP_USERDATA` in this scope
[INFO] [stdout]    --> src/osd.rs:166:44
[INFO] [stdout]     |
[INFO] [stdout] 166 |             SetWindowLongPtrW(self.window, GWLP_USERDATA, GetTickCount() as isize);
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope
[INFO] [stdout]    --> src/settings.rs:109:43
[INFO] [stdout]     |
[INFO] [stdout] 109 |             .chain(executable.as_os_str().encode_wide())
[INFO] [stdout]     |                                           ^^^^^^^^^^^ method not found in `&OsStr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `D2DERR_RECREATE_TARGET` in this scope
[INFO] [stdout]    --> src/osd.rs:184:53
[INFO] [stdout]     |
[INFO] [stdout] 184 |                 .is_err_and(|error| error.code() == D2DERR_RECREATE_TARGET)
[INFO] [stdout]     |                                                     ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope
[INFO] [stdout]    --> src/osd.rs:205:24
[INFO] [stdout]     |
[INFO] [stdout] 205 |             let size = D2D_SIZE_U {
[INFO] [stdout]     |                        ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]    --> src/osd.rs:218:17
[INFO] [stdout]     |
[INFO] [stdout] 218 |                 HKEY_CURRENT_USER,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegSetKeyValueW` in this scope
[INFO] [stdout]    --> src/settings.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |         RegSetKeyValueW(
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `RRF_RT_REG_DWORD` in this scope
[INFO] [stdout]    --> src/osd.rs:221:17
[INFO] [stdout]     |
[INFO] [stdout] 221 |                 RRF_RT_REG_DWORD,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMWA_USE_IMMERSIVE_DARK_MODE` in this scope
[INFO] [stdout]    --> src/osd.rs:229:17
[INFO] [stdout]     |
[INFO] [stdout] 229 |                 DWMWA_USE_IMMERSIVE_DARK_MODE,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `BOOL` in this scope
[INFO] [stdout]    --> src/osd.rs:231:27
[INFO] [stdout]     |
[INFO] [stdout] 231 |                 size_of::<BOOL>() as u32,
[INFO] [stdout]     |                           ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 231 -                 size_of::<BOOL>() as u32,
[INFO] [stdout] 231 +                 size_of::<bool>() as u32,
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout]  29 | impl<BOOL> Osd {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `HIGHCONTRASTW` in this scope
[INFO] [stdout]    --> src/osd.rs:234:32
[INFO] [stdout]     |
[INFO] [stdout] 234 |             let mut contrast = HIGHCONTRASTW {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HIGHCONTRASTW` in this scope
[INFO] [stdout]    --> src/osd.rs:235:35
[INFO] [stdout]     |
[INFO] [stdout] 235 |                 cbSize: size_of::<HIGHCONTRASTW>() as u32,
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout]  29 | impl<HIGHCONTRASTW> Osd {
[INFO] [stdout]     |     +++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SPI_GETHIGHCONTRAST` in this scope
[INFO] [stdout]    --> src/osd.rs:239:17
[INFO] [stdout]     |
[INFO] [stdout] 239 |                 SPI_GETHIGHCONTRAST,
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HCF_HIGHCONTRASTON` in this scope
[INFO] [stdout]    --> src/osd.rs:244:59
[INFO] [stdout]     |
[INFO] [stdout] 244 |             let high_contrast = contrast.dwFlags.contains(HCF_HIGHCONTRASTON);
[INFO] [stdout]     |                                                           ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOWTEXT` in this scope
[INFO] [stdout]    --> src/osd.rs:247:34
[INFO] [stdout]     |
[INFO] [stdout] 247 |                     system_color(COLOR_WINDOWTEXT)
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope
[INFO] [stdout]    --> src/osd.rs:249:21
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     D2D1_COLOR_F {
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `COLOR_WINDOW` in this scope
[INFO] [stdout]    --> src/osd.rs:260:30
[INFO] [stdout]     |
[INFO] [stdout] 260 |                 system_color(COLOR_WINDOW)
[INFO] [stdout]     |                              ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D_RECT_F` in this scope
[INFO] [stdout]    --> src/osd.rs:278:22
[INFO] [stdout]     |
[INFO] [stdout] 278 |                     &D2D_RECT_F {
[INFO] [stdout]     |                      ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `D2D1_DRAW_TEXT_OPTIONS_NONE` in this scope
[INFO] [stdout]    --> src/osd.rs:285:21
[INFO] [stdout]     |
[INFO] [stdout] 285 |                     D2D1_DRAW_TEXT_OPTIONS_NONE,
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWRITE_MEASURING_MODE_NATURAL` in this scope
[INFO] [stdout]    --> src/osd.rs:286:21
[INFO] [stdout]     |
[INFO] [stdout] 286 |                     DWRITE_MEASURING_MODE_NATURAL,
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DWMWA_CLOAK` in this scope
[INFO] [stdout]    --> src/osd.rs:299:17
[INFO] [stdout]     |
[INFO] [stdout] 299 |                 DWMWA_CLOAK,
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `BOOL` in this scope
[INFO] [stdout]    --> src/osd.rs:301:27
[INFO] [stdout]     |
[INFO] [stdout] 301 |                 size_of::<BOOL>() as u32,
[INFO] [stdout]     |                           ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 301 -                 size_of::<BOOL>() as u32,
[INFO] [stdout] 301 +                 size_of::<bool>() as u32,
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout]  29 | impl<BOOL> Osd {
[INFO] [stdout]     |     ++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SW_HIDE` in this scope
[INFO] [stdout]    --> src/osd.rs:310:45
[INFO] [stdout]     |
[INFO] [stdout] 310 |             let _ = ShowWindow(self.window, SW_HIDE);
[INFO] [stdout]     |                                             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `SYS_COLOR_INDEX` in this scope
[INFO] [stdout]    --> src/osd.rs:324:24
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn system_color(index: SYS_COLOR_INDEX) -> D2D1_COLOR_F {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `D2D1_COLOR_F` in this scope
[INFO] [stdout]    --> src/osd.rs:324:44
[INFO] [stdout]     |
[INFO] [stdout] 324 | fn system_color(index: SYS_COLOR_INDEX) -> D2D1_COLOR_F {
[INFO] [stdout]     |                                            ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_COLOR_F` in this scope
[INFO] [stdout]    --> src/osd.rs:327:5
[INFO] [stdout]     |
[INFO] [stdout] 327 |     D2D1_COLOR_F {
[INFO] [stdout]     |     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/osd.rs:336:13
[INFO] [stdout]     |
[INFO] [stdout] 336 |     window: HWND,
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `WPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:338:13
[INFO] [stdout]     |
[INFO] [stdout] 338 |     wparam: WPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:339:13
[INFO] [stdout]     |
[INFO] [stdout] 339 |     lparam: LPARAM,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:340:6
[INFO] [stdout]     |
[INFO] [stdout] 340 | ) -> LRESULT {
[INFO] [stdout]     |      ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `GW_OWNER` in this scope
[INFO] [stdout]    --> src/osd.rs:348:54
[INFO] [stdout]     |
[INFO] [stdout] 348 |                 if let Ok(owner) = GetWindow(window, GW_OWNER) {
[INFO] [stdout]     |                                                      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `GWLP_USERDATA` in this scope
[INFO] [stdout]    --> src/osd.rs:355:78
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     && GetTickCount().wrapping_sub(GetWindowLongPtrW(window, GWLP_USERDATA) as u32)
[INFO] [stdout]     |                                                                              ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SW_HIDE` in this scope
[INFO] [stdout]    --> src/osd.rs:361:44
[INFO] [stdout]     |
[INFO] [stdout] 361 |                 let _ = ShowWindow(window, SW_HIDE);
[INFO] [stdout]     |                                            ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MA_NOACTIVATE` in this scope
[INFO] [stdout]    --> src/osd.rs:364:41
[INFO] [stdout]     |
[INFO] [stdout] 364 |             WM_MOUSEACTIVATE => LRESULT(MA_NOACTIVATE as isize),
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HTTRANSPARENT` in this scope
[INFO] [stdout]    --> src/osd.rs:367:37
[INFO] [stdout]     |
[INFO] [stdout] 367 |             WM_NCHITTEST => LRESULT(HTTRANSPARENT as isize),
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope
[INFO] [stdout]    --> src/osd.rs:373:26
[INFO] [stdout]     |
[INFO] [stdout] 373 | fn create_target(window: HWND) -> Result<ID2D1HwndRenderTarget> {
[INFO] [stdout]     |                          ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ID2D1HwndRenderTarget` in this scope
[INFO] [stdout]    --> src/osd.rs:373:42
[INFO] [stdout]     |
[INFO] [stdout] 373 | fn create_target(window: HWND) -> Result<ID2D1HwndRenderTarget> {
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]     |
[INFO] [stdout] 373 | fn create_target<ID2D1HwndRenderTarget>(window: HWND) -> Result<ID2D1HwndRenderTarget> {
[INFO] [stdout]     |                 +++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ID2D1Factory` in this scope
[INFO] [stdout]    --> src/osd.rs:376:22
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let factory: ID2D1Factory = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, None)?;
[INFO] [stdout]     |                      ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `D2D1_FACTORY_TYPE_SINGLE_THREADED` in this scope
[INFO] [stdout]    --> src/osd.rs:376:55
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let factory: ID2D1Factory = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, None)?;
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_RENDER_TARGET_PROPERTIES` in this scope
[INFO] [stdout]    --> src/osd.rs:378:14
[INFO] [stdout]     |
[INFO] [stdout] 378 |             &D2D1_RENDER_TARGET_PROPERTIES {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_PIXEL_FORMAT` in this scope
[INFO] [stdout]    --> src/osd.rs:379:30
[INFO] [stdout]     |
[INFO] [stdout] 379 |                 pixelFormat: D2D1_PIXEL_FORMAT {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `DXGI_FORMAT_B8G8R8A8_UNORM` in this scope
[INFO] [stdout]    --> src/osd.rs:380:29
[INFO] [stdout]     |
[INFO] [stdout] 380 |                     format: DXGI_FORMAT_B8G8R8A8_UNORM,
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `D2D1_ALPHA_MODE_PREMULTIPLIED` in this scope
[INFO] [stdout]    --> src/osd.rs:381:32
[INFO] [stdout]     |
[INFO] [stdout] 381 |                     alphaMode: D2D1_ALPHA_MODE_PREMULTIPLIED,
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D1_HWND_RENDER_TARGET_PROPERTIES` in this scope
[INFO] [stdout]    --> src/osd.rs:385:14
[INFO] [stdout]     |
[INFO] [stdout] 385 |             &D2D1_HWND_RENDER_TARGET_PROPERTIES {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `D2D_SIZE_U` in this scope
[INFO] [stdout]    --> src/osd.rs:387:28
[INFO] [stdout]     |
[INFO] [stdout] 387 |                 pixelSize: D2D_SIZE_U {
[INFO] [stdout]     |                            ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `PCWSTR` in this scope
[INFO] [stdout]  --> src/settings.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | const KEY: PCWSTR = w!("Software\\WinCaps");
[INFO] [stdout]   |            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `PCWSTR` in this scope
[INFO] [stdout]  --> src/settings.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | const RUN: PCWSTR = w!("Software\\Microsoft\\Windows\\CurrentVersion\\Run");
[INFO] [stdout]   |            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `PCWSTR` in this scope
[INFO] [stdout]   --> src/settings.rs:40:15
[INFO] [stdout]    |
[INFO] [stdout] 40 | fn read(name: PCWSTR) -> Option<u32> {
[INFO] [stdout]    |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]   --> src/settings.rs:46:13
[INFO] [stdout]    |
[INFO] [stdout] 46 |             HKEY_CURRENT_USER,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `RRF_RT_REG_DWORD` in this scope
[INFO] [stdout]   --> src/settings.rs:49:13
[INFO] [stdout]    |
[INFO] [stdout] 49 |             RRF_RT_REG_DWORD,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `PCWSTR` in this scope
[INFO] [stdout]   --> src/settings.rs:60:16
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn write(name: PCWSTR, value: u32) -> Result<()> {
[INFO] [stdout]    |                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]   --> src/settings.rs:64:13
[INFO] [stdout]    |
[INFO] [stdout] 64 |             HKEY_CURRENT_USER,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `REG_DWORD` in this scope
[INFO] [stdout]   --> src/settings.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 |             REG_DWORD.0,
[INFO] [stdout]    |             ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]   --> src/settings.rs:79:13
[INFO] [stdout]    |
[INFO] [stdout] 79 |             HKEY_CURRENT_USER,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `RRF_RT_REG_SZ` in this scope
[INFO] [stdout]   --> src/settings.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             RRF_RT_REG_SZ,
[INFO] [stdout]    |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ERROR_FILE_NOT_FOUND` in this scope
[INFO] [stdout]   --> src/settings.rs:88:18
[INFO] [stdout]    |
[INFO] [stdout] 88 |     if status == ERROR_FILE_NOT_FOUND {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]   --> src/settings.rs:99:45
[INFO] [stdout]    |
[INFO] [stdout] 99 |             let status = RegDeleteKeyValueW(HKEY_CURRENT_USER, RUN, w!("WinCaps"));
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ERROR_FILE_NOT_FOUND` in this scope
[INFO] [stdout]    --> src/settings.rs:100:33
[INFO] [stdout]     |
[INFO] [stdout] 100 |             return if status == ERROR_FILE_NOT_FOUND {
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]    --> src/settings.rs:107:53
[INFO] [stdout]     |
[INFO] [stdout] 107 |             std::env::current_exe().map_err(|error| Error::new(E_FAIL, error.to_string()))?;
[INFO] [stdout]     |                                                     ^^^^^ use of undeclared type `Error`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::error::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::fmt::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::io::Error;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `E_FAIL` in this scope
[INFO] [stdout]    --> src/settings.rs:107:64
[INFO] [stdout]     |
[INFO] [stdout] 107 |             std::env::current_exe().map_err(|error| Error::new(E_FAIL, error.to_string()))?;
[INFO] [stdout]     |                                                                ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]    --> src/settings.rs:113:24
[INFO] [stdout]     |
[INFO] [stdout] 113 |             return Err(Error::new(
[INFO] [stdout]     |                        ^^^^^ use of undeclared type `Error`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::error::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::fmt::Error;
[INFO] [stdout]     |
[INFO] [stdout]   1 + use std::io::Error;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `E_INVALIDARG` in this scope
[INFO] [stdout]    --> src/settings.rs:114:17
[INFO] [stdout]     |
[INFO] [stdout] 114 |                 E_INVALIDARG,
[INFO] [stdout]     |                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `HKEY_CURRENT_USER` in this scope
[INFO] [stdout]    --> src/settings.rs:119:13
[INFO] [stdout]     |
[INFO] [stdout] 119 |             HKEY_CURRENT_USER,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `REG_SZ` in this scope
[INFO] [stdout]    --> src/settings.rs:122:13
[INFO] [stdout]     |
[INFO] [stdout] 122 |             REG_SZ.0,
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0408, E0422, E0425, E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/app.rs:44:17
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub fn run() -> Result<()> {
[INFO] [stdout]    |                 ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 44 | pub fn run() -> Result<(), E> {
[INFO] [stdout]    |                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/app.rs:156:47
[INFO] [stdout]     |
[INFO] [stdout] 156 | fn report_setting_error(window: HWND, result: Result<()>) {
[INFO] [stdout]     |                                               ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                                               |
[INFO] [stdout]     |                                               expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 156 | fn report_setting_error(window: HWND, result: Result<(), E>) {
[INFO] [stdout]     |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/app.rs:178:19
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn tray_icon() -> Result<HICON> {
[INFO] [stdout]     |                   ^^^^^^ ----- supplied 1 generic argument
[INFO] [stdout]     |                   |
[INFO] [stdout]     |                   expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn tray_icon() -> Result<HICON, E> {
[INFO] [stdout]     |                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/osd.rs:373:35
[INFO] [stdout]     |
[INFO] [stdout] 373 | fn create_target(window: HWND) -> Result<ID2D1HwndRenderTarget> {
[INFO] [stdout]     |                                   ^^^^^^ --------------------- supplied 1 generic argument
[INFO] [stdout]     |                                   |
[INFO] [stdout]     |                                   expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 373 | fn create_target(window: HWND) -> Result<ID2D1HwndRenderTarget, E> {
[INFO] [stdout]     |                                                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/settings.rs:60:39
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn write(name: PCWSTR, value: u32) -> Result<()> {
[INFO] [stdout]    |                                       ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                       |
[INFO] [stdout]    |                                       expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 60 | fn write(name: PCWSTR, value: u32) -> Result<(), E> {
[INFO] [stdout]    |                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/settings.rs:75:29
[INFO] [stdout]    |
[INFO] [stdout] 75 | pub fn startup_enabled() -> Result<bool> {
[INFO] [stdout]    |                             ^^^^^^ ---- supplied 1 generic argument
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 75 | pub fn startup_enabled() -> Result<bool, E> {
[INFO] [stdout]    |                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/settings.rs:95:38
[INFO] [stdout]    |
[INFO] [stdout] 95 | pub fn set_startup(enabled: bool) -> Result<()> {
[INFO] [stdout]    |                                      ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 95 | pub fn set_startup(enabled: bool) -> Result<(), E> {
[INFO] [stdout]    |                                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/keyboard.rs:40:45
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fn start(ui: HWND, hold_ms: u32) -> Result<Self> {
[INFO] [stdout]    |                                             ^^^^^^ ---- supplied 1 generic argument
[INFO] [stdout]    |                                             |
[INFO] [stdout]    |                                             expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 40 |     pub fn start(ui: HWND, hold_ms: u32) -> Result<Self, E> {
[INFO] [stdout]    |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/osd.rs:30:32
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub fn new(owner: HWND) -> Result<Self> {
[INFO] [stdout]    |                                ^^^^^^ ---- supplied 1 generic argument
[INFO] [stdout]    |                                |
[INFO] [stdout]    |                                expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 30 |     pub fn new(owner: HWND) -> Result<Self, E> {
[INFO] [stdout]    |                                           +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/osd.rs:117:43
[INFO] [stdout]     |
[INFO] [stdout] 117 |     pub fn show(&mut self, caps: bool) -> Result<()> {
[INFO] [stdout]     |                                           ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                                           |
[INFO] [stdout]     |                                           expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 117 |     pub fn show(&mut self, caps: bool) -> Result<(), E> {
[INFO] [stdout]     |                                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/osd.rs:174:31
[INFO] [stdout]     |
[INFO] [stdout] 174 |     pub fn draw(&mut self) -> Result<()> {
[INFO] [stdout]     |                               ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                               |
[INFO] [stdout]     |                               expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 174 |     pub fn draw(&mut self) -> Result<(), E> {
[INFO] [stdout]     |                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/osd.rs:196:32
[INFO] [stdout]     |
[INFO] [stdout] 196 |     fn draw_once(&mut self) -> Result<()> {
[INFO] [stdout]     |                                ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                                |
[INFO] [stdout]     |                                expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 196 |     fn draw_once(&mut self) -> Result<(), E> {
[INFO] [stdout]     |                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `wincaps` (bin "wincaps" test) due to 482 previous errors
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/osd.rs:293:39
[INFO] [stdout]     |
[INFO] [stdout] 293 |     fn cloak(&self, enabled: bool) -> Result<()> {
[INFO] [stdout]     |                                       ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                                       |
[INFO] [stdout]     |                                       expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 293 |     fn cloak(&self, enabled: bool) -> Result<(), E> {
[INFO] [stdout]     |                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/settings.rs:27:47
[INFO] [stdout]    |
[INFO] [stdout] 27 |     pub fn set_hold(&mut self, value: u32) -> Result<()> {
[INFO] [stdout]    |                                               ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                               |
[INFO] [stdout]    |                                               expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 27 |     pub fn set_hold(&mut self, value: u32) -> Result<(), E> {
[INFO] [stdout]    |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/settings.rs:33:57
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub fn set_notifications(&mut self, value: bool) -> Result<()> {
[INFO] [stdout]    |                                                         ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                                                         |
[INFO] [stdout]    |                                                         expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 33 |     pub fn set_notifications(&mut self, value: bool) -> Result<(), E> {
[INFO] [stdout]    |                                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Owned` in this scope
[INFO] [stdout]   --> src/app.rs:47:25
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let _instance = Owned::new(CreateMutexW(None, false, w!("Local\\WinCaps"))?);
[INFO] [stdout]    |                         ^^^^^ use of undeclared type `Owned`
[INFO] [stdout]    |
[INFO] [stdout] help: there is an enum variant `std::borrow::Cow::Owned`; try using the variant's enum
[INFO] [stdout]    |
[INFO] [stdout] 47 -         let _instance = Owned::new(CreateMutexW(None, false, w!("Local\\WinCaps"))?);
[INFO] [stdout] 47 +         let _instance = std::borrow::Cow::new(CreateMutexW(None, false, w!("Local\\WinCaps"))?);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope
[INFO] [stdout]   --> src/app.rs:48:12
[INFO] [stdout]    |
[INFO] [stdout] 48 |         if GetLastError() == ERROR_ALREADY_EXISTS {
[INFO] [stdout]    |            ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterWindowMessageW` in this scope
[INFO] [stdout]   --> src/app.rs:52:29
[INFO] [stdout]    |
[INFO] [stdout] 52 |         TASKBAR_CREATED.set(RegisterWindowMessageW(w!("TaskbarCreated")));
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stdout]   --> src/app.rs:59:12
[INFO] [stdout]    |
[INFO] [stdout] 59 |         if RegisterClassW(&class) == 0 {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stdout]   --> src/app.rs:62:22
[INFO] [stdout]    |
[INFO] [stdout] 62 |         let window = CreateWindowExW(
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/app.rs:76:29
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let result = (|| -> Result<()> {
[INFO] [stdout]    |                             ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 76 |         let result = (|| -> Result<(), E> {
[INFO] [stdout]    |                                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Shell_NotifyIconW` in this scope
[INFO] [stdout]   --> src/app.rs:90:17
[INFO] [stdout]    |
[INFO] [stdout] 90 |             if !Shell_NotifyIconW(NIM_ADD, &tray).as_bool() {
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyIcon` in this scope
[INFO] [stdout]   --> src/app.rs:91:25
[INFO] [stdout]    |
[INFO] [stdout] 91 |                 let _ = DestroyIcon(tray.hIcon);
[INFO] [stdout]    |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `MSG` in this scope
[INFO] [stdout]    --> src/app.rs:104:31
[INFO] [stdout]     |
[INFO] [stdout] 104 |             let mut message = MSG::default();
[INFO] [stdout]     |                               ^^^ use of undeclared type `MSG`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope
[INFO] [stdout]    --> src/app.rs:106:23
[INFO] [stdout]     |
[INFO] [stdout] 106 |                 match GetMessageW(&mut message, None, 0, 0).0 {
[INFO] [stdout]     |                       ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope
[INFO] [stdout]    --> src/app.rs:110:33
[INFO] [stdout]     |
[INFO] [stdout] 110 |                         let _ = TranslateMessage(&message);
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope
[INFO] [stdout]    --> src/app.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                         DispatchMessageW(&message);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/app.rs:119:25
[INFO] [stdout]     |
[INFO] [stdout] 119 |                 let _ = KillTimer(Some(window), SESSION_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WTSUnRegisterSessionNotification` in this scope
[INFO] [stdout]    --> src/app.rs:121:29
[INFO] [stdout]     |
[INFO] [stdout] 121 |                     let _ = WTSUnRegisterSessionNotification(window);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Shell_NotifyIconW` in this scope
[INFO] [stdout]    --> src/app.rs:123:25
[INFO] [stdout]     |
[INFO] [stdout] 123 |                 let _ = Shell_NotifyIconW(NIM_DELETE, &app.tray);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyIcon` in this scope
[INFO] [stdout]    --> src/app.rs:124:25
[INFO] [stdout]     |
[INFO] [stdout] 124 |                 let _ = DestroyIcon(app.tray.hIcon);
[INFO] [stdout]     |                         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]    --> src/app.rs:128:17
[INFO] [stdout]     |
[INFO] [stdout] 128 |         let _ = DestroyWindow(window);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/app.rs:140:17
[INFO] [stdout]     |
[INFO] [stdout] 140 |         let _ = KillTimer(Some(window), SESSION_TIMER);
[INFO] [stdout]     |                 ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WTSRegisterSessionNotification` in this scope
[INFO] [stdout]    --> src/app.rs:141:15
[INFO] [stdout]     |
[INFO] [stdout] 141 |         match WTSRegisterSessionNotification(window, NOTIFY_FOR_THIS_SESSION) {
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `HRESULT` in this scope
[INFO] [stdout]    --> src/app.rs:144:36
[INFO] [stdout]     |
[INFO] [stdout] 144 |                 if error.code() == HRESULT::from_win32(RPC_S_INVALID_BINDING.0 as u32) {
[INFO] [stdout]     |                                    ^^^^^^^ use of undeclared type `HRESULT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetTimer` in this scope
[INFO] [stdout]    --> src/app.rs:146:21
[INFO] [stdout]     |
[INFO] [stdout] 146 |                     SetTimer(Some(window), SESSION_TIMER, 1000, None);
[INFO] [stdout]     |                     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `HSTRING` in this scope
[INFO] [stdout]    --> src/app.rs:158:20
[INFO] [stdout]     |
[INFO] [stdout] 158 |         let text = HSTRING::from(format!("Could not save the setting: {error}"));
[INFO] [stdout]     |                    ^^^^^^^ use of undeclared type `HSTRING`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MessageBoxW` in this scope
[INFO] [stdout]    --> src/app.rs:161:13
[INFO] [stdout]     |
[INFO] [stdout] 161 |             MessageBoxW(Some(window), &text, w!("WinCaps"), MB_OK | MB_ICONERROR);
[INFO] [stdout]     |             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PCWSTR` in this scope
[INFO] [stdout]    --> src/app.rs:184:13
[INFO] [stdout]     |
[INFO] [stdout] 184 |             PCWSTR(std::ptr::without_provenance(1)),
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in this scope
[INFO] [stdout]    --> src/app.rs:186:13
[INFO] [stdout]     |
[INFO] [stdout] 186 |             GetSystemMetrics(SM_CXSMICON),
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSystemMetrics` in this scope
[INFO] [stdout]    --> src/app.rs:187:13
[INFO] [stdout]     |
[INFO] [stdout] 187 |             GetSystemMetrics(SM_CYSMICON),
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadImageW` in this scope
[INFO] [stdout]    --> src/app.rs:182:20
[INFO] [stdout]     |
[INFO] [stdout] 182 |         let icon = LoadImageW(
[INFO] [stdout]     |                    ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HICON` in this scope
[INFO] [stdout]    --> src/app.rs:190:12
[INFO] [stdout]     |
[INFO] [stdout] 190 |         Ok(HICON(icon.0))
[INFO] [stdout]     |            ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreatePopupMenu` in this scope
[INFO] [stdout]    --> src/app.rs:215:35
[INFO] [stdout]     |
[INFO] [stdout] 215 |                 if let Ok(menu) = CreatePopupMenu() {
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:216:29
[INFO] [stdout]     |
[INFO] [stdout] 216 |                     let _ = AppendMenuW(
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreatePopupMenu` in this scope
[INFO] [stdout]    --> src/app.rs:222:40
[INFO] [stdout]     |
[INFO] [stdout] 222 |                     if let Ok(holds) = CreatePopupMenu() {
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `HSTRING` in this scope
[INFO] [stdout]    --> src/app.rs:224:41
[INFO] [stdout]     |
[INFO] [stdout] 224 | ...                   let label = HSTRING::from(format!("{value} ms"));
[INFO] [stdout]     |                                   ^^^^^^^ use of undeclared type `HSTRING`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:225:37
[INFO] [stdout]     |
[INFO] [stdout] 225 | ...                   let _ = AppendMenuW(
[INFO] [stdout]     |                               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:232:33
[INFO] [stdout]     |
[INFO] [stdout] 232 |                         let _ = AppendMenuW(menu, MF_POPUP, holds.0 as usize, w!("Hold threshold"));
[INFO] [stdout]     |                                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:234:29
[INFO] [stdout]     |
[INFO] [stdout] 234 |                     let _ = AppendMenuW(
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:245:29
[INFO] [stdout]     |
[INFO] [stdout] 245 |                     let _ = AppendMenuW(menu, flags, STARTUP, w!("Start at login"));
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:246:29
[INFO] [stdout]     |
[INFO] [stdout] 246 |                     let _ = AppendMenuW(menu, MF_SEPARATOR, 0, None);
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AppendMenuW` in this scope
[INFO] [stdout]    --> src/app.rs:247:29
[INFO] [stdout]     |
[INFO] [stdout] 247 |                     let _ = AppendMenuW(menu, MF_STRING, EXIT, w!("Exit"));
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `POINT` in this scope
[INFO] [stdout]    --> src/app.rs:248:37
[INFO] [stdout]     |
[INFO] [stdout] 248 |                     let mut point = POINT::default();
[INFO] [stdout]     |                                     ^^^^^ use of undeclared type `POINT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCursorPos` in this scope
[INFO] [stdout]    --> src/app.rs:249:29
[INFO] [stdout]     |
[INFO] [stdout] 249 |                     let _ = GetCursorPos(&mut point);
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetForegroundWindow` in this scope
[INFO] [stdout]    --> src/app.rs:250:29
[INFO] [stdout]     |
[INFO] [stdout] 250 |                     let _ = SetForegroundWindow(window);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TrackPopupMenu` in this scope
[INFO] [stdout]    --> src/app.rs:251:34
[INFO] [stdout]     |
[INFO] [stdout] 251 |                     let choice = TrackPopupMenu(
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyMenu` in this scope
[INFO] [stdout]    --> src/app.rs:260:29
[INFO] [stdout]     |
[INFO] [stdout] 260 |                     let _ = DestroyMenu(menu);
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:264:25
[INFO] [stdout]     |
[INFO] [stdout] 264 |                         WPARAM(choice.0 as usize),
[INFO] [stdout]     |                         ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 264 -                         WPARAM(choice.0 as usize),
[INFO] [stdout] 264 +                         wparam(choice.0 as usize),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:265:25
[INFO] [stdout]     |
[INFO] [stdout] 265 |                         LPARAM(0),
[INFO] [stdout]     |                         ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 265 -                         LPARAM(0),
[INFO] [stdout] 265 +                         lparam(0),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/app.rs:261:29
[INFO] [stdout]     |
[INFO] [stdout] 261 |                     let _ = PostMessageW(
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:267:65
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                                 ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 267 -                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout] 267 +                     let _ = PostMessageW(Some(window), WM_NULL, wparam(0), LPARAM(0));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/app.rs:267:76
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                                            ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 267 -                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout] 267 +                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), lparam(0));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/app.rs:267:29
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     let _ = PostMessageW(Some(window), WM_NULL, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Shell_NotifyIconW` in this scope
[INFO] [stdout]    --> src/app.rs:276:29
[INFO] [stdout]     |
[INFO] [stdout] 276 |                     let _ = Shell_NotifyIconW(NIM_MODIFY, &app.tray);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]    --> src/app.rs:288:59
[INFO] [stdout]     |
[INFO] [stdout] 288 |                 let result = APP.with_borrow_mut(|app| -> Result<()> {
[INFO] [stdout]     |                                                           ^^^^^^ -- supplied 1 generic argument
[INFO] [stdout]     |                                                           |
[INFO] [stdout]     |                                                           expected 2 generic arguments
[INFO] [stdout]     |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]     |
[INFO] [stdout] 288 |                 let result = APP.with_borrow_mut(|app| -> Result<(), E> {
[INFO] [stdout]     |                                                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stdout]    --> src/app.rs:302:47
[INFO] [stdout]     |
[INFO] [stdout] 302 |             WM_COMMAND if wparam.0 == EXIT => PostQuitMessage(0),
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stdout]    --> src/app.rs:303:25
[INFO] [stdout]     |
[INFO] [stdout] 303 |             WM_CLOSE => PostQuitMessage(0),
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stdout]    --> src/app.rs:304:47
[INFO] [stdout]     |
[INFO] [stdout] 304 |             WM_ENDSESSION if wparam.0 != 0 => PostQuitMessage(0),
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/app.rs:318:24
[INFO] [stdout]     |
[INFO] [stdout] 318 |                 return LRESULT(1);
[INFO] [stdout]     |                        ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Shell_NotifyIconW` in this scope
[INFO] [stdout]    --> src/app.rs:342:33
[INFO] [stdout]     |
[INFO] [stdout] 342 |                         let _ = Shell_NotifyIconW(NIM_ADD, &app.tray);
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]    --> src/app.rs:345:24
[INFO] [stdout]     |
[INFO] [stdout] 345 |                 return DefWindowProcW(window, message, wparam, lparam);
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]    --> src/app.rs:348:25
[INFO] [stdout]     |
[INFO] [stdout] 348 |             _ => return DefWindowProcW(window, message, wparam, lparam),
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/app.rs:350:9
[INFO] [stdout]     |
[INFO] [stdout] 350 |         LRESULT(0)
[INFO] [stdout]     |         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/keyboard.rs:46:36
[INFO] [stdout]    |
[INFO] [stdout] 46 |                 let setup = (|| -> Result<(HWND, HHOOK)> {
[INFO] [stdout]    |                                    ^^^^^^ ------------- supplied 1 generic argument
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 46 |                 let setup = (|| -> Result<(HWND, HHOOK), E> {
[INFO] [stdout]    |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:54:24
[INFO] [stdout]    |
[INFO] [stdout] 54 |                     if RegisterClassW(&class) == 0 {
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `WINDOW_EX_STYLE` in this scope
[INFO] [stdout]   --> src/keyboard.rs:58:25
[INFO] [stdout]    |
[INFO] [stdout] 58 |                         WINDOW_EX_STYLE::default(),
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^ use of undeclared type `WINDOW_EX_STYLE`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `WINDOW_STYLE` in this scope
[INFO] [stdout]   --> src/keyboard.rs:61:25
[INFO] [stdout]    |
[INFO] [stdout] 61 |                         WINDOW_STYLE::default(),
[INFO] [stdout]    |                         ^^^^^^^^^^^^ use of undeclared type `WINDOW_STYLE`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:57:34
[INFO] [stdout]    |
[INFO] [stdout] 57 |                     let window = CreateWindowExW(
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:74:33
[INFO] [stdout]    |
[INFO] [stdout] 74 | ...                   ui: HWND(ui as _),
[INFO] [stdout]    |                           ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `HWND` in this scope
[INFO] [stdout]   --> src/keyboard.rs:76:41
[INFO] [stdout]    |
[INFO] [stdout] 76 | ...                   foreground: HWND::default(),
[INFO] [stdout]    |                                   ^^^^ use of undeclared type `HWND`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowsHookExW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:83:27
[INFO] [stdout]    |
[INFO] [stdout] 83 |                     match SetWindowsHookExW(WH_KEYBOARD_LL, Some(hook), Some(instance.into()), 0) {
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]   --> src/keyboard.rs:86:37
[INFO] [stdout]    |
[INFO] [stdout] 86 | ...                   let _ = DestroyWindow(window);
[INFO] [stdout]    |                               ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `MSG` in this scope
[INFO] [stdout]   --> src/keyboard.rs:94:39
[INFO] [stdout]    |
[INFO] [stdout] 94 |                         let mut msg = MSG::default();
[INFO] [stdout]    |                                       ^^^ use of undeclared type `MSG`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:95:31
[INFO] [stdout]    |
[INFO] [stdout] 95 |                         while GetMessageW(&mut msg, None, 0, 0).0 > 0 {
[INFO] [stdout]    |                               ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope
[INFO] [stdout]   --> src/keyboard.rs:96:29
[INFO] [stdout]    |
[INFO] [stdout] 96 | ...                   DispatchMessageW(&msg);
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UnhookWindowsHookEx` in this scope
[INFO] [stdout]   --> src/keyboard.rs:98:33
[INFO] [stdout]    |
[INFO] [stdout] 98 |                         let _ = UnhookWindowsHookEx(hook);
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]   --> src/keyboard.rs:99:33
[INFO] [stdout]    |
[INFO] [stdout] 99 |                         let _ = DestroyWindow(window);
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:112:21
[INFO] [stdout]     |
[INFO] [stdout] 112 |             window: HWND(window as _),
[INFO] [stdout]     |                     ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:120:60
[INFO] [stdout]     |
[INFO] [stdout] 120 |             let _ = PostMessageW(Some(self.window), PAUSE, WPARAM(paused as usize), LPARAM(0));
[INFO] [stdout]     |                                                            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:120:85
[INFO] [stdout]     |
[INFO] [stdout] 120 |             let _ = PostMessageW(Some(self.window), PAUSE, WPARAM(paused as usize), LPARAM(0));
[INFO] [stdout]     |                                                                                     ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:120:21
[INFO] [stdout]     |
[INFO] [stdout] 120 |             let _ = PostMessageW(Some(self.window), PAUSE, WPARAM(paused as usize), LPARAM(0));
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:130:17
[INFO] [stdout]     |
[INFO] [stdout] 130 |                 WPARAM(hold_ms as usize),
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:131:17
[INFO] [stdout]     |
[INFO] [stdout] 131 |                 LPARAM(0),
[INFO] [stdout]     |                 ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:127:21
[INFO] [stdout]     |
[INFO] [stdout] 127 |             let _ = PostMessageW(
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:139:60
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let _ = PostMessageW(Some(self.window), RESET, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                            ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:139:71
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let _ = PostMessageW(Some(self.window), RESET, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                                       ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:139:21
[INFO] [stdout]     |
[INFO] [stdout] 139 |             let _ = PostMessageW(Some(self.window), RESET, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:148:63
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let _ = PostMessageW(Some(self.window), WM_CLOSE, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:148:74
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let _ = PostMessageW(Some(self.window), WM_CLOSE, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                                          ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:148:21
[INFO] [stdout]     |
[INFO] [stdout] 148 |             let _ = PostMessageW(Some(self.window), WM_CLOSE, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetAsyncKeyState` in this scope
[INFO] [stdout]    --> src/keyboard.rs:161:24
[INFO] [stdout]     |
[INFO] [stdout] 161 |             .any(|key| GetAsyncKeyState(key.0 as i32) < 0)
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyState` in this scope
[INFO] [stdout]    --> src/keyboard.rs:167:14
[INFO] [stdout]     |
[INFO] [stdout] 167 |     unsafe { GetKeyState(VK_CAPITAL.0 as i32) & 1 != 0 }
[INFO] [stdout]     |              ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowThreadProcessId` in this scope
[INFO] [stdout]    --> src/keyboard.rs:173:22
[INFO] [stdout]     |
[INFO] [stdout] 173 |         let thread = GetWindowThreadProcessId(window, None);
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetKeyboardLayout` in this scope
[INFO] [stdout]    --> src/keyboard.rs:174:42
[INFO] [stdout]     |
[INFO] [stdout] 174 |         thread != 0 && is_chinese_layout(GetKeyboardLayout(thread))
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope
[INFO] [stdout]    --> src/keyboard.rs:187:20
[INFO] [stdout]     |
[INFO] [stdout] 187 |             return CallNextHookEx(None, code, wparam, lparam);
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope
[INFO] [stdout]    --> src/keyboard.rs:191:20
[INFO] [stdout]     |
[INFO] [stdout] 191 |             return CallNextHookEx(None, code, wparam, lparam);
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetForegroundWindow` in this scope
[INFO] [stdout]    --> src/keyboard.rs:223:34
[INFO] [stdout]     |
[INFO] [stdout] 223 |                 let foreground = GetForegroundWindow();
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:230:20
[INFO] [stdout]     |
[INFO] [stdout] 230 |                 if SetTimer(Some(state.window), HOLD_TIMER, state.hold_ms, None) == 0 {
[INFO] [stdout]     |                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:240:25
[INFO] [stdout]     |
[INFO] [stdout] 240 |                 let _ = KillTimer(Some(state.window), HOLD_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetForegroundWindow` in this scope
[INFO] [stdout]    --> src/keyboard.rs:241:20
[INFO] [stdout]     |
[INFO] [stdout] 241 |                 if GetForegroundWindow() != state.foreground
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:254:13
[INFO] [stdout]     |
[INFO] [stdout] 254 |             LRESULT(1)
[INFO] [stdout]     |             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CallNextHookEx` in this scope
[INFO] [stdout]    --> src/keyboard.rs:256:13
[INFO] [stdout]     |
[INFO] [stdout] 256 |             CallNextHookEx(None, code, wparam, lparam)
[INFO] [stdout]     |             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:272:13
[INFO] [stdout]     |
[INFO] [stdout] 272 |             WPARAM(value),
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:273:13
[INFO] [stdout]     |
[INFO] [stdout] 273 |             LPARAM(foreground.0 as isize),
[INFO] [stdout]     |             ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:269:17
[INFO] [stdout]     |
[INFO] [stdout] 269 |         let _ = PostMessageW(
[INFO] [stdout]     |                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `KEYBD_EVENT_FLAGS` in this scope
[INFO] [stdout]    --> src/keyboard.rs:289:25
[INFO] [stdout]     |
[INFO] [stdout] 289 |                         KEYBD_EVENT_FLAGS::default()
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^ use of undeclared type `KEYBD_EVENT_FLAGS`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendInput` in this scope
[INFO] [stdout]    --> src/keyboard.rs:299:20
[INFO] [stdout]     |
[INFO] [stdout] 299 |         let sent = SendInput(&inputs, size_of::<INPUT>() as i32) as usize;
[INFO] [stdout]     |                    ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetForegroundWindow` in this scope
[INFO] [stdout]    --> src/keyboard.rs:317:28
[INFO] [stdout]     |
[INFO] [stdout] 317 |                         if GetForegroundWindow() != state.foreground
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:327:37
[INFO] [stdout]     |
[INFO] [stdout] 327 | ...                   let _ = KillTimer(Some(window), HOLD_TIMER);
[INFO] [stdout]     |                               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `HWND` in this scope
[INFO] [stdout]    --> src/keyboard.rs:335:38
[INFO] [stdout]     |
[INFO] [stdout] 335 |                     let foreground = HWND(lparam.0 as _);
[INFO] [stdout]     |                                      ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetForegroundWindow` in this scope
[INFO] [stdout]    --> src/keyboard.rs:337:42
[INFO] [stdout]     |
[INFO] [stdout] 337 |                         && foreground == GetForegroundWindow()
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:358:29
[INFO] [stdout]     |
[INFO] [stdout] 358 | ...                   SetTimer(Some(window), CONFIRM_TIMER, 20, None);
[INFO] [stdout]     |                       ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:364:25
[INFO] [stdout]     |
[INFO] [stdout] 364 |                 let _ = KillTimer(Some(window), CONFIRM_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:375:29
[INFO] [stdout]     |
[INFO] [stdout] 375 | ...                   WPARAM(caps_on() as usize),
[INFO] [stdout]     |                       ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 375 -                             WPARAM(caps_on() as usize),
[INFO] [stdout] 375 +                             wparam(caps_on() as usize),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/keyboard.rs:376:29
[INFO] [stdout]     |
[INFO] [stdout] 376 | ...                   LPARAM(0),
[INFO] [stdout]     |                       ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 376 -                             LPARAM(0),
[INFO] [stdout] 376 +                             lparam(0),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:372:33
[INFO] [stdout]     |
[INFO] [stdout] 372 |                         let _ = PostMessageW(
[INFO] [stdout]     |                                 ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:387:25
[INFO] [stdout]     |
[INFO] [stdout] 387 |                 let _ = KillTimer(Some(window), HOLD_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:397:25
[INFO] [stdout]     |
[INFO] [stdout] 397 |                 let _ = KillTimer(Some(window), HOLD_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/keyboard.rs:398:25
[INFO] [stdout]     |
[INFO] [stdout] 398 |                 let _ = KillTimer(Some(window), CONFIRM_TIMER);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope
[INFO] [stdout]    --> src/keyboard.rs:400:25
[INFO] [stdout]     |
[INFO] [stdout] 400 |             WM_CLOSE => PostQuitMessage(0),
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]    --> src/keyboard.rs:401:25
[INFO] [stdout]     |
[INFO] [stdout] 401 |             _ => return DefWindowProcW(window, message, wparam, lparam),
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/keyboard.rs:403:9
[INFO] [stdout]     |
[INFO] [stdout] 403 |         LRESULT(0)
[INFO] [stdout]     |         ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope
[INFO] [stdout]   --> src/osd.rs:40:16
[INFO] [stdout]    |
[INFO] [stdout] 40 |             if RegisterClassW(&class) == 0 {
[INFO] [stdout]    |                ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope
[INFO] [stdout]   --> src/osd.rs:43:26
[INFO] [stdout]    |
[INFO] [stdout] 43 |             let window = CreateWindowExW(
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/osd.rs:61:33
[INFO] [stdout]    |
[INFO] [stdout] 61 |             let result = (|| -> Result<Self> {
[INFO] [stdout]    |                                 ^^^^^^ ---- supplied 1 generic argument
[INFO] [stdout]    |                                 |
[INFO] [stdout]    |                                 expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 61 |             let result = (|| -> Result<Self, E> {
[INFO] [stdout]    |                                            +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `COLORREF` in this scope
[INFO] [stdout]   --> src/osd.rs:62:52
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 SetLayeredWindowAttributes(window, COLORREF(0), 255, LWA_ALPHA)?;
[INFO] [stdout]    |                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLayeredWindowAttributes` in this scope
[INFO] [stdout]   --> src/osd.rs:62:17
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 SetLayeredWindowAttributes(window, COLORREF(0), 255, LWA_ALPHA)?;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmSetWindowAttribute` in this scope
[INFO] [stdout]   --> src/osd.rs:63:17
[INFO] [stdout]    |
[INFO] [stdout] 63 |                 DwmSetWindowAttribute(
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmSetWindowAttribute` in this scope
[INFO] [stdout]   --> src/osd.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |                 DwmSetWindowAttribute(
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmExtendFrameIntoClientArea` in this scope
[INFO] [stdout]   --> src/osd.rs:75:17
[INFO] [stdout]    |
[INFO] [stdout] 75 |                 DwmExtendFrameIntoClientArea(
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DWriteCreateFactory` in this scope
[INFO] [stdout]   --> src/osd.rs:84:45
[INFO] [stdout]    |
[INFO] [stdout] 84 |                 let write: IDWriteFactory = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED)?;
[INFO] [stdout]    |                                             ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
[INFO] [stdout]   --> src/osd.rs:85:53
[INFO] [stdout]    |
[INFO] [stdout] 85 |                 let text_format = |size, weight| -> Result<IDWriteTextFormat> {
[INFO] [stdout]    |                                                     ^^^^^^ ----------------- supplied 1 generic argument
[INFO] [stdout]    |                                                     |
[INFO] [stdout]    |                                                     expected 2 generic arguments
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 85 |                 let text_format = |size, weight| -> Result<IDWriteTextFormat, E> {
[INFO] [stdout]    |                                                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:111:25
[INFO] [stdout]     |
[INFO] [stdout] 111 |                 let _ = DestroyWindow(window);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `POINT` in this scope
[INFO] [stdout]    --> src/osd.rs:126:34
[INFO] [stdout]     |
[INFO] [stdout] 126 |                 MonitorFromPoint(POINT::default(), MONITOR_DEFAULTTOPRIMARY),
[INFO] [stdout]     |                                  ^^^^^ use of undeclared type `POINT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `MonitorFromPoint` in this scope
[INFO] [stdout]    --> src/osd.rs:126:17
[INFO] [stdout]     |
[INFO] [stdout] 126 |                 MonitorFromPoint(POINT::default(), MONITOR_DEFAULTTOPRIMARY),
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMonitorInfoW` in this scope
[INFO] [stdout]    --> src/osd.rs:125:13
[INFO] [stdout]     |
[INFO] [stdout] 125 |             GetMonitorInfoW(
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope
[INFO] [stdout]    --> src/osd.rs:133:13
[INFO] [stdout]     |
[INFO] [stdout] 133 |             SetWindowPos(
[INFO] [stdout]     |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowPos` in this scope
[INFO] [stdout]    --> src/osd.rs:144:13
[INFO] [stdout]     |
[INFO] [stdout] 144 |             SetWindowPos(
[INFO] [stdout]     |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:153:21
[INFO] [stdout]     |
[INFO] [stdout] 153 |             let _ = ShowWindow(self.window, SW_SHOWNOACTIVATE);
[INFO] [stdout]     |                     ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:157:22
[INFO] [stdout]     |
[INFO] [stdout] 157 |                 Some(WPARAM(1)),
[INFO] [stdout]     |                      ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:158:22
[INFO] [stdout]     |
[INFO] [stdout] 158 |                 Some(LPARAM(-1)),
[INFO] [stdout]     |                      ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SendMessageW` in this scope
[INFO] [stdout]    --> src/osd.rs:154:21
[INFO] [stdout]     |
[INFO] [stdout] 154 |             let _ = SendMessageW(
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmFlush` in this scope
[INFO] [stdout]    --> src/osd.rs:161:58
[INFO] [stdout]     |
[INFO] [stdout] 161 |             if let Err(error) = self.draw().and_then(|_| DwmFlush()) {
[INFO] [stdout]     |                                                          ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetWindowLongPtrW` in this scope
[INFO] [stdout]    --> src/osd.rs:166:13
[INFO] [stdout]     |
[INFO] [stdout] 166 |             SetWindowLongPtrW(self.window, GWLP_USERDATA, GetTickCount() as isize);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetTimer` in this scope
[INFO] [stdout]    --> src/osd.rs:167:16
[INFO] [stdout]     |
[INFO] [stdout] 167 |             if SetTimer(Some(self.window), 1, DISPLAY_MS, None) == 0 {
[INFO] [stdout]     |                ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWindowVisible` in this scope
[INFO] [stdout]    --> src/osd.rs:176:22
[INFO] [stdout]     |
[INFO] [stdout] 176 |         if !unsafe { IsWindowVisible(self.window) }.as_bool() {
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `RECT` in this scope
[INFO] [stdout]    --> src/osd.rs:203:30
[INFO] [stdout]     |
[INFO] [stdout] 203 |             let mut client = RECT::default();
[INFO] [stdout]     |                              ^^^^ use of undeclared type `RECT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetClientRect` in this scope
[INFO] [stdout]    --> src/osd.rs:204:13
[INFO] [stdout]     |
[INFO] [stdout] 204 |             GetClientRect(self.window, &mut client)?;
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegGetValueW` in this scope
[INFO] [stdout]    --> src/osd.rs:217:21
[INFO] [stdout]     |
[INFO] [stdout] 217 |             let _ = RegGetValueW(
[INFO] [stdout]     |                     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `BOOL` in this scope
[INFO] [stdout]    --> src/osd.rs:226:24
[INFO] [stdout]     |
[INFO] [stdout] 226 |             let dark = BOOL::from(light == 0);
[INFO] [stdout]     |                        ^^^^ use of undeclared type `BOOL`
[INFO] [stdout]     |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 226 -             let dark = BOOL::from(light == 0);
[INFO] [stdout] 226 +             let dark = bool::from(light == 0);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmSetWindowAttribute` in this scope
[INFO] [stdout]    --> src/osd.rs:227:21
[INFO] [stdout]     |
[INFO] [stdout] 227 |             let _ = DwmSetWindowAttribute(
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS` in this scope
[INFO] [stdout]    --> src/osd.rs:242:17
[INFO] [stdout]     |
[INFO] [stdout] 242 |                 SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS::default(),
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SystemParametersInfoW` in this scope
[INFO] [stdout]    --> src/osd.rs:238:21
[INFO] [stdout]     |
[INFO] [stdout] 238 |             let _ = SystemParametersInfoW(
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `D2D1_COLOR_F` in this scope
[INFO] [stdout]    --> src/osd.rs:262:17
[INFO] [stdout]     |
[INFO] [stdout] 262 |                 D2D1_COLOR_F::default()
[INFO] [stdout]     |                 ^^^^^^^^^^^^ use of undeclared type `D2D1_COLOR_F`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `BOOL` in this scope
[INFO] [stdout]    --> src/osd.rs:294:23
[INFO] [stdout]     |
[INFO] [stdout] 294 |         let enabled = BOOL::from(enabled);
[INFO] [stdout]     |                       ^^^^ use of undeclared type `BOOL`
[INFO] [stdout]     |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 294 -         let enabled = BOOL::from(enabled);
[INFO] [stdout] 294 +         let enabled = bool::from(enabled);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DwmSetWindowAttribute` in this scope
[INFO] [stdout]    --> src/osd.rs:297:13
[INFO] [stdout]     |
[INFO] [stdout] 297 |             DwmSetWindowAttribute(
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/osd.rs:309:21
[INFO] [stdout]     |
[INFO] [stdout] 309 |             let _ = KillTimer(Some(self.window), 1);
[INFO] [stdout]     |                     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:310:21
[INFO] [stdout]     |
[INFO] [stdout] 310 |             let _ = ShowWindow(self.window, SW_HIDE);
[INFO] [stdout]     |                     ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:319:21
[INFO] [stdout]     |
[INFO] [stdout] 319 |             let _ = DestroyWindow(self.window);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetSysColor` in this scope
[INFO] [stdout]    --> src/osd.rs:326:26
[INFO] [stdout]     |
[INFO] [stdout] 326 |     let color = unsafe { GetSysColor(index) };
[INFO] [stdout]     |                          ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `PAINTSTRUCT` in this scope
[INFO] [stdout]    --> src/osd.rs:345:33
[INFO] [stdout]     |
[INFO] [stdout] 345 |                 let mut paint = PAINTSTRUCT::default();
[INFO] [stdout]     |                                 ^^^^^^^^^^^ use of undeclared type `PAINTSTRUCT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `BeginPaint` in this scope
[INFO] [stdout]    --> src/osd.rs:346:17
[INFO] [stdout]     |
[INFO] [stdout] 346 |                 BeginPaint(window, &mut paint);
[INFO] [stdout]     |                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EndPaint` in this scope
[INFO] [stdout]    --> src/osd.rs:347:25
[INFO] [stdout]     |
[INFO] [stdout] 347 |                 let _ = EndPaint(window, &paint);
[INFO] [stdout]     |                         ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:348:36
[INFO] [stdout]     |
[INFO] [stdout] 348 |                 if let Ok(owner) = GetWindow(window, GW_OWNER) {
[INFO] [stdout]     |                                    ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:349:63
[INFO] [stdout]     |
[INFO] [stdout] 349 |                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                               ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 349 -                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), LPARAM(0));
[INFO] [stdout] 349 +                     let _ = PostMessageW(Some(owner), REDRAW, wparam(0), LPARAM(0));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:349:74
[INFO] [stdout]     |
[INFO] [stdout] 349 |                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                                                                          ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 349 -                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), LPARAM(0));
[INFO] [stdout] 349 +                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), lparam(0));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostMessageW` in this scope
[INFO] [stdout]    --> src/osd.rs:349:29
[INFO] [stdout]     |
[INFO] [stdout] 349 |                     let _ = PostMessageW(Some(owner), REDRAW, WPARAM(0), LPARAM(0));
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:351:17
[INFO] [stdout]     |
[INFO] [stdout] 351 |                 LRESULT(0)
[INFO] [stdout]     |                 ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetWindowLongPtrW` in this scope
[INFO] [stdout]    --> src/osd.rs:355:52
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     && GetTickCount().wrapping_sub(GetWindowLongPtrW(window, GWLP_USERDATA) as u32)
[INFO] [stdout]     |                                                    ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:358:28
[INFO] [stdout]     |
[INFO] [stdout] 358 |                     return LRESULT(0);
[INFO] [stdout]     |                            ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `KillTimer` in this scope
[INFO] [stdout]    --> src/osd.rs:360:25
[INFO] [stdout]     |
[INFO] [stdout] 360 |                 let _ = KillTimer(Some(window), 1);
[INFO] [stdout]     |                         ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope
[INFO] [stdout]    --> src/osd.rs:361:25
[INFO] [stdout]     |
[INFO] [stdout] 361 |                 let _ = ShowWindow(window, SW_HIDE);
[INFO] [stdout]     |                         ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:362:17
[INFO] [stdout]     |
[INFO] [stdout] 362 |                 LRESULT(0)
[INFO] [stdout]     |                 ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:364:33
[INFO] [stdout]     |
[INFO] [stdout] 364 |             WM_MOUSEACTIVATE => LRESULT(MA_NOACTIVATE as isize),
[INFO] [stdout]     |                                 ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:366:62
[INFO] [stdout]     |
[INFO] [stdout] 366 |             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), LPARAM(-1)),
[INFO] [stdout]     |                                                              ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 366 -             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), LPARAM(-1)),
[INFO] [stdout] 366 +             WM_NCACTIVATE => DefWindowProcW(window, message, wparam(1), LPARAM(-1)),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LPARAM` in this scope
[INFO] [stdout]    --> src/osd.rs:366:73
[INFO] [stdout]     |
[INFO] [stdout] 366 |             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), LPARAM(-1)),
[INFO] [stdout]     |                                                                         ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 366 -             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), LPARAM(-1)),
[INFO] [stdout] 366 +             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), lparam(-1)),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]    --> src/osd.rs:366:30
[INFO] [stdout]     |
[INFO] [stdout] 366 |             WM_NCACTIVATE => DefWindowProcW(window, message, WPARAM(1), LPARAM(-1)),
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope
[INFO] [stdout]    --> src/osd.rs:367:29
[INFO] [stdout]     |
[INFO] [stdout] 367 |             WM_NCHITTEST => LRESULT(HTTRANSPARENT as isize),
[INFO] [stdout]     |                             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope
[INFO] [stdout]    --> src/osd.rs:368:18
[INFO] [stdout]     |
[INFO] [stdout] 368 |             _ => DefWindowProcW(window, message, wparam, lparam),
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `D2D1CreateFactory` in this scope
[INFO] [stdout]    --> src/osd.rs:376:37
[INFO] [stdout]     |
[INFO] [stdout] 376 |         let factory: ID2D1Factory = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, None)?;
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegGetValueW` in this scope
[INFO] [stdout]   --> src/settings.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |         RegGetValueW(
[INFO] [stdout]    |         ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegSetKeyValueW` in this scope
[INFO] [stdout]   --> src/settings.rs:63:9
[INFO] [stdout]    |
[INFO] [stdout] 63 |         RegSetKeyValueW(
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegGetValueW` in this scope
[INFO] [stdout]   --> src/settings.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |         RegGetValueW(
[INFO] [stdout]    |         ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegDeleteKeyValueW` in this scope
[INFO] [stdout]   --> src/settings.rs:99:26
[INFO] [stdout]    |
[INFO] [stdout] 99 |             let status = RegDeleteKeyValueW(HKEY_CURRENT_USER, RUN, w!("WinCaps"));
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope
[INFO] [stdout]    --> src/settings.rs:109:43
[INFO] [stdout]     |
[INFO] [stdout] 109 |             .chain(executable.as_os_str().encode_wide())
[INFO] [stdout]     |                                           ^^^^^^^^^^^ method not found in `&OsStr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegSetKeyValueW` in this scope
[INFO] [stdout]    --> src/settings.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |         RegSetKeyValueW(
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0408, E0422, E0425, E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `wincaps` (bin "wincaps") due to 468 previous errors
[INFO] running `Command { std: "docker" "inspect" "be6edde5beb95d33d0fd7bb66148b8ad9ad1f43823a302aa9ac9ccae7a118225", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "be6edde5beb95d33d0fd7bb66148b8ad9ad1f43823a302aa9ac9ccae7a118225", kill_on_drop: false }`
[INFO] [stdout] be6edde5beb95d33d0fd7bb66148b8ad9ad1f43823a302aa9ac9ccae7a118225
