Re: help to handle IRP_MN_STOP_DEVICE and IRP_MN_START_DEVICE in Usb device?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Doron Holan [MS] 寫道:

I have been tried to test the WDK signature test.
It has been passed that test.
Do you mean that?
Or it will not function correctly in PNP about IRP_MN_XXX in modem?

Thanks for answering.


no, it must be a full fledged KMDF driver that is not running in miniport
mode

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.


"boeysue" <boeysue@xxxxxxxxxxx> wrote in message
news:1168567829.527339.138970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Can it just like the ndis sample in DDK to win the WHQL logo,just use
the KMDF shell in driverentry,but actually use the IRP?
I use the sample,but after the IRP_MN_STOP_DEVICE,windbg wont return to
the next program line.
It seems that it won't work correctly in my driver, how can I to debug
that using windbg?
Which command should I use to prove that?
Thanks...


Doron Holan [MS] ??:

for a modem device, not really. to get a WHQL logo, your driver *must* be
a
KMDF driver.

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.


"boeysue" <boeysue@xxxxxxxxxxx> wrote in message
news:1168331988.863506.66670@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

There are many reasons that I have to write in WDM ways and It's hard
to say.
But by the way,what is "modem.sys is probably pausing incoming i/o"?
Is modem pausing for any next IRP?
or some other reasons?

Doron Holan [MS] ¼g¹D¡G

modem.sys is probably pausing incoming i/o. why not fix your driver to
handle the pnp irp properly and be done with it? like don said, there
is
no
need to learn this stuff, KMDF takes care of this for you and lets you
concetrate on implementing the guts of your driver

d


.



Relevant Pages

  • Re: How do you veto hibernation on a KMDF driver?
    ... Please do not send e-mail directly to this alias. ... return WdfDeviceWdmDispatchPreprocessedIrp(Device, Irp); ... I'm trying to match this WDM behavior with the KMDF. ...
    (microsoft.public.development.device.drivers)
  • Re: could WDM sample code: selsusp work on any platform?
    ... Please do not send e-mail directly to this alias. ... newsgroup purposes only. ... source that have easily moved to kmdf. ... KMDF changes how the driver ...
    (microsoft.public.development.device.drivers)
  • Re: could WDM sample code: selsusp work on any platform?
    ... source that have easily  moved to kmdf. ... Please do not send e-mail directly to this alias. ... does this sample code pass WHQL? ... driver developers. ...
    (microsoft.public.development.device.drivers)
  • Re: could WDM sample code: selsusp work on any platform?
    ... i know alot of companies with drivers that have 100 of thousands of lines of source that have easily moved to kmdf. ... KMDF changes how the driver initially processes incoming io, the way you handle an isr or dpc or compute the answer does not change at all. ... Please do not send e-mail directly to this alias. ... scratch, esp for usb SS, i see really no point in going to WDM. ...
    (microsoft.public.development.device.drivers)
  • Re: help to handle IRP_MN_STOP_DEVICE and IRP_MN_START_DEVICE in Usb device?
    ... concetrate on implementing the guts of your driver ... Because my usb modem driver works uncorrectly in vista about pnp, ... when i pass irp to next driver stack, ... sorry,I am not going to learn KMDF now. ...
    (microsoft.public.development.device.drivers)