// wdm.h
IOMMU_DEVICE_DELETE IommuDeviceDelete;
NTSTATUS IommuDeviceDelete(
PIOMMU_DMA_DEVICE DmaDevice
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Deletes the provided opaque token representing the IOMMU_DMA_DEVICE.
DmaDevice[In] A pointer to the opaque token representing the IOMMU_DMA_DEVICE to be deleted.
STATUS_SUCCESS if the operation is successful. Possible error return values include the following status codes.
| Return code | Description |
|---|---|
| STATUS_RESOURCE_IN_USE | The device is still attached to a domain. Callers are responsible for calling DetachDeviceEx before calling DeleteDevice. |
For more information, see NTSTATUS Values.
The caller must ensure that the IOMMU_DMA_DEVICE is detached from any domain it was previously attached to before the caller attempts to delete and free the device.