读书人

hook GetDesktopWindow 跟 GetDC

发布时间: 2012-12-31 11:57:52 作者: rapoo

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'

读书人网 >.NET

热点推荐