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);
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for