我HOOK了 BitBlt 这个函数 想通过WindowFromDC(hdcDest)获得目标窗口句柄,为什么每次得到的都是NULL,总是得不到目标窗口的句柄. 望高手解答
BitBlt(HDC hdcDest, // handle to destination device context
int nXDest, // x-coordinate of destination rectangle's upper-left // corner
int nYDest, // y-coordinate of destination rectangle's upper-left // corner
int nWidth, // width of destination rectangle
int nHeight, // height of destination rectangle
HDC hdcSrc, // handle to source device context
int nXSrc, // x-coordinate of source rectangle's upper-left // corner
int nYSrc, // y-coordinate of source rectangle's upper-left // corner
DWORD dwRop )
BitBlt(HDC hdcDest, // handle to destination device context
int nXDest, // x-coordinate of destination rectangle's upper-left // corner
int nYDest, // y-coordinate of destination rectangle's upper-left // corner
int nWidth, // width of destination rectangle
int nHeight, // height of destination rectangle
HDC hdcSrc, // handle to source device context
int nXSrc, // x-coordinate of source rectangle's upper-left // corner
int nYSrc, // y-coordinate of source rectangle's upper-left // corner
DWORD dwRop )
HDC hdcDest,HDC hdcSrc,其中之一应该有个是 关联了窗口的DC