Sets a proxy server to use. By default, the proxy or direct configuration from the registry (the user Inetnet settings in control panel) will be used.
If you don't use the pre-defined downloading wizard page, please call the procedure in the InitializeWizard event function.
If you use the pre-defined downloading wizard page, please call the procedure after calling DwinsHs_InitializeWizard procedure in the InitializeWizard event function. Or call it in the BeforeDownload callback function specified by the BeforeDownload parameter of the DwinsHs_CurPageChanged procedure.
type
TProxyMode = (pmDefault, pmDirect, pmProxy);
TProxyProtocol = (ppHttp, ppSocks);
procedure DwinsHs_SetProxy(Mode: TProxyMode; Protocol: TProxyProtocol; Host: AnsiString;
Port: Integer; Username, Password: AnsiString);
Specifies whether to use a proxy, one of the following values can be used:
Specifies the protocol type of proxy server, one of the following values can be used:
Specifies the host name of proxy server, both domain and IP address can be used.
Specifies the port of proxy server.
Specifies a user name to access the proxy server, if the user name or authentification is not required, please set it to an empty string.
Specifies the password to access the proxy server, if the psaaword isn't required, please set it to an empty string.
procedure InitializeWizard();
begin
...
DwinsHs_InitializeWizard(wpPreparing);
DwinsHs_SetProxy(pmProxy, ppHttp, 'www.example_proxy.com', 8080, '', '');
...
end;
Copyright © 2001-2022, Han-soft Corporation. All rights reserved.