Muokkaa

Jaa


KSMETHOD_STREAMALLOCATOR_FREE

The KSMETHOD_STREAMALLOCATOR_FREE method is used by a client to free a frame back to the given allocator. A pending KSMETHOD_STREAMALLOCATOR_ALLOC, if any, can be completed by using this method.

For example, a kernel-mode client could use the following sample code to free a frame:

Remarks

Method.Identifier.Set = KSMETHODSETID_StreamAllocator;
Method.Identifier.Id = KSMETHOD_STREAMALLOCATOR_FREE;
Method.Flags = KSMETHOD_TYPE_READ;
DeviceIoControl(
    AllocatorHandle,
    IOCTL_KS_METHOD,
    &Method,
    sizeof(KSMETHOD),
    &Frame,
    sizeof( PVOID ),
    &BytesReturned,
    &Overlapped);