[INFO] fetching crate ezmem 0.1.3... [INFO] checking ezmem-0.1.3 against master#db870ea71b6dcc7a91b999420b88f41d3cdd13e1 for pr-75192 [INFO] extracting crate ezmem 0.1.3 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate ezmem 0.1.3 on toolchain db870ea71b6dcc7a91b999420b88f41d3cdd13e1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db870ea71b6dcc7a91b999420b88f41d3cdd13e1" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate ezmem 0.1.3 [INFO] finished tweaking crates.io crate ezmem 0.1.3 [INFO] tweaked toml for crates.io crate ezmem 0.1.3 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db870ea71b6dcc7a91b999420b88f41d3cdd13e1" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db870ea71b6dcc7a91b999420b88f41d3cdd13e1" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+db870ea71b6dcc7a91b999420b88f41d3cdd13e1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dbb27c09e3e315b6f79c1c9ba6a2e75ab9493b670aea58031f26640beb3346c6 [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" "dbb27c09e3e315b6f79c1c9ba6a2e75ab9493b670aea58031f26640beb3346c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dbb27c09e3e315b6f79c1c9ba6a2e75ab9493b670aea58031f26640beb3346c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbb27c09e3e315b6f79c1c9ba6a2e75ab9493b670aea58031f26640beb3346c6", kill_on_drop: false }` [INFO] [stdout] dbb27c09e3e315b6f79c1c9ba6a2e75ab9493b670aea58031f26640beb3346c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+db870ea71b6dcc7a91b999420b88f41d3cdd13e1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f1d07bc3c745a9fc5ed7b2af449f2a7a4a9a89029bed07d9e92f323f4c67ff19 [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" "f1d07bc3c745a9fc5ed7b2af449f2a7a4a9a89029bed07d9e92f323f4c67ff19", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking ezmem v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/readmem/mod.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::minwindef::{LPCVOID, LPVOID}; [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/readmem/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::winnt::{HANDLE}; [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/readmem/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::memoryapi::{ReadProcessMemory}; [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/readmem/mod.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::wow64apiset::IsWow64Process; [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/process/mod.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | 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/process/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::tlhelp32::*; [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/process/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::handleapi::*; [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/process/mod.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::winbase::{lstrcmpiA}; [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/writemem/mod.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::um::memoryapi::{WriteProcessMemory, VirtualProtectEx}; [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/writemem/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::minwindef::{LPCVOID, LPVOID}; [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/writemem/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::winnt::{HANDLE, PAGE_EXECUTE_READWRITE}; [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/readmem/mod.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::minwindef::{LPCVOID, LPVOID}; [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/readmem/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::winnt::{HANDLE}; [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/readmem/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::memoryapi::{ReadProcessMemory}; [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/readmem/mod.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::wow64apiset::IsWow64Process; [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/process/mod.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | 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/process/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::tlhelp32::*; [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/process/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::handleapi::*; [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/process/mod.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::winbase::{lstrcmpiA}; [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/writemem/mod.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::um::memoryapi::{WriteProcessMemory, VirtualProtectEx}; [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/writemem/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::shared::minwindef::{LPCVOID, LPVOID}; [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/writemem/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use winapi::um::winnt::{HANDLE, PAGE_EXECUTE_READWRITE}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/readmem/mod.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | pub unsafe fn read_bytes(handle: HANDLE, address: usize, amount: usize) -> Vec { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/readmem/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:9:42 [INFO] [stdout] | [INFO] [stdout] 9 | ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:9:69 [INFO] [stdout] | [INFO] [stdout] 9 | ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()); [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/readmem/mod.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub unsafe fn read_i64(handle: HANDLE, address: usize) -> i64 { [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/readmem/mod.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | pub unsafe fn read_i32(handle: HANDLE, address: usize) -> i32 { [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/readmem/mod.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | pub unsafe fn read_i16(handle: HANDLE, address: usize) -> i16 { [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/readmem/mod.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | pub unsafe fn read_i8(handle: HANDLE, address: usize) -> i8 { [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/readmem/mod.rs:30:32 [INFO] [stdout] | [INFO] [stdout] 30 | pub unsafe fn read_u64(handle: HANDLE, address: usize) -> u64 { [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/readmem/mod.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 34 | pub unsafe fn read_u32(handle: HANDLE, address: usize) -> u32 { [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/readmem/mod.rs:38:32 [INFO] [stdout] | [INFO] [stdout] 38 | pub unsafe fn read_u16(handle: HANDLE, address: usize) -> u16 { [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/readmem/mod.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe fn read_u8(handle: HANDLE, address: usize) -> u8 { [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/readmem/mod.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 46 | pub unsafe fn read_f64(handle: HANDLE, address: usize) -> f64 { [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/readmem/mod.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | pub unsafe fn read_f32(handle: HANDLE, address: usize) -> f32 { [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/readmem/mod.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 54 | unsafe fn read_primitive(handle: HANDLE, address: usize) -> T { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/readmem/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ReadProcessMemory(handle, address as LPCVOID, &mut read_result as *mut _ as LPVOID, std::mem::size_of::(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:56:42 [INFO] [stdout] | [INFO] [stdout] 56 | ReadProcessMemory(handle, address as LPCVOID, &mut read_result as *mut _ as LPVOID, std::mem::size_of::(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:56:81 [INFO] [stdout] | [INFO] [stdout] 56 | ReadProcessMemory(handle, address as LPCVOID, &mut read_result as *mut _ as LPVOID, std::mem::size_of::(), std::ptr::null_mut()); [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/readmem/mod.rs:61:51 [INFO] [stdout] | [INFO] [stdout] 61 | pub unsafe fn resolve_multi_level_pointer(handle: HANDLE, base_ptr: usize, offsets: Vec) -> usize { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWow64Process` in this scope [INFO] [stdout] --> src/readmem/mod.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | IsWow64Process(handle, &mut is_32_bit as *mut i32); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/readmem/mod.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:78:46 [INFO] [stdout] | [INFO] [stdout] 78 | ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:78:80 [INFO] [stdout] | [INFO] [stdout] 78 | ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()); [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/process/mod.rs:9:60 [INFO] [stdout] | [INFO] [stdout] 9 | pub unsafe fn get_process_id(process_name: &str) -> Result { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/process/mod.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | let h_process_snap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPPROCESS` in this scope [INFO] [stdout] --> src/process/mod.rs:11:51 [INFO] [stdout] | [INFO] [stdout] 11 | let h_process_snap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/process/mod.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | if h_process_snap == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32` in this scope [INFO] [stdout] --> src/process/mod.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | let mut pe32: PROCESSENTRY32 = std::mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32` in this scope [INFO] [stdout] --> src/process/mod.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 9 | pub unsafe fn get_process_id(process_name: &str) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 19 | pe32.dwSize = mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32First` in this scope [INFO] [stdout] --> src/process/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | if Process32First(h_process_snap, &mut pe32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lstrcmpiA` in this scope [INFO] [stdout] --> src/process/mod.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | if lstrcmpiA(&pe32.szExeFile as *const i8, process_name.as_ptr()) == 0 { [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/process/mod.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | CloseHandle(h_process_snap); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32Next` in this scope [INFO] [stdout] --> src/process/mod.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | while Process32Next(h_process_snap, &mut pe32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lstrcmpiA` in this scope [INFO] [stdout] --> src/process/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | if lstrcmpiA(&pe32.szExeFile as *const i8, process_name.as_ptr()) == 0 { [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/process/mod.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | CloseHandle(h_process_snap); [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/process/mod.rs:40:43 [INFO] [stdout] | [INFO] [stdout] 40 | pub unsafe fn get_module_base(process_id: DWORD, name: &str) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/process/mod.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | let handle_snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, process_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE` in this scope [INFO] [stdout] --> src/process/mod.rs:43:48 [INFO] [stdout] | [INFO] [stdout] 43 | let handle_snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, process_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE32` in this scope [INFO] [stdout] --> src/process/mod.rs:43:68 [INFO] [stdout] | [INFO] [stdout] 43 | let handle_snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, process_id); [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/process/mod.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | if handle_snap == 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 `CloseHandle` in this scope [INFO] [stdout] --> src/process/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | CloseHandle(handle_snap); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MODULEENTRY32` in this scope [INFO] [stdout] --> src/process/mod.rs:50:27 [INFO] [stdout] | [INFO] [stdout] 50 | let mut module_entry: MODULEENTRY32 = mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MODULEENTRY32` in this scope [INFO] [stdout] --> src/process/mod.rs:51:42 [INFO] [stdout] | [INFO] [stdout] 40 | pub unsafe fn get_module_base(process_id: DWORD, name: &str) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 51 | module_entry.dwSize = mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module32First` in this scope [INFO] [stdout] --> src/process/mod.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | if Module32First(handle_snap, &mut module_entry) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lstrcmpiA` in this scope [INFO] [stdout] --> src/process/mod.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | if lstrcmpiA(&module_entry.szModule[0], module_name.as_ptr()) == 0 { [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/process/mod.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | CloseHandle(handle_snap); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module32Next` in this scope [INFO] [stdout] --> src/process/mod.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | while Module32Next(handle_snap, &mut module_entry) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lstrcmpiA` in this scope [INFO] [stdout] --> src/process/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | if lstrcmpiA(&module_entry.szModule[0], module_name.as_ptr()) == 0 { [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/process/mod.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | CloseHandle(handle_snap); [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/writemem/mod.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | pub unsafe fn write_bytes(handle: HANDLE, address: usize, bytes: Vec) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/writemem/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:10:43 [INFO] [stdout] | [INFO] [stdout] 10 | WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:10:69 [INFO] [stdout] | [INFO] [stdout] 10 | WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()); [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/writemem/mod.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | pub unsafe fn write_i64(handle: HANDLE, address: usize, to_write: i64) { [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/writemem/mod.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | pub unsafe fn write_i32(handle: HANDLE, address: usize, to_write: i32) { [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/writemem/mod.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | pub unsafe fn write_i16(handle: HANDLE, address: usize, to_write: i16) { [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/writemem/mod.rs:26:32 [INFO] [stdout] | [INFO] [stdout] 26 | pub unsafe fn write_i8(handle: HANDLE, address: usize, to_write: i8) { [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/writemem/mod.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | pub unsafe fn write_u64(handle: HANDLE, address: usize, to_write: u64) { [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/writemem/mod.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | pub unsafe fn write_u32(handle: HANDLE, address: usize, to_write: u32) { [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/writemem/mod.rs:38:33 [INFO] [stdout] | [INFO] [stdout] 38 | pub unsafe fn write_u16(handle: HANDLE, address: usize, to_write: u16) { [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/writemem/mod.rs:42:32 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe fn write_u8(handle: HANDLE, address: usize, to_write: u8) { [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/writemem/mod.rs:46:33 [INFO] [stdout] | [INFO] [stdout] 46 | pub unsafe fn write_f32(handle: HANDLE, address: usize, to_write: f32) { [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/writemem/mod.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | pub unsafe fn write_f64(handle: HANDLE, address: usize, to_write: f64) { [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/writemem/mod.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | unsafe fn write_primitive(handle: HANDLE, address: usize, to_write: T) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/writemem/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | WriteProcessMemory(handle, address as LPVOID, &mut buffer as *mut _ as LPCVOID, std::mem::size_of::(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:56:43 [INFO] [stdout] | [INFO] [stdout] 56 | WriteProcessMemory(handle, address as LPVOID, &mut buffer as *mut _ as LPCVOID, std::mem::size_of::(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:56:76 [INFO] [stdout] | [INFO] [stdout] 56 | WriteProcessMemory(handle, address as LPVOID, &mut buffer as *mut _ as LPCVOID, std::mem::size_of::(), std::ptr::null_mut()); [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/writemem/mod.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | pub unsafe fn patch_ex(handle: HANDLE, address: usize, bytes: Vec) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/writemem/mod.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/writemem/mod.rs:66:62 [INFO] [stdout] | [INFO] [stdout] 66 | VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/writemem/mod.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | VirtualProtectEx(handle, address as LPVOID, byte_amount, last_protection, &mut last_protection as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:68:41 [INFO] [stdout] | [INFO] [stdout] 68 | VirtualProtectEx(handle, address as LPVOID, byte_amount, last_protection, &mut last_protection as *mut _); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 84 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 `ezmem`. [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[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/readmem/mod.rs:7:34 [INFO] [stdout] | [INFO] [stdout] 7 | pub unsafe fn read_bytes(handle: HANDLE, address: usize, amount: usize) -> Vec { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/readmem/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:9:42 [INFO] [stdout] | [INFO] [stdout] 9 | ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:9:69 [INFO] [stdout] | [INFO] [stdout] 9 | ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()); [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/readmem/mod.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub unsafe fn read_i64(handle: HANDLE, address: usize) -> i64 { [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/readmem/mod.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | pub unsafe fn read_i32(handle: HANDLE, address: usize) -> i32 { [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/readmem/mod.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | pub unsafe fn read_i16(handle: HANDLE, address: usize) -> i16 { [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/readmem/mod.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | pub unsafe fn read_i8(handle: HANDLE, address: usize) -> i8 { [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/readmem/mod.rs:30:32 [INFO] [stdout] | [INFO] [stdout] 30 | pub unsafe fn read_u64(handle: HANDLE, address: usize) -> u64 { [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/readmem/mod.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 34 | pub unsafe fn read_u32(handle: HANDLE, address: usize) -> u32 { [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/readmem/mod.rs:38:32 [INFO] [stdout] | [INFO] [stdout] 38 | pub unsafe fn read_u16(handle: HANDLE, address: usize) -> u16 { [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/readmem/mod.rs:42:31 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe fn read_u8(handle: HANDLE, address: usize) -> u8 { [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/readmem/mod.rs:46:32 [INFO] [stdout] | [INFO] [stdout] 46 | pub unsafe fn read_f64(handle: HANDLE, address: usize) -> f64 { [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/readmem/mod.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | pub unsafe fn read_f32(handle: HANDLE, address: usize) -> f32 { [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/readmem/mod.rs:54:46 [INFO] [stdout] | [INFO] [stdout] 54 | unsafe fn read_primitive(handle: HANDLE, address: usize) -> T { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/readmem/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | ReadProcessMemory(handle, address as LPCVOID, &mut read_result as *mut _ as LPVOID, std::mem::size_of::(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:56:42 [INFO] [stdout] | [INFO] [stdout] 56 | ReadProcessMemory(handle, address as LPCVOID, &mut read_result as *mut _ as LPVOID, std::mem::size_of::(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:56:81 [INFO] [stdout] | [INFO] [stdout] 56 | ReadProcessMemory(handle, address as LPCVOID, &mut read_result as *mut _ as LPVOID, std::mem::size_of::(), std::ptr::null_mut()); [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/readmem/mod.rs:61:51 [INFO] [stdout] | [INFO] [stdout] 61 | pub unsafe fn resolve_multi_level_pointer(handle: HANDLE, base_ptr: usize, offsets: Vec) -> usize { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsWow64Process` in this scope [INFO] [stdout] --> src/readmem/mod.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | IsWow64Process(handle, &mut is_32_bit as *mut i32); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stdout] --> src/readmem/mod.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:78:46 [INFO] [stdout] | [INFO] [stdout] 78 | ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/readmem/mod.rs:78:80 [INFO] [stdout] | [INFO] [stdout] 78 | ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()); [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/process/mod.rs:9:60 [INFO] [stdout] | [INFO] [stdout] 9 | pub unsafe fn get_process_id(process_name: &str) -> Result { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/process/mod.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | let h_process_snap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPPROCESS` in this scope [INFO] [stdout] --> src/process/mod.rs:11:51 [INFO] [stdout] | [INFO] [stdout] 11 | let h_process_snap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `INVALID_HANDLE_VALUE` in this scope [INFO] [stdout] --> src/process/mod.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | if h_process_snap == INVALID_HANDLE_VALUE { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32` in this scope [INFO] [stdout] --> src/process/mod.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | let mut pe32: PROCESSENTRY32 = std::mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PROCESSENTRY32` in this scope [INFO] [stdout] --> src/process/mod.rs:19:34 [INFO] [stdout] | [INFO] [stdout] 9 | pub unsafe fn get_process_id(process_name: &str) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 19 | pe32.dwSize = mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32First` in this scope [INFO] [stdout] --> src/process/mod.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | if Process32First(h_process_snap, &mut pe32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lstrcmpiA` in this scope [INFO] [stdout] --> src/process/mod.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | if lstrcmpiA(&pe32.szExeFile as *const i8, process_name.as_ptr()) == 0 { [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/process/mod.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | CloseHandle(h_process_snap); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Process32Next` in this scope [INFO] [stdout] --> src/process/mod.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | while Process32Next(h_process_snap, &mut pe32) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lstrcmpiA` in this scope [INFO] [stdout] --> src/process/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | if lstrcmpiA(&pe32.szExeFile as *const i8, process_name.as_ptr()) == 0 { [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/process/mod.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | CloseHandle(h_process_snap); [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/process/mod.rs:40:43 [INFO] [stdout] | [INFO] [stdout] 40 | pub unsafe fn get_module_base(process_id: DWORD, name: &str) -> Result { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/process/mod.rs:43:23 [INFO] [stdout] | [INFO] [stdout] 43 | let handle_snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, process_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE` in this scope [INFO] [stdout] --> src/process/mod.rs:43:48 [INFO] [stdout] | [INFO] [stdout] 43 | let handle_snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, process_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TH32CS_SNAPMODULE32` in this scope [INFO] [stdout] --> src/process/mod.rs:43:68 [INFO] [stdout] | [INFO] [stdout] 43 | let handle_snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE32, process_id); [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/process/mod.rs:45:23 [INFO] [stdout] | [INFO] [stdout] 45 | if handle_snap == 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 `CloseHandle` in this scope [INFO] [stdout] --> src/process/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | CloseHandle(handle_snap); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MODULEENTRY32` in this scope [INFO] [stdout] --> src/process/mod.rs:50:27 [INFO] [stdout] | [INFO] [stdout] 50 | let mut module_entry: MODULEENTRY32 = mem::zeroed(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `MODULEENTRY32` in this scope [INFO] [stdout] --> src/process/mod.rs:51:42 [INFO] [stdout] | [INFO] [stdout] 40 | pub unsafe fn get_module_base(process_id: DWORD, name: &str) -> Result { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 51 | module_entry.dwSize = mem::size_of::() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module32First` in this scope [INFO] [stdout] --> src/process/mod.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | if Module32First(handle_snap, &mut module_entry) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lstrcmpiA` in this scope [INFO] [stdout] --> src/process/mod.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | if lstrcmpiA(&module_entry.szModule[0], module_name.as_ptr()) == 0 { [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/process/mod.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | CloseHandle(handle_snap); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `Module32Next` in this scope [INFO] [stdout] --> src/process/mod.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | while Module32Next(handle_snap, &mut module_entry) != 0 { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `lstrcmpiA` in this scope [INFO] [stdout] --> src/process/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | if lstrcmpiA(&module_entry.szModule[0], module_name.as_ptr()) == 0 { [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/process/mod.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | CloseHandle(handle_snap); [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/writemem/mod.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | pub unsafe fn write_bytes(handle: HANDLE, address: usize, bytes: Vec) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/writemem/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:10:43 [INFO] [stdout] | [INFO] [stdout] 10 | WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:10:69 [INFO] [stdout] | [INFO] [stdout] 10 | WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()); [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/writemem/mod.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | pub unsafe fn write_i64(handle: HANDLE, address: usize, to_write: i64) { [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/writemem/mod.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 18 | pub unsafe fn write_i32(handle: HANDLE, address: usize, to_write: i32) { [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/writemem/mod.rs:22:33 [INFO] [stdout] | [INFO] [stdout] 22 | pub unsafe fn write_i16(handle: HANDLE, address: usize, to_write: i16) { [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/writemem/mod.rs:26:32 [INFO] [stdout] | [INFO] [stdout] 26 | pub unsafe fn write_i8(handle: HANDLE, address: usize, to_write: i8) { [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/writemem/mod.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | pub unsafe fn write_u64(handle: HANDLE, address: usize, to_write: u64) { [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/writemem/mod.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | pub unsafe fn write_u32(handle: HANDLE, address: usize, to_write: u32) { [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/writemem/mod.rs:38:33 [INFO] [stdout] | [INFO] [stdout] 38 | pub unsafe fn write_u16(handle: HANDLE, address: usize, to_write: u16) { [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/writemem/mod.rs:42:32 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe fn write_u8(handle: HANDLE, address: usize, to_write: u8) { [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/writemem/mod.rs:46:33 [INFO] [stdout] | [INFO] [stdout] 46 | pub unsafe fn write_f32(handle: HANDLE, address: usize, to_write: f32) { [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/writemem/mod.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 50 | pub unsafe fn write_f64(handle: HANDLE, address: usize, to_write: f64) { [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/writemem/mod.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | unsafe fn write_primitive(handle: HANDLE, address: usize, to_write: T) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/writemem/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | WriteProcessMemory(handle, address as LPVOID, &mut buffer as *mut _ as LPCVOID, std::mem::size_of::(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:56:43 [INFO] [stdout] | [INFO] [stdout] 56 | WriteProcessMemory(handle, address as LPVOID, &mut buffer as *mut _ as LPCVOID, std::mem::size_of::(), std::ptr::null_mut()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:56:76 [INFO] [stdout] | [INFO] [stdout] 56 | WriteProcessMemory(handle, address as LPVOID, &mut buffer as *mut _ as LPCVOID, std::mem::size_of::(), std::ptr::null_mut()); [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/writemem/mod.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | pub unsafe fn patch_ex(handle: HANDLE, address: usize, bytes: Vec) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/writemem/mod.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:66:41 [INFO] [stdout] | [INFO] [stdout] 66 | VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> src/writemem/mod.rs:66:62 [INFO] [stdout] | [INFO] [stdout] 66 | VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> src/writemem/mod.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | VirtualProtectEx(handle, address as LPVOID, byte_amount, last_protection, &mut last_protection as *mut _); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/writemem/mod.rs:68:41 [INFO] [stdout] | [INFO] [stdout] 68 | VirtualProtectEx(handle, address as LPVOID, byte_amount, last_protection, &mut last_protection as *mut _); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 84 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: build failed [INFO] running `Command { std: "docker" "inspect" "f1d07bc3c745a9fc5ed7b2af449f2a7a4a9a89029bed07d9e92f323f4c67ff19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f1d07bc3c745a9fc5ed7b2af449f2a7a4a9a89029bed07d9e92f323f4c67ff19", kill_on_drop: false }` [INFO] [stdout] f1d07bc3c745a9fc5ed7b2af449f2a7a4a9a89029bed07d9e92f323f4c67ff19