IAttachmentExecute::SaveWithUI method (shobjidl_core.h)

Presents the user with explanatory error UI if the save action fails.

Syntax

HRESULT SaveWithUI(
  [in] HWND hwnd
);

Parameters

[in] hwnd

Type: HWND

The handle of the parent window.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

IAttachmentExecute::SaveWithUI does not call IAttachmentExecute::Prompt.

Before calling IAttachmentExecute::SaveWithUI, you must call IAttachmentExecute::SetLocalPath with a valid path. The file is copied to that local path before IAttachmentExecute::SaveWithUI is called.

IAttachmentExecute::SaveWithUI may run virus scanners or other trust services to validate the file before saving it. Note that these services can delete or alter the file.

IAttachmentExecute::SaveWithUI may attach evidence to the local path in its NTFS alternate data stream (ADS).

Requirements

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shdocvw.dll (version 6.0 or later)

See also

IAttachmentExecute

IAttachmentExecute::Save