close gprs connexion

Post Reply
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

close gprs connexion

Post by Richard Chidiak »

Hello

I can send data through gprs thank's to Pawel's code (works great) .

I want to close automatically the gprs connexion after transmission .

For this i use code below but the connexion is still up after execution of this code. I am using windows mobile 2003.

Any help will be appreciated,

Thanks

Richard

HB_FUNC (CLOSEGPRSCONNECTION)
{

HANDLE phWebConnection = NULL;
DWORD pdwStatus = 0;
DWORD hresult = 0;

ConnMgrConnectionStatus (phWebConnection, &pdwStatus);
if (pdwStatus == CONNMGR_STATUS_CONNECTED)
{
hresult == ConnMgrReleaseConnection(&phWebConnection,0); // 0 = disconnect immedialtely
}
}
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
paulyne
Posts: 1
Joined: Fri Apr 22, 2011 7:47 am

Re: close gprs connexion

Post by paulyne »

How can I gprs for free on my airtel sim? For about last 3 months i was not being charged for using mobile office on my airtel sim(i dont know why). Recently i formatted my phone and now i am being charged for using gprs. Is there a way by which i can again make it free?
_______________________________
market samurai ~ marketsamurai ~ marketsamurai.com
Post Reply