NWSetDefaultNameContext

Sets the default name context.

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 <nwndscon.h> 
   
  N_EXTERN_LIBRARY (NWDSCCODE) NWSetDefaultNameContext  ( 
     nuint16   contextLength,  
     pnuint8   context); 
  

Pascal

  uses netwin32 
   
  Function NWSetDefaultNameContext 
    (contextLength : nuint16; 
     context : pnuint8 
  ) : NWCCODE;
  

Parameters

contextLength

(IN) Specifies the length of the context.

context

(IN) Points to the buffer containing the 256-byte default name context.

Return Values

These are common return values; see NDS Return Values for more information.

0x0000 0000

SUCCESSFUL

0x8833

INVALID_BUFFER_LENGTH

Remarks

The default name context may have been originally set in net.cfg. If the name is longer than 256 bytes, it will be truncated.

NCP Calls

See Also

NWGetDefaultNameContext