pub trait ICoreWebView2DownloadStartingEventArgs: IUnknown {
// Required methods
unsafe fn get_download_operation(
&self,
download_operation: *mut *mut *mut ICoreWebView2DownloadOperationVTable,
) -> HRESULT;
unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT;
unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT;
unsafe fn get_result_file_path(
&self,
result_file_path: *mut LPWSTR,
) -> HRESULT;
unsafe fn put_result_file_path(&self, result_file_path: LPCWSTR) -> HRESULT;
unsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT;
unsafe fn put_handled(&self, handled: BOOL) -> HRESULT;
unsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable,
) -> HRESULT;
}Expand description
Event args for the DownloadStarting event.
Required Methods§
Sourceunsafe fn get_download_operation(
&self,
download_operation: *mut *mut *mut ICoreWebView2DownloadOperationVTable,
) -> HRESULT
unsafe fn get_download_operation( &self, download_operation: *mut *mut *mut ICoreWebView2DownloadOperationVTable, ) -> HRESULT
Returns the ICoreWebView2DownloadOperation for the download that
has started.
Sourceunsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT
unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT
The host may set this flag to cancel the download. If canceled, the
download save dialog is not displayed regardless of the
Handled property.
Sourceunsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT
unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT
Sets the Cancel property.
Sourceunsafe fn get_result_file_path(&self, result_file_path: *mut LPWSTR) -> HRESULT
unsafe fn get_result_file_path(&self, result_file_path: *mut LPWSTR) -> HRESULT
The path to the file. If setting the path, the host should ensure that it is an absolute path, including the file name, and that the path does not point to an existing file. If the path points to an existing file, the file will be overwritten. If the directory does not exist, it is created.
Sourceunsafe fn put_result_file_path(&self, result_file_path: LPCWSTR) -> HRESULT
unsafe fn put_result_file_path(&self, result_file_path: LPCWSTR) -> HRESULT
Sets the ResultFilePath property.
Sourceunsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT
unsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT
The host may set this flag to TRUE to hide the default download dialog
for this download. The download will progress as normal if it is not
canceled, there will just be no default UI shown. By default the value is
FALSE and the default download dialog is shown.
Sourceunsafe fn put_handled(&self, handled: BOOL) -> HRESULT
unsafe fn put_handled(&self, handled: BOOL) -> HRESULT
Sets the Handled property.
Sourceunsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable,
) -> HRESULT
unsafe fn get_deferral( &self, deferral: *mut *mut *mut ICoreWebView2DeferralVTable, ) -> HRESULT
Returns an ICoreWebView2Deferral object. Use this operation to
complete the event at a later time.