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

# LoadLibraryA(3w)

## NAME

**LoadLibraryA** (KERNEL32.@)

## SYNOPSIS

HMODULE LoadLibraryA\
  (\
   LPCSTR *libname*\
  )

## DESCRIPTION

Load a dll file into the process address space.

## PARAMS

*libname* **\[In\]**  Name of the file to load.

## RETURNS

**Success:** A handle to the loaded dll.

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

## NOTES

See **[LoadLibraryExA(3w)](/LoadLibraryExA/3w.md)**.

## IMPLEMENTATION

Declared in **"winbase.h"**.

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

Debug channel **"module"**.
