Crate lazy_extern

Source
Expand description
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;
}

Re-exports§

Macros§

Traits§

  • Describes how to load a library from a given value for a lib X = Expr; statement in the lazy_extern! declaration. For &str or &OsStr it calls Library::new and passes the string as the library name to load. More complicated expressions are also allowed with brackets, as long as it evaluates to a type implementing LibSpecifier.