The IRP_MJ_QUERY_INFORMATION request queries the end-of-file information for a serial device.
A client uses a query information request to obtain standard information and position information about a file opened on a serial device.
The Parameters.QueryFile.FileInformationClass is set to FileStandardInformation or FilePositionInformation.
The AssociatedIrp.SystemBuffer member points to a client-allocated FILE_STANDARD_INFORMATION structure that Serial uses to output standard information.
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:
The request completed successfully.
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.
Serial is in the process of removing the device.
The requested information is not supported.
Serial queued the request for later processing.
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.