• Image
  • Current Version: 1.6.0: 2024-03-05T17:24:49Z
  • First Published: 2022-09-26T11:17:11Z
  • Size: 9674672
  • Supported Unity Versions: 2020.3.48
tools integration

System.Diagnostics.Process for IL2CPP

(3 Votes)
$9.97 $9.97

1-to-1 native and direct replecement of System.Diagnostics.Process. Simply switch to it with "using KS.Diagnostics".


Most of the Process methods are supported. For more request them here: https://discord.gg/qdQQrjZneS


Supported OS:

  • Windows x64

Experimental:

  • Windows Arm64
  • Linux x64
  • Osx Intel x64
  • Osx Arm64
  • Windows 2019 Server x64 (also win7 embedded)

Implemented features:


System.Diagnostics.Process:

- StartInfo

- Start()

- Dispose()

- StartInfo

- EnableRaisingEvents

- Exited

- OutputDataReceived

- ErrorDataReceived

- BeginOutputReadLine()

- BeginErrorReadLine()

- CancelOutputRead()

- WaitForExit()

- GetProcesses()

- GetProcesses(string)

- GetProcessesByName(string)

- GetProcessesByName(string,string)

- Kill()

- Kill(bool)

- ProcessName

- Id

- ExitCode

- StartTime

- EndTime

- StandardInput.BaseStream.Write(byte[], count, offset) (currently small mem allocation)

- StandardInput.BaseStream.Write(IntPtr, count, offset) (no alloc)

- StandardInput.BaseStream.Flush()

- StandardInput.BaseStream.Close()

- StandardInput.Close()

- TotalProcessorTime


System.Diagnostics.ProcessStartInfo:

- FileName

- Arguments

- UseShellExecute

- RedirectStandardOutput

- RedirectStandardError

- CreateNoWindow

- WorkingDirectory

- Verb

- Verbs


Differences due to native code:

  • OutputDataReceived object sender is always null
  • Exited object sender is always null and EventArgs is always empty
  • Exceptions may crash the application, make sure none can occur (for ex. wrong file path) Update: Exceptions shouldn't crash anymore and are rethrown as ExternalException, use Exception.HResult to check for specific type


Add to cart
This site contains affiliate links, which means that we can receive a commission if you click on a link and buy something that we have recommended.
Although clicking on these links will not cost you anything, they will help us finance our development projects while recommending good products!