IShellView::SelectItem method (shobjidl_core.h)

Changes the selection state of one or more items within the Shell view window.

Syntax

HRESULT SelectItem(
  PCUITEMID_CHILD pidlItem,
  SVSIF           uFlags
);

Parameters

pidlItem

Type: PCUITEMID_CHILD

The address of the ITEMIDLIST structure.

uFlags

Type: UINT

One of the _SVSIF constants that specify the type of selection to apply.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Notes to Implementers

This method is used to implement the Target command from the File menu of the Shell shortcut property sheet.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll (version 4.0 or later)

See also

IShellView