[INFO] fetching crate ezmem 0.2.0... [INFO] checking ezmem-0.2.0 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate ezmem 0.2.0 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate ezmem 0.2.0 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ezmem 0.2.0 [INFO] finished tweaking crates.io crate ezmem 0.2.0 [INFO] tweaked toml for crates.io crate ezmem 0.2.0 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a4c2eb61a7bef4e9c9f0ad6eb2088204e761a3cf93e60632ef93ec7231dd8ae [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" "4a4c2eb61a7bef4e9c9f0ad6eb2088204e761a3cf93e60632ef93ec7231dd8ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a4c2eb61a7bef4e9c9f0ad6eb2088204e761a3cf93e60632ef93ec7231dd8ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a4c2eb61a7bef4e9c9f0ad6eb2088204e761a3cf93e60632ef93ec7231dd8ae", kill_on_drop: false }` [INFO] [stdout] 4a4c2eb61a7bef4e9c9f0ad6eb2088204e761a3cf93e60632ef93ec7231dd8ae [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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b1de42a740b8be733e287ae9fa4a7846ed3e116479d2cec375223c8bcec02586 [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" "b1de42a740b8be733e287ae9fa4a7846ed3e116479d2cec375223c8bcec02586", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking ezmem v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/readmem.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.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.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.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 `um` in `winapi` [INFO] [stdout] --> src/readmem.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/process.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | 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.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | 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.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/writemem.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.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.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 `um` in `winapi` [INFO] [stdout] --> src/writemem.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/readmem.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.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.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.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 `um` in `winapi` [INFO] [stdout] --> src/readmem.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/process.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | 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.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | 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.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/writemem.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.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.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 `um` in `winapi` [INFO] [stdout] --> src/writemem.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::errhandlingapi::GetLastError; [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.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | pub 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.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | if ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()) == 0 { [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.rs:11:49 [INFO] [stdout] | [INFO] [stdout] 11 | if ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()) == 0 { [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.rs:11:76 [INFO] [stdout] | [INFO] [stdout] 11 | if ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()) == 0 { [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/readmem.rs:12:67 [INFO] [stdout] | [INFO] [stdout] 12 | panic!("ReadProcessMemory failed! Last OS Error: {}", 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/readmem.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | pub 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.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | pub 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.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 27 | pub 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.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | pub 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.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | pub 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.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | pub 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.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | pub 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.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | pub 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.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | pub 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.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | pub 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.rs:59:39 [INFO] [stdout] | [INFO] [stdout] 59 | 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.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | ... if 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.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | ... if 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.rs:62:88 [INFO] [stdout] | [INFO] [stdout] 62 | ... if 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[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/readmem.rs:63:67 [INFO] [stdout] | [INFO] [stdout] 63 | panic!("ReadProcessMemory failed! Last OS Error: {}", 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/readmem.rs:70:44 [INFO] [stdout] | [INFO] [stdout] 70 | pub 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.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | if IsWow64Process(handle, &mut is_32_bit as *mut i32) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/readmem.rs:78:64 [INFO] [stdout] | [INFO] [stdout] 78 | panic!("IsWow64Process failed! Last OS Error: {}", GetLastError()); [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.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | if ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()) == 0 { [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.rs:90:53 [INFO] [stdout] | [INFO] [stdout] 90 | if ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()) == 0 { [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.rs:90:87 [INFO] [stdout] | [INFO] [stdout] 90 | if ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()) == 0 { [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/readmem.rs:91:71 [INFO] [stdout] | [INFO] [stdout] 91 | panic!("ReadProcessMemory failed! Last OS Error: {}", GetLastError()); [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.rs:11:30 [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.rs:11:55 [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.rs:14:30 [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[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/process.rs:15:63 [INFO] [stdout] | [INFO] [stdout] 15 | panic!("INVALID HANDLE VALUE! Last OS Error: {}", GetLastError()); [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.rs:18:23 [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.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn get_process_id(process_name: &str) -> Option { [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.rs:21:12 [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, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/process.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | 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.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | 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, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/process.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | 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 `CloseHandle` in this scope [INFO] [stdout] --> src/process.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | 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 `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/process.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 48 | let h_module_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.rs:48:54 [INFO] [stdout] | [INFO] [stdout] 48 | let h_module_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.rs:48:74 [INFO] [stdout] | [INFO] [stdout] 48 | let h_module_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.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | if h_module_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.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | CloseHandle(h_module_snap); [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/process.rs:52:63 [INFO] [stdout] | [INFO] [stdout] 52 | panic!("INVALID HANDLE VALUE! Last OS Error: {}", GetLastError()); [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.rs:55:31 [INFO] [stdout] | [INFO] [stdout] 55 | 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.rs:56:46 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_module_base(process_id: u32, module_name: &str) -> Option { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 56 | 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.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | if Module32First(h_module_snap, &mut module_entry) != 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.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | CloseHandle(h_module_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.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | while Module32Next(h_module_snap, &mut module_entry) != 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.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | CloseHandle(h_module_snap); [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.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | CloseHandle(h_module_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.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | pub 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.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | if WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()) == 0 { [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.rs:10:50 [INFO] [stdout] | [INFO] [stdout] 10 | if WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()) == 0 { [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.rs:10:76 [INFO] [stdout] | [INFO] [stdout] 10 | if WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()) == 0 { [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/writemem.rs:11:41 [INFO] [stdout] | [INFO] [stdout] 11 | panic!("Last OS Error: {}", 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/writemem.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | pub 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.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | pub 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.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | pub 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.rs:29:25 [INFO] [stdout] | [INFO] [stdout] 29 | pub 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.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | pub 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.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | pub 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.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | pub 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.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | pub 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.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | pub 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.rs:53:26 [INFO] [stdout] | [INFO] [stdout] 53 | pub 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.rs:57:31 [INFO] [stdout] | [INFO] [stdout] 57 | 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.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | ... if WriteProcessMemory(handle, address as LPVOID, &to_write as *const _ 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.rs:59:50 [INFO] [stdout] | [INFO] [stdout] 59 | ... if WriteProcessMemory(handle, address as LPVOID, &to_write as *const _ 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.rs:59:83 [INFO] [stdout] | [INFO] [stdout] 59 | ... if WriteProcessMemory(handle, address as LPVOID, &to_write as *const _ as LPCVOID, std::mem::size_of::(), 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 `GetLastError` in this scope [INFO] [stdout] --> src/writemem.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 60 | panic!("Last OS Error: {}", 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/writemem.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | pub 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.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | if VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _) == 0 { [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.rs:75:48 [INFO] [stdout] | [INFO] [stdout] 75 | if VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _) == 0 { [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.rs:75:69 [INFO] [stdout] | [INFO] [stdout] 75 | if VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _) == 0 { [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/writemem.rs:76:41 [INFO] [stdout] | [INFO] [stdout] 76 | panic!("Last OS Error: {}", GetLastError()); [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.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | if VirtualProtectEx(handle, address as LPVOID, byte_amount, last_protection, &mut last_protection as *mut _) == 0 { [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.rs:79:48 [INFO] [stdout] | [INFO] [stdout] 79 | if VirtualProtectEx(handle, address as LPVOID, byte_amount, last_protection, &mut last_protection as *mut _) == 0 { [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/writemem.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | panic!("Last OS Error: {}", 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/readmem.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | pub 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.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | if ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()) == 0 { [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.rs:11:49 [INFO] [stdout] | [INFO] [stdout] 11 | if ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()) == 0 { [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.rs:11:76 [INFO] [stdout] | [INFO] [stdout] 11 | if ReadProcessMemory(handle, address as LPCVOID, bytes.as_ptr() as LPVOID, amount, std::ptr::null_mut()) == 0 { [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/readmem.rs:12:67 [INFO] [stdout] | [INFO] [stdout] 12 | panic!("ReadProcessMemory failed! Last OS Error: {}", 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/readmem.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | pub 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.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | pub 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.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 27 | pub 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.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | pub 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.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | pub 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.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | pub 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.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | pub 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.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | pub 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.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | pub 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.rs:55:25 [INFO] [stdout] | [INFO] [stdout] 55 | pub 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.rs:59:39 [INFO] [stdout] | [INFO] [stdout] 59 | 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.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | ... if 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.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | ... if 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.rs:62:88 [INFO] [stdout] | [INFO] [stdout] 62 | ... if 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[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/readmem.rs:63:67 [INFO] [stdout] | [INFO] [stdout] 63 | panic!("ReadProcessMemory failed! Last OS Error: {}", 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/readmem.rs:70:44 [INFO] [stdout] | [INFO] [stdout] 70 | pub 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.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | if IsWow64Process(handle, &mut is_32_bit as *mut i32) == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/readmem.rs:78:64 [INFO] [stdout] | [INFO] [stdout] 78 | panic!("IsWow64Process failed! Last OS Error: {}", GetLastError()); [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.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | if ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()) == 0 { [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.rs:90:53 [INFO] [stdout] | [INFO] [stdout] 90 | if ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()) == 0 { [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.rs:90:87 [INFO] [stdout] | [INFO] [stdout] 90 | if ReadProcessMemory(handle, address as LPCVOID, &mut buffer as *mut _ as LPVOID, pointer_size, std::ptr::null_mut()) == 0 { [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/readmem.rs:91:71 [INFO] [stdout] | [INFO] [stdout] 91 | panic!("ReadProcessMemory failed! Last OS Error: {}", GetLastError()); [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.rs:11:30 [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.rs:11:55 [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.rs:14:30 [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[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> src/process.rs:15:63 [INFO] [stdout] | [INFO] [stdout] 15 | panic!("INVALID HANDLE VALUE! Last OS Error: {}", GetLastError()); [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.rs:18:23 [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.rs:19:38 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn get_process_id(process_name: &str) -> Option { [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.rs:21:12 [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, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/process.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | 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.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | 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, tuple struct or tuple variant `CloseHandle` in this scope [INFO] [stdout] --> src/process.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | 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 `CloseHandle` in this scope [INFO] [stdout] --> src/process.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | 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 `CreateToolhelp32Snapshot` in this scope [INFO] [stdout] --> src/process.rs:48:29 [INFO] [stdout] | [INFO] [stdout] 48 | let h_module_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.rs:48:54 [INFO] [stdout] | [INFO] [stdout] 48 | let h_module_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.rs:48:74 [INFO] [stdout] | [INFO] [stdout] 48 | let h_module_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.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | if h_module_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.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | CloseHandle(h_module_snap); [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/process.rs:52:63 [INFO] [stdout] | [INFO] [stdout] 52 | panic!("INVALID HANDLE VALUE! Last OS Error: {}", GetLastError()); [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.rs:55:31 [INFO] [stdout] | [INFO] [stdout] 55 | 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.rs:56:46 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_module_base(process_id: u32, module_name: &str) -> Option { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 56 | 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.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | if Module32First(h_module_snap, &mut module_entry) != 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.rs:61:17 [INFO] [stdout] | [INFO] [stdout] 61 | CloseHandle(h_module_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.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | while Module32Next(h_module_snap, &mut module_entry) != 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.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | CloseHandle(h_module_snap); [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.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | CloseHandle(h_module_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.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | pub 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.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | if WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()) == 0 { [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.rs:10:50 [INFO] [stdout] | [INFO] [stdout] 10 | if WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()) == 0 { [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.rs:10:76 [INFO] [stdout] | [INFO] [stdout] 10 | if WriteProcessMemory(handle, address as LPVOID, bytes.as_ptr() as LPVOID, bytes.len(), std::ptr::null_mut()) == 0 { [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/writemem.rs:11:41 [INFO] [stdout] | [INFO] [stdout] 11 | panic!("Last OS Error: {}", 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/writemem.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | pub 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.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | pub 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.rs:25:26 [INFO] [stdout] | [INFO] [stdout] 25 | pub 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.rs:29:25 [INFO] [stdout] | [INFO] [stdout] 29 | pub 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.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | pub 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.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | pub 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.rs:41:26 [INFO] [stdout] | [INFO] [stdout] 41 | pub 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.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | pub 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.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | pub 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.rs:53:26 [INFO] [stdout] | [INFO] [stdout] 53 | pub 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.rs:57:31 [INFO] [stdout] | [INFO] [stdout] 57 | 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.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | ... if WriteProcessMemory(handle, address as LPVOID, &to_write as *const _ 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.rs:59:50 [INFO] [stdout] | [INFO] [stdout] 59 | ... if WriteProcessMemory(handle, address as LPVOID, &to_write as *const _ 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.rs:59:83 [INFO] [stdout] | [INFO] [stdout] 59 | ... if WriteProcessMemory(handle, address as LPVOID, &to_write as *const _ as LPCVOID, std::mem::size_of::(), 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 `GetLastError` in this scope [INFO] [stdout] --> src/writemem.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 60 | panic!("Last OS Error: {}", 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/writemem.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | pub 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.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | if VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _) == 0 { [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.rs:75:48 [INFO] [stdout] | [INFO] [stdout] 75 | if VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _) == 0 { [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.rs:75:69 [INFO] [stdout] | [INFO] [stdout] 75 | if VirtualProtectEx(handle, address as LPVOID, byte_amount, PAGE_EXECUTE_READWRITE, &mut last_protection as *mut _) == 0 { [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/writemem.rs:76:41 [INFO] [stdout] | [INFO] [stdout] 76 | panic!("Last OS Error: {}", GetLastError()); [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.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | if VirtualProtectEx(handle, address as LPVOID, byte_amount, last_protection, &mut last_protection as *mut _) == 0 { [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.rs:79:48 [INFO] [stdout] | [INFO] [stdout] 79 | if VirtualProtectEx(handle, address as LPVOID, byte_amount, last_protection, &mut last_protection as *mut _) == 0 { [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/writemem.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | panic!("Last OS Error: {}", GetLastError()); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 91 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] [stdout] error: aborting due to 91 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b1de42a740b8be733e287ae9fa4a7846ed3e116479d2cec375223c8bcec02586", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1de42a740b8be733e287ae9fa4a7846ed3e116479d2cec375223c8bcec02586", kill_on_drop: false }` [INFO] [stdout] b1de42a740b8be733e287ae9fa4a7846ed3e116479d2cec375223c8bcec02586