millie_w

Hi Guys,

On my nice new WM5 device, when I connect to a webservice using GPRS, a button appears in the square 'G' icon dropdown which disconnects the GPRS connection. Does anyone know how to do this in code I have tried the OpenNet Connection Manager, but it does not disconnect a GPRS connection like the little button does. Happy to P/Invoke any api's that are needed, using C# and VS2005.

Many thanks,

Millicent.



Re: .NET Compact Framework Disconnect GPRS?

Vinodkumar Ramachandran

ConnMgrEstablishConnection to make connection and obtain handle to connection.

ConnMgrReleaseConnection to release the connection.





Re: .NET Compact Framework Disconnect GPRS?

millie_w

Hi Vinodkumar. I have tried this but it does not close the underlying connection like the little button does, but thanks for taking the time to reply.

Millie.





Re: .NET Compact Framework Disconnect GPRS?

Chunsheng Tang - MSFT


May you find something usefull here.





Re: .NET Compact Framework Disconnect GPRS?

millie_w

Thanks for that. Setting the Cache parameter to 0 closes the connection.

Millie.





Re: .NET Compact Framework Disconnect GPRS?

Lawrence

Dear millie-w, I have the same problem as you. Could you provide more detail related how to set the cache parameter to 0 Thanks a lot.