Re: How to disconnect ActiveSync to suspend
- From: "Graeme" <gwintle@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 4 Apr 2007 14:26:52 +0100
Do you have the opertunity to disconnect in software?
If you do then use
RasHangUp(GetRasConnHandle("Desktop using USB"));
Change if your USB RAS name is different.
Cheers
GraemeW
"Rams" <Rams@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:285FF8CF-40DB-4416-8DBA-1B4A48531B4E@xxxxxxxxxxxxxxxx
What function call do u make when the cable is unplugged from the USB
port? U
r supposed to make a callback to the upper layer so that they unload the
class drivers that have been loaded when a cable is been connected.
-Rams
"Hermes" wrote:
"Rams" <Rams@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0DB257C1-2BCF-48E6-8B20-D68950EF5B44@xxxxxxxxxxxxxxxx
disbale the D+ line that makes the host to think that u have
disconncted
from
the port. I think u better make a call to pfnnotify with disconnect as
parameter. Give a gap of around 500 msec for unloading the class
driver.
After that do a connect to the D+ line so that the enumeration starts
again.
Hope this helps u.
Hi Rams,
Thanks for the suggestion. This is what I am doing, except that I have to
wait 3 seconds. However, I am not calling "pfnnotify", and I cannot find
it
in the help files. What API is that?
Thanks,
H
.
- Follow-Ups:
- Re: How to disconnect ActiveSync to suspend
- From: Hermes
- Re: How to disconnect ActiveSync to suspend
- Prev by Date: Re: Which function can hide a partiton in WinCE 4.2?
- Next by Date: Re: USB massstorage
- Previous by thread: Re: Which function can hide a partiton in WinCE 4.2?
- Next by thread: Re: How to disconnect ActiveSync to suspend
- Index(es):
Relevant Pages
|