对于这个例子,我正在谈论 Hook BeginPaint(),我 Hook 得很好,我可以正常访问预调用的所有内容...
HDC WINAPI Mine_BeginPaint(HWND hWnd, LPPAINTSTRUCT lpPaint)
{
// do stuff here, inspecting PRE-CALL lppaint struct etc...
return fpBeginPaint(hWnd, lpPaint);
}
我正在寻找一种方法来检查此 lpPaint 结构调用后,我该怎么做?
最佳答案
HDC WINAPI Mine_BeginPaint(HWND hWnd, LPPAINTSTRUCT lpPaint){
// do stuff here, inspecting PRE-CALL lppaint struct etc...
HDC result = fpBeginPaint(hWnd, lpPaint);
//inspect here whatever you want.
return result;
}
关于c++ - 如何获取hook winapi函数的调用后参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10059973/