Directory Services

DsIsMangledDn

The DsIsMangledDn function determines if the first relative distinguished name (RDN) in a distinguished name (DN) is a mangled name of a given type.

BOOL DsIsMangledDn(
  LPCTSTR pszDn,
  DS_MANGLE_FOR eDsMangleFor
);

Parameters

pszDn
[in] Pointer to a null-terminated string that contains the distinguished name to retrieve the relative distinguished name from. This can also be a quoted distinguished name as returned by other directory service functions.
eDsMangleFor
[in] Contains one of the DS_MANGLE_FOR values that specifies the type of name mangling to look for.

Return Values

Returns TRUE if the first relative distinguished name in pszDn is mangled in the manner specified by eDsMangleFor or FALSE otherwise.

Requirements

Client: Included in Windows XP.
Server: Included in Windows Server 2003.
Unicode: Implemented as Unicode and ANSI versionson Windows NT/2000/XP.
Header: Declared in Ntdsapi.h.
Library: Use Ntdsapi.lib.

See Also

DS_MANGLE_FOR, DsIsMangledRdnValue, Domain Controller and Replication Management Functions