Trait webview2_sys::ICoreWebView2ProcessFailedEventArgs2 [−][src]
pub trait ICoreWebView2ProcessFailedEventArgs2: ICoreWebView2ProcessFailedEventArgs {
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
unsafe fn get_reason(&self, reason: *mut ProcessFailedReason) -> HRESULT
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.
unsafe fn get_exit_code(&self, exit_code: *mut i32) -> HRESULT
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
.
unsafe fn get_process_description(
&self,
process_description: *mut LPWSTR
) -> HRESULT
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.
unsafe fn get_frame_infos_for_failed_process(
&self,
frames: *mut *mut *mut ICoreWebView2FrameInfoCollectionVTable
) -> HRESULT
unsafe fn get_frame_infos_for_failed_process(
&self,
frames: *mut *mut *mut ICoreWebView2FrameInfoCollectionVTable
) -> HRESULT
The collection of FrameInfo
s 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
A COM compatible V-Table
type Super = dyn ICoreWebView2ProcessFailedEventArgs
type Super = dyn ICoreWebView2ProcessFailedEventArgs
The interface that this interface inherits from
Check whether a given IID is in the inheritance hierarchy of this interface