Skip to content
⌘ NSIS Forum Archive

passing parameters to system.dll functions

4 posts

muddlethrough#

passing parameters to system.dll functions

I am really struggling to understand how to use parameters to get information back from a system.dll call. Could someone help me please, I can't seem to make sense of the documentation? An example is like this:

System::Call "wininet::InternetGetCookieEx(t, t, t, i) (t'mydomain, t'mycookie', t r1, i 255)"

MessageBox MB_OK "cookie: $r1"

This produces a message box with 'cookie:'. I know the cookie is set so I must be doing something wrong. 🙁
Joel#
Try this:
System::Call "wininet::InternetGetCookieEx(t, t, t, i) (t'mydomain, t'mycookie', t .r1, i 255)"
MessageBox MB_OK "cookie: $1" 
Note: Didn't test.