NAME

VarAdd  (OLEAUT32.141)

SYNOPSIS

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

DESCRIPTION

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 dosn't like as input variants I1, UI2, UI4, UI8, INT and UINT.

Native VarAdd dosn'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

Defined in "oleauto.h".

Implemented in "dlls/oleaut32/variant.c". source.winehq.org/source/dlls/oleaut32/variant.c

Debug channel "variant".


Copyright © 2005 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Aug 2005.