IPresentationManager::SetTargetTime method (presentation.h)

Sets a target time for the next present.

Syntax

HRESULT SetTargetTime(
  SystemInterruptTime targetTime
);

Parameters

targetTime

Type: SystemInterruptTime

The target time for the next present.

Return value

Type: HRESULT

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

Remarks

The system will attempt to display the present as close to the specified time as possible.

This parameter setting persists across presents.

Requirements

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