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

# VarUI1FromI2(3w)

## NAME

**VarUI1FromI2** (OLEAUT32.130)

## SYNOPSIS

HRESULT VarUI1FromI2\
  (\
   SHORT *sIn*,\
   BYTE\* *pbOut*\
  )

## DESCRIPTION

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

## PARAMS

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

*pbOut* **\[Out\]**  Destination.

## RETURNS

**Success:** **S\_OK**.

**Failure:** **E\_INVALIDARG**, if the source value is invalid **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"**.
