SHLoadDIBitmap

This function loads a bitmap from the specified file.

At a Glance

Header file: Shellapi.h
Windows CE versions: 1.0 and later

Syntax

HBITMAP SHLoadDIBitmap(LPCTSTR szFileName);

Parameters

szFileName

Null-terminated string that contains the fully qualified path and file name that the bitmap will be loaded from.

Return Values

If the function succeeds, the return value is the handle to the bitmap loaded from the file, otherwise the return value is NULL.