Re: Dynamically unload and load serial driver

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



Error 110 is "The system cannot open the device or file specified." meaning it can't find, or more probable; can't open the driver dll because it is still in use.

- Are you sure the driver unloaded?
- How did you get the handle to the serial driver?
- Can you still find "COM1:" using FindFirst/NextDevice after unloading it?


Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

Craig wrote:
Hello,
Due to a problem with RAS, the COM port cannot be opened (in RasDial calls). I don't want to have to reset my device to let the driver reload. I have been able to unload the serial driver using DeactivateDevice. However, when I attempt to reload the serial driver using ActivateDeviceEx, I always get the error 110. This is the typical COM1 driver found in [HKLM\Drivers\BuiltIn\Serial].

I call: ActivateDeviceEx(_T("Drivers\\BuiltIn\\Serial"), NULL, 0, NULL );

My OS is CE 5.0. I don't have any access to PB debug information.

Please let me know if this is possible and what I might be doing wrong.

Thank you,
Craig
.



Relevant Pages

  • RE: wince serial driver
    ... My problem was my app was not picking up all the parity error ... events that the serial driver was raising. ... > Operating System: Windows CE 3.0 ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [PATCH 2.6.8.1] drivers/char: New serial driver.
    ... > I am submitting a new serial driver for the 2.6 series of kernels. ... > Digi serial driver for the Digi Neo and Classic PCI serial port ...
    (Linux-Kernel)
  • Re: Problem with tcgetattr
    ... You are intercepting the ioctl or else replacing the ... These are the methods of the driver object. ... it looks like the serial driver to me. ... * is not handled by the tty layer or the low-level tty driver. ...
    (comp.os.linux.development.system)
  • Re: Personnal line discipline difficulties
    ... >> driver from Windows to Linux, and the Windows serial driver gives ... I'm sure there's no way to find that size but through the serial port ... I've already tried to totally replace the serial driver (by using inb and outb ...
    (Linux-Kernel)
  • Re: Cant open the serial ports.
    ... Yes.Just look out for the debug messages on the debug window on PB and hunt ... for Serial Driver messages.By the way you will have to enable all the debug ... >>> Remote Registry Editor. ...
    (microsoft.public.windowsce.embedded)