Komme jetzt aber überhaupt nicht drauf wie ich aus dieser Funktion
Code:
.text:00461080 push ebp .text:00461081 mov ebp, esp .text:00461083 sub esp, 4E0h .text:00461089 mov eax, dword_4D9830 .text:0046108E mov [ebp+var_A4], eax .text:00461094 mov [ebp+var_4D0], ecx .text:0046109A cmp dword_4E35B8, 1 .text:004610A1 jnz short loc_4610E7 .text:004610A3 mov eax, [ebp+var_4D0] .text:004610A9 cmp dword ptr [eax+1C8h], 3 [COLOR="Red"]geht nocht weiter aber ist viel zu viel![/COLOR] int __thiscall CommandHandler(int this, const char *a2)
Code:
int __stdcall CommandHandler(char *)
hab die Funktion Detoured
DetourFunction((PBYTE)(0x00461080/*Start der Funktion*/),(PBYTE)ServerMain::MyGmCommands);
alles schön und gut kann meine Eigenen Commands einschläusen nun Funktionieren aber die normalen Commands nicht mehr da ich die Funktion ja auf meine weiterleite...
Jemand ne bessere Lösung den char aus zu lesen? ._.






