DrmDestroyContent function (drmk.h)
The DrmDestroyContent
function deletes a DRM content ID that was created by DrmCreateContentMixed.
Syntax
NTSTATUS DrmDestroyContent(
[in] ULONG ContentId
);
Parameters
[in] ContentId
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
Requirement | Value |
---|---|
Target Platform | Universal |
Header | drmk.h (include Drmk.h) |
Library | Drmk.lib |
IRQL | PASSIVE_LEVEL |