// acxcircuit.h
EVT_ACX_CIRCUIT_COMPOSITE_INITIALIZE EvtAcxCircuitCompositeInitialize;
NTSTATUS EvtAcxCircuitCompositeInitialize(
WDFDEVICE Device,
ACXCIRCUIT Circuit,
ACXOBJECTBAG CompositeProperties
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The EVT_ACX_CIRCUIT_COMPOSITE_INITIALIZE callback is used by the driver to do any post-initialization after the composite endpoint has been assembled by ACX Manager.
DeviceA WDFDEVICE object (described in Summary of Framework Objects) that is associated with the specified ACXCIRCUIT.
CircuitThe ACXCIRCUIT object being initialized. For more information about ACX objects, see Summary of ACX Objects.
CompositePropertiesOptional handle to CompositeProperties that describes the composite circuit. This is an optional ACXOBJECTBAG object for composite endpoint's properties.
Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.
This sample code shows how the driver retrieves a composite property from the specified composite property object bag.
EVT_ACX_CIRCUIT_COMPOSITE_INITIALIZE CodecR_EvtCircuitCompositeInitialize;
NTSTATUS
CodecR_EvtCircuitCompositeInitialize(
_In_ WDFDEVICE Device,
_In_ ACXCIRCUIT Circuit,
_In_ ACXOBJECTBAG CompositeProperties
)
{
PAGED_CODE();
NTSTATUS status = STATUS_SUCCESS;
UNREFERENCED_PARAMETER(Device);
UNREFERENCED_PARAMETER(Circuit);
ASSERT(CompositeProperties);
DECLARE_CONST_ACXOBJECTBAG_SYSTEM_PROPERTY_NAME(UniqueID);
GUID uniqueId = {0};
status = AcxObjectBagRetrieveGuid(CompositeProperties, &UniqueID, &uniqueId);
// ...
return status;
}
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.