IOCTL_EMI_GET_METADATA_SIZE IOCTL (emi.h)

The IOCTL_EMI_GET_METADATA_SIZE control code retrieves the size of the EMI metadata object that can be obtained from the device by issuing an IOCTL_EMI_GET_METADATA request. This should be requested before IOCTL_EMI_GET_METADATA as the size will be vary based on the driver implementation.

Input buffer

None.

Input buffer length

None.

Output buffer

The AssociatedIrp.SystemBuffer member specifies the address of a caller-allocated buffer that contains a EMI_METADATA_SIZE structure. On output, this structure holds the size of EMI metadata

Output buffer length

The size of this buffer is specified in the Parameters.DeviceIoControl.OutputBufferLength member.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 10.
Header emi.h (include Emi.h)

See also

Energy Metering Interface