PFNKSDEFAULTALLOCATE - NtDoc

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

PFNKSDEFAULTALLOCATE Pfnksdefaultallocate;

PVOID Pfnksdefaultallocate(
  [in] PVOID Context
)
{...}

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ks-pfnksdefaultallocate)

PFNKSDEFAULTALLOCATE callback function

Description

An AVStream minidriver's AVStrMiniAllocate routine allocates a frame using the allocator specified in the Context parameter.

Parameters

Context [in]

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

Return value

Allocate returns a pointer to the newly allocated memory. Return NULL if the attempt to allocate memory failed.

Remarks

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

AVStream calls this routine to allocate a frame. The handler should allocate a frame as described by the allocator framing context passed into the initialization dispatch.

For more information, see KS Allocators.

See also

AVStrMiniInitializeAllocator

KSALLOCATOR_DISPATCH

KSPIN_DISPATCH