MonoBrick EV3 Firmware
Static Public Member Functions | List of all members
MonoBrickFirmware.Native.ProcessHelper Class Reference

Static Public Member Functions

static void StartProcess (string fileName, string arguments="")
 
static int RunAndWaitForProcess (string fileName, string arguments="", int timeout=0)
 
static string RunAndWaitForProcessWithOutput (string fileName, string arguments="")
 
static int GetProcessId (string seachText)
 Gets the process identifier. More...
 
static bool IsProcessRunning (string seachText)
 Determines if a process is running. More...
 
static void KillProcess (string seachText)
 Kills a process. More...
 
static void KillProcess (int id)
 Kills a process. More...
 

Member Function Documentation

static int MonoBrickFirmware.Native.ProcessHelper.GetProcessId ( string  seachText)
inlinestatic

Gets the process identifier.

Returns
The process id. Returns -1 if a process with the sechText is not running or isn't found
Parameters
seachTextProcess search text.
static bool MonoBrickFirmware.Native.ProcessHelper.IsProcessRunning ( string  seachText)
inlinestatic

Determines if a process is running.

Returns
true if is process is running; otherwise false.
Parameters
seachTextProcess seach text.
static void MonoBrickFirmware.Native.ProcessHelper.KillProcess ( string  seachText)
inlinestatic

Kills a process.

Parameters
seachTextProcess seach text.
static void MonoBrickFirmware.Native.ProcessHelper.KillProcess ( int  id)
inlinestatic

Kills a process.

Parameters
idProcess id

The documentation for this class was generated from the following file: