C++ 如何获取钩住的winapi函数的调用后参数?
对于这个例子,我说的是钩住BeginPaint(),我钩住它很好,我通常可以在调用之前访问所有内容C++ 如何获取钩住的winapi函数的调用后参数?,c++,windows,winapi,C++,Windows,Winapi,对于这个例子,我说的是钩住BeginPaint(),我钩住它很好,我通常可以在调用之前访问所有内容 HDC WINAPI Mine_BeginPaint(HWND hWnd, LPPAINTSTRUCT lpPaint) { // do stuff here, inspecting PRE-CALL lppaint struct etc... return fpBeginPaint(hWnd, lpPaint); } 我正在寻找一种方法来检查这个lpPaint stru
HDC WINAPI Mine_BeginPaint(HWND hWnd, LPPAINTSTRUCT lpPaint)
{
// do stuff here, inspecting PRE-CALL lppaint struct etc...
return fpBeginPaint(hWnd, lpPaint);
}
我正在寻找一种方法来检查这个lpPaint struct post调用,我如何才能做到这一点
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;
}