VarEqv function (oleauto.h)

Performs a bitwise equivalence on two variants.

Syntax

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

Parameters

[in] pvarLeft

The first variant.

[in] pvarRight

The second variant.

[out] pvarResult

The result variant.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If each bit in pvarLeft is equal to the corresponding bit in pvarRight then TRUE is returned. Otherwise FALSE is returned.

Requirements

Requirement Value
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll