ICoreWebView2ClientCertificate
COMメソッド 9
vtbl = vtable インデックス(0始まり)。HSP等からインデックス指定でCOMメソッドを呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT get_Subject(LPWSTR* value)
| value | LPWSTR* | out | クライアント証明書のサブジェクト(対象者)を受け取る文字列ポインタである。 |
vtbl 4 HRESULT get_Issuer(LPWSTR* value)
| value | LPWSTR* | out | クライアント証明書の発行者を受け取る文字列ポインタである。 |
vtbl 5 HRESULT get_ValidFrom(DOUBLE* value)
| value | DOUBLE* | out | 証明書の有効期間の開始日時を、1970 年からの経過秒数(DOUBLE)として受け取るポインタである。 |
vtbl 6 HRESULT get_ValidTo(DOUBLE* value)
| value | DOUBLE* | out | 証明書の有効期間の終了日時を、1970 年からの経過秒数(DOUBLE)として受け取るポインタである。 |
vtbl 7 HRESULT get_DerEncodedSerialNumber(LPWSTR* value)
| value | LPWSTR* | out | DER エンコードされた証明書のシリアル番号(Base64 文字列)を受け取るポインタである。 |
vtbl 8 HRESULT get_DisplayName(LPWSTR* value)
| value | LPWSTR* | out | クライアント証明書の表示名を受け取る文字列ポインタである。 |
vtbl 9 HRESULT ToPemEncoding(LPWSTR* pemEncodedData)
| pemEncodedData | LPWSTR* | out | PEM 形式にエンコードされた証明書データを受け取る文字列ポインタである。 |
vtbl 10 HRESULT get_PemEncodedIssuerCertificateChain(ICoreWebView2StringCollection** value)
| value | ICoreWebView2StringCollection** | out | PEM 形式でエンコードされた発行者証明書チェーンを保持する ICoreWebView2StringCollection を受け取るポインタである。 |
vtbl 11 HRESULT get_Kind(COREWEBVIEW2_CLIENT_CERTIFICATE_KIND* value)
| value | COREWEBVIEW2_CLIENT_CERTIFICATE_KIND* | out | 証明書の種類(スマートカード、PIN 等)を示す COREWEBVIEW2_CLIENT_CERTIFICATE_KIND 値を受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。WebView2 のインターフェースは環境/ローダ経由で取得するため #usecom 末尾は "{}"。
出力引数:
#define global IID_ICoreWebView2ClientCertificate "{E7188076-BCC3-11EB-8529-0242AC130003}" #usecom global ICoreWebView2ClientCertificate IID_ICoreWebView2ClientCertificate "{}" #comfunc global ICoreWebView2ClientCertificate_get_Subject 3 var #comfunc global ICoreWebView2ClientCertificate_get_Issuer 4 var #comfunc global ICoreWebView2ClientCertificate_get_ValidFrom 5 var #comfunc global ICoreWebView2ClientCertificate_get_ValidTo 6 var #comfunc global ICoreWebView2ClientCertificate_get_DerEncodedSerialNumber 7 var #comfunc global ICoreWebView2ClientCertificate_get_DisplayName 8 var #comfunc global ICoreWebView2ClientCertificate_ToPemEncoding 9 var #comfunc global ICoreWebView2ClientCertificate_get_PemEncodedIssuerCertificateChain 10 sptr #comfunc global ICoreWebView2ClientCertificate_get_Kind 11 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ICoreWebView2ClientCertificate "{E7188076-BCC3-11EB-8529-0242AC130003}" #usecom global ICoreWebView2ClientCertificate IID_ICoreWebView2ClientCertificate "{}" #comfunc global ICoreWebView2ClientCertificate_get_Subject 3 sptr #comfunc global ICoreWebView2ClientCertificate_get_Issuer 4 sptr #comfunc global ICoreWebView2ClientCertificate_get_ValidFrom 5 sptr #comfunc global ICoreWebView2ClientCertificate_get_ValidTo 6 sptr #comfunc global ICoreWebView2ClientCertificate_get_DerEncodedSerialNumber 7 sptr #comfunc global ICoreWebView2ClientCertificate_get_DisplayName 8 sptr #comfunc global ICoreWebView2ClientCertificate_ToPemEncoding 9 sptr #comfunc global ICoreWebView2ClientCertificate_get_PemEncodedIssuerCertificateChain 10 sptr #comfunc global ICoreWebView2ClientCertificate_get_Kind 11 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。