7 releases

0.2.5 Nov 23, 2022
0.2.4 Nov 22, 2022
0.1.0 Nov 22, 2022

#227 in Windows APIs

Download history 59/week @ 2024-02-21 36/week @ 2024-02-28 2/week @ 2024-03-06 11/week @ 2024-03-13

102 downloads per month

GPL-2.0 license

68KB
2K SLoC

GNU Style Assembly 1.5K SLoC Rust 392 SLoC

dll-proxy-rs

placeholder readme

under construction


lib.rs:

A Macro for defining an entry point for a cdylib.

On Windows, this macro will wrap your function in DllMain, and call it when the DLL attaches. It will lookup exports of supported proxies, based on our own Module Name, and store them. Effectively, creating a dynamic proxy that we could add any number of supported proxies to.

Supported Targets

  • Windows
    • x86_64-pc-windows-msvc
    • i686-pc-windows-msvc

Example

use proxy_dll::proxy;

#[proxy]
fn main() {
   println!("Hello, world!");
}

Safety

This crate is pretty unsafe

Dependencies

~1.1–1.6MB
~35K SLoC