Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh

    D3D Device Pointer Finder

    One Simple function to find d3d8 to d3d9 device pointer...
    Code:
    DWORD_PTR * FindDevice(VOID)
    {
        DWORD Base = (DWORD)LoadLibraryW(L"d3d8.dll");
    
        for(DWORD i = 0; i < 0x128000; i++ )
        {
          if ( (*(BYTE *)(Base+i+0x00))==0xC7
            && (*(BYTE *)(Base+i+0x01))==0x06
            && (*(BYTE *)(Base+i+0x06))==0x89
            && (*(BYTE *)(Base+i+0x07))==0x86
            && (*(BYTE *)(Base+i+0x0C))==0x89
            && (*(BYTE *)(Base+i+0x0D))==0x86 )
            return (DWORD_PTR *)(Base + i + 2);
        }
        return NULL;
    }
    How To Use:

    Code:
         DWORD_PTR * VtablePtr = FindDevice();
    
         if (VtablePtr = NULL )
         {
             MessageBoxW(L"Device Not Found !",0,0,0);
             ExitProcess(0); //or it will crash anyway
         }
    
          DWORD_PTR * VTable ;
        *(DWORD_PTR *)&VTable = *(DWORD_PTR *)VtablePtr;
    
         //and then
         Vtable[35];//endscene
    Credits: Croner (another forum...but this looked useful so i posted it)
    Last edited by supercarz1991; 11-18-2010 at 12:29 AM.

    commando: You're probably the best non-coder coder I know LOL


  2. The Following User Says Thank You to supercarz1991 For This Useful Post:

    Turbulence (03-22-2011)

  3. #2
    Moothew =^_^='s Avatar
    Join Date
    Oct 2010
    Gender
    female
    Posts
    148
    Reputation
    10
    Thanks
    56
    My Mood
    Amazed
    fix it: d3d8.dll to d3d9.dll

  4. #3
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    Quote Originally Posted by Moothew =^_^= View Post
    fix it: d3d8.dll to d3d9.dll
    my bad...lol fixed

    commando: You're probably the best non-coder coder I know LOL


  5. #4
    coogle007's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    267
    Reputation
    18
    Thanks
    297
    My Mood
    Aggressive
    More simple using a sign? or not
    Anyway GJ
    My last Hack D3d Chams/Esp/Opk/Telekill
    A me me piace 'o blues e tutt'e journe aggio cantà'
    pecchè so stato zitto e mo è 'o mumento 'e me sfucà'
    sono volgare e so che nella vita suonerò
    pe chi tene 'e complessi e nun 'e vò
    A me me piace 'o zucchero ca scenne dinto 'o cafè
    e cu 'na presa d'annice ma chi è meglio 'e me
    tengo 'a cazzimma e faccio tutto quello che mi va
    pecchè so blues e nun voglio cagnà'

  6. #5
    swatfx's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    659
    Reputation
    20
    Thanks
    108
    My Mood
    Mellow
    Quote Originally Posted by coogle007 View Post
    More simple using a sign? or not
    Anyway GJ
    this will work for all d3d9 games though.
    If you were using a sig you would need to find new bytes.

  7. #6
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    i have no idea, i haven't tried this yet lol

    commando: You're probably the best non-coder coder I know LOL


  8. #7
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    To bad its for Directx 8

  9. #8
    swatfx's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    659
    Reputation
    20
    Thanks
    108
    My Mood
    Mellow
    Quote Originally Posted by supercarz1991 View Post
    i have no idea, i haven't tried this yet lol
    me neither/

  10. #9
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    DX 8 != DX 9
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  11. #10
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Debating whether i should move too the Directx programing section..

  12. #11
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    So this will not work on D3d9 games?
    No I do not make game hacks anymore, please stop asking.

  13. #12
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Should delete thread.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  14. #13
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    i bet this is easily updatable to work with DX9

    commando: You're probably the best non-coder coder I know LOL


  15. #14
    assault833's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    30
    Reputation
    10
    Thanks
    32
    It works good for dx9 and as you can clearly see it uses pattern,dx9 or dx8 it works good aswell they are the same

  16. #15
    qwerty01's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    180
    Reputation
    9
    Thanks
    225
    My Mood
    Lurking
    Quote Originally Posted by assault833 View Post
    It works good for dx9 and as you can clearly see it uses pattern,dx9 or dx8 it works good aswell they are the same
    Quote Originally Posted by whatup777 View Post
    DX 8 != DX 9
    and isn't this just findpattern using a different method?

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help] Finding crossfire D3D device pointer
    By lauwy in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 3
    Last Post: 12-20-2010, 10:22 PM
  2. [Request]What is the D3D Device Pointer
    By lilneo in forum C++/C Programming
    Replies: 7
    Last Post: 10-27-2010, 11:49 PM
  3. [OllyDBG]D3D Device pointer
    By Hell_Demon in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 4
    Last Post: 09-30-2010, 06:46 AM
  4. How to find the D3D device pointer?
    By Mr.Magicman in forum Combat Arms Help
    Replies: 0
    Last Post: 05-24-2010, 09:56 AM
  5. [CoD:MW2] Getting the D3D Device pointer
    By Hell_Demon in forum Reverse Engineering
    Replies: 0
    Last Post: 05-18-2010, 04:56 AM