Sign in Join
FPDoc Onlineexperiment

GetModuleByAddr procedure

In unit exeinfo

Return the module name by address.

Declaration

pascal
procedure GetModuleByAddr(addr: pointer; var baseaddr: pointer; 
 var filename: ansistring)

Arguments

addr

Address to examine.

baseaddr

Base address at which module is loaded.

filename

FileName of the module at address addr.

Description

GetModuleByAddr returns the name of the module that contains address addr. If successful, it returns True and returns the filename in FileName and the base address at which it is loaded in BaseAddr.

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