Reference

VarOr(3w)

NAME

VarOr (OLEAUT32.157)

SYNOPSIS

HRESULT VarOr
(
LPVARIANT pVarLeft,
LPVARIANT pVarRight,
LPVARIANT pVarOut
)

DESCRIPTION

Perform a logical or (OR) operation on two variants.

PARAMS

pVarLeft [In] First variant.

pVarRight [In] Variant to OR with pVarLeft.

pVarOut [Out] Destination for OR result.

RETURNS

Success: S_OK. pVarOut contains the result of the operation with its type taken from the table listed under VarXor(3w).

Failure: An HRESULT error code indicating the error.

NOTES

See the Notes section of VarXor(3w) for further information.

IMPLEMENTATION

Declared in "oleauto.h".

Implemented in "dlls/oleaut32/variant.c".

Debug channel "variant".

History