Share via


PowerThermalChannelDiagnostics Class

Definition

Provides APIs for retrieving diagnostics, health indicators, and recent samples for power/thermal channels.

public ref class PowerThermalChannelDiagnostics sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.Power.Thermal.PowerThermalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PowerThermalChannelDiagnostics final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.Power.Thermal.PowerThermalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PowerThermalChannelDiagnostics
Public NotInheritable Class PowerThermalChannelDiagnostics
Inheritance
Object Platform::Object IInspectable PowerThermalChannelDiagnostics
Attributes

Windows requirements

Requirements Description
Device family
Windows Desktop Extension SDK (introduced in 10.0.26100.0)
API contract
Windows.System.Power.Thermal.PowerThermalApiContract (introduced in v1.0)

Remarks

Get an instance of this class from the singleton PowerThermalChannelDiagnostics.Current.

The diagnostics class does not claim exclusive ownership of channels and should not be used as a replacement for a Consumer when exclusive ownership is required. Avoid using this class during tuning scenarios; if the backend driver is not running, methods may throw ERROR_SERVICE_NOT_ACTIVE.

Properties

Name Description
Current

Gets the singleton diagnostics object for querying current channel metrics and health.

Methods

Name Description
GetDataForChannels(PowerThermalChannelId[])

Retrieves diagnostic data samples for the specified channels.

Applies to