Tests two case ignore strings (defined by CI_String_T ) to determine if the two strings are equivalent.
#include <nwnet.h> or #include <nwdsname.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSCIStringsMatch ( NWDSContextHandle context, pnstr8 string1, pnstr8 string2, pnint matches ;)
uses netwin32 Function NWDSCIStringsMatch (context : NWDSContextHandle; string1 : pnstr8; string2 : pnstr8; matches : pnint ) : NWDSCCODE;
(IN) Specifies the NDS context to be used. It is created by calling NWDSCreateContextHandle.
(IN) Points to the first string to compare.
(IN) Points to the second string to compare.
(OUT) Points to a boolean indicating whether the strings match: 0 = Don’t match; 1 = Match.
These are common return values.
Case Ignore String is a syntax used by some of the eDirectory attributes such as CN, Description, Given Name, Surname, and Title.
Depending on the setting of the DCV_XLATE_STRINGS context key, NWDSCIStringsMatch compares two strings either in the local or Unicode code page. This function ignores leading and trailing white space, which is either " " (space, 0x0020) or "_" (underscore, 0x005F). Also, it matches any consecutive internal white space, regardless of quantities. For example, if the string has a single internal white space character and another has five, NWDSCIStringsMatch matches the strings. Finally, NWDSCIStringsMatch ignores case in comparisons.
NWDSCIStringsMatch is a local function.