pub fn process_match_name<F>(predicate: F) -> Result<u32, 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();