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

# ICreateTypeLib2\_SetCustData(3w)

## NAME

**ICreateTypeLib2\_SetCustData** (OLEAUT32.@)

## SYNOPSIS

static HRESULT ICreateTypeLib2\_SetCustData\
  (\
   ICreateTypeLib2\* *iface*,\
   REFGUID          *guid*,\
   VARIANT\*         *pVarVal*\
  )

## PARAMS

*iface* **\[In\]**  The type library to store the custom data in.

*guid* **\[In\]**  The **GUID** used as a key to retrieve the custom data.

*pVarVal* **\[In\]**  The custom data itself.

## DESCRIPTION

Sets custom data for a type library.

## RETURNS

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

**Failure:** **E\_OUTOFMEMORY** or **E\_INVALIDARG**.

## IMPLEMENTATION

Declared in **"oaidl.h"**.

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

Debug channel **"ole"**.
