DirectComposition HW protected swap chain: Capture APIs return black in Windows 24H2
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?