Advertisement
allen343434

Untitled

Feb 15th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. typedef HRESULT(WINAPI* tCQ)(LPDIRECT3DDEVICE9 pDevice, D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery);
  2. tCQ oCQ;
  3.  
  4. HRESULT WINAPI hkCreateQuery(LPDIRECT3DDEVICE9 pDevice, D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery)
  5. {
  6. if (Type == D3DQUERYTYPE_OCCLUSION)
  7. {
  8. Type = D3DQUERYTYPE_EVENT;
  9. }
  10. return oCQ(pDevice, Type, ppQuery);
  11. }
  12.  
  13.  
  14. Tools.Device1 = pVTable[118]; //CreateQuery
  15.  
  16. oCQ = (tCQ)DetourFunction((PBYTE)Tools.Device1, (PBYTE)hkCreateQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement