The ISmsClient2::SetProxy method, in Configuration Manager, sets proxy information for a URL.

[IDL]
HRESULT SetProxy(
	BSTR bstrProtocol,
	BSTR bstrProxy,
	BSTR bstrProxyBypass,
	BOOL bAuthFlag,
	BSTR bstrDomain,
	BSTR bstrAccount,
	BSTR bstrPassword
);

Parameters

bstrProtocol


Data type: BSTRQualifiers: [in]URL for which to retrieve proxy information.
bstrProxy


Data type: BSTRQualifiers: [in]Proxy information.
bstrProxyBypass


Data type: BSTRQualifiers: [in]Bypass proxy information.
bAuthFlag


Data type: BOOLQualifiers: [in]true if authentication is required.
bstrDomain


Data type: BSTRQualifiers: [in]The domain for the proxy.
bstrAccount


Data type: BSTRQualifiers: [in]Account to authenticate to the proxy.
bstrPassword


Data type: BSTRQualifiers: [in]Account password.

Return Value

An HRESULT code. Possible values include, but are not limited to, the following:

S_OK


The method succeeded.

Requirements

smsclient.dll

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.