Win32::Exe - Manipulate Win32 executable files


NAME

Win32::Exe - Manipulate Win32 executable files


VERSION

This document describes version 0.05 of Win32::Exe, released February 16, 2004.


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 sample usages of this module.


AUTHORS

Autrijus Tang <autrijus@autrijus.org>


COPYRIGHT

Copyright 2004 by Autrijus Tang <autrijus@autrijus.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html

 Win32::Exe - Manipulate Win32 executable files