I can’t manage to get one of my device drivers to unload: net stop
responds with:
C:\dev>net stop posfile
The requested pause or stop is not valid for this service.
I’ve provided an unload routine that kills my symlink and deletes the driver
properly (just like in my other drivers in which unload works). I’ve poked
around in the nt4 ddk and in the win2k ddk for an explanation, but i’m not
seeing it… Anyway, my question is, What are the causes of not getting an
nt4-style driver to unload?
Thanks…
-sd
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Possible causes: Your code didn’t define the unload entry point, even
though you think it did. Or there’s an open handle to your driver’s
device object. Another possibility – I’m not certain it applies – is
that your driver is a boot-time driver, and I don’t think those can be
unloaded.
Another thing: I’m not sure how all those possibilities work if your
driver is a WDM, filter driver. Certainly for such all the devices that
were added with your driver in the stack have to have been
deleted/unloaded, and I think that when that has happened, your driver
will be “automatically” unloaded; that is, ‘net stop’ doesn’t apply in
such a case.
–
James Antognini
IBM Watson Research
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Well, I just started from scratch and copied chunks of code to the new file,
and it works. I even went back and did a line-by-line comparison, and I
don’t see my bug. I guess I’m thinking-impaired at 3am…
-sd
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of James Antognini
Sent: Saturday, June 30, 2001 2:52 PM
To: NT Developers Interest List
Subject: [ntdev] Re: unloadable drivers problem
Possible causes: Your code didn’t define the unload entry point, even
though you think it did. Or there’s an open handle to your driver’s
device object. Another possibility – I’m not certain it applies – is
that your driver is a boot-time driver, and I don’t think those can be
unloaded.
Another thing: I’m not sure how all those possibilities work if your
driver is a WDM, filter driver. Certainly for such all the devices that
were added with your driver in the stack have to have been
deleted/unloaded, and I think that when that has happened, your driver
will be “automatically” unloaded; that is, ‘net stop’ doesn’t apply in
such a case.
–
James Antognini
IBM Watson Research
You are currently subscribed to ntdev as: xxxxx@positivenetworks.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
hi ,
i generally use the "instdrv " program which comes
with the windows NT DDK. try it maybe it works.
– Thanks
— Steve Dispensa
wrote:
> I can’t manage to get one of my device drivers to
> unload: net stop
> responds with:
>
> C:\dev>net stop posfile
> The requested pause or stop is not valid for this
> service.
>
> I’ve provided an unload routine that kills my
> symlink and deletes the driver
> properly (just like in my other drivers in which
> unload works). I’ve poked
> around in the nt4 ddk and in the win2k ddk for an
> explanation, but i’m not
> seeing it… Anyway, my question is, What are the
> causes of not getting an
> nt4-style driver to unload?
>
> Thanks…
>
> -sd
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com