IWDTFSystemAction2::PowerTracingEnd method (wdtfsystemaction.h)

This method ends a power trace session. Any power state events that occurred between the last PowerTracingStart or PowerTracingStartByFile method and this end method will be captured in the associated trace message (.etl) log file. In addition, the related namespace and fields for the system and any applicable devices can be queried.

Syntax

HRESULT PowerTracingEnd();

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows XP Professional
Minimum supported server Windows Server 2008
Target Platform Desktop
Header wdtfsystemaction.h

See also

IWDTFSystemAction2