const blocks for lazy import

This commit is contained in:
Jessi
2024-07-04 23:32:20 -04:00
parent f5f3343c1a
commit 52d7280628
4 changed files with 20 additions and 17 deletions

View File

@@ -11,5 +11,5 @@ x::lazy_import! { "kernel32.dll"
#[cfg(feature = "win32")]
pub fn test_exports() {
let a = LoadLibraryA(x::cstr!("user32.dll"));
println!("{} -> {}",a.into_usize(), unsafe { a.nt_header().optional_header.size_of_image });
println!("{:X} -> {:X}",a.into_usize(), unsafe { a.nt_header().optional_header.size_of_image });
}