Call a function in Game.dll

This is a discussion on Call a function in Game.dll within the Warcraft 3 Hacks, bots and tools board part of the Warcraft 3 forum category; Originally Posted by GoDLiKe.ON3 Thanks. Tested with __thiscall, no sucess. You should learn more about calling convention. In the image ...

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    open|Fire is offline Addict
    Array
    Join Date
    Feb 2010
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    28
    Quote Originally Posted by GoDLiKe.ON3 View Post
    Thanks.
    Tested with __thiscall, no sucess.
    You should learn more about calling convention.
    In the image you see retn 8 // so it's 2 parameters + the this pointer.



    Code:
    typedef void (__thiscall *myfunction)(int _this, int param1, int param2);
    myfunction pFunction = (myfunction)0x6F0057F0;
    Last edited by open|Fire; 04-08-2012 at 10:23 AM.

  2. #12
    Farid.Agl's Avatar
    Farid.Agl is offline Advanced Hacker

    Array
    Join Date
    Sep 2011
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    322
    Thanks.
    How can i know what are the parameters? Is there any way to trace them? To see each time this function get called by WC3 itself what parameters are sent to the function ?
    http://faridaghili.ir

  3. #13
    YourName's Avatar
    YourName is offline THE ONE AND ONLY DARK KNIGHTY


    Array
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    1,553
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    16
    Reputation
    1088
    Quote Originally Posted by GoDLiKe.ON3 View Post
    Thanks.
    How can i know what are the parameters? Is there any way to trace them? To see each time this function get called by WC3 itself what parameters are sent to the function ?
    Calling convention - Wikipedia, the free encyclopedia
    http://en.wikipedia.org/wiki/X86_calling_conventions
    Providing you with foolish stuff since 2007.

  4. The Following User Says Thank You to YourName For This Useful Post:


Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 3
    Last Post: 12-07-2011, 10:40 AM
  2. Replies: 0
    Last Post: 12-03-2011, 03:24 AM
  3. [Help]Make a program to enable "Save game" function
    By cucucu123 in forum Warcraft 3 forum
    Replies: 3
    Last Post: 03-15-2010, 05:10 PM
  4. Steal WoW game cards via a phone call
    By Kidades in forum WoW Bots, hacks and exploits
    Replies: 1
    Last Post: 07-31-2009, 03:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •