PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
fully disconnecting a GPRS connection
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
fully disconnecting a GPRS connection
![]() |
fully disconnecting a GPRS connection |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi there,
1. When GPRS is connected on the pda via my application, if someone tries to call the phone number, it returns me a message saying phone is switched off, when really it isnt. 2. My Application uses any available connection (WIFI,GPRS, Activesync) to access the internet to sync data So here is my problem. If i use the RasHangUp API function to drop the connection, is there a possibility that it could also drop my WIFI or ActiveSync connection too, as all i really want is to drop the connection when its only connected via GPRS ?? thanks, Paul |
|
|
|
#2 |
|
Guest
Posts: n/a
|
You pass a handle to an active connection to RasHangUp, so RasHangUp will
only disconnect the connection you tell it to disconnect and no other. -- Neil Cowburn Principal Partner OpenNETCF Consulting, LLC. Managed Code in the Embedded World http://www.opennetcf.com/ http://www.smartdeviceframework.com/ "Milsnips" <milsnips@hotmail.com> wrote in message news:unVBftjYHHA.1296@TK2MSFTNGP02.phx.gbl... > Hi there, > > 1. When GPRS is connected on the pda via my application, if someone tries > to call the phone number, it returns me a message saying phone is switched > off, when really it isnt. > > 2. My Application uses any available connection (WIFI,GPRS, Activesync) to > access the internet to sync data So here is my problem. > > If i use the RasHangUp API function to drop the connection, is there a > possibility that it could also drop my WIFI or ActiveSync connection too, > as all i really want is to drop the connection when its only connected via > GPRS ?? > > thanks, > Paul > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Hi Neil,
as im not too familiar with using API functions, i guess that i would use the RasEnumConnections API to get the list of all active connections, then when i programatically find the one i need to disconnect (if x=y) just disconnect that one, correct? thanks, Paul. "Neil Cowburn" <neilc@nospam.opennetcf.com> wrote in message news:4904EAF3-E0FD-40B7-843F-729DCD1FA30B@microsoft.com... > You pass a handle to an active connection to RasHangUp, so RasHangUp will > only disconnect the connection you tell it to disconnect and no other. > > -- > Neil Cowburn > Principal Partner > OpenNETCF Consulting, LLC. > > Managed Code in the Embedded World > > http://www.opennetcf.com/ > http://www.smartdeviceframework.com/ > > > "Milsnips" <milsnips@hotmail.com> wrote in message > news:unVBftjYHHA.1296@TK2MSFTNGP02.phx.gbl... >> Hi there, >> >> 1. When GPRS is connected on the pda via my application, if someone tries >> to call the phone number, it returns me a message saying phone is >> switched off, when really it isnt. >> >> 2. My Application uses any available connection (WIFI,GPRS, Activesync) >> to access the internet to sync data So here is my problem. >> >> If i use the RasHangUp API function to drop the connection, is there a >> possibility that it could also drop my WIFI or ActiveSync connection too, >> as all i really want is to drop the connection when its only connected >> via GPRS ?? >> >> thanks, >> Paul >> > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Correct.
-- Chris Tacke - Embedded MVP OpenNETCF Consulting Managed Code in the Embedded World www.opennetcf.com -- "Milsnips" <milsnips@hotmail.com> wrote in message news:OmAacHlYHHA.448@TK2MSFTNGP04.phx.gbl... > Hi Neil, > > as im not too familiar with using API functions, i guess that i would use > the RasEnumConnections API to get the list of all active connections, then > when i programatically find the one i need to disconnect (if x=y) just > disconnect that one, correct? > > thanks, > Paul. > > "Neil Cowburn" <neilc@nospam.opennetcf.com> wrote in message > news:4904EAF3-E0FD-40B7-843F-729DCD1FA30B@microsoft.com... >> You pass a handle to an active connection to RasHangUp, so RasHangUp will >> only disconnect the connection you tell it to disconnect and no other. >> >> -- >> Neil Cowburn >> Principal Partner >> OpenNETCF Consulting, LLC. >> >> Managed Code in the Embedded World >> >> http://www.opennetcf.com/ >> http://www.smartdeviceframework.com/ >> >> >> "Milsnips" <milsnips@hotmail.com> wrote in message >> news:unVBftjYHHA.1296@TK2MSFTNGP02.phx.gbl... >>> Hi there, >>> >>> 1. When GPRS is connected on the pda via my application, if someone >>> tries to call the phone number, it returns me a message saying phone is >>> switched off, when really it isnt. >>> >>> 2. My Application uses any available connection (WIFI,GPRS, Activesync) >>> to access the internet to sync data So here is my problem. >>> >>> If i use the RasHangUp API function to drop the connection, is there a >>> possibility that it could also drop my WIFI or ActiveSync connection >>> too, as all i really want is to drop the connection when its only >>> connected via GPRS ?? >>> >>> thanks, >>> Paul >>> >> > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

