-
-
Notifications
You must be signed in to change notification settings - Fork 394
Open
Description
'm currently working on a Rust project where I need to use the winapi crate to allocate memory. However, I'm encountering issues with importing certain modules and functions from winapi. Here is a snippet of my Cargo.toml and main.rs:
[package]
name = "loader"
version = "0.1.0"
edition = "2021"
[dependencies]
sysinfo = "0.30.13"
winapi = { version = "0.3.9", features = [
"winuser",
"winbase",
"synchapi",
"processthreadsapi",
"memoryapi",
"handleapi",
"tlhelp32",
"winnt",
"minwinbase"
] }
use winapi::um::winnt::{MEM_COMMIT, MEM_RESERVE, PAGE_EXECUTE_READWRITE};
use winapi::um::memoryapi::{VirtualAlloc, VirtualProtect};
use winapi::um::processthreadsapi::CreateThread;
use winapi::um::minwinbase::LPTHREAD_START_ROUTINE;
use winapi::ctypes::c_void;
...
Metadata
Metadata
Assignees
Labels
No labels