// emi.h
// CTL_CODE(0x0022, 0x001, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_EMI_GET_METADATA_SIZE 0x00224004
View the official Win32 API referenceNo description available.
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.
<text> None. </text>
<text> None. </text>
<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>
<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.