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

ICoreWebView2BasicAuthenticationResponse

COM
IID07023f7d-2d77-4d67-9040-6e7d428c6a40継承元IUnknown自前メソッド開始 vtbl3

メソッド 4

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

vtbl 3 HRESULT get_UserName(LPWSTR* userName)
userNameLPWSTR*out認証に使用するユーザー名を受け取る文字列ポインタである。
vtbl 4 HRESULT put_UserName(LPWSTR userName)
userNameLPWSTRin認証に使用するユーザー名を指定する。
vtbl 5 HRESULT get_Password(LPWSTR* password)
passwordLPWSTR*out認証に使用するパスワードを受け取る文字列ポインタである。
vtbl 6 HRESULT put_Password(LPWSTR password)
passwordLPWSTRin認証に使用するパスワードを指定する。

HSP用 COM定義

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

出力引数:
#define global IID_ICoreWebView2BasicAuthenticationResponse "{07023F7D-2D77-4D67-9040-6E7D428C6A40}"
#usecom global ICoreWebView2BasicAuthenticationResponse IID_ICoreWebView2BasicAuthenticationResponse "{}"
#comfunc global ICoreWebView2BasicAuthenticationResponse_get_UserName  3 var
#comfunc global ICoreWebView2BasicAuthenticationResponse_put_UserName  4 wstr
#comfunc global ICoreWebView2BasicAuthenticationResponse_get_Password  5 var
#comfunc global ICoreWebView2BasicAuthenticationResponse_put_Password  6 wstr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。