Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1012 Bytes

GetCurrentThread.md

File metadata and controls

44 lines (28 loc) · 1012 Bytes

Home

Function name : GetCurrentThread

Group: Process and Thread - Library: kernel32


The GetCurrentThread function retrieves a pseudo handle for the current thread.


Code examples:

Reading and setting the priority class values for the current process and thread

Declaration:

HANDLE GetCurrentThread(VOID);  

FoxPro declaration:

DECLARE INTEGER GetCurrentThread;
	IN kernel32  

Parameters:

This function has no parameters.


Return value:

The return value is a pseudo handle for the current thread.


Comments:

A pseudo handle is a special constant that is interpreted as the current thread handle. The calling thread can use this handle to specify itself whenever a thread handle is required. Pseudo handles are not inherited by child processes.