नोट
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप साइन इन करने या निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
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);