I have a question about system plugin.
I added data to a listbox thru SendMessage LB_ADDSTRING and now i want to retrieve it.
Here is the problem, from
Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.
"retrieve parameter:
lParam
Pointer to the buffer that will receive the string; it is type LPTSTR which is subsequently cast to an LPARAM. The buffer must have sufficient space for the string and a terminating null character. An LB_GETTEXTLEN message can be sent before the LB_GETTEXT message to retrieve the length, in TCHARs, of the string."
I cant get the string directly to a nsis variable so i decided to use system plugin, this is the call:
System::Call "user32::SendMessage(i,i,i,*t)i (r1,${LB_GETTEXT},.r2,.r3)"
r1 is the hnwd, r2 is the index and i should get the string in r2 but i got nothing.
Can anyone please help?
Thanks in advance!