IWebProxy::P romptForCredentials 方法 (wuapi.h)

提示使用者輸入密碼以用於 Proxy 驗證。

語法

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

參數

[in] parentWindow

使用者在其中輸入認證的對話框父視窗。

[in] title

要用於使用者輸入認證的對話框標題。

傳回值

如果成功 則傳回S_OK。 否則,會傳回 COM 或 Windows 錯誤碼。

備註

這個方法只能由計算機上的用戶變更。 這個方法可以透過 IDispatch 介面來存取。

例如,如果父視窗指定 null (,如果您在 Visual Basic) 中指定 Nothing,則對話框會顯示在桌面上。

規格需求

需求
最低支援的用戶端 Windows XP、Windows 2000 Professional 與 SP3 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003、具有 SP3 的 Windows 2000 Server [僅限傳統型應用程式]
目標平台 Windows
標頭 wuapi.h
程式庫 Wuguid.lib
Dll Wuapi.dll

另請參閱

IWebProxy