#dll #function #lib #run-time #operating #loaded #linker

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

#11 in #linking

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

~93–540KB