Replaces the abbreviated attribute name with its unabbreviated name.
#include <nwnet.h> or #include <nwdsmisc.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSReplaceAttrNameAbbrev ( NWDSContextHandle context, pnstr8 inStr, pnstr8 outStr);
uses netwin32 Function NWDSReplaceAttrNameAbbrev (context : NWDSContextHandle; inStr : pnstr8; outStr : pnstr8 ) : NWDSCCODE;
(IN) Specifies the NDS context of the request.
(IN) Points to attrName.
(OUT) Points to the long form of the attribute name.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
NWDSReadClassDef returns the abbreviated form of some of the common naming attributes (CN, C, O, OU, L, S, and SA). The long form of these attributes (Common Name, Country Name, Organization Name, Organizational Unit Name, and so on) is returned from NWDSReplaceAttrNameAbbrev and pointed to by outStr.
The user must allocate space for the long form of the attribute 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 Unicode characters (Unicode characters are always 16 bits). One character is used for NULL termination.
If the name pointed to by inStr is not an abbreviated name, the contents of inStr will be copied to outStr.