Share via


GraphicsCaptureSession.IncludeSecondaryWindows Property

Definition

Gets or sets a value indicating whether secondary windows are included in the capture session.

public:
 property bool IncludeSecondaryWindows { bool get(); void set(bool value); };
bool IncludeSecondaryWindows();

void IncludeSecondaryWindows(bool value);
public bool IncludeSecondaryWindows { get; set; }
var boolean = graphicsCaptureSession.includeSecondaryWindows;
graphicsCaptureSession.includeSecondaryWindows = boolean;
Public Property IncludeSecondaryWindows As Boolean

Property Value

Boolean

bool

True if secondary windows are included in the capture session; otherwise, false.

Windows requirements

Requirements Description
Device family
Windows 11, version 24H2 (introduced in 10.0.26100.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v19.0)

Remarks

The default value for this property is false. The property can be changed during the capture.

Secondary Windows are considered to be windows that have either the WS_POPUP or WS_EX_TOOLWINDOW styles that intersect the main window, and have only other qualifying secondary windows between it and the main window. The windows are drawn into the texture the app receives and are clipped if they go outside the bounds of the main top level window.

Applies to