VarInt(3w)

VarInt3w

Usage

HRESULT VarInt
(
LPVARIANT pVarIn,
LPVARIANT pVarOut
)

Overview

Truncate a variants value to a whole number.

Params

pVarIn [In] Source variant.

pVarOut [Out] Destination for converted value.

Returns

Success: S_OK. pVarOut contains the converted value.

Failure: An HRESULT error code indicating the error.

Notes

- The type of the value stored in pVarOut depends on the type of pVarIn, according to the following table:

Input Type Output Type

---------- -----------

VT_BOOL VT_I2

VT_EMPTY VT_I2

VT_BSTR VT_R8

All Others Unchanged

- The difference between this function and VarFix(3w) is that VarFix(3w) rounds negative numbers towards 0, while this function rounds them away from zero.

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.