| Crates.io | bootstraps |
| lib.rs | bootstraps |
| version | 0.1.1 |
| created_at | 2022-10-17 23:33:46.256882+00 |
| updated_at | 2022-10-18 14:47:40.015246+00 |
| description | Proc macro for Windows DllMain entry point |
| homepage | |
| repository | https://github.com/0xFounders/bootstraps |
| max_upload_size | |
| id | 690488 |
| size | 3,327 |
Proc macro for Windows DllMain entry point
Make the proc macro send in the hinstDLL, needed for injected applications to be able to free themselves.
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")
}