ICoreWebView2BasicAuthenticationResponse
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からインデックス指定でCOMメソッドを呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT get_UserName(LPWSTR* userName)
| userName | LPWSTR* | out | 認証に使用するユーザー名を受け取る文字列ポインタである。 |
vtbl 4 HRESULT put_UserName(LPWSTR userName)
| userName | LPWSTR | in | 認証に使用するユーザー名を指定する。 |
vtbl 5 HRESULT get_Password(LPWSTR* password)
| password | LPWSTR* | out | 認証に使用するパスワードを受け取る文字列ポインタである。 |
vtbl 6 HRESULT put_Password(LPWSTR password)
| password | LPWSTR | in | 認証に使用するパスワードを指定する。 |
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 方式にも切替可。#define global IID_ICoreWebView2BasicAuthenticationResponse "{07023F7D-2D77-4D67-9040-6E7D428C6A40}" #usecom global ICoreWebView2BasicAuthenticationResponse IID_ICoreWebView2BasicAuthenticationResponse "{}" #comfunc global ICoreWebView2BasicAuthenticationResponse_get_UserName 3 sptr #comfunc global ICoreWebView2BasicAuthenticationResponse_put_UserName 4 wstr #comfunc global ICoreWebView2BasicAuthenticationResponse_get_Password 5 sptr #comfunc global ICoreWebView2BasicAuthenticationResponse_put_Password 6 wstr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。