Returning...?
Hey. Got a question for you guys. Now i'm not sure if the syntax is correct but i'm sure you'll understand what i'm trying to say.
If I do something like this:
Now if we search the FindWindow function in MSDN we can clearly see it's return type is HWND. My question is, where exactly did that return value go to?
One more question. Is there a way to intercept the returning of this value before it is actually returned? For example, if I have a function that adds 2 numbers then returns the result. Before it returns the result is there a way I can edit the value and then return it?
Thanks.
If I do something like this:
Code:
.data wind db "Minesweeper" .code start: PUSH addr wind PUSH 0 call FindWindow
One more question. Is there a way to intercept the returning of this value before it is actually returned? For example, if I have a function that adds 2 numbers then returns the result. Before it returns the result is there a way I can edit the value and then return it?
Thanks.
Good to see someone else taking an interest in Assembly