---
name: "ImageList_Read"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/ImageList_Read"
---

# ImageList\_Read(3w)

## NAME

**ImageList\_Read** (COMCTL32.@)

## SYNOPSIS

HIMAGELIST ImageList\_Read\
  (\
   LPSTREAM *pstm*\
  )

## DESCRIPTION

Reads an image list from a stream.

## PARAMS

*pstm* **\[In\]**  pointer to a stream.

## RETURNS

**Success:** handle to image list

**Failure:** **NULL**.

The format is like this: **ILHEAD** ilheadstruct;.

for the color image part: **BITMAPFILEHEADER** bmfh; **BITMAPINFOHEADER** bmih; only if it has a palette: **RGBQUAD** rgbs\[nr\_of\_paletted\_colors\];.

**BYTE** colorbits\[imagesize\];.

the following only if the **ILC\_MASK** bit is set in **ILHEAD**.ilFlags: **BITMAPFILEHEADER** bmfh\_mask; **BITMAPINFOHEADER** bmih\_mask; only if it has a palette (it usually does not): **RGBQUAD** rgbs\[nr\_of\_paletted\_colors\];.

**BYTE** maskbits\[imagesize\];

## IMPLEMENTATION

Declared in **"commctrl.h"**.

Implemented in **"dlls/comctl32/imagelist.c"**.

Debug channel **"imagelist"**.
