#dll #function #lib #run-time #would #definition #version

lazy_extern

Allows easy definition of functions which are only optionally loaded from a DLL at runtime, for example linking to operating system functions which may not be present on all versions you would like to support

1 unstable release

Uses old Rust 2015

0.1.0 Apr 17, 2018

#22 in #would

MIT license

8KB
158 lines

lazy_extern! {
    libgroup SHELL_CORE: ShCoreItems;
    lib ShCore = "ShCore.dll";

    #[lib(ShCore)]
    #[feature_test(is_dpi_awareness_available)]
    /// Set the Dpi (v1) awareness without a manifest
    extern "stdcall" fn SetProcessDpiAwareness(value: u32) -> i32;
}

Dependencies

~91–425KB