Method | Description | |
---|---|---|
GetMainWindowHandle ( int processId ) : IntPtr | ||
GetProcessIdFromHandle ( SafeProcessHandle processHandle ) : int |
Gets the ID of a process from a handle to the process.
|
|
GetProcessIds ( ) : int[] |
Gets the IDs of all processes on the current machine.
|
|
GetProcessIds ( string machineName ) : int[] |
Gets the IDs of all processes on the specified machine.
|
|
GetProcessInfo ( int processId, string machineName ) : |
Gets the ProcessInfo for the specified process ID on the specified machine.
|
|
GetProcessInfos ( string machineName ) : System.Diagnostics.ProcessInfo[] |
Gets process infos for each process on the specified machine.
|
|
IsProcessRunning ( int processId ) : bool |
Gets whether the process with the specified ID is currently running.
|
|
IsProcessRunning ( int processId, string machineName ) : bool |
Gets whether the process with the specified ID on the specified machine is currently running.
|
|
IsRemoteMachine ( string machineName ) : bool |
Gets whether the named machine is remote or local.
|
|
OpenProcess ( int processId, int access, bool throwIfExited ) : SafeProcessHandle | ||
OpenThread ( int threadId, int access ) : SafeThreadHandle |
Method | Description | |
---|---|---|
ConvertOsxThreadFlagsToWaitReason ( Interop flags ) : System.Diagnostics.ThreadWaitReason | ||
ConvertOsxThreadRunStateToThreadState ( Interop state ) : System.Diagnostics.ThreadState | ||
CreateProcessInfo ( Interop procFsStat, System.Text.ReusableTextReader reusableReader ) : |
Creates a ProcessInfo from the data parsed from a /proc/pid/stat file and the associated tasks directory.
|
|
CreateProcessInfo ( int pid ) : |
||
CreateProcessInfo ( int pid, System.Text.ReusableTextReader reusableReader = null ) : |
Creates a ProcessInfo from the specified process ID.
|
|
EnumerateProcessIds ( ) : IEnumerable |
Enumerates the IDs of all processes on the current machine.
|
|
GetModules ( int processId ) : |
Gets an array of module infos for the specified process.
|
|
IsProcessRunning ( int processId, int processIds ) : bool | ||
ProcFsStateToThreadState ( char c ) : ThreadState |
Gets a ThreadState to represent the value returned from the status field of /proc/pid/stat.
|
|
ProcessManager ( ) : System.Collections.Generic | ||
ThrowIfRemoteMachine ( string machineName ) : void |
public static GetMainWindowHandle ( int processId ) : IntPtr | ||
processId | int | |
return | IntPtr |
public static GetProcessIdFromHandle ( SafeProcessHandle processHandle ) : int | ||
processHandle | SafeProcessHandle | The handle. |
return | int |
public static GetProcessIds ( string machineName ) : int[] | ||
machineName | string | The machine to examine. |
return | int[] |
public static GetProcessInfo ( int processId, string machineName ) : |
||
processId | int | The process ID. |
machineName | string | The machine name. |
return |
public static GetProcessInfos ( string machineName ) : System.Diagnostics.ProcessInfo[] | ||
machineName | string | The target machine. |
return | System.Diagnostics.ProcessInfo[] |
public static IsProcessRunning ( int processId ) : bool | ||
processId | int | The process ID. |
return | bool |
public static IsProcessRunning ( int processId, string machineName ) : bool | ||
processId | int | The process ID. |
machineName | string | The machine name. |
return | bool |
public static IsRemoteMachine ( string machineName ) : bool | ||
machineName | string | The machine name. |
return | bool |
public static OpenProcess ( int processId, int access, bool throwIfExited ) : SafeProcessHandle | ||
processId | int | |
access | int | |
throwIfExited | bool | |
return | SafeProcessHandle |
public static OpenThread ( int threadId, int access ) : SafeThreadHandle | ||
threadId | int | |
access | int | |
return | SafeThreadHandle |