Win32::API::Callback - Callback support for Win32::API


Win32-API documentation  | view source Contained in the Win32-API distribution.

Index


NAME

Top

Win32::API::Callback - Callback support for Win32::API

SYNOPSIS

Top

  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 );




FOREWORDS

Top

* 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.

AUTHOR

Top

Aldo Calpini ( dada@perl.it ).

MAINTAINER

Top

Cosimo Streppone ( cosimo@cpan.org ).


Win32-API documentation  | view source Contained in the Win32-API distribution.