DCompositionGetFrameId function (dcomp.h)

Gets the identifier of the most recent compositor frame of the specified type.

Syntax

HRESULT DCompositionGetFrameId(
  COMPOSITION_FRAME_ID_TYPE frameIdType,
  COMPOSITION_FRAME_ID      *frameId
);

Parameters

frameIdType

Type: COMPOSITION_FRAME_ID_TYPE

The type of the compositor frame.

frameId

Type: COMPOSITION_FRAME_ID*

The identifer of the most recent compositor frame of the specified type.

Return value

Type: HRESULT

If the function succeeds, it returns S_OK; otherwise, it returns an HRESULT value that indicates the error.

Requirements

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

See also

DCompositionGetTargetStatistics, DCompositionGetStatistics, DCompositionBoostCompositorClock, DCompositionWaitForCompositorClock