process_match_name

Function process_match_name 

Source
pub fn process_match_name<F>(predicate: F) -> Result<Process, NEXMemoryError>
where F: Fn(String) -> bool,
Expand description

Returns the handle of the first process that matches with the set condition.

ยงUsage

let handle: u32 = NEXMemory::process_match_name(|proc| proc.contains("example.exe")).unwrap();