bootstraps 0.1.1

Proc macro for Windows DllMain entry point
Documentation

Crate

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")
}