ICoreWebView2Cookie
COMメソッド 14
vtbl = vtable インデックス(0始まり)。HSP等からインデックス指定でCOMメソッドを呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT get_Name(LPWSTR* name)
| name | LPWSTR* | out | Cookie の名前を受け取る LPWSTR へのポインタである。呼び出し側が CoTaskMemFree で解放する。 |
vtbl 4 HRESULT get_Value(LPWSTR* value)
| value | LPWSTR* | out | Cookie の値を受け取る LPWSTR へのポインタである。呼び出し側が CoTaskMemFree で解放する。 |
vtbl 5 HRESULT put_Value(LPWSTR value)
| value | LPWSTR | in | Cookie に設定する値を指定する LPWSTR である。 |
vtbl 6 HRESULT get_Domain(LPWSTR* domain)
| domain | LPWSTR* | out | Cookie のドメインを受け取る LPWSTR へのポインタである。呼び出し側が CoTaskMemFree で解放する。 |
vtbl 7 HRESULT get_Path(LPWSTR* path)
| path | LPWSTR* | out | Cookie のパスを受け取る LPWSTR へのポインタである。呼び出し側が CoTaskMemFree で解放する。 |
vtbl 8 HRESULT get_Expires(DOUBLE* expires)
| expires | DOUBLE* | out | Cookie の有効期限を UNIX エポックからの秒数で受け取る DOUBLE へのポインタである。 |
vtbl 9 HRESULT put_Expires(DOUBLE expires)
| expires | DOUBLE | in | Cookie の有効期限を UNIX エポックからの秒数で指定する DOUBLE である。 |
vtbl 10 HRESULT get_IsHttpOnly(BOOL* isHttpOnly)
| isHttpOnly | BOOL* | out | Cookie が HttpOnly 属性を持つか否かを受け取る BOOL へのポインタである。 |
vtbl 11 HRESULT put_IsHttpOnly(BOOL isHttpOnly)
| isHttpOnly | BOOL | in | Cookie に HttpOnly 属性を設定するか否かを指定する BOOL である。 |
vtbl 12 HRESULT get_SameSite(COREWEBVIEW2_COOKIE_SAME_SITE_KIND* sameSite)
| sameSite | COREWEBVIEW2_COOKIE_SAME_SITE_KIND* | out | Cookie の SameSite 属性の種別を受け取る COREWEBVIEW2_COOKIE_SAME_SITE_KIND へのポインタである。 |
vtbl 13 HRESULT put_SameSite(COREWEBVIEW2_COOKIE_SAME_SITE_KIND sameSite)
| sameSite | COREWEBVIEW2_COOKIE_SAME_SITE_KIND | in | Cookie に設定する SameSite 属性の種別を指定する COREWEBVIEW2_COOKIE_SAME_SITE_KIND である。 |
vtbl 14 HRESULT get_IsSecure(BOOL* isSecure)
| isSecure | BOOL* | out | Cookie が Secure 属性を持つか否かを受け取る BOOL へのポインタである。 |
vtbl 15 HRESULT put_IsSecure(BOOL isSecure)
| isSecure | BOOL | in | Cookie に Secure 属性を設定するか否かを指定する BOOL である。 |
vtbl 16 HRESULT get_IsSession(BOOL* isSession)
| isSession | BOOL* | out | Cookie がセッション Cookie(有効期限なし)であるか否かを受け取る BOOL へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。WebView2 のインターフェースは環境/ローダ経由で取得するため #usecom 末尾は "{}"。
出力引数:
#define global IID_ICoreWebView2Cookie "{AD26D6BE-1486-43E6-BF87-A2034006CA21}" #usecom global ICoreWebView2Cookie IID_ICoreWebView2Cookie "{}" #comfunc global ICoreWebView2Cookie_get_Name 3 var #comfunc global ICoreWebView2Cookie_get_Value 4 var #comfunc global ICoreWebView2Cookie_put_Value 5 wstr #comfunc global ICoreWebView2Cookie_get_Domain 6 var #comfunc global ICoreWebView2Cookie_get_Path 7 var #comfunc global ICoreWebView2Cookie_get_Expires 8 var #comfunc global ICoreWebView2Cookie_put_Expires 9 double #comfunc global ICoreWebView2Cookie_get_IsHttpOnly 10 var #comfunc global ICoreWebView2Cookie_put_IsHttpOnly 11 int #comfunc global ICoreWebView2Cookie_get_SameSite 12 var #comfunc global ICoreWebView2Cookie_put_SameSite 13 int #comfunc global ICoreWebView2Cookie_get_IsSecure 14 var #comfunc global ICoreWebView2Cookie_put_IsSecure 15 int #comfunc global ICoreWebView2Cookie_get_IsSession 16 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_ICoreWebView2Cookie "{AD26D6BE-1486-43E6-BF87-A2034006CA21}" #usecom global ICoreWebView2Cookie IID_ICoreWebView2Cookie "{}" #comfunc global ICoreWebView2Cookie_get_Name 3 sptr #comfunc global ICoreWebView2Cookie_get_Value 4 sptr #comfunc global ICoreWebView2Cookie_put_Value 5 wstr #comfunc global ICoreWebView2Cookie_get_Domain 6 sptr #comfunc global ICoreWebView2Cookie_get_Path 7 sptr #comfunc global ICoreWebView2Cookie_get_Expires 8 sptr #comfunc global ICoreWebView2Cookie_put_Expires 9 double #comfunc global ICoreWebView2Cookie_get_IsHttpOnly 10 sptr #comfunc global ICoreWebView2Cookie_put_IsHttpOnly 11 int #comfunc global ICoreWebView2Cookie_get_SameSite 12 sptr #comfunc global ICoreWebView2Cookie_put_SameSite 13 int #comfunc global ICoreWebView2Cookie_get_IsSecure 14 sptr #comfunc global ICoreWebView2Cookie_put_IsSecure 15 int #comfunc global ICoreWebView2Cookie_get_IsSession 16 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。