2 releases
0.1.1 | Oct 18, 2022 |
---|---|
0.1.0 | Oct 17, 2022 |
#557 in #windows
4KB
Bootstraps
Proc macro for Windows DllMain entry point
Todo
Make the proc macro send in the hinstDLL, needed for injected applications to be able to free themselves.
Example
cargo.toml
[lib]
crate-type = ["cdylib"]
[dependencies]
winapi = { version = "0.3.9", features = ["consoleapi", "processthreadsapi"] }
bootstraps = { version = "0.1.1" }
lib.rs
#[bootstraps::entry]
fn dll_main() {
println!("Hi from DllMain")
}
Dependencies
~1.5MB
~38K SLoC