IFolderView2::GetSelection method

Gets the current selection as an IShellItemArray.

Syntax


HRESULT GetSelection(
  [in]  BOOL            fNoneImpliesFolder,
  [out] IShellItemArray **ppsia
);

Parameters

fNoneImpliesFolder [in]

Type: BOOL

If TRUE, this method returns an IShellItemArray containing the parent folder when there is no current selection.

ppsia [out]

Type: IShellItemArray**

The address of a pointer to an IShellItemArray.

Return value

Type: HRESULT

Returns one of the following values, or an error otherwise.

Return codeDescription
S_OK

The operation completed successfully.

S_FALSE

The IShellItemArray returned has zero items.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Show: