Page 6 of 8 FirstFirst ... 45678 LastLast
Results 76 to 90 of 108
  1. #76
    Skrillex's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    701
    Reputation
    103
    Thanks
    4,749
    My Mood
    Fine
    Quote Originally Posted by BlackLite View Post
    how to find LTCLIENT ? mmz
    FogEnable 0 (im not sure) 0x3....

  2. #77
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    Quote Originally Posted by ~FALLEN~ View Post
    Virtual method table - Wikipedia, the free encyclopedia

    Example:
    *reinterpret_cast< unsigned long* >( &VTable[Index ] ) = reinterpret_cast< unsigned long >( YourFunction );
    Woah, hold up. So you are replacing the virtual function with your own function? I understand what you're doing, but doesn't this mean that the real virtual function such as dip and es won't ever be called?

  3. #78
    ~FALLEN~'s Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    devenv.exe
    Posts
    529
    Reputation
    23
    Thanks
    328
    My Mood
    Inspired
    Quote Originally Posted by 258456 View Post
    Woah, hold up. So you are replacing the virtual function with your own function? I understand what you're doing, but doesn't this mean that the real virtual function such as dip and es won't ever be called?
    No, just redirect flow back into the original function when you're done

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

    258456 (02-17-2012)

  5. #79
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    Quote Originally Posted by ~FALLEN~ View Post
    No, just redirect flow back into the original function when you're done
    Hmm... Well, this is a lot more simple than what i have been doing. I would think that this would be easily detected by xtrap since changing the address of a vtable function in directx is a pretty major adjustment. Well, i guess you learn new things everyday. Good job @~FALLEN~ on your method. Simple is the way to go, lol. This is definitely going to change my hooking methods, hehe.
    Last edited by 258456; 02-17-2012 at 10:55 PM.

  6. #80
    Assassin's Creed's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    1,210
    Reputation
    54
    Thanks
    1,408
    My Mood
    Worried
    @~FALLEN~ didnt u say u are going to make mid func hook tut :/?
     

    Contributer Since 20/2/2012
    MPGH Member Since December 2011

     





     

    offical thread> Assassin V15<

    To all People who thinks am a leecher,hate me,are jelly from me....
    Refer to this thread...
    https://www.mpgh.net/forum/232-crossf...stop-hate.html

  7. #81
    [G]a[M]e[R]'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    594
    Reputation
    22
    Thanks
    198
    My Mood
    Cool
    Can OHK working with Bypass?
    i am [G]a[M]e[R]

  8. #82
    ToXiC Coder's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    C++
    Posts
    853
    Reputation
    23
    Thanks
    474
    My Mood
    Doh
    Quote Originally Posted by [G]a[M]e[R] View Post
    Can OHK working with Bypass?
    No.. it's not detected by Xtrap Only Client Error nothing to do with Bypass
    /

  9. #83
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by 258456 View Post
    Woah, hold up. So you are replacing the virtual function with your own function? I understand what you're doing, but doesn't this mean that the real virtual function such as dip and es won't ever be called?
    it is really easy just declare your function like the original one
    first you define the original function like this:
    Code:
    typedef HRESULT (WINAPI* oEndScene)            (IDIRECT3DCREATE9 pDevice);
    oEndScene pEndScene; //pointer to original function
    then your function:
    Code:
    HRESULT WINAPI myEndScene(LPDIRECT3DDEVICE9 pDevice) //WINAPI like the original function ; )
    {
        return pEndScene(pDevice);
    }
    ofc you should backup the original pointer to pEndScne before replacing it with your own..


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  10. #84
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    Quote Originally Posted by giniyat101 View Post
    it is really easy just declare your function like the original one
    first you define the original function like this:
    Code:
    typedef HRESULT (WINAPI* oEndScene)            (IDIRECT3DCREATE9 pDevice);
    oEndScene pEndScene; //pointer to original function
    then your function:
    Code:
    HRESULT WINAPI myEndScene(LPDIRECT3DDEVICE9 pDevice) //WINAPI like the original function ; )
    {
        return pEndScene(pDevice);
    }
    ofc you should backup the original pointer to pEndScne before replacing it with your own..
    Ya i know that gini, but what fallen was suggesting is changing the address of the endscene function in the vtable to your own. Usually I hook into the function itself i never even dared to change the address of the function.

  11. #85
    ~FALLEN~'s Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    devenv.exe
    Posts
    529
    Reputation
    23
    Thanks
    328
    My Mood
    Inspired
    Quote Originally Posted by giniyat101 View Post
    it is really easy just declare your function like the original one
    first you define the original function like this:
    Code:
    typedef HRESULT (WINAPI* oEndScene)            (IDIRECT3DCREATE9 pDevice);
    oEndScene pEndScene; //pointer to original function
    then your function:
    Code:
    HRESULT WINAPI myEndScene(LPDIRECT3DDEVICE9 pDevice) //WINAPI like the original function ; )
    {
        return pEndScene(pDevice);
    }
    ofc you should backup the original pointer to pEndScne before replacing it with your own..
    oh my /double facepalm

    Code:
    long __stdcall EndSceneHooked( IDirect3DDevice9* pDevice ){
    
    return reinterpret_cast< long( __stdcall* )( IDirect3DDevice9* ) >(OriginalEndScenePointer)( pDevice );
    }
    no need for extra allocation = wasted memory
    Last edited by ~FALLEN~; 02-18-2012 at 12:51 PM. Reason: code tags

  12. The Following User Says Thank You to ~FALLEN~ For This Useful Post:

    giniyat101 (02-18-2012)

  13. #86
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by ~FALLEN~ View Post
    oh my /double facepalm

    Code:
    long __stdcall EndSceneHooked( IDirect3DDevice9* pDevice ){
    
    return reinterpret_cast< long( __stdcall* )( IDirect3DDevice9* ) >(OriginalEndScenePointer)( pDevice );
    }
    no need for extra allocation = wasted memory
    never knew that typedef takes part of memory
    thanks again


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  14. #87
    ~FALLEN~'s Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    devenv.exe
    Posts
    529
    Reputation
    23
    Thanks
    328
    My Mood
    Inspired
    Quote Originally Posted by giniyat101 View Post
    never knew that typedef takes part of memory
    thanks again
    doesn't, but the pointer you make *pEndScene* or w.e you decide to name it, does.

  15. The Following User Says Thank You to ~FALLEN~ For This Useful Post:

    giniyat101 (02-18-2012)

  16. #88
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by ~FALLEN~ View Post
    doesn't, but the pointer you make *pEndScene* or w.e you decide to name it, does.
    you used another pointer
    OriginalEndScenePointer in your case.. so same allocated size
    anyways 4 bytes is not a big cost of memory


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  17. #89
    ~FALLEN~'s Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    devenv.exe
    Posts
    529
    Reputation
    23
    Thanks
    328
    My Mood
    Inspired
    Quote Originally Posted by giniyat101 View Post
    you used another pointer
    OriginalEndScenePointer in your case.. so same allocated size
    anyways 4 bytes is not a big cost of memory
    this is true, but there's ways to avoid this Was just psudo code.

  18. The Following User Says Thank You to ~FALLEN~ For This Useful Post:

    giniyat101 (02-18-2012)

  19. #90
    thicame's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    85
    Reputation
    10
    Thanks
    3
    My Mood
    Aggressive
    @~FALLEN~ how he did that rez mod ?

Page 6 of 8 FirstFirst ... 45678 LastLast

Similar Threads

  1. Battlefield 3 Legit Codes, ONLY $20!
    By qw4zz in forum Selling Accounts/Keys/Items
    Replies: 16
    Last Post: 12-18-2011, 02:33 AM
  2. Replies: 6
    Last Post: 10-24-2011, 09:27 PM
  3. Selling WarRock Account Level 19 nearly 20 with 2 codes only $39.63!!!!
    By aerrow107 in forum Selling Accounts/Keys/Items
    Replies: 2
    Last Post: 07-06-2010, 05:25 PM
  4. ACC LEVEL ALMOST 10 ,55 000 + DINARS ,KDR 1.92 FOR ONLY 1 PROMO CODE !!
    By flori551 in forum Trade Accounts/Keys/Items
    Replies: 12
    Last Post: 01-08-2010, 12:42 PM
  5. vb AImbot! No tut only source code!
    By reversflux in forum Visual Basic Programming
    Replies: 6
    Last Post: 07-20-2009, 10:07 AM