> perldoc Win32::API
Note that "Import" returns 1 on success and 0 on failure (in which case you can check the content of $^E).
So there's a good chance that is also useful if new() fails:
my $idleTrackerInitHandle = Win32::API->new( "C:\\Perl\\dvl\\itunes\\IdleTrac.dll", "int IdleTrackerInit() +" ) or die "Can't import IdleTrackerInit: $^E\n";
And solve whatever problem this points to.
- tye
In reply to Re: Get idle time on a Windows box (die)
by tye
in thread Get idle time on a Windows box
by mdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |