iea has asked for the wisdom of the Perl Monks concerning the following question:
How can i create a pointer to a structure using win32::api.Win32::API::Struct->typedef ( "FILE_INFO", qw( WCHAR Path; GUID Guid; DWORD Count; DWORD Type; USHORT Number; USHORT Parts; DWORD Index; DWORD Attributes; DWORD Flags; ) );
Can i pack the structure? and if how ... ?my $pt = Win32::API::Struct->new('FILE_INFO')or die "ERROR: $^E"; new Win32::API('dll',"GetInfo", ['P','P','N'], 'N' ) or die "ERROR: $^ +E"; #or new Win32::API('dll',"GetInfo", ['P','S','N'], 'N' ) or die "ERROR: $^ +E"; my $test = $APIHandle->Call($FileHandle,$pt,1024)or die "ERROR: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Point to a structure
by John M. Dlugosz (Monsignor) on Aug 10, 2008 at 05:16 UTC | |
by iea (Beadle) on Aug 11, 2008 at 08:04 UTC | |
by Anonymous Monk on Aug 11, 2008 at 14:38 UTC | |
|
Re: Point to a structure
by Anonymous Monk on Aug 10, 2008 at 01:54 UTC |