Function Reference


_WinAPI_GetCurrentThreadId

Returns the thread identifier of the calling thread

#include <WinAPIProc.au3>
_WinAPI_GetCurrentThreadId ( )

Return Value

Returns the Thread identifier of the calling thread

See Also

Search GetCurrentThreadId in MSDN Library.

Example

#include <MsgBoxConstants.au3>
#include <WinAPIProc.au3>

MsgBox($MB_SYSTEMMODAL, "ID", "Get Current Thread: " & _WinAPI_GetCurrentThreadId())