Metodo IAMBufferNegotiation::GetAllocatorProperties (strmif.h)
[La funzionalità associata a questa pagina, DirectShow, è una funzionalità legacy. È stata sostituita da MediaPlayer, FMMediaEngine e Audio/Video Capture in Media Foundation. Queste funzionalità sono state ottimizzate per Windows 10 e Windows 11. Microsoft consiglia vivamente che il nuovo codice usi MediaPlayer, FMMediaEngine e Audio/Video Capture in Media Foundation anziché DirectShow, quando possibile. Microsoft suggerisce che il codice esistente che usa le API legacy venga riscritto per usare le nuove API, se possibile.
Il GetAllocatorProperties
metodo recupera le proprietà dell'allocatore che viene usato dal pin.
Sintassi
HRESULT GetAllocatorProperties(
[out] ALLOCATOR_PROPERTIES *pprop
);
Parametri
[out] pprop
Puntatore a una struttura ALLOCATOR_PROPERTIES , allocata dal chiamante, che riceve le proprietà dell'allocatore.
Valore restituito
Restituisce un valore HRESULT . Di seguito sono indicati alcuni valori possibili.
Codice restituito | Descrizione |
---|---|
|
Operazione completata. |
|
Argomento puntatore NULL. |
|
Il pin non è connesso. |
Commenti
Chiamare questo metodo dopo la connessione dei pin per scoprire le proprietà dell'allocatore scelte.
Requisiti
Requisito | Valore |
---|---|
Client minimo supportato | Windows 2000 Professional [solo app desktop] |
Server minimo supportato | Windows 2000 Server [solo app desktop] |
Piattaforma di destinazione | Windows |
Intestazione | strmif.h (include Dshow.h) |
Libreria | Strmiids.lib |