IFileDialog::SetOptions method

Sets flags to control the behavior of the dialog.

Syntax

HRESULT SetOptions(
  FILEOPENDIALOGOPTIONS fos
);

Parameters

fos

Type: FILEOPENDIALOGOPTIONS

One or more of the FILEOPENDIALOGOPTIONS values.

Return value

Type: HRESULT

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

Remarks

Generally, this method should take the value that was retrieved by IFileDialog::GetOptions and modify it to include or exclude options by setting the appropriate flags.

Requirements

   
Minimum supported client Windows Vista, Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)