NAME

RtlCreateTimer  (NTDLL.@)

SYNOPSIS

 NTSTATUS RtlCreateTimer
 (
  HANDLE                      TimerQueue,
  HANDLE*                     NewTimer,
  RTL_WAITORTIMERCALLBACKFUNC Callback,
  PVOID                       Parameter,
  DWORD                       DueTime,
  DWORD                       Period,
  ULONG                       Flags
 )

DESCRIPTION

Creates a new timer associated with the given queue.

PARAMS

TimerQueue [In] The queue to hold the timer.
NewTimer [Out] The newly created timer.
Callback [In] The callback to fire.
Parameter [In] The argument for the callback.
DueTime [In] The delay, in milliseconds, before first firing the timer.
Period [In] The period, in milliseconds, at which to fire the timer after the first callback. If zero, the timer will only fire once. It still needs to be deleted with RtlDeleteTimer.
Flags [In] Flags controlling the execution of the callback. In addition to the WT_* thread pool flags (see RtlQueueWorkItem), WT_EXECUTEINTIMERTHREAD and WT_EXECUTEONLYONCE are supported.

RETURNS

Success: STATUS_SUCCESS.

Failure: Any NTSTATUS code.

IMPLEMENTATION

Declared in "include/winternl.h". gitlab.winehq.org/wine/wine/blob/master/include/winternl.h

Implemented in "dlls/ntdll/threadpool.c". gitlab.winehq.org/wine/wine/blob/master/dlls/ntdll/threadpool.c

Debug channel "threadpool".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.