Did something change in Server 2022 RemoteApps to make DXGI screen capture return black screens?
We have an server application that launches within a user session and takes a screenshot of the desktop. The application uses D3D11 and DXGI (dxgi1_2) libraries to interact with the graphics subsystem. We've run into a problem on Windows Server 2022: in the case of a RemoteApps session, when the application calls IDXGIOutputDuplication::AcquireNextFrame a black frame is returned. However, it works correctly for both the console sessions and the remote desktop sessions. The application works correctly in previous versions of Windows Server (2019 and earlier) in all cases. The D3D11_SDK_VERSION is 7, the feature level is up to D3D_FEATURE_LEVEL_11_1. What could be the cause of the black frame problem?