NWDSEGetLocalAttrName
Retrieves the name of the eDirectory attribute associated with the supplied local ID.
#include <nwdsdsa.h>
#include <nwdsevnt.h>
N_EXTERN_LIBRARY (NWDSCCODE) NWDSEGetLocalAttrName (
NWDSContextHandle context,
nuint32 attrID,
pnstr name);
|
0x0000 |
Successful |
|
Negative Value |
Negative values indicate errors. For
error values, see |
The data structures returned for eDirectory events do not contain attribute names. Instead, these structures use local IDs to identify the attribute associated with the event. NWDSEGetLocalAttrName is used to map the local attribute ID found in the structures, to a text form of the name, such as "Telephone Number."
Comparisons of IDs is faster than comparisons of text strings. Therefore, to avoid unnecessary processing time, your application should filter on IDs when possible.
The caller must allocate space for the attribute name pointed to by name. The size of the allocated memory is ((MAX_SCHEMA_NAME_CHARS)+1)*sizeof(character size) where character size is 1 for single-byte characters, and 2 for double-byte characters (Unicode is double-byte). One character is used for NULL termination.