views:

103

answers:

1

Is there a way to explicitly close a GPRS connection?
I'm setting up a connection with ConnectionManager and I've set the cache time to 10 seconds. Anyway after releasing it, the connection is still on, forever, alas I cannot use the registry key gprs_by_if_device_off. I'm using plain C++.

My idea is to simulate the activity of the windows button "disconnect data connection", but I really cannot understand what it does under the curtain.

A: 

Have you taken a look @ ConnMgrReleaseConnection ?

http://msdn.microsoft.com/en-us/library/bb416503.aspx

Ranhiru Cooray
Hi Ranhiru,of course I'm using it but it's a known "issue" that this API doesn't disconnect the GPRS connection :(.
Rodriguez