System.Diagnostics.Process for IL2CPP

kamyker

(1)
$9
Publisher kamyker
File size 10.74MB
Number of files 24
Latest version 1.5.0
Latest release date 2023-03-16 01:16:53
First release date 2022-09-26 11:17:11
Supported Unity versions 2018.4.2 or higher

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


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

Top Publisher Assets