C# 클래스 System.Diagnostics.ProcessManager

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
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 ) : ProcessInfo

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

비공개 메소드들

메소드 설명
ConvertOsxThreadFlagsToWaitReason ( Interop flags ) : System.Diagnostics.ThreadWaitReason
ConvertOsxThreadRunStateToThreadState ( Interop state ) : System.Diagnostics.ThreadState
CreateProcessInfo ( Interop procFsStat, System.Text.ReusableTextReader reusableReader ) : ProcessInfo

Creates a ProcessInfo from the data parsed from a /proc/pid/stat file and the associated tasks directory.

CreateProcessInfo ( int pid ) : ProcessInfo
CreateProcessInfo ( int pid, System.Text.ReusableTextReader reusableReader = null ) : ProcessInfo

Creates a ProcessInfo from the specified process ID.

EnumerateProcessIds ( ) : IEnumerable

Enumerates the IDs of all processes on the current machine.

GetModules ( int processId ) : ProcessModuleCollection

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

메소드 상세

GetMainWindowHandle() 공개 정적인 메소드

public static GetMainWindowHandle ( int processId ) : IntPtr
processId int
리턴 IntPtr

GetProcessIdFromHandle() 공개 정적인 메소드

Gets the ID of a process from a handle to the process.
public static GetProcessIdFromHandle ( SafeProcessHandle processHandle ) : int
processHandle SafeProcessHandle The handle.
리턴 int

GetProcessIds() 공개 정적인 메소드

Gets the IDs of all processes on the current machine.
public static GetProcessIds ( ) : int[]
리턴 int[]

GetProcessIds() 공개 정적인 메소드

Gets the IDs of all processes on the specified machine.
public static GetProcessIds ( string machineName ) : int[]
machineName string The machine to examine.
리턴 int[]

GetProcessInfo() 공개 정적인 메소드

Gets the ProcessInfo for the specified process ID on the specified machine.
public static GetProcessInfo ( int processId, string machineName ) : ProcessInfo
processId int The process ID.
machineName string The machine name.
리턴 ProcessInfo

GetProcessInfos() 공개 정적인 메소드

Gets process infos for each process on the specified machine.
public static GetProcessInfos ( string machineName ) : System.Diagnostics.ProcessInfo[]
machineName string The target machine.
리턴 System.Diagnostics.ProcessInfo[]

IsProcessRunning() 공개 정적인 메소드

Gets whether the process with the specified ID is currently running.
public static IsProcessRunning ( int processId ) : bool
processId int The process ID.
리턴 bool

IsProcessRunning() 공개 정적인 메소드

Gets whether the process with the specified ID on the specified machine is currently running.
public static IsProcessRunning ( int processId, string machineName ) : bool
processId int The process ID.
machineName string The machine name.
리턴 bool

IsRemoteMachine() 공개 정적인 메소드

Gets whether the named machine is remote or local.
public static IsRemoteMachine ( string machineName ) : bool
machineName string The machine name.
리턴 bool

OpenProcess() 공개 정적인 메소드

public static OpenProcess ( int processId, int access, bool throwIfExited ) : SafeProcessHandle
processId int
access int
throwIfExited bool
리턴 SafeProcessHandle

OpenThread() 공개 정적인 메소드

public static OpenThread ( int threadId, int access ) : SafeThreadHandle
threadId int
access int
리턴 SafeThreadHandle