Export (0) Print
Expand All

IFolderView::Item method

Gets the identifier of a specific item in the folder view, by index.

Syntax


HRESULT Item(
  [in]   int iItemIndex,
  [out]  PITEMID_CHILD *ppidl
);

Parameters

iItemIndex [in]

Type: int

The index of the item in the view.

ppidl [out]

Type: PITEMID_CHILD*

The address of a pointer to a PIDL containing the item's identifier information.

Return value

Type: HRESULT

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

Remarks

When no longer needed, the PIDL should be freed by calling CoTaskMemFree

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll

See also

IFolderView
IFolderView::Items

 

 

Community Additions

ADD
Show:
© 2014 Microsoft