读书人

hook GetDesktopWindow 和 GetDC,该怎

发布时间: 2012-02-23 22:01:35 作者: rapoo

hook GetDesktopWindow 和 GetDC
要禁止截图 想hook GetDesktopWindow 和 GetDC这两个api 不知道怎么写

[解决办法]
BitBlt & PrintWindow

C/C++ code
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'

读书人网 >.NET

热点推荐