FsRtlIssueDeviceIoControl function

The FsRtlIssueDeviceIoControl routine sends a synchronous device I/O control request to a target device object.

Syntax

NTSTATUS FsRtlIssueDeviceIoControl(
  PDEVICE_OBJECT DeviceObject,
  ULONG          IoCtl,
  UCHAR          Flags,
  PVOID          InputBuffer,
  ULONG          InputBufferLength,
  PVOID          OutputBuffer,
  ULONG          OutputBufferLength,
  PULONG_PTR     IosbInformation
);

Parameters

DeviceObject

The target device object.

IoCtl

The IOCTL control code to issue.

Flags

TBD

InputBuffer

An optional buffer containing the input data for the request.

InputBufferLength

The length, in bytes, of the input data in InputBuffer.

OutputBuffer

An optional caller-supplied output buffer for returned data.

OutputBufferLength

The length, in bytes, of the output data buffer at OutputBuffer.

IosbInformation

A pointer to a ULONG status value to receive the information field value set in the I/O status block at completion of the request.

Return Value

FsRtlIssueDeviceIoControl returns STATUS_SUCCESS or an another NTSTATUS value returned in the status block from the I/O operation.

Requirements

   
Windows version Available starting with Windows 8.
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library Ntoskrnl.lib
IRQL "<= APC_LEVEL"

See Also

FltDeviceIoControlFile