---
name: "VarUI2FromI2"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/VarUI2FromI2"
---

# VarUI2FromI2(3w)

## NAME

**VarUI2FromI2** (OLEAUT32.258)

## SYNOPSIS

HRESULT VarUI2FromI2\
  (\
   SHORT   *sIn*,\
   USHORT\* *pusOut*\
  )

## DESCRIPTION

Convert a **VT\_I2** to a **VT\_UI2**.

## PARAMS

*sIn* **\[In\]**  Source.

*pusOut* **\[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"**.
