INtime SDK Help
GetCurrentThread, RtGetCurrentThread (iwin32)
INtime SDK v7 > About INtime > Alternate APIs > iwin32 API > iwin32 API > GetCurrentThread, RtGetCurrentThread (iwin32)

Obtains the pseudo handle for the current thread; the handle cannot be closed.

HANDLE GetCurrentThread(VOID);

HANDLE RtGetCurrentThread(VOID);

Parameters

None.

Remarks

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.

Return Values

A pseudohandle for the current thread.

Requirements

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.

See Also

CloseHandle, GetCurrentProcess, GetCurrentThreadId, OpenProcess, iwin32 API, iwin32 Overview