Skip to main content

read_process_argv

Function read_process_argv 

Source
pub fn read_process_argv(pid: u32) -> Result<Vec<OsString>>
Expand description

Read a process’s argument vector without flattening argument boundaries.

The returned values use std::ffi::OsString so Unix’s opaque argv bytes and Windows’ UTF-16 arguments remain representable. This is the only command-inspection API suitable for matching an executable or argument.