Salvador Fandiño García

NAME

Win32::Ldd - Track dependencies for Windows EXE and DLL PE-files

SYNOPSIS

  use Win32::Ldd qw(pe_dependencies);

  my $dep_tree = pe_dependencies('c:\\strawberry\\perl\\bin\\perl.exe');

DESCRIPTION

This module is an XS wrapper for the ntldd library.

It can inspect Windows PE files and extract information about its dependencies.

FUNCTIONS

The following function can be imported from the module:

$dep_tree = pe_dependencies($filename, %opts);

This function returns a tree of hashes representing the dependencies of the module.

The options accepted by the function are as follows:

search_paths => \@path

Where to look for DLLs. Defaults to the directories in $ENV{PATH}.

recursive => $bool

Indicates whether resolved dependencies should also be inspected for its own dependencies. Defaults to true.

data_reloc => $bool

unknown!

function_reloc => $bool

unknown!

SEE ALSO

The ntldd project.

Other tools providing similar features are the Freeware DependencyWalker (aka depends.exe), or the objdump.exe utility (included with Strawberry Perl).

COPYRIGHT AND LICENSE

Copyright (C) 2017 by Salvador Fandiño <sfandino@yahoo.com>.

Copyright (C) 2010-2016 LRN <lrn1986@gmail.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.