NAME
Win32::Exe - Manipulate Win32 executable files
VERSION
This document describes version 0.09 of Win32::Exe, released June, 7, 2006.
SYNOPSIS
use Win32::Exe;
my $exe = Win32::Exe->new('c:/windows/notepad.exe');
# Get version information
print $exe->version_info->get('FileDescription'), ": ",
$exe->version_info->get('LegalCopyright'), "\n";
# Dump icons in an executable
foreach my $icon ($exe->icons) {
printf "Icon: %s x %s (%s colors)\n",
$icon->Width, $icon->Height, 2 ** $icon->BitCount;
}
# Import icons from a .exe or .ico file and writes back the file
$exe->update( icon => '/c/windows/taskman.exe' );
# Change it to a console application, then save to another .exe
$exe->SetSubsystem('console');
$exe->write('c:/windows/another.exe');
DESCRIPTION
This module parses and manipulating Win32 PE/COFF executable headers, including version information, icons and other resources.
More documentation will be provided in due time. For now, please look at the test files in the source distributions t/ directory for examples of using this module.
AUTHORS
Audrey Tang <cpan@audreyt.org>
COPYRIGHT
Copyright 2004, 2006 by Audrey Tang <cpan@audreyt.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.