// acxtargets.h
NTSTATUS AcxTargetCircuitCreate(
WDFDEVICE Device,
PWDF_OBJECT_ATTRIBUTES Attributes,
PACX_TARGET_CIRCUIT_CONFIG Config,
ACXTARGETCIRCUIT *TargetCircuit
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxTargetCircuitCreate function is used to create an ACX target circuit.
DeviceA WDFDEVICE object (described in Summary of Framework Objects) that is associated with the specified ACXCIRCUIT.
AttributesAdditional Attributes defined using a WDF_OBJECT_ATTRIBUTES structure that are used to set various object's values: cleanup and destroy callbacks, context type, and to specify its parent object.
ConfigAn initialized ACX_TARGET_CIRCUIT_CONFIG structure that describes the configuration of the target circuit.
TargetCircuitA pointer to a location that receives a handle to the new ACXTARGETCIRCUIT Object. For more information about ACX objects, see Summary of ACX Objects.
Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.
ACX_TARGET_CIRCUIT_CONFIG targetCfg;
ACX_TARGET_CIRCUIT_CONFIG_INIT(&targetCfg);
targetCfg.SymbolicLinkName = link;
WDF_OBJECT_ATTRIBUTES_INIT(&attributes);
attributes.ParentObject = Circuit;
RETURN_NTSTATUS_IF_FAILED(AcxTargetCircuitCreate(AcxCircuitGetWdfDevice(Circuit), &attributes, &targetCfg, TargetCircuit));
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.