VarBstrCmp(3w)

VarBstrCmp3w

Usage

HRESULT VarBstrCmp
(
BSTR pbstrLeft,
BSTR pbstrRight,
LCID lcid,
DWORD dwFlags
)

Overview

Compare two BSTR values.

Params

pbstrLeft [In] Source.

pbstrRight [In] Value to compare.

lcid [In] LCID for the comparison.

dwFlags [In] Flags to pass directly to CompareStringW(3w).

Returns

VARCMP_LT, VARCMP_EQ or VARCMP_GT indicating that pbstrLeft is less than, equal to or greater than pbstrRight respectively.

Notes

VARCMP_NULL is NOT returned if either string is NULL unlike MSDN states. A NULL BSTR pointer is equivalent to an empty string. If LCID is equal to 0, a byte by byte comparison is performed.

Implementation

Declared in "oleauto.h".

Implemented in "dlls/oleaut32/vartype.c".

Debug channel "variant".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.