Shell_GetImageLists function

[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(
  HIMAGELIST *phiml,
  HIMAGELIST *phimlSmall
);

Parameters

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.

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

   
Windows version Windows XP [desktop apps only] 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)

See Also

Image Lists

SHGetFileInfo

SHGetImageList