Hello everyone.

I've just joined this contact list so I can gratulate myself :)

I have the problem which made me to write here. Does anybody know how
to use packet.dll in perl by the means of Win32::API;

There is a problem under Win32. It would be great if anyone can show
me a working part of code.

The code should be written on Perl only.

Here's a simple part which have to work

###########################
#!/usr/bin/perl
use Win32::API;
my $str = "";
my $len = 100;
$pkt = new Win32::API("packet", "PacketGetAdapterNames", [P, P], N);
$str = " " x $len; 
$res = $pkt->Call(\$str, \$len);
###########################

But it produces a system error message about referenced memory which
could not be "written". I cannot understand why it happens.

ActivePerl 5.6.1,
OS Win2k SP2

Thanks in advance for your help.


Reply via email to