JCL Help:PeImportedFunctions

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns a list of all directly imported functions for an image.


Pascal

 function PeImportedFunctions(const FileName: TFileName; const FunctionsList: TStrings; const LibraryName: string = ; IncludeLibNames: Boolean = False): Boolean;


Parameters

Parameters Description
const FileName: TFileName Filename of the image for which to list the imports.
const FunctionsList: TStrings Receives the list of imported functions. Note that the contents of the list on entry are preserved.
const LibraryName: string = Name of the from which to list imports. If this parameters is empty (the default) all imports from all libraries are included. If on the other hand a library is specified only imports from that library are included. Note that the library name must include the extension.
IncludeLibNames: Boolean = False If True the imported functions are prefixed by the name of the library from which they are imported. The library and function name are separated by a dot ('.').


Return Value

If the function succeeds it returns True, otherwise it returns False. In the latter case the contents of the list are undefined. Note that even in the case of success, the list may not contain any entries (the image may not import anything).


Description

PeImportedFunctions returns a list of all directly imported functions by the specified image.


About

Unit

JclPeImage


Donator

Petr Vones


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