VarInt (OLEAUT32.172)
HRESULT VarInt ( LPVARIANT pVarIn, LPVARIANT pVarOut )
Truncate a variants value to a whole number.
pVarIn | [In] | Source variant. |
pVarOut | [Out] | Destination for converted value. |
Success: S_OK. pVarOut contains the converted value.
Failure: An HRESULT error code indicating the error.
- 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 is that VarFix rounds negative numbers towards 0, while this function rounds them away from zero.
Defined in "oleauto.h".
Implemented in "dlls/oleaut32/variant.c". source.winehq.org/source/dlls/oleaut32/variant.c
Debug channel "variant".
Copyright © 2008 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Jul 2008.