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?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.