IShellFolderViewDual::SelectItem method (shldisp.h)

Sets the selection state of an item in the view.

Syntax

HRESULT SelectItem(
  [in] VARIANT *pvfi,
  [in] int     dwFlags
);

Parameters

[in] pvfi

Type: VARIANT*

A VARIANT object.

[in] dwFlags

Type: int

The flags representing the state of the object.

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 shldisp.h

See also

IShellFolderViewDual

IShellFolderViewDual2

IShellFolderViewDual3