Hardware Dev Center

IRP_MJ_QUERY_INFORMATION (Serial)

The IRP_MJ_QUERY_INFORMATION request queries the end-of-file information for a serial device.

When Sent

A client uses a query information request to obtain standard information and position information about a file opened on a serial device.

Input Parameters

The Parameters.QueryFile.FileInformationClass is set to FileStandardInformation or FilePositionInformation.

Output Parameters

FileStandardInformation

The AssociatedIrp.SystemBuffer member points to a client-allocated FILE_STANDARD_INFORMATION structure that Serial uses to output standard information.

FilePositionInformation

The AssociatedIrp.SystemBuffer member points to a client-allocated FILE_POSITION_INFORMATION structure that Serial uses to output position information.

I/O Status Block

If the request is successful, the Information member is set to zero.

The Status member is set to one of the following status values:

STATUS_SUCCESS

The request completed successfully.

STATUS_CANCELLED

A client canceled the request. Serial also cancels a request if a device error occurs and Serial is configured to cancel a request if there is a device error.

STATUS_DELETE_PENDING

Serial is in the process of removing the device.

STATUS_INVALID_PARAMETER

The requested information is not supported.

STATUS_PENDING

Serial queued the request for later processing.

Operation

Serial supports requests of type FileStandardInformation and FilePositionInformation.

The standard file information is always set to zero or FALSE, as appropriate. The position information is always set to zero.

Requirements

Header

Wdm.h (include Wdm.h or Ntddk.h)

See also

IRP_MJ_SET_INFORMATION (Serial)

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft