// ks.h
KSDDKAPI HRESULT KsCreateAllocator2(
[in] HANDLE ConnectionHandle,
[in] PKSALLOCATOR_FRAMING AllocatorFraming,
[out] PHANDLE AllocatorHandle
);
View the official Windows Driver Kit DDI referenceNo description available.
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.
Supported starting in Windows 8.
ConnectionHandle [in]Specifies the handle to the sink connection on which to create the allocator.
AllocatorFraming [in]A pointer to a KSALLOCATOR_FRAMING structure that specifies framing for the allocator.
AllocatorHandle [out]Specifies the pointer to a handle to store the allocator handle.
Returns NOERROR if successful; otherwise, returns an error code.
This is a new version of the KsCreateAllocator function and uses the device broker to create the handle to the kernel streaming object. In addition, the Component Object Model (COM) CoInitialize function must be called before this function is called.