Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/144.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何获取钩住的winapi函数的调用后参数?_C++_Windows_Winapi - Fatal编程技术网

C++ 如何获取钩住的winapi函数的调用后参数?

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

对于这个例子,我说的是钩住BeginPaint(),我钩住它很好,我通常可以在调用之前访问所有内容

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;
}