---
name: "RtlSetIoCompletionCallback"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/RtlSetIoCompletionCallback"
---

# RtlSetIoCompletionCallback(3w)

## NAME

**RtlSetIoCompletionCallback** (NTDLL.@)

## SYNOPSIS

NTSTATUS RtlSetIoCompletionCallback\
  (\
   HANDLE                             *FileHandle*,\
   PRTL\_OVERLAPPED\_COMPLETION\_ROUTINE *Function*,\
   ULONG                              *Flags*\
  )

## DESCRIPTION

Binds a handle to a thread pool's completion port, and possibly starts a non-I/O thread to monitor this port and call functions back.

## PARAMS

*FileHandle* **\[In\]**  Handle to bind to a completion port.

*Function* **\[In\]**  Callback function to call on I/O completions.

*Flags* **\[In\]**  Not used.

## RETURNS

**Success:** **STATUS\_SUCCESS**.

**Failure:** Any **NTSTATUS** code.

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/threadpool.c"**.

Debug channel **"threadpool"**.
