INtime SDK Help
GetCurrentThreadId (iwin32)
INtime SDK v6 > About INtime > Alternate APIs > iwin32 API > iwin32 API > GetCurrentThreadId (iwin32)

Obtains the ID for the current thread. The ID is a unique value that identifies the thread, but differs from a handle. A thread ID can be used in OpenThread.

DWORD GetCurrentThreadId(VOID);

Parameters

None.

Remarks

You cannot call this function from a pure INtime thread.

Return Values

Thread identifier of calling thread
Success.
0 (zero)
Failure.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/winbase.h windows.h iwin32.lib

Note

This function operates in the real-time portion of your application.

See Also

GetCurrentThread, OpenThread, iwin32 API, iwin32 Overview