IRP_MJ_PNP (Kbdclass)

The IRP_MJ_PNP request supports Plug and Play.

When Sent

The Plug and Play manager sends IRP_MJ_PNP requests to control the Plug and Play operation of a keyboard.

Input Parameters

Request-specific.

Output Parameters

Request-specific.

I/O Status Block

Under Normal operation the status block values are request-specific. If an IRP_MJ_PNP request is sent in error to a legacy device, Kbdclass completes the request with a status of STATUS_NOT_SUPPORTED.

Operation

Kbdclass processes the following Plug and Play requests:

IRP_MN_QUERY_PNP_DEVICE_STATE

IRP_MN_QUERY_REMOVE_DEVICE

IRP_MN_QUERY_STOP_DEVICE

IRP_MN_REMOVE_DEVICE

IRP_MN_START_DEVICE

IRP_MN_SURPRISE_REMOVAL

IRP_MN_STOP_DEVICE

For all other Plug and Play requests, Kbdclass copies the current IRP stack location and sends the request down the device stack without further processing.

For more information about the generic operation of these requests, see Plug and Play Minor IRPs.

Requirements

Header

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

See also

IRP_MJ_PNP

 

 

Send comments about this topic to Microsoft