// emi.h
// CTL_CODE(0x0022, 0x000, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_EMI_GET_VERSION 0x00224000
View the official Win32 API referenceNo description available.
The IOCTL_EMI_GET_VERSION control code retrieves the current version of the EMI interface supported by the device.
<text> None. </text>
<text> None. </text>
<text> The AssociatedIrp.SystemBuffer member specifies the address of a caller-allocated buffer that contains a EMI_VERSION structure. On output, this structure holds the EMI version that is supported by the device. </text>
<text> The size of this buffer is specified in the Parameters.DeviceIoControl.OutputBufferLength member. </text>
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful.
Otherwise, Status to the appropriate error condition as a NTSTATUS code.
For more information, see NTSTATUS Values.
EMI_VERSION_V1 indicate there is only one single energy measurement channel supported by the device. EMI_VERSION_V2 indicate there is multiple energy measurement channels supported by the device.