KSMETHOD_STREAMALLOCATOR_ALLOC
Il metodo KSMETHOD_STREAMALLOCATOR_ALLOC viene usato da un client per allocare un frame dall'allocatore specificato. Il metodo restituisce STATUS_PENDING se non sono attualmente disponibili fotogrammi. In caso contrario, il metodo restituisce un puntatore a un frame.
Ad esempio, un client in modalità kernel può usare il codice di esempio seguente per allocare un frame:
Osservazioni
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);