Aldo Calpini > Win32-API-0.41 > Win32::API::Callback

Download:
Win32-API-0.41.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  5
View/Report Bugs
Module Version: 0.41   Source   Latest Release: Win32-API-0.77

NAME ^

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

SYNOPSIS ^

  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 ^

AUTHOR ^

Aldo Calpini ( dada@perl.it ).

syntax highlighting: