Removes all attribute types from a distinguished name.
#include <nwnet.h> or #include <nwdsname.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSRemoveAllTypes ( NWDSContextHandle context, pnstr8 name, pnstr8 typelessName);
uses netwin32 Function NWDSRemoveAllTypes (context : NWDSContextHandle; name : pnstr8; typelessName : pnstr8 ) : NWDSCCODE;
(IN) Specifies the NDS context for the request.
(IN) Points to the object name.
(OUT) Points to the object name with the attribute types removed.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
NWDSRemoveAllTypes takes the typed name
CN=Bob.OU=Marketing.O=WimpleMakers
and returns the untyped name
Bob.Marketing.WimpleMakers
Removal of types is not done relative to the current name context. Therefore, it is not guaranteed that NWDSCanonicalizeName can restore the correct types. For more information, see the DCV_TYPELESS_NAMES key in DCK_FLAGS Key.
The caller must allocate the memory pointed to by typelessName. The size of the memory is (MAX_DN_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 is already untyped, the same untyped name will be returned.