Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the current selection as an IShellItemArray.
Syntax
HRESULT GetSelection(
[in] BOOL fNoneImpliesFolder,
[out] IShellItemArray **ppsia
);
Parameters
[in] fNoneImpliesFolder
Type: BOOL
If TRUE, this method returns an IShellItemArray containing the parent folder when there is no current selection.
[out] ppsia
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 code | Description |
---|---|
|
The operation completed successfully. |
|
The IShellItemArray returned has zero items. |
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) |