Condividi tramite


PFNALLOCATOR_ALLOCATEFRAME funzione di callback (ks.h)

La routine KStrAllocateFrame descrive una funzione di allocazione dei frame fornita dal fornitore.

Sintassi

PFNALLOCATOR_ALLOCATEFRAME PfnallocatorAllocateframe;

NTSTATUS PfnallocatorAllocateframe(
  [in]  PFILE_OBJECT FileObject,
  [out] PVOID *Frame
)
{...}

Parametri

[in] FileObject

Puntatore a una struttura FILE_OBJECT per cui allocare i frame.

[out] Frame

Puntatore a un buffer allocato dal chiamante in cui viene restituito il nuovo frame.

Valore restituito

Restituisce STATUS_SUCCESS se la richiesta viene gestita. In caso contrario, restituisce un codice di errore appropriato.

Commenti

Questo tipo viene usato nel membro AllocateFrame della struttura KSSTREAMALLOCATOR_FUNCTIONTABLE .

È possibile passare un'istanza di questa struttura come parte di una richiesta di proprietà KSPROPERTY_STREAMALLOCATOR_FUNCTIONTABLE .

Requisiti

Requisito Valore
Piattaforma di destinazione Desktop
Intestazione ks.h (include Ks.h)

Vedi anche

KSPROPERTY_STREAMALLOCATOR_FUNCTIONTABLE

KSSTREAMALLOCATOR_FUNCTIONTABLE