create_process

Function create_process 

pub fn create_process<W: WindowsApi>(
    api: &W,
    application: &str,
    command_line: &[u16],
) -> Option<PROCESS_INFORMATION>
Expand description

Create process with command line using the provided API (testable version)

§Arguments

  • api - Windows API operations implementation
  • application - Application name including file extension
  • command_line - UTF-16 encoded command line

§Returns

[PROCESS_INFORMATION] of the spawned process or None if failed