// wdm.h
IOMMU_DEVICE_QUERY_INFORMATION IommuDeviceQueryInformation;
NTSTATUS IommuDeviceQueryInformation(
PIOMMU_DMA_DEVICE DmaDevice,
ULONG Size,
PULONG BytesWritten,
PIOMMU_DMA_DEVICE_INFORMATION Buffer
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
IOMMU_DEVICE_QUERY_INFORMATION takes an IOMMU_DMA_DEVICE token and returns the device info.
DmaDevice[in] Pointer to the IOMMU_DMA_DEVICE token.
Size[in] Supplies the size in bytes of the provided buffer.
BytesWritten[out] Pointer to receive the number of bytes written to the buffer.
Buffer[out] Pointer to a IOMMU_DMA_DEVICE_INFORMATION structure that receives the device information.
Returns an NTSTATUS value. Possible values include:
| Return code | Description |
|---|---|
| STATUS_SUCCESS | If the device info was successfully written into the buffer. |
| STATUS_BUFFER_TOO_SMALL | If the provided buffer does not meet minimum size requirements. |