RtProcess Class

Provide access to wRTOS real-time processes.

Inheritance Hierarchy

System.Object
  ntervalZero.MaxRT.wRTOS.RtApi.Diagnostics.RtProcess

Namespace:  IntervalZero.MaxRT.wRTOS.RtApi.Diagnostics
Assembly:  IntervalZero.MaxRT.wRTOS (in IntervalZero.MaxRT.wRTOS.dll) Version: 1.0.0.0 (File version: 1.0.1)

Syntax

Copy
public class RtProcess : IDisposable, IDiagnosticsRtProcess

 

The RtProcess class exposes the following members.

Constructors

 

Name Description

Public method

RtProcess

Initializes a new instance of the IntervalZero.MaxRT.wRTOS.RtApi.Diagnostics.RtProcess class.

Properties

  Name Description

Public property

ExitCode

Gets the value that the associated process specified when it terminated.

Public property

ExitTime

Gets the time that the associated process exited.

Public property

Handle

Gets the associated process's native handle.

Public property

HasExited

Gets a value indicating whether the associated process has been terminated.

Public property

Id

Gets the unique identifier for the associated process.

Public property

IdealProcessor

Get the value that represents the ideal processor the process is running on.

Public property

IsRtkProcess

Gets or sets a value indicating whether this instance is RTK process.

Public property

ProcessAffinityMask

If the process is running this will use RtGetProcessAffinityMask to get the processAffinityMask. Otherwise it uses the private backing field that is set by an overloaded Start method

Public property

ProcessName

Gets the name of the process.

Public property

StartInfo

Gets or sets the properties to passed to the IntervalZero.MaxRT.wRTOS.RtApi.Diagnostics.RtProcess.Start() method of the RtProcess object.

Public property

StartTime

Gets the time that the associated process was started.

Methods

  Name Description

Public method

Dispose

Releases all resources used by this process.

Protected method

Dispose (Boolean)

Releases all resources used by this process.

Public method Static member

EnumerateProcesses

Enumerate the running RTSS processes This has a limit of 1000 running process SAME AS RTSSKill

Public method Static member

EnumerateProxyProcesses

Enumerate the running RTSS proxy processes This has a limit of 1000 running process SAME AS RTSSKill

Public method Static member

EnumerateProxyProcesses (List (Of RtProcess))

Enumerate the running RTSS proxy processes This has a limit of 1000 running process SAME AS RTSSKill

Public method Static member

GetProcessById

Returns a new RtProcess object, given the identifier of a process on the local computer.

Public method Static member

IsRealTimeDebuggerActive

Returns true if any real-time process is being debugged, otherwise returns false.

Public method

Kill

Immediately terminates the associated process.

Public method Static member

RtIsDebuggerPresent

Returns true if the real-time process identified by processId is being debugged, false otherwise. Throws a wRTOSException if passed process ID is invalid.

Public method Static member

Start (Dictionary, Object)

Starts an RTSS process via a dictionary that uses the StartParameters enumeration as the dictionary’s key type.

Public method

WaitForExit

Instructs the IntervalZero.MaxRT.wRTOS.RtApi.Diagnostics.RtProcess object to wait indefinitely for the associated process to exit.

Public method

WaitForExit (Int32)

Instructs the IntervalZero.MaxRT.wRTOS.RtApi.Diagnostics.RtProcess object to wait the specified number of milliseconds for the associated process to exit.

Public method

WaitForExitCode

Waits for the thread that get's the exitcode from the Real-Time Process to finish. Unlike WaitForExit() this routine ensures that we've updated the ExitCode value before we return the routine.

Public method

WaitForExitCode (Int32)

Waits for the thread that get's the exitcode from the Real-Time Process to finish. Unlike WaitForExit() this routine ensures that we've updated the ExitCode value before we return the routine.

See Also: