Compartilhar via


CoreWebView2ProcessFailedEventArgs Class

Definition

Event args for the ProcessFailed event.

public class CoreWebView2ProcessFailedEventArgs
public class CoreWebView2ProcessFailedEventArgs : EventArgs
type CoreWebView2ProcessFailedEventArgs = class
type CoreWebView2ProcessFailedEventArgs = class
    inherit EventArgs
Public Class CoreWebView2ProcessFailedEventArgs
Public Class CoreWebView2ProcessFailedEventArgs
Inherits EventArgs
Inheritance
CoreWebView2ProcessFailedEventArgs
Inheritance
CoreWebView2ProcessFailedEventArgs

Properties

ExitCode

Gets the exit code of the failing process, for telemetry purposes. The exit code is always STILL_ACTIVE(259) when @CoreWebView2ProcessFailedEventArgs.ProcessFailedKind is @CoreWebView2ProcessFailedKind$.RenderProcessUnresponsive.

FailureSourceModulePath

This property is the full path of the module that caused the crash in cases of Windows Code Integrity failures. Windows Code Integrity is a feature that verifies the integrity and authenticity of dynamic-link libraries (DLLs) on Windows systems. It ensures that only trusted code can run on the system and prevents unauthorized or malicious modifications. When ProcessFailed occurred due to a failed Code Integrity check, this property returns the full path of the file that was prevented from loading on the system. The webview2 process which tried to load the DLL will fail with exit code STATUS_INVALID_IMAGE_HASH(-1073740760). A file can fail integrity check for various reasons, such as: - It has an invalid or missing signature that does not match the publisher or signer of the file. - It has been tampered with or corrupted by malware or other software. - It has been blocked by an administrator or a security policy. This property always will be the empty string if failure is not caused by STATUS_INVALID_IMAGE_HASH.

FrameInfosForFailedProcess

Gets the collection of @CoreWebView2FrameInfo$s for frames in the @CoreWebView2 that were being rendered by the failed process. This is only available when @CoreWebView2ProcessFailedEventArgs.ProcessFailedKind is @CoreWebView2ProcessFailedKind$.FrameRenderProcessExited; the returned collection is empty 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 @CoreWebView2ProcessFailedKind$.RenderProcessExited.

ProcessDescription

Gets a description of the failing process, assigned by the WebView2 Runtime.

ProcessFailedKind

Gets the kind of process failure that has occurred.

Reason

Gets the reason for the process failure.

Applies to