[HELP] C++ trying to get overlay in game by hooking endscene menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    barrn's Avatar Private
    Reputation
    7
    Join Date
    Dec 2014
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HELP] C++ trying to get overlay in game by hooking endscene

    Hey guys, I don't really know where to post this, but browsing the wow section shows that many of you guys are experts at this and I really need some help here. Ive been stuck on this too long.

    I'm trying to hook endscene in d3d9 so that I can write things to the screen.

    Code :

    PHP Code:
    void EndSceneVtab()
    {
        
        
    HMODULE dx NULL;

        while (!
    dx)
        {
            
            
    dx GetModuleHandle(L"d3d9.dll");
            
    Sleep(100);
        }
        
    VtableStart 0;
        
    DWORD vtableLookUp dwFindPattern((DWORD)dx0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86""xx????xx????xx");

        
    VtableStart = (DWORD*)*(DWORD*)(vtableLookUp 2);
        
    EndScene VtableStart[ENDSCENE_VTAB];

        
    MEMORY_BASIC_INFORMATION mbi;
        
    VirtualQuery((LPCVOID)VtableStart, &mbisizeof(mbi));
        
    VirtualProtect(mbi.BaseAddressmbi.RegionSizePAGE_EXECUTE_READWRITE, &mbi.Protect);


        
    VtableStart[ENDSCENE_VTAB] = (DWORD)HookDraw;

        
    VirtualProtect(mbi.BaseAddressmbi.RegionSizembi.Protect, &mbi.Protect);



    }


    void __fastcall HookDraw(IDirect3DDevice9 This)
    {

        if (
    This)
        {
            
    DrawLine(52.041.052.052.050505050This);
            
    __asm {
                
    jmp[EndScene]
            }
        }
    }

    void DrawLine(float xfloat yfloat xxfloat yyint rint gint bint aIDirect3DDevice9 device)
    {

        if (!
    p_Line)
        {
            
    D3DXCreateLine(device, &p_Line);
        }

        if (
    p_Line)
        {
            
    D3DXVECTOR2 projmatrix[2];
            
    p_Line->SetWidth(1);
            
    projmatrix[0].x;
            
    projmatrix[0].y;
            
    projmatrix[1].xx;
            
    projmatrix[1].yy;
            
    p_Line->Draw(projmatrix2txt);
        }


    The problem :

    The pointer in the vtable is patched, but there is no drawing taking place. Can someone please help me out here.

    [HELP] C++ trying to get overlay in game by hooking endscene

Similar Threads

  1. [Selling] Help you get items and game gold easily
    By Sarah36 in forum General MMO Buy Sell Trade
    Replies: 0
    Last Post: 11-20-2011, 05:23 AM
  2. help i get logging into game server here are pics
    By towaly in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 08-11-2010, 05:37 AM
  3. Replies: 38
    Last Post: 12-24-2008, 03:00 PM
All times are GMT -5. The time now is 10:18 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