UtilUIAutomationPauseThread(ProcessThread) Method

Pauses the execution of the specified thread.

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 SafeAccessTokenHandle PauseThread(
	ProcessThread thread
)

Parameters

thread  ProcessThread
The thread.

Return Value

SafeAccessTokenHandle
The return value is an openthread-handle to the thread handle.

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

Remarks

After pausing a thread, call ResumeThread(SafeAccessTokenHandle) function to resume the thread and close the openthread-handle.

To manually close an openthread-handle, call CloseHandle(SafeHandle) 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