Skip to content

janstarke/libpefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crates.io

libpefile

library to parse PE files

Installation

cargo install libpefile

Usage example

use libpefile::*;
use std::path::PathBuf;

fn main() -> std::io::Result<()> {
    let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
    let dll_file = PathBuf::from(format!("{}/samples/msaudite.dll", manifest_dir));
    let pefile = PEFile::new(dll_file)?;

    for msg in pefile.messages_iter()? {
        println!("{}: '{}'", msg.msg_id, msg.text);
    }
    Ok(())
}

About

library to parse PE files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages