Export (0) Print
Expand All

IntlStrEqN function

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

Syntax


BOOL IntlStrEqN(
  _In_  LPCTSTR pszStr1,
  _In_  LPCTSTR pszStr2,
  _In_  int nChar
);

Parameters

pszStr1 [in]

Type: LPCTSTR

A pointer to a null-terminated string.

pszStr2 [in]

Type: LPCTSTR

A pointer to a null-terminated string.

nChar [in]

Type: int

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

Return value

Type: BOOL

Returns TRUE if the first nChar characters are identical, or FALSE otherwise.

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)

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shlwapi.h

Library

Shlwapi.lib

DLL

Shlwapi.dll (version 5.0 or later)

Unicode and ANSI names

IntlStrEqNW (Unicode) and IntlStrEqNA (ANSI)

See also

IntlStrEqWorker

 

 

Community Additions

ADD
Show:
© 2014 Microsoft