Detours icon indicating copy to clipboard operation
Detours copied to clipboard

Can I call a function from Exe in the injected function of the dll ?

Open wdw753951 opened this issue 7 months ago • 6 comments

I am new to learn the hook, I have a question For example I know the address

typedef DWORD(*calcTextCharLengh_type)(char*, DWORD*);

myfun is my hook function
void myfun(){

    calcTextCharLengh_type calcTextCharLength = reinterpret_cast<calcTextCharLengh_type>(0x410C20);
    calcTextCharLength(xxx,xxx);
}

//when hook Successfully,the exe crash in this call, how can I call the exe's function

wdw753951 avatar Jul 25 '24 14:07 wdw753951