- void D3DHook::InitHook()
- {
- while(!(this->hD3D9 = GetModuleHandle("d3d9.dll")))
- Sleep(10);
- PVOID pvHkEndScene = (PVOID)(DWORD)hkEndScene;
- this->p_d3dEndScene = (DWORD)(EndScene_t) DetourAttach((PVOID*)0x4FDD71B0, pvHkEndScene);
- }
- DWORD D3DHook::hkEndScene(LPDIRECT3DDEVICE9 p_d3dDevice)
- {
- this->p_d3dDevice = (DWORD) p_d3dDevice;
- DWORD pD = (DWORD) p_d3dDevice;
- return pD;
- }
Undefined
By: Guest | Date: Nov 30 2009 16:55 | Format: None | Expires: never | Size: 397 B | Hits: 901
Latest pastes
1 days ago
1 days ago
11 months ago
13 months ago
17 months ago