CHString::operator<=(const CHString&, const CHString&) method

[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.

Syntax

BOOL operator<=(
  [ref] const CHString &s1,
  [ref] const CHString &s2
);

Parameters

  • s1 [ref]
    Reference to the CHString to the left of the operator for this comparison.

  • s2 [ref]
    Reference to the CHString to the right of the operator for this comparison.

Return value

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

Examples

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

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

assert( s1 <= s2 ); 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

ChString.h (include FwCommon.h)

Library

FrameDyn.lib

DLL

FrameDynOS.dll; FrameDyn.dll

See also

CHString