Hi!
I was wondering how I would be able to have a DLL function return processed data back to the application that invoked the function?
I have checked the various tutorials, and couldn't find any information regarding this... May be I just need to look harder?
:)
I was wondering how I would be able to have a DLL function return processed data back to the application that invoked the function?
I have checked the various tutorials, and couldn't find any information regarding this... May be I just need to look harder?
:)
Mimosa,
if youre thinking of to cause an existing dll to change behaviour accordingly: thats impossible
If you are making your own dll, it is trivial: just supply at least 1 parameter "by reference", not by value, that is, push its address, not its value onto the stack. Then the called function inside the dll may be able to "fill" that parameter.
if youre thinking of to cause an existing dll to change behaviour accordingly: thats impossible
If you are making your own dll, it is trivial: just supply at least 1 parameter "by reference", not by value, that is, push its address, not its value onto the stack. Then the called function inside the dll may be able to "fill" that parameter.
Mimosa,
You can try this:
<dll code>
.
.
.
mov eax,result
ret
Japheth's solution is nice!:alright:
Regards,
Vortex
You can try this:
<dll code>
.
.
.
mov eax,result
ret
Japheth's solution is nice!:alright:
Regards,
Vortex
It worked.... Thank you for the help! :)