SHLoadDIBitmap

The SHLoadDIBitmap function loads a bitmap from the specified file.

Syntax

HBITMAP SHLoadDIBitmap(LPCTSTR szFileName);

At a Glance

Header file: Winuser.h
Platforms: H/PC
Versions: 1.0 and later

Parameters

szFileName
Pointer to a 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.