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

# LoadRegTypeLib(3w)

## NAME

**LoadRegTypeLib** (OLEAUT32.162)

## SYNOPSIS

HRESULT LoadRegTypeLib\
  (\
   REFGUID    *rguid*,\
   WORD       *wVerMajor*,\
   WORD       *wVerMinor*,\
   LCID       *lcid*,\
   ITypeLib\*\* *ppTLib*\
  )

## DESCRIPTION

Loads a registered type library.

## PARAMS

*rguid* **\[In\]**  **GUID** of the registered type library.

*wVerMajor* **\[In\]**  major version.

*wVerMinor* **\[In\]**  minor version.

*lcid* **\[In\]**  locale **ID**.

*ppTLib* **\[Out\]**  pointer that receives an **ITypeLib** object on success.

## RETURNS

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

**Failure:** Any **HRESULT** code returned from QueryPathOfRegTypeLib or LoadTypeLib.

## IMPLEMENTATION

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

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

Debug channel **"ole"**.
