Skip to content

Latest commit

 

History

History
81 lines (63 loc) · 2.95 KB

nf-shlobj_core-shmappidltosystemimagelistindex.md

File metadata and controls

81 lines (63 loc) · 2.95 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:shlobj_core.SHMapPIDLToSystemImageListIndex
SHMapPIDLToSystemImageListIndex function (shlobj_core.h)
SHMapPIDLToSystemImageListIndex may be altered or unavailable.
SHMapPIDLToSystemImageListIndex
SHMapPIDLToSystemImageListIndex function [Windows Shell]
_win32_SHMapPIDLToSystemImageListIndex
shell.SHMapPIDLToSystemImageListIndex
shlobj_core/SHMapPIDLToSystemImageListIndex
shell\SHMapPIDLToSystemImageListIndex.htm
shell
7f11049b-2481-496b-95e3-77d480f2c9df
12/05/2018
SHMapPIDLToSystemImageListIndex, SHMapPIDLToSystemImageListIndex function [Windows Shell], _win32_SHMapPIDLToSystemImageListIndex, shell.SHMapPIDLToSystemImageListIndex, shlobj_core/SHMapPIDLToSystemImageListIndex
shlobj_core.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Shell32.lib
Shell32.dll (version 5.0 or later)
Windows
19H1
SHMapPIDLToSystemImageListIndex
shlobj_core/SHMapPIDLToSystemImageListIndex
c++
APIRef
kbSyntax
DllExport
Shell32.dll
SHMapPIDLToSystemImageListIndex

SHMapPIDLToSystemImageListIndex function

-description

[SHMapPIDLToSystemImageListIndex is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Retrieves the icon index from the system image list that is associated with a folder item.

-parameters

-param pshf [in]

Type: IShellFolder*

An IShellFolder interface pointer for the folder that contains the item.

-param pidl [in]

Type: PCUITEMID_CHILD

A pointer to the item's ITEMIDLIST structure.

-param piIndexSel [out, optional]

Type: int*

A pointer to an int that, when this function returns successfully, receives the index of the item's open icon in the system image list. If the item does not have a special open icon then the index of its normal icon is returned. If the open icon exists and cannot be obtained, then the value pointed to by piIndex is set to -1. This parameter can be NULL if the calling application is not interested in the open icon.

-returns

Type: int

Returns the index of the item's normal icon in the system image list if successful, or -1 otherwise.