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

# VarI2FromCy(3w)

## NAME

**VarI2FromCy** (OLEAUT32.52)

## SYNOPSIS

HRESULT VarI2FromCy\
  (\
   CY     *cyIn*,\
   SHORT\* *psOut*\
  )

## DESCRIPTION

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

## PARAMS

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