// acxstreams.h
NTSTATUS AcxStreamInitAssignProperties(
PACXSTREAM_INIT StreamInit,
PACX_PROPERTY_ITEM Properties,
ULONG PropertiesCount
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxStreamInitAssignProperties function assigns an array of properties to a stream using an ACXSTREAM_INIT object.
StreamInitDefined by an ACXSTREAM_INIT object, that is used to define the stream initialization. For more information about ACX Objects, see ACX - Summary of ACX Objects.
PropertiesAn array of ACX_PROPERTY_ITEM structures that describe the requested property sets, properties and flags.
PropertiesCountA one based count of the number of Properties in the Properties array.
Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.
Example usage is shown below.
ACX_PROPERTY_ITEM StreamProperties[] =
{
{
&KSPROPSETID_DrmAudioStream,
KSPROPERTY_DRMAUDIOSTREAM_CONTENTID,
ACX_PROPERTY_ITEM_FLAG_SET,
Codec_EvtStreamSetContentId,
NULL, // Reserved
sizeof(KSP_DRMAUDIOSTREAM_CONTENTID) - sizeof(KSPROPERTY), // ControlCb
sizeof(KSDRMAUDIOSTREAM_CONTENTID), // ValueCb
},
};
ULONG StreamPropertiesCount = SIZEOF_ARRAY(StreamProperties);
status = AcxStreamInitAssignProperties(StreamInit,
StreamProperties,
StreamPropertiesCount);
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.