IShellItemArray::GetItemAt 方法 (shobjidl_core.h)
取得 IShellItemArray 中指定索引處的專案。
語法
HRESULT GetItemAt(
[in] DWORD dwIndex,
[out] IShellItem **ppsi
);
參數
[in] dwIndex
類型: DWORD
IShellItemArray 中要求的 IShellItem 索引
[out] ppsi
類型: IShellItem**
當這個方法傳回時,會包含要求的 IShellItem 指標。
傳回值
類型: HRESULT
如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。
備註
如果要求的索引超出 IShellItemArray 的界限,此函式會傳回E_FAIL。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows Vista [僅限傳統型應用程式] |
最低支援的伺服器 | Windows Server 2008 [僅限傳統型應用程式] |
目標平台 | Windows |
標頭 | shobjidl_core.h (包含 Shobjidl.h) |