123456

 

2012年9月6日

Detour注意点及原理

摘要: DetourTransactionBegin(); DetourUpdateThread(GetCurrentThread()); DetourAttach((PVOID *)&g_pPresent, New_Present); DWORD nErr = DetourTransactionCommit();DetourTransactionBegin(); DetourUpdateThread(GetCurrentThread()); DetourDetach((PVOID *)&g_pPresent, New_Present); DWORD nErr = DetourTr.. 阅读全文

posted @ 2012-09-06 19:34 hgy413 阅读(943) 评论(0) 推荐(0) 编辑

Detour Hook COM成员函数present和Hook 类成员函数

摘要: void * pPresent=NULL;//IDirect3DDevice9::Present函数地址指针 pPresent=(void*)*(DWORD*)(*(DWORD*)Device+0x44);//IDirect3DDevice9* Device DetourTransactionBegin(); DetourUpdateThread(GetCurrentThread()); DetourAttach((PVOID *)&pPresent, New_Present); DWORD nErr = DetourTransactionCommit();HRESULT __stdc 阅读全文

posted @ 2012-09-06 15:06 hgy413 阅读(1121) 评论(0) 推荐(0) 编辑

导航