// ks.h
KSDDKAPI NTSTATUS KsCreateAllocator(
[in] HANDLE ConnectionHandle,
[in] PKSALLOCATOR_FRAMING AllocatorFraming,
[out] PHANDLE AllocatorHandle
);
View the official Windows Driver Kit DDI reference
No description available.
The KsCreateAllocator function creates a handle to an allocator for the given sink connection handle. This function does not complete the IRP or set the status in the IRP.
ConnectionHandle
[in]Specifies the handle to the sink connection on which to create the allocator.
AllocatorFraming
[in]Specified framing for the allocator.
AllocatorHandle
[out]Specifies the pointer to a handle to store the allocator handle.
The KsCreateAllocator function returns STATUS_SUCCESS if successful, or it returns an error if unsuccessful.
There are two versions of the KsCreateAllocator function: one for user-mode clients and one for kernel-mode clients. This function can only be called at PASSIVE_LEVEL for kernel-mode clients.