NWDSEGetLocalClassName
Retrieves the name of the eDirectory object class associated with the supplied local ID.
#include <nwdsdsa.h>
#include <nwdsevnt.h>
N_EXTERN_LIBRARY (NWDSCCODE) NWDSEGetLocalClassName (
NWDSContextHandle context,
nuint32 classID,
pnstr name);
|
0x0000 |
Successful |
|
Negative Value |
Negative values indicate errors. For
error values, see |
The data structures returned for eDirectory events do not contain object class names. Instead, these structures use local IDs to identify the object class associated with an event. NWDSEGetLocalClassName is used to determine the name of the object class, such as User,that is associated with the object class ID.
Comparisons of IDs are 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 object-class name that is returned. 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.