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

# GetProcAddress(3w)

## NAME

**GetProcAddress** (KERNEL32.@)

## SYNOPSIS

FARPROC GetProcAddress\
  (\
   HMODULE *hModule*,\
   LPCSTR  *function*\
  )

## DESCRIPTION

Find the address of an exported symbol in a loaded dll.

## PARAMS

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

*function* **\[In\]**  Name of the symbol, or an integer ordinal number \< **16384.**

## RETURNS

**Success:** A pointer to the symbol in the process address space.

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

## IMPLEMENTATION

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

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

Debug channel **"module"**.
