Sign in Join
FPDoc Onlineexperiment

GetModuleName function

In unit sysutils

Return the name of the current module.

Declaration

pascal
function GetModuleName(Module: HMODULE): string

Description

GetModuleName returns the name of the current module. On windows, this is the name of the executable when executed in an executable, or the name of the library when executed in a library.

On all other platforms, the result is always empty, since they provide no such functionality.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.