GetCurrentThread Procedure

Returns the current thread handle.

Syntax

[ hThread = ] GetCurrentThread ( )

The GetCurrentThread procedure syntax has the following parts:

 

Name

Type

Description

hThread

Val AHandle

Handle to the thread.

Example

The following example will return the handle of the current thread:

hThread1 = GetCurrentThread()

See Also

CreateThread, ExitThread, GetThreadPriority, SetThreadPriority, TerminateThread