NWDSSetCurrentUser

Sets the user handle of an eDirectory user.

Local Servers:nonblocking
Remote Servers:N/A
Classification:4.x, 5.x, 6.x
Platform:NLM
Service:NDS

Syntax

  #include <nwconn.h>  
  #include <nwdsapi.h> 
   
   int NWDSSetCurrentUser ( 
     int   userHandle); 
  

Parameters

userHandle

(IN) Specifies the user handle to set as the current user's handle.

Return Values

0

(0x00)

SUCCESSFUL

2

(0x02)

INVALID_USER

Remarks

This function sets the value of the current user in the Thread Group Control Structure (TGCS). The current user determines which eDirectory authentication information is used. For more information, see Establishing Identities to Multiple eDirectory Trees—NLM Platform.

See Also

NWDSGetCurrentUser