in reply to Re^2: Print Buffer
in thread Print Buffer

We need more context. What you provided is insufficient and confusing. $lpBuffer is intended to contain the packed structure, example
use strict; use warnings; use Win32::API; my $GetTempPath = new Win32::API( 'kernel32', 'GetTempPath', 'NP', 'N'); my $lpBuffer = " " x 80; my $return = $GetTempPath->Call(80, $lpBuffer); my $TempPath = substr($lpBuffer, 0, $return); print $TempPath,$/;
Get it?

Replies are listed 'Best First'.
Re^4: Print Buffer
by iea (Beadle) on Aug 11, 2008 at 15:19 UTC
    ok ... here my code
    my $lpBuffer = " " x 60; my $lpSize = '60'; my $api = new Win32::API($wimdll, "GetInformation", ['N','P','P'], 'N' +); $api->Call($fiehandle,$lpBuffer,$lpSize)or die "$^E";
    Thanks