Win32::API::Callback - Callback support for Win32::API
use Win32::API; use Win32::API::Callback; my $callback = Win32::API::Callback->new( sub { my($a, $b) = @_; return $a+$b; }, "NN", "N", ); Win32::API->Import( 'mydll', 'two_integers_cb', 'KNN', 'N', ); $sum = two_integers_cb( $callback, 3, 2 );
Support for this module is highly experimental at this point.
I won't be surprised if it doesn't work for you.
Feedback is very appreciated.
Documentation is in the work. Either see the SYNOPSIS above or the samples in the samples directory.
Aldo Calpini ( dada@perl.it ).
Cosimo Streppone ( cosimo@cpan.org ).
To install Win32::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::API
CPAN shell
perl -MCPAN -e shell install Win32::API
For more information on module installation, please visit the detailed CPAN module installation guide.