AcxDeviceAddFactoryCircuit - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// acxdevice.h

NTSTATUS AcxDeviceAddFactoryCircuit(
  WDFDEVICE         Device,
  ACXFACTORYCIRCUIT Factory
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-acxdevice-acxdeviceaddfactorycircuit)

Description

The AcxDeviceAddFactoryCircuit function adds a factory circuit to a WDFDEVICE for creating audio circuits.

Parameters

Device

A WDFDEVICE to which the ACX factory circuit will be added.

Factory

The ACX factory circuit to add to the WDFDEVICE specified by the Device parameter.

Return value

AcxDeviceAddFactoryCircuit returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an NTSTATUS error code.

Remarks

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.

Example

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;
}

ACX requirements

Minimum ACX version: 1.0

For more information about ACX versions, see ACX version overview.

See also