Metodo CSourceSeeking.IsUsingTimeFormat

[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 IsUsingTimeFormat metodo determina se un formato ora specificato è il formato attualmente in uso.

Sintassi

HRESULT IsUsingTimeFormat(
   const GUID *pFormat
);

Parametri

pFormat

Puntatore a un GUID di formato ora. Vedere GUID formato ora.

Valore restituito

Restituisce uno dei valori HRESULT elencati nella tabella seguente.

Codice restituito Descrizione
S_FALSE
Il formato specificato non è il formato corrente.
S_OK
Il formato specificato è il formato corrente.
E_POINTER
Argomento puntatore NULL.

Commenti

L'unico formato di tempo supportato dalla classe base è TIME_FORMAT_MEDIA_TIME (100-nanosecondi).

Requisiti

Requisito Valore
Intestazione
Ctlutil.h (includere Streams.h)
Libreria
Strmbase.lib (build al dettaglio);
Strmbasd.lib (build di debug)

Vedi anche

Classe CSourceSeeking