VarFix function

Returns the integer portion of a variant.

Syntax


HRESULT VarFix(
  _In_  LPVARIANT pvarIn,
  _Out_ LPVARIANT pvarResult
);

Parameters

pvarIn [in]

The variant.

pvarResult [out]

The result variant.

Return value

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

Remarks

If the variant is negative, then the first negative integer greater than or equal to the variant is returned.

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Show: