JCL Help:PeDoesImportLibrary

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Tests whether an image is implicitly linked against a library.


Pascal

 function PeDoesImportLibrary(const FileName: TFileName; const LibraryName: string; Recursive: Boolean = False): Boolean;


Parameters

Parameters Description
const FileName: TFileName Filename of the image to test.
const LibraryName: string Name of the library to test against.
Recursive: Boolean = False If False the function only tests for direct imports (library A links directly against lbrary B). If True the function performs the test recursively and therefore includes indirect imports (library A links against library B which links against library C therefore library A links against library C).


Return Value

If the image directly imports the library the function returns True, otherwise it returns False.


Description

PeDoesImportLibrary determines whether the specified image implicitly links against the specified library. Thus it tests whether the image imports anything from the library.


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