// ks.h
PFNKSDEFAULTALLOCATE Pfnksdefaultallocate;
PVOID Pfnksdefaultallocate(
[in] PVOID Context
)
{...}
View the official Windows Driver Kit DDI reference
No description available.
An AVStream minidriver's AVStrMiniAllocate routine allocates a frame using the allocator specified in the Context parameter.
Context
[in]Pointer to the allocator's context structure created in AVStrMiniInitializeAllocator.
Allocate returns a pointer to the newly allocated memory. Return NULL if the attempt to allocate memory failed.
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.