从下载免费工具软件来说:
免费下载: http://119.29.160.246/safe/safeTitle.zip
免费软件,截屏键取到的窗口是黑的,屏幕录像同样是黑的.
谷歌内核浏览器,Edge,Word,记事本,Excel,微信电脑版,这些软件截屏出来全是黑的.
从编程角度来说:
微软提供了一条反截图API函数.WIN7时代就有了.
SetWindowDisplayAffinity(HWND,DWROD) function (winuser.h)
Set this value to WDA_MONITOR to display the content only on a monitor.
Set this value to WDA_NONE to remove the monitor-only affinity.
注意:SetWindowDisplayAffinity函数只能对本进程的窗口进行反截屏设置,对别的进程无效.
想对其它应用软件做反截图设置,可以用dll注入的方式.