in reply to Win32::API and pointer of dword
I think the following would do:
my $CheckLen = Win32::API->new('...', 'CheckLen', 'P', 'V') or die ...; sub CheckLen { $len = pack('L', $_[0]); $CheckLen->Call($len); $_[0] = unpack('L', $len); }
Of course, you could also try the prototype method of loading your function.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::API and pointer of dword
by cbrauner (Novice) on Aug 18, 2009 at 14:44 UTC | |
|
Re^2: Win32::API and pointer of dword
by cbrauner (Novice) on Aug 18, 2009 at 14:45 UTC | |
by ikegami (Patriarch) on Aug 18, 2009 at 15:14 UTC | |
by cbrauner (Novice) on Aug 18, 2009 at 15:31 UTC | |
by ikegami (Patriarch) on Aug 18, 2009 at 16:30 UTC | |
by Anonymous Monk on Aug 18, 2009 at 14:56 UTC |