ImageList_ReadEx function
Reads an image list from a stream, and returns an IImageList interface to the image list.
Syntax
HRESULT ImageList_ReadEx(
_In_ DWORD dwFlags,
_In_ LPSTREAM pstm,
_Out_ REFIID riid,
_Out_ void **ppv
);
Parameters
- dwFlags [in]
-
Type: DWORD
A flag that specifies how the stream is read.
Value Meaning - ILP_NORMAL
Expects an image list that was written with the ILP_NORMAL flag specified.
- ILP_DOWNLEVEL
Expects an image list that was written with the ILP_DOWNLEVEL flag specified.
- pstm [in]
-
Type: LPSTREAM
The address of the stream.
- riid [out]
-
Type: REFIID
An IID for the image list.
- ppv [out]
-
Type: void**
The address of a pointer to the interface for the image list if successful, NULL otherwise.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
To use ImageList_ReadEx, the application must specify Comctl32.dll version 6 in the manifest. For more information on manifests, see Enabling Visual Styles.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- Reference
- ImageList_WriteEx
- ImageList_Read
- ImageList_Write