GPRS 拨号 CDMA 终端 电话 connect

时间:2012-05-03 10:53:23
【文件属性】:

文件名称:GPRS 拨号 CDMA 终端 电话 connect

文件大小:718B

文件格式:CPP

更新时间:2012-05-03 10:53:23

GPRS 拨号 CDMA 终端 电话

LRESULT GPRSDial() { DWORD dwStatus = 0; 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; if(ConnMgrEstablishConnectionSync(&sConInfo, &hConnection, 10000, &dwStatus) != S_OK) // if(ConnMgrEstablishConnection(&sConInfo, &hConnection) != S_OK) { return 0; } return 1; }


网友评论