// acxdevice.h
NTSTATUS AcxDeviceAddFactoryCircuit(
WDFDEVICE Device,
ACXFACTORYCIRCUIT Factory
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxDeviceAddFactoryCircuit function adds a factory circuit to a WDFDEVICE for creating audio circuits.
DeviceA WDFDEVICE to which the ACX factory circuit will be added.
FactoryThe ACX factory circuit to add to the WDFDEVICE specified by the Device parameter.
AcxDeviceAddFactoryCircuit returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an NTSTATUS error code.
An ACX driver may create one or more circuits in the following scenarios:
Use AcxDeviceRemoveFactoryCircuit to remove a factory circuit from a WDFDEVICE.
This function can only be called from the EVT_WDF_DEVICE_PREPARE_HARDWARE callback function for this device.
WDFDEVICE Device;
NTSTATUS status;
PCAPTURE_DEVICE_CONTEXT devCtx;
// Code to initialize WDFDEVICE...
//
// Add control circuit to child's list.
//
status = AcxDeviceAddFactoryCircuit(Device, devCtx->CtrlCircuit);
if (!NT_SUCCESS(status))
{
ASSERT(FALSE);
goto exit;
}
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.