共用方式為


KsPinSetPinClockTime 函式 (ks.h)

KsPinSetPinClockTime 函式會設定 Pin所公開時鐘的目前時間。

語法

KSDDKAPI VOID KsPinSetPinClockTime(
  [in] PKSPIN   Pin,
  [in] LONGLONG Time
);

參數

[in] Pin

KSPIN 結構的指標,代表公開時鐘設定為 Time所指定時間的 AVStream pin 物件。

[in] Time

此參數會指定 Pin所公開時鐘上設定的時間。 若要判斷時間測量單位,請使用 IKsReferenceClock::GetResolution

傳回值

沒有

言論

KsPinSetPinClockTime 修改時鐘傳回的目前時間。 如果使用外部時鐘,當外部定時器未使用時,仍然可以使用此函式強制重設目前的定時器。 在此情況下,會忽略提供的時間,而且必須設定為零。

要求

要求 價值
最低支援的用戶端 Microsoft Windows XP 和更新版本的作系統和 DirectX 8.0 和更新版本的 DirectX 版本中提供。
目標平臺 普遍
標頭 ks.h (包括 Ks.h)
連結庫 Ks.lib
IRQL <=DISPATCH_LEVEL

另請參閱

IKsControl

IKsReferenceClock

KsFilterGetOuterUnknown

KsGetOuterUnknown

KsPinGetConnectedFilterInterface

KsPinGetConnectedPinInterface

KsPinGetReferenceClockInterface

KsRegisterAggregatedClientUnknown