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

# WIN16\_GetModuleHandle(3w)

## NAME

**WIN16\_GetModuleHandle** (KRNL386.47)

## SYNOPSIS

DWORD WIN16\_GetModuleHandle\
  (\
   SEGPTR *name*\
  )

## DESCRIPTION

Find a module from a module *name*.

**NOTE:** The current implementation works the same way the Windows(tm) **95** one does. Do not try to 'fix' it, fix the callers. + It does not do **ANY** extension handling (except that strange .**EXE** bit)! + It does not care about paths, just about basenames. (same as Windows).

## RETURNS

**LOWORD:** the Win16 module handle if found 0 if not **HIWORD** (undocumented, see **"Undocumented Windows"**, chapter **5**): Always hFirstModule

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/krnl386.exe16/ne\_module.c"**.

Debug channel **"module"**.
