Re: How to treat IRP_MN_START_DEVICE request?

Tech-Archive recommends: Fix windows errors by optimizing your registry



b/c your device was first stopped. i would strongly suggest that you use KMDF and let it implement pnp and power support for you, this is only the tip of the iceburg for the problems that you will deal with

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Simon" <simon@xxxxxxxxxxx> wrote in message news:A828AE57-FC3C-44E4-87D5-1FC307BFDFE4@xxxxxxxxxxxxxxxx
Hi:

On Windows Vista my driver can receive IRP_MN_START_DEVICE 2 times.

The scenario is somehow like the step as below..

DriverEntry
AddDevice
IRP_MN_START_DEVICE
.
.
.
.
IRP_MN_QUERY_STOP
IRP_MN_STOP_DEVICE
IRP_MN_START_DEVICE



Why Pnp Manager send IRP_MN_START_DEVICE twice to my driver?

--
Simon Liao
Best Regards

.



Relevant Pages

  • Re: Once more on remove lock
    ... and it is then the responsibility of that driver to coordinate i/o with the ... pnp state. ... Please do not send e-mail directly to this alias. ... While it is true that PnP will not send down a remove or surprise-remove IRP ...
    (microsoft.public.development.device.drivers)
  • Re: Pnp Device Driver Loaded when No Devices Present
    ... unload because there are no pnp devices present for it. ... 2nd driver that keeps track of the pnp instances. ... Please do not send e-mail directly to this alias. ... "Dennis Burns" wrote in message ...
    (microsoft.public.development.device.drivers)
  • Re: Pnp Device Driver Loaded when No Devices Present
    ... But how do I keep my "monitor" driver resident when no devices are attached? ... > unload because there are no pnp devices present for it. ... > Please do not send e-mail directly to this alias. ...
    (microsoft.public.development.device.drivers)
  • pci-resume patch from 2.6.7-rc2 breakes S3 resume on some machines
    ... ACPI: IRQ9 SCI: Edge set to Level Trigger. ... PCI: PCI BIOS revision 2.10 entry at 0xfd9d3, ... PnPBIOS: Scanning system for PnP BIOS support... ... 20 nodes reported by PnP BIOS; 20 recorded by driver ...
    (Linux-Kernel)
  • Re: Linux-2.6.13-rc6: aic7xxx testers please..
    ... pnp: PnP ACPI init ... usbcore: registered new driver usbfs ... usbcore: registered new driver hub ... ehci_hcd 0000:03:08.2: new USB bus registered, ...
    (Linux-Kernel)