i work with Visual C++ and don't know asm language very well.

i add an section to my exe file, then my cods should be asm language.
in code of this section i call myFunc. one of parameters of this function is address of a callback function.
callback function is defined end of asm code (before end of asm block), and i calculate address of this function to send to myFunc function.(correctly)
but my exe encounter "Don't send" error.
how do i return of callback function to main address of code?
for example to call "ExitThread" (api function) i return of thread to main address of code

// push other parameters
push addressOfCallbackFunc
call myFunc
jmp End

ret // ?????

Posted on 2007-04-15 06:33:42 by zoncpp