ICoreWebView2Certificate
COMメソッド 8
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 を受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。WebView2 のインターフェースは環境/ローダ経由で取得するため #usecom 末尾は "{}"。
出力引数:
#define global IID_ICoreWebView2Certificate "{C5FB2FCE-1CAC-4AEE-9C79-5ED0362EAAE0}" #usecom global ICoreWebView2Certificate IID_ICoreWebView2Certificate "{}" #comfunc global ICoreWebView2Certificate_get_Subject 3 var #comfunc global ICoreWebView2Certificate_get_Issuer 4 var #comfunc global ICoreWebView2Certificate_get_ValidFrom 5 var #comfunc global ICoreWebView2Certificate_get_ValidTo 6 var #comfunc global ICoreWebView2Certificate_get_DerEncodedSerialNumber 7 var #comfunc global ICoreWebView2Certificate_get_DisplayName 8 var #comfunc global ICoreWebView2Certificate_ToPemEncoding 9 var #comfunc global ICoreWebView2Certificate_get_PemEncodedIssuerCertificateChain 10 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ICoreWebView2Certificate "{C5FB2FCE-1CAC-4AEE-9C79-5ED0362EAAE0}" #usecom global ICoreWebView2Certificate IID_ICoreWebView2Certificate "{}" #comfunc global ICoreWebView2Certificate_get_Subject 3 sptr #comfunc global ICoreWebView2Certificate_get_Issuer 4 sptr #comfunc global ICoreWebView2Certificate_get_ValidFrom 5 sptr #comfunc global ICoreWebView2Certificate_get_ValidTo 6 sptr #comfunc global ICoreWebView2Certificate_get_DerEncodedSerialNumber 7 sptr #comfunc global ICoreWebView2Certificate_get_DisplayName 8 sptr #comfunc global ICoreWebView2Certificate_ToPemEncoding 9 sptr #comfunc global ICoreWebView2Certificate_get_PemEncodedIssuerCertificateChain 10 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。