in reply to Win32::API and ::Prototype assistance
Output is:#!perl #use strict; use Win32::API::Prototype; ApiLink( 'eq_handy.dll', 'BOOL bgfnTextDecrypt( LPSTR lpString, LPSTR +, lpBuffer )' ) || die ($!); my $passphrase="encrypt-phrase"; my $lpString = pack( "L2", $passphrase,0); print "Hi there\n"; $nBufferLength = 256; $lpBuffer = NewString( $nBufferLength ); if (bgfnTextDecrypt($lpString,$lpBuffer, $nBufferLength)) { print "It worked!\n"; } my $pass = unpack( "L*", $lpBuffer ); print "The pass is:",$pass,"\n";
The actual pass is bluemean.Hi there It worked! The pass is:189
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::API and ::Prototype assistance - Victory
by neilh (Pilgrim) on Jul 29, 2005 at 12:42 UTC |