Reference

VarI2FromUI2(3w)

NAME

VarI2FromUI2 (OLEAUT32.206)

SYNOPSIS

HRESULT VarI2FromUI2
(
USHORT usIn,
SHORT* psOut
)

DESCRIPTION

Convert a VT_UI2 to a VT_I2.

PARAMS

usIn [In] Source.

psOut [Out] Destination.

RETURNS

Success: S_OK.

Failure: DISP_E_OVERFLOW, if the value will not fit in the destination

IMPLEMENTATION

Declared in "oleauto.h".

Implemented in "dlls/oleaut32/vartype.c".

Debug channel "variant".

History