以台式机的屏幕截图当Windows被锁定(WIN + L) [英] Take screenshot of desktop when Windows is locked (Win+L)
问题描述
我想利用桌面的截图,而Windows被锁定(与Win + L)。标准方法使一个黑色的屏幕,以像素的code:
I want to take a screenshot of desktop while Windows is locked (with Win+L). Standard methods make a black screen, with code of pixel:
COLORREF color = GetPixel(hdc, x, y);
等于-1,。无论是用户模式程序,也不是服务,可以捕捉有用的图像。任何想法?
equal -1. Neither a user mode program nor a service could capture a useful image. Any ideas?
推荐答案
GetPixel
和的BitBlt
将无法正常工作当桌面是不实际显示在监视器上。
GetPixel
and BitBlt
won't work when the desktop isn't physically displayed on the monitor.
您可能有一些运气捕捉各个窗口与 PrintWindow
。然而,并非所有的应用程序响应 PrintWindow
要求以同样的方式,所以你可能会看到毛刺和/或黑色。您还需要单独捕获每一个窗口。
You may have some luck capturing individual windows with PrintWindow
. However, not all applications respond to PrintWindow
calls the same way, so you may see glitches and/or blackness. You'll also need to capture each window individually.
这篇关于以台式机的屏幕截图当Windows被锁定(WIN + L)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!