大家是怎样使PDA连接CMNET网络的?
我需要使我的PDA连接到cmnet网络,然后和服务器进行数据传递?我该怎么做呢?是要拨号的吧?
已经开通GPRS服务,但是没有连接.
[解决办法]
DWORD dwStatus = 0;
HANDLE hConnection;
CONNMGR_CONNECTIONINFO sConInfo;
memset(&sConInfo, 0 ,sizeof(CONNMGR_CONNECTIONINFO));
sConInfo.cbSize = sizeof(CONNMGR_CONNECTIONINFO);
sConInfo.dwParams = CONNMGR_PARAM_GUIDDESTNET;
sConInfo.dwPriority = CONNMGR_PRIORITY_USERINTERACTIVE;
sConInfo.dwFlags = CONNMGR_FLAG_PROXY_HTTP
|CONNMGR_FLAG_PROXY_WAP
|CONNMGR_FLAG_PROXY_SOCKS4
|CONNMGR_FLAG_PROXY_SOCKS5;
sConInfo.bExclusive = FALSE;
sConInfo.bDisabled = FALSE;
sConInfo.guidDestNet = IID_DestNetInternet;
ConnMgrEstablishConnectionSync(&sConInfo, &hConnection, 10000, &dwStatus);