Форум · Полнота восстановления · Каталог вариантов
Имя в снимке: MartinPacific · Источник Wayback
Quote: Originally Posted by [b]Nevyn[/b] The reason why this wont work for c5 is because the offset is completly wrong. The function you want to hook in nwindow is NCChat:: DrawChatMessage. Just search for the unicode, scroll up the asm til you see Int 3. Boom you're there. Find a call which goes to that adress. Now go and make your own darn irc-clients... hex dll need only long time for me. Code: [code].text:1000A2A1 loc_1000A2A1: ; CODE XREF: SetHooks+21j .text:1000A2A1 000 call SetHookSystemMesStack .text:1000A2A6 000 test eax, eax .text:1000A2A8 000 jnz short loc_1000A2B8 .text:1000A2AA 000 push offset aErrorHookingSy ; "error hooking system message stack\n" .text:1000A2AF 004 call DbgPrintProc .text:1000A2B5 004 add esp, 4 .text:1000A2B8 .... .text:1000A170 SetHookSystemMesStack proc near ; CODE XREF: SetHooks+31p .text:1000A170 .text:1000A170 flOldProtect = dword ptr -1 .text:1000A170 .text:1000A170 000 push ecx .text:1000A171 004 mov eax, flOldProtect .text:1000A176 004 mov ecx, NWindowDLL_Handle .text:1000A17C 004 push esi .text:1000A17D 008 push 1Fh ; Code_Int .text:1000A17F 00C push eax ; flOldProtect .text:1000A180 010 push offset Ident_2 .text:1000A185 014 push offset Ident_1 .text:1000A18A 018 push ecx ; NWindowDLL_Handle .text:1000A18B 01C call SetHook_N_x[/code] P.S. Sory my bad english.