PMI_METERED_HARDWARE_INFORMATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// pmi.h

typedef struct _PMI_METERED_HARDWARE_INFORMATION {
  ULONG MeteredHardwareCount;
  WCHAR MeteredHardware[ANYSIZE_ARRAY];
} PMI_METERED_HARDWARE_INFORMATION, *PPMI_METERED_HARDWARE_INFORMATION;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-pmi-_pmi_metered_hardware_information)

_PMI_METERED_HARDWARE_INFORMATION structure

Description

The PMI_METERED_HARDWARE_INFORMATION structure contains information about one or more power supplies that are monitored by the power meter.

Members

MeteredHardwareCount

A value that specifies the number of device identifiers that are returned in the MeteredHardware member.

MeteredHardware

A Unicode string that specifies the name of each device that is powered by the circuit on which the power meter provides measurement data. Individual device paths are delimited by a NULL character, and the whole list is terminated with a double NULL. The format of the device name is \Device\xyz".

Note For systemwide power meters, this member returns NULL.

Remarks

The PMI_METERED_HARDWARE_INFORMATION structure is returned through an IOCTL_PMI_GET_CAPABILITIES I/O control (IOCTL) query request. The input data for this query request is set to the PMI_CAPABILITIES_TYPE enumerator value of PmiMeteredHardware.

If the query request completes successfully, the request returns a PMI_CAPABILITIES structure. The Capabilities member of this structure is formatted as a PMI_METERED_HARDWARE_INFORMATION structure.

See also

IOCTL_PMI_GET_CAPABILITIES

PMI_CAPABILITIES