Partager via


IWebProxy::PromptForCredentials method

Prompts the user for the password to use for proxy authentication.

Syntax

HRESULT PromptForCredentials(
  [in] IUnknown *parentWindow,
  [in] BSTR     title
);

Parameters

  • parentWindow [in]
    The parent window of the dialog box in which the user enters the credentials.

  • title [in]
    The title to use for the dialog box in which the user enters the credentials.

Return value

Returns S_OK if successful. Otherwise, returns a COM or Windows error code.

Remarks

This method can be changed only by a user on the computer. This method can be accessed through the IDispatch interface.

If null is specified for the parent window (for example, if you specified Nothing in Visual Basic), the dialog box is displayed on the desktop.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional with SP3 [desktop apps only]

Minimum supported server

Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]

Header

Wuapi.h

IDL

Wuapi.idl

Library

Wuguid.lib

DLL

Wuapi.dll

See also

IWebProxy