IShellFolderView::GetObject method (shlobj_core.h)

[GetObject is no longer available for use as of Windows Vista. Instead, use IFolderView::Item.]

Gets an item from the view.

Syntax

HRESULT GetObject(
  [out] PITEMID_CHILD *ppidl,
        UINT          uItem
);

Parameters

[out] ppidl

Type: PITEMID_CHILD*

When this method returns, contains the address of a pointer to the item at the given index.

uItem

Type: UINT

The index of the item in the view to get.

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