ICoreWebView2ProcessFailedEventArgs2

Undocumented in source.

Members

Functions

get_ExitCode
HRESULT get_ExitCode(int* exitCode)

The exit code of the failing process, for telemetry purposes. The exit code is always STILL_ACTIVE (259) when ProcessFailedKind is COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE.

get_FrameInfosForFailedProcess
HRESULT get_FrameInfosForFailedProcess(ICoreWebView2FrameInfoCollection* frames)

The collection of FrameInfos for frames in the ICoreWebView2 that were being rendered by the failed process. The content in these frames is replaced with an error page. This is only available when ProcessFailedKind is COREWEBVIEW2_PROCESS_FAILED_KIND_FRAME_RENDER_PROCESS_EXITED; frames is null for all other process failure kinds, including the case in which the failed process was the renderer for the main frame and subframes within it, for which the failure kind is COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_EXITED.

get_ProcessDescription
HRESULT get_ProcessDescription(LPWSTR* processDescription)

Description of the process assigned by the WebView2 Runtime. This is a technical English term appropriate for logging or development purposes, and not localized for the end user. It applies to utility processes (for example, "Audio Service", "Video Capture") and plugin processes (for example, "Flash"). The returned processDescription is empty if the WebView2 Runtime did not assign a description to the process.

get_Reason
HRESULT get_Reason(COREWEBVIEW2_PROCESS_FAILED_REASON* reason)

The reason for the process failure. Some of the reasons are only applicable to specific values of ICoreWebView2ProcessFailedEventArgs::ProcessFailedKind, and the following ProcessFailedKind values always return the indicated reason value:

Inherited Members

From ICoreWebView2ProcessFailedEventArgs

get_ProcessFailedKind
HRESULT get_ProcessFailedKind(COREWEBVIEW2_PROCESS_FAILED_KIND* processFailedKind)

The kind of process failure that has occurred. This is a combination of process kind (for example, browser, renderer, gpu) and failure (exit, unresponsiveness). Renderer processes are further divided in main frame_ renderer (RenderProcessExited, RenderProcessUnresponsive) and _subframe_ renderer (FrameRenderProcessExited). To learn about the conditions under which each failure kind occurs, see COREWEBVIEW2_PROCESS_FAILED_KIND.

Meta