question

Rust-0601 avatar image
0 Votes"
Rust-0601 asked ·

[CPP][ScreenCapture]What is the lowest version that Windows.Graphics.Capture requires?

I'm trying to use Windows.Graphics.Capture to capture application windows.
In this page screen-capture, Windows 10 version 1803 should provide new APIs, but I failed to run samples from ScreenCaptureforHWND in Windows10 version 1803 home.I found that a new API "CreateForWindow" is only available in Windows 10 version 1903 and I think that is a neccessary API for screen capture. So, is version 1903 the lowest version to run app that use Windows.Graphics.Capture to capture something?

windows-uwp
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

FayWang-MSFT avatar image
0 Votes"
FayWang-MSFT answered ·

Hello,

Welcome to Microsoft Q&A!

If you only use Windows.Graphics.Capture API in c# UWP, as the document said, Windows 10 version 1803 is the lowest version to use Windows.Graphics.Capture Api. But this sample demonstrates how to use the Windows.Graphics.Capture APIs in a Win32 application instead of UWP application and it mentions it uses new APIs only available in Windows 10, version 1903 (SDK 18362) or later, the CreateForWindow is the API from Win32 instead of UWP, so you need to run the sample on Windows 10 version 1903 instead of 1803.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.