IOCTL_EMI_GET_VERSION - NtDoc

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

// CTL_CODE(0x0022, 0x000, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_EMI_GET_VERSION 0x00224000
View the official Win32 API reference

NtDoc

No description available.

Win32 API reference (ni-emi-ioctl_emi_get_version)

IOCTL_EMI_GET_VERSION IOCTL

Description

The IOCTL_EMI_GET_VERSION control code retrieves the current version of the EMI interface supported by the device.

Parameters

Input buffer

<text> None. </text>

Input buffer length

<text> None. </text>

Output buffer

<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>

Output buffer length

<text> The size of this buffer is specified in the Parameters.DeviceIoControl.OutputBufferLength member. </text>

Status block

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.

Remarks

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.

See also

Energy Metering Interface