VarAnd Function

Performs a bitwise And operation between two variants of any integral type.

HRESULT VarAnd(
    [in]  LPVARIANT  pvarLeft,
    [in]  LPVARIANT  pvarRight,
    [out] LPVARIANT  pvarResult
);

pvarLeft

[in] A pointer to the first variant.

pvarRight

[in] A pointer to the second variant.

pvarResult

[out] A pointer to the result variant.

The function returns one of the following:

If pvarLeft is

If pvarRight is

Then pvarResult is

TRUE

TRUE

TRUE

TRUE

FALSE

FALSE

TRUE

NULL

NULL

FALSE

TRUE

FALSE

FALSE

FALSE

FALSE

FALSE

NULL

FALSE

NULL

TRUE

NULL

NULL

FALSE

FALSE

NULL

NULL

NULL

Show:
© 2014 Microsoft