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

# DispGetParam(3w)

## NAME

**DispGetParam** (OLEAUT32.28)

## SYNOPSIS

HRESULT DispGetParam\
  (\
   DISPPARAMS\* *pdispparams*,\
   UINT        *position*,\
   VARTYPE     *vtTarg*,\
   VARIANT\*    *pvarResult*,\
   UINT\*       *puArgErr*\
  )

## PARAMS

*pdispparams* **\[In\]**  Parameter list.

*position* **\[In\]**  Position of parameter to coerce in *pdispparams*.

*vtTarg* **\[In\]**  Type of value to coerce to.

*pvarResult* **\[Out\]**  Destination for resulting variant.

*puArgErr* **\[Out\]**  Destination for error code.

## DESCRIPTION

Retrieve a parameter from a **DISPPARAMS** structure and coerce it to the specified variant type.

## NOTES

Coercion is done using system (**0**) locale.

## RETURNS

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

**Failure:** **DISP\_E\_PARAMNOTFOUND**, if *position* is invalid. or **DISP\_E\_TYPEMISMATCH**, if the coercion failed. *puArgErr* is set to the index of the argument in *pdispparams*.

## IMPLEMENTATION

Declared in **"oleauto.h"**.

Implemented in **"dlls/oleaut32/dispatch.c"**.

Debug channel **"ole"**.
