System plugin question about usage example
Hi Guys, i am new to NSIS and i am trying to learn how to use system plugin.
From system plugin read me, i am having hard time understanding this usage example.
Usage example
# allocate a buffer and put 'test string' and an int in it
System::Call "*(&t1024 'test string', i 5) p .s"
Pop $0 ; at this point there is no value in $0
# copy to an automatically created buffer
System::Copy 0 $0
Pop $1
# get string and int in $1 buffer
System::Call "*$1(&t1024 .r2, i .r3)"
# free buffer
System::Free $1
# print result
Messagebox MB_OK "$2 and $3" ; i added this statement to check the values
DetailPrint $2
DetailPrint $3
----
----
When i compile, i see values NULL and 0 in $2 and $3 instead of "test string" and 5. Could anyone please explain why is that ?
Thanks