Optimized routines for parsing certain parts of the PE header, optimized for use in the Reloaded3 libraries & runtime. Aimed at minimizing code size down to the absolute minimum.
Add to your Cargo.toml:
[dependencies]
min-pe-parser = "0.1.0"// Assuming `pe_bytes` is a byte slice containing your PE file data
let pe_start = pe_bytes.as_ptr() as *const c_void;
let is_mapped = false;
// Get imported DLL names
let imported_dlls = unsafe { get_import_dll_names(pe_start, is_mapped, false, false) };
// Get section names
let sections = unsafe { get_section_names(pe_start, false, false) };
// Get export RVA by name
let rva = unsafe { get_export_rva(pe_start, "MyExport", is_mapped, false, false) };See the min-pe-parser crate documentation for detailed usage.
- min-pe-parser: Minimal PE parser library
For step-by-step development guidance, see the Developer Manual.
We welcome contributions! See the Contributing Guide for details.
Licensed under GPL v3 (with Reloaded FAQ).