SetThreadContextSpecifier
Determines the CLIB context that is to be used by all callback routines scheduled by the specified thread
#include <nwthread.h>
int SetThreadContextSpecifier (
int threadID,
int contextSpecifier);
The following table lists return values and descriptions.
Many of the functions that are registered as callbacks run as OS threads. These threads need CLIB context to use the NetWare API functions, such as printf. This function is used to determine what context is given to callbacks when they are registered by the calling thread.
The default setting is for callbacks to have the context of the thread that calls them.
The thread context specifier is set on a per-thread basis. Changing the context specifier for one thread does not change it for any of the other threads. The threadID parameter specifies which thread should have its context specifier set.
The contextSpecifier parameter tells what the context should be. It can be one of the following: