Obtains the pseudo handle for the current thread; the handle cannot be closed.
HANDLE GetCurrentThread(VOID); HANDLE RtGetCurrentThread(VOID);
None.
You cannot call this function from a pure INtime thread.
A pseudohandle is a special constant interpreted as the current thread handle. When a thread handle is required, the calling thread can use this handle to specify itself.
The function cannot be used by one thread to create a handle used by other threads to refer to the first thread. The handle always refers to the thread using it.
When no longer needed, the pseudohandle does not need to close.
Calling CloseHandle with this handle has no effect.
A pseudohandle for the current thread.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/iwin32.h intime/rt/include/winbase.h |
iwin32.h windows.h |
iwin32.lib |
Note
This function operates in the real-time portion of your application.
CloseHandle, GetCurrentProcess, GetCurrentThreadId, OpenProcess, iwin32 API, iwin32 Overview