WebView2 日本語リファレンス
WebView2インターフェース › ICoreWebView2BasicAuthenticationRequestedEventArgs

ICoreWebView2BasicAuthenticationRequestedEventArgs

COM
IIDef05516f-d897-4f9e-b672-d8e2307a3fb0継承元IUnknown自前メソッド開始 vtbl3

メソッド 6

vtbl = vtable インデックス(0始まり)。HSP等からインデックス指定でCOMメソッドを呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT get_Uri(LPWSTR* value)
valueLPWSTR*outBasic 認証が要求された URI を受け取る文字列ポインタである。
vtbl 4 HRESULT get_Challenge(LPWSTR* challenge)
challengeLPWSTR*outサーバから返された認証チャレンジ文字列を受け取るポインタである。
vtbl 5 HRESULT get_Response(ICoreWebView2BasicAuthenticationResponse** response)
responseICoreWebView2BasicAuthenticationResponse**outユーザー名やパスワードを設定する ICoreWebView2BasicAuthenticationResponse オブジェクトを受け取るポインタである。
vtbl 6 HRESULT get_Cancel(BOOL* cancel)
cancelBOOL*out認証要求をキャンセルするかどうかを受け取る BOOL へのポインタである。
vtbl 7 HRESULT put_Cancel(BOOL cancel)
cancelBOOLin認証要求をキャンセルするかどうかを指定する。TRUE で認証を中止する。
vtbl 8 HRESULT GetDeferral(ICoreWebView2Deferral** deferral)
deferralICoreWebView2Deferral**outイベントの応答を非同期に延期するための ICoreWebView2Deferral オブジェクトを受け取るポインタである。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。WebView2 のインターフェースは環境/ローダ経由で取得するため #usecom 末尾は "{}"

出力引数:
#define global IID_ICoreWebView2BasicAuthenticationRequestedEventArgs "{EF05516F-D897-4F9E-B672-D8E2307A3FB0}"
#usecom global ICoreWebView2BasicAuthenticationRequestedEventArgs IID_ICoreWebView2BasicAuthenticationRequestedEventArgs "{}"
#comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_get_Uri        3 var
#comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_get_Challenge  4 var
#comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_get_Response   5 sptr
#comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_get_Cancel     6 var
#comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_put_Cancel     7 int
#comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_GetDeferral    8 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。