HINTERNET InternetOpen(
  __in          LPCTSTR lpszAgent,
  __in          DWORD dwAccessType,----------------------------2
  __in          LPCTSTR lpszProxyName,-------------------------3
  __in          LPCTSTR lpszProxyBypass,-----------------------4
  __in          DWORD dwFlags
);
如上,第2个参数我选择INTERNET_OPEN_TYPE_PROXY,
第3个我填的是“SOCKS=XX.XX.XX.XX:PORT”,
第4个我该怎么填,我不知道第4个参数是什么意思。麻烦各位朋友帮忙解释一下,要汉语的,MSDN上的我没看明白。

解决方案 »

  1.   

    lpszProxyBypass [in] 
    Pointer to a null-terminated string that specifies an optional list of host names or IP addresses, or both, that should not be routed through the proxy when dwAccessType is set to INTERNET_OPEN_TYPE_PROXY. The list can contain wildcards. Do not use an empty string, because InternetOpen will use it as the proxy bypass list. If this parameter specifies the "<local>" macro as the only entry, the function bypasses any host name that does not contain a period. If dwAccessType is not set to INTERNET_OPEN_TYPE_PROXY, this parameter is ignored and should be NULL.字符串,指明了一份非强制的域名或IP地址列表,如果dwAccessType设置为INTERNET_OPEN_TYPE_PROXY,则无需经过代理路由,列表可以包含通配符。不要使用空的字符串.....如果dwAccessType不为INTERNET_OPEN_TYPE_PROXY,则本参数将会被忽略,可以设置为NULL.
      

  2.   

    “指明的一份非强制的域名或IP地址列表”有什么用呢?我想知道这个参数有什么用。
    另外这个API是不是不支持socks5协议?还有这个API是不是跟IE有关?
    可恶的微软!
      

  3.   

    http://www.tctl.com.cn/accp/1533/1535/281515.html
    这个帖子说不支持socks5。