ICoreWebView2Environment9

Undocumented in source.
version(Windows && inline_webview2_bindings && all)
interface ICoreWebView2Environment9 : ICoreWebView2Environment8 {
static const
GUID iid;
}

Members

Functions

CreateContextMenuItem
HRESULT CreateContextMenuItem(LPCWSTR label, IStream* iconStream, COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND kind, ICoreWebView2ContextMenuItem* item)

Create a custom ContextMenuItem object to insert into the WebView context menu. CoreWebView2 will rewind the icon stream before decoding. There is a limit of 1000 active custom context menu items at a given time. Attempting to create more before deleting existing ones will fail with ERROR_NOT_ENOUGH_QUOTA. It is recommended to reuse ContextMenuItems across ContextMenuRequested events for performance. The returned ContextMenuItem object's IsEnabled property will default to TRUE and IsChecked property will default to FALSE. A CommandId will be assigned to the ContextMenuItem object that's unique across active custom context menu items, but command ID values of deleted ContextMenuItems can be reassigned.

Inherited Members

From ICoreWebView2Environment8

add_ProcessInfosChanged
HRESULT add_ProcessInfosChanged(ICoreWebView2ProcessInfosChangedEventHandler eventHandler, EventRegistrationToken* token)

Adds an event handler for the ProcessInfosChanged event.

remove_ProcessInfosChanged
HRESULT remove_ProcessInfosChanged(EventRegistrationToken token)

Remove an event handler previously added with add_ProcessInfosChanged.

GetProcessInfos
HRESULT GetProcessInfos(ICoreWebView2ProcessInfoCollection* value)

Returns the ICoreWebView2ProcessInfoCollection Provide a list of all process using same user data folder except for crashpad process.

Meta