Re:

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matthew,

it works, with some difference.
I didn't opened the dll using LoadLibrary but with the standard
Euphoria way, so:

dll_handle=3DGetModuleHandleA("dll_name")
address=3DGetProcAddress(dll_handle,"function_name")
pointer=3Dallocate(4)
retpointer=3Dallocate(4)
poke4(pointer,address)

-- asm code:

pusha
push param_z
........
push param_a
call near dword ptr [pointer]
mov [retpointer], eax
popa
ret=20

Used CALL NEAR (#FE, #10,...)  not CALL FAR (#FF,#15,...)=20

Thank you all
-George

Sorry for the blank header, i just forgot to write something.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu