Class WindowsProcess
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a process running on a machine.
public class WindowsProcess : GlobalSerializableClassicBase, IComparable<WindowsProcess>
- Inheritance
-
WindowsProcess
- Implements
Constructors
WindowsProcess()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsProcess class.
public WindowsProcess()
Properties
Caption
Gets or sets the name of the process - for example "svchost.exe".
public string Caption { get; set; }
Property Value
CommandLine
Gets or sets the full command line of the process including command line switches - for example "C:\Windows\system32\svchost.exe -k DcomLaunch".
public string CommandLine { get; set; }
Property Value
Description
Gets or sets the description of the process. This information is obtained from the description field of the process's executable file, and is an optionally documented property.
public string Description { get; set; }
Property Value
ExecutablePath
Gets or sets the path to the executable that the process is running - for example "C:\Windows\system32\svchost.exe".
public string ExecutablePath { get; set; }
Property Value
ParentProcessId
Gets or sets the process ID (PID) of the process's parent process.
public uint ParentProcessId { get; set; }
Property Value
PercentProcessorTime
Gets or sets the percent processor time at the time of the scan. This only applies to Windows Vista, Windows Server 2008, and above.
public int PercentProcessorTime { get; set; }
Property Value
PrivateWorkingSet
Gets or sets the active private working set in kilobytes for the process. This only applies to Windows Vista, Windows Server 2008, and above.
public ulong PrivateWorkingSet { get; set; }
Property Value
ProcessId
Gets or sets the process ID (PID) of the process.
public uint ProcessId { get; set; }
Property Value
Methods
CompareTo(WindowsProcess)
Compares two CENTREL.XIA.Configuration.Types.WindowsProcess objects to allow sorting alphabetically by caption.
public int CompareTo(WindowsProcess other)
Parameters
other
WindowsProcessThe CENTREL.XIA.Configuration.Types.WindowsProcess to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.WindowsProcess objects.
ToString()
Returns the name of the process - for example "svchost.exe".
public override string ToString()
Returns
- string
The name of the process.