.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH RtlCreateTimer 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBRtlCreateTimer\fR (NTDLL.@) .SH SYNOPSIS NTSTATUS RtlCreateTimer ( PHANDLE \fINewTimer\fR, HANDLE \fITimerQueue\fR, RTL_WAITORTIMERCALLBACKFUNC \fICallback\fR, PVOID \fIParameter\fR, DWORD \fIDueTime\fR, DWORD \fIPeriod\fR, ULONG \fIFlags\fR ) .SH DESCRIPTION .PP Creates a new timer associated with the given queue. .SH PARAMS \fINewTimer\fR \fB[Out]\fR The newly created timer. .PP \fITimerQueue\fR \fB[In]\fR The queue to hold the timer. .PP \fICallback\fR \fB[In]\fR The callback to fire. .PP \fIParameter\fR \fB[In]\fR The argument for the callback. .PP \fIDueTime\fR \fB[In]\fR The delay, in milliseconds, before first firing the timer. .PP \fIPeriod\fR \fB[In]\fR 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. .PP \fIFlags\fR \fB[In]\fR \fIFlags\fR controling the execution of the callback. In addition to the \fBWT_\fR* thread pool flags (see RtlQueueWorkItem), \fBWT_EXECUTEINTIMERTHREAD\fR and \fBWT_EXECUTEONLYONCE\fR are supported. .PP .SH RETURNS .PP \fBSuccess:\fR \fBSTATUS_SUCCESS\fR. .PP \fBFailure:\fR Any \fBNTSTATUS\fR code. .SH IMPLEMENTATION .PP Declared in \fB"winternl.h"\fR. .PP Implemented in \fB"dlls/ntdll/threadpool.c"\fR. .PP Debug channel \fB"threadpool"\fR.