UtilUIAutomationPauseProcess(Int32) Method

Pauses the execution of all the threads of the specified process.

Definition

Namespace: DevCase.Core.Diagnostics.Processes
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static PauseProcessObject PauseProcess(
	int pid
)

Parameters

pid  Int32
The process id. (PID).

Return Value

PauseProcessObject
The return value is a collection of openthread-handles to the thread handles of the process.

An openthread-handle could be used to suspend, resume or terminate a thread that the openthread-handle refers to.

Remarks

After pausing the threads of a process, call ResumeProcess(PauseProcessObject) function to resume their threads.

To manually resume an openthread-handle, call ResumeThread(SafeAccessTokenHandle) function.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

Win32Exception

See Also