NWGetDefaultNameContext

Allows the user to get 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) NWGetDefaultNameContext  ( 
     nuint16       bufferSize,  
     pnuint8       context); 
  

Pascal

  uses netwin32 
   
  Function NWGetDefaultNameContext 
    (bufferSize : nuint16; 
     context : pnuint8 
  ) : NWCCODE;
  

Parameters

bufferSize

(IN) Specifies the maximum size of buffer.

context

(OUT) Points to a buffer retrieving the 256-byte default name context. A NULL-terminated string containing the name context is returned.

Return Values

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

0x0000 0000

SUCCESSFUL

0x8833

INVALID_BUFFER_LENGTH

Remarks

The name may have been set originally in net.cfg, or it could be set by calling NWSetDefaultNameContext. If the name context is empty, a NULL string is returned.

NCP Calls

See Also

NWSetDefaultNameContext