Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VarImp function

Performs a bitwise implication on two variants.

Syntax


HRESULT VarImp(
  _In_  LPVARIANT pvarLeft,
  _In_  LPVARIANT pvarRight,
  _Out_ LPVARIANT pvarResult
);

Parameters

pvarLeft [in]

The first variant.

pvarRight [in]

The second variant.

pvarResult [out]

The result variant.

Return value

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

Remarks

The function operates as follows.

pvarLeftpvarRightpvarResult
TRUETRUETRUE
TRUEFALSETRUE
TRUENULLTRUE
FALSETRUETRUE
FALSEFALSETRUE
FALSENULLTRUE
NULLTRUETRUE
NULLFALSENULL
NULLNULLNULL

 

Because VarImp performs bitwise operations on pvarLeft and pvarRight instead of logical operations a pvarResult of TRUE is returned by this function call.

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Show:
© 2017 Microsoft