All drivers must be prepared to service IRP_MJ_PNP requests in a DispatchPnP routine.
The PnP manager sends IRP_MJ_PNP requests during enumeration, resource rebalancing, and any other time Plug and Play activity occurs on the system. Drivers can also send certain IRP_MJ_PNP requests, depending on the minor function code.
Depends on the value at MinorFunction in the current I/O stack location of the IRP. Every IRP_MJ_PNP request specifies a minor function code that identifies the requested PnP action.
Depends on the value at MinorFunction in the current I/O stack location of the IRP.
See Plug and Play Minor IRPs for detailed information about IRP_MJ_PNP requests.
|Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)|