Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    d3d chams vtable


    DisOwned
     Share

    Recommended Posts

    ok so i codded some vtable chams i need help it crashes if i scope in or if i open menu 2 times and after 2 games

     

     

     

    My Hook

     

     

    void HookThis(void)

    {

    DWORD hD3D9Module, dwDevicePointer, * vTable;

    hD3D9Module = 0;

     

    do

    {

    hD3D9Module = (DWORD)GetModuleHandleA("d3d9.dll");

    }

    while(!hD3D9Module);

    dwDevicePointer = FindPattern(hD3D9Module, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");

     

    if(dwDevicePointer)

    {

    memcpy(&vTable, (void *)(dwDevicePointer + 2), 4 );

     

    oReset = ( tReset )DetourCreate(( PBYTE ) vTable[18],( PBYTE) &Reset, 5);

    oPresent = ( tPresent )DetourCreate(( PBYTE ) vTable[17], ( PBYTE ) &Present, 5);// ok lets see if this hook works so far

    oDrawIndexedPrimitive = (tDrawIndexedPrimitive)DetourCreate((BYTE *)vTable[82], (BYTE *)&hkDrawIndexedPrimitive, 5);

    DWORD WINAPI StartRoutine( LPVOID ) ;

    }

    }

    Edited by lol300dddd
    Link to comment
    Share on other sites

    ok so i codded some vtable chams i need help it crashes if i scope in or if i open menu 2 times and after 2 games

     

     

     

    My Hook

     

     

    void HookThis(void)

    {

    DWORD hD3D9Module, dwDevicePointer, * vTable;

    hD3D9Module = 0;

     

    do

    {

    hD3D9Module = (DWORD)GetModuleHandleA("d3d9.dll");

    }

    while(!hD3D9Module);

    dwDevicePointer = FindPattern(hD3D9Module, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");

     

    if(dwDevicePointer)

    {

    memcpy(&vTable, (void *)(dwDevicePointer + 2), 4 );

     

    oReset = ( tReset )DetourCreate(( PBYTE ) vTable[18],( PBYTE) &Reset, 5);

    oPresent = ( tPresent )DetourCreate(( PBYTE ) vTable[17], ( PBYTE ) &Present, 5);// ok lets see if this hook works so far

    oDrawIndexedPrimitive = (tDrawIndexedPrimitive)DetourCreate((BYTE *)vTable[82], (BYTE *)&hkDrawIndexedPrimitive, 5);

    DWORD WINAPI StartRoutine( LPVOID ) ;

    }

    }

    nothing wrong with this code, since it's gordon's d3d9 hooking snippet lol :P

     

    i bet there's something wrong with your present dip/reset function. maybe you could show us the code so we might can tell ya, whats wrong.

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...