IsThreadpoolTimerSet 関数 (threadpoolapiset.h)

指定したタイマー オブジェクトが現在設定されているかどうかを判断します。

構文

BOOL IsThreadpoolTimerSet(
  [in, out] PTP_TIMER pti
);

パラメーター

[in, out] pti

タイマー オブジェクトを定義する TP_TIMER 構造体へのポインター。 CreateThreadpoolTimer 関数は、このポインターを返します。

戻り値

タイマーが設定されている場合、戻り値は TRUE です。それ以外の場合、戻り値は FALSE です。

注釈

SetThreadpoolTimer または SetThreadpoolTimerEx関数の最新の呼び出しで pftDueTime に null 以外の値が渡された場合、タイマーは設定されていると見なされます。

この関数を使用するアプリケーションをコンパイルするには、_WIN32_WINNTを 0x0600 以上として定義します。

要件

要件
サポートされている最小のクライアント Windows Vista [デスクトップ アプリのみ | UWP アプリ]
サポートされている最小のサーバー Windows Server 2008 [デスクトップ アプリ | UWP アプリ]
対象プラットフォーム Windows
ヘッダー threadpoolapiset.h (Windows 7、Windows Server 2008 Windows Server 2008 R2 の Windows.h を含む)
Library Kernel32.lib
[DLL] Kernel32.dll

関連項目

CloseThreadpoolTimer

CreateThreadpoolTimer

SetThreadpoolTimer

スレッド プール

WaitForThreadpoolTimerCallbacks