.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH RtlQueueWorkItem 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBRtlQueueWorkItem\fR (NTDLL.@) .SH SYNOPSIS NTSTATUS RtlQueueWorkItem ( PRTL_WORK_ITEM_ROUTINE \fIFunction\fR, PVOID \fIContext\fR, ULONG \fIFlags\fR ) .SH DESCRIPTION .PP Queues a work item into a thread in the thread pool. .SH PARAMS \fIFunction\fR \fB[In]\fR Work function to execute. .PP \fIContext\fR \fB[In]\fR \fIContext\fR to pass to the work function when it is executed. .PP \fIFlags\fR \fB[In]\fR \fIFlags\fR. See notes. .PP .SH RETURNS .PP \fBSuccess:\fR \fBSTATUS_SUCCESS\fR. .PP \fBFailure:\fR Any \fBNTSTATUS\fR code. .SH NOTES .PP \fIFlags\fR can be one or more of the following: .br WT_EXECUTEDEFAULT - Executes the work item in a non-I/O worker thread. .br WT_EXECUTEINIOTHREAD - Executes the work item in an I/O worker thread. .br WT_EXECUTEINPERSISTENTTHREAD - Executes the work item in a thread that is persistent. .br WT_EXECUTELONGFUNCTION - Hints that the execution can take a long time. .br WT_TRANSFER_IMPERSONATION - Executes the function with the current access token. .SH IMPLEMENTATION .PP Declared in \fB"winternl.h"\fR. .PP Implemented in \fB"dlls/ntdll/threadpool.c"\fR. .PP Debug channel \fB"threadpool"\fR.