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

Rust 21 Reputation points

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?

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Fay Wang - MSFT 5,201 Reputation points


    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful