IDXGIOutputDuplication::AcquireNextFrame() gives black frames when accessing a session through RDP (Windows 11)

Romain R 10 Reputation points
2024-08-21T15:13:53.12+00:00

I'm trying to use IDXGIOutputDuplication API within an RDP session on a Windows 11 PC that has a NVIDIA GPU, but I get empty frames (filled with zeros). My code is working with a standard console session. The issue is similar to https://learn.microsoft.com/en-us/answers/questions/1036445/desktop-duplication-api-doesnt-work-over-remote-de.

I have made some extra tests

Details about the Windows installation (both PC have the same versions).

Edition	Windows 11 Pro
Version	23H2
OS build	22631.4037
Experience	Windows Feature Experience Pack 1000.22700.1027.0

I didn't find any clear information if it requires some special configuration to make it work.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,772 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    2024-08-23T05:18:26.9366667+00:00

    Hello @Romain R,

    Although I have submitted new internal feedback about this issue, you can also open a Windows SDK incident at https://developer.microsoft.com/en-us/windows/support/?tabs=Contact-us so that our engineer can work with you closely and please choose the 'Graphics and Multimedia development - Direct2D, Direct3D, DirectWrite, DirectComposition APIs' for this issue. In-addition, if the support engineer determines that the issue is the result of a bug the service request will be a no-charge case and you won't be charged.


Your answer

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