NWDSPutClassName

Stores a class name in a request buffer to be used by an eDirectory function.

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

Syntax

C

  #include <nwnet.h> 
  or 
  #include <nwdsbuft.h> 
   
  N_EXTERN_LIBRARY (NWDSCCODE)  NWDSPutClassName  ( 
     NWDSContextHandle   context,  
     pBuf_T              buf,  
     pnstr8              itemName);
  

Pascal

  uses netwin32 
   
  Function NWDSPutClassName 
    (context : NWDSContextHandle; 
     buf : pBuf_T; 
     itemName : pnstr8; 
    ) : NWDSCCODE;
  

Parameters

context

(IN) Specifies the NDS context for the request.

buf

(IN) Points to the request buffer being prepared.

itemName

(IN) Points to the class name to be stored in the request buffer.

Return Values

0x0000 0000

SUCCESSFUL

nonzero value

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

Remarks

NWDSPutClassName is a macro that calls NWDSPutClassItem. The NWDSPutClassName function makes source code more descriptive by having the function name identify what type of class item is being stored in the request buffer.

Class items are added to one of five class-definition item lists. These class-definition item lists are stored in the buffer in the following order:

  1. Super Class Names

  2. Containment Class Names

  3. Naming Attribute Names

  4. Mandatory Attribute Names

  5. Optional Attribute Names

The first two lists contain object class names; the remaining lists contain attribute names. NWDSPutClassName is used to place class names into the Super Class Names and the Containment Class Names lists. NWDSPutClassItem is used for the other lists.

NCP Calls

See Also

NWDSReadClassDef, NWDSPutClassItem