对于此示例,我正在谈论钩住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/