HIMAGELIST_QueryInterface function (commctrl.h)

Retrieves a pointer to an IImageList or IImageList2 object that corresponds to the image list's HIMAGELIST handle.

Syntax

HRESULT HIMAGELIST_QueryInterface(
  [in]  HIMAGELIST himl,
  [in]  REFIID     riid,
  [out] void       **ppv
);

Parameters

[in] himl

Type: HIMAGELIST

The handle to the image list.

[in] riid

Type: REFIID

The identifier of the interface being requested. Normally IID_IImageList or IID_IImageList2.

[out] ppv

Type: void**

When this method returns, contains the address of the interface pointer requested in riid. If the object does not support the interface specified in riid, ppv is NULL.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header commctrl.h
Library Comctl32.lib
DLL Comctl32.dll