ICoreWebView2BasicAuthenticationRequestedEventArgs
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からインデックス指定でCOMメソッドを呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT get_Uri(LPWSTR* value)
| value | LPWSTR* | out | Basic 認証が要求された URI を受け取る文字列ポインタである。 |
vtbl 4 HRESULT get_Challenge(LPWSTR* challenge)
| challenge | LPWSTR* | out | サーバから返された認証チャレンジ文字列を受け取るポインタである。 |
vtbl 5 HRESULT get_Response(ICoreWebView2BasicAuthenticationResponse** response)
| response | ICoreWebView2BasicAuthenticationResponse** | out | ユーザー名やパスワードを設定する ICoreWebView2BasicAuthenticationResponse オブジェクトを受け取るポインタである。 |
vtbl 6 HRESULT get_Cancel(BOOL* cancel)
| cancel | BOOL* | out | 認証要求をキャンセルするかどうかを受け取る BOOL へのポインタである。 |
vtbl 7 HRESULT put_Cancel(BOOL cancel)
| cancel | BOOL | in | 認証要求をキャンセルするかどうかを指定する。TRUE で認証を中止する。 |
vtbl 8 HRESULT GetDeferral(ICoreWebView2Deferral** deferral)
| deferral | ICoreWebView2Deferral** | 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 指定が可能。#define global IID_ICoreWebView2BasicAuthenticationRequestedEventArgs "{EF05516F-D897-4F9E-B672-D8E2307A3FB0}" #usecom global ICoreWebView2BasicAuthenticationRequestedEventArgs IID_ICoreWebView2BasicAuthenticationRequestedEventArgs "{}" #comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_get_Uri 3 sptr #comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_get_Challenge 4 sptr #comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_get_Response 5 sptr #comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_get_Cancel 6 sptr #comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_put_Cancel 7 int #comfunc global ICoreWebView2BasicAuthenticationRequestedEventArgs_GetDeferral 8 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。