[Help] How i can hook function with debug/PTR build ? menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Woweur's Avatar Corporal
    Reputation
    24
    Join Date
    Jan 2010
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] How i can hook function with debug/PTR build ?

    Hi, i have a problem to inject a dll and hook some function with the lasted cataclysm build (compiled in debug). In fact, in the first build (compiled in release), for example the prototype of function SetMessageHandler with build in release is :
    Code:
    int __cdecl sub_ClientServices_SetMessageHandler(int a1, int a2, int a3);
    Ok, i can hook this function without problem and it's work.

    Now, the prototype of that function with build in debug :
    Code:
    unsigned int __usercall sub_4BB220<eax>(int a1<ebp>, unsigned int a2, int a3, int a4);
    One argument added, and "eax, ebp". If i hook with just add the argument, i win a wowerror ...

    Anybody can help me ? Thx.

    [Help] How i can hook function with debug/PTR build ?
  2. #2
    caytchen's Avatar Contributor
    Reputation
    138
    Join Date
    Apr 2007
    Posts
    162
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is not the prototype of the function. It is what IDA *thinks* is the prototype. Check the assembler code from where the function is called.

  3. #3
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Why should it differ in any way from release build?

  4. #4
    Woweur's Avatar Corporal
    Reputation
    24
    Join Date
    Jan 2010
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks it's work with ASM arg, i think my problem is for __thiscall function.

Similar Threads

  1. Trouble hooking function with Detours
    By Miivers in forum WoW Memory Editing
    Replies: 5
    Last Post: 01-03-2016, 04:52 AM
  2. How to get some function with tracking?
    By csoldjb in forum WoW Memory Editing
    Replies: 0
    Last Post: 06-20-2015, 11:31 AM
  3. [Help]How i can find new offsets?
    By voron23 in forum WoW Memory Editing
    Replies: 3
    Last Post: 05-14-2009, 11:09 PM
  4. [HELP] How to make a quest with PVP
    By Darksid in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 07-05-2008, 07:32 PM
  5. [Help]How to combine .MPQ's with Glitchy's MES.
    By Flipt in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 06-14-2008, 07:21 AM
All times are GMT -5. The time now is 04:15 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search