Archive: passing parameters to system.dll functions


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. :(


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.

you are missing a couple of parameters, and param4 is a pointer to a dword


Thanks, I'll give that a go.