Results 1 to 1 of 1
  1. #1
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,221
    Thanks
    211
    Thanked 2,224 Times in 289 Posts
    Rep Power
    10

    [C++] D3D Device Pointer Finder

    A function to find d3d8/d3d9 device pointer
    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
    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
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

Visitors found this page by searching for:

game device pointer

d3d device pointer

find device pointer

d3d9 device pointer

d3d finddevicevtable d3dfinding device pointerdevice pointer finderfind d3d device pointerd3d basebase d3dc pointer finderprogamercity find direct3dget d3d device pointerfinding d3d device pointerD3D Device Pointer Finderhow to find d3d pointerFind Device Pointer C#d3dDevice Cc DevicePointerFind Device Pointer Functionc d3d basefinding the device pointerC find Game device Pointershow to find the device pointer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •