PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework fully disconnecting a GPRS connection

Reply

fully disconnecting a GPRS connection

 
Thread Tools Rate Thread
Old 09-03-2007, 11:09 AM   #1
Milsnips
Guest
 
Posts: n/a
Default fully disconnecting a GPRS connection


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


  Reply With Quote
Old 09-03-2007, 11:19 AM   #2
Neil Cowburn
Guest
 
Posts: n/a
Default Re: fully disconnecting a GPRS connection

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
>


  Reply With Quote
Old 09-03-2007, 01:50 PM   #3
Milsnips
Guest
 
Posts: n/a
Default Re: fully disconnecting a GPRS connection

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
>>

>



  Reply With Quote
Old 09-03-2007, 02:36 PM   #4
Guest
 
Posts: n/a
Default Re: fully disconnecting a GPRS connection

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
>>>

>>

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off