VarFix(3w)
NAME
VarFix (OLEAUT32.169)
SYNOPSIS
HRESULT VarFix ( LPVARIANT pVarIn, LPVARIANT pVarOut )
DESCRIPTION
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 VarInt(3w) is that VarInt(3w) rounds negative numbers away from 0, while this function rounds them towards zero.
IMPLEMENTATION
Defined in "oleauto.h".
Implemented in "build/buildd-wine-unstable_1.1.32-1+b1-amd64-KnxYu0/wine-unstable-1.1.32/build32/dlls/oleaut32/variant.c".
- Debug channel "variant".