ShlwApiStrCmpLogicalW Method

Compares two Unicode strings. Digits in the strings are considered as numerical content rather than text. This test is not case-sensitive.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ShlwApi.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
public static int StrCmpLogicalW(
	string first,
	string second
)

Parameters

first  String
The first Unicode string to be compared.
second  String
The second Unicode string to be compared.

Return Value

Int32
- Returns zero if the strings are identical.

(This value can be casted as: DevCase.Code.Application.ComparerResult.Equals)

- Returns 1 if the string pointed to by 'first' has a greater value than that pointed to by 'second'.

(This value can be casted as: DevCase.Code.Application.ComparerResult.GreaterThan)

- Returns -1 if the string pointed to by 'first' has a lesser value than that pointed to by 'second'.

(This value can be casted as: DevCase.Code.Application.ComparerResult.LessThan)

Remarks

See Also