UtilUIAutomationExitThread(IntPtr, UInt32) Method

Terminates 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 void ExitThread(
	IntPtr openThreadHandle,
	uint exitCode = 0
)

Parameters

openThreadHandle  IntPtr
An open thread handle.

This handle can be obtained calling the PauseThread(ProcessThread) function (or the unmanaged OpenThread(ThreadAccessRights, Boolean, UInt32) function).

exitCode  UInt32  (Optional)
The desired exit code for the thread.

Exceptions

Win32Exception

See Also