#entry-point #proc-macro #windows #lib #dll-main

macro bootstraps

Proc macro for Windows DllMain entry point

2 releases

0.1.1 Oct 18, 2022
0.1.0 Oct 17, 2022

#1165 in Procedural macros

32 downloads per month

MIT license

4KB

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

Dependencies

~1.5MB
~33K SLoC