System.SysUtils.GetModuleName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetModuleName(Module: HMODULE): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall GetModuleName(unsigned Module);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Returns the fully qualified name of a module, given its handle.

Call GetModuleName to obtain the fully qualified name of a module, given its handle.

Module is the handle of the module whose file name is required.

Warning: On MAC OS, GetModuleName is not always successful. Depending on the way the application is called, on the presence of the /proc file system, and other factors, there are times when GetModuleName may return a name that is not fully qualified or, in some cases, no file name at all. Be sure to check the results of this function before using the returned value.

See Also

Code Examples