none
请在如何在Window Mobile 2003中通过代码来设置GPRS接入点(如CMWAP或CMNet) RRS feed

答案

  • HANDLE hConection;
    DWORD dwStatus;
    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_DestNetWAP;//IID_DestNetInternet

    ConnMgrEstablishConnectionSync(&sConInfo, &hConnection, 10000, &dwStatus);

    2007年8月7日 9:12