I search to use a dll function (c++) for crypt a string.
The prototype of this function:
void Crypt(const char *StrToCrypt,const char *key,char *cryptedStr,int &length_out)
cryptedStr and length_out, are initialized by function.
In my installAware script I use this line for call the previous function
Code: Select all
~InstallAware Clipboard Data~
~Call DLL Function~
~{D431C00B-9B7E-44D9-A9B4-DAB5BB2D5A2C}~
~$SUPPORTDIR$\SetSecurity.dll,Crypt,void,RESULT,"pointer to string",$TOCRYPT$,"pointer to string",$CRYPTKEY$,"allocated string buffer (MAX_PATH length)",$CRYPTED$,long,$LENGTHOUT$,$~
~mIDEFunc.dll\mEXEFunc.dll~
So:
--> my dll function is called without problem but $CRYPTED$ and $LENGTHOUT$ are not initialized.
--> my dll function receive correctly $TOCRYPT$ and $CRYPTKEY$ variable
I tested to change $CRYPTKEY$ to "pointer to string" but this not fix my problem
You know how to solve this problem ?
Thanks in advance for your help