forward-dll

生成 DLL 转发的函数。

使用方法

```rust forwarddll::forwarddll!( "version.dll", DLLVERSIONFORWARDER, GetFileVersionInfoA GetFileVersionInfoByHandle GetFileVersionInfoExA GetFileVersionInfoExW GetFileVersionInfoSizeA GetFileVersionInfoSizeExA GetFileVersionInfoSizeExW GetFileVersionInfoSizeW GetFileVersionInfoW VerFindFileA VerFindFileW VerInstallFileA VerInstallFileW VerLanguageNameA VerLanguageNameW VerQueryValueA VerQueryValueW );

[no_mangle]

pub extern "system" fn DllMain(inst: isize, reason: u32, _: *const u8) -> u32 { if reason == 1 { let _ = unsafe { DLLVERSIONFORWARDER.forwardall() }; } 1 } ```

License

MIT

Copyright (c) 2022-present, hamflx