GetModuleFileNameA(3w)

GetModuleFileNameA3w

Usage

DWORD GetModuleFileNameA
(
HMODULE hModule,
LPSTR lpFileName,
DWORD size
)

Params

hModule [In] Module handle (32 bit).

lpFileName [Out] Destination for file name.

[In] Size of lpFileName in characters.

Overview

Get the file name of a loaded module from its handle.

Returns

Success: The length of the file name, excluding the terminating NUL.

Failure: 0. Use GetLastError(3w) to determine the cause.

Notes

This function always returns the long path of hModule The function doesn't write a terminating ' ' if the buffer is too small.

Implementation

Declared in "winbase.h".

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

Debug channel "module".

Releases

5 releases since Debian 2.1 (Slink); the text changed 4 times.

  1. 2.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.