ICoreWebView2ProcessFailedEventArgs2

Trait ICoreWebView2ProcessFailedEventArgs2 

Source
pub trait ICoreWebView2ProcessFailedEventArgs2: ICoreWebView2ProcessFailedEventArgs {
    // Required methods
    unsafe fn get_reason(&self, reason: *mut ProcessFailedReason) -> HRESULT;
    unsafe fn get_exit_code(&self, exit_code: *mut i32) -> HRESULT;
    unsafe fn get_process_description(
        &self,
        process_description: *mut LPWSTR,
    ) -> HRESULT;
    unsafe fn get_frame_infos_for_failed_process(
        &self,
        frames: *mut *mut *mut ICoreWebView2FrameInfoCollectionVTable,
    ) -> HRESULT;
}
Expand description

A continuation of the ICoreWebView2ProcessFailedEventArgs interface.

Required Methods§

Source

unsafe fn get_reason(&self, reason: *mut ProcessFailedReason) -> HRESULT

The reason for the process failure. The reason is always COREWEBVIEW2_PROCESS_FAILED_REASON_UNEXPECTED when ProcessFailedKind is COREWEBVIEW2_PROCESS_FAILED_KIND_BROWSER_PROCESS_EXITED, and COREWEBVIEW2_PROCESS_FAILED_REASON_UNRESPONSIVE when ProcessFailedKind is COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE. For other process failure kinds, the reason may be any of the reason values.

Source

unsafe fn get_exit_code(&self, exit_code: *mut i32) -> HRESULT

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

Source

unsafe fn get_process_description( &self, process_description: *mut LPWSTR, ) -> HRESULT

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.

Source

unsafe fn get_frame_infos_for_failed_process( &self, frames: *mut *mut *mut ICoreWebView2FrameInfoCollectionVTable, ) -> HRESULT

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.

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2ProcessFailedEventArgs2

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_PROCESS_FAILED_EVENT_ARGS2

The associated id for this interface
Source§

type VTable = ICoreWebView2ProcessFailedEventArgs2VTable

A COM compatible V-Table
Source§

type Super = dyn ICoreWebView2ProcessFailedEventArgs

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &GUID) -> bool

Check whether a given IID is in the inheritance hierarchy of this interface
Source§

impl<C: ICoreWebView2ProcessFailedEventArgs2> ProductionComInterface<C> for dyn ICoreWebView2ProcessFailedEventArgs2

Source§

fn vtable<O: Offset>() -> Self::VTable

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

impl<T: ICoreWebView2ProcessFailedEventArgs2 + ComInterface + ?Sized> ICoreWebView2ProcessFailedEventArgs2 for ComPtr<T>

Source§

impl<T: ICoreWebView2ProcessFailedEventArgs2 + ComInterface + ?Sized> ICoreWebView2ProcessFailedEventArgs2 for ComRc<T>

Implementors§