IPresentationManager::EnablePresentStatisticsKind method (presentation.h)
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.
HRESULT EnablePresentStatisticsKind( PresentStatisticsKind presentStatisticsKind, boolean enabled );
The present statistics kind to enable or disable.
TRUE to enable the present statistics kind; otherwise,
If the function succeeds, it returns
S_OK; otherwise, it returns an
HRESULT value that indicates the error.
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.