Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IsThreadpoolTimerSet function (threadpoolapiset.h)

Determines whether the specified timer object is currently set.

Syntax

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

Parameters

[in, out] pti

A pointer to a TP_TIMER structure that defines the timer object. The CreateThreadpoolTimer function returns this pointer.

Return value

The return value is TRUE if the timer is set; otherwise, the return value is FALSE.

Remarks

A timer is considered to be set if the most recent call to SetThreadpoolTimer or SetThreadpoolTimerEx function passed a non-null value for pftDueTime.

To compile an application that uses this function, define _WIN32_WINNT as 0x0600 or higher.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header threadpoolapiset.h (include Windows.h on Windows 7, Windows Server 2008 Windows Server 2008 R2)
Library Kernel32.lib
DLL Kernel32.dll

See also

CloseThreadpoolTimer

CreateThreadpoolTimer

SetThreadpoolTimer

Thread Pools

WaitForThreadpoolTimerCallbacks


Feedback

Was this page helpful?

Additional resources