KsCreateAllocator2 - NtDoc

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

KSDDKAPI HRESULT KsCreateAllocator2(
  [in]  HANDLE               ConnectionHandle,
  [in]  PKSALLOCATOR_FRAMING AllocatorFraming,
  [out] PHANDLE              AllocatorHandle
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-kscreateallocator2)

KsCreateAllocator2 function

Description

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.

Parameters

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.

Return value

Returns NOERROR if successful; otherwise, returns an error code.

Remarks

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.

See also

CoInitialize

KSALLOCATOR_FRAMING

KsCreateAllocator