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

# VarUI4FromDec(3w)

## NAME

**VarUI4FromDec** (OLEAUT32.282)

## SYNOPSIS

HRESULT VarUI4FromDec\
  (\
   DECIMAL\* *pdecIn*,\
   ULONG\*   *pulOut*\
  )

## DESCRIPTION

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

## PARAMS

pDecIn **\[In\]**  Source.

*pulOut* **\[Out\]**  Destination.

## RETURNS

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

**Failure:** **E\_INVALIDARG**, if *pdecIn* 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"**.
