WebBrowser和IE共同使用代理

user urlmon,wininet; 
procedure qiehuanproxy(const proxyname:string); 
var info:TInternetProxyInfo; 
 lngth:integer; 
 h:integer; 
 proxy :pChar; 
 bypass :PChar; 
 begin 
 proxy:=pchar(proxyname);//proxy address:port 
 bypass:=pChar(''); 
 info.dwAccessType := INTERNET_OPEN_TYPE_PROXY  ; 
 info.lpszProxy :=proxy; 
 info.lpszProxyBypass:=bypass; 
 lngth:=sizeof(info); 
  h:=UrlMkSetSessionOption(INTERNET_OPTION_PROXY ,@info,lngth,0); 
end; 
Posted in Web开发 by 傻猫 at January 28, 2010.
Tags: none

添加新评论