如何取得Internet选项 -> 连接 -> 局域网设置 -> 代理服务器设置(100分)

  • 主题发起人 主题发起人 DelphiDeveloper
  • 开始时间 开始时间
D

DelphiDeveloper

Unregistered / Unconfirmed
GUEST, unregistred user!
IBackgroundCopyJob::GetProxySettings
Use the GetProxySettings method to retrieve the proxy information that the job uses to transfer the files.

HRESULT GetProxySettings(
BG_JOB_PROXY_USAGE* pProxyUsage,
LPWSTR* ppProxyList,
LPWSTR* ppProxyBypassList
);
Parameters
pProxyUsage
[out] Specifies the proxy settings the job uses to transfer the files. For a list of proxy options, see the BG_JOB_PROXY_USAGE enumeration type.
ppProxyList
[out] Space-delimited string that contains one or more proxies to use to transfer files. For details on the format of the string, see the Listing Proxy Servers section of Enabling Internet Functionality. Use the CoTaskMemFree function to free ppProxyList.
ppProxyBypassList
[out] Contains an optional list of host names or IP addresses, or both, that were not routed through the proxy. For details on the format of the string, see the Listing the Proxy Bypass section of Enabling Internet Functionality. Use the CoTaskMemFree function to free ppProxyBypassList.
 
To taozhiyu:
如何使用该函数,我在MSDN与Delphi中找不到
 
注册表
HKEY_CURRENT_USER / software/microsoft/windows/internet settings

你会看到ProxyServer
 
取注册表时,不同版本的WINDOWS系统会不同
 
后退
顶部