IShellFolderView::GetSelectedCount method (shlobj_core.h)
[GetSelectedCount is no longer available for use as of Windows Vista. Instead, use IFolderView2::GetSelection.]
Gets the number of items in the view that are selected.
Syntax
HRESULT GetSelectedCount(
[out] UINT *puSelected
);
Parameters
[out] puSelected
Type: UINT*
A pointer to a value that, when this method returns successfully, receives the number of selected items in the view.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shlobj_core.h |