#include <nwnet.h> or #include <nwdsbuft.h>NWDSCCODE N_API NWDSComputeAttrValSize (NWDSContextHandle context, pBuf_T buf, nuint32 syntaxID, pnuint32 attrValSize);
Since Buf_T buffers are opaque to client applications, a client cannot view a result buffer directly to see the size of the values returned in the buffer. Call NWDSComputeAttrValSize to find the size and syntax of the current attribute value in the buffer and then dynamically allocate memory of that size to hold the current attribute's value. Then retrieve the value by calling NWDSGetAttrVal.
Call NWDSComputeAttrValSize once for each attribute value you retrieve from the result buffer.
syntaxID identifies the syntax data type the attribute information is stored in. The data structures associated with the syntaxes are listed in the ``Attribute Syntax Definitions'' section of the NetWare Directory Services Schema Specification. The enumerated types for syntaxes (such as SYN_DIST_NAME) are located in NWDSDEFS.H.
attrValSize points to the size of the attribute value in bytes. This size can be used as input to a memory allocation request. The size is large enough to contain the attribute value along with any structure returned by NWDSGetAttrVal.
Directory