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

# CreateTypeLib2(3w)

## NAME

**CreateTypeLib2** (OLEAUT32.180)

## SYNOPSIS

HRESULT CreateTypeLib2\
  (\
   SYSKIND           *syskind*,\
   LPCOLESTR         *szFile*,\
   ICreateTypeLib2\*\* *ppctlib*\
  )

## PARAMS

*syskind* **\[In\]**  System type library is for.

*szFile* **\[In\]**  Type library file name.

*ppctlib* **\[Out\]**  Storage for object returned.

## DESCRIPTION

Obtains an **ICreateTypeLib2** object for creating a new-style (**MSFT**) type library.

## NOTES

See also CreateTypeLib.

## RETURNS

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

**Failure:** Status

## IMPLEMENTATION

Declared in **"typelib.h"**.

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

Debug channel **"ole"**.
