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

[The CHString class is part of the WMI Provider Framework, which is no longer available for use as of Windows Vista. Instead, see Using WMI for the preferred ways to write a WMI COM provider or a WMI provider that uses the .NET Framework System.Management namespaces.]

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

Syntax


BOOL operator >=(
  const CHString &s1,
  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

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application 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 XP

Minimum supported server

Windows Server 2003

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Chstring.h (include FwCommon.h)

Library

Framedyn.lib

DLL

Framedyn.dll

See also

CHString

 

 

Show:
© 2014 Microsoft