microsoft / Windows.UI.Composition-Win32-Samples

Windows.UI.Composition Win32 Samples
MIT License
459 stars 186 forks source link

How to capture Windows10/11 Virtual Desktop via Windows.Graphics.Capture ? #114

Closed MiroKaku closed 1 year ago

MiroKaku commented 1 year ago

For example, I specify to capture the screen of desktop 2.

robmikh commented 1 year ago

It isn't currently possible to capture a virtual desktop directly. You can capture a monitor, but it will only display the currently selected virtual desktop.

MiroKaku commented 1 year ago

What a pity it is! Thank you.