DwmModifyPreviousDxFrameDuration function (dwmapi.h)

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

HRESULT DwmModifyPreviousDxFrameDuration(
  [in] HWND hwnd,
  [in] INT  cRefreshes,
  [in] BOOL fRelative
);

Parameters

[in] hwnd

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

[in] cRefreshes

The number of refreshes to apply to the previous frame.

[in] 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

Requirement Value
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