CPosPassThru.GetTimeFormat 方法

[與此頁面 相關的功能 DirectShow是舊版功能。 它已被 MediaPlayerIMFMediaEngineMedia Foundation 中的音訊/視訊擷取取代。 這些功能已針對Windows 10和Windows 11進行優化。 Microsoft 強烈建議新程式碼盡可能使用 MediaPlayerIMFMediaEngine音訊/視訊擷取 ,而不是 DirectShow。 Microsoft 建議盡可能重寫使用舊版 API 的現有程式碼,以使用新的 API。]

方法 GetTimeFormat 會擷取目前的時間格式。 這個方法會實作 IMediaSeeking::GetTimeFormat 方法。

語法

HRESULT GetTimeFormat(
   const GUID *pFormat
);

參數

pFormat

接收時間格式 GUID 之變數的指標。

傳回值

從連接的針腳傳回 HRESULT 值。

規格需求

需求
標頭
Ctlutil.h (包含 Streams.h)
程式庫
Strmbase.lib (零售組建) ;
Strmbasd.lib (偵錯組建)

另請參閱

CPosPassThru 類別

時間格式 GUID