NWSetThreadSessionContext

Assigns a session context to a thread.

Syntax

   # include <nwmisc.h>
   N_EXTERN_LIBRARY(NWCCODE) NWSetThreadSessionContext  (TSCHANDLE hTSC);
   
   

Parameters

hTSC

(IN) Specifies the session context handle.

Return Values

Remarks

The return value NWE_ALREADY_ATTACHED indicates that a thread is already assigned to a session context which needs to be cleared from this thread for this function to succeed.