Edit

DCompositionWaitForCompositorClock function (dcomp.h)

Halts a thread until the next signal from the compositor clock occurs.

Syntax

DWORD DCompositionWaitForCompositorClock(
  UINT         count,
  const HANDLE *handles,
  DWORD        timeoutInMs
);

Parameters

count

Type: UINT

The number of handles.

handles

Type: HANDLE*

Handles to events for which the compositor clock should send signals.

timeoutInMs

Type: DWORD

Amount of time in milliseconds to wait before the operation times out.

Return value

Type: DWORD

Returns a status code (an NTSTATUS value) that indicates the success or failure of the function. If the method succeeds, then it will return STATUS_SUCCESS. If the display is off, then the function returns immediately with STATUS_GRAPHICS_PRESENT_OCCLUDED. For other NTSTATUS values, see NTSTATUS values.

Requirements

Requirement Value
Minimum supported client Windows Build 22000
Minimum supported server Windows Build 22000
Header dcomp.h
Library dcomp.lib

See also

DCompositionGetTargetStatistics, DCompositionGetStatistics, DCompositionGetFrameId, DCompositionBoostCompositorClock