[INFO] cloning repository https://github.com/zorftw/kdmapper-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zorftw/kdmapper-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzorftw%2Fkdmapper-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzorftw%2Fkdmapper-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 393103acab6b259fe549d644960c503ecbba0e8b [INFO] testing zorftw/kdmapper-rs against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzorftw%2Fkdmapper-rs" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zorftw/kdmapper-rs on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zorftw/kdmapper-rs [INFO] finished tweaking git repo https://github.com/zorftw/kdmapper-rs [INFO] tweaked toml for git repo https://github.com/zorftw/kdmapper-rs written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/zorftw/kdmapper-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] edb93737cb17b32b612cc80012750289a1f680a227ca185ea01a9151b17af92f [INFO] running `Command { std: "docker" "start" "-a" "edb93737cb17b32b612cc80012750289a1f680a227ca185ea01a9151b17af92f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "edb93737cb17b32b612cc80012750289a1f680a227ca185ea01a9151b17af92f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edb93737cb17b32b612cc80012750289a1f680a227ca185ea01a9151b17af92f", kill_on_drop: false }` [INFO] [stdout] edb93737cb17b32b612cc80012750289a1f680a227ca185ea01a9151b17af92f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7340ddef38b430fe0d833be74a8c26d067abb78dfc443f79377a0a0f582e2664 [INFO] running `Command { std: "docker" "start" "-a" "7340ddef38b430fe0d833be74a8c26d067abb78dfc443f79377a0a0f582e2664", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling kdmapper-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: Can't compile, this is exclusive to Windows. [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | compile_error!("Can't compile, this is exclusive to Windows."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read src/util/../mapper/driver.sys: No such file or directory (os error 2) [INFO] [stdout] --> src/util/mod.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | let driver = include_bytes!("../mapper/driver.sys"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::{um::{errhandlingapi::GetLastError, handleapi::INVALID_HANDLE_VALUE}}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/mapper/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/nt/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/pe/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::winnt::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/service/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `winapi` [INFO] [stdout] --> src/util/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::{ [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/mapper/mod.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn load_service(name: &str) -> HANDLE { [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/mapper/mod.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | GetLastError() [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/mapper/mod.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 41 | GetLastError() [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/mapper/mod.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | let res = CreateFileA( [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/mapper/mod.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | 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/mapper/mod.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | GENERIC_READ | GENERIC_WRITE, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `OPEN_EXISTING` in this scope [INFO] [stdout] --> src/mapper/mod.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | OPEN_EXISTING, [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/mapper/mod.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | FILE_ATTRIBUTE_NORMAL, [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/mapper/mod.rs:60:32 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn unload_service(service: HANDLE, name: &str) -> bool { [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/mapper/mod.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | CloseHandle(service); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_REL_BASED_DIR64` in this scope [INFO] [stdout] --> src/mapper/mod.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | if _type == IMAGE_REL_BASED_DIR64 { [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/mapper/mod.rs:91:33 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn resolve_imports(service: HANDLE, mut imports: Vec) -> bool { [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/mapper/mod.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | GetLastError() [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/mapper/mod.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | GetLastError() [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_NT_HEADERS` in this scope [INFO] [stdout] --> src/mapper/mod.rs:142:41 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn image_first_section(header: *mut IMAGE_NT_HEADERS) -> PIMAGE_SECTION_HEADER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_SECTION_HEADER` in this scope [INFO] [stdout] --> src/mapper/mod.rs:142:62 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn image_first_section(header: *mut IMAGE_NT_HEADERS) -> PIMAGE_SECTION_HEADER { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_SECTION_HEADER` in this scope [INFO] [stdout] --> src/mapper/mod.rs:148:16 [INFO] [stdout] | [INFO] [stdout] 148 | as PIMAGE_SECTION_HEADER [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/mapper/mod.rs:152:40 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn load_image_into_kernel(service: HANDLE, file: String) -> u64 { [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/mapper/mod.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | GetLastError() [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/mapper/mod.rs:167:68 [INFO] [stdout] | [INFO] [stdout] 167 | println!("Invalid image headers! Last error code: {}", GetLastError()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_NT_OPTIONAL_HDR64_MAGIC` in this scope [INFO] [stdout] --> src/mapper/mod.rs:171:53 [INFO] [stdout] | [INFO] [stdout] 171 | if (*image_headers).OptionalHeader.Magic != IMAGE_NT_OPTIONAL_HDR64_MAGIC { [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/mapper/mod.rs:172:67 [INFO] [stdout] | [INFO] [stdout] 172 | println!("Driver is not 64-bit! Last error code: {}", GetLastError()); [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/mapper/mod.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | GetLastError() [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAlloc` in this scope [INFO] [stdout] --> src/mapper/mod.rs:186:34 [INFO] [stdout] | [INFO] [stdout] 186 | let local_image_memory = VirtualAlloc( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/mapper/mod.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | MEM_RESERVE | MEM_COMMIT, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/mapper/mod.rs:189:27 [INFO] [stdout] | [INFO] [stdout] 189 | MEM_RESERVE | MEM_COMMIT, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/mapper/mod.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | PAGE_READWRITE, [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/mapper/mod.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 196 | GetLastError() [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/mapper/mod.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | GetLastError() [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/mapper/mod.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | GetLastError() [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/mapper/mod.rs:265:17 [INFO] [stdout] | [INFO] [stdout] 265 | GetLastError() [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/mapper/mod.rs:270:9 [INFO] [stdout] | [INFO] [stdout] 270 | VirtualFree(local_image_memory, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/mapper/mod.rs:270:44 [INFO] [stdout] | [INFO] [stdout] 270 | VirtualFree(local_image_memory, 0, MEM_RELEASE); [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/mapper/mod.rs:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | let mut status: NTSTATUS = 0; [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/mapper/mod.rs:284:81 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn load_image_into_kernel(service: HANDLE, file: String) -> u64 { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 284 | status = transmute::<*mut usize, unsafe extern "system" fn() -> NTSTATUS>( [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/mapper/mod.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | GetLastError() [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/nt/mod.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub section: HANDLE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/nt/mod.rs:15:22 [INFO] [stdout] | [INFO] [stdout] 15 | pub mapped_base: PVOID, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PVOID` in this scope [INFO] [stdout] --> src/nt/mod.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | pub image_base: PVOID, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stdout] --> src/nt/mod.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | pub image_size: ULONG, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stdout] --> src/nt/mod.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | pub flags: ULONG, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USHORT` in this scope [INFO] [stdout] --> src/nt/mod.rs:19:27 [INFO] [stdout] | [INFO] [stdout] 19 | pub load_order_index: USHORT, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USHORT` in this scope [INFO] [stdout] --> src/nt/mod.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 20 | pub init_order_index: USHORT, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USHORT` in this scope [INFO] [stdout] --> src/nt/mod.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | pub load_count: USHORT, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `USHORT` in this scope [INFO] [stdout] --> src/nt/mod.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | pub offset_to_file_name: USHORT, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `UCHAR` in this scope [INFO] [stdout] --> src/nt/mod.rs:23:26 [INFO] [stdout] | [INFO] [stdout] 23 | pub full_path_name: [UCHAR; 256], [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stdout] --> src/nt/mod.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 28 | pub number_of_modules: ULONG, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/nt/mod.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | pub buffer: *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/nt/mod.rs:36:22 [INFO] [stdout] | [INFO] [stdout] 36 | pub buffer_size: DWORD, [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/nt/mod.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | pub result: NTSTATUS, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/nt/mod.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | buffer: *mut c_void, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/nt/mod.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | out_buffer_size: &mut DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in this scope [INFO] [stdout] --> src/nt/mod.rs:44:27 [INFO] [stdout] | [INFO] [stdout] 44 | let mut nt = unsafe { GetModuleHandleA("ntdll.dll\0".as_ptr() as _) }; [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/nt/mod.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | nt = unsafe { LoadLibraryA("ntdll.dll\0".as_ptr() as _) }; [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/nt/mod.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | unsafe { GetProcAddress(nt, "NtQuerySystemInformation\0".as_ptr() as *const i8) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> src/nt/mod.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn query_system_information( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 62 | transmute:: NTSTATUS>( [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/nt/mod.rs:62:66 [INFO] [stdout] | [INFO] [stdout] 62 | transmute:: NTSTATUS>( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stdout] --> src/nt/mod.rs:62:74 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn query_system_information( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 62 | transmute:: NTSTATUS>( [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PULONG` in this scope [INFO] [stdout] --> src/nt/mod.rs:62:81 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn query_system_information( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 62 | transmute:: 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/nt/mod.rs:62:92 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn query_system_information( [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 62 | transmute:: 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/nt/mod.rs:67:26 [INFO] [stdout] | [INFO] [stdout] 67 | let mut buffer_size: DWORD = *out_buffer_size; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_NT_HEADERS64` in this scope [INFO] [stdout] --> src/pe/mod.rs:33:41 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn get_nt_headers(base: *mut u8) -> PIMAGE_NT_HEADERS64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_DOS_HEADER` in this scope [INFO] [stdout] --> src/pe/mod.rs:35:47 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn get_nt_headers(base: *mut u8) -> PIMAGE_NT_HEADERS64 { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 34 | unsafe { [INFO] [stdout] 35 | let dos_header = transmute::<*mut u8, PIMAGE_DOS_HEADER>(base); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DOS_SIGNATURE` in this scope [INFO] [stdout] --> src/pe/mod.rs:37:37 [INFO] [stdout] | [INFO] [stdout] 37 | if (*dos_header).e_magic != IMAGE_DOS_SIGNATURE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_NT_HEADERS64` in this scope [INFO] [stdout] --> src/pe/mod.rs:41:45 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn get_nt_headers(base: *mut u8) -> PIMAGE_NT_HEADERS64 { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 41 | let nt_headers = transmute::( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_NT_SIGNATURE` in this scope [INFO] [stdout] --> src/pe/mod.rs:45:39 [INFO] [stdout] | [INFO] [stdout] 45 | if (*nt_headers).Signature != IMAGE_NT_SIGNATURE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_BASE_RELOCATION` in this scope [INFO] [stdout] --> src/pe/mod.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_relocations(base: *mut u8) -> Option> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 61 | transmute::( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DIRECTORY_ENTRY_BASERELOC` in this scope [INFO] [stdout] --> src/pe/mod.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 64 | [IMAGE_DIRECTORY_ENTRY_BASERELOC as usize] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DIRECTORY_ENTRY_BASERELOC` in this scope [INFO] [stdout] --> src/pe/mod.rs:71:58 [INFO] [stdout] | [INFO] [stdout] 71 | + (*nt_headers).OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC as usize] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_BASE_RELOCATION` in this scope [INFO] [stdout] --> src/pe/mod.rs:92:72 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_relocations(base: *mut u8) -> Option> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 92 | current_base_relocation as usize + std::mem::size_of::(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_BASE_RELOCATION` in this scope [INFO] [stdout] --> src/pe/mod.rs:97:39 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_relocations(base: *mut u8) -> Option> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 97 | - std::mem::size_of::()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_BASE_RELOCATION` in this scope [INFO] [stdout] --> src/pe/mod.rs:104:32 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn get_relocations(base: *mut u8) -> Option> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 104 | transmute::( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DIRECTORY_ENTRY_IMPORT` in this scope [INFO] [stdout] --> src/pe/mod.rs:122:14 [INFO] [stdout] | [INFO] [stdout] 122 | [IMAGE_DIRECTORY_ENTRY_IMPORT as usize] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_IMPORT_DESCRIPTOR` in this scope [INFO] [stdout] --> src/pe/mod.rs:132:53 [INFO] [stdout] | [INFO] [stdout] 132 | (base as usize + import_va as usize) as PIMAGE_IMPORT_DESCRIPTOR; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_THUNK_DATA64` in this scope [INFO] [stdout] --> src/pe/mod.rs:146:20 [INFO] [stdout] | [INFO] [stdout] 146 | as PIMAGE_THUNK_DATA64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_THUNK_DATA64` in this scope [INFO] [stdout] --> src/pe/mod.rs:149:20 [INFO] [stdout] | [INFO] [stdout] 149 | as PIMAGE_THUNK_DATA64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_IMPORT_BY_NAME` in this scope [INFO] [stdout] --> src/pe/mod.rs:156:24 [INFO] [stdout] | [INFO] [stdout] 156 | as PIMAGE_IMPORT_BY_NAME; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_THUNK_DATA64` in this scope [INFO] [stdout] --> src/pe/mod.rs:168:43 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn get_imports(base: *mut u8) -> Option> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 168 | + std::mem::size_of::()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_THUNK_DATA64` in this scope [INFO] [stdout] --> src/pe/mod.rs:169:24 [INFO] [stdout] | [INFO] [stdout] 169 | as PIMAGE_THUNK_DATA64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_THUNK_DATA64` in this scope [INFO] [stdout] --> src/pe/mod.rs:171:43 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn get_imports(base: *mut u8) -> Option> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 171 | + std::mem::size_of::()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_THUNK_DATA64` in this scope [INFO] [stdout] --> src/pe/mod.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | as PIMAGE_THUNK_DATA64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_IMPORT_DESCRIPTOR` in this scope [INFO] [stdout] --> src/pe/mod.rs:177:39 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn get_imports(base: *mut u8) -> Option> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 177 | + std::mem::size_of::()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_IMPORT_DESCRIPTOR` in this scope [INFO] [stdout] --> src/pe/mod.rs:178:20 [INFO] [stdout] | [INFO] [stdout] 178 | as PIMAGE_IMPORT_DESCRIPTOR; [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/service/mod.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn copy_memory(service: HANDLE, destination: u64, source: u64, size: u64) -> bool { [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/service/mod.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | 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/service/mod.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | DeviceIoControl( [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/service/mod.rs:93:28 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn set_memory(service: HANDLE, address: u64, value: u32, size: u64) -> bool { [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/service/mod.rs:104:29 [INFO] [stdout] | [INFO] [stdout] 104 | 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/service/mod.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | DeviceIoControl( [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/service/mod.rs:120:38 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn get_physical_address(service: HANDLE, address: u64, out_physical_address: &mut u64) -> bool { [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/service/mod.rs:129:29 [INFO] [stdout] | [INFO] [stdout] 129 | 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/service/mod.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | DeviceIoControl( [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/service/mod.rs:152:30 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn map_io_space(service: HANDLE, address: u64, size: u32) -> u64 { [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/service/mod.rs:162:29 [INFO] [stdout] | [INFO] [stdout] 162 | 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/service/mod.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | DeviceIoControl( [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/service/mod.rs:183:32 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn unmap_io_space(service: HANDLE, address: u64, size: u32) -> bool { [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/service/mod.rs:193:29 [INFO] [stdout] | [INFO] [stdout] 193 | 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/service/mod.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | DeviceIoControl( [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/service/mod.rs:209:29 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn read_memory(service: HANDLE, address: u64, buffer: u64, size: u64) -> bool { [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/service/mod.rs:213:30 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn write_memory(service: HANDLE, address: u64, buffer: u64, size: u64) -> bool { [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/service/mod.rs:217:36 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn force_write_memory(service: HANDLE, address: u64, buffer: u64, size: u32) -> bool { [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/service/mod.rs:249:31 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn allocate_pool(service: HANDLE, pool_type: i32, size: SIZE_T) -> u64 { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SIZE_T` in this scope [INFO] [stdout] --> src/service/mod.rs:249:61 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn allocate_pool(service: HANDLE, pool_type: i32, size: SIZE_T) -> u64 { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/service/mod.rs:284:58 [INFO] [stdout] | [INFO] [stdout] 284 | type ExFreePoolFn = unsafe extern "system" fn(addy: *mut c_void); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/service/mod.rs:286:27 [INFO] [stdout] | [INFO] [stdout] 286 | pub fn free_pool(service: HANDLE, addy: u64) -> bool { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenSCManagerA` in this scope [INFO] [stdout] --> src/util/mod.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | OpenSCManagerA( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_CREATE_SERVICE` in this scope [INFO] [stdout] --> src/util/mod.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | SC_MANAGER_CREATE_SERVICE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateServiceA` in this scope [INFO] [stdout] --> src/util/mod.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | CreateServiceA( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SERVICE_START` in this scope [INFO] [stdout] --> src/util/mod.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | SERVICE_START | SERVICE_STOP | DELETE, [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/util/mod.rs:101:29 [INFO] [stdout] | [INFO] [stdout] 101 | SERVICE_START | SERVICE_STOP | DELETE, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DELETE` in this scope [INFO] [stdout] --> src/util/mod.rs:101:44 [INFO] [stdout] | [INFO] [stdout] 101 | SERVICE_START | SERVICE_STOP | DELETE, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SERVICE_KERNEL_DRIVER` in this scope [INFO] [stdout] --> src/util/mod.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | SERVICE_KERNEL_DRIVER, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SERVICE_DEMAND_START` in this scope [INFO] [stdout] --> src/util/mod.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | SERVICE_DEMAND_START, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SERVICE_ERROR_IGNORE` in this scope [INFO] [stdout] --> src/util/mod.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | SERVICE_ERROR_IGNORE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenServiceA` in this scope [INFO] [stdout] --> src/util/mod.rs:117:28 [INFO] [stdout] | [INFO] [stdout] 117 | service = unsafe { OpenServiceA(manager, filename.as_ptr() as _, SERVICE_START) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SERVICE_START` in this scope [INFO] [stdout] --> src/util/mod.rs:117:74 [INFO] [stdout] | [INFO] [stdout] 117 | service = unsafe { OpenServiceA(manager, filename.as_ptr() as _, SERVICE_START) }; [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/util/mod.rs:120:22 [INFO] [stdout] | [INFO] [stdout] 120 | unsafe { CloseServiceHandle(manager) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `StartServiceA` in this scope [INFO] [stdout] --> src/util/mod.rs:125:27 [INFO] [stdout] | [INFO] [stdout] 125 | let result = unsafe { StartServiceA(service, 0, std::ptr::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 `CloseServiceHandle` in this scope [INFO] [stdout] --> src/util/mod.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | 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/util/mod.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | CloseServiceHandle(manager); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenSCManagerA` in this scope [INFO] [stdout] --> src/util/mod.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | OpenSCManagerA( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SC_MANAGER_CREATE_SERVICE` in this scope [INFO] [stdout] --> src/util/mod.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | SC_MANAGER_CREATE_SERVICE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenServiceA` in this scope [INFO] [stdout] --> src/util/mod.rs:149:18 [INFO] [stdout] | [INFO] [stdout] 149 | unsafe { OpenServiceA(manager, name.as_ptr() as *const i8, SERVICE_STOP | DELETE) }; [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/util/mod.rs:149:68 [INFO] [stdout] | [INFO] [stdout] 149 | unsafe { OpenServiceA(manager, name.as_ptr() as *const i8, SERVICE_STOP | DELETE) }; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `DELETE` in this scope [INFO] [stdout] --> src/util/mod.rs:149:83 [INFO] [stdout] | [INFO] [stdout] 149 | unsafe { OpenServiceA(manager, name.as_ptr() as *const i8, SERVICE_STOP | DELETE) }; [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/util/mod.rs:152:18 [INFO] [stdout] | [INFO] [stdout] 152 | unsafe { CloseServiceHandle(service) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SERVICE_STATUS` in this scope [INFO] [stdout] --> src/util/mod.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | let mut status: SERVICE_STATUS = unsafe { core::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ControlService` in this scope [INFO] [stdout] --> src/util/mod.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | ControlService(service, SERVICE_CONTROL_STOP, &mut status as *mut _) == 1 [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/util/mod.rs:159:33 [INFO] [stdout] | [INFO] [stdout] 159 | ControlService(service, SERVICE_CONTROL_STOP, &mut status as *mut _) == 1 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DeleteService` in this scope [INFO] [stdout] --> src/util/mod.rs:160:16 [INFO] [stdout] | [INFO] [stdout] 160 | && DeleteService(service) == 1 [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/util/mod.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | 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/util/mod.rs:165:9 [INFO] [stdout] | [INFO] [stdout] 165 | CloseServiceHandle(manager); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/util/mod.rs:172:26 [INFO] [stdout] | [INFO] [stdout] 172 | let mut buffer: *mut c_void = std::ptr::null_mut(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/util/mod.rs:173:26 [INFO] [stdout] | [INFO] [stdout] 173 | let mut buffer_size: 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 `VirtualFree` in this scope [INFO] [stdout] --> src/util/mod.rs:178:18 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe { VirtualFree(buffer, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/util/mod.rs:178:41 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe { VirtualFree(buffer, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAlloc` in this scope [INFO] [stdout] --> src/util/mod.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | VirtualAlloc( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/util/mod.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/util/mod.rs:184:30 [INFO] [stdout] | [INFO] [stdout] 184 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/util/mod.rs:185:17 [INFO] [stdout] | [INFO] [stdout] 185 | PAGE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `NT_SUCCESS` in this scope [INFO] [stdout] --> src/util/mod.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | if !NT_SUCCESS(system_info.result) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/util/mod.rs:192:18 [INFO] [stdout] | [INFO] [stdout] 192 | unsafe { VirtualFree(system_info.buffer, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/util/mod.rs:192:53 [INFO] [stdout] | [INFO] [stdout] 192 | unsafe { VirtualFree(system_info.buffer, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ULONG` in this scope [INFO] [stdout] --> src/util/mod.rs:201:39 [INFO] [stdout] | [INFO] [stdout] 171 | pub fn get_kernel_module_address(name: String) -> u64 { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 201 | + std::mem::size_of::() [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope [INFO] [stdout] --> src/util/mod.rs:222:68 [INFO] [stdout] | [INFO] [stdout] 222 | current_module as usize + std::mem::size_of::<*mut c_void>() * 2usize; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::ffi::c_void; [INFO] [stdout] | [INFO] [stdout] 1 | use std::os::raw::c_void; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/util/mod.rs:226:17 [INFO] [stdout] | [INFO] [stdout] 226 | VirtualFree(buffer as _, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/util/mod.rs:226:45 [INFO] [stdout] | [INFO] [stdout] 226 | VirtualFree(buffer as _, 0, MEM_RELEASE); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `SetLastError` in this scope [INFO] [stdout] --> src/util/mod.rs:229:17 [INFO] [stdout] | [INFO] [stdout] 229 | SetLastError(0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/util/mod.rs:236:14 [INFO] [stdout] | [INFO] [stdout] 236 | unsafe { VirtualFree(buffer as _, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/util/mod.rs:236:42 [INFO] [stdout] | [INFO] [stdout] 236 | unsafe { VirtualFree(buffer as _, 0, MEM_RELEASE) }; [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/util/mod.rs:240:42 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn get_kernel_module_export(service: HANDLE, kernel_module_base: u64, fn_name: &str) -> u64 { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_DOS_HEADER` in this scope [INFO] [stdout] --> src/util/mod.rs:245:25 [INFO] [stdout] | [INFO] [stdout] 245 | let mut dos_header: IMAGE_DOS_HEADER = unsafe { core::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_NT_HEADERS64` in this scope [INFO] [stdout] --> src/util/mod.rs:246:24 [INFO] [stdout] | [INFO] [stdout] 246 | let mut nt_header: IMAGE_NT_HEADERS64 = unsafe { core::mem::zeroed() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_DOS_HEADER` in this scope [INFO] [stdout] --> src/util/mod.rs:251:33 [INFO] [stdout] | [INFO] [stdout] 251 | &mut dos_header as *mut IMAGE_DOS_HEADER as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_DOS_HEADER` in this scope [INFO] [stdout] --> src/util/mod.rs:252:29 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn get_kernel_module_export(service: HANDLE, kernel_module_base: u64, fn_name: &str) -> u64 { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 252 | std::mem::size_of::() as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DOS_SIGNATURE` in this scope [INFO] [stdout] --> src/util/mod.rs:253:32 [INFO] [stdout] | [INFO] [stdout] 253 | ) || dos_header.e_magic != IMAGE_DOS_SIGNATURE [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_NT_HEADERS64` in this scope [INFO] [stdout] --> src/util/mod.rs:261:32 [INFO] [stdout] | [INFO] [stdout] 261 | &mut nt_header as *mut IMAGE_NT_HEADERS64 as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `IMAGE_NT_HEADERS64` in this scope [INFO] [stdout] --> src/util/mod.rs:262:29 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn get_kernel_module_export(service: HANDLE, kernel_module_base: u64, fn_name: &str) -> u64 { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 262 | std::mem::size_of::() as _, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_NT_SIGNATURE` in this scope [INFO] [stdout] --> src/util/mod.rs:263:33 [INFO] [stdout] | [INFO] [stdout] 263 | ) || nt_header.Signature != IMAGE_NT_SIGNATURE [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DIRECTORY_ENTRY_EXPORT` in this scope [INFO] [stdout] --> src/util/mod.rs:268:62 [INFO] [stdout] | [INFO] [stdout] 268 | let export_base = nt_header.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT as usize] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `IMAGE_DIRECTORY_ENTRY_EXPORT` in this scope [INFO] [stdout] --> src/util/mod.rs:271:48 [INFO] [stdout] | [INFO] [stdout] 271 | nt_header.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT as usize].Size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAlloc` in this scope [INFO] [stdout] --> src/util/mod.rs:278:9 [INFO] [stdout] | [INFO] [stdout] 278 | VirtualAlloc( [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/util/mod.rs:281:13 [INFO] [stdout] | [INFO] [stdout] 281 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/util/mod.rs:281:26 [INFO] [stdout] | [INFO] [stdout] 281 | MEM_COMMIT | MEM_RESERVE, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/util/mod.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | PAGE_READWRITE, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PIMAGE_EXPORT_DIRECTORY` in this scope [INFO] [stdout] --> src/util/mod.rs:284:10 [INFO] [stdout] | [INFO] [stdout] 284 | } as PIMAGE_EXPORT_DIRECTORY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/util/mod.rs:292:18 [INFO] [stdout] | [INFO] [stdout] 292 | unsafe { VirtualFree(export_data as _, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/util/mod.rs:292:51 [INFO] [stdout] | [INFO] [stdout] 292 | unsafe { VirtualFree(export_data as _, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/util/mod.rs:326:26 [INFO] [stdout] | [INFO] [stdout] 326 | unsafe { VirtualFree(export_data as _, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/util/mod.rs:326:59 [INFO] [stdout] | [INFO] [stdout] 326 | unsafe { VirtualFree(export_data as _, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/util/mod.rs:330:22 [INFO] [stdout] | [INFO] [stdout] 330 | unsafe { VirtualFree(export_data as _, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/util/mod.rs:330:55 [INFO] [stdout] | [INFO] [stdout] 330 | unsafe { VirtualFree(export_data as _, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualFree` in this scope [INFO] [stdout] --> src/util/mod.rs:335:14 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe { VirtualFree(export_data as _, 0, MEM_RELEASE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RELEASE` in this scope [INFO] [stdout] --> src/util/mod.rs:335:47 [INFO] [stdout] | [INFO] [stdout] 335 | unsafe { VirtualFree(export_data as _, 0, MEM_RELEASE) }; [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/util/mod.rs:340:14 [INFO] [stdout] | [INFO] [stdout] 340 | service: HANDLE, [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/util/mod.rs:396:14 [INFO] [stdout] | [INFO] [stdout] 396 | service: HANDLE, [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/util/mod.rs:447:14 [INFO] [stdout] | [INFO] [stdout] 447 | service: HANDLE, [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/util/mod.rs:457:41 [INFO] [stdout] | [INFO] [stdout] 457 | let nt_query_information_atom = GetProcAddress( [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/util/mod.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 458 | LoadLibraryA("ntdll.dll\0".as_ptr() as _), [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:15:40 [INFO] [stdout] | [INFO] [stdout] 15 | if service.is_null() || service == INVALID_HANDLE_VALUE { [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/main.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | GetLastError() [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/main.rs:33:17 [INFO] [stdout] | [INFO] [stdout] 33 | GetLastError() [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/main.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | GetLastError() [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 191 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kdmapper-rs` due to 192 previous errors [INFO] running `Command { std: "docker" "inspect" "7340ddef38b430fe0d833be74a8c26d067abb78dfc443f79377a0a0f582e2664", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7340ddef38b430fe0d833be74a8c26d067abb78dfc443f79377a0a0f582e2664", kill_on_drop: false }` [INFO] [stdout] 7340ddef38b430fe0d833be74a8c26d067abb78dfc443f79377a0a0f582e2664