NWDSReadAttrDef

Retrieves information about eDirectory schema attribute definitions.

Local Servers:blocking
Remote Servers:blocking
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 <nwdssch.h> 
   
  N_EXTERN_LIBRARY (NWDSCCODE)  NWDSReadAttrDef  ( 
     NWDSContextHandle   context,  
     nuint32             infoType,  
     nbool8              allAttrs,  
     pBuf_T              attrNames,  
     pnint_ptr           iterationHandle, 
     pBuf_T              attrDefs); 
  

Pascal

  uses netwin32 
   
  Function NWDSReadAttrDef 
    (context : NWDSContextHandle; 
     infoType : nuint32; 
     allAttrs : nbool8; 
     attrNames : pBuf_T; 
     iterationHandle : pnint_ptr; 
     attrDefs : pBuf_T 
  ) : NWDSCCODE;
  

Parameters

context

(IN) Specifies the NDS context for the request.

infoType

(IN) Specifies the information type desired (see Section 5.14, Information Types for Attribute Definitions).

allAttrs

(IN) Specifies the scope of the request: TRUE=information concerning all attributes is requested; FALSE=only attributes named in attrNames are requested.

attrNames

(IN) Points to a request buffer containing the attribute names whose definitions are to be returned.

iterationHandle

(IN/OUT) Points to information needed to resume subsequent iterations of NWDSReadAttrDef.

attrDefs

(OUT) Points to a result buffer that receives the requested attribute names and/or definitions.

Return Values

These are common return values.

0x0000 0000

SUCCESSFUL

0x8996

SERVER_OUT_OF_MEMORY

0x89E2

TOO_FEW_FRAGMENTS

0x89E3

TOO_MANY_FRAGMENTS

0x89E4

PROTOCOL_VIOLATION

0x89E5

SIZE_LIMIT_EXCEEDED

0x89FD

UNKNOWN_REQUEST

0x89FD

INVALID_PACKET_LENGTH

0x89FE

BAD_PACKET

0x89FF

Failure not related to eDirectory

nonzero value

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

Remarks

The infoType, allAttrs, and attrNames parameters indicate what eDirectory Schema attribute information is requested.

If allAttrs is TRUE, information about all attributes in the eDirectory schema is requested. In this case, attrNames is ignored and can be set to NULL. If allAttrs is FALSE, only the attributes specified by attrNames are requested.

The iterationHandle parameter controls retrieval of results that are larger than the result buffer pointed to by attrDefs.

Before the initial call to NWDSReadAttrDef, set the contents of the iteration handle pointed to by iterationHandle to NO_MORE_ITERATIONS.

If the result buffer holds the complete results when NWDSReadAttrDef returns from its initial call, the location pointed to by iterationHandle is set to NO_MORE_ITERATIONS. If the iteration handle is not set to NO_MORE_ITERATIONS, use the iteration handle for subsequent calls to NWDSReadAttrDef in order to obtain further portions of the results. When the results are completely retrieved, the contents of the iteration handle will be set to NO_MORE_ITERATIONS.

NOTE:To end the Read operation before the complete results have been retrieved, call NWDSCloseIteration with a value of DSV_READ_ATTR_DEF to free memory and states associated with NWDSReadAttrDef.

The level of granularity for partial results is an individual attribute definition.

The attrDefs parameter points to a request buffer containing the requested attribute information. This buffer contains either a list of attribute names, or a sequence of attribute names and definitions depending upon the value of infoType mentioned above.

For step-by-step instructions, see Reading an Attribute Definition.

NCP Calls

See Also

NWDSReadClassDef