lazy_extern! {
libgroup SHELL_CORE: ShCoreItems;
lib ShCore = "ShCore.dll";
#[lib(ShCore)]
#[feature_test(is_dpi_awareness_available)]
extern "stdcall" fn SetProcessDpiAwareness(value: u32) -> i32;
}
LibSpecifier |
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.
|