ICoreWebView2_3
COMメソッド 5
vtbl = vtable インデックス(0始まり)。HSP等からインデックス指定でCOMメソッドを呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 68 HRESULT TrySuspend(ICoreWebView2TrySuspendCompletedHandler* handler)
| handler | ICoreWebView2TrySuspendCompletedHandler* | in | サスペンド試行の完了結果を受け取る完了ハンドラへのポインタである。 |
vtbl 69 HRESULT Resume( void)
| void | in | 引数はない。 |
vtbl 70 HRESULT get_IsSuspended(BOOL* isSuspended)
| isSuspended | BOOL* | out | WebView が現在サスペンド状態かどうかを示す真偽値を受け取るポインタである。 |
vtbl 71 HRESULT SetVirtualHostNameToFolderMapping(LPWSTR hostName, LPWSTR folderPath, COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND accessKind)
| hostName | LPWSTR | in | ローカルフォルダにマッピングする仮想ホスト名を指定する。 |
| folderPath | LPWSTR | in | 仮想ホスト名に対応付けるローカルフォルダのパスを指定する。 |
| accessKind | COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND | in | マッピングしたリソースへのアクセス種別を示す COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND 値を指定する。 |
vtbl 72 HRESULT ClearVirtualHostNameToFolderMapping(LPWSTR hostName)
| hostName | LPWSTR | in | マッピングを解除する仮想ホスト名を指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。WebView2 のインターフェースは環境/ローダ経由で取得するため #usecom 末尾は "{}"。
出力引数:
#define global IID_ICoreWebView2_3 "{A0D6DF20-3B92-416D-AA0C-437A9C727857}" #usecom global ICoreWebView2_3 IID_ICoreWebView2_3 "{}" #comfunc global ICoreWebView2_3_TrySuspend 68 sptr #comfunc global ICoreWebView2_3_Resume 69 int #comfunc global ICoreWebView2_3_get_IsSuspended 70 var #comfunc global ICoreWebView2_3_SetVirtualHostNameToFolderMapping 71 wstr,wstr,int #comfunc global ICoreWebView2_3_ClearVirtualHostNameToFolderMapping 72 wstr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ICoreWebView2_3 "{A0D6DF20-3B92-416D-AA0C-437A9C727857}" #usecom global ICoreWebView2_3 IID_ICoreWebView2_3 "{}" #comfunc global ICoreWebView2_3_TrySuspend 68 sptr #comfunc global ICoreWebView2_3_Resume 69 int #comfunc global ICoreWebView2_3_get_IsSuspended 70 sptr #comfunc global ICoreWebView2_3_SetVirtualHostNameToFolderMapping 71 wstr,wstr,int #comfunc global ICoreWebView2_3_ClearVirtualHostNameToFolderMapping 72 wstr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
関連項目
バージョン違い・関連インターフェース
- i ICoreWebView2
- i ICoreWebView2_2
- i ICoreWebView2_4
- i ICoreWebView2_5
- i ICoreWebView2_6
- i ICoreWebView2_7
- i ICoreWebView2_8
- i ICoreWebView2_9
- i ICoreWebView2_10
- i ICoreWebView2_11
- i ICoreWebView2_12
- i ICoreWebView2_13
- i ICoreWebView2_14
- i ICoreWebView2_15
- i ICoreWebView2_16
- i ICoreWebView2_17
- i ICoreWebView2_18
- i ICoreWebView2_19
- i ICoreWebView2_20
- i ICoreWebView2_21
- i ICoreWebView2_22
- i ICoreWebView2_23
- i ICoreWebView2_24
- i ICoreWebView2_25
- i ICoreWebView2_26
- i ICoreWebView2_27
- i ICoreWebView2_28
- i ICoreWebView2_29