VarAdd(3w)

VarAdd3w

Usage

HRESULT VarAdd
(
LPVARIANT left,
LPVARIANT right,
LPVARIANT result
)

Overview

Add two variants.

Params

left [In] First variant.

right [In] Second variant.

result [Out] Result variant.

Returns

Success: S_OK.

Failure: An HRESULT error code indicating the error.

Notes

Native VarAdd up to and including WinXP doesn't like I1, UI2, UI4, UI8, INT and UINT as input variants.

Native VarAdd doesn't check for NULL in/out pointers and crashes. We do the same here.

Fixme

Overflow checking for R8 (double) overflow. Return DISP_E_OVERFLOW in that case.

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.