Shell_GetImageLists function (shlobj_core.h)

[This function is available through Windows XP Service Pack 2 (SP2) and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows.]

Retrieves system image lists for large and small icons.

Syntax

BOOL Shell_GetImageLists(
  [in] HIMAGELIST *phiml,
  [in] HIMAGELIST *phimlSmall
);

Parameters

[in] phiml

Type: HIMAGELIST*

A pointer to the handle of an image list which, on success, receives the system image list for large (32 x 32) icons.

[in] phimlSmall

Type: HIMAGELIST*

A pointer to the handle of an image list which, on success, receives the system image list for small (16 x 16) icons.

Return value

Type: BOOL

Returns TRUE on success. On failure, returns FALSE and the image lists pointed to by phiml and phimlSmall are unchanged.

Remarks

Important  The image lists retrieved through this function are global system image lists; do not call ImageList_Destroy using them.
 

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 (include Shlobj.h)
Library Shell32.lib
DLL Shell32.dll (version 5.0 or later)
API set ext-ms-win-shell-shell32-l1-2-1 (introduced in Windows 10, version 10.0.10240)

See also

Image Lists

SHGetFileInfo

SHGetImageList