IFileOpenDialog::GetCurrentSelection Method
Gets the user's current selection in the dialog.
Syntax
HRESULT GetCurrentSelection( IShellItem **ppsi );
Parameters
- ppsi
[out] The address of a pointer to the interface that represents the item currently selected in the dialog. This item can be a file or folder selected in the view window, or something that the user has entered into the dialog's edit box. The latter case may require a parsing operation (cancelable by the user) that blocks the current thread.
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.
See Also