NWDSSetContext

Sets the information in an NDS context handle.

NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98, Windows 2000, Windows XP
Library:Cross-Platform NDS (NET*.*)
Service:NDS

Syntax

C

  #include <nwnet.h> 
  or 
  #include <nwdsdc.h> 
   
  N_EXTERN_LIBRARY (NWDSCCODE)  NWDSSetContext  ( 
     NWDSContextHandle   context,  
     nint                key,  
     nptr                value); 
  

Pascal

  uses netwin32 
   
  Function NWDSSetContext 
    (context : NWDSContextHandle; 
     key : nint; 
     value : nptr 
  ) : NWDSCCODE;
  

Parameters

context

(IN) Specifies the context handle for the request.

key

(IN) Specifies the information to set (see Section 5.6, Context Keys and Flags).

value

(IN) Points to the values to use in changing the context handle information.

Return Values

0x0000 0000

SUCCESSFUL

nonzero value

Nonzero values indicate errors. See NDS Return Values (–001 to –799).

Remarks

Applications cannot directly change context handle information; they must use the NWDSSetContext function to change information.

The key parameter specifies the type of information to change, and the value parameter points to the new value. The value parameter must point to a variable matching the data type specified by the key parameter. For data types and defined keys, see Section 5.6, Context Keys and Flags.

The NWDSSetContext function must be called for each key that has information that needs to be modified.

NCP Calls

See Also

NWDSCreateContextHandle, NWDSFreeContext, NWDSGetContext