DrmDestroyContent function

The DrmDestroyContent function deletes a DRM content ID that was created by DrmCreateContentMixed.

Syntax


NTSTATUS DrmDestroyContent(
  _In_ ULONG ContentId
);

Parameters

ContentId [in]

Specifies a nonzero DRM content ID assigned to a KS audio stream by DrmCreateContentMixed. Note that a content ID of zero represents an audio stream with default DRM content rights, and cannot be used with this function.

Return value

DrmCreateContentMixed returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code.

Remarks

A KS audio filter can only use DrmDestroyContent to delete a DRM content ID that it obtained by calling DrmCreateContentMixed. Note that a KS audio filter must not use DrmDestroyContent to delete a DRM content ID set by IDrmAudioStream::SetContentId or by an IOCTL_KS_PROPERTY request that sets the KSPROPERTY_DRMAUDIOSTREAM_CONTENTID property. Only the KS audio filter that created the content ID should delete it.

DrmDestroyContent performs the same function as PcDestroyContent and IDrmPort::DestroyContent. For more information, see DRM Functions and Interfaces.

Requirements

Target platform

Universal

Header

Drmk.h (include Drmk.h)

Library

Drmk.lib

IRQL

PASSIVE_LEVEL

See also

DrmCreateContentMixed
DrmGetContentRights
IDrmAudioStream::SetContentId
KSPROPERTY_DRMAUDIOSTREAM_CONTENTID
PcDestroyContent
IDrmPort::DestroyContent

 

 

Send comments about this topic to Microsoft

Show: