Eliyas,
thanks for your hint !
I had ignored that the driver automatically unloads after the handles to the
device were closed. After I had closed all handles to the device, I tried
again to net stop the (already stopped) driver. Because I got always an
error message it seems to me that the driver are started and cannot be
stopped.
My mistake!
Thanks a lot,
Dieter
-----Original Message-----
From: Eliyas Yakub [mailto:xxxxx@microsoft.com]
Sent: Wednesday, July 12, 2000 9:27 PM
To: NT Developers Interest List
Subject: [ntdev] RE: How to stop a driver after a failed stop ?Did your driver unload after the handles to the device are
closed? From my
experience, if you try to net stop a driver and if that fails
due to open
handles to the device, the driver unloads automatically as
soon as all the
handle to the device is closed. If the driver doesn’t unload
then there must
be outstanding references to the DriverObject (which is contributed by
deviceobjects, user-mode symbolic links, unregistered
notification callback
- in win2k). You might want to check the deviceobject and driverobject
refcounts in the debuggers to see whether they go back to the
initial value
when your driver got/created them.-Eliyas
-----Original Message-----
From: Dieter Schmidt [mailto:xxxxx@men.de]
Sent: Wednesday, July 12, 2000 12:36 AM
To: NT Developers Interest List
Subject: [ntdev] RE: How to stop a driver after a failed stop ?Environment: WinNT 4.0 SP5
Dieter> -----Original Message-----
> From: Eliyas Yakub [mailto:xxxxx@microsoft.com]
> Sent: Tuesday, July 11, 2000 7:33 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: How to stop a driver after a failed stop ?
>
>
> Is this on Win9x or Win2K?
>
> -Eliyas
>
>
> -----Original Message-----
> From: Dieter Schmidt [mailto:xxxxx@men.de]
> Sent: Tuesday, July 11, 2000 12:18 AM
> To: NT Developers Interest List
> Subject: [ntdev] How to stop a driver after a failed stop ?
>
>
> Hi,
>
> I have the following nerved problem by the NT driver development:
>
> When I try to stop a driver and I have omited to close all
opened file
> handles
> to that driver, the attempt to stop the driver fails.
>
> This behaviour is ok, but after that was happened AND all
> file handles to
> the driver are closed, all further attempts to stop the
> driver fail. Now, I
> must
> reeboot to stop the driver.
>
> Is there a way to stop the driver despite of a preceded
failed stop ?
>
> Thanks,
> Dieter
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@microsoft.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
> —
> You are currently subscribed to ntdev as: xxxxx@men.de
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)
You are currently subscribed to ntdev as: xxxxx@men.de
To unsubscribe send a blank email to $subst(‘Email.Unsub’)