Partilhar via


ISmsClient2::SetProxy Method

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

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: BSTR

    Qualifiers: [in]

    URL for which to retrieve proxy information.

  • bstrProxy
    Data type: BSTR

    Qualifiers: [in]

    Proxy information.

  • bstrProxyBypass
    Data type: BSTR

    Qualifiers: [in]

    Bypass proxy information.

  • bAuthFlag
    Data type: BOOL

    Qualifiers: [in]

    true if authentication is required.

  • bstrDomain
    Data type: BSTR

    Qualifiers: [in]

    The domain for the proxy.

  • bstrAccount
    Data type: BSTR

    Qualifiers: [in]

    Account to authenticate to the proxy.

  • bstrPassword
    Data type: BSTR

    Qualifiers: [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

For more information, see Configuration Manager Client Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Client Development Requirements.

See Also

Concepts

ISmsClient2 Client COM Automation Interface
Configuration Manager Client Configuration