// 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 referenceNo description available.
The PMI_METERED_HARDWARE_INFORMATION structure contains information about one or more power supplies that are monitored by the power meter.
MeteredHardwareCountA value that specifies the number of device identifiers that are returned in the MeteredHardware member.
MeteredHardwareA 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.
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.