Stores a class name in a request buffer to be used by an eDirectory function.
#include <nwnet.h> or #include <nwdsbuft.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSPutClassName ( NWDSContextHandle context, pBuf_T buf, pnstr8 itemName);
uses netwin32 Function NWDSPutClassName (context : NWDSContextHandle; buf : pBuf_T; itemName : pnstr8; ) : NWDSCCODE;
(IN) Specifies the NDS context for the request.
(IN) Points to the request buffer being prepared.
(IN) Points to the class name to be stored in the request buffer.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
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:
Super Class Names
Containment Class Names
Naming Attribute Names
Mandatory Attribute Names
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.