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

# FreeLibrary(3w)

## NAME

**FreeLibrary** (KERNEL32.@)

## SYNOPSIS

BOOL FreeLibrary\
  (\
   HINSTANCE *hLibModule*\
  )

## DESCRIPTION

Free a dll loaded into the process address space.

## PARAMS

*hLibModule* **\[In\]**  Handle to the dll returned by **[LoadLibraryA(3w)](/LoadLibraryA/3w.md)**.

## RETURNS

**Success:** **TRUE**. The dll is removed if it is not still in use.

**Failure:** **FALSE**. Use **[GetLastError(3w)](/GetLastError/3w.md)** to determine the cause.

## IMPLEMENTATION

Declared in **"objbase.h"**.

Implemented in **"dlls/kernel32/module.c"**.

Debug channel **"module"**.
