Επεξεργασία

Κοινή χρήση μέσω


IntlStrEqNA macro (shlwapi.h)

Performs a case-sensitive comparison of a specified number of characters from the beginning of two localized strings.

Syntax

void IntlStrEqNA(
  [in]  s1,
  [in]  s2,
  [in]  nChar
);

Parameters

[in] s1

Type: LPCTSTR

A pointer to a null-terminated string.

[in] s2

Type: LPCTSTR

A pointer to a null-terminated string.

[in] nChar

Type: int

The number of characters to be compared, starting from the beginning of the strings.

Return value

None

Remarks

This function retrieves the thread locale and uses CompareString to do a case-sensitive comparison of the first nChar characters. It is equivalent to:

IntlStrEqWorker(TRUE, pszStr1, pszStr2, nChar)

Note

The shlwapi.h header defines IntlStrEqN as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 5.0 or later)

See also

IntlStrEqWorker