IPresentationManager::EnablePresentStatisticsKind method (presentation.h)

Enables or disables the specified present statistics kind.

Syntax

HRESULT EnablePresentStatisticsKind(
  PresentStatisticsKind presentStatisticsKind,
  boolean               enabled
);

Parameters

presentStatisticsKind

Type: PresentStatisticsKind

The present statistics kind to enable or disable.

enabled

Type: BOOLEAN

TRUE to enable the present statistics kind; otherwise, FALSE.

Return value

Type: HRESULT

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

Remarks

The requested change takes place as soon as possible, however effects can be delayed. We suggest that you register all desired present statistics before you issue presents, and not change during use. This is also how statistics can be extended and changed in the future without breaking backwards compatibility.

Requirements

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