pub fn find_process(vmm: &Vmm<'_>, process_name: &str) -> Option<u32>Expand description
Finds the process ID (PID) of a process by its name.
§Arguments
vmm- Reference to aVmminstance.process_name- Name of the process to find.
§Returns
An Option<u32> containing the PID if found, or None if not found.
§Examples
let pid = find_process(&vmm, "smss.exe").expect("Process not found");
println!("PID: {}", pid);