JCL Help:PeImportedLibraries

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns a list of all libraries an image imports.


Pascal

 function PeImportedLibraries(const FileName: TFileName; const LibrariesList: TStrings; Recursive: Boolean = False; FullPathName: Boolean = False): Boolean;


Parameters

Parameters Description
const FileName: TFileName Filename of the image for which to retrieve an import list.
const LibrariesList: TStrings Receives the list of imported libraries.
Recursive: Boolean = False If False the function only includes direct imports. If True the function includes indirect imports as well (library A imports library B which in turn imports library C and therefore library A indirectly imports library C).
FullPathName: Boolean = False Determines whether the list of libraries includes the full path of the image files.


Return Value

If the function succeeds it returns True, otherwise it returns False. In the latter case the contents of the list is undefined.


Description

PeImportedLibraries returns a list of all libraries which the specified image imports (implicitly links against).


About

Unit

JclPeImage


Donator

Petr Vones


Notes

This function preserves the contents of the libraries list.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page