Re: How to unload or reload a WinCE driver



Let me restate what Chris said, but in a different way.

The handle stored in the HKLM\Drivers\Active is undocumented, as such it may
change in the future. So while your code may work in some cases today, it
may also fail in some case (none that I know of personally) and may fail in
the future based on a QFE or new Windows CE version.

So proceed with that at your own risk.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"Dark Knight" <VaisakhRulez@xxxxxxxxx> wrote in message
news:a0526bb5-16fd-4a2e-8427-b430e4437cfa@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Oct 15, 8:55 am, "Chris Tacke, MVP" <ctacke.at.opennetcf.dot.com>
wrote:
Getting that handle and using it is a kludge available only in CE 5.0 and
earlier. You can't use it in 6.0 or later.

--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded communityhttp://community.OpenNETCF.com

"Dark Knight" <VaisakhRu...@xxxxxxxxx> wrote in message

news:0b95d112-05ad-4f26-9810-4c995235471b@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

There is a really good post by bruce eitman in his blog check it out.

http://geekswithblogs.net/BruceEitman/archive/2008/07/14/windows-ce-l...

If you are not having the device handle, you can obtain it from
registry (Hnd under the Drivers\Active\<instance> key)

Regards
Vaisakh P S

Yes it is possible in windows ce 6.0.
What i did was, i took the handle value from registry Active entry,
and used the sample program given by bruce to unload the driver and it
worked.
The entry was removed from active list.

Regards,


.



Relevant Pages

  • Re: Finding the today screen
    ... Sorry Chris, I mean it's a password application. ... I start my window from VerifyUserwhich displays a fullscreen foreground ... Chris Tacke - Embedded MVP ... Amit Ranjan ...
    (microsoft.public.pocketpc.developer)
  • Re: Longtime running requirement in control system
    ... thanks Paul G and Chris, your great supports will help us most. ... think your BSP is or how good you think *you* are, you have to test in order ... Chris Tacke, Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Pocket PC and Microsoft Access
    ... Thanks again Chris. ... Chris Tacke, Embedded MVP ... Your VB program will also not run on a mobile device, ... using a SQL CE backend database. ...
    (microsoft.public.pocketpc.developer)
  • Re: Version Option is Invalid
    ... I do the same as Chris, copying the files to the device. ... Chris Tacke, Embedded MVP ... I've tried re-installing Active Sync even VS 2005 with no ... references to RPC but no direct references to CE ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Millisecond timers during suspend.
    ... I agree with Chris, ... Typically in suspend mode, all processor and peripheral ... Chris Tacke, Embedded MVP ... and i need millisecon resolution. ...
    (microsoft.public.windowsce.embedded)