Share via


DisplayPresentStatus Enum

Definition

Defines constants that specify a detailed status of the result of the most recent call to DisplayTaskPool.TryExecuteTask.

public enum class DisplayPresentStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
enum class DisplayPresentStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
public enum DisplayPresentStatus
var value = Windows.Devices.Display.Core.DisplayPresentStatus.success
Public Enum DisplayPresentStatus
Inheritance
DisplayPresentStatus
Attributes

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Fields

Name Value Description
Success 0

Specifies that the requested present was successfully queued to the graphics scheduler. If you registered OnPresentFlipTo/OnPresentFlipAway fences, then they're guaranteed to be signaled.

SourceStatusPreventedPresent 1

Specifies that you should look at the DisplayTaskResult.SourceStatus returned from DisplayTaskPool.TryExecuteTask to get more detailed error info, since the source prevented the present from being successfully queued.

ScanoutInvalid 2

Specifies that the DisplayScanout is invalid; you need to recreate the DisplayScanout before trying again.

SourceInvalid 3

Specifies that the DisplaySource is now invalid; you should recreate the DisplaySource before trying again.

DeviceInvalid 4

Specifies that the DisplaySource is invalid. This can happen if the underlying GPU adapter stopped or was removed from the kernel's perspective. You can try recreating the DisplayDevice.

UnknownFailure 5

Specifies a failure that doesn't map to any concrete cause; this generally means that you should fail fast.

Applies to

See also