VarPow function (oleauto.h)

Returns the result of performing the power function with two variants.

Syntax

HRESULT VarPow(
  [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

Returns the result of pvarLeft to the power of pvarRight.

Requirements

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