Take screenshot of desktop when Windows is locked (Win+L)

前端 未结 1 486
臣服心动
臣服心动 2020-12-19 16:51

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 = GetPi         


        
相关标签:
1条回答
  • 2020-12-19 17:22

    GetPixel and BitBlt won't work when the desktop isn't physically displayed on the monitor.

    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.

    0 讨论(0)
提交回复
热议问题