Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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);