NtDeviceIoControlFile(3w)

NtDeviceIoControlFile3w

Usage

NTSTATUS NtDeviceIoControlFile
(
HANDLE handle,
HANDLE event,
PIO_APC_ROUTINE apc,
PVOID apc_context,
PIO_STATUS_BLOCK io,
ULONG code,
PVOID in_buffer,
ULONG in_size,
PVOID out_buffer,
ULONG out_size
)

Overview

Perform an I/O control operation on an open file handle.

Params

handle [In] Handle returned from ZwOpenFile(3w) or ZwCreateFile(3w).

event [In] Event to signal upon completion (or NULL).

apc [In] Callback to call upon completion (or NULL).

apc_context [In] Context for ApcRoutine (or NULL).

io [Out] Receives information about the operation on return.

code [In] Control code for the operation to perform.

in_buffer [In] Source for any input data required (or NULL).

in_size [In] Size of InputBuffer.

out_buffer [Out] Source for any output data returned (or NULL).

out_size [In] Size of OutputBuffer.

Returns

Success: 0. IoStatusBlock is updated.

Failure: An NTSTATUS error code describing the error.

Implementation

Declared in "winternl.h".

Implemented in "dlls/ntdll/file.c".

Debug channel "ntdll".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.