[INFO] cloning repository https://github.com/Bigmounten/Disable_Sleep
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Bigmounten/Disable_Sleep" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBigmounten%2FDisable_Sleep", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBigmounten%2FDisable_Sleep'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f45007f52639ff6765cad92967a73740d6c37e7e
[INFO] checking Bigmounten/Disable_Sleep against try#ddcf048784667508cd676fef4667f88ae15628a3 for pr-148271
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBigmounten%2FDisable_Sleep" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] [stderr] Updating files:  80% (644/801)
Updating files:  81% (649/801)
Updating files:  82% (657/801)
Updating files:  83% (665/801)
Updating files:  84% (673/801)
Updating files:  85% (681/801)
Updating files:  86% (689/801)
Updating files:  87% (697/801)
Updating files:  88% (705/801)
Updating files:  89% (713/801)
Updating files:  90% (721/801)
Updating files:  91% (729/801)
Updating files:  92% (737/801)
Updating files:  93% (745/801)
Updating files:  94% (753/801)
Updating files:  95% (761/801)
Updating files:  96% (769/801)
Updating files:  97% (777/801)
Updating files:  97% (780/801)
Updating files:  98% (785/801)
Updating files:  99% (793/801)
Updating files: 100% (801/801)
Updating files: 100% (801/801), done.
[INFO] started tweaking git repo https://github.com/Bigmounten/Disable_Sleep
[INFO] finished tweaking git repo https://github.com/Bigmounten/Disable_Sleep
[INFO] tweaked toml for git repo https://github.com/Bigmounten/Disable_Sleep written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Bigmounten/Disable_Sleep on toolchain ddcf048784667508cd676fef4667f88ae15628a3
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ddcf048784667508cd676fef4667f88ae15628a3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Bigmounten/Disable_Sleep 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" "+ddcf048784667508cd676fef4667f88ae15628a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddcf048784667508cd676fef4667f88ae15628a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] dbdb59b19914156c84ab59389a9372b74ae3ab240385529478c07d27983c3e1e
[INFO] running `Command { std: "docker" "start" "-a" "dbdb59b19914156c84ab59389a9372b74ae3ab240385529478c07d27983c3e1e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "dbdb59b19914156c84ab59389a9372b74ae3ab240385529478c07d27983c3e1e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dbdb59b19914156c84ab59389a9372b74ae3ab240385529478c07d27983c3e1e", kill_on_drop: false }`
[INFO] [stdout] dbdb59b19914156c84ab59389a9372b74ae3ab240385529478c07d27983c3e1e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ddcf048784667508cd676fef4667f88ae15628a3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 8aff3affc114029b4ba988c4578bcaa4649a7557d68e3c7cabc45838cc47cdf0
[INFO] running `Command { std: "docker" "start" "-a" "8aff3affc114029b4ba988c4578bcaa4649a7557d68e3c7cabc45838cc47cdf0", kill_on_drop: false }`
[INFO] [stderr]    Compiling windows_x86_64_gnu v0.52.6
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling syn v2.0.87
[INFO] [stderr]     Checking windows-targets v0.52.6
[INFO] [stderr]     Checking windows-result v0.2.0
[INFO] [stderr]     Checking windows-strings v0.1.0
[INFO] [stderr]    Compiling toml v0.5.11
[INFO] [stderr]    Compiling winres v0.1.12
[INFO] [stderr]    Compiling disable_sleep v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling windows-implement v0.58.0
[INFO] [stderr]    Compiling windows-interface v0.58.0
[INFO] [stderr]     Checking windows-core v0.58.0
[INFO] [stderr]     Checking windows v0.58.0
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout] 10 | use windows::Win32::Foundation::*;
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:11:14
[INFO] [stdout]    |
[INFO] [stdout] 11 | use windows::Win32::System::Power::{
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:14:14
[INFO] [stdout]    |
[INFO] [stdout] 14 | use windows::Win32::System::Threading::{
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | use windows::Win32::Security::{
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | use windows::Win32::UI::WindowsAndMessaging::*;
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:22:14
[INFO] [stdout]    |
[INFO] [stdout] 22 | use windows::Win32::UI::Shell::*;
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:23:14
[INFO] [stdout]    |
[INFO] [stdout] 23 | use windows::Win32::System::Services::*;
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:24:14
[INFO] [stdout]    |
[INFO] [stdout] 24 | use windows::Win32::System::Diagnostics::ToolHelp::*;
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:32:21
[INFO] [stdout]    |
[INFO] [stdout] 32 |         if windows::Win32::System::Threading::OpenProcessToken(
[INFO] [stdout]    |                     ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:44:33
[INFO] [stdout]    |
[INFO] [stdout] 44 |         let mut luid = windows::Win32::Foundation::LUID::default();
[INFO] [stdout]    |                                 ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]   --> src/main.rs:48:22
[INFO] [stdout]    |
[INFO] [stdout] 48 |             windows::core::PCWSTR(debug_privilege.as_ptr()),
[INFO] [stdout]    |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]   --> src/main.rs:77:22
[INFO] [stdout]    |
[INFO] [stdout] 77 |             windows::core::PCWSTR(shutdown_privilege.as_ptr()),
[INFO] [stdout]    |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:152:26
[INFO] [stdout]     |
[INFO] [stdout] 152 |                 windows::core::PCWSTR(class_name.as_ptr()),
[INFO] [stdout]     |                          ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:153:26
[INFO] [stdout]     |
[INFO] [stdout] 153 |                 windows::core::PCWSTR(title_for_find.as_ptr()),
[INFO] [stdout]     |                          ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:169:22
[INFO] [stdout]     |
[INFO] [stdout] 169 |             windows::core::PCWSTR(message_wide.as_ptr()),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:170:22
[INFO] [stdout]     |
[INFO] [stdout] 170 |             windows::core::PCWSTR(title_wide.as_ptr()),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout] 10 | use windows::Win32::Foundation::*;
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:11:14
[INFO] [stdout]    |
[INFO] [stdout] 11 | use windows::Win32::System::Power::{
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:14:14
[INFO] [stdout]    |
[INFO] [stdout] 14 | use windows::Win32::System::Threading::{
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | use windows::Win32::Security::{
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | use windows::Win32::UI::WindowsAndMessaging::*;
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:22:14
[INFO] [stdout]    |
[INFO] [stdout] 22 | use windows::Win32::UI::Shell::*;
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:23:14
[INFO] [stdout]    |
[INFO] [stdout] 23 | use windows::Win32::System::Services::*;
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:24:14
[INFO] [stdout]    |
[INFO] [stdout] 24 | use windows::Win32::System::Diagnostics::ToolHelp::*;
[INFO] [stdout]    |              ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:385:22
[INFO] [stdout]     |
[INFO] [stdout] 385 |             windows::core::PCWSTR(service_name_wide.as_ptr()),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:453:22
[INFO] [stdout]     |
[INFO] [stdout] 453 |             windows::core::PCWSTR(service_name_wide.as_ptr()),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:474:22
[INFO] [stdout]     |
[INFO] [stdout] 474 |             windows::core::PCWSTR::null(),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:32:21
[INFO] [stdout]    |
[INFO] [stdout] 32 |         if windows::Win32::System::Threading::OpenProcessToken(
[INFO] [stdout]    |                     ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:475:22
[INFO] [stdout]     |
[INFO] [stdout] 475 |             windows::core::PCWSTR::null(),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:477:22
[INFO] [stdout]     |
[INFO] [stdout] 477 |             windows::core::PCWSTR::null(),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Win32` in `windows`
[INFO] [stdout]   --> src/main.rs:44:33
[INFO] [stdout]    |
[INFO] [stdout] 44 |         let mut luid = windows::Win32::Foundation::LUID::default();
[INFO] [stdout]    |                                 ^^^^^ could not find `Win32` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:478:22
[INFO] [stdout]     |
[INFO] [stdout] 478 |             windows::core::PCWSTR::null(),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]   --> src/main.rs:48:22
[INFO] [stdout]    |
[INFO] [stdout] 48 |             windows::core::PCWSTR(debug_privilege.as_ptr()),
[INFO] [stdout]    |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:480:22
[INFO] [stdout]     |
[INFO] [stdout] 480 |             windows::core::PCWSTR::null(),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]   --> src/main.rs:77:22
[INFO] [stdout]    |
[INFO] [stdout] 77 |             windows::core::PCWSTR(shutdown_privilege.as_ptr()),
[INFO] [stdout]    |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_CLOSE` in this scope
[INFO] [stdout]    --> src/main.rs:159:50
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     let _ = PostMessageW(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 `MB_OK` in this scope
[INFO] [stdout]    --> src/main.rs:171:13
[INFO] [stdout]     |
[INFO] [stdout] 171 |             MB_OK | MB_ICONINFORMATION | MB_SETFOREGROUND,
[INFO] [stdout]     |             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MB_ICONINFORMATION` in this scope
[INFO] [stdout]    --> src/main.rs:171:21
[INFO] [stdout]     |
[INFO] [stdout] 171 |             MB_OK | MB_ICONINFORMATION | MB_SETFOREGROUND,
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MB_SETFOREGROUND` in this scope
[INFO] [stdout]    --> src/main.rs:171:42
[INFO] [stdout]     |
[INFO] [stdout] 171 |             MB_OK | MB_ICONINFORMATION | MB_SETFOREGROUND,
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_ALL_ACCESS` in this scope
[INFO] [stdout]    --> src/main.rs:215:13
[INFO] [stdout]     |
[INFO] [stdout] 215 |             SC_MANAGER_ALL_ACCESS | SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_CONNECT` in this scope
[INFO] [stdout]    --> src/main.rs:215:37
[INFO] [stdout]     |
[INFO] [stdout] 215 |             SC_MANAGER_ALL_ACCESS | SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE,
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_ENUMERATE_SERVICE` in this scope
[INFO] [stdout]    --> src/main.rs:215:58
[INFO] [stdout]     |
[INFO] [stdout] 215 |             SC_MANAGER_ALL_ACCESS | SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE,
[INFO] [stdout]     |                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPPROCESS` in this scope
[INFO] [stdout]    --> src/main.rs:226:55
[INFO] [stdout]     |
[INFO] [stdout] 226 |         let snapshot = match CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope
[INFO] [stdout]    --> src/main.rs:234:24
[INFO] [stdout]     |
[INFO] [stdout] 234 |         if snapshot == INVALID_HANDLE_VALUE {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESSENTRY32W` in this scope
[INFO] [stdout]    --> src/main.rs:239:24
[INFO] [stdout]     |
[INFO] [stdout] 239 |         let mut pe32 = PROCESSENTRY32W {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32W` in this scope
[INFO] [stdout]    --> src/main.rs:240:36
[INFO] [stdout]     |
[INFO] [stdout] 240 |             dwSize: mem::size_of::<PROCESSENTRY32W>() 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] 207 | fn terminate_process_via_service<PROCESSENTRY32W>(process_name: &str) -> Result<u32, String> {
[INFO] [stdout]     |                                 +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPPROCESS` in this scope
[INFO] [stdout]    --> src/main.rs:297:55
[INFO] [stdout]     |
[INFO] [stdout] 297 |         let snapshot = match CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope
[INFO] [stdout]    --> src/main.rs:302:24
[INFO] [stdout]     |
[INFO] [stdout] 302 |         if snapshot == INVALID_HANDLE_VALUE {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESSENTRY32W` in this scope
[INFO] [stdout]    --> src/main.rs:306:24
[INFO] [stdout]     |
[INFO] [stdout] 306 |         let mut pe32 = PROCESSENTRY32W {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32W` in this scope
[INFO] [stdout]    --> src/main.rs:307:36
[INFO] [stdout]     |
[INFO] [stdout] 307 |             dwSize: mem::size_of::<PROCESSENTRY32W>() 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] 293 | fn kill_process_by_name_safe<PROCESSENTRY32W>(process_name: &str) -> Result<u32, String> {
[INFO] [stdout]     |                             +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIM_SETVERSION` in this scope
[INFO] [stdout]    --> src/main.rs:358:35
[INFO] [stdout]     |
[INFO] [stdout] 358 |         let _ = Shell_NotifyIconW(NIM_SETVERSION, &NOTIFYICONDATAW::default());
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_ALL_ACCESS` in this scope
[INFO] [stdout]    --> src/main.rs:369:13
[INFO] [stdout]     |
[INFO] [stdout] 369 |             SC_MANAGER_ALL_ACCESS,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_STOP` in this scope
[INFO] [stdout]    --> src/main.rs:386:13
[INFO] [stdout]     |
[INFO] [stdout] 386 |             SERVICE_STOP | SERVICE_QUERY_STATUS,
[INFO] [stdout]     |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_QUERY_STATUS` in this scope
[INFO] [stdout]    --> src/main.rs:386:28
[INFO] [stdout]     |
[INFO] [stdout] 386 |             SERVICE_STOP | SERVICE_QUERY_STATUS,
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_STOPPED` in this scope
[INFO] [stdout]    --> src/main.rs:409:45
[INFO] [stdout]     |
[INFO] [stdout] 409 |         if service_status.dwCurrentState == SERVICE_STOPPED {
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_CONTROL_STOP` in this scope
[INFO] [stdout]    --> src/main.rs:417:46
[INFO] [stdout]     |
[INFO] [stdout] 417 |         let result = ControlService(service, SERVICE_CONTROL_STOP, &mut control_status);
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_ALL_ACCESS` in this scope
[INFO] [stdout]    --> src/main.rs:437:13
[INFO] [stdout]     |
[INFO] [stdout] 437 |             SC_MANAGER_ALL_ACCESS,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_CHANGE_CONFIG` in this scope
[INFO] [stdout]    --> src/main.rs:454:13
[INFO] [stdout]     |
[INFO] [stdout] 454 |             SERVICE_CHANGE_CONFIG | SERVICE_QUERY_CONFIG,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_QUERY_CONFIG` in this scope
[INFO] [stdout]    --> src/main.rs:454:37
[INFO] [stdout]     |
[INFO] [stdout] 454 |             SERVICE_CHANGE_CONFIG | SERVICE_QUERY_CONFIG,
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_NO_CHANGE` in this scope
[INFO] [stdout]    --> src/main.rs:471:31
[INFO] [stdout]     |
[INFO] [stdout] 471 |             ENUM_SERVICE_TYPE(SERVICE_NO_CHANGE),
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_DISABLED` in this scope
[INFO] [stdout]    --> src/main.rs:472:13
[INFO] [stdout]     |
[INFO] [stdout] 472 |             SERVICE_DISABLED,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_NO_CHANGE` in this scope
[INFO] [stdout]    --> src/main.rs:473:27
[INFO] [stdout]     |
[INFO] [stdout] 473 |             SERVICE_ERROR(SERVICE_NO_CHANGE),
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:152:26
[INFO] [stdout]     |
[INFO] [stdout] 152 |                 windows::core::PCWSTR(class_name.as_ptr()),
[INFO] [stdout]     |                          ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HANDLE`
[INFO] [stdout]   --> src/main.rs:30:25
[INFO] [stdout]    |
[INFO] [stdout] 30 |         let mut token = HANDLE::default();
[INFO] [stdout]    |                         ^^^^^^ use of undeclared type `HANDLE`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stdout]    --> src/main.rs:100:17
[INFO] [stdout]     |
[INFO] [stdout] 100 |         let _ = CloseHandle(token);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:153:26
[INFO] [stdout]     |
[INFO] [stdout] 153 |                 windows::core::PCWSTR(title_for_find.as_ptr()),
[INFO] [stdout]     |                          ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FindWindowW` in this scope
[INFO] [stdout]    --> src/main.rs:151:28
[INFO] [stdout]     |
[INFO] [stdout] 151 |             let msg_hwnd = FindWindowW(
[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/main.rs:159:60
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     let _ = PostMessageW(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/main.rs:159:71
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     let _ = PostMessageW(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/main.rs:159:29
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     let _ = PostMessageW(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 `HWND` in this scope
[INFO] [stdout]    --> src/main.rs:168:13
[INFO] [stdout]     |
[INFO] [stdout] 168 |             HWND(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 `MessageBoxW` in this scope
[INFO] [stdout]    --> src/main.rs:167:9
[INFO] [stdout]     |
[INFO] [stdout] 167 |         MessageBoxW(
[INFO] [stdout]     |         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:169:22
[INFO] [stdout]     |
[INFO] [stdout] 169 |             windows::core::PCWSTR(message_wide.as_ptr()),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenSCManagerW` in this scope
[INFO] [stdout]    --> src/main.rs:212:25
[INFO] [stdout]     |
[INFO] [stdout] 212 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:170:22
[INFO] [stdout]     |
[INFO] [stdout] 170 |             windows::core::PCWSTR(title_wide.as_ptr()),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:212:13
[INFO] [stdout]     |
[INFO] [stdout] 212 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |             ^^^
[INFO] [stdout] ...
[INFO] [stdout] 221 |         if scm.is_invalid() {
[INFO] [stdout]     |            --- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `scm` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 212 |         let scm: /* Type */ = match OpenSCManagerW(
[INFO] [stdout]     |                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope
[INFO] [stdout]    --> src/main.rs:226:30
[INFO] [stdout]     |
[INFO] [stdout] 226 |         let snapshot = match CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:229:25
[INFO] [stdout]     |
[INFO] [stdout] 229 |                 let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:235:21
[INFO] [stdout]     |
[INFO] [stdout] 235 |             let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32FirstW` in this scope
[INFO] [stdout]    --> src/main.rs:248:12
[INFO] [stdout]     |
[INFO] [stdout] 248 |         if Process32FirstW(snapshot, &mut pe32).is_ok() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32NextW` in this scope
[INFO] [stdout]    --> src/main.rs:258:20
[INFO] [stdout]     |
[INFO] [stdout] 258 |                 if Process32NextW(snapshot, &mut pe32).is_err() {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stdout]    --> src/main.rs:264:17
[INFO] [stdout]     |
[INFO] [stdout] 264 |         let _ = CloseHandle(snapshot);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:276:21
[INFO] [stdout]     |
[INFO] [stdout] 276 |                 if !handle.is_invalid() {
[INFO] [stdout]     |                     ^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stdout]    --> src/main.rs:281:29
[INFO] [stdout]     |
[INFO] [stdout] 281 |                     let _ = CloseHandle(handle);
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:286:17
[INFO] [stdout]     |
[INFO] [stdout] 286 |         let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope
[INFO] [stdout]    --> src/main.rs:297:30
[INFO] [stdout]     |
[INFO] [stdout] 297 |         let snapshot = match CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32FirstW` in this scope
[INFO] [stdout]    --> src/main.rs:314:12
[INFO] [stdout]     |
[INFO] [stdout] 314 |         if Process32FirstW(snapshot, &mut pe32).is_ok() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32NextW` in this scope
[INFO] [stdout]    --> src/main.rs:324:20
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 if Process32NextW(snapshot, &mut pe32).is_err() {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stdout]    --> src/main.rs:330:17
[INFO] [stdout]     |
[INFO] [stdout] 330 |         let _ = CloseHandle(snapshot);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:341:21
[INFO] [stdout]     |
[INFO] [stdout] 341 |                 if !handle.is_invalid() {
[INFO] [stdout]     |                     ^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stdout]    --> src/main.rs:345:29
[INFO] [stdout]     |
[INFO] [stdout] 345 |                     let _ = CloseHandle(handle);
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NOTIFYICONDATAW`
[INFO] [stdout]    --> src/main.rs:358:52
[INFO] [stdout]     |
[INFO] [stdout] 358 |         let _ = Shell_NotifyIconW(NIM_SETVERSION, &NOTIFYICONDATAW::default());
[INFO] [stdout]     |                                                    ^^^^^^^^^^^^^^^ use of undeclared type `NOTIFYICONDATAW`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Shell_NotifyIconW` in this scope
[INFO] [stdout]    --> src/main.rs:358:17
[INFO] [stdout]     |
[INFO] [stdout] 358 |         let _ = Shell_NotifyIconW(NIM_SETVERSION, &NOTIFYICONDATAW::default());
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenSCManagerW` in this scope
[INFO] [stdout]    --> src/main.rs:366:25
[INFO] [stdout]     |
[INFO] [stdout] 366 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:366:13
[INFO] [stdout]     |
[INFO] [stdout] 366 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |             ^^^
[INFO] [stdout] ...
[INFO] [stdout] 375 |         if scm.is_invalid() {
[INFO] [stdout]     |            --- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `scm` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 366 |         let scm: /* Type */ = match OpenSCManagerW(
[INFO] [stdout]     |                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenServiceW` in this scope
[INFO] [stdout]    --> src/main.rs:383:29
[INFO] [stdout]     |
[INFO] [stdout] 383 |         let service = match OpenServiceW(
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:390:25
[INFO] [stdout]     |
[INFO] [stdout] 390 |                 let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:383:13
[INFO] [stdout]     |
[INFO] [stdout] 383 |         let service = match OpenServiceW(
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 395 |         if service.is_invalid() {
[INFO] [stdout]     |            ------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `service` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 383 |         let service: /* Type */ = match OpenServiceW(
[INFO] [stdout]     |                    ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:396:21
[INFO] [stdout]     |
[INFO] [stdout] 396 |             let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SERVICE_STATUS`
[INFO] [stdout]    --> src/main.rs:401:34
[INFO] [stdout]     |
[INFO] [stdout] 401 |         let mut service_status = SERVICE_STATUS::default();
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^ use of undeclared type `SERVICE_STATUS`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryServiceStatus` in this scope
[INFO] [stdout]    --> src/main.rs:402:12
[INFO] [stdout]     |
[INFO] [stdout] 402 |         if QueryServiceStatus(service, &mut service_status).is_err() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:403:21
[INFO] [stdout]     |
[INFO] [stdout] 403 |             let _ = CloseServiceHandle(service);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:404:21
[INFO] [stdout]     |
[INFO] [stdout] 404 |             let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:410:21
[INFO] [stdout]     |
[INFO] [stdout] 410 |             let _ = CloseServiceHandle(service);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:411:21
[INFO] [stdout]     |
[INFO] [stdout] 411 |             let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SERVICE_STATUS`
[INFO] [stdout]    --> src/main.rs:416:34
[INFO] [stdout]     |
[INFO] [stdout] 416 |         let mut control_status = SERVICE_STATUS::default();
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^ use of undeclared type `SERVICE_STATUS`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ControlService` in this scope
[INFO] [stdout]    --> src/main.rs:417:22
[INFO] [stdout]     |
[INFO] [stdout] 417 |         let result = ControlService(service, SERVICE_CONTROL_STOP, &mut control_status);
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:419:17
[INFO] [stdout]     |
[INFO] [stdout] 419 |         let _ = CloseServiceHandle(service);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:420:17
[INFO] [stdout]     |
[INFO] [stdout] 420 |         let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenSCManagerW` in this scope
[INFO] [stdout]    --> src/main.rs:434:25
[INFO] [stdout]     |
[INFO] [stdout] 434 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:434:13
[INFO] [stdout]     |
[INFO] [stdout] 434 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |             ^^^
[INFO] [stdout] ...
[INFO] [stdout] 443 |         if scm.is_invalid() {
[INFO] [stdout]     |            --- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `scm` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 434 |         let scm: /* Type */ = match OpenSCManagerW(
[INFO] [stdout]     |                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenServiceW` in this scope
[INFO] [stdout]    --> src/main.rs:451:29
[INFO] [stdout]     |
[INFO] [stdout] 451 |         let service = match OpenServiceW(
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:458:25
[INFO] [stdout]     |
[INFO] [stdout] 458 |                 let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:451:13
[INFO] [stdout]     |
[INFO] [stdout] 451 |         let service = match OpenServiceW(
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 463 |         if service.is_invalid() {
[INFO] [stdout]     |            ------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `service` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 451 |         let service: /* Type */ = match OpenServiceW(
[INFO] [stdout]     |                    ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:464:21
[INFO] [stdout]     |
[INFO] [stdout] 464 |             let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ENUM_SERVICE_TYPE` in this scope
[INFO] [stdout]    --> src/main.rs:471:13
[INFO] [stdout]     |
[INFO] [stdout] 471 |             ENUM_SERVICE_TYPE(SERVICE_NO_CHANGE),
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SERVICE_ERROR` in this scope
[INFO] [stdout]    --> src/main.rs:473:13
[INFO] [stdout]     |
[INFO] [stdout] 473 |             SERVICE_ERROR(SERVICE_NO_CHANGE),
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ChangeServiceConfigW` in this scope
[INFO] [stdout]    --> src/main.rs:469:22
[INFO] [stdout]     |
[INFO] [stdout] 469 |         let result = ChangeServiceConfigW(
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:483:17
[INFO] [stdout]     |
[INFO] [stdout] 483 |         let _ = CloseServiceHandle(service);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:484:17
[INFO] [stdout]     |
[INFO] [stdout] 484 |         let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0422, E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:385:22
[INFO] [stdout]     |
[INFO] [stdout] 385 |             windows::core::PCWSTR(service_name_wide.as_ptr()),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `disable_sleep` (bin "disable_sleep") due to 104 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:453:22
[INFO] [stdout]     |
[INFO] [stdout] 453 |             windows::core::PCWSTR(service_name_wide.as_ptr()),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:474:22
[INFO] [stdout]     |
[INFO] [stdout] 474 |             windows::core::PCWSTR::null(),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:475:22
[INFO] [stdout]     |
[INFO] [stdout] 475 |             windows::core::PCWSTR::null(),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:477:22
[INFO] [stdout]     |
[INFO] [stdout] 477 |             windows::core::PCWSTR::null(),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:478:22
[INFO] [stdout]     |
[INFO] [stdout] 478 |             windows::core::PCWSTR::null(),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `core` in `windows`
[INFO] [stdout]    --> src/main.rs:480:22
[INFO] [stdout]     |
[INFO] [stdout] 480 |             windows::core::PCWSTR::null(),
[INFO] [stdout]     |                      ^^^^ could not find `core` in `windows`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `WM_CLOSE` in this scope
[INFO] [stdout]    --> src/main.rs:159:50
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     let _ = PostMessageW(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 `MB_OK` in this scope
[INFO] [stdout]    --> src/main.rs:171:13
[INFO] [stdout]     |
[INFO] [stdout] 171 |             MB_OK | MB_ICONINFORMATION | MB_SETFOREGROUND,
[INFO] [stdout]     |             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MB_ICONINFORMATION` in this scope
[INFO] [stdout]    --> src/main.rs:171:21
[INFO] [stdout]     |
[INFO] [stdout] 171 |             MB_OK | MB_ICONINFORMATION | MB_SETFOREGROUND,
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MB_SETFOREGROUND` in this scope
[INFO] [stdout]    --> src/main.rs:171:42
[INFO] [stdout]     |
[INFO] [stdout] 171 |             MB_OK | MB_ICONINFORMATION | MB_SETFOREGROUND,
[INFO] [stdout]     |                                          ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_ALL_ACCESS` in this scope
[INFO] [stdout]    --> src/main.rs:215:13
[INFO] [stdout]     |
[INFO] [stdout] 215 |             SC_MANAGER_ALL_ACCESS | SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_CONNECT` in this scope
[INFO] [stdout]    --> src/main.rs:215:37
[INFO] [stdout]     |
[INFO] [stdout] 215 |             SC_MANAGER_ALL_ACCESS | SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE,
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_ENUMERATE_SERVICE` in this scope
[INFO] [stdout]    --> src/main.rs:215:58
[INFO] [stdout]     |
[INFO] [stdout] 215 |             SC_MANAGER_ALL_ACCESS | SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE,
[INFO] [stdout]     |                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPPROCESS` in this scope
[INFO] [stdout]    --> src/main.rs:226:55
[INFO] [stdout]     |
[INFO] [stdout] 226 |         let snapshot = match CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope
[INFO] [stdout]    --> src/main.rs:234:24
[INFO] [stdout]     |
[INFO] [stdout] 234 |         if snapshot == INVALID_HANDLE_VALUE {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESSENTRY32W` in this scope
[INFO] [stdout]    --> src/main.rs:239:24
[INFO] [stdout]     |
[INFO] [stdout] 239 |         let mut pe32 = PROCESSENTRY32W {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32W` in this scope
[INFO] [stdout]    --> src/main.rs:240:36
[INFO] [stdout]     |
[INFO] [stdout] 240 |             dwSize: mem::size_of::<PROCESSENTRY32W>() 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] 207 | fn terminate_process_via_service<PROCESSENTRY32W>(process_name: &str) -> Result<u32, String> {
[INFO] [stdout]     |                                 +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPPROCESS` in this scope
[INFO] [stdout]    --> src/main.rs:297:55
[INFO] [stdout]     |
[INFO] [stdout] 297 |         let snapshot = match CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) {
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope
[INFO] [stdout]    --> src/main.rs:302:24
[INFO] [stdout]     |
[INFO] [stdout] 302 |         if snapshot == INVALID_HANDLE_VALUE {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PROCESSENTRY32W` in this scope
[INFO] [stdout]    --> src/main.rs:306:24
[INFO] [stdout]     |
[INFO] [stdout] 306 |         let mut pe32 = PROCESSENTRY32W {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32W` in this scope
[INFO] [stdout]    --> src/main.rs:307:36
[INFO] [stdout]     |
[INFO] [stdout] 307 |             dwSize: mem::size_of::<PROCESSENTRY32W>() 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] 293 | fn kill_process_by_name_safe<PROCESSENTRY32W>(process_name: &str) -> Result<u32, String> {
[INFO] [stdout]     |                             +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `NIM_SETVERSION` in this scope
[INFO] [stdout]    --> src/main.rs:358:35
[INFO] [stdout]     |
[INFO] [stdout] 358 |         let _ = Shell_NotifyIconW(NIM_SETVERSION, &NOTIFYICONDATAW::default());
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_ALL_ACCESS` in this scope
[INFO] [stdout]    --> src/main.rs:369:13
[INFO] [stdout]     |
[INFO] [stdout] 369 |             SC_MANAGER_ALL_ACCESS,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_STOP` in this scope
[INFO] [stdout]    --> src/main.rs:386:13
[INFO] [stdout]     |
[INFO] [stdout] 386 |             SERVICE_STOP | SERVICE_QUERY_STATUS,
[INFO] [stdout]     |             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_QUERY_STATUS` in this scope
[INFO] [stdout]    --> src/main.rs:386:28
[INFO] [stdout]     |
[INFO] [stdout] 386 |             SERVICE_STOP | SERVICE_QUERY_STATUS,
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_STOPPED` in this scope
[INFO] [stdout]    --> src/main.rs:409:45
[INFO] [stdout]     |
[INFO] [stdout] 409 |         if service_status.dwCurrentState == SERVICE_STOPPED {
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_CONTROL_STOP` in this scope
[INFO] [stdout]    --> src/main.rs:417:46
[INFO] [stdout]     |
[INFO] [stdout] 417 |         let result = ControlService(service, SERVICE_CONTROL_STOP, &mut control_status);
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_ALL_ACCESS` in this scope
[INFO] [stdout]    --> src/main.rs:437:13
[INFO] [stdout]     |
[INFO] [stdout] 437 |             SC_MANAGER_ALL_ACCESS,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_CHANGE_CONFIG` in this scope
[INFO] [stdout]    --> src/main.rs:454:13
[INFO] [stdout]     |
[INFO] [stdout] 454 |             SERVICE_CHANGE_CONFIG | SERVICE_QUERY_CONFIG,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_QUERY_CONFIG` in this scope
[INFO] [stdout]    --> src/main.rs:454:37
[INFO] [stdout]     |
[INFO] [stdout] 454 |             SERVICE_CHANGE_CONFIG | SERVICE_QUERY_CONFIG,
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_NO_CHANGE` in this scope
[INFO] [stdout]    --> src/main.rs:471:31
[INFO] [stdout]     |
[INFO] [stdout] 471 |             ENUM_SERVICE_TYPE(SERVICE_NO_CHANGE),
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_DISABLED` in this scope
[INFO] [stdout]    --> src/main.rs:472:13
[INFO] [stdout]     |
[INFO] [stdout] 472 |             SERVICE_DISABLED,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SERVICE_NO_CHANGE` in this scope
[INFO] [stdout]    --> src/main.rs:473:27
[INFO] [stdout]     |
[INFO] [stdout] 473 |             SERVICE_ERROR(SERVICE_NO_CHANGE),
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HANDLE`
[INFO] [stdout]   --> src/main.rs:30:25
[INFO] [stdout]    |
[INFO] [stdout] 30 |         let mut token = HANDLE::default();
[INFO] [stdout]    |                         ^^^^^^ use of undeclared type `HANDLE`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stdout]    --> src/main.rs:100:17
[INFO] [stdout]     |
[INFO] [stdout] 100 |         let _ = CloseHandle(token);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `FindWindowW` in this scope
[INFO] [stdout]    --> src/main.rs:151:28
[INFO] [stdout]     |
[INFO] [stdout] 151 |             let msg_hwnd = FindWindowW(
[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/main.rs:159:60
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     let _ = PostMessageW(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/main.rs:159:71
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     let _ = PostMessageW(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/main.rs:159:29
[INFO] [stdout]     |
[INFO] [stdout] 159 |                     let _ = PostMessageW(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 `HWND` in this scope
[INFO] [stdout]    --> src/main.rs:168:13
[INFO] [stdout]     |
[INFO] [stdout] 168 |             HWND(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 `MessageBoxW` in this scope
[INFO] [stdout]    --> src/main.rs:167:9
[INFO] [stdout]     |
[INFO] [stdout] 167 |         MessageBoxW(
[INFO] [stdout]     |         ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenSCManagerW` in this scope
[INFO] [stdout]    --> src/main.rs:212:25
[INFO] [stdout]     |
[INFO] [stdout] 212 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:212:13
[INFO] [stdout]     |
[INFO] [stdout] 212 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |             ^^^
[INFO] [stdout] ...
[INFO] [stdout] 221 |         if scm.is_invalid() {
[INFO] [stdout]     |            --- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `scm` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 212 |         let scm: /* Type */ = match OpenSCManagerW(
[INFO] [stdout]     |                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope
[INFO] [stdout]    --> src/main.rs:226:30
[INFO] [stdout]     |
[INFO] [stdout] 226 |         let snapshot = match CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:229:25
[INFO] [stdout]     |
[INFO] [stdout] 229 |                 let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:235:21
[INFO] [stdout]     |
[INFO] [stdout] 235 |             let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32FirstW` in this scope
[INFO] [stdout]    --> src/main.rs:248:12
[INFO] [stdout]     |
[INFO] [stdout] 248 |         if Process32FirstW(snapshot, &mut pe32).is_ok() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32NextW` in this scope
[INFO] [stdout]    --> src/main.rs:258:20
[INFO] [stdout]     |
[INFO] [stdout] 258 |                 if Process32NextW(snapshot, &mut pe32).is_err() {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stdout]    --> src/main.rs:264:17
[INFO] [stdout]     |
[INFO] [stdout] 264 |         let _ = CloseHandle(snapshot);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:276:21
[INFO] [stdout]     |
[INFO] [stdout] 276 |                 if !handle.is_invalid() {
[INFO] [stdout]     |                     ^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stdout]    --> src/main.rs:281:29
[INFO] [stdout]     |
[INFO] [stdout] 281 |                     let _ = CloseHandle(handle);
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:286:17
[INFO] [stdout]     |
[INFO] [stdout] 286 |         let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope
[INFO] [stdout]    --> src/main.rs:297:30
[INFO] [stdout]     |
[INFO] [stdout] 297 |         let snapshot = match CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) {
[INFO] [stdout]     |                              ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32FirstW` in this scope
[INFO] [stdout]    --> src/main.rs:314:12
[INFO] [stdout]     |
[INFO] [stdout] 314 |         if Process32FirstW(snapshot, &mut pe32).is_ok() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32NextW` in this scope
[INFO] [stdout]    --> src/main.rs:324:20
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 if Process32NextW(snapshot, &mut pe32).is_err() {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stdout]    --> src/main.rs:330:17
[INFO] [stdout]     |
[INFO] [stdout] 330 |         let _ = CloseHandle(snapshot);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:341:21
[INFO] [stdout]     |
[INFO] [stdout] 341 |                 if !handle.is_invalid() {
[INFO] [stdout]     |                     ^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseHandle` in this scope
[INFO] [stdout]    --> src/main.rs:345:29
[INFO] [stdout]     |
[INFO] [stdout] 345 |                     let _ = CloseHandle(handle);
[INFO] [stdout]     |                             ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NOTIFYICONDATAW`
[INFO] [stdout]    --> src/main.rs:358:52
[INFO] [stdout]     |
[INFO] [stdout] 358 |         let _ = Shell_NotifyIconW(NIM_SETVERSION, &NOTIFYICONDATAW::default());
[INFO] [stdout]     |                                                    ^^^^^^^^^^^^^^^ use of undeclared type `NOTIFYICONDATAW`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Shell_NotifyIconW` in this scope
[INFO] [stdout]    --> src/main.rs:358:17
[INFO] [stdout]     |
[INFO] [stdout] 358 |         let _ = Shell_NotifyIconW(NIM_SETVERSION, &NOTIFYICONDATAW::default());
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenSCManagerW` in this scope
[INFO] [stdout]    --> src/main.rs:366:25
[INFO] [stdout]     |
[INFO] [stdout] 366 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:366:13
[INFO] [stdout]     |
[INFO] [stdout] 366 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |             ^^^
[INFO] [stdout] ...
[INFO] [stdout] 375 |         if scm.is_invalid() {
[INFO] [stdout]     |            --- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `scm` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 366 |         let scm: /* Type */ = match OpenSCManagerW(
[INFO] [stdout]     |                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenServiceW` in this scope
[INFO] [stdout]    --> src/main.rs:383:29
[INFO] [stdout]     |
[INFO] [stdout] 383 |         let service = match OpenServiceW(
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:390:25
[INFO] [stdout]     |
[INFO] [stdout] 390 |                 let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:383:13
[INFO] [stdout]     |
[INFO] [stdout] 383 |         let service = match OpenServiceW(
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 395 |         if service.is_invalid() {
[INFO] [stdout]     |            ------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `service` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 383 |         let service: /* Type */ = match OpenServiceW(
[INFO] [stdout]     |                    ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:396:21
[INFO] [stdout]     |
[INFO] [stdout] 396 |             let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SERVICE_STATUS`
[INFO] [stdout]    --> src/main.rs:401:34
[INFO] [stdout]     |
[INFO] [stdout] 401 |         let mut service_status = SERVICE_STATUS::default();
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^ use of undeclared type `SERVICE_STATUS`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `QueryServiceStatus` in this scope
[INFO] [stdout]    --> src/main.rs:402:12
[INFO] [stdout]     |
[INFO] [stdout] 402 |         if QueryServiceStatus(service, &mut service_status).is_err() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:403:21
[INFO] [stdout]     |
[INFO] [stdout] 403 |             let _ = CloseServiceHandle(service);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:404:21
[INFO] [stdout]     |
[INFO] [stdout] 404 |             let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:410:21
[INFO] [stdout]     |
[INFO] [stdout] 410 |             let _ = CloseServiceHandle(service);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:411:21
[INFO] [stdout]     |
[INFO] [stdout] 411 |             let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SERVICE_STATUS`
[INFO] [stdout]    --> src/main.rs:416:34
[INFO] [stdout]     |
[INFO] [stdout] 416 |         let mut control_status = SERVICE_STATUS::default();
[INFO] [stdout]     |                                  ^^^^^^^^^^^^^^ use of undeclared type `SERVICE_STATUS`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ControlService` in this scope
[INFO] [stdout]    --> src/main.rs:417:22
[INFO] [stdout]     |
[INFO] [stdout] 417 |         let result = ControlService(service, SERVICE_CONTROL_STOP, &mut control_status);
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:419:17
[INFO] [stdout]     |
[INFO] [stdout] 419 |         let _ = CloseServiceHandle(service);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:420:17
[INFO] [stdout]     |
[INFO] [stdout] 420 |         let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenSCManagerW` in this scope
[INFO] [stdout]    --> src/main.rs:434:25
[INFO] [stdout]     |
[INFO] [stdout] 434 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:434:13
[INFO] [stdout]     |
[INFO] [stdout] 434 |         let scm = match OpenSCManagerW(
[INFO] [stdout]     |             ^^^
[INFO] [stdout] ...
[INFO] [stdout] 443 |         if scm.is_invalid() {
[INFO] [stdout]     |            --- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `scm` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 434 |         let scm: /* Type */ = match OpenSCManagerW(
[INFO] [stdout]     |                ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenServiceW` in this scope
[INFO] [stdout]    --> src/main.rs:451:29
[INFO] [stdout]     |
[INFO] [stdout] 451 |         let service = match OpenServiceW(
[INFO] [stdout]     |                             ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:458:25
[INFO] [stdout]     |
[INFO] [stdout] 458 |                 let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> src/main.rs:451:13
[INFO] [stdout]     |
[INFO] [stdout] 451 |         let service = match OpenServiceW(
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 463 |         if service.is_invalid() {
[INFO] [stdout]     |            ------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `service` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 451 |         let service: /* Type */ = match OpenServiceW(
[INFO] [stdout]     |                    ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:464:21
[INFO] [stdout]     |
[INFO] [stdout] 464 |             let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ENUM_SERVICE_TYPE` in this scope
[INFO] [stdout]    --> src/main.rs:471:13
[INFO] [stdout]     |
[INFO] [stdout] 471 |             ENUM_SERVICE_TYPE(SERVICE_NO_CHANGE),
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SERVICE_ERROR` in this scope
[INFO] [stdout]    --> src/main.rs:473:13
[INFO] [stdout]     |
[INFO] [stdout] 473 |             SERVICE_ERROR(SERVICE_NO_CHANGE),
[INFO] [stdout]     |             ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ChangeServiceConfigW` in this scope
[INFO] [stdout]    --> src/main.rs:469:22
[INFO] [stdout]     |
[INFO] [stdout] 469 |         let result = ChangeServiceConfigW(
[INFO] [stdout]     |                      ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:483:17
[INFO] [stdout]     |
[INFO] [stdout] 483 |         let _ = CloseServiceHandle(service);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CloseServiceHandle` in this scope
[INFO] [stdout]    --> src/main.rs:484:17
[INFO] [stdout]     |
[INFO] [stdout] 484 |         let _ = CloseServiceHandle(scm);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0422, E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `disable_sleep` (bin "disable_sleep" test) due to 104 previous errors
[INFO] running `Command { std: "docker" "inspect" "8aff3affc114029b4ba988c4578bcaa4649a7557d68e3c7cabc45838cc47cdf0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8aff3affc114029b4ba988c4578bcaa4649a7557d68e3c7cabc45838cc47cdf0", kill_on_drop: false }`
[INFO] [stdout] 8aff3affc114029b4ba988c4578bcaa4649a7557d68e3c7cabc45838cc47cdf0
