KSMETHOD_STREAMALLOCATOR_ALLOC
The KSMETHOD_STREAMALLOCATOR_ALLOC method is used by a client to allocate a frame from the given allocator. The method returns STATUS_PENDING if no frames are currently available. Otherwise, the method returns a pointer to a frame.
For example, a kernel-mode client could use the following sample code to allocate a frame:
Remarks
Method.Identifier.Set = KSMETHODSETID_StreamAllocator;
Method.Identifier.Id = KSMETHOD_STREAMALLOCATOR_ALLOC;
Method.Flags = KSMETHOD_TYPE_WRITE;
DeviceIoControl(
AllocatorHandle,
IOCTL_KS_METHOD,
&Method,
sizeof(KSMETHOD),
&Frame,
sizeof(PVOID),
&BytesReturned,
&Overlapped);