nmeijer has asked for the wisdom of the Perl Monks concerning the following question:
Usually I am pretty good at coding different perl scenarios, but I am at a loss on this one.. please help!
So I received a dll that I dropped on my machine. and was provided with the function call
void XYZDecrypt(char *value,char *key, BSTR *encrypted)
I figured this would be quite easy as I would just..
use Win32::API; $function = Win32::API->new( 'C:\NLSClientLibrary\x86\NLSClientLibrary +.dll', 'void XYZDecrypt(char *value,char *key, BSTR *encrypted)', ); print $function->Call('','8B3A06617FEC4276A5711FBA4861B467', '[000001] +C0808FC9B3062D91E7B9B1D9A7B79216' );
but apparantly it is not that easy as I get errors from an "unknown paramater type BSTR*' as well as a dialog box that pops up indicating that the perl command line interpreter has stopped working. Can anyone help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: calling a function from a dll
by Corion (Patriarch) on Dec 31, 2012 at 17:02 UTC | |
by BrowserUk (Patriarch) on Dec 31, 2012 at 20:02 UTC | |
by nikosv (Deacon) on Jan 04, 2013 at 06:28 UTC | |
by nmeijer (Initiate) on Dec 31, 2012 at 19:03 UTC | |
by roboticus (Chancellor) on Dec 31, 2012 at 19:26 UTC | |
|
Re: calling a function from a dll
by bulk88 (Priest) on Jan 01, 2013 at 02:54 UTC |