in reply to Re: TAPI from Perl??
in thread TAPI from Perl??
There's even support for defining structures within your perl script, for use with the DLL's interface.use Win32::API; my $function = Win32::API->new( 'mydll, 'int sum_integers(int a, int b)', ); my $return = $function->Call(3, 2); # or, if you don't like the ->Call() syntax: Win32::API->Import( 'mydll', 'int sum_integers(int a, int b)', ); $return = sum_integers(3, 2); # Works great for system DLLs, too: Win32::API->Import("kernel32", "int GetCurrentProcessId()"); my $PID = GetCurrentProcessId();
|
|---|