PMI_METERED_HARDWARE_INFORMATION structure (pmi.h)

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

Syntax

typedef struct _PMI_METERED_HARDWARE_INFORMATION {
  ULONG MeteredHardwareCount;
  WCHAR MeteredHardware[ANYSIZE_ARRAY];
} PMI_METERED_HARDWARE_INFORMATION, *PPMI_METERED_HARDWARE_INFORMATION;

Members

MeteredHardwareCount

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

MeteredHardware[ANYSIZE_ARRAY]

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.

Requirements

Requirement Value
Minimum supported client Available in Windows 7, Windows Server 2008 R2, and later versions of the Windows operating systems.
Header pmi.h (include Pmi.h)

See also

IOCTL_PMI_GET_CAPABILITIES

PMI_CAPABILITIES