// ks.h
KSDDKAPI NTSTATUS KsReleaseCachedMdl(
[in] REFGUID Guid,
[in] PMDL MdlAddr,
[in] HANDLE ReleaseContext
);
View the official Windows Driver Kit DDI referenceNo description available.
The KsReleaseCachedMdl function is used to release the MDL acquired by the KsAcquireCachedMdl call.
Guid [in]The GUID extracted from the MFSampleExtension_MDLCacheCookie attribute item of the IMFSample passed by the pipeline.
MdlAddr [in]MDL address retrieved in the KsAcquireCachedMdl call. This should not be touched after the KsReleaseCachedMdl call.
ReleaseContext [in]The context passed as an output in the KsAcquireCachedMdl call.
Returns STATUS_SUCCESS for success conditions.