DwmModifyPreviousDxFrameDuration function

Changes the number of monitor refreshes through which the previous frame will be displayed.

DwmModifyPreviousDxFrameDuration is no longer supported. Starting with Windows 8.1, calls to DwmModifyPreviousDxFrameDuration always return E_NOTIMPL.

Syntax

DWMAPI DwmModifyPreviousDxFrameDuration(
  HWND hwnd,
  INT  cRefreshes,
  BOOL fRelative
);

Parameters

hwnd

The handle to the window for which the new duration is applied to the previous frame.

cRefreshes

The number of refreshes to apply to the previous frame.

fRelative

TRUE if the value given in cRefreshes is relative to the current value (added to or subtracted from it); FALSE if the value replaces the current value.

Return Value

This function always returns S_OK, even when DWM is not running.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header dwmapi.h
Library Dwmapi.lib
DLL Dwmapi.dll