IWebProxy::PromptForCredentialsFromHwnd method (wuapi.h)

Prompts the user for a password to use for proxy authentication using the hWnd property of the parent window.

Syntax

HRESULT PromptForCredentialsFromHwnd(
  [in] HWND parentWindow,
  [in] BSTR title
);

Parameters

[in] parentWindow

The parent window of the dialog box in which the user enters the credentials.

[in] title

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

Requirement Value
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]
Target Platform Windows
Header wuapi.h
Library Wuguid.lib
DLL Wuapi.dll

See also

IWebProxy