VarBstrCmp Function

Compares two variants of type BSTR.

HRESULT VarBstrCmp(  
  BSTR    bstrLeft,         
  BSTR    bstrRight,  
  LCID    lcid,
  ULONG  dwFlags
);

bstrLeft

[in] The first variant of type BSTR.

bstrRight

[in] The second variant of type BSTR.

lcid

[in] Locale identifier of the program to determine if either UNICODE or ANSI strings are being used.

dwFlags

[in] The following are compare results flags:

Options

Value

Meaning

NORM_IGNORECASE

0x00000001

Ignore case.

NORM_IGNORENONSPACE

0x00000002

Ignore nonspacing characters.

NORM_IGNORESYMBOLS

0x00000004

Ignore symbols.

NORM_IGNOREWIDTH

0x00000008

Ignore string width.

NORM_IGNOREKANATYPE

0x00000040

Ignore Kana type.

NORM_IGNOREKASHIDA

0x00040000

Ignore Arabic kashida characters.

Options

Value

Meaning

VARCMP_LT

0

The bstrLeft is less than bstrRight.

VARCMP_EQ

1

The two parameters are equal.

VARCMP_GT

2

The bstrLeft is greater than bstrRight.

This function will not compare arrays or records.

Show:
© 2015 Microsoft