query_command_line

Function query_command_line 

Source
fn query_command_line(pid: u32) -> String
Expand description

Read a process’s command line via GetCommandLineW is not an option for foreign processes — that’s the calling process’s cmdline. Instead we use QueryFullProcessImageNameW for the executable path and treat cmdline as “unavailable” for v1. WMI can fill this in later if the user asks for full cmdline.