Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

IFileOpenDialog::GetResults method

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

Syntax


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

Parameters

ppenum [out]

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::GetResult 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::GetResult.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.