Re: How to disconnect ActiveSync to suspend

Tech-Archive recommends: Fix windows errors by optimizing your registry



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





.



Relevant Pages

  • Re: logitech wireless mouse works for a while but then disconnects
    ... Also, for some reason every so often, I have to physically disconnect and ... My USB Controller is: ... ums0: ... > port 1 powered ...
    (freebsd-current)
  • Re: Port Scans
    ... >I only had one time I was suspicious of some port scans. ... >disconnect from the net, and run a Trojan scan to be on the safe side? ... >E-mail addy used is invalid to prevent spam. ... Can an outsider penetrate a firewall that has no open ...
    (comp.security.firewalls)
  • [patch 13/18] USB: serial: fix lifetime and locking problems
    ... This patch fixes a few lifetime and locking problems in the ... Each open file should hold a reference to the corresponding ... port structure, and the reference should be released when ... resolve the classic race between open and disconnect. ...
    (Linux-Kernel)
  • Re: Proper way to disconnect and reconnect a marshalled remote object instance??
    ... most probably the error message was that another application is using the ... port open for 2-3 minutes after disconnecting, so you can not reuse the ... > I need to be able to disconnect this object, ... > So, is there a clean way to connect and instance of a remote object, then ...
    (microsoft.public.dotnet.framework.remoting)
  • Address on dial up
    ... Running Kerio vs.2 and this machine uses DHCP to get address. ... as if we've lost our address or port, ... (Windows settings are set NOT to disconnect after a period of time, ...
    (comp.security.firewalls)