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

# VarUI2FromUI4(3w)

## NAME

**VarUI2FromUI4** (OLEAUT32.268)

## SYNOPSIS

HRESULT VarUI2FromUI4\
  (\
   ULONG   *ulIn*,\
   USHORT\* *pusOut*\
  )

## DESCRIPTION

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

## PARAMS

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