PFNKSDELETEALLOCATOR callback function (ks.h)

An AVStream minidriver's AVStrMiniDeleteAllocator routine deletes the allocator that is associated with a pin.

Syntax

PFNKSDELETEALLOCATOR Pfnksdeleteallocator;

void Pfnksdeleteallocator(
  [in] PVOID Context
)
{...}

Parameters

[in] Context

Pointer to the allocator's context structure created by AVStrMiniInitializeAllocator.

Return value

None

Remarks

The minidriver specifies this routine's address in the DeleteAllocator member of its KSALLOCATOR_DISPATCH structure. The minidriver passes this structure to the class driver in KSPIN_DISPATCH.

Once this function is called, AVStream will no longer use the allocator to allocate and free memory. This handler should release all system resources reserved by the allocator.

For more information, see KS Allocators.

Requirements

Requirement Value
Minimum supported client Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.
Target Platform Desktop
Header ks.h (include Ks.h)

See also

AVStrMiniInitializeAllocator

KSALLOCATOR_DISPATCH

KSPIN_DISPATCH