[INFO] updating cached repository https://github.com/nganhkhoa/pdb_for_nonpagedpool [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] [stderr] From https://github.com/nganhkhoa/pdb_for_nonpagedpool [INFO] [stderr] 060f222..1707b30 master -> master [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1707b301ffc15058c390d5cec617bb8170cb9bd2 [INFO] checking nganhkhoa/pdb_for_nonpagedpool against try#c8bdaa84ec1b37f18f30375e196a65b7602f3790 for pr-73345 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnganhkhoa%2Fpdb_for_nonpagedpool" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nganhkhoa/pdb_for_nonpagedpool on toolchain c8bdaa84ec1b37f18f30375e196a65b7602f3790 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3/source/.cargo/config [INFO] started tweaking git repo https://github.com/nganhkhoa/pdb_for_nonpagedpool [INFO] finished tweaking git repo https://github.com/nganhkhoa/pdb_for_nonpagedpool [INFO] tweaked toml for git repo https://github.com/nganhkhoa/pdb_for_nonpagedpool written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/nganhkhoa/pdb_for_nonpagedpool already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e26585fa400c022df7ba8ad36f69411553f7d2476db1c3b2a3d90ab2c83b37ca [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e26585fa400c022df7ba8ad36f69411553f7d2476db1c3b2a3d90ab2c83b37ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e26585fa400c022df7ba8ad36f69411553f7d2476db1c3b2a3d90ab2c83b37ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e26585fa400c022df7ba8ad36f69411553f7d2476db1c3b2a3d90ab2c83b37ca", kill_on_drop: false }` [INFO] [stdout] e26585fa400c022df7ba8ad36f69411553f7d2476db1c3b2a3d90ab2c83b37ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:6c9ffe128752d56c8d75334ed354142a5229917ed99767f56566dd8e857ad726" "/opt/rustwide/cargo-home/bin/cargo" "+c8bdaa84ec1b37f18f30375e196a65b7602f3790" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 57f11b3f0d290beac628362ac5b9fe78385d8700b31f1a0df1e8e6b97f982682 [INFO] running `Command { std: "docker" "start" "-a" "57f11b3f0d290beac628362ac5b9fe78385d8700b31f1a0df1e8e6b97f982682", kill_on_drop: false }` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling memchr v2.3.2 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Compiling encoding_rs v0.8.22 [INFO] [stderr] Checking dtoa v0.4.5 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Compiling serde_json v1.0.55 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking widestring v0.4.2 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking app_dirs v1.2.1 [INFO] [stderr] Checking http v0.2.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling scroll v0.9.2 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling mime_guess v2.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.54 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Compiling openssl v0.10.28 [INFO] [stderr] Checking chrono v0.4.10 [INFO] [stderr] Checking tokio v0.2.11 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Compiling scroll_derive v0.9.5 [INFO] [stderr] Checking tokio-util v0.2.0 [INFO] [stderr] Checking pdb v0.5.0 [INFO] [stderr] Checking h2 v0.2.1 [INFO] [stderr] Checking tokio-tls v0.3.0 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Checking pin-project v0.4.8 [INFO] [stderr] Checking hyper v0.13.2 [INFO] [stderr] Checking hyper-tls v0.4.1 [INFO] [stderr] Checking reqwest v0.10.1 [INFO] [stderr] Checking lpus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/windows.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::ntdef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/windows.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::minwindef::{DWORD, HKEY, HMODULE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::winnt::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::ioapiset::{DeviceIoControl}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::errhandlingapi::{GetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::fileapi::{CreateFileA, CREATE_ALWAYS}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::handleapi::{INVALID_HANDLE_VALUE, CloseHandle}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::um::libloaderapi::{LoadLibraryA, GetProcAddress}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::um::processthreadsapi::{GetCurrentProcess, OpenProcessToken}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::um::sysinfoapi::{GetTickCount64}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::securitybaseapi::{AdjustTokenPrivileges}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::um::winbase::{LookupPrivilegeValueA}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | use winapi::um::winreg::{RegCreateKeyExA, RegSetValueExA, RegCloseKey, HKEY_LOCAL_MACHINE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/driver_state.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::ntdef::{NTSTATUS}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/driver_state.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::{DWORD}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/driver_state.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::winioctl::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/windows.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::shared::ntdef::*; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/windows.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::minwindef::{DWORD, HKEY, HMODULE}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::winnt::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::ioapiset::{DeviceIoControl}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::errhandlingapi::{GetLastError}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::fileapi::{CreateFileA, CREATE_ALWAYS}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::um::handleapi::{INVALID_HANDLE_VALUE, CloseHandle}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::um::libloaderapi::{LoadLibraryA, GetProcAddress}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | use winapi::um::processthreadsapi::{GetCurrentProcess, OpenProcessToken}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | use winapi::um::sysinfoapi::{GetTickCount64}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use winapi::um::securitybaseapi::{AdjustTokenPrivileges}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use winapi::um::winbase::{LookupPrivilegeValueA}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/windows.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | use winapi::um::winreg::{RegCreateKeyExA, RegSetValueExA, RegCloseKey, HKEY_LOCAL_MACHINE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/driver_state.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::shared::ntdef::{NTSTATUS}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/driver_state.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::{DWORD}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/driver_state.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::winioctl::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `LUID` [INFO] [stdout] --> src/windows.rs:127:28 [INFO] [stdout] | [INFO] [stdout] 127 | let mut luid = LUID::default(); [INFO] [stdout] | ^^^^ use of undeclared type or module `LUID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `UNICODE_STRING` [INFO] [stdout] --> src/windows.rs:172:42 [INFO] [stdout] | [INFO] [stdout] 172 | let mut str_driver_reg_unicode = UNICODE_STRING::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type or module `UNICODE_STRING` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `UNICODE_STRING` [INFO] [stdout] --> src/windows.rs:195:42 [INFO] [stdout] | [INFO] [stdout] 195 | let mut str_driver_reg_unicode = UNICODE_STRING::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type or module `UNICODE_STRING` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `LUID` [INFO] [stdout] --> src/windows.rs:127:28 [INFO] [stdout] | [INFO] [stdout] 127 | let mut luid = LUID::default(); [INFO] [stdout] | ^^^^ use of undeclared type or module `LUID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OSVERSIONINFOW` in this scope [INFO] [stdout] --> src/windows.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | pub version_info: OSVERSIONINFOW, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/windows.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | driver_handle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/windows.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | ntdll: HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:49:40 [INFO] [stdout] | [INFO] [stdout] 49 | nt_load_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:49:60 [INFO] [stdout] | [INFO] [stdout] 49 | nt_load_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:50:42 [INFO] [stdout] | [INFO] [stdout] 50 | nt_unload_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:50:62 [INFO] [stdout] | [INFO] [stdout] 50 | nt_unload_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:51:46 [INFO] [stdout] | [INFO] [stdout] 51 | rtl_init_unicode_str: extern "system" fn(PUNICODE_STRING, PCWSTR), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PCWSTR` in this scope [INFO] [stdout] --> src/windows.rs:51:63 [INFO] [stdout] | [INFO] [stdout] 51 | rtl_init_unicode_str: extern "system" fn(PUNICODE_STRING, PCWSTR), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PRTL_OSVERSIONINFOW` in this scope [INFO] [stdout] --> src/windows.rs:52:41 [INFO] [stdout] | [INFO] [stdout] 52 | rtl_get_version: extern "system" fn(PRTL_OSVERSIONINFOW) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:52:65 [INFO] [stdout] | [INFO] [stdout] 52 | rtl_get_version: extern "system" fn(PRTL_OSVERSIONINFOW) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `OSVERSIONINFOW` in this scope [INFO] [stdout] --> src/windows.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | let mut version_info = OSVERSIONINFOW { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/windows.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | let ntdll: HMODULE; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:81:48 [INFO] [stdout] | [INFO] [stdout] 81 | let nt_load_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:81:68 [INFO] [stdout] | [INFO] [stdout] 81 | let nt_load_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:82:50 [INFO] [stdout] | [INFO] [stdout] 82 | let nt_unload_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:82:70 [INFO] [stdout] | [INFO] [stdout] 82 | let nt_unload_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:83:54 [INFO] [stdout] | [INFO] [stdout] 83 | let rtl_init_unicode_str: extern "system" fn(PUNICODE_STRING, PCWSTR); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PCWSTR` in this scope [INFO] [stdout] --> src/windows.rs:83:71 [INFO] [stdout] | [INFO] [stdout] 83 | let rtl_init_unicode_str: extern "system" fn(PUNICODE_STRING, PCWSTR); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PRTL_OSVERSIONINFOW` in this scope [INFO] [stdout] --> src/windows.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let rtl_get_version: extern "system" fn(PRTL_OSVERSIONINFOW) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:84:73 [INFO] [stdout] | [INFO] [stdout] 84 | let rtl_get_version: extern "system" fn(PRTL_OSVERSIONINFOW) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/windows.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | ntdll = LoadLibraryA(str_ntdll.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/windows.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | let nt_load_driver_ = GetProcAddress(ntdll, str_nt_load_driver.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/windows.rs:90:37 [INFO] [stdout] | [INFO] [stdout] 90 | let nt_unload_driver_ = GetProcAddress(ntdll, str_nt_unload_driver.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/windows.rs:91:41 [INFO] [stdout] | [INFO] [stdout] 91 | let rtl_init_unicode_str_ = GetProcAddress(ntdll, str_rtl_init_unicode_str.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/windows.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | let rtl_get_version_ = GetProcAddress(ntdll, str_rtl_get_version.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HKEY` in this scope [INFO] [stdout] --> src/windows.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | let mut registry_key: HKEY = null_mut(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `UNICODE_STRING` [INFO] [stdout] --> src/windows.rs:172:42 [INFO] [stdout] | [INFO] [stdout] 172 | let mut str_driver_reg_unicode = UNICODE_STRING::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type or module `UNICODE_STRING` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegCreateKeyExA` in this scope [INFO] [stdout] --> src/windows.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | RegCreateKeyExA( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HKEY_LOCAL_MACHINE` in this scope [INFO] [stdout] --> src/windows.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | HKEY_LOCAL_MACHINE, str_registry_path.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `REG_OPTION_NON_VOLATILE` in this scope [INFO] [stdout] --> src/windows.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | REG_OPTION_NON_VOLATILE, KEY_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KEY_WRITE` in this scope [INFO] [stdout] --> src/windows.rs:104:42 [INFO] [stdout] | [INFO] [stdout] 104 | REG_OPTION_NON_VOLATILE, KEY_WRITE, [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/windows.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | (str_type.as_ptr(), REG_DWORD, type_value.as_ptr(), 4), [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/windows.rs:112:46 [INFO] [stdout] | [INFO] [stdout] 112 | (str_error_control.as_ptr(), REG_DWORD, error_control_value.as_ptr(), 4), [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/windows.rs:113:38 [INFO] [stdout] | [INFO] [stdout] 113 | (str_start.as_ptr(), REG_DWORD, start_value.as_ptr(), 4), [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/windows.rs:114:43 [INFO] [stdout] | [INFO] [stdout] 114 | (str_image_path.as_ptr(), REG_SZ, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegSetValueExA` in this scope [INFO] [stdout] --> src/windows.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | RegSetValueExA( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegCloseKey` in this scope [INFO] [stdout] --> src/windows.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | RegCloseKey(registry_key); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/windows.rs:126:35 [INFO] [stdout] | [INFO] [stdout] 126 | let mut token_handle: HANDLE = null_mut(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcessToken` in this scope [INFO] [stdout] --> src/windows.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &mut token_handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/windows.rs:128:30 [INFO] [stdout] | [INFO] [stdout] 128 | OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &mut token_handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_ADJUST_PRIVILEGES` in this scope [INFO] [stdout] --> src/windows.rs:128:51 [INFO] [stdout] | [INFO] [stdout] 128 | OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &mut token_handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LookupPrivilegeValueA` in this scope [INFO] [stdout] --> src/windows.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | LookupPrivilegeValueA(null_mut(), str_se_load_driver_privilege.as_ptr(), &mut luid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TOKEN_PRIVILEGES` in this scope [INFO] [stdout] --> src/windows.rs:130:39 [INFO] [stdout] | [INFO] [stdout] 130 | let mut new_token_state = TOKEN_PRIVILEGES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LUID_AND_ATTRIBUTES` in this scope [INFO] [stdout] --> src/windows.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 132 | Privileges: [LUID_AND_ATTRIBUTES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SE_PRIVILEGE_ENABLED` in this scope [INFO] [stdout] --> src/windows.rs:134:33 [INFO] [stdout] | [INFO] [stdout] 134 | Attributes: SE_PRIVILEGE_ENABLED [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AdjustTokenPrivileges` in this scope [INFO] [stdout] --> src/windows.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | AdjustTokenPrivileges( [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/windows.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | CloseHandle(token_handle); [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/windows.rs:155:28 [INFO] [stdout] | [INFO] [stdout] 155 | driver_handle: INVALID_HANDLE_VALUE, [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/windows.rs:165:31 [INFO] [stdout] | [INFO] [stdout] 165 | self.driver_handle != INVALID_HANDLE_VALUE [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:168:38 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn load_driver(&mut self) -> NTSTATUS { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/windows.rs:177:33 [INFO] [stdout] | [INFO] [stdout] 177 | let driver_file_handle: HANDLE = unsafe { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileA` in this scope [INFO] [stdout] --> src/windows.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | CreateFileA(filename.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stdout] --> src/windows.rs:179:25 [INFO] [stdout] | [INFO] [stdout] 179 | GENERIC_READ | GENERIC_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> src/windows.rs:179:40 [INFO] [stdout] | [INFO] [stdout] 179 | GENERIC_READ | GENERIC_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stdout] --> src/windows.rs:180:40 [INFO] [stdout] | [INFO] [stdout] 180 | 0, null_mut(), CREATE_ALWAYS, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ATTRIBUTE_NORMAL` in this scope [INFO] [stdout] --> src/windows.rs:181:25 [INFO] [stdout] | [INFO] [stdout] 181 | FILE_ATTRIBUTE_NORMAL, null_mut()) [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/windows.rs:184:34 [INFO] [stdout] | [INFO] [stdout] 184 | if driver_file_handle == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:193:36 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn unload_driver(&self) -> NTSTATUS { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:201:39 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn get_build_number(&self) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTickCount64` in this scope [INFO] [stdout] --> src/windows.rs:221:42 [INFO] [stdout] | [INFO] [stdout] 221 | let system_up_time_ms = unsafe { GetTickCount64() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:235:41 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn device_io(&self, code: DWORD, inbuf: &mut T, outbuf: &mut E) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:235:82 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn device_io(&self, code: DWORD, inbuf: &mut T, outbuf: &mut E) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:237:82 [INFO] [stdout] | [INFO] [stdout] 237 | ... inbuf as *mut _ as *mut c_void, size_of_val(inbuf) as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:238:84 [INFO] [stdout] | [INFO] [stdout] 238 | ... outbuf as *mut _ as *mut c_void, size_of_val(outbuf) as DWORD) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:241:39 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn device_io_raw(&self, code: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:242:61 [INFO] [stdout] | [INFO] [stdout] 242 | input_ptr: *mut c_void, input_len: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:243:63 [INFO] [stdout] | [INFO] [stdout] 243 | output_ptr: *mut c_void, output_len: DWORD) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:243:73 [INFO] [stdout] | [INFO] [stdout] 243 | output_ptr: *mut c_void, output_len: DWORD) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:245:33 [INFO] [stdout] | [INFO] [stdout] 245 | let mut bytes_returned: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/windows.rs:247:26 [INFO] [stdout] | [INFO] [stdout] 247 | let status = DeviceIoControl(self.driver_handle, code, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/windows.rs:252:61 [INFO] [stdout] | [INFO] [stdout] 252 | println!("device io failed: last error {}", GetLastError()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/driver_state.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | const SIOCTL_TYPE: DWORD = 40000; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/driver_state.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_code(&self) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:51:42 [INFO] [stdout] | [INFO] [stdout] 51 | DriverAction::SetupOffset => CTL_CODE(SIOCTL_TYPE, 0x900, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_IN_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:51:71 [INFO] [stdout] | [INFO] [stdout] 51 | DriverAction::SetupOffset => CTL_CODE(SIOCTL_TYPE, 0x900, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:51:89 [INFO] [stdout] | [INFO] [stdout] 51 | DriverAction::SetupOffset => CTL_CODE(SIOCTL_TYPE, 0x900, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:52:44 [INFO] [stdout] | [INFO] [stdout] 52 | DriverAction::GetKernelBase => CTL_CODE(SIOCTL_TYPE, 0x901, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_OUT_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:52:73 [INFO] [stdout] | [INFO] [stdout] 52 | DriverAction::GetKernelBase => CTL_CODE(SIOCTL_TYPE, 0x901, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:52:92 [INFO] [stdout] | [INFO] [stdout] 52 | DriverAction::GetKernelBase => CTL_CODE(SIOCTL_TYPE, 0x901, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | DriverAction::ScanPsActiveHead => CTL_CODE(SIOCTL_TYPE, 0x902, METHOD_NEITHER, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_NEITHER` in this scope [INFO] [stdout] --> src/driver_state.rs:53:76 [INFO] [stdout] | [INFO] [stdout] 53 | DriverAction::ScanPsActiveHead => CTL_CODE(SIOCTL_TYPE, 0x902, METHOD_NEITHER, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:53:92 [INFO] [stdout] | [INFO] [stdout] 53 | DriverAction::ScanPsActiveHead => CTL_CODE(SIOCTL_TYPE, 0x902, METHOD_NEITHER, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:54:39 [INFO] [stdout] | [INFO] [stdout] 54 | DriverAction::ScanPool => CTL_CODE(SIOCTL_TYPE, 0x903, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_IN_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:54:68 [INFO] [stdout] | [INFO] [stdout] 54 | DriverAction::ScanPool => CTL_CODE(SIOCTL_TYPE, 0x903, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:54:86 [INFO] [stdout] | [INFO] [stdout] 54 | DriverAction::ScanPool => CTL_CODE(SIOCTL_TYPE, 0x903, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:55:45 [INFO] [stdout] | [INFO] [stdout] 55 | DriverAction::ScanPoolRemote => CTL_CODE(SIOCTL_TYPE, 0x904, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_IN_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:55:74 [INFO] [stdout] | [INFO] [stdout] 55 | DriverAction::ScanPoolRemote => CTL_CODE(SIOCTL_TYPE, 0x904, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:55:92 [INFO] [stdout] | [INFO] [stdout] 55 | DriverAction::ScanPoolRemote => CTL_CODE(SIOCTL_TYPE, 0x904, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:56:49 [INFO] [stdout] | [INFO] [stdout] 56 | DriverAction::DereferenceAddress => CTL_CODE(SIOCTL_TYPE, 0xA00, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_OUT_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:56:78 [INFO] [stdout] | [INFO] [stdout] 56 | DriverAction::DereferenceAddress => CTL_CODE(SIOCTL_TYPE, 0xA00, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `UNICODE_STRING` [INFO] [stdout] --> src/windows.rs:195:42 [INFO] [stdout] | [INFO] [stdout] 195 | let mut str_driver_reg_unicode = UNICODE_STRING::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type or module `UNICODE_STRING` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:56:97 [INFO] [stdout] | [INFO] [stdout] 56 | DriverAction::DereferenceAddress => CTL_CODE(SIOCTL_TYPE, 0xA00, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:57:42 [INFO] [stdout] | [INFO] [stdout] 57 | DriverAction::HideProcess => CTL_CODE(SIOCTL_TYPE, 0xA01, METHOD_IN_DIRECT, FILE_ANY_ACCESS) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_IN_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:57:71 [INFO] [stdout] | [INFO] [stdout] 57 | DriverAction::HideProcess => CTL_CODE(SIOCTL_TYPE, 0xA01, METHOD_IN_DIRECT, FILE_ANY_ACCESS) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:57:89 [INFO] [stdout] | [INFO] [stdout] 57 | DriverAction::HideProcess => CTL_CODE(SIOCTL_TYPE, 0xA01, METHOD_IN_DIRECT, FILE_ANY_ACCESS) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/driver_state.rs:92:34 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn startup(&mut self) -> NTSTATUS { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/driver_state.rs:102:31 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn shutdown(&self) -> NTSTATUS { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/driver_state.rs:263:100 [INFO] [stdout] | [INFO] [stdout] 263 | ... &mut input as *mut _ as *mut c_void, size_of_val(&input) as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/driver_state.rs:264:77 [INFO] [stdout] | [INFO] [stdout] 264 | ... outptr as *mut c_void, output_len as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `OSVERSIONINFOW` in this scope [INFO] [stdout] --> src/windows.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | pub version_info: OSVERSIONINFOW, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/windows.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | driver_handle: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/windows.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | ntdll: HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:49:40 [INFO] [stdout] | [INFO] [stdout] 49 | nt_load_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:49:60 [INFO] [stdout] | [INFO] [stdout] 49 | nt_load_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:50:42 [INFO] [stdout] | [INFO] [stdout] 50 | nt_unload_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:50:62 [INFO] [stdout] | [INFO] [stdout] 50 | nt_unload_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:51:46 [INFO] [stdout] | [INFO] [stdout] 51 | rtl_init_unicode_str: extern "system" fn(PUNICODE_STRING, PCWSTR), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PCWSTR` in this scope [INFO] [stdout] --> src/windows.rs:51:63 [INFO] [stdout] | [INFO] [stdout] 51 | rtl_init_unicode_str: extern "system" fn(PUNICODE_STRING, PCWSTR), [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PRTL_OSVERSIONINFOW` in this scope [INFO] [stdout] --> src/windows.rs:52:41 [INFO] [stdout] | [INFO] [stdout] 52 | rtl_get_version: extern "system" fn(PRTL_OSVERSIONINFOW) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:52:65 [INFO] [stdout] | [INFO] [stdout] 52 | rtl_get_version: extern "system" fn(PRTL_OSVERSIONINFOW) -> NTSTATUS, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `OSVERSIONINFOW` in this scope [INFO] [stdout] --> src/windows.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | let mut version_info = OSVERSIONINFOW { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/windows.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | let ntdll: HMODULE; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:81:48 [INFO] [stdout] | [INFO] [stdout] 81 | let nt_load_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:81:68 [INFO] [stdout] | [INFO] [stdout] 81 | let nt_load_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:82:50 [INFO] [stdout] | [INFO] [stdout] 82 | let nt_unload_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:82:70 [INFO] [stdout] | [INFO] [stdout] 82 | let nt_unload_driver: extern "system" fn(PUNICODE_STRING) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PUNICODE_STRING` in this scope [INFO] [stdout] --> src/windows.rs:83:54 [INFO] [stdout] | [INFO] [stdout] 83 | let rtl_init_unicode_str: extern "system" fn(PUNICODE_STRING, PCWSTR); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PCWSTR` in this scope [INFO] [stdout] --> src/windows.rs:83:71 [INFO] [stdout] | [INFO] [stdout] 83 | let rtl_init_unicode_str: extern "system" fn(PUNICODE_STRING, PCWSTR); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PRTL_OSVERSIONINFOW` in this scope [INFO] [stdout] --> src/windows.rs:84:49 [INFO] [stdout] | [INFO] [stdout] 84 | let rtl_get_version: extern "system" fn(PRTL_OSVERSIONINFOW) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:84:73 [INFO] [stdout] | [INFO] [stdout] 84 | let rtl_get_version: extern "system" fn(PRTL_OSVERSIONINFOW) -> NTSTATUS; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LoadLibraryA` in this scope [INFO] [stdout] --> src/windows.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | ntdll = LoadLibraryA(str_ntdll.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/windows.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | let nt_load_driver_ = GetProcAddress(ntdll, str_nt_load_driver.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/windows.rs:90:37 [INFO] [stdout] | [INFO] [stdout] 90 | let nt_unload_driver_ = GetProcAddress(ntdll, str_nt_unload_driver.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/windows.rs:91:41 [INFO] [stdout] | [INFO] [stdout] 91 | let rtl_init_unicode_str_ = GetProcAddress(ntdll, str_rtl_init_unicode_str.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/windows.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | let rtl_get_version_ = GetProcAddress(ntdll, str_rtl_get_version.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HKEY` in this scope [INFO] [stdout] --> src/windows.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | let mut registry_key: HKEY = null_mut(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegCreateKeyExA` in this scope [INFO] [stdout] --> src/windows.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | RegCreateKeyExA( [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `HKEY_LOCAL_MACHINE` in this scope [INFO] [stdout] --> src/windows.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | HKEY_LOCAL_MACHINE, str_registry_path.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `REG_OPTION_NON_VOLATILE` in this scope [INFO] [stdout] --> src/windows.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | REG_OPTION_NON_VOLATILE, KEY_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `KEY_WRITE` in this scope [INFO] [stdout] --> src/windows.rs:104:42 [INFO] [stdout] | [INFO] [stdout] 104 | REG_OPTION_NON_VOLATILE, KEY_WRITE, [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/windows.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | (str_type.as_ptr(), REG_DWORD, type_value.as_ptr(), 4), [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/windows.rs:112:46 [INFO] [stdout] | [INFO] [stdout] 112 | (str_error_control.as_ptr(), REG_DWORD, error_control_value.as_ptr(), 4), [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/windows.rs:113:38 [INFO] [stdout] | [INFO] [stdout] 113 | (str_start.as_ptr(), REG_DWORD, start_value.as_ptr(), 4), [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/windows.rs:114:43 [INFO] [stdout] | [INFO] [stdout] 114 | (str_image_path.as_ptr(), REG_SZ, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegSetValueExA` in this scope [INFO] [stdout] --> src/windows.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | RegSetValueExA( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegCloseKey` in this scope [INFO] [stdout] --> src/windows.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | RegCloseKey(registry_key); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/windows.rs:126:35 [INFO] [stdout] | [INFO] [stdout] 126 | let mut token_handle: HANDLE = null_mut(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcessToken` in this scope [INFO] [stdout] --> src/windows.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &mut token_handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetCurrentProcess` in this scope [INFO] [stdout] --> src/windows.rs:128:30 [INFO] [stdout] | [INFO] [stdout] 128 | OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &mut token_handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_ADJUST_PRIVILEGES` in this scope [INFO] [stdout] --> src/windows.rs:128:51 [INFO] [stdout] | [INFO] [stdout] 128 | OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &mut token_handle); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LookupPrivilegeValueA` in this scope [INFO] [stdout] --> src/windows.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | LookupPrivilegeValueA(null_mut(), str_se_load_driver_privilege.as_ptr(), &mut luid); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TOKEN_PRIVILEGES` in this scope [INFO] [stdout] --> src/windows.rs:130:39 [INFO] [stdout] | [INFO] [stdout] 130 | let mut new_token_state = TOKEN_PRIVILEGES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `LUID_AND_ATTRIBUTES` in this scope [INFO] [stdout] --> src/windows.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 132 | Privileges: [LUID_AND_ATTRIBUTES { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SE_PRIVILEGE_ENABLED` in this scope [INFO] [stdout] --> src/windows.rs:134:33 [INFO] [stdout] | [INFO] [stdout] 134 | Attributes: SE_PRIVILEGE_ENABLED [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `AdjustTokenPrivileges` in this scope [INFO] [stdout] --> src/windows.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | AdjustTokenPrivileges( [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/windows.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | CloseHandle(token_handle); [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/windows.rs:155:28 [INFO] [stdout] | [INFO] [stdout] 155 | driver_handle: INVALID_HANDLE_VALUE, [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/windows.rs:165:31 [INFO] [stdout] | [INFO] [stdout] 165 | self.driver_handle != INVALID_HANDLE_VALUE [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:168:38 [INFO] [stdout] | [INFO] [stdout] 168 | pub fn load_driver(&mut self) -> NTSTATUS { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/windows.rs:177:33 [INFO] [stdout] | [INFO] [stdout] 177 | let driver_file_handle: HANDLE = unsafe { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateFileA` in this scope [INFO] [stdout] --> src/windows.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | CreateFileA(filename.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_READ` in this scope [INFO] [stdout] --> src/windows.rs:179:25 [INFO] [stdout] | [INFO] [stdout] 179 | GENERIC_READ | GENERIC_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENERIC_WRITE` in this scope [INFO] [stdout] --> src/windows.rs:179:40 [INFO] [stdout] | [INFO] [stdout] 179 | GENERIC_READ | GENERIC_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CREATE_ALWAYS` in this scope [INFO] [stdout] --> src/windows.rs:180:40 [INFO] [stdout] | [INFO] [stdout] 180 | 0, null_mut(), CREATE_ALWAYS, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ATTRIBUTE_NORMAL` in this scope [INFO] [stdout] --> src/windows.rs:181:25 [INFO] [stdout] | [INFO] [stdout] 181 | FILE_ATTRIBUTE_NORMAL, null_mut()) [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/windows.rs:184:34 [INFO] [stdout] | [INFO] [stdout] 184 | if driver_file_handle == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/windows.rs:193:36 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn unload_driver(&self) -> NTSTATUS { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:201:39 [INFO] [stdout] | [INFO] [stdout] 201 | pub fn get_build_number(&self) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetTickCount64` in this scope [INFO] [stdout] --> src/windows.rs:221:42 [INFO] [stdout] | [INFO] [stdout] 221 | let system_up_time_ms = unsafe { GetTickCount64() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:235:41 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn device_io(&self, code: DWORD, inbuf: &mut T, outbuf: &mut E) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:235:82 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn device_io(&self, code: DWORD, inbuf: &mut T, outbuf: &mut E) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:237:82 [INFO] [stdout] | [INFO] [stdout] 237 | ... inbuf as *mut _ as *mut c_void, size_of_val(inbuf) as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:238:84 [INFO] [stdout] | [INFO] [stdout] 238 | ... outbuf as *mut _ as *mut c_void, size_of_val(outbuf) as DWORD) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:241:39 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn device_io_raw(&self, code: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:242:61 [INFO] [stdout] | [INFO] [stdout] 242 | input_ptr: *mut c_void, input_len: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:243:63 [INFO] [stdout] | [INFO] [stdout] 243 | output_ptr: *mut c_void, output_len: DWORD) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:243:73 [INFO] [stdout] | [INFO] [stdout] 243 | output_ptr: *mut c_void, output_len: DWORD) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/windows.rs:245:33 [INFO] [stdout] | [INFO] [stdout] 245 | let mut bytes_returned: DWORD = 0; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeviceIoControl` in this scope [INFO] [stdout] --> src/windows.rs:247:26 [INFO] [stdout] | [INFO] [stdout] 247 | let status = DeviceIoControl(self.driver_handle, code, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/windows.rs:252:61 [INFO] [stdout] | [INFO] [stdout] 252 | println!("device io failed: last error {}", GetLastError()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/driver_state.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | const SIOCTL_TYPE: DWORD = 40000; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/driver_state.rs:49:31 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_code(&self) -> DWORD { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:51:42 [INFO] [stdout] | [INFO] [stdout] 51 | DriverAction::SetupOffset => CTL_CODE(SIOCTL_TYPE, 0x900, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_IN_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:51:71 [INFO] [stdout] | [INFO] [stdout] 51 | DriverAction::SetupOffset => CTL_CODE(SIOCTL_TYPE, 0x900, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:51:89 [INFO] [stdout] | [INFO] [stdout] 51 | DriverAction::SetupOffset => CTL_CODE(SIOCTL_TYPE, 0x900, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:52:44 [INFO] [stdout] | [INFO] [stdout] 52 | DriverAction::GetKernelBase => CTL_CODE(SIOCTL_TYPE, 0x901, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_OUT_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:52:73 [INFO] [stdout] | [INFO] [stdout] 52 | DriverAction::GetKernelBase => CTL_CODE(SIOCTL_TYPE, 0x901, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:52:92 [INFO] [stdout] | [INFO] [stdout] 52 | DriverAction::GetKernelBase => CTL_CODE(SIOCTL_TYPE, 0x901, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:53:47 [INFO] [stdout] | [INFO] [stdout] 53 | DriverAction::ScanPsActiveHead => CTL_CODE(SIOCTL_TYPE, 0x902, METHOD_NEITHER, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_NEITHER` in this scope [INFO] [stdout] --> src/driver_state.rs:53:76 [INFO] [stdout] | [INFO] [stdout] 53 | DriverAction::ScanPsActiveHead => CTL_CODE(SIOCTL_TYPE, 0x902, METHOD_NEITHER, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:53:92 [INFO] [stdout] | [INFO] [stdout] 53 | DriverAction::ScanPsActiveHead => CTL_CODE(SIOCTL_TYPE, 0x902, METHOD_NEITHER, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:54:39 [INFO] [stdout] | [INFO] [stdout] 54 | DriverAction::ScanPool => CTL_CODE(SIOCTL_TYPE, 0x903, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_IN_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:54:68 [INFO] [stdout] | [INFO] [stdout] 54 | DriverAction::ScanPool => CTL_CODE(SIOCTL_TYPE, 0x903, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:54:86 [INFO] [stdout] | [INFO] [stdout] 54 | DriverAction::ScanPool => CTL_CODE(SIOCTL_TYPE, 0x903, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:55:45 [INFO] [stdout] | [INFO] [stdout] 55 | DriverAction::ScanPoolRemote => CTL_CODE(SIOCTL_TYPE, 0x904, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_IN_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:55:74 [INFO] [stdout] | [INFO] [stdout] 55 | DriverAction::ScanPoolRemote => CTL_CODE(SIOCTL_TYPE, 0x904, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:55:92 [INFO] [stdout] | [INFO] [stdout] 55 | DriverAction::ScanPoolRemote => CTL_CODE(SIOCTL_TYPE, 0x904, METHOD_IN_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:56:49 [INFO] [stdout] | [INFO] [stdout] 56 | DriverAction::DereferenceAddress => CTL_CODE(SIOCTL_TYPE, 0xA00, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_OUT_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:56:78 [INFO] [stdout] | [INFO] [stdout] 56 | DriverAction::DereferenceAddress => CTL_CODE(SIOCTL_TYPE, 0xA00, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:56:97 [INFO] [stdout] | [INFO] [stdout] 56 | DriverAction::DereferenceAddress => CTL_CODE(SIOCTL_TYPE, 0xA00, METHOD_OUT_DIRECT, FILE_ANY_ACCESS), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CTL_CODE` in this scope [INFO] [stdout] --> src/driver_state.rs:57:42 [INFO] [stdout] | [INFO] [stdout] 57 | DriverAction::HideProcess => CTL_CODE(SIOCTL_TYPE, 0xA01, METHOD_IN_DIRECT, FILE_ANY_ACCESS) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `METHOD_IN_DIRECT` in this scope [INFO] [stdout] --> src/driver_state.rs:57:71 [INFO] [stdout] | [INFO] [stdout] 57 | DriverAction::HideProcess => CTL_CODE(SIOCTL_TYPE, 0xA01, METHOD_IN_DIRECT, FILE_ANY_ACCESS) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `FILE_ANY_ACCESS` in this scope [INFO] [stdout] --> src/driver_state.rs:57:89 [INFO] [stdout] | [INFO] [stdout] 57 | DriverAction::HideProcess => CTL_CODE(SIOCTL_TYPE, 0xA01, METHOD_IN_DIRECT, FILE_ANY_ACCESS) [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/driver_state.rs:92:34 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn startup(&mut self) -> NTSTATUS { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NTSTATUS` in this scope [INFO] [stdout] --> src/driver_state.rs:102:31 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn shutdown(&self) -> NTSTATUS { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/driver_state.rs:263:100 [INFO] [stdout] | [INFO] [stdout] 263 | ... &mut input as *mut _ as *mut c_void, size_of_val(&input) as DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/driver_state.rs:264:77 [INFO] [stdout] | [INFO] [stdout] 264 | ... outptr as *mut c_void, output_len as DWORD); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 117 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lpus`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 117 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "57f11b3f0d290beac628362ac5b9fe78385d8700b31f1a0df1e8e6b97f982682", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57f11b3f0d290beac628362ac5b9fe78385d8700b31f1a0df1e8e6b97f982682", kill_on_drop: false }` [INFO] [stdout] 57f11b3f0d290beac628362ac5b9fe78385d8700b31f1a0df1e8e6b97f982682