hook GetDesktopWindow 和 GetDC
要禁止截图 想hook GetDesktopWindow 和 GetDC这两个api 不知道怎么写
[解决办法]
BitBlt & PrintWindow
BOOL BitBlt( HDC hdcDest, // handle to destination DC int nXDest, // x-coord of destination upper-left corner int nYDest, // y-coord of destination upper-left corner int nWidth, // width of destination rectangle int nHeight, // height of destination rectangle HDC hdcSrc, // handle to source DC int nXSrc, // x-coordinate of source upper-left corner int nYSrc, // y-coordinate of source upper-left corner DWORD dwRop // raster operation code);BOOL PrintWindow( HWND hwnd, // Window to copy HDC hdcBlt, // HDC to print into UINT nFlags // Optional flags);
[解决办法]
'StretchBlt'
'BitBlt'
'PlgBlt'
'MaskBlt'
TransparentBlt'
'GetDC'
GetWindowDC'
'GetDIBits'