DCompositionGetStatistics function (dcomp.h)

Gets basic information about the composition frame and a list of render target ID's that are part of the frame.

Syntax

HRESULT DCompositionGetStatistics(
  COMPOSITION_FRAME_ID    frameId,
  COMPOSITION_FRAME_STATS *frameStats,
  UINT                    targetIdCount,
  COMPOSITION_TARGET_ID   *targetIds,
  UINT                    *actualTargetIdCount
);

Parameters

frameId

Type: COMPOSITION_FRAME_ID

The identifier of the composition frame about which to get information.

frameStats

Type: COMPOSITION_FRAME_STATS*

A struct that contains information about the composition frame.

targetIdCount

Type: UINT

The number of render targets about which to get information.

targetIds

Type: COMPOSITION_TARGET_ID*

The identifiers of the render targets about which to get information.

actualTargetIdCount

Type: UINT*

The actual number of render targets.

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, DCompositionGetFrameId, DCompositionBoostCompositorClock, DCompositionWaitForCompositorClock