Returns the thread identifier for the calling thread.
#include <nks/thread.h> NXThreadId_t NXThreadGetId ( void );
Returns the thread identifier of the calling thread or NX_INVALID_THREAD_ID (if no NKS context is present on the calling NetWare thread).
The thread ID is unique to the VM and is not a system-wide unique ID. To get a system-wide ID, you can combine the thread ID with the VM ID (see NWVmGetId).
For sample code, see ThrCreat.c.