IFileDialog::Close method (shobjidl_core.h)
Closes the dialog.
Syntax
HRESULT Close(
[in] HRESULT hr
);
Parameters
[in] hr
Type: HRESULT
The code that will be returned by Show to indicate that the dialog was closed before a selection was made.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
An application can call this method from a callback method or function while the dialog is open. The dialog will close and the Show method will return with the HRESULT specified in hr.
If this method is called, there is no result available for the IFileDialog::GetResult or GetResults methods, and they will fail if called.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |