DirectComposition HW protected swap chain: Capture APIs return black in Windows 24H2

Tolgahan 0 Reputation points
2025-09-08T19:13:32.3733333+00:00

I’m creating a DirectComposition swap chain with DXGI_SWAP_CHAIN_FLAG_HW_PROTECTED, and the call succeeds. The protected surface displays correctly, but on Windows 24H2 the OS capture APIs (PrintScreen, Windows.Graphics.Capture, DWM capture) now return a black image.

On Windows 23H2, the same application produced visible (non-black) results in capture APIs, so this looks like either a regression or a stricter enforcement change introduced in 24H2.

Question:

Is this change in 24H2 intentional?

If so, is there a supported way to allow capture of this content while still using a protected swap chain?

If not intentional, is there a fix or workaround available?

Windows development | Windows API - Win32
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.