IDirect3DDevice9* GetD3DDevice9( void ) { IDirect3DDevice9* pDirect3DDevice9; static DWORD dwGetDirect3DDevice9; if( dwGetDirect3DDevice9 == NULL ) { HMODULE shaderapidx9 = NULL; shaderapidx9 = GetModuleHandle( "shaderapidx9.dll" ); if( shaderapidx9 == NULL ) return NULL; DWORD dwGetDirect3DDevice9Call = NULL; dwGetDirect3DDevice9Call = gMem.FindPattern( (DWORD)shaderapidx9, 0x300000, (PBYTE)"\xE8\x2A\x64\x00\x00\x8B\xF0\x83\x7E\x04\x00\x74\x37\x83\x7E\x10\x02\x73\x07\x8B\xCE\xE8\x45\xD8\xFF\xFF", "x????xxxx????x?xx??x?xxx????" ); dwGetDirect3DDevice9 = gMem.GetCallAddress( (PDWORD)dwGetDirect3DDevice9Call ); if( dwGetDirect3DDevice9 == NULL ) return NULL; } __asm { call dwGetDirect3DDevice9 MOV EAX,DWORD PTR DS:[EAX] MOV pDirect3DDevice9, EAX } return pDirect3DDevice9; }
Announcement
Collapse
No announcement yet.
[OB] GetDirect3DDevice9
Collapse
X
-
[OB] GetDirect3DDevice9
Code:I 0x90 you! -
Re: [OB] GetDirect3DDevice9
just incase sbdy needs this again.
DWORD pDevice = *(DWORD*)((DWORD)(GetModuleHandle("shaderapidx9.dll"))+0x1617F4);
i search a good source code for Dods with aimbot and other stuff i know this is the same engine as counter strike source but css hacks are not work in dods.
Comment
Comment