See where your hooks return to menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Reconsider's Avatar Member
    Reputation
    2
    Join Date
    Jun 2009
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    See where your hooks return to

    Useful in your detours/hooks..

    Add this amongst your includes:
    PHP Code:
    #include <intrin.h>
    #pragma intrinsic(_ReturnAddress) 
    Example usage:
    PHP Code:
    HANDLE WINAPI hCreateThreadLPSECURITY_ATTRIBUTES lpThreadAttributesSIZE_T dwStackSizeLPTHREAD_START_ROUTINE lpStartAddressLPVOID lpParameterDWORD dwCreationFlagsLPDWORD lpThreadId )
    {
        
    logg.WriteLog"CreateThread, returns to (%p)"_ReturnAddress() );

        return 
    oCreateThreadlpThreadAttributesdwStackSizelpStartAddresslpParameterdwCreationFlagslpThreadId );

    Example output:
    Code:
    10:26:06 CreateThread, returns to (0x004132AA)
    Can be usefull for example with anti-cheats, to return real value if it's the game calling, false value if the anti-cheat is calling..
    Like this (from my VAC2 disabler):
    PHP Code:
    BOOL WINAPI hModule32NextHANDLE hSnapshotLPMODULEENTRY32 lpme )
    {
        if( (
    DWORD)_ReturnAddress() >= dwVac2Base && (DWORD)_ReturnAddress() <= dwVac2Base dwVac2Size )
        {
            
    log.WriteLog"Module32Next, return is in VAC2 (%p), let's tell them there's no modules.."_ReturnAddress() );

            
    ZeroMemorylpme->szModuleMAX_MODULE_NAME32 );
            
    lpme->modBaseAddr 0;
            
    lpme->modBaseSize 0;
            
    lpme->hModule NULL;
            
    lpme->th32ModuleID 0;
            
    lpme->th32ProcessID 0;
            
    SetLastErrorERROR_NO_MORE_FILES ); //Tells them there's no more modules
            
    return FALSE//Failed.
        
    }

        return 
    oModule32NexthSnapshotlpme );


    See where your hooks return to

Similar Threads

  1. The unique house where your character can mount or be invisible without vanish
    By nandoar in forum World of Warcraft Exploration
    Replies: 10
    Last Post: 01-09-2010, 01:44 PM
  2. Test to see if your defense is good as a tank.
    By Ginchy in forum World of Warcraft Guides
    Replies: 5
    Last Post: 09-18-2008, 12:13 PM
  3. How to make a movie from what u see on your monitor?
    By markons in forum Community Chat
    Replies: 4
    Last Post: 04-08-2008, 11:10 AM
  4. See where YOUR flag is in WSG
    By ragingazn628 in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 12-07-2006, 08:18 AM
  5. How to see if your pet is male/female
    By Airkez in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 10-28-2006, 10:25 AM
All times are GMT -5. The time now is 01:58 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search