IPresentationManager::EnablePresentStatisticsKind method (presentation.h)

Important

Some information relates to a prerelease product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

   
Header presentation.h