[Doubt] About DLL Injection
Hey guys,
I'm wondering if it's possible to call a function that is in process B VA space, by process A.
So far I've made a DLL injection, and the calls I make to process B are coming from a hooking function inside the DLL code. It's working like:
Code:
...
if (presedKey == F1)
moveTo(DWORD x, DWORD y)
...
void __stdcall moveTo(DWORD x, DWORD y)
{
typedef void (__stdcall *pFunctionAddress)(DWORD, DWORD);
pFunctionAddress pMove = (pFunctionAddress)(MOVE_ADDRESS);
pMove(x, y);
}
However, since I'm dealing with GUI's and so, I want to be possible to call functions like that from my main program, not from the DLL.
For now, the hooking stuff is just for testing purposes.