Fabien Potencier > Win32-Resources > Win32::Resources

Download:
Win32-Resources-0.02.tar.gz

Dependencies

Annotate this POD

Related Modules

Win32::API
Win32::OLE
Data::Dumper
more...
By perlmonks.org
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Win32::Resources - Manipulate windows executable resources

SYNOPSIS ^

  use Win32::Resources;
  my $data = Win32::Resources::LoadResource(
    filename => 'test.exe',
    type => RT_RCDATA,
    name => 'bar',
    language => '0',
  );

DESCRIPTION ^

Win32::Resources allows you to deal with windows executable (.exe or .dll) resources (load, update and delete resources).

Resources can be icons, version information, binary datas, ...

To update resources, please see Win32::Resources::Update.

If you want to add an icon to your exe or change version information, it is easier with Win32::Exe.

EXPORT

None by default.

METHODS ^

LoadResource($args)

LoadResource return the content of a resource included in an exe file.

$args is a hash ref with the following parameters: filename: .exe to load resource from. Can be undef if you want to load a resource from the caller exe (perl.exe if you launch your script fromcommand line or xxx.exe if you made a PAR executable). type: type of resource (RT_RCDATA, ...). Can be the string or its integer representation. For example, you can specify RT_RCDATA, RCDATA or 10 as you wish. name: resource name. language: language id (optional).

You can specify a path parameter as a shortcut to the triplet type, name and language in one shot: type/name/language.

The following call is the same:

  LoadResource(path => 'RCDATA/FOO/0');
  LoadResource(type => 'RCDATA', name => 'FOO', language => '0');

REQUESTS & BUGS ^

Please report any requests, suggestions or bugs via the RT bug-tracking system at http://rt.cpan.org/ or email to bug-Win32-Resources\@rt.cpan.org.

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Win32-Resources is the RT queue for Win32::Resources. Please check to see if your bug has already been reported.

COPYRIGHT ^

Copyright 2004

Fabien Potencier, fabpot@cpan.org

This software may be freely copied and distributed under the same terms and conditions as Perl.

SEE ALSO ^

perl(1), Win32::Exe, Win32::Resources::Update.

syntax highlighting: