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