VarBstrCmp function
Compares two variants of type BSTR.
Syntax
HRESULT VarBstrCmp( _In_ BSTR bstrLeft, _In_ BSTR bstrRight, _In_ LCID lcid, _In_ ULONG dwFlags );
Parameters
- bstrLeft [in]
-
The first variant.
- bstrRight [in]
-
The second variant.
- lcid [in]
-
The locale identifier of the program to determine whether UNICODE or ANSI strings are being used.
- dwFlags [in]
-
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
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
Show: