IOCTL_EMI_GET_METADATA_SIZE - NtDoc

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

// CTL_CODE(0x0022, 0x001, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_EMI_GET_METADATA_SIZE 0x00224004
View the official Win32 API reference

NtDoc

No description available.

Win32 API reference (ni-emi-ioctl_emi_get_metadata_size)

IOCTL_EMI_GET_METADATA_SIZE IOCTL

Description

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.

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_METADATA_SIZE structure. On output, this structure holds the size of EMI metadata </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.

See also

Energy Metering Interface