VarBstrCmp function (oleauto.h)
Compares two variants of type BSTR.
Syntax
HRESULT VarBstrCmp(
[in] BSTR bstrLeft,
[in] BSTR bstrRight,
[in] LCID lcid,
[in] ULONG dwFlags
);
Parameters
[in] bstrLeft
The first variant.
[in] bstrRight
The second variant.
[in] lcid
The locale identifier of the program to determine whether UNICODE or ANSI strings are being used.
[in] dwFlags
The following are compare results flags.
Return value
This function can return one of these values.
Return code/value | Description |
---|---|
|
bstrLeft is less than bstrRight. |
|
The parameters are equal. |
|
bstrLeft is greater than bstrRight. |
Remarks
This function will not compare arrays or records.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oleauto.h |
Library | OleAut32.lib |
DLL | OleAut32.dll |