IFileDialog2::GetFolder Method

Gets either the folder currently selected in the dialog, or, if the dialog is not currently displayed, the folder that is to be selected when the dialog is opened.

Syntax

HRESULT GetFolder(      
    IShellItem **ppsi
);

Parameters

  • ppsi
    [out] The address of a pointer to the interface that represents the folder.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The calling application is responsible for releasing the retrieved IShellItem when it is no longer needed.