DrmDestroyContent - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// drmk.h

NTSTATUS DrmDestroyContent(
  [in] ULONG ContentId
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-drmk-drmdestroycontent)

DrmDestroyContent function

Description

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

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.

See also

DrmCreateContentMixed

DrmGetContentRights

IDrmAudioStream::SetContentId

IDrmPort::DestroyContent

KSPROPERTY_DRMAUDIOSTREAM_CONTENTID

PcDestroyContent