IRP_MJ_CREATE (Parallel Port)

The IRP_MJ_CREATE request opens a parallel port.

When Sent

A client must use an IRP_MJ_CREATE request to open a parallel port before it can access the port or a device connected to the port.

Input Parameters

None.

Output Parameters

None.

I/O Status Block

The Information member is set to zero.

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

  • STATUS_SUCCESS
    The parallel port was successfully opened.

  • STATUS_DELETE_PENDING
    The device is in the process of being removed by the Plug and Play manager.

Operation

A parallel port is a shared device. When the system-supplied function driver for parallel ports receives an open request for an parallel port, it simply increments the count of open files on the parallel port.

Requirements

Header

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

See also

IRP_MJ_CREATE

 

 

Send comments about this topic to Microsoft