QUOTE(White Scorpion @ Feb 25 2005, 02:10 PM)
msdn is indeed the best resource.
example:
CODE
MessageBoxA(NULL,"Text here","White Scorpion",MB_OK);
would be
CODE
push NULL ; or 0
push offset White Scorpion
push offset Text Here
push MB_OK
call MessageBoxA
in assembly
would be something like
CODE
push 0
push 00401384
push 00401400
push 0
call MessageBoxA
in a disassembled program.
see the resemblence? it is in the opposite order in assembly. you push the last argument first since the stack works via the FILO (first in last out) technique.
Correct me if I'm wrong (I'm used to being so...) but...
push NULL ; or 0
push offset White Scorpion
push offset Text Here
push MB_OK
shouldn't that be...
push MB_OK
push offset White Scorpion
push offset Text Here
push NULL ; or 0
?
I thought, from the IDESpin tuts, that the params are passed in the reverse...? Let me know, thanks.