Condividi tramite


KSMETHOD_STREAMALLOCATOR_FREE

Il metodo KSMETHOD_STREAMALLOCATOR_FREE viene usato da un client per liberare un frame all'allocatore specificato. È possibile completare un KSMETHOD_STREAMALLOCATOR_ALLOC in sospeso, se presente, utilizzando questo metodo.

Ad esempio, un client in modalità kernel può usare il codice di esempio seguente per liberare un frame:

Osservazioni

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);