VarXor(3w)

VarXor3w

Usage

HRESULT VarXor
(
LPVARIANT pVarLeft,
LPVARIANT pVarRight,
LPVARIANT pVarOut
)

Overview

Perform a logical exclusive-or (XOR) operation on two variants.

Params

pVarLeft [In] First variant.

pVarRight [In] Variant to XOR with pVarLeft.

pVarOut [Out] Destination for XOR result.

Returns

Success: S_OK. pVarOut contains the result of the operation with its type taken from the table below).

Failure: An HRESULT error code indicating the error.

Notes

- Neither pVarLeft or pVarRight are modified by this function.

- This function does not process by-reference variants.

- Input types of VT_BSTR may be numeric strings or boolean text.

- The type of result stored in pVarOut depends on the types of pVarLeft and pVarRight, and will be one of VT_UI1, VT_I2, VT_I4, VT_I8, VT_BOOL, or VT_NULL if the function succeeds.

- Type promotion is inconsistent and as a result certain combinations of values will return DISP_E_OVERFLOW even when they could be represented. This matches the behaviour of native oleaut32.

Implementation

Declared in "oleauto.h".

Implemented in "dlls/oleaut32/variant.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.