VarAbs3w
Usage
HRESULT VarAbs
(
LPVARIANT pVarIn,
LPVARIANT pVarOut
)
Overview
Convert a variant to its absolute value.
Params
pVarIn [In] Source variant.
pVarOut [Out] Destination for converted value.
Returns
Success: S_OK. pVarOut contains the absolute value of pVarIn.
Failure: An HRESULT error code indicating the error.
Notes
- This function does not process by-reference variants.
- 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_BSTR VT_R8
(All others) Unchanged
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.