UtilUIAutomationExitThread(IntPtr, UInt32) Method
Terminates the execution of the specified thread.
Namespace: DevCase.Core.Diagnostics.ProcessesAssembly: 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
)
Public Shared Sub ExitThread (
openThreadHandle As IntPtr,
Optional exitCode As UInteger = 0
)
Dim openThreadHandle As IntPtr
Dim exitCode As UInteger
UtilUIAutomation.ExitThread(openThreadHandle,
exitCode)
public:
static void ExitThread(
IntPtr openThreadHandle,
unsigned int exitCode = 0
)
static member ExitThread :
openThreadHandle : IntPtr *
?exitCode : uint32
(* Defaults:
let _exitCode = defaultArg exitCode 0
*)
-> unit
No code example is currently available or this language may not be supported.
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.