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

# QueryPathOfRegTypeLib(3w)

## NAME

**QueryPathOfRegTypeLib** (OLEAUT32.164)

## SYNOPSIS

HRESULT QueryPathOfRegTypeLib\
  (\
   REFGUID *guid*,\
   WORD    *wMaj*,\
   WORD    *wMin*,\
   LCID    *lcid*,\
   LPBSTR  *path*\
  )

## DESCRIPTION

Gets the *path* to a registered type library.

## PARAMS

*guid* **\[In\]**  referenced *guid*.

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

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

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

*path* **\[Out\]**  *path* of typelib.

## RETURNS

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

**Failure:** If the type library is not registered then **TYPE\_E\_LIBNOTREGISTERED** or **TYPE\_E\_REGISTRYACCESS** if the type library registration key couldn't be opened.

## IMPLEMENTATION

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

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

Debug channel **"ole"**.
