// acxstreams.h
EVT_ACX_STREAM_ASSIGN_DRM_CONTENT_ID EvtAcxStreamAssignDrmContentId;
NTSTATUS EvtAcxStreamAssignDrmContentId(
ACXSTREAM Stream,
ULONG ContentId,
PACXDRMRIGHTS DrmRights
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The EVT_ACX_STREAM_ASSIGN_DRM_CONTENT_ID event tells the driver to assign a content ID for the purposes of DRM streaming.
StreamAn existing ACXSTREAM Object. For more information, see ACX - Summary of ACX Objects.
ContentIdSpecifies a nonzero DRM content ID assigned to an ACX audio stream by AcxDrmCreateContentMixed. Note that a content ID of zero represents an audio stream with default DRM content rights, and cannot be used with this function.
DrmRightsSpecifies the DRM content rights that are assigned to the stream that is identified by ContentId. This parameter is a pointer to a ACXDRMRIGHTS structure.
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.
//
// Init streaming callbacks.
//
ACX_STREAM_CALLBACKS_INIT(&streamCallbacks);
...
streamCallbacks.EvtAcxStreamAssignDrmContentId = EvtStreamAssignDrmContentId;
status = AcxStreamInitAssignAcxStreamCallbacks(StreamInit, &streamCallbacks);
...
_Use_decl_annotations_
PAGED_CODE_SEG
NTSTATUS
EvtStreamAssignDrmContentId(
_In_ ACXSTREAM Stream,
_In_ ULONG DrmContentId,
_In_ PACXDRMRIGHTS DrmRights
)
{
PSTREAM_CONTEXT ctx;
PAGED_CODE();
ctx = GetStreamContext(Stream);
ASSERT(ctx);
ASSERT(ctx->StreamEngine);
return ctx->StreamEngine->AssignDrmContentId(DrmContentId, DrmRights);
}
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.