Expand description
Package to agnostically parse a resource dll for a given ID.
§Example
use resource_dll_parser::{DllResourceDescriptor, try_find_resource_from_dll};
use fs_err::File;
let file = File::open("vmfirmware.dll")?;
let descriptor = DllResourceDescriptor::new(b"VMFW", 13515);
let resource = try_find_resource_from_dll(&file, &descriptor)?;Structs§
- DllResource
Descriptor - Descriptor for locating a resource within a DLL file.
Functions§
- try_
find_ resource_ from_ dll - Tries to read the given resource from a resource dll. If the given data buffer is not a valid PE file this function returns Ok(None). If it is a PE file, but the given resource can not be found or loaded this function returns Err(…). On success the return value contains the starting offset into the file and its length. TODO: change the return types to a proper enum with variants like ‘NotPeFile, NotFound, Ok(u64, usize)’