I was searthing on google how to find the D3D pointer, and this I found:
With this script:
Code:
#include "stdafx.h"
#include <windows.h>
#include <iostream>
using namespace std;
DWORD_PTR * FindDevice(void)
{
DWORD Base = (DWORD)LoadLibraryW(L"d3d9.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;
}
int main() {
cout << FindDevice() << "\n";
system("pause");
}
Maby this is helpfull :P
Now I'm going to learn D3D i I can find a good book