Hi,

Is there a way to unload a loaded driver without reboot?
I used ActivateDeviceEx and DeactivateDevice to disable
the dirver, however the driver still can be found using
FindFirstFileEx and FindNextFile and be opended
correctly.

Re: How to unload a driver ? by Yannick

Yannick
Wed Jan 04 00:46:17 CST 2006

I'm not sure, but it's possible that DeactivateDevice do not unload the
driver if it's still used by an application. Can you confirm you don't have
an active connection (i.e createfile call with no closehandle call) between
your driver and an application ?

--
----------------------------------------------------------------
Yannick Chamming's (eMVP)
ADENEO (ADESET)
Windows Embedded Manager
ychammings AT adeset DOT com>
http://www.adeset.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------

"Jemmy" <jemmy_huang@accton.com.tw> a écrit dans le message de news:
dpffl0$si7$1@netnews.hinet.net...
> Hi,
>
> Is there a way to unload a loaded driver without reboot?
> I used ActivateDeviceEx and DeactivateDevice to disable
> the dirver, however the driver still can be found using
> FindFirstFileEx and FindNextFile and be opended
> correctly.
>
>
>
>
>
>
>



Re: How to unload a driver ? by Steve

Steve
Wed Jan 04 10:53:50 CST 2006

If you called ActivateDevice to load the driver you should be able to call
DeactivateDevice to unload it. What is the return value you get from
Deactivatedevice? What does the debug output show?

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com