// acxdevice.h
NTSTATUS AcxDeviceRemoveCircuitDevice(
WDFDEVICE ParentDevice,
WDFDEVICE Device
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxDeviceRemoveCircuitDevice function removes an ACX circuit device from a specified parent device.
ParentDeviceThe parent WDFDEVICE from which to remove the ACX circuit device.
DeviceThe WDFDEVICE representing the circuit device to remove from the parent device.
AcxDeviceRemoveCircuitDevice returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an NTSTATUS error code.
Audio drivers use this function to remove an existing audio endpoint.
This function can be called at any time during the driver's life cycle. Plug and Play takes care to serialize the removal of the device, and the associated circuits, in relation to other Plug and Play activities on the parent and siblings devices.
NTSTATUS status;
WDFDEVICE Device;
WDFDEVICE child;
// Code to initialize WDFDEVICE objects...
// Remove the child device.
status = AcxDeviceRemoveCircuitDevice(Device, child);
if (!NT_SUCCESS(status))
{
ASSERT(FALSE);
goto exit;
}
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.