IRP_MJ_CREATE (Parallel Device)
The IRP_MJ_CREATE request opens a parallel device.
A client must use an IRP_MJ_CREATE request to open a parallel device before it can access the device.
I/O Status Block
The Information member is set to zero.
The Status member is set to one of the following values:
The device was opened successfully.
The device is already open.
The device is in a Plug and Play surprised-removed state.
The device has been removed.
There is no hardware present.
The device is not a directory.
A parallel device is an exclusive device. If a parallel device is open, the system-supplied bus driver for parallel ports fails any subsequent IRP_MJ_CREATE requests for the device until the device has been closed. A client must open a parallel device before it sends other I/O requests to the device or calls the parallel device callback routines.
For more information, see Opening and Using a Parallel Device.