首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

hook GetDesktopWindow 跟 GetDC

2012-12-31 
hookGetDesktopWindow 和 GetDC要禁止截图 想hook GetDesktopWindow 和 GetDC这两个api不知道怎么写[解决

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'

热点排行