IExtractImage::Extract method

Requests an image from an object, such as an item in a Shell folder.

Syntax


HRESULT Extract(
  [out] HBITMAP *phBmpImage
);

Parameters

phBmpImage [out]

Type: HBITMAP*

The buffer to hold the bitmapped image.

Return value

Type: HRESULT

Returns S_OK if successful, or a COM-defined error code otherwise.

Remarks

You must call IExtractImage::GetLocation prior to calling Extract.

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

DLL

Shell32.dll (version 4.70 or later)

 

 

Show: