IFileOpenDialog::GetResults method (shobjidl_core.h)

Gets the user's choices in a dialog that allows multiple selection.

Syntax

HRESULT GetResults(
  [out] IShellItemArray **ppenum
);

Parameters

[out] ppenum

Type: IShellItemArray**

The address of a pointer to an IShellItemArray through which the items selected in the dialog can be accessed.

Return value

Type: HRESULT

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

Remarks

This method can be used whether the selection consists of a single item or multiple items.

IFileOpenDialog::GetResults can be called after the dialog has closed or during the handling of an IFileDialogEvents::OnFileOk event. Calling this method at any other time will fail.

Show must return a success code for a result to be available to IFileOpenDialog::GetResults.

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)