Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.16 KB

File metadata and controls

46 lines (30 loc) · 1.16 KB

Home

Function name : GetCurrentThreadId

Group: Process and Thread - Library: kernel32


The GetCurrentThreadId function retrieves the thread identifier of the calling thread.


Code examples:

Obtaining a handle to the desktop associated with the calling thread
Retrieveing information about the active window (even if it is not owned by the calling process)
How to prevent users from accessing the Windows Desktop and from switching to other applications

Declaration:

DWORD GetCurrentThreadId(VOID);  

FoxPro declaration:

DECLARE INTEGER GetCurrentThreadId;
	IN kernel32  

Parameters:

This function has no parameters.


Return value:

The return value is the thread identifier of the calling thread.


Comments:

Until the thread terminates, the thread identifier uniquely identifies the thread throughout the system.