Skip to content

Latest commit

 

History

History
86 lines (67 loc) · 2.09 KB

nf-chstring-operator-less-than.md

File metadata and controls

86 lines (67 loc) · 2.09 KB
UID title description tech.root helpviewer_keywords ms.assetid ms.date ms.keywords targetos req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi f1_keywords dev_langs topic_type api_type api_location api_name
NF:chstring.operator-less-than
operator<
The chstring.operator-less-than function compares two strings. These operators are a convenient substitute for the case-sensitive Compare method.
wmi
operator<
bc9b4545-b2a2-48b0-b650-d048860d1386
08/10/2022
operator<
Windows
function
chstring.h
operator<
chstring/operator<
c++
apiref
chstring.h
operator<

operator<

-description

[The CHString class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]

The CHString comparison operators compare two strings. These operators are a convenient substitute for the case-sensitive Compare method.

-parameters

-param s1

Reference to the CHString to the left of the operator for this comparison.

-param s2

Reference to the CHString to the right of the operator for this comparison.

-returns

If the strings meet the comparison condition, the operators return a nonzero value. Otherwise, 0 is returned.

-remarks

Examples

The following code example shows the use of a CHString Comparison Operator:

CHString s1( L"abc" );
CHString s2( L"abd" );

assert( s1 < s2 );

-see-also

CHString