C++ screenshot using DXGI DuplicateOutput of screen is missing Game Bar drawn areas

Laszlo Oberlander 5 Reputation points
2024-03-12T21:10:55.57+00:00

It seems that the DXGI DuplicateOutput API fails to capture the Windows Game Bar drawn area. Similarly, none of the Game Bar widgets are included in captured screenshots.

Why is this happening? Isn't DuplicateOutput supposed to cover all visible area on a given display?

What method of screen capture is supposed to cover ALL monitors (display adapters)?

The DXGI Desktop Duplication example located at https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/DXGIDesktopDuplication demonstrates the problem.

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,427 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,538 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
    2024-03-14T05:25:16.51+00:00

    Hello @Laszlo Oberlander,

    If the issue has a big impact to you, you can open an 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 Windows SDK for this issue.

    If you just want to report a problem generally, you can use Feedback hub APP to report with the category: Developer Platform->API Feedback.