Dynamically unload and load serial driver
- From: Craig <Craig@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 24 Oct 2008 09:41:01 -0700
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
.
- Follow-Ups:
- Re: Dynamically unload and load serial driver
- From: Michel Verhagen (eMVP)
- Re: Dynamically unload and load serial driver
- Prev by Date: RE: GPRS modem
- Next by Date: Re: GPS Control panel Application
- Previous by thread: Fast performing Timer APIs in WinCE...
- Next by thread: Re: Dynamically unload and load serial driver
- Index(es):
Relevant Pages
|