#ifndef _NTTP_H
// winbase:SetThreadpoolTimer
NTSYSAPI
VOID
NTAPI
TpSetTimer(
_Inout_ PTP_TIMER Timer,
_In_opt_ PLARGE_INTEGER DueTime,
_In_ ULONG Period,
_In_opt_ ULONG WindowLength
);
View code on GitHubSets the timer object, replacing the previous timer, if any. A worker thread calls the timer object's callback after the specified timeout expires.
SetThreadpoolTimer maps directly to this function.