// acxcircuit.h
NTSTATUS AcxCircuitInitAssignProperties(
PACXCIRCUIT_INIT CircuitInit,
PACX_PROPERTY_ITEM Properties,
ULONG PropertiesCount
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxCircuitInitAssignProperties function assigns one or more ACX properties for the ACXCIRCUIT.
CircuitInitThe ACXCIRCUIT_INIT structure that defines the circuit initialization. ACXCIRCUIT_INIT is an opaque object used for circuit initialization. Use AcxCircuitInitAllocate to initialize the ACXCIRCUIT_INIT structure.
PropertiesAn ACX_PROPERTY_ITEM structure that defines a set of properties that will be used for circuit initialization by the circuit factory.
PropertiesCountThe number of properties that will be added to the circuit. This is a one based count.
Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.
Drivers should only add driver owned properties.
Example usage is shown below.
PACXCIRCUIT_INIT circuitInit = NULL;
circuitInit = AcxCircuitInitAllocate(Device);
ACX_PROPERTY_ITEM CircuitProperties[] =
{
{
&KSPROPSETID_AudioPosture,
KSPROPERTY_AUDIOPOSTURE_ORIENTATION,
KSPROPERTY_TYPE_SET,
EvtCircuitPropertyHandler,
nullptr, //Reserved
0, //ControlCb
sizeof(AUDIOPOSTURE_ORIENTATION), //ValueCb
},
};
status = AcxCircuitInitAssignProperties(circuitInit,
CircuitProperties,
SIZEOF_ARRAY(CircuitProperties));
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.