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

# GetModuleHandleA(3w)

## NAME

**GetModuleHandleA** (KERNEL32.@)

## SYNOPSIS

HMODULE GetModuleHandleA\
  (\
   LPCSTR *module*\
  )

## DESCRIPTION

Get the handle of a dll loaded into the process address space.

## PARAMS

*module* **\[In\]**  Name of the dll.

## RETURNS

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

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

## IMPLEMENTATION

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

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

Debug channel **"module"**.
