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~
~$SUPPORTDIR$\SetSecurity.dll,Crypt,void,RESULT,"pointer to string",$TOCRYPT$,"pointer to string",$CRYPTKEY$,"allocated string buffer (MAX_PATH length)",$CRYPTED$,long,$LENGTHOUT$,$~
--> 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