VarNot (OLEAUT32.174)
HRESULT VarNot ( LPVARIANT pVarIn, LPVARIANT pVarOut )
Perform a not operation on a variant.
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.
- Strictly speaking, this function performs a bitwise ones complement on the variants value (after possibly converting to VT_I4, see below). This only behaves like a boolean not operation if the value in pVarIn is either VARIANT_TRUE or VARIANT_FALSE and the type is signed.
- To perform a genuine not operation, convert the variant to a VT_BOOL before calling this function.
- 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_EMPTY VT_I2 VT_R4 VT_I4 VT_R8 VT_I4 VT_BSTR VT_I4 VT_DECIMAL VT_I4 VT_CY VT_I4 (All others) Unchanged
Declared in "include/oleauto.h". gitlab.winehq.org/wine/wine/blob/master/include/oleauto.h
Implemented in "dlls/oleaut32/variant.c". gitlab.winehq.org/wine/wine/blob/master/dlls/oleaut32/variant.c
Debug channel "variant".
Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Dec 2024.