WaitForThreadpoolTimerCallbacks 函式 (threadpoolapiset.h)

等候未完成的定時器回呼完成,並選擇性地取消尚未開始執行的擱置回呼。

語法

void WaitForThreadpoolTimerCallbacks(
  [in, out] PTP_TIMER pti,
  [in]      BOOL      fCancelPendingCallbacks
);

參數

[in, out] pti

定義定時器物件的 TP_TIMER 結構的指標。 CreateThreadpoolTimer 函式會傳回此指標。

[in] fCancelPendingCallbacks

指出是否取消尚未開始執行的佇列回呼。

傳回值

備註

若要編譯使用此函式的應用程式,請將_WIN32_WINNT定義為0x0600或更高版本。

規格需求

需求
最低支援的用戶端 Windows Vista [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 threadpoolapiset.h (Windows 7、Windows Server 2008 Windows Server 2008 R2)
程式庫 Kernel32.lib
DLL Kernel32.dll

另請參閱

CloseThreadpoolTimer

CreateThreadpoolTimer

IsThreadpoolTimerSet

SetThreadpoolTimer

線程集區