Share via


IShellItemArray ::GetItemAt, méthode (shobjidl_core.h)

Obtient l’élément à l’index donné dans IShellItemArray.

Syntaxe

HRESULT GetItemAt(
  [in]  DWORD      dwIndex,
  [out] IShellItem **ppsi
);

Paramètres

[in] dwIndex

Type : DWORD

Index de l’objet IShellItem demandé dans IShellItemArray

[out] ppsi

Type : IShellItem**

Lorsque cette méthode est retournée, contient le pointeur IShellItem demandé.

Valeur retournée

Type : HRESULT

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un code d’erreur HRESULT.

Remarques

Cette fonction retourne E_FAIL si l’index demandé est hors limites de IShellItemArray.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows Vista [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 [applications de bureau uniquement]
Plateforme cible Windows
En-tête shobjidl_core.h (incluez Shobjidl.h)

Voir aussi

IShellItem

IShellItemArray

IShellItemArray ::GetCount